Skip to content

Commit 347caf9

Browse files
committed
drivers: rockchip: define more OTP indexes
The OTP area contains other values in addition to the HW_UNIQUE_KEY. For example, the SECURE_BOOT_STATUS and the RSA_HASH, which are used by the ROM code to verify booted images, are located there as well. Define the index (in 32 bit words) and length (in 32 bit words) of these values, too, to allow applications to read and write these locations. Signed-off-by: Michael Tretter <[email protected]>
1 parent beacaea commit 347caf9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

core/include/drivers/rockchip_otp.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@
88

99
#include <tee_api_types.h>
1010

11-
#define HW_UNIQUE_KEY_INDEX 0x104
11+
#define SECURE_BOOT_STATUS_INDEX 0x8
12+
#define SECURE_BOOT_STATUS_LENGTH 1
13+
#define SECURE_BOOT_STATUS_ENABLE 0xff
14+
#define SECURE_BOOT_STATUS_RSA4096 0x3000
15+
16+
#define HW_UNIQUE_KEY_INDEX 0x104
17+
18+
#define RSA_HASH_INDEX 0x270
19+
#define RSA_HASH_LENGTH 8
1220

1321
/*
1422
* Read the OTP fuses at index

0 commit comments

Comments
 (0)