mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
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:
parent
da6e2fab5d
commit
01a97a11db
20 changed files with 383 additions and 1376 deletions
|
@ -42,12 +42,12 @@ void pinmux_init(void)
|
|||
void gpio_early_init(void)
|
||||
{
|
||||
/* Turn on the alive signal */
|
||||
gpio_request(GPIO_PV2, "ALIVE");
|
||||
gpio_direction_output(GPIO_PV2, 1);
|
||||
gpio_request(TEGRA_GPIO(V, 2), "ALIVE");
|
||||
gpio_direction_output(TEGRA_GPIO(V, 2), 1);
|
||||
|
||||
/* Remove the reset on the external periph */
|
||||
gpio_request(GPIO_PI4, "nRST_PERIPH");
|
||||
gpio_direction_output(GPIO_PI4, 1);
|
||||
gpio_request(TEGRA_GPIO(I, 4), "nRST_PERIPH");
|
||||
gpio_direction_output(TEGRA_GPIO(I, 4), 1);
|
||||
}
|
||||
|
||||
void pmu_write(uchar reg, uchar data)
|
||||
|
@ -73,8 +73,8 @@ void board_sdmmc_voltage_init(void)
|
|||
pmu_write(PMU_REG_LDO5, PMU_LDO5(HIGH_POWER, 3300));
|
||||
|
||||
/* Switch the power on */
|
||||
gpio_request(GPIO_PJ2, "EN_3V3_EMMC");
|
||||
gpio_direction_output(GPIO_PJ2, 1);
|
||||
gpio_request(TEGRA_GPIO(J, 2), "EN_3V3_EMMC");
|
||||
gpio_direction_output(TEGRA_GPIO(J, 2), 1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
#ifdef CONFIG_BOARD_EARLY_INIT_F
|
||||
void gpio_early_init(void)
|
||||
{
|
||||
gpio_request(GPIO_PI4, NULL);
|
||||
gpio_direction_output(GPIO_PI4, 1);
|
||||
gpio_request(TEGRA_GPIO(I, 4), NULL);
|
||||
gpio_direction_output(TEGRA_GPIO(I, 4), 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue