aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-blackfin/gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-blackfin/gpio.h')
-rw-r--r--include/asm-blackfin/gpio.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-blackfin/gpio.h b/include/asm-blackfin/gpio.h
index bc0cca02850b..e679703f7ae5 100644
--- a/include/asm-blackfin/gpio.h
+++ b/include/asm-blackfin/gpio.h
@@ -234,6 +234,7 @@
234* MODIFICATION HISTORY : 234* MODIFICATION HISTORY :
235**************************************************************/ 235**************************************************************/
236 236
237#ifndef BF548_FAMILY
237void set_gpio_dir(unsigned short, unsigned short); 238void set_gpio_dir(unsigned short, unsigned short);
238void set_gpio_inen(unsigned short, unsigned short); 239void set_gpio_inen(unsigned short, unsigned short);
239void set_gpio_polar(unsigned short, unsigned short); 240void set_gpio_polar(unsigned short, unsigned short);
@@ -268,7 +269,6 @@ unsigned short get_gpiop_maska(unsigned short);
268unsigned short get_gpiop_maskb(unsigned short); 269unsigned short get_gpiop_maskb(unsigned short);
269unsigned short get_gpiop_data(unsigned short); 270unsigned short get_gpiop_data(unsigned short);
270 271
271#ifndef BF548_FAMILY
272struct gpio_port_t { 272struct gpio_port_t {
273 unsigned short data; 273 unsigned short data;
274 unsigned short dummy1; 274 unsigned short dummy1;
@@ -363,8 +363,10 @@ void gpio_free(unsigned short);
363void gpio_set_value(unsigned short gpio, unsigned short arg); 363void gpio_set_value(unsigned short gpio, unsigned short arg);
364unsigned short gpio_get_value(unsigned short gpio); 364unsigned short gpio_get_value(unsigned short gpio);
365 365
366#ifndef BF548_FAMILY
366#define gpio_get_value(gpio) get_gpio_data(gpio) 367#define gpio_get_value(gpio) get_gpio_data(gpio)
367#define gpio_set_value(gpio, value) set_gpio_data(gpio, value) 368#define gpio_set_value(gpio, value) set_gpio_data(gpio, value)
369#endif
368 370
369void gpio_direction_input(unsigned short gpio); 371void gpio_direction_input(unsigned short gpio);
370void gpio_direction_output(unsigned short gpio); 372void gpio_direction_output(unsigned short gpio);