blob: ff773646cbec669607d5e03a624d1207b4c65b8b [file] [log] [blame]
Simon Glassbb6997f2011-11-28 15:04:39 +00001/*
2 * (C) Copyright 2010,2011
3 * NVIDIA Corporation <www.nvidia.com>
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Simon Glassbb6997f2011-11-28 15:04:39 +00006 */
7
8#ifndef _TEGRA_BOARD_H_
9#define _TEGRA_BOARD_H_
10
Lucas Stach516f00b2012-09-29 10:02:08 +000011/* Set up pinmux to make UART usable */
Allen Martin90006522013-03-16 18:58:02 +000012void gpio_early_init_uart(void);
Lucas Stach516f00b2012-09-29 10:02:08 +000013
14/* Set up early UART output */
Simon Glassbb6997f2011-11-28 15:04:39 +000015void board_init_uart_f(void);
16
Lucas Stach516f00b2012-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
23 * setup from FTD. If a board file does not implement one of those functions
24 * an empty stub function will be called.
25 */
26
Stephen Warren07bbd482014-03-21 12:28:52 -060027void pinmux_init(void); /* overrideable general pinmux setup */
Marc Dietrich716d9432012-11-25 11:26:11 +000028void pin_mux_usb(void); /* overrideable USB pinmux setup */
29void pin_mux_spi(void); /* overrideable SPI pinmux setup */
30void pin_mux_nand(void); /* overrideable NAND pinmux setup */
31void pin_mux_display(void); /* overrideable DISPLAY pinmux setup */
Lucas Stach516f00b2012-09-29 10:02:08 +000032
Simon Glassbb6997f2011-11-28 15:04:39 +000033#endif