From dc03e8438f5cb1bcc077850649016e739c4677d9 Mon Sep 17 00:00:00 2001 From: Marek Vasut <marek.vasut+renesas@gmail.com> Date: Thu, 27 Dec 2018 20:26:01 +0100 Subject: [PATCH] rcar_gen3: drivers: auth-mod: Access SCTLR in EL3 The code runs in EL3, use EL3 accessors to manipulate the cache bits. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> --- drivers/renesas/rcar/auth/auth_mod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/renesas/rcar/auth/auth_mod.c b/drivers/renesas/rcar/auth/auth_mod.c index d9446d95e..f7d8ec08a 100644 --- a/drivers/renesas/rcar/auth/auth_mod.c +++ b/drivers/renesas/rcar/auth/auth_mod.c @@ -113,7 +113,7 @@ verify_image: } #if RCAR_BL2_DCACHE == 1 /* clean and disable */ - write_sctlr_el1(read_sctlr_el1() & ~SCTLR_C_BIT); + write_sctlr_el3(read_sctlr_el3() & ~SCTLR_C_BIT); dcsw_op_all(DCCISW); #endif ret = (mmio_read_32(RCAR_BOOT_KEY_CERT_NEW) == RCAR_CERT_MAGIC_NUM) ? @@ -124,7 +124,7 @@ verify_image: #if RCAR_BL2_DCACHE == 1 /* enable */ - write_sctlr_el1(read_sctlr_el1() | SCTLR_C_BIT); + write_sctlr_el3(read_sctlr_el3() | SCTLR_C_BIT); #endif #endif -- GitLab