All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] SECURE_BOOT: Define CONFIG_SYS_LS_PPA_ESBC_ADDR for LS2080A
@ 2017-02-03 17:23 Udit Agarwal
  2017-02-03 17:23 ` [U-Boot] [PATCH 2/2] LS2080A: Move sec_init to board_init Udit Agarwal
  2017-03-28 17:58 ` [U-Boot] [PATCH 1/2] SECURE_BOOT: Define CONFIG_SYS_LS_PPA_ESBC_ADDR for LS2080A york sun
  0 siblings, 2 replies; 5+ messages in thread
From: Udit Agarwal @ 2017-02-03 17:23 UTC (permalink / raw)
  To: u-boot

Add header address for PPA to be validated during ESBC phase for LS2080A
platform based on Layescape Chasis 3.

Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
Signed-off-by: Udit Agarwal <udit.agarwal@nxp.com>
---
 arch/arm/include/asm/fsl_secure_boot.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/include/asm/fsl_secure_boot.h b/arch/arm/include/asm/fsl_secure_boot.h
index f920215..27cf096 100644
--- a/arch/arm/include/asm/fsl_secure_boot.h
+++ b/arch/arm/include/asm/fsl_secure_boot.h
@@ -125,6 +125,8 @@
 #ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP
 #ifdef CONFIG_LS1043A
 #define CONFIG_SYS_LS_PPA_ESBC_ADDR	0x600c0000
+#elif defined(CONFIG_FSL_LSCH3)
+#define CONFIG_SYS_LS_PPA_ESBC_ADDR     0x580c40000
 #endif
 #else
 #error "No CONFIG_SYS_LS_PPA_FW_IN_xxx defined"
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 2/2] LS2080A: Move sec_init to board_init
  2017-02-03 17:23 [U-Boot] [PATCH 1/2] SECURE_BOOT: Define CONFIG_SYS_LS_PPA_ESBC_ADDR for LS2080A Udit Agarwal
@ 2017-02-03 17:23 ` Udit Agarwal
  2017-03-26 18:31   ` york sun
  2017-03-28 17:58   ` york sun
  2017-03-28 17:58 ` [U-Boot] [PATCH 1/2] SECURE_BOOT: Define CONFIG_SYS_LS_PPA_ESBC_ADDR for LS2080A york sun
  1 sibling, 2 replies; 5+ messages in thread
From: Udit Agarwal @ 2017-02-03 17:23 UTC (permalink / raw)
  To: u-boot

Moves sec_init to board_init rather than in misc_init function beacuse
PPA will be initialised in board_init function and for PPA validation
sec_init has to be done prior to PPA init.

Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
Signed-off-by: Udit Agarwal <udit.agarwal@nxp.com>
---
 board/freescale/ls2080aqds/ls2080aqds.c | 6 +++---
 board/freescale/ls2080ardb/ls2080ardb.c | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale/ls2080aqds/ls2080aqds.c
index 73a61fd..d9d0bea 100644
--- a/board/freescale/ls2080aqds/ls2080aqds.c
+++ b/board/freescale/ls2080aqds/ls2080aqds.c
@@ -223,6 +223,9 @@ int board_init(void)
 #endif
 	select_i2c_ch_pca9547(I2C_MUX_CH_DEFAULT);
 	rtc_enable_32khz_output();
+#ifdef CONFIG_FSL_CAAM
+        sec_init();
+#endif
 
 	return 0;
 }
@@ -264,9 +267,6 @@ int dram_init(void)
 #if defined(CONFIG_ARCH_MISC_INIT)
 int arch_misc_init(void)
 {
-#ifdef CONFIG_FSL_CAAM
-	sec_init();
-#endif
 	return 0;
 }
 #endif
diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c
index 02954ef..b0024d3 100644
--- a/board/freescale/ls2080ardb/ls2080ardb.c
+++ b/board/freescale/ls2080ardb/ls2080ardb.c
@@ -184,6 +184,9 @@ int board_init(void)
 	/* invert AQR405 IRQ pins polarity */
 	out_le32(irq_ccsr + IRQCR_OFFSET / 4, AQR405_IRQ_MASK);
 #endif
+#ifdef CONFIG_FSL_CAAM
+        sec_init();
+#endif
 
 	return 0;
 }
