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 exynos5_universal5420_vibrator_init(void) { #if defined(CONFIG_V1A) vienna_motor_init(); #elif defined(CONFIG_N1A) int ret; ret = gpio_request(GPIO_VIBTONE_PWM, "motor_pwm"); if (ret) { printk(KERN_ERR "%s gpio_request error %d\n", __func__, ret); goto init_fail; } ret = s3c_gpio_cfgpin(GPIO_VIBTONE_PWM, S3C_GPIO_SFN(0x2)); if (ret) { printk(KERN_ERR "%s s3c_gpio_cfgpin error %d\n", __func__, ret); goto init_fail; } ret = platform_device_register(&s3c_device_timer[1]); if (ret) printk(KERN_ERR "%s failed platform_device_register with error %d\n", __func__, ret); init_fail: return; #else int ret; ret = gpio_request(GPIO_VIBTONE_PWM, "GPB"); if (ret) { printk(KERN_ERR "%s gpio_request error %d\n", __func__, ret); goto init_fail; } ret = s3c_gpio_cfgpin(GPIO_VIBTONE_PWM, GPD0_0_TOUT); if (ret) { printk(KERN_ERR "%s s3c_gpio_cfgpin error %d\n", __func__, ret); goto init_fail; } ret = platform_device_register(&s3c_device_timer[0]); if (ret) printk(KERN_ERR "%s failed platform_device_register with error %d\n", __func__, ret); init_fail: return; #endif }
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__); samsung_sys_class_init(); msm_8974_init_gpiomux(); regulator_has_full_constraints(); board_dt_populate(adata); msm8974_add_drivers(); platform_add_devices(common_devices, ARRAY_SIZE(common_devices)); #if defined (CONFIG_MOTOR_DRV_ISA1400) vienna_motor_init(); #endif #ifdef CONFIG_REGULATOR_MAX77826 i2c_register_board_info(MAX77826_I2C_BUS_ID, max77826_pmic_info, ARRAY_SIZE(max77826_pmic_info)); #endif #ifdef CONFIG_SEC_S_PROJECT sensor_init(); #endif #ifdef CONFIG_SENSORS_SSP sensor_hub_init(); #endif #ifdef CONFIG_SEC_PATEK_PROJECT platform_device_register(&folder_keypad_device); #endif #ifdef CONFIG_SEC_PM_DEBUG msm_show_resume_irq_mask = 1; #endif #if defined(CONFIG_BT_BCM4335) || defined(CONFIG_BT_BCM4339) msm8974_bt_init(); #endif }