[adm5120] experimental gpiodev support (closes #3613)
[openwrt-10.03/.git] / target / linux / adm5120 / files / arch / mips / adm5120 / boards / zyxel.c
index 075661a8defc040fd6d036961541f46fd45f39ae..717c0733ab233c6f932ae30384b723e526d6a911 100644 (file)
@@ -22,6 +22,8 @@
 #include <adm5120_platform.h>
 #include <adm5120_irq.h>
 
+#define P33X_GPIO_DEV_MASK     (1 << ADM5120_GPIO_PIN5)
+
 static void switch_bank_gpio5(unsigned bank)
 {
        switch (bank) {
@@ -83,6 +85,7 @@ static void __init p33x_setup(void)
        adm5120_flash0_data.nr_parts = ARRAY_SIZE(p33x_partitions);
        adm5120_flash0_data.parts = p33x_partitions;
 
+       adm5120_gpiodev_resource.start &= ~P33X_GPIO_DEV_MASK;
        /* TODO: setup mac address */
 }