]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: Add GPIO support for Broadcom STB SoCs
authorGregory Fong <gregory.0xf0@gmail.com>
Fri, 29 May 2015 02:14:05 +0000 (19:14 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 2 Jun 2015 13:36:22 +0000 (15:36 +0200)
commit1be1b2b4e293fdd9a19f2de93f2ef2a52291f9d7
treeb10d05e9b27b55e6952aac5da70f352040b78c3f
parent5d6365266ba9867254a89fcf825a9fac79b5fba7
gpio: Add GPIO support for Broadcom STB SoCs

This adds support for the GPIO IP "UPG GIO" used on
Broadcom STB SoCs (BCM7XXX and some others). Uses
basic_mmio_gpio to instantiate a gpio_chip for each bank.
The driver assumes that it handles the base set of GPIOs
on the system and that it can start its numbering sequence
from 0, so any GPIO expanders used with it must dynamically
assign GPIO numbers after this driver has finished
registering its GPIOs.

Does not implement the interrupt-controller portion yet,
will be done in a future commit.

v2:
- change include to use <linux/gpio/driver.h> instead of
  <linux/gpio.h>
- get rid of unnecessary imask member in struct bank
- rename GPIO_PER_BANK -> MAX_GPIO_PER_BANK
- always have 32 GPIOs per bank and add 'width' member in
  struct bank to hold actual number of GPIOs in use
- mark of_match table as const

List-usage-fixed-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
MAINTAINERS
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/gpio-brcmstb.c [new file with mode: 0644]