blob: 7d7da4f8666661f66146a4ca3ecc8fad84f612b6 [file] [log] [blame]
Chintan Pandya40762702011-12-06 13:47:06 +05301/* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved.
Chintan Pandyacf467fc2011-12-01 17:11:11 +05302 *
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 Pandya40762702011-12-06 13:47:06 +053018enum {
19 GPIO_EXPANDER_IRQ_BASE = NR_MSM_IRQS + NR_GPIO_IRQS,
20 GPIO_EXPANDER_GPIO_BASE = NR_MSM_GPIOS,
21 /* SURF expander */
22 GPIO_CORE_EXPANDER_BASE = GPIO_EXPANDER_GPIO_BASE,
23 GPIO_BT_SYS_REST_EN = GPIO_CORE_EXPANDER_BASE,
24 GPIO_WLAN_EXT_POR_N,
25 GPIO_DISPLAY_PWR_EN,
26 GPIO_BACKLIGHT_EN,
27 GPIO_PRESSURE_XCLR,
28 GPIO_VREG_S3_EXP,
29 GPIO_UBM2M_PWRDWN,
30 GPIO_ETM_MODE_CS_N,
31 GPIO_HOST_VBUS_EN,
32 GPIO_SPI_MOSI,
33 GPIO_SPI_MISO,
34 GPIO_SPI_CLK,
35 GPIO_SPI_CS0_N,
36 GPIO_CORE_EXPANDER_IO13,
37 GPIO_CORE_EXPANDER_IO14,
38 GPIO_CORE_EXPANDER_IO15,
39 /* Camera expander */
40 GPIO_CAM_EXPANDER_BASE = GPIO_CORE_EXPANDER_BASE + 16,
41 GPIO_CAM_GP_STROBE_READY = GPIO_CAM_EXPANDER_BASE,
42 GPIO_CAM_GP_AFBUSY,
43 GPIO_CAM_GP_CAM_PWDN,
44 GPIO_CAM_GP_CAM1MP_XCLR,
45 GPIO_CAM_GP_CAMIF_RESET_N,
46 GPIO_CAM_GP_STROBE_CE,
47 GPIO_CAM_GP_LED_EN1,
48 GPIO_CAM_GP_LED_EN2,
49};
50
51enum {
52 QRD_GPIO_HOST_VBUS_EN = 107,
53 QRD_GPIO_BT_SYS_REST_EN = 114,
54 QRD_GPIO_WAKE_ON_WIRELESS,
55 QRD_GPIO_BACKLIGHT_EN,
56 QRD_GPIO_NC,
57 QRD_GPIO_CAM_3MP_PWDN, /* CAM_VGA */
58 QRD_GPIO_WLAN_EN,
59 QRD_GPIO_CAM_5MP_SHDN_EN,
60 QRD_GPIO_CAM_5MP_RESET,
61 QRD_GPIO_TP,
62 QRD_GPIO_CAM_GP_CAMIF_RESET,
63};
64
Chintan Pandya13490c02011-12-20 13:03:36 +053065#if defined(CONFIG_BT) && defined(CONFIG_MARIMBA_CORE)
66
67#define FPGA_MSM_CNTRL_REG2 0x90008010
68#define BAHAMA_SLAVE_ID_FM_REG 0x02
69#define BAHAMA_SLAVE_ID_FM_ADDR 0x2A
70#define BAHAMA_SLAVE_ID_QMEMBIST_ADDR 0x7B
71#define FM_GPIO 83
72#define BT_PCM_BCLK_MODE 0x88
73#define BT_PCM_DIN_MODE 0x89
74#define BT_PCM_DOUT_MODE 0x8A
75#define BT_PCM_SYNC_MODE 0x8B
76#define FM_I2S_SD_MODE 0x8E
77#define FM_I2S_WS_MODE 0x8F
78#define FM_I2S_SCK_MODE 0x90
79#define I2C_PIN_CTL 0x15
Chintan Pandya40762702011-12-06 13:47:06 +053080#define I2C_NORMAL 0x40
Chintan Pandya13490c02011-12-20 13:03:36 +053081
82struct bahama_config_register {
83 u8 reg;
84 u8 value;
85 u8 mask;
86};
87
88struct bt_vreg_info {
89 const char *name;
90 unsigned int pmapp_id;
91 unsigned int min_level;
92 unsigned int max_level;
93 unsigned int is_pin_controlled;
94 struct regulator *reg;
95};
96
97extern struct platform_device msm_bt_power_device;
98
99void __init msm7627a_bt_power_init(void);
100#endif
101
Chintan Pandya40762702011-12-06 13:47:06 +0530102void __init msm7627a_camera_init(void);
103
Chintan Pandyacf467fc2011-12-01 17:11:11 +0530104#endif