Simon Glass | 96b7c43 | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2010,2011 |
| 3 | * NVIDIA Corporation <www.nvidia.com> |
| 4 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 96b7c43 | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _TEGRA_BOARD_H_ |
| 9 | #define _TEGRA_BOARD_H_ |
| 10 | |
Lucas Stach | e80f7ca | 2012-09-29 10:02:08 +0000 | [diff] [blame] | 11 | /* Set up pinmux to make UART usable */ |
Allen Martin | e0158b8 | 2013-03-16 18:58:02 +0000 | [diff] [blame] | 12 | void gpio_early_init_uart(void); |
Lucas Stach | e80f7ca | 2012-09-29 10:02:08 +0000 | [diff] [blame] | 13 | |
| 14 | /* Set up early UART output */ |
Simon Glass | 96b7c43 | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 15 | void board_init_uart_f(void); |
| 16 | |
Lucas Stach | e80f7ca | 2012-09-29 10:02:08 +0000 | [diff] [blame] | 17 | /* Set up any early GPIOs the board might need for proper operation */ |
| 18 | void 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. Day | 8d56db9 | 2016-07-15 13:44:45 -0400 | [diff] [blame] | 23 | * 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] | 24 | * an empty stub function will be called. |
| 25 | */ |
| 26 | |
Jeroen Hofstee | dc549d9 | 2014-10-08 22:58:08 +0200 | [diff] [blame] | 27 | void pinmux_init(void); /* overridable general pinmux setup */ |
| 28 | void pin_mux_usb(void); /* overridable USB pinmux setup */ |
| 29 | void pin_mux_spi(void); /* overridable SPI pinmux setup */ |
| 30 | void pin_mux_nand(void); /* overridable NAND pinmux setup */ |
| 31 | void pin_mux_mmc(void); /* overridable mmc pinmux setup */ |
| 32 | void pin_mux_display(void); /* overridable DISPLAY pinmux setup */ |
Lucas Stach | e80f7ca | 2012-09-29 10:02:08 +0000 | [diff] [blame] | 33 | |
Simon Glass | 96b7c43 | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 34 | #endif |