void __init msm8974_add_drivers(void)
{
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_lpmrs_module_init();
	rpm_regulator_smd_driver_init();
	msm_spm_device_init();
	krait_power_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8974_rumi_clock_init_data);
	else
		msm_clock_init(&msm8974_clock_init_data);
	tsens_tm_init_driver();
	msm_thermal_device_init();
#ifdef CONFIG_LGE_LCD_TUNING
	lge_add_lcd_misc_devices();
#endif
	lge_add_persistent_device();
#ifdef CONFIG_LGE_QFPROM_INTERFACE
	lge_add_qfprom_devices();
#endif
#ifdef CONFIG_LGE_ECO_MODE
	lge_add_lge_kernel_devices();
#endif
/*                                                                    */
#if defined (CONFIG_BCMDHD) || defined (CONFIG_BCMDHD_MODULE)
	init_bcm_wifi();
#endif
/*                                                                    */
#if defined(CONFIG_LCD_KCAL)
/*             
                          
                                
*/
	lge_add_lcd_kcal_devices();
#endif // CONFIG_LCD_KCAL

#if defined(CONFIG_LGE_PM_BATTERY_ID_CHECKER)
	lge_battery_id_devices();
#endif
}
示例#2
0
void __init msm8974_add_drivers(void)
{
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_lpmrs_module_init();
	rpm_regulator_smd_driver_init();
	msm_spm_device_init();
	krait_power_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8974_rumi_clock_init_data);
	else
		msm_clock_init(&msm8974_clock_init_data);
	tsens_tm_init_driver();
	msm_thermal_device_init();
#ifdef CONFIG_LGE_LCD_TUNING
	lge_add_lcd_misc_devices();
#endif
	lge_add_persistent_device();
#ifdef CONFIG_LGE_QFPROM_INTERFACE
	lge_add_qfprom_devices();
#endif
#ifdef CONFIG_LGE_ECO_MODE
	lge_add_lge_kernel_devices();
#endif
/* LGE_CHANGE_S, [WiFi][[email protected]], 2013-01-22, Wifi Bring Up */
#if defined (CONFIG_BCMDHD) || defined (CONFIG_BCMDHD_MODULE)
	init_bcm_wifi();
#endif
/* LGE_CHANGE_E, [WiFi][[email protected]], 2013-01-22, Wifi Bring Up */
#if defined(CONFIG_LCD_KCAL)
/* LGE_CHANGE_S
* change code for LCD KCAL
* 2013-05-08, [email protected]
*/
	lge_add_lcd_kcal_devices();
#endif // CONFIG_LCD_KCAL

#if defined(CONFIG_LGE_PM_BATTERY_ID_CHECKER)
	lge_battery_id_devices();
#endif
}
/*
 * Used to satisfy dependencies for devices that need to be
 * run early or in a particular order. Most likely your device doesn't fall
 * into this category, and thus the driver should not be added here. The
 * EPROBE_DEFER can satisfy most dependency problems.
 */
void __init msm8974_add_drivers(void)
{
    msm_smem_init();
    msm_init_modem_notifier_list();
    msm_smd_init();
    msm_rpm_driver_init();
    msm_pm_sleep_status_init();
    rpm_regulator_smd_driver_init();
    msm_spm_device_init();
    krait_power_init();
    if (of_board_is_rumi())
        msm_clock_init(&msm8974_rumi_clock_init_data);
    else
        msm_clock_init(&msm8974_clock_init_data);
    tsens_tm_init_driver();
    msm_thermal_device_init();

    ram_console_device_init();
    bootloader_logger_init();
}
/*
 * Used to satisfy dependencies for devices that need to be
 * run early or in a particular order. Most likely your device doesn't fall
 * into this category, and thus the driver should not be added here. The
 * EPROBE_DEFER can satisfy most dependency problems.
 */
void __init msm8974_add_drivers(void)
{
    msm_smem_init();
    msm_init_modem_notifier_list();
    msm_smd_init();
    msm_rpm_driver_init();
    msm_pm_sleep_status_init();
    rpm_regulator_smd_driver_init();
    msm_spm_device_init();
    krait_power_init();
    if (of_board_is_rumi())
        msm_clock_init(&msm8974_rumi_clock_init_data);
    else
        msm_clock_init(&msm8974_clock_init_data);
    tsens_tm_init_driver();
    msm_thermal_device_init();
#ifdef CONFIG_LCD_KCAL
    add_lcd_kcal_devices();
#endif
}
void __init msm8974_add_drivers(void)
{
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	rpm_regulator_smd_driver_init();
	msm_spm_device_init();
	msm_pm_sleep_status_init();
	krait_power_init();
	msm_clock_init(&msm8974_clock_init_data);
	tsens_tm_init_driver();
	msm_thermal_device_init();
	lge_add_persistent_device();
#if defined (CONFIG_BCMDHD) || defined (CONFIG_BCMDHD_MODULE)
	init_bcm_wifi();
#endif
#if defined(CONFIG_LCD_KCAL)
	lge_add_lcd_kcal_devices();
#endif
}
/*
 * Used to satisfy dependencies for devices that need to be
 * run early or in a particular order. Most likely your device doesn't fall
 * into this category, and thus the driver should not be added here. The
 * EPROBE_DEFER can satisfy most dependency problems.
 */
void __init msm8226_add_drivers(void)
{
	msm_smem_init();
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_spm_device_init();
	msm_pm_sleep_status_init();
	rpm_regulator_smd_driver_init();
	qpnp_regulator_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8226_rumi_clock_init_data);
	else
		msm_clock_init(&msm8226_clock_init_data);
	tsens_tm_init_driver();
	msm_thermal_device_init();
#if defined(CONFIG_ANDROID_RAM_CONSOLE)
	lge_add_persistent_device();
#endif
#ifdef CONFIG_USB_G_LGE_ANDROID
    lge_android_usb_init();
#endif
#ifdef CONFIG_LGE_DIAG_USB_ACCESS_LOCK
    lge_diag_cmd_init();
#endif
	 #if defined(CONFIG_LCD_KCAL)
	 lge_add_lcd_kcal_devices();
#endif
#if defined ( CONFIG_BCMDHD ) 
//	init_bcm_wifi();
#endif

#ifdef CONFIG_LGE_QFPROM_INTERFACE
	lge_add_qfprom_devices();
#endif

#ifdef CONFIG_LGE_ENABLE_MMC_STRENGTH_CONTROL
    lge_add_mmc_strength_devices();
#endif

}
示例#7
0
void __init msm8974_add_drivers(void)
{
	msm_smem_init();
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_pm_sleep_status_init();
	rpm_regulator_smd_driver_init();
	msm_spm_device_init();
	krait_power_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8974_rumi_clock_init_data);
	else
		msm_clock_init(&msm8974_clock_init_data);
	tsens_tm_init_driver();
	msm_thermal_device_init();
	lge_add_persistent_device();
#ifdef CONFIG_LGE_QFPROM_INTERFACE
	lge_add_qfprom_devices();
#endif
#ifdef CONFIG_LGE_DIAG_USB_ACCESS_LOCK
	lge_add_diag_devices();
#endif
#ifdef CONFIG_LGE_LCD_TUNING
	lge_add_lcd_misc_devices();
#endif
/*                                                                    */
#if defined(CONFIG_BCMDHD) || defined(CONFIG_BCMDHD_MODULE)
	init_bcm_wifi();
#endif
/*                                                                    */
#if defined(CONFIG_LGE_PM_BATTERY_ID_CHECKER)
	lge_battery_id_devices();
#endif
#ifdef CONFIG_LGE_QSDL_SUPPORT
	lge_add_qsdl_device();
#endif
#ifdef CONFIG_USB_G_LGE_ANDROID
	lge_add_android_usb_devices();
#endif
}
/*
 * Used to satisfy dependencies for devices that need to be
 * run early or in a particular order. Most likely your device doesn't fall
 * into this category, and thus the driver should not be added here. The
 * EPROBE_DEFER can satisfy most dependency problems.
 */
void __init msm8226_add_drivers(void)
{
	msm_smem_init();
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_spm_device_init();
	msm_pm_sleep_status_init();
	rpm_regulator_smd_driver_init();
	qpnp_regulator_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8226_rumi_clock_init_data);
	else
		msm_clock_init(&msm8226_clock_init_data);
	tsens_tm_init_driver();
	#ifdef CONFIG_INTELLI_THERMAL
	msm_thermal_init(NULL);
#else
	msm_thermal_device_init(NULL);
#endif
}
void __init msm8974_add_drivers(void)
{
    msm_smem_init();
    msm_init_modem_notifier_list();
    msm_smd_init();
    msm_rpm_driver_init();
    msm_pm_sleep_status_init();
    rpm_regulator_smd_driver_init();
    msm_spm_device_init();
    krait_power_init();
    if (of_board_is_rumi())
        msm_clock_init(&msm8974_rumi_clock_init_data);
    else
        msm_clock_init(&msm8974_clock_init_data);
    tsens_tm_init_driver();
    msm_thermal_device_init();
    lge_add_persistent_device();
#ifdef CONFIG_LGE_QFPROM_INTERFACE
    lge_add_qfprom_devices();
#endif
#ifdef CONFIG_LGE_DIAG_ENABLE_SYSFS
    lge_add_diag_devices();
#endif
    /* LGE_CHANGE_S, [WiFi][[email protected]], 2013-01-28, Wifi Bring Up */
#if defined (CONFIG_BCMDHD) || defined (CONFIG_BCMDHD_MODULE)
    init_bcm_wifi();
#endif
    /* LGE_CHANGE_E, [WiFi][[email protected]], 2013-01-28, Wifi Bring Up */
#if defined(CONFIG_LCD_KCAL)
    /* LGE_CHANGE_S
    * change code for LCD KCAL
    * 2013-05-08, [email protected]
    */
    lge_add_lcd_kcal_devices();
#endif /* CONFIG_LCD_KCAL */
#ifdef CONFIG_USB_G_LGE_ANDROID
    lge_add_android_usb_devices();
#endif

}
void __init msm8974_add_drivers(void)
{
	msm_smem_init();
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_pm_sleep_status_init();
	rpm_regulator_smd_driver_init();
	msm_spm_device_init();
	krait_power_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8974_rumi_clock_init_data);
	else
		msm_clock_init(&msm8974_clock_init_data);
	tsens_tm_init_driver();
	msm_thermal_device_init();
#ifdef CONFIG_LGE_LCD_TUNING
	lge_add_lcd_misc_devices();
#endif
	lge_add_persistent_device();
#ifdef CONFIG_LGE_QFPROM_INTERFACE
	lge_add_qfprom_devices();
#endif
#ifdef CONFIG_LGE_ECO_MODE
	lge_add_lge_kernel_devices();
#endif
#ifdef CONFIG_LGE_DIAG_USB_ACCESS_LOCK
	lge_add_diag_devices();
#endif
#ifdef CONFIG_USB_G_LGE_ANDROID
	lge_add_android_usb_devices();
#endif
#if defined(CONFIG_LCD_KCAL)
	lge_add_lcd_kcal_devices();
#endif
#if defined(CONFIG_PRE_SELF_DIAGNOSIS)
	lge_add_pre_selfd_devices();
#endif

}
/*
 * Used to satisfy dependencies for devices that need to be
 * run early or in a particular order. Most likely your device doesn't fall
 * into this category, and thus the driver should not be added here. The
 * EPROBE_DEFER can satisfy most dependency problems.
 */
void __init msm8226_add_drivers(void)
{
	msm_smem_init();
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_spm_device_init();
	msm_pm_sleep_status_init();
	rpm_regulator_smd_driver_init();
	qpnp_regulator_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8226_rumi_clock_init_data);
	else
		msm_clock_init(&msm8226_clock_init_data);
	tsens_tm_init_driver();
#if defined(CONFIG_SEC_MILLET_PROJECT) || defined(CONFIG_SEC_MATISSE_PROJECT) || defined(CONFIG_MACH_S3VE3G_EUR)  || defined(CONFIG_SEC_AFYON_PROJECT)
#ifdef CONFIG_SEC_THERMISTOR
	platform_device_register(&sec_device_thermistor);
#endif
#endif
	msm_thermal_device_init();
}
void __init htc_8974_add_drivers(void)
{
	msm_smem_init();
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_pm_sleep_status_init();
	rpm_regulator_smd_driver_init();
	msm_spm_device_init();
	krait_power_init();
	msm_clock_init(&msm8974_clock_init_data);
	tsens_tm_init_driver();
	msm_thermal_device_init();
#if defined(CONFIG_HTC_BATT_8960)
	htc_batt_cell_register();
	msm8974_add_batt_devices();
#endif 
#if (defined(CONFIG_MACH_DUMMY) || defined(CONFIG_MACH_DUMMY))
	syn_init_vkeys_8974();
#endif
	htc_8974_cable_detect_register();
	
	if (board_mfg_mode() != 6 && board_mfg_mode() != 7)
		htc_8974_add_usb_devices();
	else
		pr_info("[USB] %s: Don't load USB since board_mfg_mode=%d\n", __func__, board_mfg_mode());

	htc_8974_dsi_panel_power_register();
#if defined(CONFIG_FB_MSM_MDSS_HDMI_MHL_SII9234) && defined(CONFIG_HTC_MHL_DETECTION)
	htc_8974_mhl_ctrl_register();
#endif
#ifdef CONFIG_HTC_POWER_DEBUG
	htc_cpu_usage_register();
#endif
#if defined(CONFIG_LCD_KCAL)
	htc_add_lcd_kcal_devices();
#endif
}
示例#13
0
void __init msm8974_add_drivers(void)
{
	msm_smem_init();
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_pm_sleep_status_init();
	rpm_regulator_smd_driver_init();
	msm_spm_device_init();
	krait_power_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8974_rumi_clock_init_data);
	else
		msm_clock_init(&msm8974_clock_init_data);
	tsens_tm_init_driver();
	msm_thermal_device_init();
