ar71xx: add a generic GPIO latch driver

It will be used for the Mikrotik boards.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39697
This commit is contained in:
Gabor Juhos
2014-02-22 18:05:29 +00:00
parent be18a3849b
commit ab08c40487
4 changed files with 256 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#ifndef _GPIO_LATCH_H_
#define _GPIO_LATCH_H_
#define GPIO_LATCH_DRIVER_NAME "gpio-latch"
struct gpio_latch_platform_data {
int base;
int num_gpios;
int *gpios;
int le_gpio_index;
bool le_active_low;
};
#endif /* _GPIO_LATCH_H_ */