diff --git a/arch/arm/cpu/armv8/Makefile b/arch/arm/cpu/armv8/Makefile index 28ba786..f19815b 100644 --- a/arch/arm/cpu/armv8/Makefile +++ b/arch/arm/cpu/armv8/Makefile @@ -22,6 +22,7 @@ endif obj-$(CONFIG_ARMV8_SEC_FIRMWARE_SUPPORT) += sec_firmware.o sec_firmware_asm.o obj-$(CONFIG_FSL_LAYERSCAPE) += fsl-layerscape/ +obj-$(CONFIG_BCM2837) += bcm2837/ obj-$(CONFIG_S32V234) += s32v234/ obj-$(CONFIG_ARCH_ZYNQMP) += zynqmp/ obj-$(CONFIG_TARGET_HIKEY) += hisilicon/ diff --git a/arch/arm/cpu/armv8/bcm2837/Makefile b/arch/arm/cpu/armv8/bcm2837/Makefile new file mode 100644 index 0000000..1ff5d6a --- /dev/null +++ b/arch/arm/cpu/armv8/bcm2837/Makefile @@ -0,0 +1,7 @@ +# +# Copyright 2014-2015, Freescale Semiconductor +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-$(CONFIG_ARMV8_PSCI) += bcm2837_psci.o diff --git a/arch/arm/cpu/armv8/bcm2837/bcm2837_psci.S b/arch/arm/cpu/armv8/bcm2837/bcm2837_psci.S new file mode 100644 index 0000000..560713d --- /dev/null +++ b/arch/arm/cpu/armv8/bcm2837/bcm2837_psci.S @@ -0,0 +1,20 @@ +/* + * Copyright 2016 Freescale Semiconductor, Inc. + * Author: Hongbo Zhang > + * + * SPDX-License-Identifier: GPL-2.0+ + * This file implements LS102X platform PSCI SYSTEM-SUSPEND function + */ + +#include +#include +#include + + .pushsection ._secure.text, "ax" + +.globl psci_version +psci_version: + ldr w0, =0x00000001 /* PSCI v0.1 */ + ret + + .popsection