#ifdef CONFIG_LGE_QFPROM_INTERFACE
	lge_add_qfprom_devices();
#endif
#ifdef CONFIG_LGE_LCD_TUNING
	lge_add_lcd_misc_devices();
#endif
	lge_add_persistent_device();
#if defined(CONFIG_LCD_KCAL)
/*             
                          
                                
*/
	lge_add_lcd_kcal_devices();
#endif /* CONFIG_LCD_KCAL */
#if defined(CONFIG_LGE_PM_BATTERY_ID_CHECKER)
	lge_battery_id_devices();
#endif
#ifdef CONFIG_USB_G_LGE_ANDROID
	lge_add_android_usb_devices();
#endif

}
void __init msm8974_add_drivers(void)
{
	msm_smem_init();
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_pm_sleep_status_init();
	rpm_regulator_smd_driver_init();
	msm_spm_device_init();
	krait_power_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8974_rumi_clock_init_data);
	else
		msm_clock_init(&msm8974_clock_init_data);
	tsens_tm_init_driver();
	msm_thermal_device_init();
#ifdef CONFIG_LGE_LCD_TUNING
	lge_add_lcd_misc_devices();
#endif
	lge_add_persistent_device();
#ifdef CONFIG_LGE_QFPROM_INTERFACE
	lge_add_qfprom_devices();
#endif
#ifdef CONFIG_LGE_ECO_MODE
	lge_add_lge_kernel_devices();
#endif
#ifdef CONFIG_LGE_DIAG_ENABLE_SYSFS
	lge_add_diag_devices();
#endif
#ifdef CONFIG_MACH_MSM8974_G2_VZW
	lge_add_android_usb_devices();
#endif
/* LGE_CHANGE_S, [WiFi][[email protected]], 2013-01-22, Wifi Bring Up */
#if defined(CONFIG_BCMDHD) || defined(CONFIG_BCMDHD_MODULE)
	init_bcm_wifi();
#endif
/* LGE_CHANGE_E, [WiFi][[email protected]], 2013-01-22, Wifi Bring Up */
}
/*
 * Used to satisfy dependencies for devices that need to be
 * run early or in a particular order. Most likely your device doesn't fall
 * into this category, and thus the driver should not be added here. The
 * EPROBE_DEFER can satisfy most dependency problems.
 */
void __init msm8226_add_drivers(void)
{
	msm_smem_init();
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_spm_device_init();
	msm_pm_sleep_status_init();
	rpm_regulator_smd_driver_init();
	qpnp_regulator_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8226_rumi_clock_init_data);
	else
		msm_clock_init(&msm8226_clock_init_data);
	tsens_tm_init_driver();
#if defined(CONFIG_MACH_MS01) || defined(CONFIG_MACH_CRATERVE) || defined(CONFIG_MACH_CT01) || \
	defined(CONFIG_MACH_S3VE) || defined(CONFIG_MACH_S3VECTC) || defined(CONFIG_MACH_MS01_LTE) || \
	defined(CONFIG_MACH_CS03_SGLTE) || defined(CONFIG_MACH_CRATERQ) || defined(CONFIG_MACH_MS01_LTE_KOR) || \
	defined(CONFIG_MACH_MS01_CHN_CMCC_3G) || defined(CONFIG_MACH_BAFFIN2_SGLTE)
	platform_device_register(&sec_device_thermistor);
#endif
	msm_thermal_device_init();
}
/*
 * Used to satisfy dependencies for devices that need to be
 * run early or in a particular order. Most likely your device doesn't fall
 * into this category, and thus the driver should not be added here. The
 * EPROBE_DEFER can satisfy most dependency problems.
 */
