diff options
author | Olof Johansson <olof@lixom.net> | 2011-02-22 14:29:23 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2011-02-22 20:28:06 -0500 |
commit | 0ec1b606c0b13f33816847507f9d72be30abacd1 (patch) | |
tree | 13928696bdc66e4a085fc388a3a103e5afea6be9 /arch/arm/mach-tegra | |
parent | 632095ea15db51d73d3d084ee18620d3ac1cb040 (diff) |
ARM: tegra: harmony: move over to tegra_gpio_config
Move harmony over to use the new gpio config table instead of having
separate settings in various parts of the code.
(The tegra sdhci driver should have the tegra_gpio_* ops removed, but
that will be done separately from this change.)
Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Erik Gilling <konkers@android.com>
Diffstat (limited to 'arch/arm/mach-tegra')
-rw-r--r-- | arch/arm/mach-tegra/board-harmony-pinmux.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-harmony-pinmux.c b/arch/arm/mach-tegra/board-harmony-pinmux.c index 50b15d500cac..f3246d9f101e 100644 --- a/arch/arm/mach-tegra/board-harmony-pinmux.c +++ b/arch/arm/mach-tegra/board-harmony-pinmux.c | |||
@@ -15,8 +15,10 @@ | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/gpio.h> | ||
18 | #include <mach/pinmux.h> | 19 | #include <mach/pinmux.h> |
19 | 20 | ||
21 | #include "gpio-names.h" | ||
20 | #include "board-harmony.h" | 22 | #include "board-harmony.h" |
21 | 23 | ||
22 | static struct tegra_pingroup_config harmony_pinmux[] = { | 24 | static struct tegra_pingroup_config harmony_pinmux[] = { |
@@ -138,7 +140,18 @@ static struct tegra_pingroup_config harmony_pinmux[] = { | |||
138 | {TEGRA_PINGROUP_XM2D, TEGRA_MUX_NONE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 140 | {TEGRA_PINGROUP_XM2D, TEGRA_MUX_NONE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
139 | }; | 141 | }; |
140 | 142 | ||
143 | static struct tegra_gpio_table gpio_table[] = { | ||
144 | { .gpio = TEGRA_GPIO_PI5, .enable = true }, /* mmc2 cd */ | ||
145 | { .gpio = TEGRA_GPIO_PH1, .enable = true }, /* mmc2 wp */ | ||
146 | { .gpio = TEGRA_GPIO_PT3, .enable = true }, /* mmc2 pwr */ | ||
147 | { .gpio = TEGRA_GPIO_PH2, .enable = true }, /* mmc4 cd */ | ||
148 | { .gpio = TEGRA_GPIO_PH3, .enable = true }, /* mmc4 wp */ | ||
149 | { .gpio = TEGRA_GPIO_PI6, .enable = true }, /* mmc4 pwr */ | ||
150 | }; | ||
151 | |||
141 | void harmony_pinmux_init(void) | 152 | void harmony_pinmux_init(void) |
142 | { | 153 | { |
143 | tegra_pinmux_config_table(harmony_pinmux, ARRAY_SIZE(harmony_pinmux)); | 154 | tegra_pinmux_config_table(harmony_pinmux, ARRAY_SIZE(harmony_pinmux)); |
155 | |||
156 | tegra_gpio_config(gpio_table, ARRAY_SIZE(gpio_table)); | ||
144 | } | 157 | } |