rk2928: tps65910: fix 'pmic sleep io error'
authorkfx <kfx@rock-chips.com>
Fri, 19 Oct 2012 08:37:28 +0000 (16:37 +0800)
committerkfx <kfx@rock-chips.com>
Fri, 19 Oct 2012 08:37:28 +0000 (16:37 +0800)
arch/arm/mach-rk2928/board-rk2928-sdk-tps65910.c

index b79c8ce8f3bb0897810b5974f3c5fed5342d0a58..d64688fff92243172999e3b480cd3b6619221aa6 100755 (executable)
@@ -46,7 +46,7 @@ static int sram_gpio_init(int gpio, struct sram_gpio_data *data)
 static __sramfunc void sram_gpio_set_value(struct sram_gpio_data data, uint value)
 {
        writel_relaxed(readl_relaxed(data.base + GPIO_SWPORTA_DDR)| (1<<data.offset),
-                       data.offset + GPIO_SWPORTA_DDR);
+                       data.base + GPIO_SWPORTA_DDR);
        if(value)
                writel_relaxed(readl_relaxed(data.base + GPIO_SWPORTA_DR) | (1<<data.offset),
                                data.base + GPIO_SWPORTA_DR);