diff options
author | Michal Simek <monstr@monstr.eu> | 2012-06-29 07:32:35 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2012-07-09 10:44:26 +0200 |
commit | d6afd6867cde809b667afb18af823cafc398873c (patch) | |
tree | 687badbb464f46724f0137c2014213ceb83254ed /arch/microblaze/include/asm | |
parent | 2cce2d32318e66e5b72b78ff99e0ccdffa12277b (diff) | |
download | u-boot-d6afd6867cde809b667afb18af823cafc398873c.tar.gz u-boot-d6afd6867cde809b667afb18af823cafc398873c.tar.bz2 u-boot-d6afd6867cde809b667afb18af823cafc398873c.zip |
microblaze: Add gpio.h
Gpio support is not implemented yet. Adding it because of fdtdec.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm')
-rw-r--r-- | arch/microblaze/include/asm/gpio.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/gpio.h b/arch/microblaze/include/asm/gpio.h new file mode 100644 index 0000000000..883f4d4665 --- /dev/null +++ b/arch/microblaze/include/asm/gpio.h @@ -0,0 +1,41 @@ +#ifndef _ASM_MICROBLAZE_GPIO_H_ +#define _ASM_MICROBLAZE_GPIO_H_ + +#include <asm/io.h> + +static inline int gpio_request(unsigned gpio, const char *label) +{ + return 0; +} + +static inline int gpio_free(unsigned gpio) +{ + return 0; +} + +static inline int gpio_direction_input(unsigned gpio) +{ + return 0; +} + +static inline int gpio_direction_output(unsigned gpio, int value) +{ + return 0; +} + +static inline int gpio_get_value(unsigned gpio) +{ + return 0; +} + +static inline int gpio_set_value(unsigned gpio, int value) +{ + return 0; +} + +static inline int gpio_is_valid(int number) +{ + return 0; +} +#endif + |