board.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * arch/arm/mach-tegra/board.h
  3. *
  4. * Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
  5. * Copyright (C) 2010 Google, Inc.
  6. *
  7. * Author:
  8. * Colin Cross <ccross@google.com>
  9. * Erik Gilling <konkers@google.com>
  10. *
  11. * This software is licensed under the terms of the GNU General Public
  12. * License version 2, as published by the Free Software Foundation, and
  13. * may be copied, distributed, and modified under those terms.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU General Public License for more details.
  19. *
  20. */
  21. #ifndef __MACH_TEGRA_BOARD_H
  22. #define __MACH_TEGRA_BOARD_H
  23. #include <linux/types.h>
  24. void tegra_assert_system_reset(char mode, const char *cmd);
  25. void __init tegra20_init_early(void);
  26. void __init tegra30_init_early(void);
  27. void __init tegra114_init_early(void);
  28. void __init tegra_map_common_io(void);
  29. void __init tegra_init_irq(void);
  30. void __init tegra_dt_init_irq(void);
  31. int __init tegra_pcie_init(bool init_port0, bool init_port1);
  32. void tegra_init_late(void);
  33. #ifdef CONFIG_DEBUG_FS
  34. int tegra_clk_debugfs_init(void);
  35. #else
  36. static inline int tegra_clk_debugfs_init(void) { return 0; }
  37. #endif
  38. #if defined(CONFIG_ARCH_TEGRA_2x_SOC) && defined(CONFIG_DEBUG_FS)
  39. int __init tegra_powergate_debugfs_init(void);
  40. #else
  41. static inline int tegra_powergate_debugfs_init(void) { return 0; }
  42. #endif
  43. int __init harmony_regulator_init(void);
  44. #ifdef CONFIG_TEGRA_PCI
  45. int __init harmony_pcie_init(void);
  46. #else
  47. static inline int harmony_pcie_init(void) { return 0; }
  48. #endif
  49. void __init tegra_paz00_wifikill_init(void);
  50. #endif