2010-01-22 00:53:02 +00:00
|
|
|
/*
|
|
|
|
* arch/arm/mach-tegra/board.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Google, Inc.
|
|
|
|
*
|
|
|
|
* Author:
|
|
|
|
* Colin Cross <ccross@google.com>
|
|
|
|
* Erik Gilling <konkers@google.com>
|
|
|
|
*
|
|
|
|
* This software is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
|
|
* may be copied, distributed, and modified under those terms.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MACH_TEGRA_BOARD_H
|
|
|
|
#define __MACH_TEGRA_BOARD_H
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
2010-08-24 01:37:25 +00:00
|
|
|
void tegra_assert_system_reset(char mode, const char *cmd);
|
|
|
|
|
2011-12-14 15:03:17 +00:00
|
|
|
void __init tegra20_init_early(void);
|
2011-12-14 15:03:25 +00:00
|
|
|
void __init tegra30_init_early(void);
|
2010-01-22 00:53:02 +00:00
|
|
|
void __init tegra_map_common_io(void);
|
|
|
|
void __init tegra_init_irq(void);
|
2011-12-14 15:03:17 +00:00
|
|
|
void __init tegra_dt_init_irq(void);
|
2010-09-27 09:26:33 +00:00
|
|
|
int __init tegra_pcie_init(bool init_port0, bool init_port1);
|
2010-01-22 00:53:02 +00:00
|
|
|
|
2012-05-02 09:08:06 +00:00
|
|
|
void tegra_init_late(void);
|
|
|
|
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
|
|
int tegra_clk_debugfs_init(void);
|
|
|
|
#else
|
|
|
|
static inline int tegra_clk_debugfs_init(void) { return 0; }
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(CONFIG_ARCH_TEGRA_2x_SOC) && defined(CONFIG_DEBUG_FS)
|
|
|
|
int __init tegra_powergate_debugfs_init(void);
|
|
|
|
#else
|
|
|
|
static inline int tegra_powergate_debugfs_init(void) { return 0; }
|
|
|
|
#endif
|
|
|
|
|
2010-01-22 00:53:02 +00:00
|
|
|
extern struct sys_timer tegra_timer;
|
|
|
|
#endif
|