From 5c0419f0831a21f830f6f1a33e47e6f43ba01797 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Thu, 10 Dec 2020 15:55:33 +0800 Subject: [PATCH] rockchip: rv1126: add some defination of secure otp Include secure boot enable add rsa hash. Signed-off-by: Jason Zhu Change-Id: I70c4b030238c01ee1b569521bd5e1b03c70cbc68 --- include/configs/rv1126_common.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/configs/rv1126_common.h b/include/configs/rv1126_common.h index 19e4d9cf99..bc2b6dd3d7 100644 --- a/include/configs/rv1126_common.h +++ b/include/configs/rv1126_common.h @@ -28,7 +28,7 @@ /* SPL */ #define CONFIG_SPL_FRAMEWORK #define CONFIG_SPL_TEXT_BASE 0x00000000 -#define CONFIG_SPL_MAX_SIZE 0x20000 +#define CONFIG_SPL_MAX_SIZE 0x30000 #define CONFIG_SPL_BSS_START_ADDR 0x00600000 #define CONFIG_SPL_BSS_MAX_SIZE 0x20000 #define CONFIG_SPL_STACK 0x00600000 @@ -40,6 +40,11 @@ #define OTP_UBOOT_ROLLBACK_OFFSET 0x1A /* word address */ #define OTP_UBOOT_ROLLBACK_WORDS 2 /* 64 bits, 2 words */ #define OTP_ALL_ONES_NUM_BITS 32 +#define OTP_SECURE_BOOT_ENABLE_ADDR 0x0 +#define OTP_SECURE_BOOT_ENABLE_SIZE 1 +#define OTP_RSA_HASH_ADDR 0x10 +#define OTP_RSA_HASH_SIZE 32 +#define OTP_RSA2048_C_SIZE 20 /* MMC/SD IP block */ #define CONFIG_BOUNCE_BUFFER