blob: f88e5143c767989e7cc8e634635d858055f9de61 [file] [log] [blame]
Erik Gillingc5f80062010-01-21 16:53:02 -08001/*
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 Cross699fe142010-08-23 18:37:25 -070026void tegra_assert_system_reset(char mode, const char *cmd);
27
Peter De Schrijverc37c07d2011-12-14 17:03:17 +020028void __init tegra20_init_early(void);
Peter De Schrijver44107d82011-12-14 17:03:25 +020029void __init tegra30_init_early(void);
Erik Gillingc5f80062010-01-21 16:53:02 -080030void __init tegra_map_common_io(void);
31void __init tegra_init_irq(void);
Peter De Schrijverc37c07d2011-12-14 17:03:17 +020032void __init tegra_dt_init_irq(void);
Mike Rapoport77ffc142010-09-27 11:26:33 +020033int __init tegra_pcie_init(bool init_port0, bool init_port1);
Erik Gillingc5f80062010-01-21 16:53:02 -080034
Shawn Guo390e0cf2012-05-02 17:08:06 +080035void tegra_init_late(void);
36
37#ifdef CONFIG_DEBUG_FS
38int tegra_clk_debugfs_init(void);
39#else
40static inline int tegra_clk_debugfs_init(void) { return 0; }
41#endif
42
43#if defined(CONFIG_ARCH_TEGRA_2x_SOC) && defined(CONFIG_DEBUG_FS)
44int __init tegra_powergate_debugfs_init(void);
45#else
46static inline int tegra_powergate_debugfs_init(void) { return 0; }
47#endif
48
Stephen Warrena12c0ef2012-05-02 15:47:12 -060049int __init harmony_regulator_init(void);
50#ifdef CONFIG_TEGRA_PCI
51int __init harmony_pcie_init(void);
52#else
53static inline int harmony_pcie_init(void) { return 0; }
54#endif
55
Stephen Warrenb64a02c2012-05-02 16:05:44 -060056void __init tegra_paz00_wifikill_init(void);
57
Erik Gillingc5f80062010-01-21 16:53:02 -080058extern struct sys_timer tegra_timer;
59#endif