blob: 86851c81a35093a44df58a52472be5d9ed2d7229 [file] [log] [blame]
Erik Gillingc5f80062010-01-21 16:53:02 -08001/*
2 * arch/arm/mach-tegra/board.h
3 *
Olof Johanssond2ffb912013-02-09 17:45:28 -08004 * Copyright (c) 2013 NVIDIA Corporation. All rights reserved.
Erik Gillingc5f80062010-01-21 16:53:02 -08005 * 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
22#ifndef __MACH_TEGRA_BOARD_H
23#define __MACH_TEGRA_BOARD_H
24
25#include <linux/types.h>
26
Colin Cross699fe142010-08-23 18:37:25 -070027void tegra_assert_system_reset(char mode, const char *cmd);
28
Peter De Schrijverc37c07d2011-12-14 17:03:17 +020029void __init tegra20_init_early(void);
Peter De Schrijver44107d82011-12-14 17:03:25 +020030void __init tegra30_init_early(void);
Olof Johanssond2ffb912013-02-09 17:45:28 -080031void __init tegra114_init_early(void);
Erik Gillingc5f80062010-01-21 16:53:02 -080032void __init tegra_map_common_io(void);
33void __init tegra_init_irq(void);
Peter De Schrijverc37c07d2011-12-14 17:03:17 +020034void __init tegra_dt_init_irq(void);
Mike Rapoport77ffc142010-09-27 11:26:33 +020035int __init tegra_pcie_init(bool init_port0, bool init_port1);
Erik Gillingc5f80062010-01-21 16:53:02 -080036
Shawn Guo390e0cf2012-05-02 17:08:06 +080037void tegra_init_late(void);
38
39#ifdef CONFIG_DEBUG_FS
40int tegra_clk_debugfs_init(void);
41#else
42static inline int tegra_clk_debugfs_init(void) { return 0; }
43#endif
44
45#if defined(CONFIG_ARCH_TEGRA_2x_SOC) && defined(CONFIG_DEBUG_FS)
46int __init tegra_powergate_debugfs_init(void);
47#else
48static inline int tegra_powergate_debugfs_init(void) { return 0; }
49#endif
50
Stephen Warrena12c0ef2012-05-02 15:47:12 -060051int __init harmony_regulator_init(void);
52#ifdef CONFIG_TEGRA_PCI
53int __init harmony_pcie_init(void);
54#else
55static inline int harmony_pcie_init(void) { return 0; }
56#endif
57
Stephen Warrenb64a02c2012-05-02 16:05:44 -060058void __init tegra_paz00_wifikill_init(void);
59
Erik Gillingc5f80062010-01-21 16:53:02 -080060#endif