ARM: OMAP4: wakeupgen: Fix the typo in AUXCOREBOOT register save
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Thu, 13 Sep 2012 04:14:34 +0000 (21:14 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 13 Sep 2012 04:14:34 +0000 (21:14 -0700)
The wakeupgen context-save code reads AUXCOREBOOT0 register
instead of AUXCOREBOOT1 register contents while saving AUXCOREBOOT1.

Fix the same.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap-wakeupgen.c

index 05fdebfaa195b0e5fc87e33217f24ce1b5c09822..c3795c27a0b1a38811b4a50e2a6f062e151fbe07 100644 (file)
@@ -229,7 +229,7 @@ static inline void omap4_irq_save_context(void)
        /* Save AuxBoot* registers */
        val = __raw_readl(wakeupgen_base + OMAP_AUX_CORE_BOOT_0);
        __raw_writel(val, sar_base + AUXCOREBOOT0_OFFSET);
-       val = __raw_readl(wakeupgen_base + OMAP_AUX_CORE_BOOT_0);
+       val = __raw_readl(wakeupgen_base + OMAP_AUX_CORE_BOOT_1);
        __raw_writel(val, sar_base + AUXCOREBOOT1_OFFSET);
 
        /* Save SyncReq generation logic */