Michal Simek | d6afd68 | 2012-06-29 07:32:35 +0200 | [diff] [blame] | 1 | #ifndef _ASM_MICROBLAZE_GPIO_H_ |
| 2 | #define _ASM_MICROBLAZE_GPIO_H_ |
| 3 | |
Michal Simek | 4e779ad | 2013-04-24 10:01:20 +0200 | [diff] [blame] | 4 | #include <asm-generic/gpio.h> |
Michal Simek | d6afd68 | 2012-06-29 07:32:35 +0200 | [diff] [blame] | 5 | |
Michal Simek | 4e779ad | 2013-04-24 10:01:20 +0200 | [diff] [blame] | 6 | /* Allocation functions */ |
| 7 | extern int gpio_alloc_dual(u32 baseaddr, const char *name, u32 gpio_no0, |
| 8 | u32 gpio_no1); |
| 9 | extern int gpio_alloc(u32 baseaddr, const char *name, u32 gpio_no); |
Michal Simek | d6afd68 | 2012-06-29 07:32:35 +0200 | [diff] [blame] | 10 | |
Michal Simek | 4e779ad | 2013-04-24 10:01:20 +0200 | [diff] [blame] | 11 | #define gpio_status() gpio_info() |
| 12 | extern void gpio_info(void); |
Michal Simek | d6afd68 | 2012-06-29 07:32:35 +0200 | [diff] [blame] | 13 | |
Michal Simek | d6afd68 | 2012-06-29 07:32:35 +0200 | [diff] [blame] | 14 | #endif |