Erik Gilling | c5f8006 | 2010-01-21 16:53:02 -0800 | [diff] [blame] | 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 | |
| 21 | #ifndef __MACH_TEGRA_BOARD_H |
| 22 | #define __MACH_TEGRA_BOARD_H |
| 23 | |
| 24 | #include <linux/types.h> |
| 25 | |
Colin Cross | 699fe14 | 2010-08-23 18:37:25 -0700 | [diff] [blame] | 26 | void tegra_assert_system_reset(char mode, const char *cmd); |
| 27 | |
Peter De Schrijver | c37c07d | 2011-12-14 17:03:17 +0200 | [diff] [blame] | 28 | void __init tegra20_init_early(void); |
Peter De Schrijver | 44107d8 | 2011-12-14 17:03:25 +0200 | [diff] [blame] | 29 | void __init tegra30_init_early(void); |
Erik Gilling | c5f8006 | 2010-01-21 16:53:02 -0800 | [diff] [blame] | 30 | void __init tegra_map_common_io(void); |
| 31 | void __init tegra_init_irq(void); |
Peter De Schrijver | c37c07d | 2011-12-14 17:03:17 +0200 | [diff] [blame] | 32 | void __init tegra_dt_init_irq(void); |
Mike Rapoport | 77ffc14 | 2010-09-27 11:26:33 +0200 | [diff] [blame] | 33 | int __init tegra_pcie_init(bool init_port0, bool init_port1); |
Erik Gilling | c5f8006 | 2010-01-21 16:53:02 -0800 | [diff] [blame] | 34 | |
Shawn Guo | 390e0cf | 2012-05-02 17:08:06 +0800 | [diff] [blame] | 35 | void tegra_init_late(void); |
| 36 | |
| 37 | #ifdef CONFIG_DEBUG_FS |
| 38 | int tegra_clk_debugfs_init(void); |
| 39 | #else |
| 40 | static inline int tegra_clk_debugfs_init(void) { return 0; } |
| 41 | #endif |
| 42 | |
| 43 | #if defined(CONFIG_ARCH_TEGRA_2x_SOC) && defined(CONFIG_DEBUG_FS) |
| 44 | int __init tegra_powergate_debugfs_init(void); |
| 45 | #else |
| 46 | static inline int tegra_powergate_debugfs_init(void) { return 0; } |
| 47 | #endif |
| 48 | |
Stephen Warren | a12c0ef | 2012-05-02 15:47:12 -0600 | [diff] [blame] | 49 | int __init harmony_regulator_init(void); |
| 50 | #ifdef CONFIG_TEGRA_PCI |
| 51 | int __init harmony_pcie_init(void); |
| 52 | #else |
| 53 | static inline int harmony_pcie_init(void) { return 0; } |
| 54 | #endif |
| 55 | |
Stephen Warren | b64a02c | 2012-05-02 16:05:44 -0600 | [diff] [blame] | 56 | void __init tegra_paz00_wifikill_init(void); |
| 57 | |
Sivaram Nair | f2ef412 | 2012-10-16 13:08:35 +0300 | [diff] [blame] | 58 | extern struct sys_timer tegra_sys_timer; |
Erik Gilling | c5f8006 | 2010-01-21 16:53:02 -0800 | [diff] [blame] | 59 | #endif |