blob: a3db7ed6044127c4343136f54ee70c525d6013fa [file] [log] [blame]
Simon Glass96b7c432011-11-28 15:04:39 +00001/*
2 * (C) Copyright 2010,2011
3 * NVIDIA Corporation <www.nvidia.com>
4 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Simon Glass96b7c432011-11-28 15:04:39 +00006 */
7
8#ifndef _TEGRA_BOARD_H_
9#define _TEGRA_BOARD_H_
10
Lucas Stache80f7ca2012-09-29 10:02:08 +000011/* Set up pinmux to make UART usable */
Allen Martine0158b82013-03-16 18:58:02 +000012void gpio_early_init_uart(void);
Lucas Stache80f7ca2012-09-29 10:02:08 +000013
14/* Set up early UART output */
Simon Glass96b7c432011-11-28 15:04:39 +000015void board_init_uart_f(void);
16
Lucas Stache80f7ca2012-09-29 10:02:08 +000017/* Set up any early GPIOs the board might need for proper operation */
18void gpio_early_init(void); /* overrideable GPIO config */
19
20/*
21 * Hooks to allow boards to set up the pinmux for a specific function.
22 * Has to be implemented in the board files as we don't yet support pinmux
Robert P. J. Day8d56db92016-07-15 13:44:45 -040023 * setup from FDT. If a board file does not implement one of those functions
Lucas Stache80f7ca2012-09-29 10:02:08 +000024 * an empty stub function will be called.
25 */
26
Jeroen Hofsteedc549d92014-10-08 22:58:08 +020027void pinmux_init(void); /* overridable general pinmux setup */
28void pin_mux_usb(void); /* overridable USB pinmux setup */
29void pin_mux_spi(void); /* overridable SPI pinmux setup */
30void pin_mux_nand(void); /* overridable NAND pinmux setup */
31void pin_mux_mmc(void); /* overridable mmc pinmux setup */
32void pin_mux_display(void); /* overridable DISPLAY pinmux setup */
Lucas Stache80f7ca2012-09-29 10:02:08 +000033
Simon Glass96b7c432011-11-28 15:04:39 +000034#endif