From f9a856ba9f558ec107f2793d68e93a75e4eddc22 Mon Sep 17 00:00:00 2001 From: Eleanor Bonnici <Eleanor.bonnici@arm.com> Date: Thu, 10 Aug 2017 14:26:36 +0100 Subject: [PATCH] HiKey: Rename CPUACTRL reg constants Constants named as *ACTLR* refer in fact to the CPUACTRL_EL1 register. Since ACTLR and ACTRL_EL1 are different registers this patch renames these constants for clarity. Change-Id: I2a9e402dab7b0fcb6e481ee0d8a11eda943ed299 Signed-off-by: Eleanor Bonnici <Eleanor.bonnici@arm.com> --- plat/hisilicon/hikey/hisi_pwrc_sram.S | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plat/hisilicon/hikey/hisi_pwrc_sram.S b/plat/hisilicon/hikey/hisi_pwrc_sram.S index f9e1de411..62542f2ca 100644 --- a/plat/hisilicon/hikey/hisi_pwrc_sram.S +++ b/plat/hisilicon/hikey/hisi_pwrc_sram.S @@ -19,11 +19,12 @@ func pm_asm_code _align=3 mov x0, 0 msr oslar_el1, x0 - mrs x0, CORTEX_A53_ACTLR_EL1 - bic x0, x0, #(CORTEX_A53_ACTLR_RADIS | CORTEX_A53_ACTLR_L1RADIS) + mrs x0, CORTEX_A53_CPUACTLR_EL1 + bic x0, x0, #(CORTEX_A53_CPUACTLR_EL1_RADIS | \ + CORTEX_A53_CPUACTLR_EL1_L1RADIS) orr x0, x0, #0x180000 orr x0, x0, #0xe000 - msr CORTEX_A53_ACTLR_EL1, x0 + msr CORTEX_A53_CPUACTLR_EL1, x0 mrs x3, actlr_el3 orr x3, x3, #ACTLR_EL3_L2ECTLR_BIT -- GitLab