xref: /rk3399_rockchip-uboot/arch/arm/include/asm/arch-tegra/board.h (revision 62a3b7dd086ef8ceba91e99cceb19704efc1b482)
1150c2493STom Warren /*
2150c2493STom Warren  *  (C) Copyright 2010,2011
3150c2493STom Warren  *  NVIDIA Corporation <www.nvidia.com>
4150c2493STom Warren  *
51a459660SWolfgang Denk  * SPDX-License-Identifier:	GPL-2.0+
6150c2493STom Warren  */
7150c2493STom Warren 
8150c2493STom Warren #ifndef _TEGRA_BOARD_H_
9150c2493STom Warren #define _TEGRA_BOARD_H_
10150c2493STom Warren 
11516f00b3SLucas Stach /* Set up pinmux to make UART usable */
129000652dSAllen Martin void gpio_early_init_uart(void);
13516f00b3SLucas Stach 
14516f00b3SLucas Stach /* Set up early UART output */
15150c2493STom Warren void board_init_uart_f(void);
16150c2493STom Warren 
17516f00b3SLucas Stach /* Set up any early GPIOs the board might need for proper operation */
18516f00b3SLucas Stach void gpio_early_init(void);  /* overrideable GPIO config        */
19516f00b3SLucas Stach 
20516f00b3SLucas Stach /*
21516f00b3SLucas Stach  * Hooks to allow boards to set up the pinmux for a specific function.
22516f00b3SLucas Stach  * Has to be implemented in the board files as we don't yet support pinmux
23*62a3b7ddSRobert P. J. Day  * setup from FDT. If a board file does not implement one of those functions
24516f00b3SLucas Stach  * an empty stub function will be called.
25516f00b3SLucas Stach  */
26516f00b3SLucas Stach 
277b8119ddSJeroen Hofstee void pinmux_init(void);      /* overridable general pinmux setup */
287b8119ddSJeroen Hofstee void pin_mux_usb(void);      /* overridable USB pinmux setup     */
297b8119ddSJeroen Hofstee void pin_mux_spi(void);      /* overridable SPI pinmux setup     */
307b8119ddSJeroen Hofstee void pin_mux_nand(void);     /* overridable NAND pinmux setup    */
317b8119ddSJeroen Hofstee void pin_mux_mmc(void);      /* overridable mmc pinmux setup     */
327b8119ddSJeroen Hofstee void pin_mux_display(void);  /* overridable DISPLAY pinmux setup */
33516f00b3SLucas Stach 
34150c2493STom Warren #endif
35