Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2010,2011 |
| 3 | * NVIDIA Corporation <www.nvidia.com> |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _TEGRA_BOARD_H_ |
| 9 | #define _TEGRA_BOARD_H_ |
| 10 | |
Lucas Stach | 516f00b | 2012-09-29 10:02:08 +0000 | [diff] [blame] | 11 | /* Set up pinmux to make UART usable */ |
Allen Martin | 9000652 | 2013-03-16 18:58:02 +0000 | [diff] [blame] | 12 | void gpio_early_init_uart(void); |
Lucas Stach | 516f00b | 2012-09-29 10:02:08 +0000 | [diff] [blame] | 13 | |
| 14 | /* Set up early UART output */ |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 15 | void board_init_uart_f(void); |
| 16 | |
Lucas Stach | 516f00b | 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 |
| 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 Warren | 07bbd48 | 2014-03-21 12:28:52 -0600 | [diff] [blame] | 27 | void pinmux_init(void); /* overrideable general pinmux setup */ |
Marc Dietrich | 716d943 | 2012-11-25 11:26:11 +0000 | [diff] [blame] | 28 | void pin_mux_usb(void); /* overrideable USB pinmux setup */ |
| 29 | void pin_mux_spi(void); /* overrideable SPI pinmux setup */ |
| 30 | void pin_mux_nand(void); /* overrideable NAND pinmux setup */ |
| 31 | void pin_mux_display(void); /* overrideable DISPLAY pinmux setup */ |
Lucas Stach | 516f00b | 2012-09-29 10:02:08 +0000 | [diff] [blame] | 32 | |
Simon Glass | bb6997f | 2011-11-28 15:04:39 +0000 | [diff] [blame] | 33 | #endif |