Commit 8cbc4178 authored by Marek Vasut's avatar Marek Vasut
Browse files

rcar_gen3: drivers: swdt: Access SCR in EL3


The code runs in EL3, use EL3 accessors to manipulate the interrupt bit.
Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
Showing with 4 additions and 0 deletions
+4 -0
......@@ -133,7 +133,11 @@ void rcar_swdt_release(void)
(ARM_IRQ_SEC_WDT & ~ITARGET_MASK);
uint32_t i;
/* Disable FIQ interrupt */
write_daifset(DAIF_FIQ_BIT);
/* FIQ interrupts are not taken to EL3 */
write_scr_el3(read_scr_el3() & ~SCR_FIQ_BIT);
swdt_disable();
gicv2_cpuif_disable();
......
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