1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2010,2011
4 * NVIDIA Corporation <www.nvidia.com>
7 #ifndef _TEGRA_BOARD_H_
8 #define _TEGRA_BOARD_H_
10 /* Set up pinmux to make UART usable */
11 void gpio_early_init_uart(void);
13 /* Set up early UART output */
14 void board_init_uart_f(void);
16 /* Set up any early GPIOs the board might need for proper operation */
17 void gpio_early_init(void); /* overrideable GPIO config */
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
22 * setup from FDT. If a board file does not implement one of those functions
23 * an empty stub function will be called.
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 */
34 * Helpers for various standard DT update mechanisms.
37 #if defined(CONFIG_ARM64)
38 void ft_mac_address_setup(void *fdt);
39 void ft_carveout_setup(void *fdt, const char *const *nodes,