blob: 4680a3159b266875b640c4ff91df1a711c27de2a [file] [log] [blame]
Chintan Pandyacf467fc2011-12-01 17:11:11 +05301/* Copyright (c) 2011, Code Aurora Forum. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 */
13#ifndef __ARCH_ARM_MACH_MSM_BOARD_7627A__
14#define __ARCH_ARM_MACH_MSM_BOARD_7627A__
15
16void __init msm7627a_init_mmc(void);
17
Chintan Pandya13490c02011-12-20 13:03:36 +053018#if defined(CONFIG_BT) && defined(CONFIG_MARIMBA_CORE)
19
20#define FPGA_MSM_CNTRL_REG2 0x90008010
21#define BAHAMA_SLAVE_ID_FM_REG 0x02
22#define BAHAMA_SLAVE_ID_FM_ADDR 0x2A
23#define BAHAMA_SLAVE_ID_QMEMBIST_ADDR 0x7B
24#define FM_GPIO 83
25#define BT_PCM_BCLK_MODE 0x88
26#define BT_PCM_DIN_MODE 0x89
27#define BT_PCM_DOUT_MODE 0x8A
28#define BT_PCM_SYNC_MODE 0x8B
29#define FM_I2S_SD_MODE 0x8E
30#define FM_I2S_WS_MODE 0x8F
31#define FM_I2S_SCK_MODE 0x90
32#define I2C_PIN_CTL 0x15
33#define I2C_NORMAL 0x40
34
35struct bahama_config_register {
36 u8 reg;
37 u8 value;
38 u8 mask;
39};
40
41struct bt_vreg_info {
42 const char *name;
43 unsigned int pmapp_id;
44 unsigned int min_level;
45 unsigned int max_level;
46 unsigned int is_pin_controlled;
47 struct regulator *reg;
48};
49
50extern struct platform_device msm_bt_power_device;
51
52void __init msm7627a_bt_power_init(void);
53#endif
54
Chintan Pandyacf467fc2011-12-01 17:11:11 +053055#endif