Linux 3.11-rc3
[cris-mirror.git] / arch / arm / mach-tegra / board.h
blob9a6659fe2dc2fadc2e39f692eb4555ef6a20d381
1 /*
2 * arch/arm/mach-tegra/board.h
4 * Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
5 * Copyright (C) 2010 Google, Inc.
7 * Author:
8 * Colin Cross <ccross@google.com>
9 * Erik Gilling <konkers@google.com>
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.
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.
22 #ifndef __MACH_TEGRA_BOARD_H
23 #define __MACH_TEGRA_BOARD_H
25 #include <linux/types.h>
26 #include <linux/reboot.h>
28 void tegra_assert_system_reset(enum reboot_mode mode, const char *cmd);
30 void __init tegra_init_early(void);
31 void __init tegra_map_common_io(void);
32 void __init tegra_init_irq(void);
33 void __init tegra_dt_init_irq(void);
34 int __init tegra_pcie_init(bool init_port0, bool init_port1);
36 void tegra_init_late(void);
38 #ifdef CONFIG_DEBUG_FS
39 int tegra_clk_debugfs_init(void);
40 #else
41 static inline int tegra_clk_debugfs_init(void) { return 0; }
42 #endif
44 int __init tegra_powergate_init(void);
45 #if defined(CONFIG_ARCH_TEGRA_2x_SOC) && defined(CONFIG_DEBUG_FS)
46 int __init tegra_powergate_debugfs_init(void);
47 #else
48 static inline int tegra_powergate_debugfs_init(void) { return 0; }
49 #endif
51 int __init harmony_regulator_init(void);
52 #ifdef CONFIG_TEGRA_PCI
53 int __init harmony_pcie_init(void);
54 #else
55 static inline int harmony_pcie_init(void) { return 0; }
56 #endif
58 void __init tegra_paz00_wifikill_init(void);
60 #endif