board.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2010,2011
  4. * NVIDIA Corporation <www.nvidia.com>
  5. */
  6. #ifndef _TEGRA_BOARD_H_
  7. #define _TEGRA_BOARD_H_
  8. /* Set up pinmux to make UART usable */
  9. void gpio_early_init_uart(void);
  10. /* Set up early UART output */
  11. void board_init_uart_f(void);
  12. /* Set up any early GPIOs the board might need for proper operation */
  13. void gpio_early_init(void); /* overrideable GPIO config */
  14. /*
  15. * Hooks to allow boards to set up the pinmux for a specific function.
  16. * Has to be implemented in the board files as we don't yet support pinmux
  17. * setup from FDT. If a board file does not implement one of those functions
  18. * an empty stub function will be called.
  19. */
  20. void pinmux_init(void); /* overridable general pinmux setup */
  21. void pin_mux_usb(void); /* overridable USB pinmux setup */
  22. void pin_mux_spi(void); /* overridable SPI pinmux setup */
  23. void pin_mux_nand(void); /* overridable NAND pinmux setup */
  24. void pin_mux_mmc(void); /* overridable mmc pinmux setup */
  25. void pin_mux_display(void); /* overridable DISPLAY pinmux setup */
  26. /*
  27. * Helpers for various standard DT update mechanisms.
  28. */
  29. #if defined(CONFIG_ARM64)
  30. void ft_mac_address_setup(void *fdt);
  31. void ft_carveout_setup(void *fdt, const char *const *nodes,
  32. unsigned int count);
  33. #endif
  34. #endif