board: freescale: ls2080a/ls2088a: Enable PPA
PATCH v2 1/1 board: freescale: ls2080a/ls2088a: Enable PPA
Enable PPA on LS2080A, LS2088A boards:
-LS2080ARDB, LS2080AQDS
-LS2088ARDB, LS2088AQDS
---
Changes for v2:
Changed the subject
Made changes based on latest ppa config
arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 + board/freescale/ls2080aqds/ls2080aqds.c | 8 ++++++++ board/freescale/ls2080ardb/ls2080ardb.c | 7 +++++++ configs/ls2080aqds_defconfig | 1 + configs/ls2080ardb_defconfig | 1 + 5 files changed, 18 insertions(+)
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +1 -0
@@ -136,6 +136,7 @@ config SYS_LS_PPA_FW_ADDR hex "Address of PPA firmware loading from" depends on FSL_LS_PPA default 0x40500000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT + default 0x580a00000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A default 0x60500000 if SYS_LS_PPA_FW_IN_XIP help If the PPA firmware locate at XIP flash, such as NOR or
board/freescale/ls2080aqds/ls2080aqds.c +8 -0
@@ -19,6 +19,10 @@#include <asm/arch/soc.h> #include <hwconfig.h> #include <fsl_sec.h> +#ifdef CONFIG_FSL_LS_PPA +#include <asm/arch/ppa.h> +#endif +#include "../common/qixis.h" #include "ls2080aqds_qixis.h"
@@ -224,6 +228,10 @@ int board_init(void)select_i2c_ch_pca9547 (I2C_MUX_CH_DEFAULT );rtc_enable_32khz_output (); +#ifdef CONFIG_FSL_LS_PPA +ppa_init (); +#endif +return 0 ; }
board/freescale/ls2080ardb/ls2080ardb.c +7 -0
@@ -19,6 +19,9 @@#include <i2c.h> #include <asm/arch/soc.h> #include <fsl_sec.h> +#ifdef CONFIG_FSL_LS_PPA +#include <asm/arch/ppa.h> +#endif #include "../common/qixis.h" #include "ls2080ardb_qixis.h"
@@ -180,6 +183,10 @@ int board_init(void)QIXIS_WRITE (rst_ctl,QIXIS_RST_CTL_RESET_EN ); +#ifdef CONFIG_FSL_LS_PPA +ppa_init (); +#endif +#ifdef CONFIG_FSL_MC_ENET /* invert AQR405 IRQ pins polarity */ out_le32 (irq_ccsr +IRQCR_OFFSET /4 ,AQR405_IRQ_MASK );
configs/ls2080aqds_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_TARGET_LS2080AQDS=y +CONFIG_FSL_LS_PPA=y CONFIG_DEFAULT_DEVICE_TREE="fsl-ls2080a-qds" # CONFIG_SYS_MALLOC_F is not set CONFIG_FIT=y
configs/ls2080ardb_defconfig +1 -0
@@ -1,5 +1,6 @@ CONFIG_ARM=y CONFIG_TARGET_LS2080ARDB=y +CONFIG_FSL_LS_PPA=y CONFIG_DEFAULT_DEVICE_TREE="fsl-ls2080a-rdb" # CONFIG_SYS_MALLOC_F is not set CONFIG_FIT=y
Signature · 1 line
1.9.1
PATCH v2 1/1 board: freescale: ls2080a/ls2088a: Enable PPA
Quoted 47 lines · Santan Kumar
Enable PPA on LS2080A, LS2088A boards:
(quoted diff) +0
-2-LS2080ARDB, LS2080AQDS -LS2088ARDB, LS2088AQDSSigned-off-by Santan Kumar <[email protected]>Signed-off-by Abhimanyu Saini <[email protected]>Signed-off-by Priyanka Jain <[email protected]>---
Changes for v2:
Changed the subject
Made changes based on latest ppa configarch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 + board/freescale/ls2080aqds/ls2080aqds.c | 8 ++++++++ board/freescale/ls2080ardb/ls2080ardb.c | 7 +++++++ configs/ls2080aqds_defconfig | 1 + configs/ls2080ardb_defconfig | 1 + 5 files changed, 18 insertions(+)arch/arm/cpu/armv8/fsl-layerscape/Kconfig +1
-0@@ -136,6 +136,7 @@ config SYS_LS_PPA_FW_ADDR hex "Address of PPA firmware loading from" depends on FSL_LS_PPA default 0x40500000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT + default 0x580a00000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A default 0x60500000 if SYS_LS_PPA_FW_IN_XIP help If the PPA firmware locate at XIP flash, such as NOR orboard/freescale/ls2080aqds/ls2080aqds.c +4
-0@@ -19,6 +19,10 @@#include <asm/arch/soc.h> #include <hwconfig.h> #include <fsl_sec.h> +#ifdef CONFIG_FSL_LS_PPA +#include <asm/arch/ppa.h> +#endif +#include "../common/qixis.h" #include "ls2080aqds_qixis.h"
board/freescale/ls2080aqds/ls2080aqds.c int board_init(void) · line 234
Quoted 7 lines
board/freescale/ls2080aqds/ls2080aqds.c +4
-0@@ -224,6 +228,10 @@ int board_init(void)select_i2c_ch_pca9547 (I2C_MUX_CH_DEFAULT );rtc_enable_32khz_output (); +#ifdef CONFIG_FSL_LS_PPA +ppa_init (); +#endif +
Does it matter if ppa_init() runs first, or sec_init() runs first? I am trying to resolve a conflict.
York
PATCH v2 1/1 board: freescale: ls2080a/ls2088a: Enable PPA
Quoted 71 lines
-----Original Message-----
From: york sun
Sent: Saturday, March 25, 2017 11:05 PM
To: Santan Kumar <[email protected]>; u-boot at lists.denx.de
Cc: Abhimanyu Saini <[email protected]>; Priyanka Jain <[email protected]>
Subject: Re: [PATCH][v2]board: freescale: ls2080a/ls2088a: Enable PPAQuoted 49 lines · Santan Kumar
Enable PPA on LS2080A, LS2088A boards:
(quoted diff) +0
-2-LS2080ARDB, LS2080AQDS -LS2088ARDB, LS2088AQDSSigned-off-by Santan Kumar <[email protected]>Signed-off-by Abhimanyu Saini <[email protected]>Signed-off-by Priyanka Jain <[email protected]>---
Changes for v2:
Changed the subject
Made changes based on latest ppa configarch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 + board/freescale/ls2080aqds/ls2080aqds.c | 8 ++++++++ board/freescale/ls2080ardb/ls2080ardb.c | 7 +++++++ configs/ls2080aqds_defconfig | 1 + configs/ls2080ardb_defconfig | 1 + 5 files changed, 18 insertions(+)arch/arm/cpu/armv8/fsl-layerscape/Kconfig +1
-0@@ -136,6 +136,7 @@ config SYS_LS_PPA_FW_ADDR hex "Address of PPA firmware loading from" depends on FSL_LS_PPA default 0x40500000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT + default 0x580a00000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A default 0x60500000 if SYS_LS_PPA_FW_IN_XIP help If the PPA firmware locate at XIP flash, such as NOR or diff --git
a/board/freescale/ls2080aqds/ls2080aqds.cb/board/freescale/ls2080aqds/ls2080aqds.c
index 73a61fd..894dc74 100644board/freescale/ls2080aqds/ls2080aqds.c +4
-0@@ -19,6 +19,10 @@#include <asm/arch/soc.h> #include <hwconfig.h> #include <fsl_sec.h> +#ifdef CONFIG_FSL_LS_PPA +#include <asm/arch/ppa.h> +#endif +#include "../common/qixis.h" #include "ls2080aqds_qixis.h" board/freescale/ls2080aqds/ls2080aqds.c int board_init(void) · line 234
Quoted 7 lines
board/freescale/ls2080aqds/ls2080aqds.c +4
-0@@ -224,6 +228,10 @@ int board_init(void)select_i2c_ch_pca9547 (I2C_MUX_CH_DEFAULT );rtc_enable_32khz_output (); +#ifdef CONFIG_FSL_LS_PPA +ppa_init (); +#endif +Does it matter if
ppa_init()runs first, orsec_init()runs first? I am trying to resolve a conflict.
Quoted 1 line
York
[Santan Kumar] sec_init() needs to run first then ppa_init() will run.
york sun
AppliedPATCH v2 1/1 board: freescale: ls2080a/ls2088a: Enable PPA
In reply to Santan KumarQuoted 11 lines · Santan Kumar
Enable PPA on LS2080A, LS2088A boards:
(quoted diff) +0
-2-LS2080ARDB, LS2080AQDS -LS2088ARDB, LS2088AQDSSigned-off-by Santan Kumar <[email protected]>Signed-off-by Abhimanyu Saini <[email protected]>Signed-off-by Priyanka Jain <[email protected]>---
Changes for v2:
Changed the subject
Made changes based on latest ppa config
Applied to fsl-qoriq master, awaiting upstream. Thanks.
York