Advertisement
Guest User

Untitled

a guest
Jul 4th, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.53 KB | None | 0 0
  1. diff --git a/arch/arm/mach-msm/lge/awifi/board-awifi.c b/arch/arm/mach-msm/lge/awifi/board-awifi.c
  2. index ec43e66..e720453 100644
  3. --- a/arch/arm/mach-msm/lge/awifi/board-awifi.c
  4. +++ b/arch/arm/mach-msm/lge/awifi/board-awifi.c
  5. @@ -100,14 +100,12 @@
  6. #if defined(CONFIG_LGE_IRDA)
  7. #include <mach/clk-provider.h>
  8. #endif
  9. -// [[LGE_BSP_AUDIO, [email protected], Audience eS325 ALSA SoC Audio driver
  10. +//
  11. #if defined(CONFIG_SND_SOC_ES325_SLIM)
  12. #include <sound/esxxx.h>
  13. #endif /* CONFIG_SND_SOC_ES325_SLIM */
  14. -// ]]LGE_BSP_AUDIO, [email protected], Audience eS325 ALSA SoC Audio driver
  15. +//
  16.  
  17. -#define MHL_GPIO_INT 30
  18. -#define MHL_GPIO_RESET 35
  19.  
  20. #define MSM_PMEM_ADSP_SIZE 0x7800000
  21. #define MSM_PMEM_AUDIO_SIZE 0x4CF000
  22. @@ -315,17 +313,17 @@ static struct ion_cp_heap_pdata cp_mm_apq8064_ion_pdata = {
  23. .reusable = FMEM_ENABLED,
  24. .mem_is_fmem = FMEM_ENABLED,
  25. .fixed_position = FIXED_MIDDLE,
  26. -// [email protected] [START]
  27. +//
  28. // As per QC case #01116834, adjust is_cma value based on CONFIG_CMA kernel feature.
  29. // To QC integrator, please keep this SW change. It impacts to playback a widevine DRM contents
  30. -//20130401, [email protected], To avoid memory fail when starting Miracast [START]
  31. +//
  32. //#ifdef CONFIG_CMA
  33. // .is_cma = 1,
  34. //#else
  35. .is_cma = 0,
  36. //#endif
  37. -//20130401, [email protected], To avoid memory fail when starting Miracast [END]
  38. +//
  39. +//
  40. .no_nonsecure_alloc = 1,
  41. };
  42.  
  43. @@ -760,7 +758,7 @@ static void __init apq8064_reserve(void)
  44. #ifndef CONFIG_MACH_LGE
  45. apq8064_set_display_params(prim_panel_name, ext_panel_name,
  46. ext_resolution);
  47. -#endif /* CONFIG_MACH_LGE */
  48. +#endif /* */
  49. msm_reserve();
  50. lge_reserve();
  51. }
  52. @@ -936,7 +934,7 @@ struct platform_device lge_android_usb_device = {
  53. .platform_data = &lge_android_usb_pdata,
  54. },
  55. };
  56. -#endif /* CONFIG_USB_G_LGE_ANDROID */
  57. +#endif /* */
  58.  
  59. #ifdef CONFIG_LGE_USB_DIAG_DISABLE
  60. static struct platform_device lg_diag_cmd_device = {
  61. @@ -946,7 +944,7 @@ static struct platform_device lg_diag_cmd_device = {
  62. .platform_data = 0, //&lg_diag_cmd_pdata
  63. },
  64. };
  65. -#endif //#ifdef CONFIG_LGE_USB_DIAG_DISABLE
  66. +#endif //
  67.  
  68. /* Bandwidth requests (zero) if no vote placed */
  69. static struct msm_bus_vectors usb_init_vectors[] = {
  70. @@ -986,17 +984,28 @@ static struct msm_bus_scale_pdata usb_bus_scale_pdata = {
  71. };
  72.  
  73. static int phy_init_seq[] = {
  74. - 0x38, 0x81, /* update DC voltage level */
  75. - 0x24, 0x82, /* set pre-emphasis and rise/fall time */
  76. + 0x44, 0x80, /* update DC voltage level */
  77. + 0x39, 0x81, /* set pre-emphasis and rise/fall time */
  78. + 0x21, 0x82,
  79. + 0x33, 0x83,
  80. -1
  81. };
  82.  
  83. +static int phy_init_host_seq[] = {
  84. + 0x44, 0x80,
  85. + 0x36, 0x81,
  86. + 0x24, 0x82,
  87. + 0x13, 0x83,
  88. + -1
  89. +};
  90. +
  91. +
  92. #define PMIC_GPIO_DP 27 /* PMIC GPIO for D+ change */
  93. #define PMIC_GPIO_DP_IRQ PM8921_GPIO_IRQ(PM8921_IRQ_BASE, PMIC_GPIO_DP)
  94. #define MSM_MPM_PIN_USB1_OTGSESSVLD 40
  95.  
  96. #ifdef CONFIG_USB_OTG
  97. -static bool msm_hsusb_vbus_power(bool on)
  98. +static int msm_hsusb_vbus_power(bool on)
  99. {
  100. static struct regulator *votg_5v_switch;
  101. static struct regulator *ext_5v_reg;
  102. @@ -1049,7 +1058,7 @@ static struct msm_otg_platform_data msm_otg_pdata = {
  103. #ifdef CONFIG_USB_OTG
  104. .mode = USB_OTG,
  105. #else
  106. - .mode = USB_PERIPHERAL,
  107. + .mode = USB_PERIPHERAL,
  108. #endif
  109. #else //QCT origin
  110. .mode = USB_OTG,
  111. @@ -1060,6 +1069,7 @@ static struct msm_otg_platform_data msm_otg_pdata = {
  112. .power_budget = 750,
  113. .bus_scale_table = &usb_bus_scale_pdata,
  114. .phy_init_seq = phy_init_seq,
  115. + .phy_init_host_seq = phy_init_host_seq,
  116. .mpm_otgsessvld_int = MSM_MPM_PIN_USB1_OTGSESSVLD,
  117. #ifdef CONFIG_USB_OTG
  118. .vbus_power = msm_hsusb_vbus_power,
  119. @@ -1200,7 +1210,7 @@ static struct lp5521_led_pattern board_led_patterns[] = {
  120. .size_g = ARRAY_SIZE(mode7_green),
  121. .size_b = ARRAY_SIZE(mode7_blue),
  122. },
  123. -#if defined(CONFIG_MACH_APQ8064_GK_KR) || defined(CONFIG_MACH_APQ8064_GKATT) || defined(CONFIG_MACH_APQ8064_GKOPENHK) || defined(CONFIG_MACH_APQ8064_GV_KR) || defined(CONFIG_MACH_APQ8064_GKOPENTW) || defined(CONFIG_MACH_APQ8064_GKSHBSG) || defined(CONFIG_MACH_APQ8064_AWIFI)
  124. +#if defined(CONFIG_MACH_APQ8064_GK_KR) || defined(CONFIG_MACH_APQ8064_GKATT) || defined(CONFIG_MACH_APQ8064_GKGLOBAL) || defined(CONFIG_MACH_APQ8064_GV_KR) || defined(CONFIG_MACH_APQ8064_AWIFI)
  125. /* for dummy pattern IDs (defined LGLedRecord.java) */
  126. {
  127. /* ID_ALARM = 8 */
  128. @@ -1346,7 +1356,7 @@ static struct i2c_board_info lp5521_board_info[] __initdata = {
  129. .platform_data = &lp5521_pdata,
  130. },
  131. };
  132. -#if defined(CONFIG_MACH_APQ8064_GKATT) || defined(CONFIG_MACH_APQ8064_GKOPENHK) || defined(CONFIG_MACH_APQ8064_GKOPENTW) || defined(CONFIG_MACH_APQ8064_GKSHBSG) || defined(CONFIG_MACH_APQ8064_AWIFI)
  133. +#if defined(CONFIG_MACH_APQ8064_GKATT) || defined(CONFIG_MACH_APQ8064_GKGLOBAL) || defined(CONFIG_MACH_APQ8064_AWIFI)
  134. static struct i2c_board_info lp5521_board_info_rev_f[] __initdata = {
  135. {
  136. I2C_BOARD_INFO("lp5521", 0x33),
  137. @@ -1540,7 +1550,7 @@ static struct slim_device apq8064_slim_tabla20 = {
  138. },
  139. };
  140.  
  141. -// [[LGE_BSP_AUDIO, [email protected], Audience eS325 ALSA SoC Audio driver
  142. +//
  143. #if defined(CONFIG_SND_SOC_ES325_SLIM)
  144. static struct esxxx_platform_data apq8064_es325_data = {
  145. .reset_gpio = ES325_RESET_GPIO,
  146. @@ -1563,7 +1573,7 @@ static struct slim_device apq8064_slim_es325_gen0 = {
  147. },
  148. };
  149. #endif /* CONFIG_SND_SOC_ES325_SLIM */
  150. -// ]]LGE_BSP_AUDIO, [email protected], Audience eS325 ALSA SoC Audio driver
  151. +//
  152.  
  153. #ifdef CONFIG_SND_SOC_CS8427
  154. /* enable the level shifter for cs8427 to make sure the I2C
  155. @@ -1707,7 +1717,7 @@ static struct i2c_board_info isa1200_board_info[] __initdata = {
  156. .platform_data = &isa1200_1_pdata,
  157. },
  158. };
  159. -#endif /* LGE Not Used */
  160. +#endif /* */
  161.  
  162. #ifdef CONFIG_TOUCHSCREEN_ATMEL_MXT
  163. /* configuration data for mxt1386e using V2.1 firmware */
  164. @@ -1930,7 +1940,7 @@ static struct i2c_board_info cyttsp_info[] __initdata = {
  165. },
  166. };
  167. #endif
  168. -#ifndef CONFIG_BCMDHD
  169. +
  170.  
  171. #define MSM_WCNSS_PHYS 0x03000000
  172. #define MSM_WCNSS_SIZE 0x280000
  173. @@ -1973,7 +1983,7 @@ static struct platform_device msm_device_wcnss_wlan = {
  174. .resource = resources_wcnss_wlan,
  175. .dev = {.platform_data = &qcom_wcnss_pdata},
  176. };
  177. -#endif
  178. +
  179.  
  180. #ifdef CONFIG_RADIO_IRIS
  181. static struct platform_device msm_device_iris_fm __devinitdata = {
  182. @@ -2215,7 +2225,7 @@ static struct platform_device qcedev_device = {
  183. };
  184. #endif
  185.  
  186. -#ifdef CONFIG_MACH_APQ8064_ALTEV /* [email protected] To remove mdm modem */
  187. +#if defined(CONFIG_MACH_APQ8064_ALTEV) /* */
  188. static struct mdm_vddmin_resource mdm_vddmin_rscs = {
  189. .rpm_id = MSM_RPM_ID_VDDMIN_GPIO,
  190. .ap2mdm_vddmin_gpio = 30,
  191. @@ -2299,7 +2309,7 @@ static struct mdm_platform_data sglte2_mdm_platform_data = {
  192. static struct mdm_platform_data sglte2_qsc_platform_data = {
  193. .mdm_version = "3.0",
  194. .ramdump_delay_ms = 2000,
  195. - /* delay between two PS_HOLDs */
  196. + /* delay between two PS_HOLDs */
  197. .ps_hold_delay_ms = 500,
  198. .ramdump_timeout_ms = 600000,
  199. .no_powerdown_after_ramdumps = 1,
  200. @@ -2328,9 +2338,6 @@ static struct msm_thermal_data msm_thermal_pdata = {
  201. #ifdef CONFIG_MACH_LGE
  202. .poll_ms = 1000,
  203. .limit_temp_degC = 93,
  204. -#if defined(CONFIG_MACH_APQ8064_GK_KR)||defined(CONFIG_MACH_APQ8064_GKATT) || defined(CONFIG_MACH_APQ8064_GKOPENHK) || defined(CONFIG_MACH_APQ8064_GKOPENTW) || defined(CONFIG_MACH_APQ8064_GKSHBSG) || defined(CONFIG_MACH_APQ8064_AWIFI)
  205. - .limit_temp_degC_low = 20,
  206. -#endif
  207. #else
  208. .poll_ms = 250,
  209. .limit_temp_degC = 60,
  210. @@ -2344,6 +2351,7 @@ static struct msm_thermal_data msm_thermal_pdata = {
  211. .core_limit_temp_degC = 80,
  212. #endif
  213. .core_temp_hysteresis_degC = 10,
  214. +
  215. .core_control_mask = 0xe,
  216. };
  217.  
  218. @@ -2402,8 +2410,8 @@ static struct platform_device msm8064_device_saw_regulator_core3 = {
  219. },
  220. };
  221.  
  222. -// [S] LGE_BT: ADD/ilbeom.kim/'12-10-24 - [GK] BRCM Solution bring-up
  223. -//BEGIN: 0019632 [email protected] 2012-05-31
  224. +//
  225. +//
  226. //ADD: 0019632: [F200][BT] Bluetooth board bring-up
  227. #ifdef CONFIG_LGE_BLUESLEEP
  228. static struct resource bluesleep_resources[] = {
  229. @@ -2432,9 +2440,9 @@ static struct platform_device msm_bluesleep_device = {
  230. .num_resources = ARRAY_SIZE(bluesleep_resources),
  231. .resource = bluesleep_resources,
  232. };
  233. -#endif // CONFIG_LGE_BLUESLEEP
  234. -//END: 0019632 [email protected] 2012-05-31
  235. -// [E] LGE_BT: ADD/ilbeom.kim/'12-10-24 - [GK] BRCM Solution bring-up
  236. +#endif //
  237. +//
  238. +//
  239.  
  240. static struct msm_rpmrs_level msm_rpmrs_levels[] = {
  241. {
  242. @@ -2808,7 +2816,7 @@ static void __init mpq8064_pcie_init(void)
  243. }
  244. }
  245.  
  246. -#ifdef CONFIG_USB_OTG //#if defined(CONFIG_MACH_LGE)
  247. +#ifdef CONFIG_USB_OTG //
  248. static struct platform_device apq8064_device_ext_5v_vreg __devinitdata = {
  249. .name = GPIO_REGULATOR_DEV_NAME,
  250. .id = PM8921_MPP_PM_TO_SYS(7),
  251. @@ -2880,7 +2888,7 @@ static struct platform_device gpio_ir_recv_pdev = {
  252. static struct platform_device *common_not_mpq_devices[] __initdata = {
  253. &apq8064_device_qup_i2c_gsbi1,
  254. &apq8064_device_qup_i2c_gsbi3,
  255. -#ifdef CONFIG_BQ24262_CHARGER
  256. +#if defined(CONFIG_BQ24262_CHARGER)
  257. &apq8064_device_qup_i2c_gsbi5,
  258. #endif
  259. #if defined(CONFIG_SND_SOC_TPA2028D_DUAL_SPEAKER) || (defined (CONFIG_MACH_LGE)&& defined(CONFIG_TOUCHSCREEN_S340010_SYNAPTICS_TK))
  260. @@ -2933,28 +2941,25 @@ static struct platform_device *common_devices[] __initdata = {
  261. &apq8064_device_gadget_peripheral,
  262. &apq8064_device_hsusb_host,
  263. &android_usb_device,
  264. -#ifdef CONFIG_WIRELESS_CHARGER
  265. - &wireless_charger,
  266. -#endif
  267. #if defined(CONFIG_LGE_BROADCAST_ONESEG)
  268. &apq8064_device_qup_spi_gsbi5,
  269. -#endif /* CONFIG_LGE_BROADCAST_ONESEG */
  270. +#endif /* */
  271. #ifdef CONFIG_USB_G_LGE_ANDROID
  272. &lge_android_usb_device,
  273. #endif
  274.  
  275. -// [S] LGE_BT: ADD/ilbeom.kim/'12-10-24 - [GK] BRCM Solution bring-up
  276. -//BEGIN: 0019632 [email protected] 2012-05-31
  277. +//
  278. +//
  279. //ADD: 0019632: [F200][BT] Bluetooth board bring-up
  280. #ifdef CONFIG_LGE_BLUESLEEP
  281. &msm_bluesleep_device,
  282. -#endif // CONFIG_LGE_BLUESLEEP
  283. -//END: 0019632 [email protected] 2012-05-31
  284. -// [E] LGE_BT: ADD/ilbeom.kim/'12-10-24 - [GK] BRCM Solution bring-up
  285. +#endif //
  286. +//
  287. +//
  288.  
  289. #ifdef CONFIG_LGE_USB_DIAG_DISABLE
  290. &lg_diag_cmd_device,
  291. -#endif //#ifdef CONFIG_LGE_USB_DIAG_DISABLE
  292. +#endif //
  293.  
  294. #ifndef CONFIG_BCMDHD
  295. &msm_device_wcnss_wlan,
  296. @@ -3077,7 +3082,6 @@ static struct platform_device *common_devices[] __initdata = {
  297. &battery_bcl_device,
  298. #endif
  299. &apq8064_msm_mpd_device,
  300. - &adsp_loader_device,
  301. };
  302.  
  303. static struct platform_device *cdp_devices[] __initdata = {
  304. @@ -3089,7 +3093,7 @@ static struct platform_device *cdp_devices[] __initdata = {
  305. #ifdef CONFIG_MSM_ROTATOR
  306. &msm_rotator_device,
  307. #endif
  308. - &msm8960_cpu_slp_status,
  309. + &msm8064_pc_cntr,
  310. };
  311.  
  312. static struct platform_device
  313. @@ -3181,30 +3185,30 @@ late_initcall(rf4ce_gpio_init);
  314. /* GK Broadcom BCM4334 */
  315. #if defined(CONFIG_LGE_BLUESLEEP)
  316. #ifdef CONFIG_SERIAL_MSM_HS
  317. -/* [email protected] temp block for build error
  318. -static int configure_uart_gpios(int on)
  319. -{
  320. - int ret = 0, i;
  321. - int uart_gpios[] = {14, 15, 16, 17};
  322. -
  323. - for (i = 0; i < ARRAY_SIZE(uart_gpios); i++) {
  324. - if (on) {
  325. - ret = gpio_request(uart_gpios[i], NULL);
  326. - if (ret) {
  327. - pr_err("%s:unable to request uart gpio[%d]\n",
  328. - __func__, uart_gpios[i]);
  329. - break;
  330. - }
  331. - } else {
  332. - gpio_free(uart_gpios[i]);
  333. - }
  334. - }
  335. -
  336. - if (ret && on && i)
  337. - for (; i >= 0; i--)
  338. - gpio_free(uart_gpios[i]);
  339. - return ret;
  340. -}
  341. +/*
  342. +
  343. +
  344. +
  345. +
  346. +
  347. +
  348. +
  349. +
  350. +
  351. +
  352. +
  353. +
  354. +
  355. +
  356. +
  357. +
  358. +
  359. +
  360. +
  361. +
  362. +
  363. +
  364. +
  365. */
  366. static struct msm_serial_hs_platform_data mpq8064_gsbi6_uartdm_pdata = {
  367. // .gpio_config = configure_uart_gpios,
  368. @@ -3245,7 +3249,7 @@ static struct platform_device *irrc_uart_devices[] __initdata = {
  369. &apq8064_device_uart_gsbi7,
  370. };
  371. #endif
  372. -#if 0//[email protected] 20120813 GK ES3 UART bring up
  373. +#if 0//
  374. static struct msm_spi_platform_data apq8064_qup_spi_gsbi5_pdata = {
  375. .max_clock_speed = 1100000,
  376. };
  377. @@ -3275,7 +3279,7 @@ static struct spi_board_info spi_broadcast_board_info[] __initdata = {
  378.  
  379.  
  380. };
  381. -#endif /* CONFIG_LGE_BROADCAST */
  382. +#endif /* */
  383.  
  384. static struct spi_board_info spi_board_info[] __initdata = {
  385. #if !(CONFIG_MACH_LGE)
  386. @@ -3288,8 +3292,8 @@ static struct spi_board_info spi_board_info[] __initdata = {
  387. .chip_select = 2,
  388. .mode = SPI_MODE_0,
  389. },
  390. -#endif /* LGE Not Used */
  391. -#endif /* CONFIG_MACH_LGE */
  392. +#endif /* */
  393. +#endif /* */
  394. #ifdef CONFIG_SENSORS_EPM_ADC
  395. {
  396. .modalias = "epm_adc",
  397. @@ -3312,7 +3316,7 @@ static struct slim_boardinfo apq8064_slim_devices[] = {
  398. .bus_num = 1,
  399. .slim_slave = &apq8064_slim_tabla20,
  400. },
  401. -// [[LGE_BSP_AUDIO, [email protected], Audience eS325 ALSA SoC Audio driver
  402. +//
  403. #if defined(CONFIG_SND_SOC_ES325_SLIM)
  404. {
  405. .bus_num = 1,
  406. @@ -3324,13 +3328,13 @@ static struct slim_boardinfo apq8064_slim_devices[] = {
  407. .slim_slave = &apq8064_slim_es325_gen0
  408. },
  409. #endif /* CONFIG_SND_SOC_ES325_SLIM */
  410. -// ]]LGE_BSP_AUDIO, [email protected], Audience eS325 ALSA SoC Audio driver
  411. +//
  412.  
  413. /* add more slimbus slaves as needed */
  414. };
  415.  
  416. static struct msm_i2c_platform_data apq8064_i2c_qup_gsbi1_pdata = {
  417. - .clk_freq = 384000,//[email protected] GK ES3 bring up
  418. + .clk_freq = 384000,//
  419. .src_clk_rate = 24000000,
  420. };
  421.  
  422. @@ -3340,7 +3344,7 @@ static struct msm_i2c_platform_data apq8064_i2c_qup_gsbi3_pdata = {
  423. };
  424.  
  425. static struct msm_i2c_platform_data apq8064_i2c_qup_gsbi4_pdata = {
  426. - .clk_freq = 200000, /* LGE_CHANGE, decrease i2c speed a bit from max. to avoid stability issue., 2013-06-19, [email protected] */
  427. + .clk_freq = 200000, /* */
  428. .src_clk_rate = 24000000,
  429. };
  430.  
  431. @@ -3358,7 +3362,7 @@ static struct msm_i2c_platform_data apq8064_i2c_qup_gsbi7_pdata = {
  432. };
  433. #endif
  434.  
  435. -#if 0//[email protected] 20120813 GK ES3 UART bring up
  436. +#if 0//
  437. static struct msm_i2c_platform_data mpq8064_i2c_qup_gsbi5_pdata = {
  438. .clk_freq = 100000,
  439. .src_clk_rate = 24000000,
  440. @@ -3392,10 +3396,10 @@ static void __init apq8064_i2c_init(void)
  441. //apq8064_i2c_qup_gsbi7_pdata.use_gsbi_shared_mode = 1;
  442.  
  443. #endif
  444. - /* LGE_UPDATE_S GV DCM
  445. - * Setting protocol code to 0x60 for dual UART/I2C in GSBI3
  446. - * - Rev.B
  447. - */
  448. + /*
  449. +
  450. +
  451. + */
  452. #if defined(CONFIG_LGE_FELICA) || defined(CONFIG_LGE_NFC_SONY_CXD2235AGG)
  453. gsbi_mem = ioremap_nocache(MSM_GSBI3_PHYS, 4);
  454. writel_relaxed(GSBI_DUAL_MODE_CODE, gsbi_mem);
  455. @@ -3430,7 +3434,7 @@ static void __init apq8064_i2c_init(void)
  456. &apq8064_i2c_qup_gsbi5_pdata;
  457. #endif
  458.  
  459. -//[email protected] 20120813 GK ES3 UART bring up
  460. +//
  461. /* Setting protocol code to 0x60 for dual UART/I2C in GSBI4 */
  462. gsbi_mem = ioremap_nocache(MSM_GSBI4_PHYS, 4);
  463. if (lge_get_uart_mode()) {
  464. @@ -3701,7 +3705,7 @@ static struct platform_device mpq_keypad_device = {
  465. .platform_data = &mpq_keypad_data,
  466. },
  467. };
  468. -#endif /* LGE Not Used */
  469. +#endif /* */
  470.  
  471. /* Sensors DSPS platform data */
  472. #define DSPS_PIL_GENERIC_NAME "dsps"
  473. @@ -3762,7 +3766,7 @@ static struct i2c_registry apq8064_i2c_devices[] __initdata = {
  474. isa1200_board_info,
  475. ARRAY_SIZE(isa1200_board_info),
  476. },
  477. -#endif /* CONFIG_MACH_LGE */
  478. +#endif /* */
  479. #ifdef CONFIG_SND_SOC_CS8427
  480. {
  481. I2C_MPQ_CDP,
  482. @@ -3859,17 +3863,17 @@ static void __init register_i2c_devices(void)
  483. apq8064_camera_board_info.board_info,
  484. apq8064_camera_board_info.num_i2c_board_info,
  485. };
  486. -/* LGE_CHANGE_S, For awifi Rev.A bring-up , 2013-06-11, [email protected] */
  487. +/* */
  488. struct i2c_registry apq8064_camera_i2c_devices_revA = {
  489. I2C_SURF | I2C_FFA | I2C_LIQUID | I2C_RUMI,
  490. APQ_8064_GSBI4_QUP_I2C_BUS_ID,
  491. apq8064_camera_board_info_revA.board_info,
  492. apq8064_camera_board_info_revA.num_i2c_board_info,
  493. };
  494. -/* LGE_CHANGE_E, For awifi Rev.A bring-up , 2013-06-11, [email protected] */
  495. +/* */
  496.  
  497. -/* [patch for Enabling flash LED for camera]
  498. - * 2012-03-14, [email protected]
  499. +/*
  500. +
  501. */
  502. struct i2c_registry apq8064_lge_camera_i2c_devices = {
  503. I2C_SURF | I2C_FFA | I2C_RUMI | I2C_SIM | I2C_LIQUID | I2C_MPQ_CDP,
  504. @@ -3903,7 +3907,7 @@ static void __init register_i2c_devices(void)
  505. apq8064_i2c_devices[i].len);
  506. }
  507. #ifdef CONFIG_MSM_CAMERA
  508. -/* LGE_CHANGE_S, For awifi Rev.A bring-up , 2013-06-11, [email protected] */
  509. +/* */
  510. if(lge_get_board_revno() >= HW_REV_A){
  511. if (apq8064_camera_i2c_devices_revA.machs & mach_mask)
  512. i2c_register_board_info(apq8064_camera_i2c_devices_revA.bus,
  513. @@ -3914,7 +3918,7 @@ static void __init register_i2c_devices(void)
  514. apq8064_lge_camera_i2c_devices.info,
  515. apq8064_lge_camera_i2c_devices.len);
  516. }else{
  517. -/* LGE_CHANGE_E, For awifi Rev.A bring-up , 2013-06-11, [email protected] */
  518. +/* */
  519. if (apq8064_camera_i2c_devices.machs & mach_mask)
  520. i2c_register_board_info(apq8064_camera_i2c_devices.bus,
  521. apq8064_camera_i2c_devices.info,
  522. @@ -3990,9 +3994,9 @@ static void __init gvdcm_uart_clock_update(void)
  523. }
  524. #endif
  525.  
  526. -#if 0
  527. +#if defined(CONFIG_MACH_APQ8064_ALTEV)
  528. #ifdef CONFIG_SERIAL_MSM_HS
  529. -static int configure_uartdm_gsbi4_gpios(int on)
  530. +/*static int configure_uartdm_gsbi4_gpios(int on)
  531. {
  532. int ret = 0, i;
  533. int uart_gpios[] = {10, 11, 12, 13};
  534. @@ -4015,26 +4019,20 @@ static int configure_uartdm_gsbi4_gpios(int on)
  535. gpio_free(uart_gpios[i]);
  536. return ret;
  537. }
  538. -
  539. +*/
  540. static struct msm_serial_hs_platform_data apq8064_uartdm_gsbi4_pdata = {
  541. - .gpio_config = configure_uartdm_gsbi4_gpios,
  542. +// .gpio_config = configure_uartdm_gsbi4_gpios, build error - temporaty code
  543. + .config_gpio = 4,
  544. + .uart_tx_gpio = 10,
  545. + .uart_rx_gpio = 11,
  546. + .uart_cts_gpio = 12,
  547. + .uart_rfr_gpio = 13,
  548. };
  549. #else
  550. static struct msm_serial_hs_platform_data apq8064_uartdm_gsbi4_pdata;
  551. #endif
  552. #endif
  553.  
  554. -#ifdef CONFIG_MACH_APQ8064_ALTEV
  555. -static struct msm_serial_hs_platform_data apq8064_uartdm_gsbi4_pdata = {
  556. -// .gpio_config = configure_uartdm_gsbi4_gpios, build error - temporaty code
  557. - .config_gpio = 4,
  558. - .uart_tx_gpio = 10,
  559. - .uart_rx_gpio = 11,
  560. - .uart_cts_gpio = 12,
  561. - .uart_rfr_gpio = 13,
  562. -};
  563. -#endif
  564. -
  565. static void __init apq8064ab_update_retention_spm(void)
  566. {
  567. int i;
  568. @@ -4054,7 +4052,7 @@ static void __init apq8064ab_update_retention_spm(void)
  569.  
  570. static void __init apq8064_common_init(void)
  571. {
  572. -#ifdef CONFIG_MACH_APQ8064_ALTEV /* [email protected] To remove mdm modem */
  573. +#if defined(CONFIG_MACH_APQ8064_ALTEV) /* */
  574. u32 platform_version = socinfo_get_platform_version();
  575. #endif
  576.  
  577. @@ -4066,12 +4064,11 @@ static void __init apq8064_common_init(void)
  578. if (cpu_is_apq8064ab())
  579. apq8064ab_update_krait_spm();
  580. if (cpu_is_krait_v3()) {
  581. - struct msm_pm_init_data_type *pdata =
  582. - msm8064_pm_8x60.dev.platform_data;
  583. - pdata->retention_calls_tz = false;
  584. + msm_pm_set_tz_retention_flag(0);
  585. apq8064ab_update_retention_spm();
  586. + } else {
  587. + msm_pm_set_tz_retention_flag(1);
  588. }
  589. - platform_device_register(&msm8064_pm_8x60);
  590. msm_spm_init(msm_spm_data, ARRAY_SIZE(msm_spm_data));
  591. msm_spm_l2_init(msm_spm_l2_data);
  592. msm_tsens_early_init(&apq_tsens_pdata);
  593. @@ -4098,14 +4095,15 @@ static void __init apq8064_common_init(void)
  594. register_i2c_devices();
  595. register_i2c_backlight_devices();
  596. lge_add_sound_devices();
  597. -/* [email protected] [START] for NFC */
  598. +/* */
  599. #if defined(CONFIG_LGE_NFC)
  600. lge_add_nfc_devices();
  601. #endif
  602. #if defined(CONFIG_BATTERY_MAX17043) || defined(CONFIG_BATTERY_MAX17047) || defined(CONFIG_BATTERY_MAX17048)
  603. lge_add_i2c_pm_subsystem_devices();
  604. #endif
  605. -#ifdef CONFIG_BQ24262_CHARGER
  606. +
  607. +#if defined(CONFIG_BQ24262_CHARGER)
  608. lge_add_i2c_pm_subsystem_charger_devices();
  609. #endif
  610.  
  611. @@ -4151,7 +4149,7 @@ static void __init apq8064_common_init(void)
  612.  
  613. msm_hsic_pdata.swfi_latency =
  614. msm_rpmrs_levels[0].latency_us;
  615. - if (machine_is_apq8064_mtp() || machine_is_apq8064_awifi()) {
  616. + if (machine_is_apq8064_mtp()) {
  617. msm_hsic_pdata.log2_irq_thresh = 5,
  618. apq8064_device_hsic_host.dev.platform_data = &msm_hsic_pdata;
  619. device_initialize(&apq8064_device_hsic_host.dev);
  620. @@ -4164,8 +4162,8 @@ static void __init apq8064_common_init(void)
  621. apq8064_pm8xxx_gpio_mpp_init();
  622. apq8064_init_mmc();
  623.  
  624. -#ifdef CONFIG_MACH_APQ8064_ALTEV /* [email protected] To remove mdm modem */
  625. - if (machine_is_apq8064_mtp() || machine_is_apq8064_awifi()) {
  626. +#if defined(CONFIG_MACH_APQ8064_ALTEV) /* */
  627. + if (machine_is_apq8064_mtp()) {
  628. if (socinfo_get_platform_subtype() == PLATFORM_SUBTYPE_DSDA2) {
  629. amdm_8064_device.dev.platform_data =
  630. &amdm_platform_data;
  631. @@ -4193,10 +4191,10 @@ static void __init apq8064_common_init(void)
  632. platform_device_register(&i2s_mdm_8064_device);
  633. } else {
  634. mdm_8064_device.dev.platform_data = &mdm_platform_data;
  635. - //LGE_Change_S jaseseung.noh MDM2AP_PBLRDY set to 81 -> altev 46
  636. + //
  637. mdm_8064_device.resource[6].start = 46; // MDM2AP_PBLRDY
  638. mdm_8064_device.resource[6].end = 46; // MDM2AP_PBLRDY
  639. - //LGE_Change_E jaseseung.noh MDM2AP_PBLRDY set to 81 -> altev 46
  640. + //
  641. platform_device_register(&mdm_8064_device);
  642. }
  643. }
  644. @@ -4227,7 +4225,7 @@ static void __init apq8064_common_init(void)
  645. apq8064_epm_adc_init();
  646. #endif
  647.  
  648. -//2013-04-12 Meehwa-yun([email protected]) [Temporary_LGE] Enable modem power to fix the audio issue due to shared slimbus lines [START]
  649. +//
  650. #ifdef CONFIG_MACH_APQ8064_GK_KR
  651. if (!gpio_request(27, "AP2MDM_KPDPWR_N")) {
  652. gpio_direction_output(27, 1);
  653. @@ -4235,7 +4233,7 @@ static void __init apq8064_common_init(void)
  654. gpio_direction_output(27, 0);
  655. }
  656. #endif
  657. -//2013-04-12 Meehwa-yun([email protected]) [Temporary_LGE] Enable modem power to fix the audio issue due to shared slimbus lines [END] }
  658. +//
  659. }
  660.  
  661. static void __init apq8064_allocate_memory_regions(void)
  662. @@ -4310,13 +4308,7 @@ static void __init apq8064_cdp_init(void)
  663. }
  664. //pr_info("[NORMAL-DEBUG] apq8064_device_uart_gsbi4.id : %d", apq8064_device_uart_gsbi4.id);
  665. //pr_info("[DEBUG] uart_enable : %d", lge_get_uart_mode() );
  666. -#if defined(CONFIG_LGE_BROADCAST_TDMB) || defined(CONFIG_LGE_BROADCAST_ONESEG)
  667. - apq8064_device_qup_spi_gsbi5.dev.platform_data =
  668. - &apq8064_qup_spi_gsbi5_pdata;
  669.  
  670. - spi_register_board_info(spi_broadcast_board_info,
  671. - ARRAY_SIZE(spi_broadcast_board_info));
  672. -#endif /* CONFIG_LGE_BROADCAST */
  673.  
  674. apq8064_init_fb();
  675. apq8064_init_gpu();
  676. @@ -4353,18 +4345,21 @@ static void __init apq8064_cdp_init(void)
  677. platform_device_register(&mpq_gpio_keys_pdev);
  678. platform_device_register(&mpq_keypad_device);
  679. }
  680. -#endif /* LGE Not Used */
  681. -//2013-05-29 [email protected] [AWIFI/Touch] Enable atmel touchscreen driver for REV_A [START]
  682. -#ifndef CONFIG_MACH_APQ8064_ALTEV
  683. +#endif /* */
  684. +
  685. +#if !defined(CONFIG_MACH_APQ8064_ALTEV)
  686. +//
  687. if (lge_get_board_revno() >= HW_REV_A) {
  688. apq8064_awifi_init_input();
  689. } else {
  690. apq8064_init_input();
  691. }
  692. +//
  693. #else
  694. + /* */
  695. apq8064_awifi_init_input();
  696. #endif
  697. -//2013-05-29 [email protected] [AWIFI/Touch] Enable atmel touchscreen driver for REV_A [END]
  698. +
  699. apq8064_init_misc();
  700. #ifdef CONFIG_LGE_ECO_MODE
  701. lge_add_lge_kernel_devices();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement