[U-Boot] [PATCHv4 6/7] ARMv8/ls1043ardb: Integrate FSL PPA
Zhiqiang Hou
Zhiqiang.Hou at nxp.com
Mon May 23 13:38:30 CEST 2016
From: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
---
V4:
- Reordered this patch.
- Added checking the returned value of func ppa_init_pre().
board/freescale/ls1043ardb/ls1043ardb.c | 12 ++++++++++++
include/configs/ls1043ardb.h | 9 +++++++++
2 files changed, 21 insertions(+)
diff --git a/board/freescale/ls1043ardb/ls1043ardb.c b/board/freescale/ls1043ardb/ls1043ardb.c
index ec5fdbf..47248ba 100644
--- a/board/freescale/ls1043ardb/ls1043ardb.c
+++ b/board/freescale/ls1043ardb/ls1043ardb.c
@@ -9,6 +9,7 @@
#include <asm/io.h>
#include <asm/arch/clock.h>
#include <asm/arch/fsl_serdes.h>
+#include <asm/arch/ppa.h>
#include <asm/arch/soc.h>
#include <fdt_support.h>
#include <hwconfig.h>
@@ -84,6 +85,10 @@ int board_early_init_f(void)
int board_init(void)
{
struct ccsr_cci400 *cci = (struct ccsr_cci400 *)CONFIG_SYS_CCI400_ADDR;
+#ifdef CONFIG_FSL_LS_PPA
+ u64 ppa_entry;
+ int ret;
+#endif
/*
* Set CCI-400 control override register to enable barrier
@@ -103,6 +108,13 @@ int board_init(void)
enable_layerscape_ns_access();
#endif
+#ifdef CONFIG_FSL_LS_PPA
+ ret = ppa_init_pre(&ppa_entry);
+
+ if (!ret && ppa_entry)
+ ppa_init_entry((void *)ppa_entry);
+#endif
+
#ifdef CONFIG_U_QE
u_qe_init();
#endif
diff --git a/include/configs/ls1043ardb.h b/include/configs/ls1043ardb.h
index 6d35be2..4d22b63 100644
--- a/include/configs/ls1043ardb.h
+++ b/include/configs/ls1043ardb.h
@@ -9,6 +9,15 @@
#include "ls1043a_common.h"
+#if defined(CONFIG_FSL_LS_PPA)
+#define CONFIG_SYS_LS_PPA_DRAM_BLOCK_MIN_SIZE (1UL * 1024 * 1024)
+
+#define CONFIG_SYS_LS_PPA_FW_IN_NOR
+#ifdef CONFIG_SYS_LS_PPA_FW_IN_NOR
+#define CONFIG_SYS_LS_PPA_FW_ADDR 0x60500000
+#endif
+#endif
+
#define CONFIG_DISPLAY_CPUINFO
#define CONFIG_DISPLAY_BOARDINFO
--
2.1.0.27.g96db324
More information about the U-Boot
mailing list