/* * arch/arm/mach-tegra/board.h * * Copyright (C) 2010 Google, Inc. * * Author: * Colin Cross * Erik Gilling * * 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 struct tegra_suspend_platform_data; void __init tegra_mc_init(void); void __init tegra_common_init(void); void __init tegra_map_common_io(void); void __init tegra_init_irq(void); void __init tegra_init_clock(void); void __init tegra_init_suspend(struct tegra_suspend_platform_data *plat); #ifdef CONFIG_CPU_IDLE void __init tegra_init_idle(struct tegra_suspend_platform_data *plat); #else #define tegra_init_idle(plat) (0) #endif #ifdef CONFIG_CPU_FREQ int tegra_start_dvfsd(void); #else #define tegra_start_dvfsd() (0) #endif #define TEGRA_ALL_REVS (~0ul) bool tegra_chip_compare(u32 chip, u32 major_rev, u32 minor_rev); #define tegra_is_ap20_a03() tegra_chip_compare(0x20, 0x1, 0x3) bool tegra_is_ap20_a03p(void); extern struct sys_timer tegra_timer; #ifdef CONFIG_MACH_VENTANA extern int __init ventana_setup_wifi(void); int ventana_wifi_status_register(void (*callback)(int card_present, void *dev_id), void *dev_id); #endif #endif