rk3066b: fix gpio usage

This commit is contained in:
黄涛
2012-08-28 09:35:26 +08:00
parent d928cf097f
commit 39fc3bc871
2 changed files with 3 additions and 3 deletions

View File

@@ -46,7 +46,7 @@ static struct map_desc rk30_io_desc[] __initdata = {
RK30_DEVICE(GPIO1),
RK30_DEVICE(GPIO2),
RK30_DEVICE(GPIO3),
#ifdef CONFIG_ARCH_RK30
#if !defined(CONFIG_ARCH_RK3066B)
RK30_DEVICE(GPIO4),
RK30_DEVICE(GPIO6),
#endif

View File

@@ -190,7 +190,7 @@ static noinline void rk30_pm_dump_irq(void)
printk("wakeup gpio2: %08x\n", readl_relaxed(RK30_GPIO2_BASE + GPIO_INT_STATUS));
if (irq_gpio & 8)
printk("wakeup gpio3: %08x\n", readl_relaxed(RK30_GPIO3_BASE + GPIO_INT_STATUS));
#ifdef CONFIG_ARCH_RK30
#if !defined(CONFIG_ARCH_RK3066B)
if (irq_gpio & 0x10)
printk("wakeup gpio4: %08x\n", readl_relaxed(RK30_GPIO4_BASE + GPIO_INT_STATUS));
if (irq_gpio & 0x40)
@@ -214,7 +214,7 @@ static noinline void rk30_pm_dump_inten(void)
DUMP_GPIO_INTEN(1);
DUMP_GPIO_INTEN(2);
DUMP_GPIO_INTEN(3);
#ifdef CONFIG_ARCH_RK30
#if !defined(CONFIG_ARCH_RK3066B)
DUMP_GPIO_INTEN(4);
DUMP_GPIO_INTEN(6);
#endif