diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-02-18 03:04:55 -0500 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2012-04-18 12:26:38 -0400 |
commit | 3e215d0a19c2a0c389bd9117573b6dd8e46f96a8 (patch) | |
tree | a45a82fc3e26459c8146cbe933229344cefa8b70 /arch/arm/mach-tegra/board-trimslice-pinmux.c | |
parent | c61b3da0aca4cccb1dca757eb94e443faba4e88f (diff) |
gpio: tegra: Hide tegra_gpio_enable/disable()
Recent pinctrl discussions concluded that gpiolib APIs should in fact do
whatever is required to mux a GPIO onto pins, by calling pinctrl APIs if
required. This change implements this for the Tegra GPIO driver, and removes
calls to the Tegra-specific APIs from drivers and board files.
Cc: Chris Ball <cjb@laptop.org>
Cc: linux-mmc@vger.kernel.org
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Chris Ball <cjb@laptop.org> # for sdhci-tegra.c
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-tegra/board-trimslice-pinmux.c')
-rw-r--r-- | arch/arm/mach-tegra/board-trimslice-pinmux.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/arm/mach-tegra/board-trimslice-pinmux.c b/arch/arm/mach-tegra/board-trimslice-pinmux.c index a21a2be57cb6..a1902d4e8e5d 100644 --- a/arch/arm/mach-tegra/board-trimslice-pinmux.c +++ b/arch/arm/mach-tegra/board-trimslice-pinmux.c | |||
@@ -13,7 +13,6 @@ | |||
13 | * GNU General Public License for more details. | 13 | * GNU General Public License for more details. |
14 | * | 14 | * |
15 | */ | 15 | */ |
16 | #include <linux/gpio.h> | ||
17 | #include <linux/kernel.h> | 16 | #include <linux/kernel.h> |
18 | #include <linux/init.h> | 17 | #include <linux/init.h> |
19 | #include <linux/of.h> | 18 | #include <linux/of.h> |
@@ -21,7 +20,6 @@ | |||
21 | #include <mach/pinmux.h> | 20 | #include <mach/pinmux.h> |
22 | #include <mach/pinmux-tegra20.h> | 21 | #include <mach/pinmux-tegra20.h> |
23 | 22 | ||
24 | #include "gpio-names.h" | ||
25 | #include "board-pinmux.h" | 23 | #include "board-pinmux.h" |
26 | #include "board-trimslice.h" | 24 | #include "board-trimslice.h" |
27 | 25 | ||
@@ -144,19 +142,9 @@ static struct tegra_pingroup_config trimslice_pinmux[] = { | |||
144 | {TEGRA_PINGROUP_XM2D, TEGRA_MUX_NONE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, | 142 | {TEGRA_PINGROUP_XM2D, TEGRA_MUX_NONE, TEGRA_PUPD_NORMAL, TEGRA_TRI_NORMAL}, |
145 | }; | 143 | }; |
146 | 144 | ||
147 | static struct tegra_gpio_table gpio_table[] = { | ||
148 | { .gpio = TRIMSLICE_GPIO_SD4_CD, .enable = true }, /* mmc4 cd */ | ||
149 | { .gpio = TRIMSLICE_GPIO_SD4_WP, .enable = true }, /* mmc4 wp */ | ||
150 | |||
151 | { .gpio = TRIMSLICE_GPIO_USB1_MODE, .enable = true }, /* USB1 mode */ | ||
152 | { .gpio = TRIMSLICE_GPIO_USB2_RST, .enable = true }, /* USB2 PHY rst */ | ||
153 | }; | ||
154 | |||
155 | static struct tegra_board_pinmux_conf conf = { | 145 | static struct tegra_board_pinmux_conf conf = { |
156 | .pgs = trimslice_pinmux, | 146 | .pgs = trimslice_pinmux, |
157 | .pg_count = ARRAY_SIZE(trimslice_pinmux), | 147 | .pg_count = ARRAY_SIZE(trimslice_pinmux), |
158 | .gpios = gpio_table, | ||
159 | .gpio_count = ARRAY_SIZE(gpio_table), | ||
160 | }; | 148 | }; |
161 | 149 | ||
162 | void trimslice_pinmux_init(void) | 150 | void trimslice_pinmux_init(void) |