aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/Kconfig
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2010-03-05 16:44:33 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2010-03-06 14:26:48 -0500
commite952805d2d2e706aed182723e5ab3ec0b1f91de3 (patch)
tree5b4f9bfff6798f44fdea7c891ee911af2df5357b /drivers/gpio/Kconfig
parent5a98c04d78c896d52baef20ffc11f6d1ba6eb786 (diff)
gpio: add driver for MAX7300 I2C GPIO extender
Add the MAX7300-I2C variant of the MAX7301-SPI version. Both chips share the same core logic, so the generic part of the in-kernel SPI-driver is refactored into a generic part. The I2C and SPI specific funtions are then wrapped into seperate drivers picking up the generic part. Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Cc: Juergen Beisert <j.beisert@pengutronix.de> Cc: David Brownell <dbrownell@users.sourceforge.net> Cc: Jean Delvare <khali@linux-fr.org> Cc: Anton Vorontsov <avorontsov@ru.mvista.com> Cc: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/gpio/Kconfig')
-rw-r--r--drivers/gpio/Kconfig13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 1f1d88ae68d6..f3549b8779d8 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -65,6 +65,9 @@ config GPIO_SYSFS
65 65
66# put expanders in the right section, in alphabetical order 66# put expanders in the right section, in alphabetical order
67 67
68config GPIO_MAX730X
69 tristate
70
68comment "Memory mapped GPIO expanders:" 71comment "Memory mapped GPIO expanders:"
69 72
70config GPIO_PL061 73config GPIO_PL061
@@ -87,6 +90,13 @@ config GPIO_VR41XX
87 90
88comment "I2C GPIO expanders:" 91comment "I2C GPIO expanders:"
89 92
93config GPIO_MAX7300
94 tristate "Maxim MAX7300 GPIO expander"
95 depends on I2C
96 select GPIO_MAX730X
97 help
98 GPIO driver for Maxim MAX7301 I2C-based GPIO expander.
99
90config GPIO_MAX732X 100config GPIO_MAX732X
91 tristate "MAX7319, MAX7320-7327 I2C Port Expanders" 101 tristate "MAX7319, MAX7320-7327 I2C Port Expanders"
92 depends on I2C 102 depends on I2C
@@ -226,8 +236,9 @@ comment "SPI GPIO expanders:"
226config GPIO_MAX7301 236config GPIO_MAX7301
227 tristate "Maxim MAX7301 GPIO expander" 237 tristate "Maxim MAX7301 GPIO expander"
228 depends on SPI_MASTER 238 depends on SPI_MASTER
239 select GPIO_MAX730X
229 help 240 help
230 gpio driver for Maxim MAX7301 SPI GPIO expander. 241 GPIO driver for Maxim MAX7301 SPI-based GPIO expander.
231 242
232config GPIO_MCP23S08 243config GPIO_MCP23S08
233 tristate "Microchip MCP23S08 I/O expander" 244 tristate "Microchip MCP23S08 I/O expander"