void __init msm_camera_vreg_init(void) { int rc; platform_add_devices(camera_devices, ARRAY_SIZE(camera_devices)); if (!machine_is_msm7627a_qrd1()) register_i2c_devices(); rc = regulator_bulk_get(NULL, ARRAY_SIZE(regs_camera), regs_camera); if (rc) { pr_err("%s: could not get regulators: %d\n", __func__, rc); return; } rc = regulator_bulk_set_voltage(ARRAY_SIZE(regs_camera), regs_camera); if (rc) { pr_err("%s: could not set voltages: %d\n", __func__, rc); return; } if (machine_is_msm7627a_qrd1()) i2c_register_board_info(MSM_GSBI0_QUP_I2C_BUS_ID, i2c_camera_devices_qrd, ARRAY_SIZE(i2c_camera_devices_qrd)); else i2c_register_board_info(MSM_GSBI0_QUP_I2C_BUS_ID, i2c_camera_devices, ARRAY_SIZE(i2c_camera_devices)); }
static void __init msm7x2x_init(void) { msm7x2x_misc_init(); /* Initialize regulators first so that other devices can use them */ msm7x27a_init_regulators(); msm_adsp_add_pdev(); if (cpu_is_msm8625()) msm8625_device_i2c_init(); else msm7x27a_device_i2c_init(); msm7x27a_init_ebi2(); msm7x27a_uartdm_config(); msm7x27a_otg_gadget(); /* LGE_CHANGE_: 2012/11/2 [email protected] U0 Flash Porting */ #ifndef CONFIG_MACH_LGE msm7x27a_cfg_smsc911x(); #endif /* LGE_CHANGE_E: 2012/11/2 [email protected] U0 Flash Porting */ msm7x27a_add_footswitch_devices(); msm7x27a_add_platform_devices(); /* Ensure ar6000pm device is registered before MMC/SDC */ msm7x27a_init_ar6000pm(); msm7627a_init_mmc(); msm_fb_add_devices(); msm7x2x_init_host(); msm7x27a_pm_init(); #if defined(CONFIG_I2C) && defined(CONFIG_GPIO_SX150X) register_i2c_devices(); #endif #if defined(CONFIG_BT) && defined(CONFIG_MARIMBA_CORE) msm7627a_bt_power_init(); #endif #ifdef CONFIG_MSM7X27A_AUDIO lge_add_sound_devices(); #endif /* LGE_CHANGE_S: 2012/11/2 [email protected] U0 Flash Porting */ msm7627a_camera_init(); /* LGE_CHANGE_E: 2012/11/2 [email protected] U0 Flash Porting */ msm7627a_add_io_devices(); /*7x25a kgsl initializations*/ msm7x25a_kgsl_3d0_init(); /*8x25 kgsl initializations*/ msm8x25_kgsl_3d0_init(); lge_add_gpio_i2c_devices(); /* 2012-10-25 [email protected] Boot Mode Check [START] */ #ifdef CONFIG_LGE_POWER_ON_STATUS_PATCH lge_board_pwr_on_status(); #endif #ifdef CONFIG_LGE_BOOT_MODE lge_add_boot_mode_devices(); #endif /* 2012-10-25 [email protected] Boot Mode Check [END] */ #if defined(CONFIG_ANDROID_RAM_CONSOLE) && defined(CONFIG_LGE_HANDLE_PANIC) lge_add_panic_handler_devices(); #endif lge_add_pm_devices(); }
static void __init msm7x2x_init(void) { msm7x2x_misc_init(); /* Initialize regulators first so that other devices can use them */ msm7x27a_init_regulators(); msm_adsp_add_pdev(); if (cpu_is_msm8625()) msm8625_device_i2c_init(); else msm7x27a_device_i2c_init(); msm7x27a_init_ebi2(); msm7x27a_uartdm_config(); msm7x27a_otg_gadget(); msm7x27a_cfg_smsc911x(); msm7x27a_add_footswitch_devices(); msm7x27a_add_platform_devices(); /* Ensure ar6000pm device is registered before MMC/SDC */ msm7x27a_init_ar6000pm(); msm7627a_init_mmc(); msm_fb_add_devices(); msm7x2x_init_host(); msm7x27a_pm_init(); register_i2c_devices(); msm7627a_bt_power_init(); msm7627a_camera_init(); msm7627a_add_io_devices(); /*7x25a kgsl initializations*/ msm7x25a_kgsl_3d0_init(); /*8x25 kgsl initializations*/ msm8x25_kgsl_3d0_init(); }
void __init msm8974_init(void) { struct of_dev_auxdata *adata = msm8974_auxdata_lookup; #ifdef CONFIG_SEC_DEBUG sec_debug_init(); #endif #ifdef CONFIG_PROC_AVC sec_avc_log_init(); #endif if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); msm_8974_init_gpiomux(); regulator_has_full_constraints(); board_dt_populate(adata); samsung_sys_class_init(); #ifdef CONFIG_SEC_FACTORY samsung_proc_ddrsize_init(); #endif msm8974_add_drivers(); platform_add_devices(common_devices, ARRAY_SIZE(common_devices)); register_i2c_devices(); #ifdef CONFIG_SENSORS_SSP sensor_hub_init(); #endif #if defined(CONFIG_KEYBOARD_MATRIX) && defined(CONFIG_MACH_MONTBLANC) platform_device_register(&folder_keypad_device); #ifdef CONFIG_INPUT_FLIP flip_init_hw(); platform_device_register(&sec_flip_device); #endif #endif #if defined(CONFIG_BATTERY_SAMSUNG) samsung_init_battery(); #endif #if defined(CONFIG_BT_BCM4335) || defined(CONFIG_BT_BCM4339) msm8974_bt_init(); #endif #if defined(CONFIG_BCM4335) || defined(CONFIG_BCM4335_MODULE) || defined(CONFIG_BCM4339) || defined(CONFIG_BCM4339_MODULE) brcm_wlan_init(); #endif #if defined(CONFIG_SAMSUNG_LPM_MODE) if(poweroff_charging) { modem_power_off(); } #endif #if defined (CONFIG_MOTOR_DRV_ISA1400) vienna_motor_init(); #endif }
void __init msm7627a_camera_init(void) { int rc; #ifndef CONFIG_MSM_CAMERA_V4L2 if (machine_is_msm7627a_qrd1()) { qrd1_camera_gpio_cfg(); platform_add_devices(camera_devices_qrd, ARRAY_SIZE(camera_devices_qrd)); } else platform_add_devices(camera_devices_msm, ARRAY_SIZE(camera_devices_msm)); #endif if (!machine_is_msm7627a_qrd1()) register_i2c_devices(); rc = regulator_bulk_get(NULL, ARRAY_SIZE(regs_camera), regs_camera); if (rc) { pr_err("%s: could not get regulators: %d\n", __func__, rc); return; } rc = regulator_bulk_set_voltage(ARRAY_SIZE(regs_camera), regs_camera); if (rc) { pr_err("%s: could not set voltages: %d\n", __func__, rc); return; } #if defined(CONFIG_MSM_CAMERA_V4L2) msm7x27a_init_cam(); #endif #ifndef CONFIG_MSM_CAMERA_V4L2 if (machine_is_msm7627a_qrd1()) i2c_register_board_info(MSM_GSBI0_QUP_I2C_BUS_ID, i2c_camera_devices_qrd, ARRAY_SIZE(i2c_camera_devices_qrd)); else #endif i2c_register_board_info(MSM_GSBI0_QUP_I2C_BUS_ID, i2c_camera_devices, ARRAY_SIZE(i2c_camera_devices)); }
void __init lge_add_i2c_devices(void) { register_i2c_devices(); lge_add_gpio_i2c_devices(); }
static void __init msm7x2x_init(void) { msm7x2x_misc_init(); /* Initialize regulators first so that other devices can use them */ msm7x27a_init_regulators(); /* Common functions for SURF/FFA/RUMI3 */ msm_device_i2c_init(); msm7x27a_init_ebi2(); msm7x27a_cfg_uart2dm_serial(); #ifdef CONFIG_SERIAL_MSM_HS msm_uart_dm1_pdata.wakeup_irq = gpio_to_irq(UART1DM_RX_GPIO); msm_device_uart_dm1.dev.platform_data = &msm_uart_dm1_pdata; #endif #ifdef CONFIG_USB_MSM_OTG_72K msm_otg_pdata.swfi_latency = msm7x27a_pm_data [MSM_PM_SLEEP_MODE_RAMP_DOWN_AND_WAIT_FOR_INTERRUPT].latency; msm_device_otg.dev.platform_data = &msm_otg_pdata; #endif msm_device_gadget_peripheral.dev.platform_data = &msm_gadget_pdata; msm7x27a_cfg_smsc911x(); platform_add_devices(msm_footswitch_devices, msm_num_footswitch_devices); platform_add_devices(surf_ffa_devices, ARRAY_SIZE(surf_ffa_devices)); /* Ensure ar6000pm device is registered before MMC/SDC */ msm7x27a_init_ar6000pm(); #ifdef CONFIG_MMC_MSM msm7627a_init_mmc(); #endif msm_fb_add_devices(); #ifdef CONFIG_USB_EHCI_MSM_72K msm7x2x_init_host(); #endif msm_pm_set_platform_data(msm7x27a_pm_data, ARRAY_SIZE(msm7x27a_pm_data)); BUG_ON(msm_pm_boot_init(&msm_pm_boot_pdata)); #if defined(CONFIG_I2C) && defined(CONFIG_GPIO_SX150X) register_i2c_devices(); #endif #if defined(CONFIG_BT) && defined(CONFIG_MARIMBA_CORE) msm7627a_bt_power_init(); #endif if (machine_is_msm7625a_surf() || machine_is_msm7625a_ffa()) { atmel_ts_pdata.min_x = 0; atmel_ts_pdata.max_x = 480; atmel_ts_pdata.min_y = 0; atmel_ts_pdata.max_y = 320; } i2c_register_board_info(MSM_GSBI1_QUP_I2C_BUS_ID, atmel_ts_i2c_info, ARRAY_SIZE(atmel_ts_i2c_info)); #if defined(CONFIG_MSM_CAMERA) msm7627a_camera_init(); #endif platform_device_register(&kp_pdev); platform_device_register(&hs_pdev); /* configure it as a pdm function*/ if (gpio_tlmm_config(GPIO_CFG(LED_GPIO_PDM, 3, GPIO_CFG_OUTPUT, GPIO_CFG_NO_PULL, GPIO_CFG_8MA), GPIO_CFG_ENABLE)) pr_err("%s: gpio_tlmm_config for %d failed\n", __func__, LED_GPIO_PDM); else platform_device_register(&led_pdev); #ifdef CONFIG_MSM_RPC_VIBRATOR if (machine_is_msm7x27a_ffa() || machine_is_msm7625a_ffa()) msm_init_pmic_vibrator(); #endif /*7x25a kgsl initializations*/ msm7x25a_kgsl_3d0_init(); }
void __init msm7627a_camera_init(void) { int rc; /* <DTS2012041003722 sibingsong 20120410 begin */ /*< DTS2012021000399 yuguangcai 20120211 begin */ #ifdef CONFIG_HUAWEI_CAMERA /*before camera probe, config the camera pwd gpio*/ camera_sensor_pwd_config(); #endif /* DTS2012021000399 yuguangcai 20120211 end > */ /* DTS2012041003722 sibingsong 20120410 end> */ #ifndef CONFIG_MSM_CAMERA_V4L2 if (machine_is_msm7627a_qrd1()) { qrd1_camera_gpio_cfg(); platform_add_devices(camera_devices_qrd, ARRAY_SIZE(camera_devices_qrd)); } else platform_add_devices(camera_devices_msm, ARRAY_SIZE(camera_devices_msm)); #endif if (!machine_is_msm7627a_qrd1()) register_i2c_devices(); /* < DTS2012050205820 zhouqiwei 20120502 begin */ if (WIFI_QUALCOMM == get_hw_wifi_device_type()) { if (HW_DS != get_hw_ds_type()) { rc = regulator_bulk_get(NULL, ARRAY_SIZE(regs_camera_WIFI_QUALCOMM), regs_camera_WIFI_QUALCOMM); if (rc) { pr_err("%s: could not get regs_camera_WIFI_QUALCOMM: %d\n", __func__, rc); return; } rc = regulator_bulk_set_voltage(ARRAY_SIZE(regs_camera_WIFI_QUALCOMM), regs_camera_WIFI_QUALCOMM); if (rc) { pr_err("%s: could not set regs_camera_WIFI_QUALCOMM: %d\n", __func__, rc); return; } } else { rc = regulator_bulk_get(NULL, ARRAY_SIZE(regs_camera_HW_DS), regs_camera_HW_DS); if (rc) { pr_err("%s: could not get regs_camera_HW_DSs: %d\n", __func__, rc); return; } rc = regulator_bulk_set_voltage(ARRAY_SIZE(regs_camera_HW_DS), regs_camera_HW_DS); if (rc) { pr_err("%s: could not set regs_camera_HW_DS: %d\n", __func__, rc); return; } } } else { rc = regulator_bulk_get(NULL, ARRAY_SIZE(regs_camera), regs_camera); if (rc) { pr_err("%s: could not get regulators: %d\n", __func__, rc); return; } rc = regulator_bulk_set_voltage(ARRAY_SIZE(regs_camera), regs_camera); if (rc) { pr_err("%s: could not set voltages: %d\n", __func__, rc); return; } } /* DTS2012050205820 zhouqiwei 20120502 end > */ #if defined(CONFIG_MSM_CAMERA_V4L2) msm7x27a_init_cam(); #endif #ifndef CONFIG_MSM_CAMERA_V4L2 if (machine_is_msm7627a_qrd1()) i2c_register_board_info(MSM_GSBI0_QUP_I2C_BUS_ID, i2c_camera_devices_qrd, ARRAY_SIZE(i2c_camera_devices_qrd)); else #endif i2c_register_board_info(MSM_GSBI0_QUP_I2C_BUS_ID, i2c_camera_devices, ARRAY_SIZE(i2c_camera_devices)); }
void __init msm7627a_camera_init(void) { #ifndef CONFIG_MSM_CAMERA_V4L2 int rc; #endif pr_debug("msm7627a_camera_init Entered\n"); if (machine_is_msm7627a_qrd3() || machine_is_msm8625_qrd7()) { ov7692_cam_req_gpio[0].gpio = GPIO_SKU7_CAM_VGA_SHDN; ov7692_cam_gpio_set_tbl[0].gpio = GPIO_SKU7_CAM_VGA_SHDN; ov7692_cam_gpio_set_tbl[1].gpio = GPIO_SKU7_CAM_VGA_SHDN; msm_camera_sensor_ov5647_data.sensor_pwd = GPIO_SKU7_CAM_5MP_SHDN_N; msm_camera_sensor_ov5647_data.sensor_reset = GPIO_SKU7_CAM_5MP_CAMIF_RESET; } /* LCD and camera power (VREG & LDO) init */ if (machine_is_msm7627a_evb() || machine_is_msm8625_evb() || machine_is_msm8625_evt() || machine_is_msm7627a_qrd3() || machine_is_msm8625_qrd7()) { #ifndef CONFIG_MSM_CAMERA_V4L2 lcd_camera_power_init(); #endif evb_camera_gpio_cfg(); } #ifndef CONFIG_MSM_CAMERA_V4L2 if (machine_is_msm7627a_qrd1()) { qrd1_camera_gpio_cfg(); platform_add_devices(camera_devices_qrd, ARRAY_SIZE(camera_devices_qrd)); } else if (machine_is_msm7627a_evb() || machine_is_msm8625_evb() || machine_is_msm8625_evt() || machine_is_msm7627a_qrd3() || machine_is_msm8625_qrd7()) { platform_add_devices(camera_devices_evb, ARRAY_SIZE(camera_devices_evb)); } else if (machine_is_msm7627a_qrd3()) return; else platform_add_devices(camera_devices_msm, ARRAY_SIZE(camera_devices_msm)); #endif if (!machine_is_msm7627a_qrd1() || !machine_is_msm7627a_evb() || !machine_is_msm8625_evb() || !machine_is_msm8625_evt() || !machine_is_msm7627a_qrd3() || !machine_is_msm8625_qrd7()) register_i2c_devices(); #ifndef CONFIG_MSM_CAMERA_V4L2 rc = regulator_bulk_get(NULL, ARRAY_SIZE(regs_camera), regs_camera); if (rc) { pr_err("%s: could not get regulators: %d\n", __func__, rc); return; } rc = regulator_bulk_set_voltage(ARRAY_SIZE(regs_camera), regs_camera); if (rc) { pr_err("%s: could not set voltages: %d\n", __func__, rc); return; } #endif #if defined(CONFIG_MSM_CAMERA_V4L2) msm7x27a_init_cam(); #endif #ifndef CONFIG_MSM_CAMERA_V4L2 if (machine_is_msm7627a_qrd1()) { i2c_register_board_info(MSM_GSBI0_QUP_I2C_BUS_ID, i2c_camera_devices_qrd, ARRAY_SIZE(i2c_camera_devices_qrd)); } else if (machine_is_msm7627a_evb() || machine_is_msm8625_evb() || machine_is_msm8625_evt() || machine_is_msm7627a_qrd3() || machine_is_msm8625_qrd7()) { pr_debug("machine_is_msm7627a_evb i2c_register_board_info\n"); i2c_register_board_info(MSM_GSBI0_QUP_I2C_BUS_ID, i2c_camera_devices_evb, ARRAY_SIZE(i2c_camera_devices_evb)); } else #endif pr_debug("i2c_register_board_info\n"); i2c_register_board_info(MSM_GSBI0_QUP_I2C_BUS_ID, i2c_camera_devices, ARRAY_SIZE(i2c_camera_devices)); }
static int vpfe_register_entities(struct vpfe_device *vpfe_dev) { int ret, i; unsigned int flags = 0; /* register i2c devices first */ ret = register_i2c_devices(vpfe_dev); if (ret) return ret; /* register rest of the sub-devs */ ret = vpfe_ccdc_register_entities(&vpfe_dev->vpfe_ccdc, &vpfe_dev->v4l2_dev); if (ret) return ret; ret = vpfe_previewer_register_entities(&vpfe_dev->vpfe_previewer, &vpfe_dev->v4l2_dev); if (ret) goto out_ccdc_register; ret = vpfe_resizer_register_entities(&vpfe_dev->vpfe_resizer, &vpfe_dev->v4l2_dev); if (ret) goto out_previewer_register; ret = vpfe_aew_register_entities(&vpfe_dev->vpfe_aew, &vpfe_dev->v4l2_dev); if (ret) goto out_resizer_register; ret = vpfe_af_register_entities(&vpfe_dev->vpfe_af, &vpfe_dev->v4l2_dev); if (ret) goto out_aew_register; /* create links now, starting with external(i2c) entities */ for (i = 0; i < vpfe_dev->num_subdevs; i++) { /* if entity has no pads (ex: amplifier), cant establish link */ if (vpfe_dev->sd[i]->entity.num_pads) { ret = media_entity_create_link(&vpfe_dev->sd[i]->entity, 0, &vpfe_dev->vpfe_ccdc.subdev.entity, 0, flags); if (ret < 0) goto out_resizer_register; } } ret = media_entity_create_link(&vpfe_dev->vpfe_ccdc.subdev.entity, 1, &vpfe_dev->vpfe_aew.subdev.entity, 0, flags); if (ret < 0) goto out_resizer_register; ret = media_entity_create_link(&vpfe_dev->vpfe_ccdc.subdev.entity, 1, &vpfe_dev->vpfe_af.subdev.entity, 0, flags); if (ret < 0) goto out_resizer_register; ret = media_entity_create_link(&vpfe_dev->vpfe_ccdc.subdev.entity, 1, &vpfe_dev->vpfe_previewer.subdev.entity, 0, flags); if (ret < 0) goto out_resizer_register; ret = media_entity_create_link(&vpfe_dev->vpfe_previewer.subdev.entity, 1, &vpfe_dev->vpfe_resizer.subdev.entity, 0, flags); if (ret < 0) goto out_resizer_register; return 0; out_aew_register: vpfe_aew_unregister_entities(&vpfe_dev->vpfe_aew); out_resizer_register: vpfe_resizer_unregister_entities(&vpfe_dev->vpfe_resizer); out_previewer_register: vpfe_previewer_unregister_entities(&vpfe_dev->vpfe_previewer); out_ccdc_register: vpfe_ccdc_unregister_entities(&vpfe_dev->vpfe_ccdc); return ret; }
void __init msm7627a_camera_init(void) { #ifndef CONFIG_MSM_CAMERA_V4L2 int rc; #endif pr_debug("msm7627a_camera_init Entered\n"); /* LCD and camera power (VREG & LDO) init */ if (machine_is_msm7627a_evb() || machine_is_msm8625_evb()) { lcd_camera_power_init(); evb_camera_gpio_cfg(); } #ifndef CONFIG_MSM_CAMERA_V4L2 if (machine_is_msm7627a_qrd1()) { qrd1_camera_gpio_cfg(); platform_add_devices(camera_devices_qrd, ARRAY_SIZE(camera_devices_qrd)); } else if (machine_is_msm7627a_evb() || machine_is_msm8625_evb()) { platform_add_devices(camera_devices_evb, ARRAY_SIZE(camera_devices_evb)); } else if (machine_is_msm7627a_qrd3()) return; else platform_add_devices(camera_devices_msm, ARRAY_SIZE(camera_devices_msm)); #endif if (!machine_is_msm7627a_qrd1() || !machine_is_msm7627a_evb() || !machine_is_msm8625_evb()) register_i2c_devices(); #ifndef CONFIG_MSM_CAMERA_V4L2 rc = regulator_bulk_get(NULL, ARRAY_SIZE(regs_camera), regs_camera); if (rc) { pr_err("%s: could not get regulators: %d\n", __func__, rc); return; } rc = regulator_bulk_set_voltage(ARRAY_SIZE(regs_camera), regs_camera); if (rc) { pr_err("%s: could not set voltages: %d\n", __func__, rc); return; } #endif #if defined(CONFIG_MSM_CAMERA_V4L2) msm7x27a_init_cam(); #endif #ifndef CONFIG_MSM_CAMERA_V4L2 if (machine_is_msm7627a_qrd1()) { i2c_register_board_info(MSM_GSBI0_QUP_I2C_BUS_ID, i2c_camera_devices_qrd, ARRAY_SIZE(i2c_camera_devices_qrd)); } else if (machine_is_msm7627a_evb() || machine_is_msm8625_evb()) { pr_debug("machine_is_msm7627a_evb i2c_register_board_info\n"); i2c_register_board_info(MSM_GSBI0_QUP_I2C_BUS_ID, i2c_camera_devices_evb, ARRAY_SIZE(i2c_camera_devices_evb)); } else #endif pr_debug("i2c_register_board_info\n"); i2c_register_board_info(MSM_GSBI0_QUP_I2C_BUS_ID, i2c_camera_devices, ARRAY_SIZE(i2c_camera_devices)); }
static void __init msm7x2x_init(void) { msm7x2x_misc_init(); /* Initialize regulators first so that other devices can use them */ msm7x27a_init_regulators(); msm_adsp_add_pdev(); if (cpu_is_msm8625()) msm8625_device_i2c_init(); else msm7x27a_device_i2c_init(); msm7x27a_init_ebi2(); msm7x27a_uartdm_config(); #ifdef CONFIG_HUAWEI_KERNEL import_kernel_cmdline(); #endif msm7x27a_otg_gadget(); #ifndef CONFIG_HUAWEI_CAMERA msm7x27a_cfg_smsc911x(); #endif #if (defined(CONFIG_HUAWEI_BT_BCM43XX) && defined(CONFIG_HUAWEI_KERNEL)) /*before bt probe, config the bt_wake_msm gpio*/ bt_wake_msm_config(); #endif msm7x27a_add_footswitch_devices(); msm7x27a_add_platform_devices(); /* Ensure ar6000pm device is registered before MMC/SDC */ msm7x27a_init_ar6000pm(); msm7627a_init_mmc(); msm_fb_add_devices(); msm7x2x_init_host(); msm7x27a_pm_init(); register_i2c_devices(); //#if (defined(HUAWEI_BT_BLUEZ_VER30) || (!defined(CONFIG_HUAWEI_KERNEL))) //msm7627a_bt_power_init() will check QC or BCM bt chip powers inner. msm7627a_bt_power_init(); //#endif msm7627a_camera_init(); msm7627a_add_io_devices(); /*7x25a kgsl initializations*/ msm7x25a_kgsl_3d0_init(); #ifdef CONFIG_HUAWEI_FEATURE_OEMINFO rmt_oeminfo_add_device(); #endif #ifdef CONFIG_HUAWEI_KERNEL virtualkeys_init(); #endif #ifdef CONFIG_HUAWEI_KERNEL hw_extern_sdcard_add_device(); #endif /*8x25 kgsl initializations*/ msm8x25_kgsl_3d0_init(); #ifdef CONFIG_HUAWEI_MTK6252_MODEM { unsigned smem_size; boot_reason = *(unsigned int *) (smem_get_entry(SMEM_POWER_ON_STATUS_INFO, &smem_size)); printk(KERN_NOTICE "Boot Reason = 0x%02x\n", boot_reason); mtk6252_dev_init(); } #endif }