Commit dc03e843 authored by Marek Vasut's avatar Marek Vasut
Browse files

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: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
parent c6ae55cc
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment