]> git.sur5r.net Git - u-boot/blobdiff - include/asm-arm/arch-at91/gpio.h
add c structures for SoC access
[u-boot] / include / asm-arm / arch-at91 / gpio.h
index e2d375b34c85da216cbaeb24111f8c954e36504f..bc531711c86de81ff46bfa2065d64915f1317423 100644 (file)
@@ -18,6 +18,8 @@
 #include <asm/arch/at91_pio.h>
 #include <asm/arch/hardware.h>
 
+#ifdef CONFIG_AT91_LEGACY
+
 #define PIN_BASE               32
 
 #define MAX_GPIO_BANKS         5
@@ -365,3 +367,4 @@ static inline int at91_get_gpio_value(unsigned pin)
 }
 
 #endif
+#endif