From 598e659900716591df76883299995cdd3581d58e Mon Sep 17 00:00:00 2001 From: Jonas Aaberg Date: Tue, 21 Jun 2011 10:33:16 +0200 Subject: ARM: ux500: pm: Use relaxed read/write for gic ST-Ericsson ID: - ST-Ericsson Linux next: ER338824 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Jonas Aaberg Change-Id: I5518c2dbefa417c9bc83d62d8ce19589bfd460ba Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/25547 Reviewed-by: QATEST Reviewed-by: Linus WALLEIJ --- arch/arm/mach-ux500/pm/pm.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-ux500/pm/pm.c b/arch/arm/mach-ux500/pm/pm.c index eff54dcd274..127d18792b4 100644 --- a/arch/arm/mach-ux500/pm/pm.c +++ b/arch/arm/mach-ux500/pm/pm.c @@ -81,16 +81,14 @@ bool ux500_pm_gic_pending_interrupt(void) /* 5 registers. STI & PPI not skipped */ for (i = 0; i < GIC_NUMBER_REGS; i++) { - pr = readl(__io_address(U8500_GIC_DIST_BASE) + - GIC_DIST_PENDING_SET + i * 4); - er = readl(__io_address(U8500_GIC_DIST_BASE) + - GIC_DIST_ENABLE_SET + i * 4); + pr = readl_relaxed(__io_address(U8500_GIC_DIST_BASE) + + GIC_DIST_PENDING_SET + i * 4); + er = readl_relaxed(__io_address(U8500_GIC_DIST_BASE) + + GIC_DIST_ENABLE_SET + i * 4); if (pr & er) return true; /* There is a pending interrupt */ - } - return false; } @@ -128,7 +126,7 @@ void ux500_pm_prcmu_copy_gic_settings(void) for (i = 0; i < GIC_NUMBER_SPI_REGS; i++) { /* 4*32 SPI interrupts */ /* +1 due to skip STI and PPI */ - er = readl(IO_ADDRESS(U8500_GIC_DIST_BASE) + + er = readl_relaxed(__io_address(U8500_GIC_DIST_BASE) + GIC_DIST_ENABLE_SET + (i + 1) * 4); writel(er, PRCM_ARMITMSK31TO0 + i * 4); } @@ -151,7 +149,7 @@ void ux500_pm_gpio_save_wake_up_status(void) nmk_gpio_clocks_enable(); for (i = 0; i < num_banks; i++) - ux500_gpio_wks[i] = readl(IO_ADDRESS(banks[i]) + NMK_GPIO_WKS); + ux500_gpio_wks[i] = readl(__io_address(banks[i]) + NMK_GPIO_WKS); nmk_gpio_clocks_disable(); } -- cgit v1.2.3