[U-Boot] [PATCH 2/2] armv8: ls1012a: Add support of PPA

york sun york.sun at nxp.com
Wed Jan 4 23:12:51 CET 2017


On 12/15/2016 02:10 AM, Prabhakar Kushwaha wrote:
> The PPA implements PSCI which requires for power managment.
>
> Added support of PPA for LS1012AQDS, LS1012ARDB and LS1012AFRDM.
>
> Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou at nxp.com>
> Signed-off-by: Abhimanyu Saini <abhimanyu.saini at nxp.com>
> Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha at nxp.com>
> ---
>  board/freescale/ls1012afrdm/ls1012afrdm.c |  6 ++++++
>  board/freescale/ls1012aqds/ls1012aqds.c   |  7 +++++++
>  board/freescale/ls1012ardb/ls1012ardb.c   |  6 ++++++
>  include/configs/ls1012afrdm.h             | 11 +++++++++++
>  include/configs/ls1012aqds.h              | 11 +++++++++++
>  include/configs/ls1012ardb.h              | 11 +++++++++++
>  6 files changed, 52 insertions(+)
>
> diff --git a/board/freescale/ls1012afrdm/ls1012afrdm.c b/board/freescale/ls1012afrdm/ls1012afrdm.c
> index c2432c3..789cae2 100644
> --- a/board/freescale/ls1012afrdm/ls1012afrdm.c
> +++ b/board/freescale/ls1012afrdm/ls1012afrdm.c
> @@ -9,6 +9,9 @@
>  #include <asm/io.h>
>  #include <asm/arch/clock.h>
>  #include <asm/arch/fsl_serdes.h>
> +#ifdef CONFIG_FSL_LS_PPA
> +#include <asm/arch/ppa.h>
> +#endif
>  #include <asm/arch/soc.h>
>  #include <hwconfig.h>
>  #include <environment.h>
> @@ -74,6 +77,9 @@ int board_init(void)
>  	gd->env_addr = (ulong)&default_environment[0];
>  #endif
>
> +#ifdef CONFIG_FSL_LS_PPA
> +	ppa_init();
> +#endif
>  	return 0;
>  }
>
> diff --git a/board/freescale/ls1012aqds/ls1012aqds.c b/board/freescale/ls1012aqds/ls1012aqds.c
> index 1562edd..7283d15 100644
> --- a/board/freescale/ls1012aqds/ls1012aqds.c
> +++ b/board/freescale/ls1012aqds/ls1012aqds.c
> @@ -10,6 +10,9 @@
>  #include <asm/io.h>
>  #include <asm/arch/clock.h>
>  #include <asm/arch/fsl_serdes.h>
> +#ifdef CONFIG_FSL_LS_PPA
> +#include <asm/arch/ppa.h>
> +#endif
>  #include <asm/arch/fdt.h>
>  #include <asm/arch/soc.h>
>  #include <ahci.h>
> @@ -114,6 +117,10 @@ int board_init(void)
>  #ifdef CONFIG_ENV_IS_NOWHERE
>  	gd->env_addr = (ulong)&default_environment[0];
>  #endif
> +
> +#ifdef CONFIG_FSL_LS_PPA
> +	ppa_init();
> +#endif
>  	return 0;
>  }
>
> diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ardb/ls1012ardb.c
> index bc05fbe..fbd4bc4 100644
> --- a/board/freescale/ls1012ardb/ls1012ardb.c
> +++ b/board/freescale/ls1012ardb/ls1012ardb.c
> @@ -9,6 +9,9 @@
>  #include <asm/io.h>
>  #include <asm/arch/clock.h>
>  #include <asm/arch/fsl_serdes.h>
> +#ifdef CONFIG_FSL_LS_PPA
> +#include <asm/arch/ppa.h>
> +#endif
>  #include <asm/arch/soc.h>
>  #include <hwconfig.h>
>  #include <ahci.h>
> @@ -110,6 +113,9 @@ int board_init(void)
>  	gd->env_addr = (ulong)&default_environment[0];
>  #endif
>
> +#ifdef CONFIG_FSL_LS_PPA
> +	ppa_init();
> +#endif
>  	return 0;
>  }
>
> diff --git a/include/configs/ls1012afrdm.h b/include/configs/ls1012afrdm.h
> index f6f88e8..cf5d07c 100644
> --- a/include/configs/ls1012afrdm.h
> +++ b/include/configs/ls1012afrdm.h
> @@ -9,6 +9,17 @@
>
>  #include "ls1012a_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	0x40500000
> +#endif
> +#endif
> +
>  /* DDR */
>  #define CONFIG_DIMM_SLOTS_PER_CTLR	1
>  #define CONFIG_CHIP_SELECTS_PER_CTRL	1
> diff --git a/include/configs/ls1012aqds.h b/include/configs/ls1012aqds.h
> index 0cc1791..8eeafa7 100644
> --- a/include/configs/ls1012aqds.h
> +++ b/include/configs/ls1012aqds.h
> @@ -9,6 +9,17 @@
>
>  #include "ls1012a_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	0x40500000
> +#endif
> +#endif
> +
>  /* DDR */
>  #define CONFIG_DIMM_SLOTS_PER_CTLR	1
>  #define CONFIG_CHIP_SELECTS_PER_CTRL	1
> diff --git a/include/configs/ls1012ardb.h b/include/configs/ls1012ardb.h
> index 15410dd..04865ec 100644
> --- a/include/configs/ls1012ardb.h
> +++ b/include/configs/ls1012ardb.h
> @@ -9,6 +9,17 @@
>
>  #include "ls1012a_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	0x40500000
> +#endif
> +#endif
> +
>  /* DDR */
>  #define CONFIG_DIMM_SLOTS_PER_CTLR	1
>  #define CONFIG_CHIP_SELECTS_PER_CTRL	1
>

We need to sync with Zhiqiang to see what will be done for this patch 
http://patchwork.ozlabs.org/patch/681097/

York


More information about the U-Boot mailing list