static void __init msm8625_rumi3_init(void) { msm7x2x_misc_init(); msm_adsp_add_pdev(); msm8625_device_i2c_init(); platform_add_devices(msm8625_rumi3_devices, ARRAY_SIZE(msm8625_rumi3_devices)); msm_pm_set_platform_data(msm8625_pm_data, ARRAY_SIZE(msm8625_pm_data)); BUG_ON(msm_pm_boot_init(&msm_pm_8625_boot_pdata)); msm8x25_spm_device_init(); msm_pm_register_cpr_ops(); }
static void __init msm_pm_init(void) { if (!cpu_is_msm8625()) { msm_pm_set_platform_data(msm7627a_pm_data, ARRAY_SIZE(msm7627a_pm_data)); BUG_ON(msm_pm_boot_init(&msm_pm_boot_pdata)); } else { msm_pm_set_platform_data(msm8625_pm_data, ARRAY_SIZE(msm8625_pm_data)); BUG_ON(msm_pm_boot_init(&msm_pm_8625_boot_pdata)); msm8x25_spm_device_init(); msm_pm_register_cpr_ops(); } }
static void __init msm7x27a_pm_init(void) { if (machine_is_msm8625_surf() || machine_is_msm8625_ffa()) { msm_pm_set_platform_data(msm8625_pm_data, ARRAY_SIZE(msm8625_pm_data)); BUG_ON(msm_pm_boot_init(&msm_pm_8625_boot_pdata)); msm8x25_spm_device_init(); msm_pm_register_cpr_ops(); } else { msm_pm_set_platform_data(msm7x27a_pm_data, ARRAY_SIZE(msm7x27a_pm_data)); BUG_ON(msm_pm_boot_init(&msm_pm_boot_pdata)); } msm_pm_register_irqs(); }
static void __init msm7x27a_pm_init(void) { #ifdef CONFIG_HUAWEI_KERNEL if (machine_is_msm8625_surf() || machine_is_msm8625_ffa() || cpu_is_msm8625()) #else if (machine_is_msm8625_surf() || machine_is_msm8625_ffa()) #endif { msm_pm_set_platform_data(msm8625_pm_data, ARRAY_SIZE(msm8625_pm_data)); BUG_ON(msm_pm_boot_init(&msm_pm_8625_boot_pdata)); msm8x25_spm_device_init(); msm_pm_register_cpr_ops(); } else { msm_pm_set_platform_data(msm7x27a_pm_data, ARRAY_SIZE(msm7x27a_pm_data)); BUG_ON(msm_pm_boot_init(&msm_pm_boot_pdata)); } msm_pm_register_irqs(); }