diff options
author | Bibek Basu <bibek.basu@stericsson.com> | 2011-02-09 11:02:35 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2011-03-28 08:47:17 +0200 |
commit | 0cb3fcd72cc3e6dd88f0e769746d294e5e6bafa9 (patch) | |
tree | ed04e6b37c1c92eb1e9b0aed99cc98a3b6193fc7 /include/linux/mfd/ab8500 | |
parent | 18bcd0c8cb7d85a9063b88ec810dc1cdc0974518 (diff) | |
download | op-kernel-dev-0cb3fcd72cc3e6dd88f0e769746d294e5e6bafa9.zip op-kernel-dev-0cb3fcd72cc3e6dd88f0e769746d294e5e6bafa9.tar.gz |
gpio: driver for 42 AB8500 GPIO pins
To get rid of port expanders, the free GPIOs of ab8500
can be used. There are 42 GPIO pins. Out of which 16
are interrupt capable.This patch implements 16 virtual
IRQ mapped to 16 interrupt capable AB8500 GPIOs.
Signed-off-by: Bibek Basu <bibek.basu@stericsson.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
[Renamed header file as per MFD structure]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/mfd/ab8500')
-rw-r--r-- | include/linux/mfd/ab8500/gpio.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/mfd/ab8500/gpio.h b/include/linux/mfd/ab8500/gpio.h new file mode 100644 index 0000000..488a8c9 --- /dev/null +++ b/include/linux/mfd/ab8500/gpio.h @@ -0,0 +1,21 @@ +/* + * Copyright ST-Ericsson 2010. + * + * Author: Bibek Basu <bibek.basu@stericsson.com> + * Licensed under GPLv2. + */ + +#ifndef _AB8500_GPIO_H +#define _AB8500_GPIO_H + +/* + * Platform data to register a block: only the initial gpio/irq number. + */ + +struct ab8500_gpio_platform_data { + int gpio_base; + u32 irq_base; + u8 config_reg[7]; +}; + +#endif /* _AB8500_GPIO_H */ |