diff options
author | Jamie Iles <jamie@jamieiles.com> | 2011-05-20 02:40:19 -0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-05-20 02:40:19 -0400 |
commit | 280df6b3c3ad777a91f1011cd98d50df891bfef8 (patch) | |
tree | 31a03f7c9a8b2e1f4abf26f8fcf46e90c09ccb88 /drivers/gpio/Kconfig | |
parent | e849dc044af0939135c822833092bc9baf480222 (diff) |
basic_mmio_gpio: split into a gpio library and platform device
Allow GPIO_BASIC_MMIO_CORE to be used to provide an accessor library
for implementing GPIO drivers whilst abstracting the register access
detail. Based on a patch from Anton Vorontsov[1] and adapted to allow
bgpio_chip to be embedded in another structure.
Changes since v1:
- Register the gpio_chip in the platform device probe
1. https://lkml.org/lkml/2011/4/19/401
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio/Kconfig')
-rw-r--r-- | drivers/gpio/Kconfig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 44235bd4f9dd..b57ec09af891 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig | |||
@@ -70,8 +70,14 @@ config GPIO_MAX730X | |||
70 | 70 | ||
71 | comment "Memory mapped GPIO drivers:" | 71 | comment "Memory mapped GPIO drivers:" |
72 | 72 | ||
73 | config GPIO_BASIC_MMIO_CORE | ||
74 | tristate | ||
75 | help | ||
76 | Provides core functionality for basic memory-mapped GPIO controllers. | ||
77 | |||
73 | config GPIO_BASIC_MMIO | 78 | config GPIO_BASIC_MMIO |
74 | tristate "Basic memory-mapped GPIO controllers support" | 79 | tristate "Basic memory-mapped GPIO controllers support" |
80 | select GPIO_BASIC_MMIO_CORE | ||
75 | help | 81 | help |
76 | Say yes here to support basic memory-mapped GPIO controllers. | 82 | Say yes here to support basic memory-mapped GPIO controllers. |
77 | 83 | ||