mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
dm: tegra: Enable driver model in SPL and adjust the GPIO driver
Use the full driver model GPIO and serial drivers in SPL now that these are supported. Since device tree is not available they will use platform data. Remove the special SPL GPIO function as it is no longer needed. This is all in one commit to maintain bisectability. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
fc8fdc76e7
commit
bdfb34167f
5 changed files with 19 additions and 25 deletions
|
@ -20,10 +20,8 @@
|
|||
void gpio_early_init_uart(void)
|
||||
{
|
||||
/* Enable UART via GPIO_PI3 (port 8, bit 3) so serial console works */
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
gpio_request(GPIO_PI3, NULL);
|
||||
#endif
|
||||
tegra_spl_gpio_direction_output(GPIO_PI3, 0);
|
||||
gpio_direction_output(GPIO_PI3, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue