Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Simon Glass | 96b7c43 | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2010,2011 |
| 4 | * NVIDIA Corporation <www.nvidia.com> |
Simon Glass | 96b7c43 | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _TEGRA_BOARD_H_ |
| 8 | #define _TEGRA_BOARD_H_ |
| 9 | |
Lucas Stach | e80f7ca | 2012-09-29 10:02:08 +0000 | [diff] [blame] | 10 | /* Set up pinmux to make UART usable */ |
Allen Martin | e0158b8 | 2013-03-16 18:58:02 +0000 | [diff] [blame] | 11 | void gpio_early_init_uart(void); |
Lucas Stach | e80f7ca | 2012-09-29 10:02:08 +0000 | [diff] [blame] | 12 | |
| 13 | /* Set up early UART output */ |
Simon Glass | 96b7c43 | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 14 | void board_init_uart_f(void); |
| 15 | |
Lucas Stach | e80f7ca | 2012-09-29 10:02:08 +0000 | [diff] [blame] | 16 | /* Set up any early GPIOs the board might need for proper operation */ |
| 17 | void gpio_early_init(void); /* overrideable GPIO config */ |
| 18 | |
| 19 | /* |
| 20 | * Hooks to allow boards to set up the pinmux for a specific function. |
| 21 | * Has to be implemented in the board files as we don't yet support pinmux |
Robert P. J. Day | 8d56db9 | 2016-07-15 13:44:45 -0400 | [diff] [blame] | 22 | * setup from FDT. If a board file does not implement one of those functions |
Lucas Stach | e80f7ca | 2012-09-29 10:02:08 +0000 | [diff] [blame] | 23 | * an empty stub function will be called. |
| 24 | */ |
| 25 | |
Jeroen Hofstee | dc549d9 | 2014-10-08 22:58:08 +0200 | [diff] [blame] | 26 | void pinmux_init(void); /* overridable general pinmux setup */ |
| 27 | void pin_mux_usb(void); /* overridable USB pinmux setup */ |
| 28 | void pin_mux_spi(void); /* overridable SPI pinmux setup */ |
| 29 | void pin_mux_nand(void); /* overridable NAND pinmux setup */ |
| 30 | void pin_mux_mmc(void); /* overridable mmc pinmux setup */ |
| 31 | void pin_mux_display(void); /* overridable DISPLAY pinmux setup */ |
Lucas Stach | e80f7ca | 2012-09-29 10:02:08 +0000 | [diff] [blame] | 32 | |
Thierry Reding | 1398da6 | 2021-09-03 15:16:24 +0200 | [diff] [blame^] | 33 | /* |
| 34 | * Helpers for various standard DT update mechanisms. |
| 35 | */ |
| 36 | |
| 37 | #if defined(CONFIG_ARM64) |
| 38 | void ft_mac_address_setup(void *fdt); |
| 39 | void ft_carveout_setup(void *fdt, const char *const *nodes, |
| 40 | unsigned int count); |
| 41 | #endif |
| 42 | |
Simon Glass | 96b7c43 | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 43 | #endif |