| /* Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 and |
| * only version 2 as published by the Free Software Foundation. |
| * |
| * 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 __ARCH_ARM_MACH_MSM_BOARD_7627A__ |
| #define __ARCH_ARM_MACH_MSM_BOARD_7627A__ |
| |
| void __init msm7627a_init_mmc(void); |
| |
| #if defined(CONFIG_BT) && defined(CONFIG_MARIMBA_CORE) |
| |
| #define FPGA_MSM_CNTRL_REG2 0x90008010 |
| #define BAHAMA_SLAVE_ID_FM_REG 0x02 |
| #define BAHAMA_SLAVE_ID_FM_ADDR 0x2A |
| #define BAHAMA_SLAVE_ID_QMEMBIST_ADDR 0x7B |
| #define FM_GPIO 83 |
| #define BT_PCM_BCLK_MODE 0x88 |
| #define BT_PCM_DIN_MODE 0x89 |
| #define BT_PCM_DOUT_MODE 0x8A |
| #define BT_PCM_SYNC_MODE 0x8B |
| #define FM_I2S_SD_MODE 0x8E |
| #define FM_I2S_WS_MODE 0x8F |
| #define FM_I2S_SCK_MODE 0x90 |
| #define I2C_PIN_CTL 0x15 |
| #define I2C_NORMAL 0x40 |
| |
| struct bahama_config_register { |
| u8 reg; |
| u8 value; |
| u8 mask; |
| }; |
| |
| struct bt_vreg_info { |
| const char *name; |
| unsigned int pmapp_id; |
| unsigned int min_level; |
| unsigned int max_level; |
| unsigned int is_pin_controlled; |
| struct regulator *reg; |
| }; |
| |
| extern struct platform_device msm_bt_power_device; |
| |
| void __init msm7627a_bt_power_init(void); |
| #endif |
| |
| #endif |