Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/arch/arm/mach-msm/lge/awifi/board-awifi.c b/arch/arm/mach-msm/lge/awifi/board-awifi.c
- index ec43e66..e720453 100644
- --- a/arch/arm/mach-msm/lge/awifi/board-awifi.c
- +++ b/arch/arm/mach-msm/lge/awifi/board-awifi.c
- @@ -100,14 +100,12 @@
- #if defined(CONFIG_LGE_IRDA)
- #include <mach/clk-provider.h>
- #endif
- -// [[LGE_BSP_AUDIO, jeremy.pi@lge.com, Audience eS325 ALSA SoC Audio driver
- +//
- #if defined(CONFIG_SND_SOC_ES325_SLIM)
- #include <sound/esxxx.h>
- #endif /* CONFIG_SND_SOC_ES325_SLIM */
- -// ]]LGE_BSP_AUDIO, jeremy.pi@lge.com, Audience eS325 ALSA SoC Audio driver
- +//
- -#define MHL_GPIO_INT 30
- -#define MHL_GPIO_RESET 35
- #define MSM_PMEM_ADSP_SIZE 0x7800000
- #define MSM_PMEM_AUDIO_SIZE 0x4CF000
- @@ -315,17 +313,17 @@ static struct ion_cp_heap_pdata cp_mm_apq8064_ion_pdata = {
- .reusable = FMEM_ENABLED,
- .mem_is_fmem = FMEM_ENABLED,
- .fixed_position = FIXED_MIDDLE,
- -// jungjoo.nahm@lge.com [START]
- +//
- // As per QC case #01116834, adjust is_cma value based on CONFIG_CMA kernel feature.
- // To QC integrator, please keep this SW change. It impacts to playback a widevine DRM contents
- -//20130401, justin.yun@lge.com, To avoid memory fail when starting Miracast [START]
- +//
- //#ifdef CONFIG_CMA
- // .is_cma = 1,
- //#else
- .is_cma = 0,
- //#endif
- -//20130401, justin.yun@lge.com, To avoid memory fail when starting Miracast [END]
- -// jungjoo.nahm@lge.com [END]
- +//
- +//
- .no_nonsecure_alloc = 1,
- };
- @@ -760,7 +758,7 @@ static void __init apq8064_reserve(void)
- #ifndef CONFIG_MACH_LGE
- apq8064_set_display_params(prim_panel_name, ext_panel_name,
- ext_resolution);
- -#endif /* CONFIG_MACH_LGE */
- +#endif /* */
- msm_reserve();
- lge_reserve();
- }
- @@ -936,7 +934,7 @@ struct platform_device lge_android_usb_device = {
- .platform_data = &lge_android_usb_pdata,
- },
- };
- -#endif /* CONFIG_USB_G_LGE_ANDROID */
- +#endif /* */
- #ifdef CONFIG_LGE_USB_DIAG_DISABLE
- static struct platform_device lg_diag_cmd_device = {
- @@ -946,7 +944,7 @@ static struct platform_device lg_diag_cmd_device = {
- .platform_data = 0, //&lg_diag_cmd_pdata
- },
- };
- -#endif //#ifdef CONFIG_LGE_USB_DIAG_DISABLE
- +#endif //
- /* Bandwidth requests (zero) if no vote placed */
- static struct msm_bus_vectors usb_init_vectors[] = {
- @@ -986,17 +984,28 @@ static struct msm_bus_scale_pdata usb_bus_scale_pdata = {
- };
- static int phy_init_seq[] = {
- - 0x38, 0x81, /* update DC voltage level */
- - 0x24, 0x82, /* set pre-emphasis and rise/fall time */
- + 0x44, 0x80, /* update DC voltage level */
- + 0x39, 0x81, /* set pre-emphasis and rise/fall time */
- + 0x21, 0x82,
- + 0x33, 0x83,
- -1
- };
- +static int phy_init_host_seq[] = {
- + 0x44, 0x80,
- + 0x36, 0x81,
- + 0x24, 0x82,
- + 0x13, 0x83,
- + -1
- +};
- +
- +
- #define PMIC_GPIO_DP 27 /* PMIC GPIO for D+ change */
- #define PMIC_GPIO_DP_IRQ PM8921_GPIO_IRQ(PM8921_IRQ_BASE, PMIC_GPIO_DP)
- #define MSM_MPM_PIN_USB1_OTGSESSVLD 40
- #ifdef CONFIG_USB_OTG
- -static bool msm_hsusb_vbus_power(bool on)
- +static int msm_hsusb_vbus_power(bool on)
- {
- static struct regulator *votg_5v_switch;
- static struct regulator *ext_5v_reg;
- @@ -1049,7 +1058,7 @@ static struct msm_otg_platform_data msm_otg_pdata = {
- #ifdef CONFIG_USB_OTG
- .mode = USB_OTG,
- #else
- - .mode = USB_PERIPHERAL,
- + .mode = USB_PERIPHERAL,
- #endif
- #else //QCT origin
- .mode = USB_OTG,
- @@ -1060,6 +1069,7 @@ static struct msm_otg_platform_data msm_otg_pdata = {
- .power_budget = 750,
- .bus_scale_table = &usb_bus_scale_pdata,
- .phy_init_seq = phy_init_seq,
- + .phy_init_host_seq = phy_init_host_seq,
- .mpm_otgsessvld_int = MSM_MPM_PIN_USB1_OTGSESSVLD,
- #ifdef CONFIG_USB_OTG
- .vbus_power = msm_hsusb_vbus_power,
- @@ -1200,7 +1210,7 @@ static struct lp5521_led_pattern board_led_patterns[] = {
- .size_g = ARRAY_SIZE(mode7_green),
- .size_b = ARRAY_SIZE(mode7_blue),
- },
- -#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)
- +#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)
- /* for dummy pattern IDs (defined LGLedRecord.java) */
- {
- /* ID_ALARM = 8 */
- @@ -1346,7 +1356,7 @@ static struct i2c_board_info lp5521_board_info[] __initdata = {
- .platform_data = &lp5521_pdata,
- },
- };
- -#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)
- +#if defined(CONFIG_MACH_APQ8064_GKATT) || defined(CONFIG_MACH_APQ8064_GKGLOBAL) || defined(CONFIG_MACH_APQ8064_AWIFI)
- static struct i2c_board_info lp5521_board_info_rev_f[] __initdata = {
- {
- I2C_BOARD_INFO("lp5521", 0x33),
- @@ -1540,7 +1550,7 @@ static struct slim_device apq8064_slim_tabla20 = {
- },
- };
- -// [[LGE_BSP_AUDIO, jeremy.pi@lge.com, Audience eS325 ALSA SoC Audio driver
- +//
- #if defined(CONFIG_SND_SOC_ES325_SLIM)
- static struct esxxx_platform_data apq8064_es325_data = {
- .reset_gpio = ES325_RESET_GPIO,
- @@ -1563,7 +1573,7 @@ static struct slim_device apq8064_slim_es325_gen0 = {
- },
- };
- #endif /* CONFIG_SND_SOC_ES325_SLIM */
- -// ]]LGE_BSP_AUDIO, jeremy.pi@lge.com, Audience eS325 ALSA SoC Audio driver
- +//
- #ifdef CONFIG_SND_SOC_CS8427
- /* enable the level shifter for cs8427 to make sure the I2C
- @@ -1707,7 +1717,7 @@ static struct i2c_board_info isa1200_board_info[] __initdata = {
- .platform_data = &isa1200_1_pdata,
- },
- };
- -#endif /* LGE Not Used */
- +#endif /* */
- #ifdef CONFIG_TOUCHSCREEN_ATMEL_MXT
- /* configuration data for mxt1386e using V2.1 firmware */
- @@ -1930,7 +1940,7 @@ static struct i2c_board_info cyttsp_info[] __initdata = {
- },
- };
- #endif
- -#ifndef CONFIG_BCMDHD
- +
- #define MSM_WCNSS_PHYS 0x03000000
- #define MSM_WCNSS_SIZE 0x280000
- @@ -1973,7 +1983,7 @@ static struct platform_device msm_device_wcnss_wlan = {
- .resource = resources_wcnss_wlan,
- .dev = {.platform_data = &qcom_wcnss_pdata},
- };
- -#endif
- +
- #ifdef CONFIG_RADIO_IRIS
- static struct platform_device msm_device_iris_fm __devinitdata = {
- @@ -2215,7 +2225,7 @@ static struct platform_device qcedev_device = {
- };
- #endif
- -#ifdef CONFIG_MACH_APQ8064_ALTEV /* sangyup.kim@lge.com To remove mdm modem */
- +#if defined(CONFIG_MACH_APQ8064_ALTEV) /* */
- static struct mdm_vddmin_resource mdm_vddmin_rscs = {
- .rpm_id = MSM_RPM_ID_VDDMIN_GPIO,
- .ap2mdm_vddmin_gpio = 30,
- @@ -2299,7 +2309,7 @@ static struct mdm_platform_data sglte2_mdm_platform_data = {
- static struct mdm_platform_data sglte2_qsc_platform_data = {
- .mdm_version = "3.0",
- .ramdump_delay_ms = 2000,
- - /* delay between two PS_HOLDs */
- + /* delay between two PS_HOLDs */
- .ps_hold_delay_ms = 500,
- .ramdump_timeout_ms = 600000,
- .no_powerdown_after_ramdumps = 1,
- @@ -2328,9 +2338,6 @@ static struct msm_thermal_data msm_thermal_pdata = {
- #ifdef CONFIG_MACH_LGE
- .poll_ms = 1000,
- .limit_temp_degC = 93,
- -#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)
- - .limit_temp_degC_low = 20,
- -#endif
- #else
- .poll_ms = 250,
- .limit_temp_degC = 60,
- @@ -2344,6 +2351,7 @@ static struct msm_thermal_data msm_thermal_pdata = {
- .core_limit_temp_degC = 80,
- #endif
- .core_temp_hysteresis_degC = 10,
- +
- .core_control_mask = 0xe,
- };
- @@ -2402,8 +2410,8 @@ static struct platform_device msm8064_device_saw_regulator_core3 = {
- },
- };
- -// [S] LGE_BT: ADD/ilbeom.kim/'12-10-24 - [GK] BRCM Solution bring-up
- -//BEGIN: 0019632 chanha.park@lge.com 2012-05-31
- +//
- +//
- //ADD: 0019632: [F200][BT] Bluetooth board bring-up
- #ifdef CONFIG_LGE_BLUESLEEP
- static struct resource bluesleep_resources[] = {
- @@ -2432,9 +2440,9 @@ static struct platform_device msm_bluesleep_device = {
- .num_resources = ARRAY_SIZE(bluesleep_resources),
- .resource = bluesleep_resources,
- };
- -#endif // CONFIG_LGE_BLUESLEEP
- -//END: 0019632 chanha.park@lge.com 2012-05-31
- -// [E] LGE_BT: ADD/ilbeom.kim/'12-10-24 - [GK] BRCM Solution bring-up
- +#endif //
- +//
- +//
- static struct msm_rpmrs_level msm_rpmrs_levels[] = {
- {
- @@ -2808,7 +2816,7 @@ static void __init mpq8064_pcie_init(void)
- }
- }
- -#ifdef CONFIG_USB_OTG //#if defined(CONFIG_MACH_LGE)
- +#ifdef CONFIG_USB_OTG //
- static struct platform_device apq8064_device_ext_5v_vreg __devinitdata = {
- .name = GPIO_REGULATOR_DEV_NAME,
- .id = PM8921_MPP_PM_TO_SYS(7),
- @@ -2880,7 +2888,7 @@ static struct platform_device gpio_ir_recv_pdev = {
- static struct platform_device *common_not_mpq_devices[] __initdata = {
- &apq8064_device_qup_i2c_gsbi1,
- &apq8064_device_qup_i2c_gsbi3,
- -#ifdef CONFIG_BQ24262_CHARGER
- +#if defined(CONFIG_BQ24262_CHARGER)
- &apq8064_device_qup_i2c_gsbi5,
- #endif
- #if defined(CONFIG_SND_SOC_TPA2028D_DUAL_SPEAKER) || (defined (CONFIG_MACH_LGE)&& defined(CONFIG_TOUCHSCREEN_S340010_SYNAPTICS_TK))
- @@ -2933,28 +2941,25 @@ static struct platform_device *common_devices[] __initdata = {
- &apq8064_device_gadget_peripheral,
- &apq8064_device_hsusb_host,
- &android_usb_device,
- -#ifdef CONFIG_WIRELESS_CHARGER
- - &wireless_charger,
- -#endif
- #if defined(CONFIG_LGE_BROADCAST_ONESEG)
- &apq8064_device_qup_spi_gsbi5,
- -#endif /* CONFIG_LGE_BROADCAST_ONESEG */
- +#endif /* */
- #ifdef CONFIG_USB_G_LGE_ANDROID
- &lge_android_usb_device,
- #endif
- -// [S] LGE_BT: ADD/ilbeom.kim/'12-10-24 - [GK] BRCM Solution bring-up
- -//BEGIN: 0019632 chanha.park@lge.com 2012-05-31
- +//
- +//
- //ADD: 0019632: [F200][BT] Bluetooth board bring-up
- #ifdef CONFIG_LGE_BLUESLEEP
- &msm_bluesleep_device,
- -#endif // CONFIG_LGE_BLUESLEEP
- -//END: 0019632 chanha.park@lge.com 2012-05-31
- -// [E] LGE_BT: ADD/ilbeom.kim/'12-10-24 - [GK] BRCM Solution bring-up
- +#endif //
- +//
- +//
- #ifdef CONFIG_LGE_USB_DIAG_DISABLE
- &lg_diag_cmd_device,
- -#endif //#ifdef CONFIG_LGE_USB_DIAG_DISABLE
- +#endif //
- #ifndef CONFIG_BCMDHD
- &msm_device_wcnss_wlan,
- @@ -3077,7 +3082,6 @@ static struct platform_device *common_devices[] __initdata = {
- &battery_bcl_device,
- #endif
- &apq8064_msm_mpd_device,
- - &adsp_loader_device,
- };
- static struct platform_device *cdp_devices[] __initdata = {
- @@ -3089,7 +3093,7 @@ static struct platform_device *cdp_devices[] __initdata = {
- #ifdef CONFIG_MSM_ROTATOR
- &msm_rotator_device,
- #endif
- - &msm8960_cpu_slp_status,
- + &msm8064_pc_cntr,
- };
- static struct platform_device
- @@ -3181,30 +3185,30 @@ late_initcall(rf4ce_gpio_init);
- /* GK Broadcom BCM4334 */
- #if defined(CONFIG_LGE_BLUESLEEP)
- #ifdef CONFIG_SERIAL_MSM_HS
- -/* daeon.shon@lge.com temp block for build error
- -static int configure_uart_gpios(int on)
- -{
- - int ret = 0, i;
- - int uart_gpios[] = {14, 15, 16, 17};
- -
- - for (i = 0; i < ARRAY_SIZE(uart_gpios); i++) {
- - if (on) {
- - ret = gpio_request(uart_gpios[i], NULL);
- - if (ret) {
- - pr_err("%s:unable to request uart gpio[%d]\n",
- - __func__, uart_gpios[i]);
- - break;
- - }
- - } else {
- - gpio_free(uart_gpios[i]);
- - }
- - }
- -
- - if (ret && on && i)
- - for (; i >= 0; i--)
- - gpio_free(uart_gpios[i]);
- - return ret;
- -}
- +/*
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- +
- */
- static struct msm_serial_hs_platform_data mpq8064_gsbi6_uartdm_pdata = {
- // .gpio_config = configure_uart_gpios,
- @@ -3245,7 +3249,7 @@ static struct platform_device *irrc_uart_devices[] __initdata = {
- &apq8064_device_uart_gsbi7,
- };
- #endif
- -#if 0//sangwooha.ha@lge.com 20120813 GK ES3 UART bring up
- +#if 0//
- static struct msm_spi_platform_data apq8064_qup_spi_gsbi5_pdata = {
- .max_clock_speed = 1100000,
- };
- @@ -3275,7 +3279,7 @@ static struct spi_board_info spi_broadcast_board_info[] __initdata = {
- };
- -#endif /* CONFIG_LGE_BROADCAST */
- +#endif /* */
- static struct spi_board_info spi_board_info[] __initdata = {
- #if !(CONFIG_MACH_LGE)
- @@ -3288,8 +3292,8 @@ static struct spi_board_info spi_board_info[] __initdata = {
- .chip_select = 2,
- .mode = SPI_MODE_0,
- },
- -#endif /* LGE Not Used */
- -#endif /* CONFIG_MACH_LGE */
- +#endif /* */
- +#endif /* */
- #ifdef CONFIG_SENSORS_EPM_ADC
- {
- .modalias = "epm_adc",
- @@ -3312,7 +3316,7 @@ static struct slim_boardinfo apq8064_slim_devices[] = {
- .bus_num = 1,
- .slim_slave = &apq8064_slim_tabla20,
- },
- -// [[LGE_BSP_AUDIO, jeremy.pi@lge.com, Audience eS325 ALSA SoC Audio driver
- +//
- #if defined(CONFIG_SND_SOC_ES325_SLIM)
- {
- .bus_num = 1,
- @@ -3324,13 +3328,13 @@ static struct slim_boardinfo apq8064_slim_devices[] = {
- .slim_slave = &apq8064_slim_es325_gen0
- },
- #endif /* CONFIG_SND_SOC_ES325_SLIM */
- -// ]]LGE_BSP_AUDIO, jeremy.pi@lge.com, Audience eS325 ALSA SoC Audio driver
- +//
- /* add more slimbus slaves as needed */
- };
- static struct msm_i2c_platform_data apq8064_i2c_qup_gsbi1_pdata = {
- - .clk_freq = 384000,//sangwooha.ha@lge.com GK ES3 bring up
- + .clk_freq = 384000,//
- .src_clk_rate = 24000000,
- };
- @@ -3340,7 +3344,7 @@ static struct msm_i2c_platform_data apq8064_i2c_qup_gsbi3_pdata = {
- };
- static struct msm_i2c_platform_data apq8064_i2c_qup_gsbi4_pdata = {
- - .clk_freq = 200000, /* LGE_CHANGE, decrease i2c speed a bit from max. to avoid stability issue., 2013-06-19, john.park@lge.com */
- + .clk_freq = 200000, /* */
- .src_clk_rate = 24000000,
- };
- @@ -3358,7 +3362,7 @@ static struct msm_i2c_platform_data apq8064_i2c_qup_gsbi7_pdata = {
- };
- #endif
- -#if 0//sangwooha.ha@lge.com 20120813 GK ES3 UART bring up
- +#if 0//
- static struct msm_i2c_platform_data mpq8064_i2c_qup_gsbi5_pdata = {
- .clk_freq = 100000,
- .src_clk_rate = 24000000,
- @@ -3392,10 +3396,10 @@ static void __init apq8064_i2c_init(void)
- //apq8064_i2c_qup_gsbi7_pdata.use_gsbi_shared_mode = 1;
- #endif
- - /* LGE_UPDATE_S GV DCM
- - * Setting protocol code to 0x60 for dual UART/I2C in GSBI3
- - * - Rev.B
- - */
- + /*
- +
- +
- + */
- #if defined(CONFIG_LGE_FELICA) || defined(CONFIG_LGE_NFC_SONY_CXD2235AGG)
- gsbi_mem = ioremap_nocache(MSM_GSBI3_PHYS, 4);
- writel_relaxed(GSBI_DUAL_MODE_CODE, gsbi_mem);
- @@ -3430,7 +3434,7 @@ static void __init apq8064_i2c_init(void)
- &apq8064_i2c_qup_gsbi5_pdata;
- #endif
- -//sangwooha.ha@lge.com 20120813 GK ES3 UART bring up
- +//
- /* Setting protocol code to 0x60 for dual UART/I2C in GSBI4 */
- gsbi_mem = ioremap_nocache(MSM_GSBI4_PHYS, 4);
- if (lge_get_uart_mode()) {
- @@ -3701,7 +3705,7 @@ static struct platform_device mpq_keypad_device = {
- .platform_data = &mpq_keypad_data,
- },
- };
- -#endif /* LGE Not Used */
- +#endif /* */
- /* Sensors DSPS platform data */
- #define DSPS_PIL_GENERIC_NAME "dsps"
- @@ -3762,7 +3766,7 @@ static struct i2c_registry apq8064_i2c_devices[] __initdata = {
- isa1200_board_info,
- ARRAY_SIZE(isa1200_board_info),
- },
- -#endif /* CONFIG_MACH_LGE */
- +#endif /* */
- #ifdef CONFIG_SND_SOC_CS8427
- {
- I2C_MPQ_CDP,
- @@ -3859,17 +3863,17 @@ static void __init register_i2c_devices(void)
- apq8064_camera_board_info.board_info,
- apq8064_camera_board_info.num_i2c_board_info,
- };
- -/* LGE_CHANGE_S, For awifi Rev.A bring-up , 2013-06-11, seungmin.hong@lge.com */
- +/* */
- struct i2c_registry apq8064_camera_i2c_devices_revA = {
- I2C_SURF | I2C_FFA | I2C_LIQUID | I2C_RUMI,
- APQ_8064_GSBI4_QUP_I2C_BUS_ID,
- apq8064_camera_board_info_revA.board_info,
- apq8064_camera_board_info_revA.num_i2c_board_info,
- };
- -/* LGE_CHANGE_E, For awifi Rev.A bring-up , 2013-06-11, seungmin.hong@lge.com */
- +/* */
- -/* [patch for Enabling flash LED for camera]
- - * 2012-03-14, jinsool.lee@lge.com
- +/*
- +
- */
- struct i2c_registry apq8064_lge_camera_i2c_devices = {
- I2C_SURF | I2C_FFA | I2C_RUMI | I2C_SIM | I2C_LIQUID | I2C_MPQ_CDP,
- @@ -3903,7 +3907,7 @@ static void __init register_i2c_devices(void)
- apq8064_i2c_devices[i].len);
- }
- #ifdef CONFIG_MSM_CAMERA
- -/* LGE_CHANGE_S, For awifi Rev.A bring-up , 2013-06-11, seungmin.hong@lge.com */
- +/* */
- if(lge_get_board_revno() >= HW_REV_A){
- if (apq8064_camera_i2c_devices_revA.machs & mach_mask)
- i2c_register_board_info(apq8064_camera_i2c_devices_revA.bus,
- @@ -3914,7 +3918,7 @@ static void __init register_i2c_devices(void)
- apq8064_lge_camera_i2c_devices.info,
- apq8064_lge_camera_i2c_devices.len);
- }else{
- -/* LGE_CHANGE_E, For awifi Rev.A bring-up , 2013-06-11, seungmin.hong@lge.com */
- +/* */
- if (apq8064_camera_i2c_devices.machs & mach_mask)
- i2c_register_board_info(apq8064_camera_i2c_devices.bus,
- apq8064_camera_i2c_devices.info,
- @@ -3990,9 +3994,9 @@ static void __init gvdcm_uart_clock_update(void)
- }
- #endif
- -#if 0
- +#if defined(CONFIG_MACH_APQ8064_ALTEV)
- #ifdef CONFIG_SERIAL_MSM_HS
- -static int configure_uartdm_gsbi4_gpios(int on)
- +/*static int configure_uartdm_gsbi4_gpios(int on)
- {
- int ret = 0, i;
- int uart_gpios[] = {10, 11, 12, 13};
- @@ -4015,26 +4019,20 @@ static int configure_uartdm_gsbi4_gpios(int on)
- gpio_free(uart_gpios[i]);
- return ret;
- }
- -
- +*/
- static struct msm_serial_hs_platform_data apq8064_uartdm_gsbi4_pdata = {
- - .gpio_config = configure_uartdm_gsbi4_gpios,
- +// .gpio_config = configure_uartdm_gsbi4_gpios, build error - temporaty code
- + .config_gpio = 4,
- + .uart_tx_gpio = 10,
- + .uart_rx_gpio = 11,
- + .uart_cts_gpio = 12,
- + .uart_rfr_gpio = 13,
- };
- #else
- static struct msm_serial_hs_platform_data apq8064_uartdm_gsbi4_pdata;
- #endif
- #endif
- -#ifdef CONFIG_MACH_APQ8064_ALTEV
- -static struct msm_serial_hs_platform_data apq8064_uartdm_gsbi4_pdata = {
- -// .gpio_config = configure_uartdm_gsbi4_gpios, build error - temporaty code
- - .config_gpio = 4,
- - .uart_tx_gpio = 10,
- - .uart_rx_gpio = 11,
- - .uart_cts_gpio = 12,
- - .uart_rfr_gpio = 13,
- -};
- -#endif
- -
- static void __init apq8064ab_update_retention_spm(void)
- {
- int i;
- @@ -4054,7 +4052,7 @@ static void __init apq8064ab_update_retention_spm(void)
- static void __init apq8064_common_init(void)
- {
- -#ifdef CONFIG_MACH_APQ8064_ALTEV /* sangyup.kim@lge.com To remove mdm modem */
- +#if defined(CONFIG_MACH_APQ8064_ALTEV) /* */
- u32 platform_version = socinfo_get_platform_version();
- #endif
- @@ -4066,12 +4064,11 @@ static void __init apq8064_common_init(void)
- if (cpu_is_apq8064ab())
- apq8064ab_update_krait_spm();
- if (cpu_is_krait_v3()) {
- - struct msm_pm_init_data_type *pdata =
- - msm8064_pm_8x60.dev.platform_data;
- - pdata->retention_calls_tz = false;
- + msm_pm_set_tz_retention_flag(0);
- apq8064ab_update_retention_spm();
- + } else {
- + msm_pm_set_tz_retention_flag(1);
- }
- - platform_device_register(&msm8064_pm_8x60);
- msm_spm_init(msm_spm_data, ARRAY_SIZE(msm_spm_data));
- msm_spm_l2_init(msm_spm_l2_data);
- msm_tsens_early_init(&apq_tsens_pdata);
- @@ -4098,14 +4095,15 @@ static void __init apq8064_common_init(void)
- register_i2c_devices();
- register_i2c_backlight_devices();
- lge_add_sound_devices();
- -/* ehee.lee@lge.com [START] for NFC */
- +/* */
- #if defined(CONFIG_LGE_NFC)
- lge_add_nfc_devices();
- #endif
- #if defined(CONFIG_BATTERY_MAX17043) || defined(CONFIG_BATTERY_MAX17047) || defined(CONFIG_BATTERY_MAX17048)
- lge_add_i2c_pm_subsystem_devices();
- #endif
- -#ifdef CONFIG_BQ24262_CHARGER
- +
- +#if defined(CONFIG_BQ24262_CHARGER)
- lge_add_i2c_pm_subsystem_charger_devices();
- #endif
- @@ -4151,7 +4149,7 @@ static void __init apq8064_common_init(void)
- msm_hsic_pdata.swfi_latency =
- msm_rpmrs_levels[0].latency_us;
- - if (machine_is_apq8064_mtp() || machine_is_apq8064_awifi()) {
- + if (machine_is_apq8064_mtp()) {
- msm_hsic_pdata.log2_irq_thresh = 5,
- apq8064_device_hsic_host.dev.platform_data = &msm_hsic_pdata;
- device_initialize(&apq8064_device_hsic_host.dev);
- @@ -4164,8 +4162,8 @@ static void __init apq8064_common_init(void)
- apq8064_pm8xxx_gpio_mpp_init();
- apq8064_init_mmc();
- -#ifdef CONFIG_MACH_APQ8064_ALTEV /* sangyup.kim@lge.com To remove mdm modem */
- - if (machine_is_apq8064_mtp() || machine_is_apq8064_awifi()) {
- +#if defined(CONFIG_MACH_APQ8064_ALTEV) /* */
- + if (machine_is_apq8064_mtp()) {
- if (socinfo_get_platform_subtype() == PLATFORM_SUBTYPE_DSDA2) {
- amdm_8064_device.dev.platform_data =
- &amdm_platform_data;
- @@ -4193,10 +4191,10 @@ static void __init apq8064_common_init(void)
- platform_device_register(&i2s_mdm_8064_device);
- } else {
- mdm_8064_device.dev.platform_data = &mdm_platform_data;
- - //LGE_Change_S jaseseung.noh MDM2AP_PBLRDY set to 81 -> altev 46
- + //
- mdm_8064_device.resource[6].start = 46; // MDM2AP_PBLRDY
- mdm_8064_device.resource[6].end = 46; // MDM2AP_PBLRDY
- - //LGE_Change_E jaseseung.noh MDM2AP_PBLRDY set to 81 -> altev 46
- + //
- platform_device_register(&mdm_8064_device);
- }
- }
- @@ -4227,7 +4225,7 @@ static void __init apq8064_common_init(void)
- apq8064_epm_adc_init();
- #endif
- -//2013-04-12 Meehwa-yun(meehwa.yun@lge.com) [Temporary_LGE] Enable modem power to fix the audio issue due to shared slimbus lines [START]
- +//
- #ifdef CONFIG_MACH_APQ8064_GK_KR
- if (!gpio_request(27, "AP2MDM_KPDPWR_N")) {
- gpio_direction_output(27, 1);
- @@ -4235,7 +4233,7 @@ static void __init apq8064_common_init(void)
- gpio_direction_output(27, 0);
- }
- #endif
- -//2013-04-12 Meehwa-yun(meehwa.yun@lge.com) [Temporary_LGE] Enable modem power to fix the audio issue due to shared slimbus lines [END] }
- +//
- }
- static void __init apq8064_allocate_memory_regions(void)
- @@ -4310,13 +4308,7 @@ static void __init apq8064_cdp_init(void)
- }
- //pr_info("[NORMAL-DEBUG] apq8064_device_uart_gsbi4.id : %d", apq8064_device_uart_gsbi4.id);
- //pr_info("[DEBUG] uart_enable : %d", lge_get_uart_mode() );
- -#if defined(CONFIG_LGE_BROADCAST_TDMB) || defined(CONFIG_LGE_BROADCAST_ONESEG)
- - apq8064_device_qup_spi_gsbi5.dev.platform_data =
- - &apq8064_qup_spi_gsbi5_pdata;
- - spi_register_board_info(spi_broadcast_board_info,
- - ARRAY_SIZE(spi_broadcast_board_info));
- -#endif /* CONFIG_LGE_BROADCAST */
- apq8064_init_fb();
- apq8064_init_gpu();
- @@ -4353,18 +4345,21 @@ static void __init apq8064_cdp_init(void)
- platform_device_register(&mpq_gpio_keys_pdev);
- platform_device_register(&mpq_keypad_device);
- }
- -#endif /* LGE Not Used */
- -//2013-05-29 goensoo.kim@lge.com [AWIFI/Touch] Enable atmel touchscreen driver for REV_A [START]
- -#ifndef CONFIG_MACH_APQ8064_ALTEV
- +#endif /* */
- +
- +#if !defined(CONFIG_MACH_APQ8064_ALTEV)
- +//
- if (lge_get_board_revno() >= HW_REV_A) {
- apq8064_awifi_init_input();
- } else {
- apq8064_init_input();
- }
- +//
- #else
- + /* */
- apq8064_awifi_init_input();
- #endif
- -//2013-05-29 goensoo.kim@lge.com [AWIFI/Touch] Enable atmel touchscreen driver for REV_A [END]
- +
- apq8064_init_misc();
- #ifdef CONFIG_LGE_ECO_MODE
- lge_add_lge_kernel_devices();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement