board.h 1.6 KB

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