LS1046A secure boot target addition
v2 cover LS1046A secure boot target addition
The patch-set does the following:
1. Add NOR secure boot target on ls1046aqds platform.
2. Add QSPI secure boot target on ls1046ardb platform.
Changes in v2:
Split patches logically from 2 to 3.
Sumit Garg (3):
SECURE_BOOT: Enable chain of trust on LS1046A platform
LS1046AQDS: Add NOR Secure Boot Target
LS1046ARDB: Add QSPI Secure Boot target
arch/arm/include/asm/arch-fsl-layerscape/config.h | 2 +- arch/arm/include/asm/fsl_secure_boot.h | 37 ++++++++++++++++------- board/freescale/ls1046aqds/MAINTAINERS | 4 +++ board/freescale/ls1046aqds/ls1046aqds.c | 18 +++++++++++ board/freescale/ls1046ardb/MAINTAINERS | 4 +++ board/freescale/ls1046ardb/ls1046ardb.c | 19 ++++++++++++ configs/ls1046aqds_SECURE_BOOT_defconfig | 29 ++++++++++++++++++ configs/ls1046ardb_qspi_SECURE_BOOT_defconfig | 27 +++++++++++++++++ include/configs/ls1046ardb.h | 2 ++ 9 files changed, 130 insertions(+), 12 deletions(-) create mode 100644 configs/ls1046aqds_SECURE_BOOT_defconfig create mode 100644 configs/ls1046ardb_qspi_SECURE_BOOT_defconfig
Signature · 1 line
1.8.1.4
v2 cover LS1046A secure boot target addition
Hi,
Am 26.10.2016 um 22:17 schrieb Sumit Garg:
Quoted 4 lines
The patch-set does the following:
1. Add NOR secure boot target on ls1046aqds platform.
2. Add QSPI secure boot target on ls1046ardb platform.
Please double-check your clock, you are posting in the future.
Regards,
Andreas
Signature · 3 lines
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg)
PATCH v2 1/3 SECURE_BOOT: Enable chain of trust on LS1046A platform
In reply to Sumit GargDefine bootscript and its header addresses for QSPI target. Also define PPA header address to enable PPA validation.
---
Changes in v2:
Split patches logically from 2 to 3.
arch/arm/include/asm/arch-fsl-layerscape/config.h | 2 +- arch/arm/include/asm/fsl_secure_boot.h | 37 ++++++++++++++++------- 2 files changed, 27 insertions(+), 12 deletions(-)
arch/arm/include/asm/arch-fsl-layerscape/config.h +1 -1
@@ -196,7 +196,7 @@#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
arch/arm/include/asm/fsl_secure_boot.h +26 -11
@@ -45,7 +45,8 @@#define CONFIG_CMD_HASH #define CONFIG_KEY_REVOCATION #ifndef CONFIG_SYS_RAMBOOT -/* The key used for verification of next level images +/* +* The key used for verification of next level images * is picked up from an Extension Table which has * been verified by the ISBC (Internal Secure boot Code) * in boot ROM of the SoC.
@@ -59,9 +60,10 @@#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
@@ -78,13 +80,16 @@ "setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';"#endif -/* Copying Bootscript and Header to DDR from NOR for LS2 and for rest, from -* Non-XIP Memory (Nand/SD)*/ +/* +* Copying Bootscript and Header to DDR from NOR for LS2 and for rest, from +* Non-XIP Memory (Nand/SD) +*/ #if defined(CONFIG_SYS_RAMBOOT ) || defined(CONFIG_LS2080A ) || \ defined(CONFIG_SD_BOOT )#define CONFIG_BOOTSCRIPT_COPY_RAM #endif -/* The address needs to be modified according to NOR, NAND, SD and +/* +* The address needs to be modified according to NOR, NAND, SD and * DDR memory map */ #ifdef CONFIG_LS2080A
@@ -96,19 +101,26 @@#define CONFIG_BS_SIZE 0x00001000#else #ifdef CONFIG_SD_BOOT -/* For SD boot address and size are assigned in terms of sector +/* +* For SD boot address and size are assigned in terms of sector * offset and no. of sectors respectively. */ #define CONFIG_BS_HDR_ADDR_DEVICE 0x00000800#define CONFIG_BS_ADDR_DEVICE 0x00000840#define CONFIG_BS_HDR_SIZE 0x00000010#define CONFIG_BS_SIZE 0x00000008 -#else +/* ifdef CONFIG_SD_BOOT */ +#elif defined(CONFIG_QSPI_BOOT ) +#define CONFIG_BS_HDR_ADDR_DEVICE 0x40780000 +#define CONFIG_BS_ADDR_DEVICE 0x40800000 +#define CONFIG_BS_HDR_SIZE 0x00002000 +#define CONFIG_BS_SIZE 0x00001000 +#else /* elif defined(CONFIG_QSPI_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 /* Default NOR Boot */ #define CONFIG_BS_HDR_ADDR_RAM 0x81000000#define CONFIG_BS_ADDR_RAM 0x81020000#endif
@@ -125,12 +137,15 @@#ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP #ifdef CONFIG_LS1043A #define CONFIG_SYS_LS_PPA_ESBC_ADDR 0x600c0000 +#elif defined(CONFIG_LS1046A ) +#define CONFIG_SYS_LS_PPA_ESBC_ADDR 0x40740000#endif #else #error "No CONFIG_SYS_LS_PPA_FW_IN_xxx defined"#endif /* ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP */ -/* Define the key hash here if SRK used for signing PPA image is +/* +* Define the key hash here if SRK used for signing PPA image is * different from SRK hash put in SFP used for U-Boot. * Example * #define CONFIG_PPA_KEY_HASH \
Signature · 1 line
1.8.1.4
PATCH v2 1/3 SECURE_BOOT: Enable chain of trust on LS1046A platform
Quoted 80 lines · Sumit Garg
Define bootscript and its header addresses for QSPI target. Also define PPA header address to enable PPA validation.
Signed-off-by Vinitha Pillai <[email protected]>Signed-off-by Sumit Garg <[email protected]>---
Changes in v2:
Split patches logically from 2 to 3.arch/arm/include/asm/arch-fsl-layerscape/config.h | 2 +- arch/arm/include/asm/fsl_secure_boot.h | 37 ++++++++++++++++------- 2 files changed, 27 insertions(+), 12 deletions(-)arch/arm/include/asm/arch-fsl-layerscape/config.h +1
-1@@ -196,7 +196,7 @@#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 arch/arm/include/asm/fsl_secure_boot.h +12
-8@@ -45,7 +45,8 @@#define CONFIG_CMD_HASH #define CONFIG_KEY_REVOCATION #ifndef CONFIG_SYS_RAMBOOT -/* The key used for verification of next level images +/* +* The key used for verification of next level images * is picked up from an Extension Table which has * been verified by the ISBC (Internal Secure boot Code) * in boot ROM of the SoC. @@ -59,9 +60,10 @@#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 @@ -78,13 +80,16 @@ "setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';"#endif -/* Copying Bootscript and Header to DDR from NOR for LS2 and for rest, from -* Non-XIP Memory (Nand/SD)*/ +/* +* Copying Bootscript and Header to DDR from NOR for LS2 and for rest, from +* Non-XIP Memory (Nand/SD) +*/ #if defined(CONFIG_SYS_RAMBOOT ) || defined(CONFIG_LS2080A ) || \ defined(CONFIG_SD_BOOT )#define CONFIG_BOOTSCRIPT_COPY_RAM #endif -/* The address needs to be modified according to NOR, NAND, SD and +/* +* The address needs to be modified according to NOR, NAND, SD and * DDR memory map */ #ifdef CONFIG_LS2080A @@ -96,19 +101,26 @@#define CONFIG_BS_SIZE 0x00001000#else #ifdef CONFIG_SD_BOOT -/* For SD boot address and size are assigned in terms of sector
arch/arm/include/asm/fsl_secure_boot.h line 112
Quoted 10 lines
arch/arm/include/asm/fsl_secure_boot.h +3
-1+/* +* For SD boot address and size are assigned in terms of sector * offset and no. of sectors respectively. */ #define CONFIG_BS_HDR_ADDR_DEVICE 0x00000800#define CONFIG_BS_ADDR_DEVICE 0x00000840#define CONFIG_BS_HDR_SIZE 0x00000010#define CONFIG_BS_SIZE 0x00000008 -#else +/* ifdef CONFIG_SD_BOOT */
This comment confuses me. The code below is for QSPI_BOOT obviously.
arch/arm/include/asm/fsl_secure_boot.h line 118
Quoted 6 lines
arch/arm/include/asm/fsl_secure_boot.h +6
-0+#elif defined(CONFIG_QSPI_BOOT ) +#define CONFIG_BS_HDR_ADDR_DEVICE 0x40780000 +#define CONFIG_BS_ADDR_DEVICE 0x40800000 +#define CONFIG_BS_HDR_SIZE 0x00002000 +#define CONFIG_BS_SIZE 0x00001000 +#else /* elif defined(CONFIG_QSPI_BOOT) */
The code below is not for QSPI_BOOT. Confusing comment.
arch/arm/include/asm/fsl_secure_boot.h line 123
Quoted 6 lines
arch/arm/include/asm/fsl_secure_boot.h +1
-1#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 /* Default NOR Boot */
I guess the above is for normal NOR boot. The comment should be moved above the block.
Quoted 11 lines
arch/arm/include/asm/fsl_secure_boot.h +2
-0#define CONFIG_BS_HDR_ADDR_RAM 0x81000000#define CONFIG_BS_ADDR_RAM 0x81020000#endif @@ -125,12 +137,15 @@#ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP #ifdef CONFIG_LS1043A #define CONFIG_SYS_LS_PPA_ESBC_ADDR 0x600c0000 +#elif defined(CONFIG_LS1046A ) +#define CONFIG_SYS_LS_PPA_ESBC_ADDR 0x40740000#endif
arch/arm/include/asm/fsl_secure_boot.h line 151
Quoted 10 lines
arch/arm/include/asm/fsl_secure_boot.h +2
-1#else #error "No CONFIG_SYS_LS_PPA_FW_IN_xxx defined"#endif /* ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP */ -/* Define the key hash here if SRK used for signing PPA image is +/* +* Define the key hash here if SRK used for signing PPA image is * different from SRK hash put in SFP used for U-Boot. * Example * #define CONFIG_PPA_KEY_HASH \
It would be better to separate the cosmetic change from the code change.
York
PATCH v2 1/3 SECURE_BOOT: Enable chain of trust on LS1046A platform
Quoted 99 lines
-----Original Message-----
From: york sun
Sent: Monday, November 14, 2016 11:22 PM
To: Sumit Garg <[email protected]>; u-boot at lists.denx.de
Cc: Ruchika Gupta <[email protected]>; Prabhakar Kushwaha <[email protected]>; Vini Pillai <[email protected]>
Subject: Re: [PATCH v2 1/3]SECURE_BOOT: Enable chain of trust on LS1046A platformQuoted 5 lines · Sumit Garg
Define bootscript and its header addresses for QSPI target. Also define PPA header address to enable PPA validation.
Signed-off-by Vinitha Pillai <[email protected]>Signed-off-by Sumit Garg <[email protected]>Quoted 7 lines
---
Changes in v2:
Split patches logically from 2 to 3.arch/arm/include/asm/arch-fsl-layerscape/config.h | 2 +- arch/arm/include/asm/fsl_secure_boot.h | 37 ++++++++++++++++-------
Quoted 76 lines
2 files changed, 27 insertions(+), 12 deletions(-)arch/arm/include/asm/arch-fsl-layerscape/config.h +1
-1@@ -196,7 +196,7 @@#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 arch/arm/include/asm/fsl_secure_boot.h +6
-5@@ -45,7 +45,8 @@#define CONFIG_CMD_HASH #define CONFIG_KEY_REVOCATION #ifndef CONFIG_SYS_RAMBOOT -/* The key used for verification of next level images +/* +* The key used for verification of next level images * is picked up from an Extension Table which has * been verified by the ISBC (Internal Secure boot Code) * in boot ROM of the SoC. @@ -59,9 +60,10 @@#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 @@ -78,13 +80,16 @@ "setenv hwconfig \'fsl_ddr:ctlr_intlv=null,bank_intlv=null\';"#endif -/* Copying Bootscript and Header to DDR from NOR for LS2 and for rest, from
- * Non-XIP Memory (Nand/SD)*/arch/arm/include/asm/fsl_secure_boot.h +9
-2+/* +* Copying Bootscript and Header to DDR from NOR for LS2 and for +rest, from +* Non-XIP Memory (Nand/SD) +*/ #if defined(CONFIG_SYS_RAMBOOT ) || defined(CONFIG_LS2080A ) || \ defined(CONFIG_SD_BOOT )#define CONFIG_BOOTSCRIPT_COPY_RAM #endif -/* The address needs to be modified according to NOR, NAND, SD and +/* +* The address needs to be modified according to NOR, NAND, SD and * DDR memory map */ #ifdef CONFIG_LS2080A @@ -96,19 +101,26 @@#define CONFIG_BS_SIZE 0x00001000#else #ifdef CONFIG_SD_BOOT -/* For SD boot address and size are assigned in terms of sector +/* +* For SD boot address and size are assigned in terms of sector * offset and no. of sectors respectively. */
Quoted 8 lines
arch/arm/include/asm/fsl_secure_boot.h line 112
Quoted 6 lines
arch/arm/include/asm/fsl_secure_boot.h +1
-1#define CONFIG_BS_HDR_ADDR_DEVICE 0x00000800#define CONFIG_BS_ADDR_DEVICE 0x00000840#define CONFIG_BS_HDR_SIZE 0x00000010#define CONFIG_BS_SIZE 0x00000008 -#else +/* ifdef CONFIG_SD_BOOT */ This comment confuses me. The code below is for
QSPI_BOOTobviously.
I have put this comment to mark ending of SD_BOOT block as starting is marked by #ifdef CONFIG_SD_BOOT.
Quoted 9 lines
arch/arm/include/asm/fsl_secure_boot.h line 118
Quoted 7 lines
arch/arm/include/asm/fsl_secure_boot.h +6
-0+#elif defined(CONFIG_QSPI_BOOT ) +#define CONFIG_BS_HDR_ADDR_DEVICE 0x40780000 +#define CONFIG_BS_ADDR_DEVICE 0x40800000 +#define CONFIG_BS_HDR_SIZE 0x00002000 +#define CONFIG_BS_SIZE 0x00001000 +#else /* elif defined(CONFIG_QSPI_BOOT) */ The code below is not for
QSPI_BOOT. Confusing comment.
I have put this comment to mark ending of QSPI_BOOT block as starting is marked by "#elif defined(CONFIG_QSPI_BOOT)".
Quoted 10 lines
arch/arm/include/asm/fsl_secure_boot.h line 123
Quoted 7 lines
arch/arm/include/asm/fsl_secure_boot.h +1
-1#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 /* Default NOR Boot */ I guess the above is for normal NOR boot. The comment should be moved above the block.
Here also comment marks ending of NOR boot block. I have just added these comments to avoid confusion.
Quoted 25 lines
Quoted 12 lines
arch/arm/include/asm/fsl_secure_boot.h +2
-0#define CONFIG_BS_HDR_ADDR_RAM 0x81000000#define CONFIG_BS_ADDR_RAM 0x81020000#endif @@ -125,12 +137,15 @@#ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP #ifdef CONFIG_LS1043A #define CONFIG_SYS_LS_PPA_ESBC_ADDR 0x600c0000 +#elif defined(CONFIG_LS1046A ) +#define CONFIG_SYS_LS_PPA_ESBC_ADDR 0x40740000#endif arch/arm/include/asm/fsl_secure_boot.h line 151
Quoted 10 lines
arch/arm/include/asm/fsl_secure_boot.h +2
-1#else #error "No CONFIG_SYS_LS_PPA_FW_IN_xxx defined"#endif /* ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP */ -/* Define the key hash here if SRK used for signing PPA image is +/* +* Define the key hash here if SRK used for signing PPA image is * different from SRK hash put in SFP used for U-Boot. * Example * #define CONFIG_PPA_KEY_HASH \ It would be better to separate the cosmetic change from the code change.
Quoted 1 line
York
Sure, I will remove these changes from this patch.
-Sumit
PATCH v2 2/3 LS1046AQDS: Add NOR Secure Boot Target
In reply to Sumit GargAdd NOR secure boot target. Also enable sec init.
---
Changes in v2:
Split patches logically from 2 to 3.
board/freescale/ls1046aqds/MAINTAINERS | 4 ++++ board/freescale/ls1046aqds/ls1046aqds.c | 18 ++++++++++++++++++ configs/ls1046aqds_SECURE_BOOT_defconfig | 29 +++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 configs/ls1046aqds_SECURE_BOOT_defconfig
board/freescale/ls1046aqds/MAINTAINERS +4 -0
@@ -8,3 +8,7 @@ F: configs/ls1046aqds_nand_defconfig F: configs/ls1046aqds_sdcard_ifc_defconfig F: configs/ls1046aqds_sdcard_qspi_defconfig F: configs/ls1046aqds_qspi_defconfig + +M: Sumit Garg <[email protected]> +S: Maintained +F: configs/ls1046aqds_SECURE_BOOT_defconfig
board/freescale/ls1046aqds/ls1046aqds.c +18 -0
@@ -20,6 +20,7 @@#include <fsl_csu.h> #include <fsl_esdhc.h> #include <fsl_ifc.h> +#include <fsl_sec.h> #include <spl.h> #include "../common/vid.h"
@@ -242,6 +243,23 @@ int board_init(void)if (adjust_vdd (0 ))printf ("Warning: Adjusting core voltage failed.\n" ); +#ifdef CONFIG_SECURE_BOOT +/* In case of Secure Boot, the IBR configures the SMMU +* to allow only Secure transactions. +* SMMU must be reset in bypass mode. +* Set the ClientPD bit and Clear the USFCFG Bit +*/ +u32 val; + val = (in_le32 (SMMU_SCR0 ) |SCR0_CLIENTPD_MASK ) & ~(SCR0_USFCFG_MASK ); +out_le32 (SMMU_SCR0 , val); + val = (in_le32 (SMMU_NSCR0 ) |SCR0_CLIENTPD_MASK ) & ~(SCR0_USFCFG_MASK ); +out_le32 (SMMU_NSCR0 , val); +#endif + +#ifdef CONFIG_FSL_CAAM +sec_init (); +#endif +return 0 ; }
configs/ls1046aqds_SECURE_BOOT_defconfig new file +29 -0
@@ -0,0 +1,29 @@ +CONFIG_ARM=y +CONFIG_TARGET_LS1046AQDS=y +CONFIG_DM_SPI=y +CONFIG_DEFAULT_DEVICE_TREE="fsl-ls1046a-qds-duart" +CONFIG_FIT=y +CONFIG_FIT_VERBOSE=y +CONFIG_OF_BOARD_SETUP=y +CONFIG_SYS_EXTRA_OPTIONS="SYS_FSL_DDR4, SECURE_BOOT" +CONFIG_BOOTDELAY=10 +CONFIG_HUSH_PARSER=y +CONFIG_CMD_BOOTZ=y +CONFIG_CMD_GREPENV=y +CONFIG_CMD_MEMTEST=y +CONFIG_CMD_MEMINFO=y +CONFIG_CMD_MMC=y +CONFIG_CMD_SF=y +CONFIG_CMD_I2C=y +CONFIG_CMD_DHCP=y +CONFIG_CMD_MII=y +CONFIG_CMD_PING=y +CONFIG_CMD_CACHE=y +CONFIG_CMD_EXT2=y +CONFIG_CMD_FAT=y +CONFIG_OF_CONTROL=y +CONFIG_DM=y +CONFIG_SPI_FLASH=y +CONFIG_SYS_NS16550=y +CONFIG_FSL_DSPI=y +CONFIG_RSA=y
Signature · 1 line
1.8.1.4
PATCH v2 2/3 LS1046AQDS: Add NOR Secure Boot Target
Quoted 40 lines · Sumit Garg
Add NOR secure boot target. Also enable sec init.
Signed-off-by Vinitha Pillai <[email protected]>Signed-off-by Sumit Garg <[email protected]>---
Changes in v2:
Split patches logically from 2 to 3.board/freescale/ls1046aqds/MAINTAINERS | 4 ++++ board/freescale/ls1046aqds/ls1046aqds.c | 18 ++++++++++++++++++ configs/ls1046aqds_SECURE_BOOT_defconfig | 29 +++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 configs/ls1046aqds_SECURE_BOOT_defconfigboard/freescale/ls1046aqds/MAINTAINERS +4
-0@@ -8,3 +8,7 @@ F: configs/ls1046aqds_nand_defconfig F: configs/ls1046aqds_sdcard_ifc_defconfig F: configs/ls1046aqds_sdcard_qspi_defconfig F: configs/ls1046aqds_qspi_defconfig + +M: Sumit Garg <[email protected]> +S: Maintained +F: configs/ls1046aqds_SECURE_BOOT_defconfigboard/freescale/ls1046aqds/ls1046aqds.c +1
-0@@ -20,6 +20,7 @@#include <fsl_csu.h> #include <fsl_esdhc.h> #include <fsl_ifc.h> +#include <fsl_sec.h> #include <spl.h> #include "../common/vid.h"
board/freescale/ls1046aqds/ls1046aqds.c int board_init(void) · line 251
Quoted 9 lines
board/freescale/ls1046aqds/ls1046aqds.c +6
-0@@ -242,6 +243,23 @@ int board_init(void)if (adjust_vdd (0 ))printf ("Warning: Adjusting core voltage failed.\n" ); +#ifdef CONFIG_SECURE_BOOT +/* In case of Secure Boot, the IBR configures the SMMU +* to allow only Secure transactions. +* SMMU must be reset in bypass mode. +* Set the ClientPD bit and Clear the USFCFG Bit +*/
Multiple-line comment in wrong format. You just fixed some in your first patch.
York
PATCH v2 2/3 LS1046AQDS: Add NOR Secure Boot Target
Quoted 64 lines
-----Original Message-----
From: york sun
Sent: Monday, November 14, 2016 11:23 PM
To: Sumit Garg <[email protected]>; u-boot at lists.denx.de
Cc: Ruchika Gupta <[email protected]>; Prabhakar Kushwaha <[email protected]>; Vini Pillai <[email protected]>
Subject: Re: [PATCH v2 2/3] LS1046AQDS: Add NOR Secure Boot TargetQuoted 43 lines · Sumit Garg
Add NOR secure boot target. Also enable sec init.
Signed-off-by Vinitha Pillai <[email protected]>Signed-off-by Sumit Garg <[email protected]>---
Changes in v2:
Split patches logically from 2 to 3.board/freescale/ls1046aqds/MAINTAINERS | 4 ++++ board/freescale/ls1046aqds/ls1046aqds.c | 18 ++++++++++++++++++ configs/ls1046aqds_SECURE_BOOT_defconfig | 29 +++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 configs/ls1046aqds_SECURE_BOOT_defconfigboard/freescale/ls1046aqds/MAINTAINERS +4
-0@@ -8,3 +8,7 @@ F: configs/ls1046aqds_nand_defconfig F: configs/ls1046aqds_sdcard_ifc_defconfig F: configs/ls1046aqds_sdcard_qspi_defconfig F: configs/ls1046aqds_qspi_defconfig + +M: Sumit Garg <[email protected]> +S: Maintained +F: configs/ls1046aqds_SECURE_BOOT_defconfigboard/freescale/ls1046aqds/ls1046aqds.c +1
-0@@ -20,6 +20,7 @@#include <fsl_csu.h> #include <fsl_esdhc.h> #include <fsl_ifc.h> +#include <fsl_sec.h> #include <spl.h> #include "../common/vid.h" board/freescale/ls1046aqds/ls1046aqds.c int board_init(void) · line 251
Quoted 9 lines
board/freescale/ls1046aqds/ls1046aqds.c +6
-0@@ -242,6 +243,23 @@ int board_init(void)if (adjust_vdd (0 ))printf ("Warning: Adjusting core voltage failed.\n" ); +#ifdef CONFIG_SECURE_BOOT +/* In case of Secure Boot, the IBR configures the SMMU +* to allow only Secure transactions. +* SMMU must be reset in bypass mode. +* Set the ClientPD bit and Clear the USFCFG Bit +*/ Multiple-line comment in wrong format. You just fixed some in your first patch.
Quoted 1 line
York
Sure I will fix this multi-line comment in next patch-set.
-Sumit