blob: cd4d0ee3c953c6bf6057ba62b9d13bf5b9ce0f31 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Glass96b7c432011-11-28 15:04:39 +00002/*
3 * (C) Copyright 2010,2011
4 * NVIDIA Corporation <www.nvidia.com>
Simon Glass96b7c432011-11-28 15:04:39 +00005 */
6
7#ifndef _TEGRA_BOARD_H_
8#define _TEGRA_BOARD_H_
9
Lucas Stache80f7ca2012-09-29 10:02:08 +000010/* Set up pinmux to make UART usable */
Allen Martine0158b82013-03-16 18:58:02 +000011void gpio_early_init_uart(void);
Lucas Stache80f7ca2012-09-29 10:02:08 +000012
13/* Set up early UART output */
Simon Glass96b7c432011-11-28 15:04:39 +000014void board_init_uart_f(void);
15
Lucas Stache80f7ca2012-09-29 10:02:08 +000016/* Set up any early GPIOs the board might need for proper operation */
17void 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. Day8d56db92016-07-15 13:44:45 -040022 * setup from FDT. If a board file does not implement one of those functions
Lucas Stache80f7ca2012-09-29 10:02:08 +000023 * an empty stub function will be called.
24 */
25
Jeroen Hofsteedc549d92014-10-08 22:58:08 +020026void pinmux_init(void); /* overridable general pinmux setup */
27void pin_mux_usb(void); /* overridable USB pinmux setup */
28void pin_mux_spi(void); /* overridable SPI pinmux setup */
29void pin_mux_nand(void); /* overridable NAND pinmux setup */
30void pin_mux_mmc(void); /* overridable mmc pinmux setup */
31void pin_mux_display(void); /* overridable DISPLAY pinmux setup */
Lucas Stache80f7ca2012-09-29 10:02:08 +000032
Thierry Reding1398da62021-09-03 15:16:24 +020033/*
34 * Helpers for various standard DT update mechanisms.
35 */
36
37#if defined(CONFIG_ARM64)
38void ft_mac_address_setup(void *fdt);
39void ft_carveout_setup(void *fdt, const char *const *nodes,
40 unsigned int count);
41#endif
42
Simon Glass96b7c432011-11-28 15:04:39 +000043#endif