void __init msm8226_add_drivers(void)
{
	msm_smem_init();
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_spm_device_init();
	msm_pm_sleep_status_init();
	rpm_regulator_smd_driver_init();
	qpnp_regulator_init();
	spm_regulator_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8226_rumi_clock_init_data);
	else
		msm_clock_init(&msm8226_clock_init_data);
	msm_bus_fabric_init_driver();
	qup_i2c_init_driver();
	ncp6335d_regulator_init();
	fan53555_regulator_init();
	cpr_regulator_init();
	tsens_tm_init_driver();
	msm_thermal_device_init();
}
void __init msm8974_add_drivers(void)
{
	msm_smem_init();
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_pm_sleep_status_init();
	rpm_regulator_smd_driver_init();
	msm_spm_device_init();
	krait_power_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8974_rumi_clock_init_data);
	else
		msm_clock_init(&msm8974_clock_init_data);
	tsens_tm_init_driver();
	msm_thermal_device_init();
	lge_add_persistent_device();
#ifdef CONFIG_LGE_QFPROM_INTERFACE
	lge_add_qfprom_devices();
#endif
#if defined(CONFIG_LCD_KCAL)
/* LGE_CHANGE_S
* change code for LCD KCAL
* 2013-05-08, [email protected]
*/
	lge_add_lcd_kcal_devices();
#endif /* CONFIG_LCD_KCAL */
#if defined(CONFIG_LGE_PM_BATTERY_ID_CHECKER)
	lge_battery_id_devices();
#endif
#ifdef CONFIG_USB_G_LGE_ANDROID
	lge_add_android_usb_devices();
#endif
#ifdef CONFIG_LGE_DIAG_USB_ACCESS_LOCK
	lge_add_diag_devices();
#endif
}
void __init msm8974_add_drivers(void)
{
	msm_smem_init();
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_pm_sleep_status_init();
	rpm_regulator_smd_driver_init();
	msm_spm_device_init();
	krait_power_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8974_rumi_clock_init_data);
	else
		msm_clock_init(&msm8974_clock_init_data);
	tsens_tm_init_driver();
	msm_thermal_device_init();
	lge_add_persistent_device();
#ifdef CONFIG_LGE_QFPROM_INTERFACE
	lge_add_qfprom_devices();
#endif
/*                                                                       */
#if defined (CONFIG_BCMDHD) || defined (CONFIG_BCMDHD_MODULE)
	init_bcm_wifi();
#endif
/*                                                                       */
#if defined(CONFIG_LCD_KCAL)
/*             
                          
                                
*/
	lge_add_lcd_kcal_devices();
#endif /*                 */
#ifdef CONFIG_USB_G_LGE_ANDROID
	lge_add_android_usb_devices();
#endif

}
/*
 * Used to satisfy dependencies for devices that need to be
 * run early or in a particular order. Most likely your device doesn't fall
 * into this category, and thus the driver should not be added here. The
 * EPROBE_DEFER can satisfy most dependency problems.
 */
void __init msm8974_add_drivers(void)
{
	msm_smem_init();
	msm_init_modem_notifier_list();
	msm_smd_init();
	msm_rpm_driver_init();
	msm_pm_sleep_status_init();
	rpm_regulator_smd_driver_init();
	msm_spm_device_init();
	krait_power_init();
	if (of_board_is_rumi())
		msm_clock_init(&msm8974_rumi_clock_init_data);
	else
		msm_clock_init(&msm8974_clock_init_data);
	tsens_tm_init_driver();
	msm_thermal_device_init();
	nv_init_vkeys_8974(); // +++ ASUS_BSP : add novatek virtual key map Deeo

	// ASUS_BSP +++ Victor_Fu "proximity driver"
	platform_add_devices(msm_a91_proximity_devices, ARRAY_SIZE(msm_a91_proximity_devices));
	// ASUS_BSP --- Victor_Fu "proximity driver"
#ifdef CONFIG_BATTERY_ASUS
	//ASUS BSP Hank_Chen : A86 1032 porting+++
	platform_add_devices(msm_a86_bat_devices, ARRAY_SIZE(msm_a86_bat_devices));
	//ASUS BSP Hank_Chen : A86 1032 porting---
#endif
	// ASUS_BSP +++ Peter_Lu "cm3628 & cm36283 Lightsensor"
	if ( g_ASUS_hwID == A90_EVB0 )	{
		printk("Add_CM36283_sensor +++\n");
		platform_add_devices(msm_a90_sensor_devices, ARRAY_SIZE(msm_a90_sensor_devices));
	}else if( g_ASUS_hwID >= A91_SR1 && g_ASUS_hwID < A91_SR5 ) {
		printk("Add_CM3628_sensor +++\n");
		platform_add_devices(msm_a91_sensor_devices, ARRAY_SIZE(msm_a91_sensor_devices));
	}
	// ASUS_BSP ---
}