Skip to contentSkip to conversation

armv8: ls1046aqds: added ppa support

PATCH New Yuantian Tang 2 participants 5 messages Mar 10, 2017 – Apr 19, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 armv8: ls1046aqds: added ppa support

PPA is used on ls1046aqds to support sleep, hotplug feature. Add PPA support to enable them.

---
 board/freescale/ls1046aqds/ls1046aqds.c |  5 +++++
 include/configs/ls1046aqds.h            | 11 +++++++++++
 2 files changed, 16 insertions(+)
board/freescale/ls1046aqds/ls1046aqds.c +5 -0
index af3f70a..470e61a 100644
@@ -22,6 +22,7 @@
 #include <fsl_esdhc.h>
 #include <fsl_ifc.h>
 #include <spl.h>
+#include <asm/arch/ppa.h>
 
 #include "../common/vid.h"
 #include "../common/qixis.h"
@@ -265,6 +266,10 @@ int board_init(void)
 	if (adjust_vdd(0))
 		printf("Warning: Adjusting core voltage failed.\n");
 
+#ifdef CONFIG_FSL_LS_PPA
+	ppa_init();
+#endif
+
 	return 0;
 }
 
include/configs/ls1046aqds.h +11 -0
index 4b3b21e..f8f74aa 100644
@@ -9,6 +9,17 @@
 
 #include "ls1046a_common.h"
 
+#if defined(CONFIG_FSL_LS_PPA)
+#define CONFIG_ARMV8_PSCI
+#define CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT
+#define SEC_FIRMWARE_ERET_ADDR_REVERT
+
+#define CONFIG_SYS_LS_PPA_FW_IN_XIP
+#ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP
+#define	CONFIG_SYS_LS_PPA_FW_ADDR	0x60500000
+#endif
+#endif
+
 #if defined(CONFIG_NAND_BOOT) || defined(CONFIG_SD_BOOT)
 #define CONFIG_SYS_TEXT_BASE		0x82000000
 #elif defined(CONFIG_QSPI_BOOT)
Signature · 1 line
2.1.0.27.g96db324
#1 lore raw

PATCH 2/2 armv8: ls1046aqds: enable ppa in default config

---
 configs/ls1046aqds_defconfig             | 1 +
 configs/ls1046aqds_lpuart_defconfig      | 1 +
 configs/ls1046aqds_nand_defconfig        | 1 +
 configs/ls1046aqds_qspi_defconfig        | 1 +
 configs/ls1046aqds_sdcard_ifc_defconfig  | 1 +
 configs/ls1046aqds_sdcard_qspi_defconfig | 1 +
 6 files changed, 6 insertions(+)
configs/ls1046aqds_defconfig +1 -0
index d6b8af2..cb0f164 100644
@@ -35,3 +35,4 @@ CONFIG_DM_SPI=y
 CONFIG_FSL_DSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_FSL_LS_PPA=y
configs/ls1046aqds_lpuart_defconfig +1 -0
index 20136a4..b481d90 100644
@@ -31,3 +31,4 @@ CONFIG_DM_SPI=y
 CONFIG_FSL_DSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_FSL_LS_PPA=y
configs/ls1046aqds_nand_defconfig +1 -0
index b23861c..c4e9c90 100644
@@ -40,3 +40,4 @@ CONFIG_DM_SPI=y
 CONFIG_FSL_DSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_FSL_LS_PPA=y
configs/ls1046aqds_qspi_defconfig +1 -0
index 45782be..0bbee81 100644
@@ -37,3 +37,4 @@ CONFIG_FSL_DSPI=y
 CONFIG_FSL_QSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_FSL_LS_PPA=y
configs/ls1046aqds_sdcard_ifc_defconfig +1 -0
index 3df92b2..c5ff822 100644
@@ -41,3 +41,4 @@ CONFIG_DM_SPI=y
 CONFIG_FSL_DSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_FSL_LS_PPA=y
configs/ls1046aqds_sdcard_qspi_defconfig +1 -0
index 998d2cf..34950ee 100644
@@ -42,3 +42,4 @@ CONFIG_FSL_DSPI=y
 CONFIG_FSL_QSPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
