mirror of
https://xff.cz/git/u-boot/
synced 2025-09-19 01:22:09 +02:00
ARMv8: LS1043A: Enable LS1043A default PSCI support
A most basic PSCI implementation with only one psci_version is added for LS1043A, this can verify the generic PSCI framework, and more platform specific implementation will be added later. Signed-off-by: Hongbo Zhang <hongbo.zhang@nxp.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
committed by
York Sun
parent
9a561753ce
commit
c151cb5b51
@@ -28,6 +28,7 @@ endif
|
|||||||
|
|
||||||
ifneq ($(CONFIG_LS1043A),)
|
ifneq ($(CONFIG_LS1043A),)
|
||||||
obj-$(CONFIG_SYS_HAS_SERDES) += ls1043a_serdes.o
|
obj-$(CONFIG_SYS_HAS_SERDES) += ls1043a_serdes.o
|
||||||
|
obj-$(CONFIG_ARMV8_PSCI) += ls1043a_psci.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(CONFIG_ARCH_LS1012A),)
|
ifneq ($(CONFIG_ARCH_LS1012A),)
|
||||||
|
20
arch/arm/cpu/armv8/fsl-layerscape/ls1043a_psci.S
Normal file
20
arch/arm/cpu/armv8/fsl-layerscape/ls1043a_psci.S
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2016 Freescale Semiconductor, Inc.
|
||||||
|
* Author: Hongbo Zhang <hongbo.zhang@nxp.com>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: GPL-2.0+
|
||||||
|
* This file implements LS102X platform PSCI SYSTEM-SUSPEND function
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
#include <linux/linkage.h>
|
||||||
|
#include <asm/psci.h>
|
||||||
|
|
||||||
|
.pushsection ._secure.text, "ax"
|
||||||
|
|
||||||
|
.globl psci_version
|
||||||
|
psci_version:
|
||||||
|
ldr w0, =0x00010000 /* PSCI v1.0 */
|
||||||
|
ret
|
||||||
|
|
||||||
|
.popsection
|
@@ -13,4 +13,13 @@ config SYS_SOC
|
|||||||
config SYS_CONFIG_NAME
|
config SYS_CONFIG_NAME
|
||||||
default "ls1043ardb"
|
default "ls1043ardb"
|
||||||
|
|
||||||
|
config SYS_HAS_ARMV8_SECURE_BASE
|
||||||
|
bool "Enable secure address for PSCI image"
|
||||||
|
depends on ARMV8_PSCI
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
PSCI image can be re-located to secure RAM.
|
||||||
|
If enabled, please also define the value for ARMV8_SECURE_BASE,
|
||||||
|
for LS1043ARDB, it could be some address in OCRAM.
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user