Manu Gautam | 5143b25 | 2012-01-05 19:25:23 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2011-2012, Code Aurora Forum. All rights reserved. |
Rohit Vaswani | ced9b3b | 2011-08-23 17:21:49 -0700 | [diff] [blame] | 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 | #include <linux/kernel.h> |
| 14 | #include <linux/platform_device.h> |
Amit Blay | 5f968cf | 2012-01-22 12:04:01 +0200 | [diff] [blame] | 15 | #include <linux/io.h> |
Harini Jayaraman | eba5267 | 2011-09-08 15:13:00 -0600 | [diff] [blame] | 16 | #include <linux/i2c.h> |
Sagar Dharia | 2a5378d | 2011-12-01 20:00:11 -0700 | [diff] [blame] | 17 | #include <linux/slimbus/slimbus.h> |
Kenneth Heitke | af3d3cf | 2011-09-08 11:45:31 -0700 | [diff] [blame] | 18 | #include <linux/msm_ssbi.h> |
Maheshkumar Sivasubramanian | c6c5503 | 2011-10-25 16:01:32 -0600 | [diff] [blame] | 19 | #include <linux/memblock.h> |
Rohit Vaswani | a681589 | 2011-12-15 20:20:39 -0800 | [diff] [blame] | 20 | #include <linux/usb/android.h> |
| 21 | #include <linux/usb/msm_hsusb.h> |
| 22 | #include <linux/mfd/pm8xxx/pm8xxx-adc.h> |
| 23 | #include <linux/leds.h> |
| 24 | #include <linux/leds-pm8xxx.h> |
| 25 | #include <linux/power/ltc4088-charger.h> |
Siddartha Mohanadoss | 7e25dc1 | 2012-03-19 11:19:27 -0700 | [diff] [blame^] | 26 | #include <linux/msm_tsens.h> |
Rohit Vaswani | ced9b3b | 2011-08-23 17:21:49 -0700 | [diff] [blame] | 27 | #include <asm/mach-types.h> |
| 28 | #include <asm/mach/arch.h> |
Marc Zyngier | 89bdafd1 | 2011-12-22 11:39:20 +0530 | [diff] [blame] | 29 | #include <asm/hardware/gic.h> |
Rohit Vaswani | ced9b3b | 2011-08-23 17:21:49 -0700 | [diff] [blame] | 30 | #include <mach/board.h> |
| 31 | #include <mach/msm_iomap.h> |
| 32 | #include <mach/gpio.h> |
Harini Jayaraman | 738c931 | 2011-09-08 15:22:38 -0600 | [diff] [blame] | 33 | #include <mach/msm_spi.h> |
Gagan Mac | 7a82764 | 2011-09-22 19:42:21 -0600 | [diff] [blame] | 34 | #include <mach/msm_bus_board.h> |
Vikram Mulukutla | 2021c00 | 2011-12-16 12:32:59 -0800 | [diff] [blame] | 35 | #include <mach/msm_xo.h> |
Rohit Vaswani | ced9b3b | 2011-08-23 17:21:49 -0700 | [diff] [blame] | 36 | #include "timer.h" |
| 37 | #include "devices.h" |
David Collins | fb88c43 | 2011-08-25 15:12:47 -0700 | [diff] [blame] | 38 | #include "board-9615.h" |
Abhijeet Dharmapurikar | efaca4f | 2011-12-27 16:24:07 -0800 | [diff] [blame] | 39 | #include <mach/cpuidle.h> |
Matt Wagantall | 7cca464 | 2012-02-01 16:43:24 -0800 | [diff] [blame] | 40 | #include "pm.h" |
Vikram Mulukutla | b5e1cda | 2011-10-04 16:17:22 -0700 | [diff] [blame] | 41 | #include "acpuclock.h" |
Maheshkumar Sivasubramanian | c6c5503 | 2011-10-25 16:01:32 -0600 | [diff] [blame] | 42 | #include "pm-boot.h" |
Rohit Vaswani | ced9b3b | 2011-08-23 17:21:49 -0700 | [diff] [blame] | 43 | |
Siddartha Mohanadoss | 5f60b45 | 2011-10-05 11:49:00 -0700 | [diff] [blame] | 44 | static struct pm8xxx_adc_amux pm8018_adc_channels_data[] = { |
| 45 | {"vcoin", CHANNEL_VCOIN, CHAN_PATH_SCALING2, AMUX_RSV1, |
| 46 | ADC_DECIMATION_TYPE2, ADC_SCALE_DEFAULT}, |
| 47 | {"vbat", CHANNEL_VBAT, CHAN_PATH_SCALING2, AMUX_RSV1, |
| 48 | ADC_DECIMATION_TYPE2, ADC_SCALE_DEFAULT}, |
| 49 | {"vph_pwr", CHANNEL_VPH_PWR, CHAN_PATH_SCALING2, AMUX_RSV1, |
| 50 | ADC_DECIMATION_TYPE2, ADC_SCALE_DEFAULT}, |
| 51 | {"batt_therm", CHANNEL_BATT_THERM, CHAN_PATH_SCALING1, AMUX_RSV2, |
| 52 | ADC_DECIMATION_TYPE2, ADC_SCALE_BATT_THERM}, |
| 53 | {"batt_id", CHANNEL_BATT_ID, CHAN_PATH_SCALING1, AMUX_RSV2, |
| 54 | ADC_DECIMATION_TYPE2, ADC_SCALE_DEFAULT}, |
| 55 | {"pmic_therm", CHANNEL_DIE_TEMP, CHAN_PATH_SCALING1, AMUX_RSV1, |
| 56 | ADC_DECIMATION_TYPE2, ADC_SCALE_PMIC_THERM}, |
| 57 | {"625mv", CHANNEL_625MV, CHAN_PATH_SCALING1, AMUX_RSV1, |
| 58 | ADC_DECIMATION_TYPE2, ADC_SCALE_DEFAULT}, |
| 59 | {"125v", CHANNEL_125V, CHAN_PATH_SCALING1, AMUX_RSV1, |
| 60 | ADC_DECIMATION_TYPE2, ADC_SCALE_DEFAULT}, |
| 61 | {"pa_therm0", ADC_MPP_1_AMUX3, CHAN_PATH_SCALING1, AMUX_RSV1, |
| 62 | ADC_DECIMATION_TYPE2, ADC_SCALE_PA_THERM}, |
| 63 | }; |
| 64 | |
| 65 | static struct pm8xxx_adc_properties pm8018_adc_data = { |
| 66 | .adc_vdd_reference = 1800, /* milli-voltage for this adc */ |
| 67 | .bitresolution = 15, |
| 68 | .bipolar = 0, |
| 69 | }; |
| 70 | |
| 71 | static struct pm8xxx_adc_platform_data pm8018_adc_pdata = { |
| 72 | .adc_channel = pm8018_adc_channels_data, |
| 73 | .adc_num_board_channel = ARRAY_SIZE(pm8018_adc_channels_data), |
| 74 | .adc_prop = &pm8018_adc_data, |
| 75 | }; |
| 76 | |
David Collins | fb88c43 | 2011-08-25 15:12:47 -0700 | [diff] [blame] | 77 | static struct pm8xxx_irq_platform_data pm8xxx_irq_pdata __devinitdata = { |
| 78 | .irq_base = PM8018_IRQ_BASE, |
| 79 | .devirq = MSM_GPIO_TO_INT(87), |
| 80 | .irq_trigger_flag = IRQF_TRIGGER_LOW, |
| 81 | }; |
| 82 | |
| 83 | static struct pm8xxx_gpio_platform_data pm8xxx_gpio_pdata __devinitdata = { |
| 84 | .gpio_base = PM8018_GPIO_PM_TO_SYS(1), |
| 85 | }; |
| 86 | |
| 87 | static struct pm8xxx_mpp_platform_data pm8xxx_mpp_pdata __devinitdata = { |
| 88 | .mpp_base = PM8018_MPP_PM_TO_SYS(1), |
| 89 | }; |
| 90 | |
| 91 | static struct pm8xxx_rtc_platform_data pm8xxx_rtc_pdata __devinitdata = { |
| 92 | .rtc_write_enable = false, |
Ashay Jaiswal | db5e6dc | 2011-10-12 11:02:47 +0530 | [diff] [blame] | 93 | .rtc_alarm_powerup = false, |
David Collins | fb88c43 | 2011-08-25 15:12:47 -0700 | [diff] [blame] | 94 | }; |
| 95 | |
| 96 | static struct pm8xxx_pwrkey_platform_data pm8xxx_pwrkey_pdata = { |
| 97 | .pull_up = 1, |
Jing Lin | eecdc06 | 2011-11-17 09:47:09 -0800 | [diff] [blame] | 98 | .kpd_trigger_delay_us = 15625, |
David Collins | fb88c43 | 2011-08-25 15:12:47 -0700 | [diff] [blame] | 99 | .wakeup = 1, |
| 100 | }; |
| 101 | |
| 102 | static struct pm8xxx_misc_platform_data pm8xxx_misc_pdata = { |
| 103 | .priority = 0, |
| 104 | }; |
| 105 | |
Jay Chokshi | eb5d0d5 | 2011-09-28 17:16:20 -0700 | [diff] [blame] | 106 | #define PM8018_LED_KB_MAX_CURRENT 20 /* I = 20mA */ |
| 107 | #define PM8XXX_LED_PWM_PERIOD_US 1000 |
| 108 | |
| 109 | /** |
| 110 | * PM8XXX_PWM_CHANNEL_NONE shall be used when LED shall not be |
| 111 | * driven using PWM feature. |
| 112 | */ |
| 113 | #define PM8XXX_PWM_CHANNEL_NONE -1 |
| 114 | |
| 115 | static struct led_info pm8018_led_info[] = { |
| 116 | [0] = { |
| 117 | .name = "led:kb", |
| 118 | }, |
| 119 | }; |
| 120 | |
| 121 | static struct led_platform_data pm8018_led_core_pdata = { |
| 122 | .num_leds = ARRAY_SIZE(pm8018_led_info), |
| 123 | .leds = pm8018_led_info, |
| 124 | }; |
| 125 | |
| 126 | static struct pm8xxx_led_config pm8018_led_configs[] = { |
| 127 | [0] = { |
| 128 | .id = PM8XXX_ID_LED_KB_LIGHT, |
| 129 | .mode = PM8XXX_LED_MODE_PWM3, |
| 130 | .max_current = PM8018_LED_KB_MAX_CURRENT, |
| 131 | .pwm_channel = 2, |
| 132 | .pwm_period_us = PM8XXX_LED_PWM_PERIOD_US, |
| 133 | }, |
| 134 | }; |
| 135 | |
| 136 | static struct pm8xxx_led_platform_data pm8xxx_leds_pdata = { |
| 137 | .led_core = &pm8018_led_core_pdata, |
| 138 | .configs = pm8018_led_configs, |
| 139 | .num_configs = ARRAY_SIZE(pm8018_led_configs), |
| 140 | }; |
| 141 | |
Jay Chokshi | dc8028b | 2011-12-01 16:17:34 -0800 | [diff] [blame] | 142 | #ifdef CONFIG_LTC4088_CHARGER |
| 143 | static struct ltc4088_charger_platform_data ltc4088_chg_pdata = { |
| 144 | .gpio_mode_select_d0 = 7, |
| 145 | .gpio_mode_select_d1 = 6, |
| 146 | .gpio_mode_select_d2 = 4, |
| 147 | }; |
| 148 | #endif |
| 149 | |
David Collins | fb88c43 | 2011-08-25 15:12:47 -0700 | [diff] [blame] | 150 | static struct pm8018_platform_data pm8018_platform_data __devinitdata = { |
| 151 | .irq_pdata = &pm8xxx_irq_pdata, |
| 152 | .gpio_pdata = &pm8xxx_gpio_pdata, |
| 153 | .mpp_pdata = &pm8xxx_mpp_pdata, |
| 154 | .rtc_pdata = &pm8xxx_rtc_pdata, |
| 155 | .pwrkey_pdata = &pm8xxx_pwrkey_pdata, |
| 156 | .misc_pdata = &pm8xxx_misc_pdata, |
David Collins | 00b31e6 | 2011-08-31 20:00:10 -0700 | [diff] [blame] | 157 | .regulator_pdatas = msm_pm8018_regulator_pdata, |
Siddartha Mohanadoss | 5f60b45 | 2011-10-05 11:49:00 -0700 | [diff] [blame] | 158 | .adc_pdata = &pm8018_adc_pdata, |
Jay Chokshi | eb5d0d5 | 2011-09-28 17:16:20 -0700 | [diff] [blame] | 159 | .leds_pdata = &pm8xxx_leds_pdata, |
David Collins | fb88c43 | 2011-08-25 15:12:47 -0700 | [diff] [blame] | 160 | }; |
| 161 | |
Kenneth Heitke | af3d3cf | 2011-09-08 11:45:31 -0700 | [diff] [blame] | 162 | static struct msm_ssbi_platform_data msm9615_ssbi_pm8018_pdata __devinitdata = { |
| 163 | .controller_type = MSM_SBI_CTRL_PMIC_ARBITER, |
| 164 | .slave = { |
David Collins | fb88c43 | 2011-08-25 15:12:47 -0700 | [diff] [blame] | 165 | .name = PM8018_CORE_DEV_NAME, |
| 166 | .platform_data = &pm8018_platform_data, |
Kenneth Heitke | af3d3cf | 2011-09-08 11:45:31 -0700 | [diff] [blame] | 167 | }, |
| 168 | }; |
| 169 | |
David Collins | bea297a | 2011-09-28 13:11:14 -0700 | [diff] [blame] | 170 | static struct platform_device msm9615_device_rpm_regulator __devinitdata = { |
| 171 | .name = "rpm-regulator", |
| 172 | .id = -1, |
| 173 | .dev = { |
| 174 | .platform_data = &msm_rpm_regulator_9615_pdata, |
| 175 | }, |
| 176 | }; |
| 177 | |
David Collins | 0f9942a | 2011-10-31 09:47:34 -0700 | [diff] [blame] | 178 | static struct platform_device msm9615_device_ext_2p95v_vreg = { |
| 179 | .name = GPIO_REGULATOR_DEV_NAME, |
| 180 | .id = 18, |
| 181 | .dev = { |
| 182 | .platform_data = |
| 183 | &msm_gpio_regulator_pdata[GPIO_VREG_ID_EXT_2P95V], |
| 184 | }, |
| 185 | }; |
| 186 | |
Maheshkumar Sivasubramanian | 4923db2 | 2011-09-15 09:28:15 -0600 | [diff] [blame] | 187 | static struct msm_cpuidle_state msm_cstates[] __initdata = { |
| 188 | {0, 0, "C0", "WFI", |
| 189 | MSM_PM_SLEEP_MODE_WAIT_FOR_INTERRUPT}, |
| 190 | |
| 191 | {0, 1, "C1", "STANDALONE_POWER_COLLAPSE", |
| 192 | MSM_PM_SLEEP_MODE_POWER_COLLAPSE_STANDALONE}, |
| 193 | |
| 194 | {0, 2, "C2", "POWER_COLLAPSE", |
| 195 | MSM_PM_SLEEP_MODE_POWER_COLLAPSE}, |
| 196 | }; |
| 197 | static struct msm_pm_platform_data msm_pm_data[MSM_PM_SLEEP_MODE_NR] = { |
| 198 | [MSM_PM_MODE(0, MSM_PM_SLEEP_MODE_POWER_COLLAPSE)] = { |
| 199 | .idle_supported = 1, |
| 200 | .suspend_supported = 1, |
| 201 | .idle_enabled = 0, |
| 202 | .suspend_enabled = 0, |
| 203 | }, |
| 204 | [MSM_PM_MODE(0, MSM_PM_SLEEP_MODE_POWER_COLLAPSE_STANDALONE)] = { |
| 205 | .idle_supported = 1, |
| 206 | .suspend_supported = 1, |
| 207 | .idle_enabled = 0, |
| 208 | .suspend_enabled = 0, |
| 209 | }, |
| 210 | [MSM_PM_MODE(0, MSM_PM_SLEEP_MODE_WAIT_FOR_INTERRUPT)] = { |
| 211 | .idle_supported = 1, |
| 212 | .suspend_supported = 1, |
| 213 | .idle_enabled = 1, |
| 214 | .suspend_enabled = 1, |
| 215 | }, |
| 216 | }; |
Krishna Konda | dd79446 | 2011-10-01 00:19:29 -0700 | [diff] [blame] | 217 | |
Maheshkumar Sivasubramanian | c6c5503 | 2011-10-25 16:01:32 -0600 | [diff] [blame] | 218 | static struct msm_pm_boot_platform_data msm_pm_boot_pdata __initdata = { |
| 219 | .mode = MSM_PM_BOOT_CONFIG_REMAP_BOOT_ADDR, |
| 220 | .v_addr = MSM_APCS_GLB_BASE + 0x24, |
| 221 | }; |
| 222 | |
Gagan Mac | 7a82764 | 2011-09-22 19:42:21 -0600 | [diff] [blame] | 223 | static void __init msm9615_init_buses(void) |
| 224 | { |
| 225 | #ifdef CONFIG_MSM_BUS_SCALING |
| 226 | msm_bus_rpm_set_mt_mask(); |
| 227 | msm_bus_9615_sys_fabric_pdata.rpm_enabled = 1; |
| 228 | msm_bus_9615_sys_fabric.dev.platform_data = |
| 229 | &msm_bus_9615_sys_fabric_pdata; |
| 230 | msm_bus_def_fab.dev.platform_data = &msm_bus_9615_def_fab_pdata; |
| 231 | #endif |
| 232 | } |
| 233 | |
Sagar Dharia | 2a5378d | 2011-12-01 20:00:11 -0700 | [diff] [blame] | 234 | static struct slim_boardinfo msm_slim_devices[] = { |
| 235 | /* add slimbus slaves as needed */ |
| 236 | }; |
| 237 | |
Harini Jayaraman | 738c931 | 2011-09-08 15:22:38 -0600 | [diff] [blame] | 238 | static struct msm_spi_platform_data msm9615_qup_spi_gsbi3_pdata = { |
| 239 | .max_clock_speed = 24000000, |
| 240 | }; |
| 241 | |
Harini Jayaraman | eba5267 | 2011-09-08 15:13:00 -0600 | [diff] [blame] | 242 | static struct msm_i2c_platform_data msm9615_i2c_qup_gsbi5_pdata = { |
| 243 | .clk_freq = 100000, |
| 244 | .src_clk_rate = 24000000, |
| 245 | }; |
| 246 | |
Amit Blay | 6a8d4f3 | 2011-11-21 10:36:25 +0200 | [diff] [blame] | 247 | #define USB_5V_EN 3 |
| 248 | #define PM_USB_5V_EN PM8018_GPIO_PM_TO_SYS(USB_5V_EN) |
| 249 | |
Mayank Rana | 8549e63 | 2012-01-23 12:49:54 +0530 | [diff] [blame] | 250 | static int msm_hsusb_vbus_power(bool on) |
Amit Blay | 6a8d4f3 | 2011-11-21 10:36:25 +0200 | [diff] [blame] | 251 | { |
Amit Blay | a4416f9 | 2012-01-24 21:03:52 +0200 | [diff] [blame] | 252 | int rc; |
Amit Blay | 6a8d4f3 | 2011-11-21 10:36:25 +0200 | [diff] [blame] | 253 | struct pm_gpio usb_vbus = { |
| 254 | .direction = PM_GPIO_DIR_OUT, |
| 255 | .pull = PM_GPIO_PULL_NO, |
| 256 | .output_buffer = PM_GPIO_OUT_BUF_CMOS, |
Amit Blay | 6a8d4f3 | 2011-11-21 10:36:25 +0200 | [diff] [blame] | 257 | .vin_sel = 2, |
| 258 | .out_strength = PM_GPIO_STRENGTH_HIGH, |
| 259 | .function = PM_GPIO_FUNC_NORMAL, |
| 260 | .inv_int_pol = 0, |
| 261 | }; |
| 262 | |
Amit Blay | a4416f9 | 2012-01-24 21:03:52 +0200 | [diff] [blame] | 263 | usb_vbus.output_value = on; |
Amit Blay | 6a8d4f3 | 2011-11-21 10:36:25 +0200 | [diff] [blame] | 264 | |
Amit Blay | a4416f9 | 2012-01-24 21:03:52 +0200 | [diff] [blame] | 265 | rc = pm8xxx_gpio_config(PM_USB_5V_EN, &usb_vbus); |
| 266 | if (rc) |
| 267 | pr_err("failed to config usb_5v_en gpio\n"); |
Amit Blay | 6a8d4f3 | 2011-11-21 10:36:25 +0200 | [diff] [blame] | 268 | |
Mayank Rana | 8549e63 | 2012-01-23 12:49:54 +0530 | [diff] [blame] | 269 | return rc; |
Amit Blay | 6a8d4f3 | 2011-11-21 10:36:25 +0200 | [diff] [blame] | 270 | } |
| 271 | |
Anji jonnala | a8b8d73 | 2011-12-06 10:03:24 +0530 | [diff] [blame] | 272 | static int shelby_phy_init_seq[] = { |
| 273 | 0x44, 0x80,/* set VBUS valid threshold and |
| 274 | disconnect valid threshold */ |
| 275 | 0x38, 0x81, /* update DC voltage level */ |
| 276 | 0x14, 0x82,/* set preemphasis and rise/fall time */ |
| 277 | 0x13, 0x83,/* set source impedance adjustment */ |
| 278 | -1}; |
| 279 | |
Ofir Cohen | 40a4e86 | 2011-12-08 15:17:52 +0200 | [diff] [blame] | 280 | #define USB_BAM_PHY_BASE 0x12502000 |
Ofir Cohen | 43473c8 | 2012-01-25 16:28:13 +0200 | [diff] [blame] | 281 | #define HSIC_BAM_PHY_BASE 0x12542000 |
Ofir Cohen | 40a4e86 | 2011-12-08 15:17:52 +0200 | [diff] [blame] | 282 | #define A2_BAM_PHY_BASE 0x124C2000 |
| 283 | static struct usb_bam_pipe_connect msm_usb_bam_connections[4][2] = { |
Lena Salman | 57d167e | 2012-03-21 19:46:38 +0200 | [diff] [blame] | 284 | #ifndef CONFIG_USB_CI13XXX_MSM_HSIC |
Ofir Cohen | 40a4e86 | 2011-12-08 15:17:52 +0200 | [diff] [blame] | 285 | [0][USB_TO_PEER_PERIPHERAL] = { |
| 286 | .src_phy_addr = USB_BAM_PHY_BASE, |
| 287 | .src_pipe_index = 11, |
| 288 | .dst_phy_addr = A2_BAM_PHY_BASE, |
| 289 | .dst_pipe_index = 0, |
Ofir Cohen | 29cd575 | 2011-12-14 17:20:30 +0200 | [diff] [blame] | 290 | .data_fifo_base_offset = 0x1100, |
| 291 | .data_fifo_size = 0x600, |
| 292 | .desc_fifo_base_offset = 0x1700, |
Ofir Cohen | 40a4e86 | 2011-12-08 15:17:52 +0200 | [diff] [blame] | 293 | .desc_fifo_size = 0x300, |
| 294 | }, |
| 295 | [0][PEER_PERIPHERAL_TO_USB] = { |
| 296 | .src_phy_addr = A2_BAM_PHY_BASE, |
| 297 | .src_pipe_index = 1, |
| 298 | .dst_phy_addr = USB_BAM_PHY_BASE, |
| 299 | .dst_pipe_index = 10, |
| 300 | .data_fifo_base_offset = 0xa00, |
Ofir Cohen | 29cd575 | 2011-12-14 17:20:30 +0200 | [diff] [blame] | 301 | .data_fifo_size = 0x600, |
| 302 | .desc_fifo_base_offset = 0x1000, |
Ofir Cohen | 40a4e86 | 2011-12-08 15:17:52 +0200 | [diff] [blame] | 303 | .desc_fifo_size = 0x100, |
| 304 | }, |
Anna Perel | 2151516 | 2012-02-02 20:50:02 +0200 | [diff] [blame] | 305 | [1][USB_TO_PEER_PERIPHERAL] = { |
| 306 | .src_phy_addr = USB_BAM_PHY_BASE, |
| 307 | .src_pipe_index = 13, |
| 308 | .dst_phy_addr = A2_BAM_PHY_BASE, |
| 309 | .dst_pipe_index = 2, |
| 310 | .data_fifo_base_offset = 0x2100, |
| 311 | .data_fifo_size = 0x600, |
| 312 | .desc_fifo_base_offset = 0x2700, |
| 313 | .desc_fifo_size = 0x300, |
| 314 | }, |
| 315 | [1][PEER_PERIPHERAL_TO_USB] = { |
| 316 | .src_phy_addr = A2_BAM_PHY_BASE, |
| 317 | .src_pipe_index = 3, |
| 318 | .dst_phy_addr = USB_BAM_PHY_BASE, |
| 319 | .dst_pipe_index = 12, |
| 320 | .data_fifo_base_offset = 0x1a00, |
| 321 | .data_fifo_size = 0x600, |
| 322 | .desc_fifo_base_offset = 0x2000, |
| 323 | .desc_fifo_size = 0x100, |
| 324 | }, |
| 325 | [2][USB_TO_PEER_PERIPHERAL] = { |
| 326 | .src_phy_addr = USB_BAM_PHY_BASE, |
| 327 | .src_pipe_index = 15, |
| 328 | .dst_phy_addr = A2_BAM_PHY_BASE, |
| 329 | .dst_pipe_index = 4, |
| 330 | .data_fifo_base_offset = 0x3100, |
| 331 | .data_fifo_size = 0x600, |
| 332 | .desc_fifo_base_offset = 0x3700, |
| 333 | .desc_fifo_size = 0x300, |
| 334 | }, |
| 335 | [2][PEER_PERIPHERAL_TO_USB] = { |
| 336 | .src_phy_addr = A2_BAM_PHY_BASE, |
| 337 | .src_pipe_index = 5, |
| 338 | .dst_phy_addr = USB_BAM_PHY_BASE, |
| 339 | .dst_pipe_index = 14, |
| 340 | .data_fifo_base_offset = 0x2a00, |
| 341 | .data_fifo_size = 0x600, |
| 342 | .desc_fifo_base_offset = 0x3000, |
| 343 | .desc_fifo_size = 0x100, |
| 344 | } |
Ofir Cohen | 057fb3e | 2012-02-05 15:25:47 +0200 | [diff] [blame] | 345 | #else |
| 346 | [0][USB_TO_PEER_PERIPHERAL] = { |
| 347 | .src_phy_addr = HSIC_BAM_PHY_BASE, |
| 348 | .src_pipe_index = 1, |
| 349 | .dst_phy_addr = A2_BAM_PHY_BASE, |
| 350 | .dst_pipe_index = 0, |
| 351 | .data_fifo_base_offset = 0x1100, |
| 352 | .data_fifo_size = 0x600, |
| 353 | .desc_fifo_base_offset = 0x1700, |
| 354 | .desc_fifo_size = 0x300, |
| 355 | }, |
| 356 | [0][PEER_PERIPHERAL_TO_USB] = { |
| 357 | .src_phy_addr = A2_BAM_PHY_BASE, |
| 358 | .src_pipe_index = 1, |
| 359 | .dst_phy_addr = HSIC_BAM_PHY_BASE, |
| 360 | .dst_pipe_index = 0, |
| 361 | .data_fifo_base_offset = 0xa00, |
| 362 | .data_fifo_size = 0x600, |
| 363 | .desc_fifo_base_offset = 0x1000, |
| 364 | .desc_fifo_size = 0x100, |
| 365 | }, |
| 366 | [1][USB_TO_PEER_PERIPHERAL] = { |
| 367 | .src_phy_addr = HSIC_BAM_PHY_BASE, |
| 368 | .src_pipe_index = 3, |
| 369 | .dst_phy_addr = A2_BAM_PHY_BASE, |
| 370 | .dst_pipe_index = 2, |
| 371 | .data_fifo_base_offset = 0x2100, |
| 372 | .data_fifo_size = 0x600, |
| 373 | .desc_fifo_base_offset = 0x2700, |
| 374 | .desc_fifo_size = 0x300, |
| 375 | }, |
| 376 | [1][PEER_PERIPHERAL_TO_USB] = { |
| 377 | .src_phy_addr = A2_BAM_PHY_BASE, |
| 378 | .src_pipe_index = 3, |
| 379 | .dst_phy_addr = HSIC_BAM_PHY_BASE, |
| 380 | .dst_pipe_index = 2, |
| 381 | .data_fifo_base_offset = 0x1a00, |
| 382 | .data_fifo_size = 0x600, |
| 383 | .desc_fifo_base_offset = 0x2000, |
| 384 | .desc_fifo_size = 0x100, |
| 385 | }, |
| 386 | [2][USB_TO_PEER_PERIPHERAL] = { |
| 387 | .src_phy_addr = HSIC_BAM_PHY_BASE, |
| 388 | .src_pipe_index = 5, |
| 389 | .dst_phy_addr = A2_BAM_PHY_BASE, |
| 390 | .dst_pipe_index = 4, |
| 391 | .data_fifo_base_offset = 0x3100, |
| 392 | .data_fifo_size = 0x600, |
| 393 | .desc_fifo_base_offset = 0x3700, |
| 394 | .desc_fifo_size = 0x300, |
| 395 | }, |
| 396 | [2][PEER_PERIPHERAL_TO_USB] = { |
| 397 | .src_phy_addr = A2_BAM_PHY_BASE, |
| 398 | .src_pipe_index = 5, |
| 399 | .dst_phy_addr = HSIC_BAM_PHY_BASE, |
| 400 | .dst_pipe_index = 4, |
| 401 | .data_fifo_base_offset = 0x2a00, |
| 402 | .data_fifo_size = 0x600, |
| 403 | .desc_fifo_base_offset = 0x3000, |
| 404 | .desc_fifo_size = 0x100, |
| 405 | } |
| 406 | #endif |
Ofir Cohen | 40a4e86 | 2011-12-08 15:17:52 +0200 | [diff] [blame] | 407 | }; |
| 408 | |
| 409 | static struct msm_usb_bam_platform_data msm_usb_bam_pdata = { |
| 410 | .connections = &msm_usb_bam_connections[0][0], |
Lena Salman | 57d167e | 2012-03-21 19:46:38 +0200 | [diff] [blame] | 411 | #ifndef CONFIG_USB_CI13XXX_MSM_HSIC |
Ofir Cohen | 43473c8 | 2012-01-25 16:28:13 +0200 | [diff] [blame] | 412 | .usb_active_bam = HSUSB_BAM, |
| 413 | .usb_bam_num_pipes = 16, |
| 414 | #else |
| 415 | .usb_active_bam = HSIC_BAM, |
| 416 | .usb_bam_num_pipes = 16, |
| 417 | #endif |
Ofir Cohen | 40a4e86 | 2011-12-08 15:17:52 +0200 | [diff] [blame] | 418 | }; |
| 419 | |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 420 | static struct msm_otg_platform_data msm_otg_pdata = { |
Amit Blay | 6a8d4f3 | 2011-11-21 10:36:25 +0200 | [diff] [blame] | 421 | .mode = USB_OTG, |
| 422 | .otg_control = OTG_PHY_CONTROL, |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 423 | .phy_type = SNPS_28NM_INTEGRATED_PHY, |
Amit Blay | 6a8d4f3 | 2011-11-21 10:36:25 +0200 | [diff] [blame] | 424 | .vbus_power = msm_hsusb_vbus_power, |
Ofir Cohen | 4da266f | 2012-01-03 10:19:29 +0200 | [diff] [blame] | 425 | .disable_reset_on_disconnect = true, |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 426 | }; |
| 427 | |
Amit Blay | 5f968cf | 2012-01-22 12:04:01 +0200 | [diff] [blame] | 428 | #define PID_MAGIC_ID 0x71432909 |
| 429 | #define SERIAL_NUM_MAGIC_ID 0x61945374 |
| 430 | #define SERIAL_NUMBER_LENGTH 127 |
| 431 | #define DLOAD_USB_BASE_ADD 0x2B0000C8 |
| 432 | |
| 433 | struct magic_num_struct { |
| 434 | uint32_t pid; |
| 435 | uint32_t serial_num; |
| 436 | }; |
| 437 | |
| 438 | struct dload_struct { |
| 439 | uint32_t reserved1; |
| 440 | uint32_t reserved2; |
| 441 | uint32_t reserved3; |
| 442 | uint16_t reserved4; |
| 443 | uint16_t pid; |
| 444 | char serial_number[SERIAL_NUMBER_LENGTH]; |
| 445 | uint16_t reserved5; |
| 446 | struct magic_num_struct magic_struct; |
| 447 | }; |
| 448 | |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 449 | static int usb_diag_update_pid_and_serial_num(uint32_t pid, const char *snum) |
| 450 | { |
Amit Blay | 5f968cf | 2012-01-22 12:04:01 +0200 | [diff] [blame] | 451 | struct dload_struct __iomem *dload = 0; |
| 452 | |
| 453 | dload = ioremap(DLOAD_USB_BASE_ADD, sizeof(*dload)); |
| 454 | if (!dload) { |
| 455 | pr_err("%s: cannot remap I/O memory region: %08x\n", |
| 456 | __func__, DLOAD_USB_BASE_ADD); |
| 457 | return -ENXIO; |
| 458 | } |
| 459 | |
| 460 | pr_debug("%s: dload:%p pid:%x serial_num:%s\n", |
| 461 | __func__, dload, pid, snum); |
| 462 | /* update pid */ |
| 463 | dload->magic_struct.pid = PID_MAGIC_ID; |
| 464 | dload->pid = pid; |
| 465 | |
| 466 | /* update serial number */ |
| 467 | dload->magic_struct.serial_num = 0; |
| 468 | if (!snum) { |
| 469 | memset(dload->serial_number, 0, SERIAL_NUMBER_LENGTH); |
| 470 | goto out; |
| 471 | } |
| 472 | |
| 473 | dload->magic_struct.serial_num = SERIAL_NUM_MAGIC_ID; |
| 474 | strlcpy(dload->serial_number, snum, SERIAL_NUMBER_LENGTH); |
| 475 | out: |
| 476 | iounmap(dload); |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 477 | return 0; |
| 478 | } |
| 479 | |
| 480 | static struct android_usb_platform_data android_usb_pdata = { |
| 481 | .update_pid_and_serial_num = usb_diag_update_pid_and_serial_num, |
| 482 | }; |
| 483 | |
| 484 | static struct platform_device android_usb_device = { |
| 485 | .name = "android_usb", |
| 486 | .id = -1, |
| 487 | .dev = { |
| 488 | .platform_data = &android_usb_pdata, |
| 489 | }, |
| 490 | }; |
| 491 | |
Rohit Vaswani | 149f0a7 | 2011-11-09 15:21:28 -0800 | [diff] [blame] | 492 | static struct platform_device msm_wlan_ar6000_pm_device = { |
| 493 | .name = "wlan_ar6000_pm_dev", |
| 494 | .id = -1, |
| 495 | }; |
| 496 | |
| 497 | static int __init msm9615_init_ar6000pm(void) |
| 498 | { |
| 499 | return platform_device_register(&msm_wlan_ar6000_pm_device); |
| 500 | } |
| 501 | |
Jay Chokshi | dc8028b | 2011-12-01 16:17:34 -0800 | [diff] [blame] | 502 | #ifdef CONFIG_LTC4088_CHARGER |
| 503 | static struct platform_device msm_device_charger = { |
| 504 | .name = LTC4088_CHARGER_DEV_NAME, |
| 505 | .id = -1, |
| 506 | .dev = { |
| 507 | .platform_data = <c4088_chg_pdata, |
| 508 | }, |
| 509 | }; |
| 510 | #endif |
| 511 | |
Siddartha Mohanadoss | 7e25dc1 | 2012-03-19 11:19:27 -0700 | [diff] [blame^] | 512 | static struct tsens_platform_data msm_tsens_pdata = { |
| 513 | .tsens_factor = 1000, |
| 514 | .hw_type = MDM_9615, |
| 515 | .tsens_num_sensor = 5, |
| 516 | .slope = {1176, 1176, 1154, 1176, 1111}, |
| 517 | }; |
| 518 | |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 519 | static struct platform_device *common_devices[] = { |
| 520 | &msm9615_device_dmov, |
| 521 | &msm_device_smd, |
Jay Chokshi | dc8028b | 2011-12-01 16:17:34 -0800 | [diff] [blame] | 522 | #ifdef CONFIG_LTC4088_CHARGER |
| 523 | &msm_device_charger, |
| 524 | #endif |
Lena Salman | 57d167e | 2012-03-21 19:46:38 +0200 | [diff] [blame] | 525 | #ifndef CONFIG_USB_CI13XXX_MSM_HSIC |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 526 | &msm_device_otg, |
Ofir Cohen | dca06cb | 2012-03-08 16:37:45 +0200 | [diff] [blame] | 527 | #endif |
Ofir Cohen | 73c99e8 | 2012-01-15 13:38:14 +0200 | [diff] [blame] | 528 | &msm_device_hsic_peripheral, |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 529 | &msm_device_gadget_peripheral, |
Amit Blay | 6a8d4f3 | 2011-11-21 10:36:25 +0200 | [diff] [blame] | 530 | &msm_device_hsusb_host, |
Lena Salman | 65bcf37 | 2012-02-14 15:33:32 +0200 | [diff] [blame] | 531 | &msm_device_hsic_host, |
Ofir Cohen | 40a4e86 | 2011-12-08 15:17:52 +0200 | [diff] [blame] | 532 | &msm_device_usb_bam, |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 533 | &android_usb_device, |
| 534 | &msm9615_device_uart_gsbi4, |
David Collins | 0f9942a | 2011-10-31 09:47:34 -0700 | [diff] [blame] | 535 | &msm9615_device_ext_2p95v_vreg, |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 536 | &msm9615_device_ssbi_pmic1, |
| 537 | &msm9615_device_qup_i2c_gsbi5, |
| 538 | &msm9615_device_qup_spi_gsbi3, |
| 539 | &msm_device_sps, |
Sagar Dharia | 2a5378d | 2011-12-01 20:00:11 -0700 | [diff] [blame] | 540 | &msm9615_slim_ctrl, |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 541 | &msm_device_nand, |
Eric Holmberg | 0c96e70 | 2011-11-08 18:04:31 -0700 | [diff] [blame] | 542 | &msm_device_bam_dmux, |
Praveen Chidambaram | 7849901 | 2011-11-01 17:15:17 -0600 | [diff] [blame] | 543 | &msm9615_rpm_device, |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 544 | #ifdef CONFIG_HW_RANDOM_MSM |
| 545 | &msm_device_rng, |
| 546 | #endif |
| 547 | |
| 548 | #if defined(CONFIG_CRYPTO_DEV_QCRYPTO) || \ |
| 549 | defined(CONFIG_CRYPTO_DEV_QCRYPTO_MODULE) |
Ramesh Masavarapu | aa28b5b | 2011-10-21 10:26:03 -0700 | [diff] [blame] | 550 | &msm9615_qcrypto_device, |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 551 | #endif |
| 552 | |
| 553 | #if defined(CONFIG_CRYPTO_DEV_QCEDEV) || \ |
| 554 | defined(CONFIG_CRYPTO_DEV_QCEDEV_MODULE) |
Ramesh Masavarapu | aa28b5b | 2011-10-21 10:26:03 -0700 | [diff] [blame] | 555 | &msm9615_qcedev_device, |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 556 | #endif |
Jeff Ohlstein | 7e66855 | 2011-10-06 16:17:25 -0700 | [diff] [blame] | 557 | &msm9615_device_watchdog, |
Gagan Mac | 7a82764 | 2011-09-22 19:42:21 -0600 | [diff] [blame] | 558 | &msm_bus_9615_sys_fabric, |
| 559 | &msm_bus_def_fab, |
Praveen Chidambaram | 7849901 | 2011-11-01 17:15:17 -0600 | [diff] [blame] | 560 | &msm9615_rpm_log_device, |
| 561 | &msm9615_rpm_stat_device, |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 562 | }; |
| 563 | |
Harini Jayaraman | eba5267 | 2011-09-08 15:13:00 -0600 | [diff] [blame] | 564 | static void __init msm9615_i2c_init(void) |
| 565 | { |
| 566 | msm9615_device_qup_i2c_gsbi5.dev.platform_data = |
| 567 | &msm9615_i2c_qup_gsbi5_pdata; |
| 568 | } |
| 569 | |
Maheshkumar Sivasubramanian | c6c5503 | 2011-10-25 16:01:32 -0600 | [diff] [blame] | 570 | static void __init msm9615_reserve(void) |
| 571 | { |
| 572 | msm_pm_boot_pdata.p_addr = memblock_alloc(SZ_8, SZ_64K); |
| 573 | } |
| 574 | |
Rohit Vaswani | ced9b3b | 2011-08-23 17:21:49 -0700 | [diff] [blame] | 575 | static void __init msm9615_common_init(void) |
| 576 | { |
| 577 | msm9615_device_init(); |
Rohit Vaswani | a681589 | 2011-12-15 20:20:39 -0800 | [diff] [blame] | 578 | msm9615_init_gpiomux(); |
Harini Jayaraman | eba5267 | 2011-09-08 15:13:00 -0600 | [diff] [blame] | 579 | msm9615_i2c_init(); |
David Collins | 00b31e6 | 2011-08-31 20:00:10 -0700 | [diff] [blame] | 580 | regulator_suppress_info_printing(); |
David Collins | bea297a | 2011-09-28 13:11:14 -0700 | [diff] [blame] | 581 | platform_device_register(&msm9615_device_rpm_regulator); |
Vikram Mulukutla | 2021c00 | 2011-12-16 12:32:59 -0800 | [diff] [blame] | 582 | msm_xo_init(); |
Gagan Mac | 7a82764 | 2011-09-22 19:42:21 -0600 | [diff] [blame] | 583 | msm_clock_init(&msm9615_clock_init_data); |
| 584 | msm9615_init_buses(); |
Harini Jayaraman | 738c931 | 2011-09-08 15:22:38 -0600 | [diff] [blame] | 585 | msm9615_device_qup_spi_gsbi3.dev.platform_data = |
| 586 | &msm9615_qup_spi_gsbi3_pdata; |
Kenneth Heitke | af3d3cf | 2011-09-08 11:45:31 -0700 | [diff] [blame] | 587 | msm9615_device_ssbi_pmic1.dev.platform_data = |
| 588 | &msm9615_ssbi_pm8018_pdata; |
David Collins | 00b31e6 | 2011-08-31 20:00:10 -0700 | [diff] [blame] | 589 | pm8018_platform_data.num_regulators = msm_pm8018_regulator_pdata_len; |
Amit Blay | 5e4ec19 | 2011-10-20 09:16:54 +0200 | [diff] [blame] | 590 | |
| 591 | msm_device_otg.dev.platform_data = &msm_otg_pdata; |
Anji jonnala | a8b8d73 | 2011-12-06 10:03:24 +0530 | [diff] [blame] | 592 | msm_otg_pdata.phy_init_seq = shelby_phy_init_seq; |
Ofir Cohen | 40a4e86 | 2011-12-08 15:17:52 +0200 | [diff] [blame] | 593 | msm_device_usb_bam.dev.platform_data = &msm_usb_bam_pdata; |
Rohit Vaswani | 0966687 | 2011-08-23 17:41:54 -0700 | [diff] [blame] | 594 | platform_add_devices(common_devices, ARRAY_SIZE(common_devices)); |
Krishna Konda | dd79446 | 2011-10-01 00:19:29 -0700 | [diff] [blame] | 595 | |
Vikram Mulukutla | b5e1cda | 2011-10-04 16:17:22 -0700 | [diff] [blame] | 596 | acpuclk_init(&acpuclk_9615_soc_data); |
| 597 | |
Rohit Vaswani | 149f0a7 | 2011-11-09 15:21:28 -0800 | [diff] [blame] | 598 | /* Ensure ar6000pm device is registered before MMC/SDC */ |
| 599 | msm9615_init_ar6000pm(); |
| 600 | |
Krishna Konda | dd79446 | 2011-10-01 00:19:29 -0700 | [diff] [blame] | 601 | msm9615_init_mmc(); |
Sagar Dharia | 2a5378d | 2011-12-01 20:00:11 -0700 | [diff] [blame] | 602 | slim_register_board_info(msm_slim_devices, |
| 603 | ARRAY_SIZE(msm_slim_devices)); |
Maheshkumar Sivasubramanian | 4923db2 | 2011-09-15 09:28:15 -0600 | [diff] [blame] | 604 | msm_pm_set_platform_data(msm_pm_data, ARRAY_SIZE(msm_pm_data)); |
| 605 | msm_pm_set_rpm_wakeup_irq(RPM_APCC_CPU0_WAKE_UP_IRQ); |
| 606 | msm_cpuidle_set_states(msm_cstates, ARRAY_SIZE(msm_cstates), |
| 607 | msm_pm_data); |
Maheshkumar Sivasubramanian | c6c5503 | 2011-10-25 16:01:32 -0600 | [diff] [blame] | 608 | BUG_ON(msm_pm_boot_init(&msm_pm_boot_pdata)); |
Siddartha Mohanadoss | 7e25dc1 | 2012-03-19 11:19:27 -0700 | [diff] [blame^] | 609 | msm_tsens_early_init(&msm_tsens_pdata); |
Rohit Vaswani | ced9b3b | 2011-08-23 17:21:49 -0700 | [diff] [blame] | 610 | } |
| 611 | |
| 612 | static void __init msm9615_cdp_init(void) |
| 613 | { |
| 614 | msm9615_common_init(); |
| 615 | } |
| 616 | |
| 617 | static void __init msm9615_mtp_init(void) |
| 618 | { |
| 619 | msm9615_common_init(); |
| 620 | } |
| 621 | |
| 622 | MACHINE_START(MSM9615_CDP, "QCT MSM9615 CDP") |
| 623 | .map_io = msm9615_map_io, |
| 624 | .init_irq = msm9615_init_irq, |
Marc Zyngier | 89bdafd1 | 2011-12-22 11:39:20 +0530 | [diff] [blame] | 625 | .handle_irq = gic_handle_irq, |
Rohit Vaswani | ced9b3b | 2011-08-23 17:21:49 -0700 | [diff] [blame] | 626 | .timer = &msm_timer, |
| 627 | .init_machine = msm9615_cdp_init, |
Maheshkumar Sivasubramanian | c6c5503 | 2011-10-25 16:01:32 -0600 | [diff] [blame] | 628 | .reserve = msm9615_reserve, |
Rohit Vaswani | ced9b3b | 2011-08-23 17:21:49 -0700 | [diff] [blame] | 629 | MACHINE_END |
| 630 | |
| 631 | MACHINE_START(MSM9615_MTP, "QCT MSM9615 MTP") |
| 632 | .map_io = msm9615_map_io, |
| 633 | .init_irq = msm9615_init_irq, |
Marc Zyngier | 89bdafd1 | 2011-12-22 11:39:20 +0530 | [diff] [blame] | 634 | .handle_irq = gic_handle_irq, |
Rohit Vaswani | ced9b3b | 2011-08-23 17:21:49 -0700 | [diff] [blame] | 635 | .timer = &msm_timer, |
| 636 | .init_machine = msm9615_mtp_init, |
Maheshkumar Sivasubramanian | c6c5503 | 2011-10-25 16:01:32 -0600 | [diff] [blame] | 637 | .reserve = msm9615_reserve, |
Rohit Vaswani | ced9b3b | 2011-08-23 17:21:49 -0700 | [diff] [blame] | 638 | MACHINE_END |