Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* arch/arm/mach-msm/include/mach/board.h |
| 2 | * |
| 3 | * Copyright (C) 2007 Google, Inc. |
| 4 | * Author: Brian Swetland <swetland@google.com> |
| 5 | * |
| 6 | * This software is licensed under the terms of the GNU General Public |
| 7 | * License version 2, as published by the Free Software Foundation, and |
| 8 | * may be copied, distributed, and modified under those terms. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | */ |
| 16 | |
| 17 | #ifndef __ASM_ARCH_MSM_BOARD_H |
| 18 | #define __ASM_ARCH_MSM_BOARD_H |
| 19 | |
| 20 | #include <linux/types.h> |
Sahitya Tummala | 28d6c3d | 2010-07-29 16:52:19 +0530 | [diff] [blame] | 21 | #include <mach/mmc.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 22 | |
| 23 | /* platform device data structures */ |
| 24 | |
Daniel Walker | 43b39f9 | 2010-03-03 08:54:11 -0800 | [diff] [blame] | 25 | struct msm_acpu_clock_platform_data |
| 26 | { |
| 27 | uint32_t acpu_switch_time_us; |
| 28 | uint32_t max_speed_delta_khz; |
| 29 | uint32_t vdd_switch_time_us; |
| 30 | unsigned long power_collapse_khz; |
| 31 | unsigned long wait_for_irq_khz; |
| 32 | }; |
| 33 | |
Daniel Walker | 5e96da5 | 2010-05-12 13:43:28 -0700 | [diff] [blame] | 34 | struct clk; |
| 35 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 36 | /* common init routines for use by arch/arm/mach-msm/board-*.c */ |
| 37 | |
| 38 | void __init msm_add_devices(void); |
| 39 | void __init msm_map_common_io(void); |
| 40 | void __init msm_init_irq(void); |
| 41 | void __init msm_init_gpio(void); |
Daniel Walker | 5e96da5 | 2010-05-12 13:43:28 -0700 | [diff] [blame] | 42 | void __init msm_clock_init(struct clk *clock_tbl, unsigned num_clocks); |
Daniel Walker | 43b39f9 | 2010-03-03 08:54:11 -0800 | [diff] [blame] | 43 | void __init msm_acpu_clock_init(struct msm_acpu_clock_platform_data *); |
Sahitya Tummala | b5d643d | 2010-07-29 16:55:34 +0530 | [diff] [blame^] | 44 | int __init msm_add_sdcc(unsigned int controller, |
| 45 | struct msm_mmc_platform_data *plat, |
Sahitya Tummala | 28d6c3d | 2010-07-29 16:52:19 +0530 | [diff] [blame] | 46 | unsigned int stat_irq, unsigned long stat_irq_flags); |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 47 | |
| 48 | #endif |