diff options
author | James Hogan <james.hogan@imgtec.com> | 2013-06-25 10:27:43 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-07-20 13:00:44 -0400 |
commit | 9caf1f2202da2affedf0c9e3c1ccda8ea6d353e1 (patch) | |
tree | 09dbe80d481bddaa5677b47a1ffa0573e4776e22 /drivers/gpio/Kconfig | |
parent | ad81f0545ef01ea651886dddac4bef6cec930092 (diff) |
gpio-tz1090: add TZ1090 gpio driver
Add a GPIO driver for the main GPIOs found in the TZ1090 (Comet) SoC.
This doesn't include low-power GPIOs as they're controlled separately
via the Powerdown Controller (PDC) registers.
The driver is instantiated by device tree and supports interrupts for
all GPIOs.
Changes in v4:
- fix typos in DT bindings compatible properties
- reference Documentation/devicetree/bindings/gpio/gpio.txt in
gpio-ranges description in DT bindings
- fix gpio-ranges examples in DT bindings (it must now have 3 cells)
- gpio-tz1090: use of_property_read_u32 instead of of_get_property
Changes in v3:
- separated from irq-imgpdc and removed arch/metag changes to allow
these patches to go upstream separately via the pinctrl[/gpio] trees
(particularly the pinctrl drivers depend on the new pinconf DT
bindings).
- some s/unsigned/unsigned int/.
- some s/unsigned int/bool/ and use of BIT().
- gpio-tz1090*: refer to <dt-bindings/gpio/gpio.h> and
<dt-bindings/interrupt-controller/irq.h> flags in bindings.
- gpio-tz1090*: move initcall from postcore to subsys.
- gpio-tz1090: add REG_ prefix to some constants for consistency.
- gpio-tz1090: add comment to explain tz1090_gpio_irq_next_edge
cunningness.
Changes in v2:
- gpio-tz1090: remove references to Linux flags in dt bindings
- gpio-tz1090: make use of BIT() from linux/bitops.h
- gpio-tz1090: make register accessors inline to match pinctrl
- gpio-tz1090: update gpio-ranges to use 3 cells after recent ABI
breakage
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Rob Landley <rob@landley.net>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-doc@vger.kernel.org
Cc: devicetree-discuss@lists.ozlabs.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/Kconfig')
-rw-r--r-- | drivers/gpio/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index b2450ba14138..e9761641f149 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig | |||
@@ -242,6 +242,13 @@ config GPIO_TS5500 | |||
242 | blocks of the TS-5500: DIO1, DIO2 and the LCD port, and the TS-5600 | 242 | blocks of the TS-5500: DIO1, DIO2 and the LCD port, and the TS-5600 |
243 | LCD port. | 243 | LCD port. |
244 | 244 | ||
245 | config GPIO_TZ1090 | ||
246 | bool "Toumaz Xenif TZ1090 GPIO support" | ||
247 | depends on SOC_TZ1090 | ||
248 | default y | ||
249 | help | ||
250 | Say yes here to support Toumaz Xenif TZ1090 GPIOs. | ||
251 | |||
245 | config GPIO_XILINX | 252 | config GPIO_XILINX |
246 | bool "Xilinx GPIO support" | 253 | bool "Xilinx GPIO support" |
247 | depends on PPC_OF || MICROBLAZE || ARCH_ZYNQ | 254 | depends on PPC_OF || MICROBLAZE || ARCH_ZYNQ |