]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/gpio/at91_gpio.c
at91: add new gpio pin definitions
[karo-tx-uboot.git] / drivers / gpio / at91_gpio.c
index af0978675ea84c77399a4a3e7229a8dc8f4f3f83..8b766665c689727081eea1e4311498726c2287df 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/sizes.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/at91_pio.h>
+#include <asm/arch/gpio.h>
 
 static struct at91_port *at91_pio_get_port(unsigned port)
 {
@@ -356,9 +357,6 @@ int at91_get_pio_value(unsigned port, unsigned pin)
 
 /* Common GPIO API */
 
-#define at91_gpio_to_port(gpio)                (gpio / 32)
-#define at91_gpio_to_pin(gpio)         (gpio % 32)
-
 int gpio_request(unsigned gpio, const char *label)
 {
        return 0;