[uboot-lantiq]
[openwrt/svn-archive/archive.git] / package / uboot-lantiq / files / board / arcadyan / board.c
index cf0cbce7d6d1d5f390eb01c932d3d955c30b1d49..005efbb0e4f3288c6fc02598a1bec6380fd9226a 100644 (file)
@@ -214,7 +214,13 @@ static void gpio_default(void)
                setenv("bootcmd", "httpd");
        }
 #endif
-
+#ifdef CONFIG_ARV4525
+       *DANUBE_GPIO_P0_ALTSEL0 &= ~((1<<4)|(1<<5)|(1<<6)|(1<<8)|(1<<9));
+       *DANUBE_GPIO_P0_ALTSEL1 &= ~((1<<4)|(1<<5)|(1<<6)|(1<<8)|(1<<9));
+       *DANUBE_GPIO_P0_OD |= ((1<<4)|(1<<5)|(1<<6)|(1<<8)|(1<<9));
+       *DANUBE_GPIO_P0_DIR |= ((1<<4)|(1<<5)|(1<<6)|(1<<8)|(1<<9));
+       *DANUBE_GPIO_P0_OUT &= ~((1<<4)|(1<<5)|(1<<6)|(1<<8)|(1<<9));
+#endif
 }
 
 int checkboard (void)