]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/powerpc/include/asm/fsl_secure_boot.h
powerpc/mpc85xx: SECURE BOOT-Copy Boot Script on RAM
[karo-tx-uboot.git] / arch / powerpc / include / asm / fsl_secure_boot.h
index 442853c239154dfe535fbb39b166250e5bf91cae..d57bb556927decb412a3ea271482997e012e0e1b 100644 (file)
 #endif
 
 #ifndef CONFIG_FIT_SIGNATURE
+/* If Boot Script is not on NOR and is required to be copied on RAM */
+#ifdef CONFIG_BOOTSCRIPT_COPY_RAM
+#define CONFIG_BS_HDR_ADDR_RAM         0x00010000
+#define CONFIG_BS_HDR_ADDR_FLASH       0x00800000
+#define CONFIG_BS_HDR_SIZE             0x00002000
+#define CONFIG_BS_ADDR_RAM             0x00012000
+#define CONFIG_BS_ADDR_FLASH           0x00802000
+#define CONFIG_BS_SIZE                 0x00001000
+
+#define CONFIG_BOOTSCRIPT_HDR_ADDR     CONFIG_BS_HDR_ADDR_RAM
+#else
+
 /* The bootscript header address is different for B4860 because the NOR
  * mapping is different on B4 due to reduced NOR size.
  */
 #define CONFIG_BOOTSCRIPT_HDR_ADDR     0xee020000
 #endif
 
+#endif
+
 #include <config_fsl_secboot.h>
 #endif