armv8: SECURE_BOOT: Enable chain of trust on LS1046A platform
authorVinitha Pillai-B57223 <vinitha.pillai@nxp.com>
Thu, 23 Mar 2017 08:18:16 +0000 (13:48 +0530)
committerYork Sun <york.sun@nxp.com>
Mon, 17 Apr 2017 16:03:30 +0000 (09:03 -0700)
Define bootscript and its header addresses for QSPI target. Also
define PPA header address to enable PPA validation.

Signed-off-by: Vinitha Pillai <vinitha.pillai@nxp.com>
Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/Kconfig
arch/arm/include/asm/arch-fsl-layerscape/config.h
arch/arm/include/asm/fsl_secure_boot.h

index d587ed3c93ef716205aae0ca6ddd5fb4da5af651..f19c1be85ab41e7332364ce184da931e2dc2bca1 100644 (file)
@@ -176,6 +176,7 @@ config SYS_LS_PPA_ESBC_ADDR
        hex "hdr address of PPA firmware loading from"
        depends on FSL_LS_PPA && CHAIN_OF_TRUST
        default 0x600c0000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1043A
+       default 0x40740000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS1046A
        default 0x580c40000 if SYS_LS_PPA_FW_IN_XIP && FSL_LSCH3
        help
          If the PPA header firmware locate at XIP flash, such as NOR or
index b5b08aae23255c927f64a32a204e2f71b309c276..1f22afd9e6eec641136d5169f22901df75f7fcee 100644 (file)
 
 #define CONFIG_SYS_FSL_IFC_BE
 #define CONFIG_SYS_FSL_SFP_VER_3_2
-#define CONFIG_SYS_FSL_SNVS_LE
+#define CONFIG_SYS_FSL_SEC_MON_BE
 #define CONFIG_SYS_FSL_SFP_BE
 #define CONFIG_SYS_FSL_SRK_LE
 #define CONFIG_KEY_REVOCATION
index 4c36f9dc5e86dfe1b7d3b6f405367bb420255a04..cbf92fbb7bdaef1875a15fff44ffa35bacf56624 100644 (file)
 
 #endif
 
-#if defined(CONFIG_LS1043A) || defined(CONFIG_LS2080A)
-/* For LS1043 (ARMv8), ESBC image Address in Header is 64 bit
- * Similiarly for LS2080
+#if defined(CONFIG_FSL_LAYERSCAPE)
+/*
+ * For fsl layerscape based platforms, ESBC image Address in Header
+ * is 64 bit.
  */
 #define CONFIG_ESBC_ADDR_64BIT
 #endif
 #define CONFIG_BS_ADDR_DEVICE          0x00000940
 #define CONFIG_BS_HDR_SIZE             0x00000010
 #define CONFIG_BS_SIZE                 0x00000008
+#elif defined(CONFIG_QSPI_BOOT)
+#ifdef CONFIG_ARCH_LS1046A
+#define CONFIG_BS_HDR_ADDR_DEVICE      0x40780000
+#define CONFIG_BS_ADDR_DEVICE          0x40800000
 #else
+#error "Platform not supported"
+#endif
+#define CONFIG_BS_HDR_SIZE             0x00002000
+#define CONFIG_BS_SIZE                 0x00001000
+#else /* Default NOR Boot */
 #define CONFIG_BS_HDR_ADDR_DEVICE      0x600a0000
 #define CONFIG_BS_ADDR_DEVICE          0x60060000
 #define CONFIG_BS_HDR_SIZE             0x00002000
 #define CONFIG_BS_SIZE                 0x00001000
-#endif /* #ifdef CONFIG_SD_BOOT */
+#endif
 #define CONFIG_BS_HDR_ADDR_RAM         0x81000000
 #define CONFIG_BS_ADDR_RAM             0x81020000
 #endif