ARM: tegra: use DT bindings for GPIO naming
There are currently many places that define the list of all Tegra GPIOs; the DT binding header and custom Tegra-specific header file gpio.h. Fix the redundancy by replacing everything with the DT binding header file. Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
This commit is contained in:
committed by
Tom Warren
parent
da6e2fab5d
commit
01a97a11db
@@ -103,11 +103,11 @@ void pin_mux_usb(void)
|
||||
pinmux_tristate_disable(PMUX_PINGRP_DTE);
|
||||
|
||||
/* Reset ASIX using LAN_RESET */
|
||||
gpio_request(GPIO_PV4, "LAN_RESET");
|
||||
gpio_direction_output(GPIO_PV4, 0);
|
||||
gpio_request(TEGRA_GPIO(V, 4), "LAN_RESET");
|
||||
gpio_direction_output(TEGRA_GPIO(V, 4), 0);
|
||||
pinmux_tristate_disable(PMUX_PINGRP_GPV);
|
||||
udelay(5);
|
||||
gpio_set_value(GPIO_PV4, 1);
|
||||
gpio_set_value(TEGRA_GPIO(V, 4), 1);
|
||||
|
||||
/* USBH_PEN: USB 1 aka Tegra USB port 3 VBus */
|
||||
pinmux_tristate_disable(PMUX_PINGRP_SPIG);
|
||||
|
||||
@@ -47,8 +47,8 @@ void pinmux_init(void)
|
||||
void pin_mux_usb(void)
|
||||
{
|
||||
/* Reset ASIX using LAN_RESET */
|
||||
gpio_request(GPIO_PDD0, "LAN_RESET");
|
||||
gpio_direction_output(GPIO_PDD0, 0);
|
||||
gpio_request(TEGRA_GPIO(DD, 0), "LAN_RESET");
|
||||
gpio_direction_output(TEGRA_GPIO(DD, 0), 0);
|
||||
udelay(5);
|
||||
gpio_set_value(GPIO_PDD0, 1);
|
||||
gpio_set_value(TEGRA_GPIO(DD, 0), 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user