@@ -237,9 +240,6 @@ int dram_init(void)
 #if defined(CONFIG_ARCH_MISC_INIT)
 int arch_misc_init(void)
 {
-#ifdef CONFIG_FSL_CAAM
-	sec_init();
-#endif
 	return 0;
 }
 #endif
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 2/2] LS2080A: Move sec_init to board_init
  2017-02-03 17:23 ` [U-Boot] [PATCH 2/2] LS2080A: Move sec_init to board_init Udit Agarwal
@ 2017-03-26 18:31   ` york sun
  2017-03-28 17:58   ` york sun
  1 sibling, 0 replies; 5+ messages in thread
From: york sun @ 2017-03-26 18:31 UTC (permalink / raw)
  To: u-boot

On 02/03/2017 03:26 AM, Udit Agarwal wrote:
> Moves sec_init to board_init rather than in misc_init function beacuse
> PPA will be initialised in board_init function and for PPA validation
> sec_init has to be done prior to PPA init.
>
> Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
> Signed-off-by: Udit Agarwal <udit.agarwal@nxp.com>
> ---
>  board/freescale/ls2080aqds/ls2080aqds.c | 6 +++---
>  board/freescale/ls2080ardb/ls2080ardb.c | 6 +++---
>  2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale/ls2080aqds/ls2080aqds.c
> index 73a61fd..d9d0bea 100644
> --- a/board/freescale/ls2080aqds/ls2080aqds.c
> +++ b/board/freescale/ls2080aqds/ls2080aqds.c
> @@ -223,6 +223,9 @@ int board_init(void)
>  #endif
>  	select_i2c_ch_pca9547(I2C_MUX_CH_DEFAULT);
>  	rtc_enable_32khz_output();
> +#ifdef CONFIG_FSL_CAAM
> +        sec_init();
> +#endif

Use tab instead of space in the future. I will fix this one for you.

>
>  	return 0;
>  }
> @@ -264,9 +267,6 @@ int dram_init(void)
>  #if defined(CONFIG_ARCH_MISC_INIT)
>  int arch_misc_init(void)
>  {
> -#ifdef CONFIG_FSL_CAAM
> -	sec_init();
> -#endif
>  	return 0;
>  }
>  #endif
> diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c
> index 02954ef..b0024d3 100644
> --- a/board/freescale/ls2080ardb/ls2080ardb.c
> +++ b/board/freescale/ls2080ardb/ls2080ardb.c
> @@ -184,6 +184,9 @@ int board_init(void)
>  	/* invert AQR405 IRQ pins polarity */
>  	out_le32(irq_ccsr + IRQCR_OFFSET / 4, AQR405_IRQ_MASK);
>  #endif
> +#ifdef CONFIG_FSL_CAAM
> +        sec_init();
> +#endif

Same here.

York

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 1/2] SECURE_BOOT: Define CONFIG_SYS_LS_PPA_ESBC_ADDR for LS2080A
  2017-02-03 17:23 [U-Boot] [PATCH 1/2] SECURE_BOOT: Define CONFIG_SYS_LS_PPA_ESBC_ADDR for LS2080A Udit Agarwal
  2017-02-03 17:23 ` [U-Boot] [PATCH 2/2] LS2080A: Move sec_init to board_init Udit Agarwal
@ 2017-03-28 17:58 ` york sun
  1 sibling, 0 replies; 5+ messages in thread
From: york sun @ 2017-03-28 17:58 UTC (permalink / raw)
  To: u-boot

On 02/03/2017 03:26 AM, Udit Agarwal wrote:
> Add header address for PPA to be validated during ESBC phase for LS2080A
> platform based on Layescape Chasis 3.
>
> Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
> Signed-off-by: Udit Agarwal <udit.agarwal@nxp.com>
> ---

Applied to fsl-qoriq master, awaiting upstream.

Thanks.

York

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 2/2] LS2080A: Move sec_init to board_init
  2017-02-03 17:23 ` [U-Boot] [PATCH 2/2] LS2080A: Move sec_init to board_init Udit Agarwal
  2017-03-26 18:31   ` york sun
@ 2017-03-28 17:58   ` york sun
  1 sibling, 0 replies; 5+ messages in thread
From: york sun @ 2017-03-28 17:58 UTC (permalink / raw)
  To: u-boot

On 02/03/2017 03:26 AM, Udit Agarwal wrote:
> Moves sec_init to board_init rather than in misc_init function beacuse
> PPA will be initialised in board_init function and for PPA validation
> sec_init has to be done prior to PPA init.
>
> Signed-off-by: Sumit Garg <sumit.garg@nxp.com>
> Signed-off-by: Udit Agarwal <udit.agarwal@nxp.com>
> ---

Applied to fsl-qoriq master, awaiting upstream.

Thanks.

York

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-28 17:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-03 17:23 [U-Boot] [PATCH 1/2] SECURE_BOOT: Define CONFIG_SYS_LS_PPA_ESBC_ADDR for LS2080A Udit Agarwal
2017-02-03 17:23 ` [U-Boot] [PATCH 2/2] LS2080A: Move sec_init to board_init Udit Agarwal
2017-03-26 18:31   ` york sun
2017-03-28 17:58   ` york sun
2017-03-28 17:58 ` [U-Boot] [PATCH 1/2] SECURE_BOOT: Define CONFIG_SYS_LS_PPA_ESBC_ADDR for LS2080A york sun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.