X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-blackfin%2Fgpio.h;h=bc0cca02850b3f952936f942201ea7a8a8b28a5b;hb=669b792c77bbc30e9f4d9c95dbc918dc348c49c2;hp=d16fe3cd613583857231d37e6c8c12dc479ccd89;hpb=805f53f085346b6765eda02820721a14ce0d644f;p=pandora-kernel.git diff --git a/include/asm-blackfin/gpio.h b/include/asm-blackfin/gpio.h index d16fe3cd6135..bc0cca02850b 100644 --- a/include/asm-blackfin/gpio.h +++ b/include/asm-blackfin/gpio.h @@ -148,10 +148,6 @@ #ifdef BF537_FAMILY #define MAX_BLACKFIN_GPIOS 48 -#define PORT_F 0 -#define PORT_G 1 -#define PORT_H 2 -#define PORT_J 3 #define GPIO_PF0 0 #define GPIO_PF1 1 @@ -202,13 +198,21 @@ #define GPIO_PH14 46 #define GPIO_PH15 47 +#define PORT_F GPIO_PF0 +#define PORT_G GPIO_PG0 +#define PORT_H GPIO_PH0 + +#endif + +#ifdef BF548_FAMILY +#include #endif #ifdef BF561_FAMILY #define MAX_BLACKFIN_GPIOS 48 -#define PORT_FIO0 0 -#define PORT_FIO1 1 -#define PORT_FIO2 2 +#define PORT_FIO0 GPIO_0 +#define PORT_FIO1 GPIO_16 +#define PORT_FIO2 GPIO_32 #endif #ifndef __ASSEMBLY__ @@ -264,6 +268,7 @@ unsigned short get_gpiop_maska(unsigned short); unsigned short get_gpiop_maskb(unsigned short); unsigned short get_gpiop_data(unsigned short); +#ifndef BF548_FAMILY struct gpio_port_t { unsigned short data; unsigned short dummy1; @@ -299,6 +304,7 @@ struct gpio_port_t { unsigned short dummy16; unsigned short inen; }; +#endif #ifdef CONFIG_PM #define PM_WAKE_RISING 0x1 @@ -332,6 +338,7 @@ struct gpio_port_s { unsigned short inen; unsigned short fer; + unsigned short reserved; }; #endif /*CONFIG_PM*/