summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2014-04-13 15:27:44 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-23 11:39:57 +0200
commit4822592ec8c5b44d2fa49ebec123d12687f70dd5 (patch)
tree0660135e06a80230b075d226d814f2f4f1966ce5 /drivers/gpio
parentf427316ce2f878a5c1029fd18ca4ee3270295280 (diff)
downloadbarebox-4822592ec8c5b44d2fa49ebec123d12687f70dd5.tar.gz
barebox-4822592ec8c5b44d2fa49ebec123d12687f70dd5.tar.xz
gpio: tegra: add Tegra3 setup
Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-tegra.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index 18a08f1e6a..bab32ee328 100644
--- a/drivers/gpio/gpio-tegra.c
+++ b/drivers/gpio/gpio-tegra.c
@@ -175,11 +175,20 @@ static struct tegra_gpio_soc_config tegra20_gpio_config = {
.bank_count = 7,
};
+static struct tegra_gpio_soc_config tegra30_gpio_config = {
+ .bank_stride = 0x100,
+ .upper_offset = 0x80,
+ .bank_count = 8,
+};
+
static __maybe_unused struct of_device_id tegra_gpio_dt_ids[] = {
{
.compatible = "nvidia,tegra20-gpio",
.data = (unsigned long)&tegra20_gpio_config
}, {
+ .compatible = "nvidia,tegra30-gpio",
+ .data = (unsigned long)&tegra30_gpio_config
+ }, {
/* sentinel */
},
};