void __init msm8226_init(void) { struct of_dev_auxdata *adata = msm8226_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__); msm8226_init_gpiomux(); board_dt_populate(adata); samsung_sys_class_init(); msm8226_add_drivers(); #if defined(CONFIG_BATTERY_SAMSUNG) samsung_init_battery(); #endif #ifdef CONFIG_SENSORS_SSP sensor_hub_init(); #endif }
static void __init msm8916_init(void) { struct of_dev_auxdata *adata = msm8916_auxdata_lookup; #ifdef CONFIG_SEC_DEBUG sec_debug_init(); #endif #ifdef CONFIG_PROC_AVC sec_avc_log_init(); #endif /* * populate devices from DT first so smem probe will get called as part * of msm_smem_init. socinfo_init needs smem support so call * msm_smem_init before it. */ of_platform_populate(NULL, of_default_bus_match_table, adata, NULL); msm_smem_init(); if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); samsung_sys_class_init(); msm8916_add_drivers(); platform_add_devices(common_devices, ARRAY_SIZE(common_devices)); }
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 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 }
void __init apq8084_init(void) { struct of_dev_auxdata *adata = apq8084_auxdata_lookup; #ifdef CONFIG_SEC_DEBUG sec_debug_init(); #endif #ifdef CONFIG_PROC_AVC sec_avc_log_init(); #endif /* * populate devices from DT first so smem probe will get called as part * of msm_smem_init. socinfo_init needs smem support so call * msm_smem_init before it. apq8084_init_gpiomux needs socinfo so * call socinfo_init before it. */ board_dt_populate(adata); msm_smem_init(); if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); samsung_sys_class_init(); apq8084_init_gpiomux(); apq8084_add_drivers(); platform_add_devices(common_devices, ARRAY_SIZE(common_devices)); #ifdef CONFIG_REGULATOR_MAX77826 i2c_register_board_info(MAX77826_I2C_BUS_ID, max77826_pmic_info, ARRAY_SIZE(max77826_pmic_info)); #endif #ifdef CONFIG_REGULATOR_S2MPB01 i2c_register_board_info(S2MPB01_I2C_BUS_ID, s2mpb01_pmic_info, ARRAY_SIZE(s2mpb01_pmic_info)); #endif }