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 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 }
static void __init htc_8916_init(void) { struct of_dev_auxdata *adata = htc_8916_auxdata_lookup; 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__); pr_info("%s: pid=%d, pcbid=0x%X, subtype=0x%X, socver=0x%X\n", __func__ , of_machine_pid(), of_machine_pcbid(), of_machine_subtype(), of_machine_socver()); htc_8916_add_drivers(); #ifdef CONFIG_HTC_POWER_DEBUG htc_monitor_init(); #endif #ifdef CONFIG_BT bt_export_bd_address(); #endif #ifdef CONFIG_PERFLOCK platform_device_register(&msm8916_device_perf_lock); #endif }