void __init htc_8974_init(void) { struct of_dev_auxdata *adata = htc_8974_auxdata_lookup; if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); pr_info("%s: pid=%d, pcbid=%d, socver=0x%x\n", __func__ , of_machine_pid(), of_machine_pcbid(), of_machine_socver()); msm_htc_8974_init_gpiomux(); regulator_has_full_constraints(); board_dt_populate(adata); htc_8974_add_drivers(); #ifdef CONFIG_HTC_BUILD_EDIAG platform_device_register(&android_pmem_ediag_device); platform_device_register(&android_pmem_ediag1_device); platform_device_register(&android_pmem_ediag2_device); platform_device_register(&android_pmem_ediag3_device); #endif #ifdef CONFIG_BT bt_export_bd_address(); #endif #ifdef CONFIG_HTC_POWER_DEBUG htc_monitor_init(); #endif }
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 }
void __init htc_8226_init(void) { struct of_dev_auxdata *adata = htc_8226_auxdata_lookup; printk(KERN_INFO"[htc_8226_init]: Test to see htc_8226_init()\n"); if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); pr_info("%s: pid=%d, pcbid=%d, socver=0x%x\n", __func__ , of_machine_pid(), of_machine_pcbid(), of_machine_socver()); #ifdef CONFIG_BT bt_export_bd_address(); #endif msm8226_htc_init_gpiomux(); board_dt_populate(adata); htc_8226_add_drivers(); #ifdef CONFIG_HTC_BUILD_EDIAG platform_device_register(&android_pmem_ediag_device); platform_device_register(&android_pmem_ediag1_device); platform_device_register(&android_pmem_ediag2_device); platform_device_register(&android_pmem_ediag3_device); #endif #ifdef CONFIG_PERFLOCK platform_device_register(&msm8226_device_perf_lock); #endif #ifdef CONFIG_HTC_POWER_DEBUG htc_monitor_init(); #endif }
void __init msm8974_init(void) { struct of_dev_auxdata *adata = msm8974_auxdata_lookup; if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); msm_8974_init_gpiomux(); regulator_has_full_constraints(); board_dt_populate(adata); msm8974_add_drivers(); #ifndef CONFIG_PANTECH_SNS_PIXART_VLED_PWR_CONTROLED_BY_DDF { #define PWR_IRMOTION_3P3 102 static unsigned irmotion_i2c_gpio_table[] = { GPIO_CFG(PWR_IRMOTION_3P3,0, GPIO_CFG_OUTPUT, GPIO_CFG_PULL_UP, GPIO_CFG_2MA), }; int ret=0, i=0; printk("%s (%d) : gpio and pwr setting.\n", __func__, __LINE__); for(i=0; i<ARRAY_SIZE(irmotion_i2c_gpio_table); i++) { ret = gpio_tlmm_config(irmotion_i2c_gpio_table[i], GPIO_CFG_ENABLE); if(ret) { pr_err("%s:Failed irmotion_i2c_gpio_table gpio_tlmm_config(%d) = %d\n", __func__, i, ret); return; } } gpio_set_value(PWR_IRMOTION_3P3, 1); } #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__); 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 msmkrypton_init(void) { if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); msmkrypton_init_gpiomux(); board_dt_populate(msmkrypton_auxdata_lookup); msmkrypton_add_drivers(); }
void __init msm8974_init(void) { #ifdef CONFIG_VENDOR_EDIT /* OPPO 2013.07.09 hewei add begin for FTM */ int rc = 0; /* OPPO 2013.07.09 hewei add end for FTM */ #endif //CONFIG_VENDOR_EDIT struct of_dev_auxdata *adata = msm8974_auxdata_lookup; if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); #ifdef CONFIG_VENDOR_EDIT /* OPPO 2013.07.09 hewei add begin for factory mode*/ board_mfg_mode_init(); /* OPPO 2013.07.09 hewei add end */ #endif //CONFIG_VENDOR_EDIT #ifdef CONFIG_VENDOR_EDIT /* OPPO 2013-09-03 zhanglong add for add interface start reason and boot_mode begin */ start_reason_init(); boot_mode_init(); /* OPPO 2013-09-03 zhanglong add for add interface start reason and boot_mode end */ #endif //CONFIG_VENDOR_EDIT msm_8974_init_gpiomux(); regulator_has_full_constraints(); board_dt_populate(adata); msm8974_add_drivers(); /*OPPO yuyi 2013-07-15 add begin for version */ #ifdef VENDOR_EDIT board_pcb_verison_init(); board_rf_version_init(); #endif /*OPPO yuyi 2013-07-15 add end for version*/ #ifdef VENDOR_EDIT /* Xiaori.Yuan@Mobile Phone Software Dept.Driver, 2014/04/12 Add for gamma correction */ board_gamma_index_init(); #endif /*VENDOR_EDIT*/ #ifdef VENDOR_EDIT /* Xiaori.Yuan@Mobile Phone Software Dept.Driver, 2014/04/15 Add for find7s swap port */ board_LCD_id_index_init(); #endif /*VENDOR_EDIT*/ #ifdef CONFIG_VENDOR_EDIT /* OPPO 2013.07.09 hewei add begin for factory mode*/ systeminfo_kobj = kobject_create_and_add("systeminfo", NULL); printk("songxh create systeminto node suscess!\n"); if (systeminfo_kobj) rc = sysfs_create_group(systeminfo_kobj, &attr_group); /* OPPO 2013.07.09 hewei add end */ #endif //CONFIG_VENDOR_EDIT }
void __init msm8610_init(void) { struct of_dev_auxdata *adata = msm8610_auxdata_lookup; if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); msm8610_init_gpiomux(); board_dt_populate(adata); msm8610_add_drivers(); }
static void __init mpq8092_init(void) { struct of_dev_auxdata *adata = mpq8092_auxdata_lookup; if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); mpq8092_init_gpiomux(); msm_clock_init(&mpq8092_clock_init_data); board_dt_populate(adata); }
void __init msm8974_init(void) { struct of_dev_auxdata *adata = msm8974_auxdata_lookup; if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); msm_8974_init_gpiomux(); regulator_has_full_constraints(); board_dt_populate(adata); msm8974_add_drivers(); }
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 }
//ZTE_RIL_RIL_20130615 end void __init msm8226_init(void) { struct of_dev_auxdata *adata = msm8226_auxdata_lookup; if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); msm8226_init_gpiomux(); board_dt_populate(adata); msm8226_add_drivers(); #ifdef ZTE_BOOT_MODE socinfo_sync_sysfs_zte_hw_ver(read_zte_hw_ver()); #endif }
void __init msm8226_init(void) { struct of_dev_auxdata *adata = msm8226_auxdata_lookup; if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); msm8226_init_gpiomux(); board_dt_populate(adata); msm8226_add_drivers(); #ifdef CONFIG_HUAWEI_MMC hw_extern_sdcard_add_device(); #endif }
void __init msm8974_init(void) { struct of_dev_auxdata *adata = msm8974_auxdata_lookup; if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); //+++ASUS_BSP : add for miniporting // msm_8974_init_gpiomux(); device_gpiomux_init(); //---ASUS_BSP : add for miniporting regulator_has_full_constraints(); board_dt_populate(adata); msm8974_add_drivers(); }
void __init msm8974_init(void) { struct of_dev_auxdata *adata = msm8974_auxdata_lookup; if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); msm_8974_init_gpiomux(); regulator_has_full_constraints(); board_dt_populate(adata); msm8974_add_drivers(); #ifdef CONFIG_MFD_WM5110 /* Register the Wolfson WM5119 slimbus codec */ slim_register_board_info(msm_slim_devices, 1); #endif }
void __init msmkrypton_init(void) { /* * 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. */ board_dt_populate(msmkrypton_auxdata_lookup); msm_smem_init(); if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); msmkrypton_init_gpiomux(); msmkrypton_add_drivers(); }
void __init msm8974_init(void) { struct of_dev_auxdata *adata = msm8974_auxdata_lookup; if (socinfo_init() < 0) pr_err("%s: socinfo_init() failed\n", __func__); board_mfg_mode_init(); start_reason_init(); boot_mode_init(); msm_8974_init_gpiomux(); regulator_has_full_constraints(); board_dt_populate(adata); msm8974_add_drivers(); oppo_configure_disp_esd(); }
void __init apq8084_init(void) { struct of_dev_auxdata *adata = apq8084_auxdata_lookup; /* * 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__); apq8084_init_gpiomux(); apq8084_add_drivers(); }
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 }
void __init msm8974_init(void) { struct of_dev_auxdata *adata = msm8974_auxdata_lookup; /* * 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. msm_8974_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__); msm_8974_init_gpiomux(); regulator_has_full_constraints(); msm8974_add_drivers(); oppo_config_display(); oppo_config_ramconsole(); oppo_config_sns_power(); }
static void __init msmgold_init(void) { board_dt_populate(NULL); }
static void __init msmthorium_init(void) { board_dt_populate(NULL); }
static void __init msm8937_init(void) { board_dt_populate(NULL); }