armv8: ls1046aqds: added ppa support
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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH 2/2 armv8: ls1046aqds: enable ppa in default config
Quoted 10 lines · Yuantian Tang
Signed-off-by Tang Yuantian <[email protected]>--- 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
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
Signed-off-by Tang Yuantian <[email protected]>--- 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
PATCH 1/1 armv8: ls1046aqds: added ppa support
In reply to Yuantian TangQuoted 8 lines · Yuantian Tang
PPA is used on ls1046aqds to support sleep, hotplug feature. Add PPA support to enable them.
Signed-off-by Tang Yuantian <[email protected]>--- 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@@ -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