Commit 2f439e805e945b410b0043db82f9666eb03914ba

Authored by Ruchika Gupta
Committed by Kumar Gala
1 parent 550a249211

powerpc/85xx: Add Secure Boot support on P1010RDB for NOR, NAND & SPIFLASH

Signed-off-by: Ruchika Gupta <ruchika.gupta@freescale.com>
Signed-off-by: Kuldip Giroh <kuldip.giroh@freescale.com>

Showing 2 changed files with 19 additions and 2 deletions Side-by-side Diff

... ... @@ -568,13 +568,19 @@
568 568 MPC8572DS_36BIT powerpc mpc85xx mpc8572ds freescale - MPC8572DS:36BIT
569 569 MPC8572DS_NAND powerpc mpc85xx mpc8572ds freescale - MPC8572DS:NAND
570 570 P1010RDB_NOR powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB
  571 +P1010RDB_NOR_SECBOOT powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB,SECURE_BOOT
571 572 P1010RDB_36BIT_NOR powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB,36BIT
  573 +P1010RDB_36BIT_NOR_SECBOOT powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB,36BIT,SECURE_BOOT
572 574 P1010RDB_NAND powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB,NAND
  575 +P1010RDB_NAND_SECBOOT powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB,NAND_SECBOOT,SECURE_BOOT
573 576 P1010RDB_36BIT_NAND powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB,36BIT,NAND
  577 +P1010RDB_36BIT_NAND_SECBOOT powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB,36BIT,NAND_SECBOOT,SECURE_BOOT
574 578 P1010RDB_SDCARD powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB,SDCARD
575 579 P1010RDB_SPIFLASH powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB,SPIFLASH
  580 +P1010RDB_SPIFLASH_SECBOOT powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB,SPIFLASH,SECURE_BOOT
576 581 P1010RDB_36BIT_SDCARD powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB,36BIT,SDCARD
577 582 P1010RDB_36BIT_SPIFLASH powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB,36BIT,SPIFLASH
  583 +P1010RDB_36BIT_SPIFLASH_SECBOOT powerpc mpc85xx p1010rdb freescale - P1010RDB:P1010RDB,36BIT,SPIFLASH,SECURE_BOOT
578 584 P1011RDB powerpc mpc85xx p1_p2_rdb freescale - P1_P2_RDB:P1011RDB
579 585 P1011RDB_36BIT powerpc mpc85xx p1_p2_rdb freescale - P1_P2_RDB:P1011RDB,36BIT
580 586 P1011RDB_36BIT_SDCARD powerpc mpc85xx p1_p2_rdb freescale - P1_P2_RDB:P1011RDB,36BIT,SDCARD
include/configs/P1010RDB.h
... ... @@ -59,6 +59,13 @@
59 59 #endif /* CONFIG_NAND_SPL */
60 60 #endif
61 61  
  62 +
  63 +#ifdef CONFIG_NAND_SECBOOT /* NAND Boot */
  64 +#define CONFIG_RAMBOOT_NAND
  65 +#define CONFIG_SYS_TEXT_BASE 0x11000000
  66 +#define CONFIG_RESET_VECTOR_ADDRESS 0x1107fffc
  67 +#endif
  68 +
62 69 #ifndef CONFIG_SYS_TEXT_BASE
63 70 #define CONFIG_SYS_TEXT_BASE 0xeff80000
64 71 #endif
... ... @@ -345,7 +352,7 @@
345 352 #define CONFIG_SYS_NAND_DDR_LAW 11
346 353  
347 354 /* Set up IFC registers for boot location NOR/NAND */
348   -#ifdef CONFIG_NAND_U_BOOT
  355 +#if defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SECBOOT)
349 356 #define CONFIG_SYS_CSPR0 CONFIG_SYS_NAND_CSPR
350 357 #define CONFIG_SYS_AMASK0 CONFIG_SYS_NAND_AMASK
351 358 #define CONFIG_SYS_CSOR0 CONFIG_SYS_NAND_CSOR
... ... @@ -501,7 +508,7 @@
501 508 * SPI interface will not be available in case of NAND boot SPI CS0 will be
502 509 * used for SLIC
503 510 */
504   -#ifndef CONFIG_NAND_U_BOOT
  511 +#if !defined(CONFIG_NAND_U_BOOT) || !defined(CONFIG_NAND_SECBOOT)
505 512 /* eSPI - Enhanced SPI */
506 513 #define CONFIG_FSL_ESPI
507 514 #define CONFIG_SPI_FLASH
... ... @@ -761,6 +768,10 @@
761 768 "bootm $loadaddr $ramdiskaddr $fdtaddr"
762 769  
763 770 #define CONFIG_BOOTCOMMAND CONFIG_RAMBOOTCOMMAND
  771 +
  772 +#ifdef CONFIG_SECURE_BOOT
  773 +#include <asm/fsl_secure_boot.h>
  774 +#endif
764 775  
765 776 #endif /* __CONFIG_H */