diff mbox

[U-Boot,1/2] SECURE_BOOT: Enable chain of trust on LS1012A platform

Message ID 1478234935-29357-1-git-send-email-vinitha.pillai@nxp.com
State Superseded
Delegated to: York Sun
Headers show

Commit Message

Vinitha V Pillai Nov. 4, 2016, 4:48 a.m. UTC
Define bootscript and its header addresses for QSPI target

Reviewed-by: Ruchika Gupta <ruchika.gupta@nxp.com>
Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
Signed-off-by: Vinitha Pillai <vinitha.pillai@nxp.com>
---
This patch depends on the following patch-set:

1. https://patchwork.ozlabs.org/patch/687002/
2. https://patchwork.ozlabs.org/patch/687000/
3. https://patchwork.ozlabs.org/patch/687001/

 arch/arm/include/asm/arch-fsl-layerscape/config.h | 7 +++++++
 arch/arm/include/asm/fsl_secure_boot.h            | 5 +++++
 2 files changed, 12 insertions(+)
diff mbox

Patch

diff --git a/arch/arm/include/asm/arch-fsl-layerscape/config.h b/arch/arm/include/asm/arch-fsl-layerscape/config.h
index 11a62e8..34b3d25 100644
--- a/arch/arm/include/asm/arch-fsl-layerscape/config.h
+++ b/arch/arm/include/asm/arch-fsl-layerscape/config.h
@@ -186,6 +186,13 @@ 
 
 #define GICD_BASE		0x01401000
 #define GICC_BASE		0x01402000
+#define CONFIG_SYS_FSL_SFP_VER_3_2
+#define CONFIG_SYS_FSL_SEC_MON_BE
+#define CONFIG_SYS_FSL_SEC_BE
+#define CONFIG_SYS_FSL_SFP_BE
+#define CONFIG_SYS_FSL_SRK_LE
+#define CONFIG_KEY_REVOCATION
+#define CONFIG_SYS_FSL_MAX_NUM_OF_SEC           1
 #elif defined(CONFIG_ARCH_LS1046A)
 #define CONFIG_SYS_FMAN_V3
 #define CONFIG_SYS_NUM_FMAN			1
diff --git a/arch/arm/include/asm/fsl_secure_boot.h b/arch/arm/include/asm/fsl_secure_boot.h
index 08ba589..5ffde4e 100644
--- a/arch/arm/include/asm/fsl_secure_boot.h
+++ b/arch/arm/include/asm/fsl_secure_boot.h
@@ -114,6 +114,9 @@ 
 #ifdef CONFIG_ARCH_LS1046A
 #define CONFIG_BS_HDR_ADDR_DEVICE	0x40780000
 #define CONFIG_BS_ADDR_DEVICE		0x40800000
+#elif defined(CONFIG_ARCH_LS1012A)
+#define CONFIG_BS_HDR_ADDR_DEVICE	0x400c0000
+#define CONFIG_BS_ADDR_DEVICE		0x40060000
 #endif
 #define CONFIG_BS_HDR_SIZE		0x00002000
 #define CONFIG_BS_SIZE			0x00001000
@@ -141,6 +144,8 @@ 
 #define CONFIG_SYS_LS_PPA_ESBC_ADDR	0x600c0000
 #elif defined(CONFIG_ARCH_LS1046A)
 #define CONFIG_SYS_LS_PPA_ESBC_ADDR     0x40740000
+#elif defined(CONFIG_ARCH_LS1012A)
+#define CONFIG_SYS_LS_PPA_ESBC_ADDR	0x40480000
 #endif
 #else
 #error "No CONFIG_SYS_LS_PPA_FW_IN_xxx defined"