From ab08c4048738cba717aa3dd33f3c75f94f5948a3 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sat, 22 Feb 2014 18:05:29 +0000 Subject: ar71xx: add a generic GPIO latch driver It will be used for the Mikrotik boards. Signed-off-by: Gabor Juhos SVN-Revision: 39697 --- .../ar71xx/files/include/linux/platform_data/gpio-latch.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 target/linux/ar71xx/files/include/linux/platform_data/gpio-latch.h (limited to 'target/linux/ar71xx/files/include') diff --git a/target/linux/ar71xx/files/include/linux/platform_data/gpio-latch.h b/target/linux/ar71xx/files/include/linux/platform_data/gpio-latch.h new file mode 100644 index 0000000000..0450e679ec --- /dev/null +++ b/target/linux/ar71xx/files/include/linux/platform_data/gpio-latch.h @@ -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_ */ -- cgit v1.2.3