microblaze: Add gpio.h
authorMichal Simek <monstr@monstr.eu>
Fri, 29 Jun 2012 05:32:35 +0000 (07:32 +0200)
committerMichal Simek <monstr@monstr.eu>
Mon, 9 Jul 2012 08:44:26 +0000 (10:44 +0200)
Gpio support is not implemented yet. Adding it because of fdtdec.

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/include/asm/gpio.h [new file with mode: 0644]

diff --git a/arch/microblaze/include/asm/gpio.h b/arch/microblaze/include/asm/gpio.h
new file mode 100644 (file)
index 0000000..883f4d4
--- /dev/null
@@ -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
+