OSDN Git Service

gpio: tegra: Parameterize the number of banks
authorStephen Warren <swarren@nvidia.com>
Thu, 19 Jan 2012 08:16:35 +0000 (08:16 +0000)
committerOlof Johansson <olof@lixom.net>
Tue, 7 Feb 2012 02:25:00 +0000 (18:25 -0800)
commit3391811c4294da42e412ec5f83a251caf05869a4
treeee56741b55aa4f24824e5c75c3aced6254e234fd
parent6f74dc9bc8de41f3de474a7269a70921e773c40f
gpio: tegra: Parameterize the number of banks

Tegra20's GPIO controller has 7 banks, and Tegra30's controller has 8
banks. Allow the number of banks to be configured at run-time by the
device tree.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Olof Johansson <olof@lixom.net>
Documentation/devicetree/bindings/gpio/gpio_nvidia.txt
drivers/gpio/gpio-tegra.c