tegra20: rework UART GPIO handling
Rename board provided gpio_config_uart() to gpio_early_init_uart() as it does the same thing as the equally called function provided by the uart-switch code. This allows to simply call this function in early board init whether or not we are building with CONFIG_UART_SWITCH defined. Also provide a weak symbol for this function, to avoid the need to provide this function for boards that don't need any fixup. This patch supersedes the earlier posted "tegra: convert gpio_config_uart to weak symbol". Build tested with MAKEALL -s tegra20 Signed-off-by:Lucas Stach <dev@lynxeye.de> Acked-by:
Simon Glass <sjg@chromium.org> Signed-off-by:
Tom Warren <twarren@nvidia.com>
Showing
- arch/arm/cpu/arm720t/tegra-common/board.h 1 addition, 1 deletionarch/arm/cpu/arm720t/tegra-common/board.h
- arch/arm/cpu/arm720t/tegra-common/spl.c 0 additions, 4 deletionsarch/arm/cpu/arm720t/tegra-common/spl.c
- board/avionic-design/common/tamonten.c 0 additions, 7 deletionsboard/avionic-design/common/tamonten.c
- board/compal/paz00/paz00.c 0 additions, 7 deletionsboard/compal/paz00/paz00.c
- board/compulab/trimslice/trimslice.c 0 additions, 7 deletionsboard/compulab/trimslice/trimslice.c
- board/nvidia/common/board.c 8 additions, 4 deletionsboard/nvidia/common/board.c
- board/nvidia/harmony/harmony.c 0 additions, 7 deletionsboard/nvidia/harmony/harmony.c
- board/nvidia/seaboard/seaboard.c 1 addition, 1 deletionboard/nvidia/seaboard/seaboard.c
- board/nvidia/whistler/whistler.c 0 additions, 7 deletionsboard/nvidia/whistler/whistler.c
Loading
Please register or sign in to comment