+CONFIG_FSL_LS_PPA=y
Signature · 1 line
2.1.0.27.g96db324
#4 lore raw

PATCH 1/1 armv8: ls1046aqds: added ppa support

In reply to Yuantian Tang
Quoted 8 lines · Yuantian Tang

PPA is used on ls1046aqds to support sleep, hotplug feature. Add PPA support to enable them.

---
 board/freescale/ls1046aqds/ls1046aqds.c |  5 +++++
 include/configs/ls1046aqds.h            | 11 +++++++++++
 2 files changed, 16 insertions(+)

<snip>

Quoted 13 lines
include/configs/ls1046aqds.h +4 -0
index 4b3b21e..f8f74aa 100644
@@ -9,6 +9,17 @@
 
 #include "ls1046a_common.h"
 
+#if defined(CONFIG_FSL_LS_PPA)
+#define CONFIG_ARMV8_PSCI
+#define CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT
+#define SEC_FIRMWARE_ERET_ADDR_REVERT

include/configs/ls1046aqds.h line 25

Quoted 10 lines
include/configs/ls1046aqds.h +7 -0
+
+#define CONFIG_SYS_LS_PPA_FW_IN_XIP
+#ifdef CONFIG_SYS_LS_PPA_FW_IN_XIP
+#define	CONFIG_SYS_LS_PPA_FW_ADDR	0x60500000
+#endif
+#endif
+
 #if defined(CONFIG_NAND_BOOT) || defined(CONFIG_SD_BOOT)
 #define CONFIG_SYS_TEXT_BASE		0x82000000
 #elif defined(CONFIG_QSPI_BOOT)

This is wrong! Please use Kconfig. The options are already there. You cannot select CONFIG_ARMV8_PSCI with PPA. Please consult Zhiqiang Hou if you have questions.

York

#2 lore raw

PATCH 2/2 armv8: ls1046aqds: enable ppa in default config

In reply to Yuantian Tang
Quoted 10 lines · Yuantian Tang
---
 configs/ls1046aqds_defconfig             | 1 +
 configs/ls1046aqds_lpuart_defconfig      | 1 +
 configs/ls1046aqds_nand_defconfig        | 1 +
 configs/ls1046aqds_qspi_defconfig        | 1 +
 configs/ls1046aqds_sdcard_ifc_defconfig  | 1 +
 configs/ls1046aqds_sdcard_qspi_defconfig | 1 +
 6 files changed, 6 insertions(+)

Applied to u-boot-fsl-qoriq master, awaiting upstream. Thanks. Please note, even this patch is applied, PPA for LS1046AQDS is not loaded until you add the support in board file. Please update your first patch in this set.

York

author
#3 lore raw

PATCH 2/2 armv8: ls1046aqds: enable ppa in default config

Hi York,

Thanks for you reminder.
Hou Ziqiang will continue to submit ppa patch for LS1046AQDS which will replace mine.

Regards,
Andy

-----Original Message-----
From: York Sun [mailto:york.sun at nxp.com]
Sent: Tuesday, April 18, 2017 11:46 PM
To: Andy Tang <[email protected]>
Cc: u-boot at lists.denx.de
Subject: Re: [PATCH 2/2] armv8: ls1046aqds: enable ppa in default config

Quoted 10 lines · Yuantian Tang
---
 configs/ls1046aqds_defconfig             | 1 +
 configs/ls1046aqds_lpuart_defconfig      | 1 +
 configs/ls1046aqds_nand_defconfig        | 1 +
 configs/ls1046aqds_qspi_defconfig        | 1 +
 configs/ls1046aqds_sdcard_ifc_defconfig  | 1 +  
configs/ls1046aqds_sdcard_qspi_defconfig | 1 +
 6 files changed, 6 insertions(+)

Applied to u-boot-fsl-qoriq master, awaiting upstream. Thanks.
Please note, even this patch is applied, PPA for LS1046AQDS is not loaded until you add the support in board file. Please update your first patch in this set.

York