[U-Boot] [PATCH] board: freescale: ls2080a: Intergrate and enable PPA on LS2080A
Abhimanyu Saini
abhimanyu.saini at nxp.com
Thu Dec 29 05:22:02 CET 2016
Integrate and enable PPA on LS2080ARDB, LS2080AQDS, LS2088ARDB
and LS2088AQDS boards.
Signed-off-by: Abhimanyu Saini <abhimanyu.saini at nxp.com>
---
board/freescale/ls2080aqds/ls2080aqds.c | 6 ++++++
board/freescale/ls2080ardb/ls2080ardb.c | 6 ++++++
include/configs/ls2080aqds.h | 10 ++++++++++
include/configs/ls2080ardb.h | 10 ++++++++++
4 files changed, 32 insertions(+)
diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale/ls2080aqds/ls2080aqds.c
index 73a61fd..811b9a6 100644
--- a/board/freescale/ls2080aqds/ls2080aqds.c
+++ b/board/freescale/ls2080aqds/ls2080aqds.c
@@ -19,6 +19,9 @@
#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"
@@ -223,6 +226,9 @@ int board_init(void)
#endif
select_i2c_ch_pca9547(I2C_MUX_CH_DEFAULT);
rtc_enable_32khz_output();
+#ifdef CONFIG_FSL_LS_PPA
+ ppa_init();
+#endif
return 0;
}
diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c
index 02954ef..339fa78 100644
--- a/board/freescale/ls2080ardb/ls2080ardb.c
+++ b/board/freescale/ls2080ardb/ls2080ardb.c
@@ -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"
@@ -184,6 +187,9 @@ int board_init(void)
/* invert AQR405 IRQ pins polarity */
out_le32(irq_ccsr + IRQCR_OFFSET / 4, AQR405_IRQ_MASK);
#endif
+#ifdef CONFIG_FSL_LS_PPA
+ ppa_init();
+#endif
return 0;
}
diff --git a/include/configs/ls2080aqds.h b/include/configs/ls2080aqds.h
index 838568f..5573e94 100644
--- a/include/configs/ls2080aqds.h
+++ b/include/configs/ls2080aqds.h
@@ -14,6 +14,16 @@ unsigned long get_board_sys_clk(void);
unsigned long get_board_ddr_clk(void);
#endif
+#define CONFIG_FSL_LS_PPA
+#if defined(CONFIG_FSL_LS_PPA)
+#define CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT
+
+#define CONFIG_SYS_LS_PPA_FW_IN_XIP
+#ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP
+#define CONFIG_SYS_LS_PPA_FW_ADDR 0x580a00000
+#endif
+#endif
+
#define CONFIG_SYS_FSL_CLK
#ifdef CONFIG_FSL_QSPI
diff --git a/include/configs/ls2080ardb.h b/include/configs/ls2080ardb.h
index 31df781..d411a4f 100644
--- a/include/configs/ls2080ardb.h
+++ b/include/configs/ls2080ardb.h
@@ -12,6 +12,16 @@
#undef CONFIG_CONS_INDEX
#define CONFIG_CONS_INDEX 2
+#define CONFIG_FSL_LS_PPA
+#if defined(CONFIG_FSL_LS_PPA)
+#define CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT
+
+#define CONFIG_SYS_LS_PPA_FW_IN_XIP
+#ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP
+#define CONFIG_SYS_LS_PPA_FW_ADDR 0x580a00000
+#endif
+#endif
+
#define I2C_MUX_CH_VOL_MONITOR 0xa
#define I2C_VOL_MONITOR_ADDR 0x38
#define CONFIG_VOL_MONITOR_IR36021_READ
--
1.9.1
More information about the U-Boot
mailing list