示例#1
0
int __init msm7x2x_misc_init(void)
{
	if (machine_is_msm8625_rumi3()) {
		msm_clock_init(&msm8625_dummy_clock_init_data);
		msm_cpr_init();
		return 0;
	}

	msm_clock_init(&msm7x27a_clock_init_data);
	if (cpu_is_msm7x27aa() || cpu_is_msm7x25ab())
		platform_device_register(&msm7x27aa_device_acpuclk);
	else if (cpu_is_msm8625()) {
		if (msm8625_cpu_id() == MSM8625)
			platform_device_register(&msm7x27aa_device_acpuclk);
		else if (msm8625_cpu_id() == MSM8625A)
			platform_device_register(&msm8625_device_acpuclk);
		else if (msm8625_cpu_id() == MSM8625AB)
			platform_device_register(&msm8625ab_device_acpuclk);
	} else {
		platform_device_register(&msm7x27a_device_acpuclk);
	}

	if (cpu_is_msm8625() &&
			(SOCINFO_VERSION_MAJOR(socinfo_get_version()) >= 2))
		msm_cpr_init();

	return 0;
}
void __init msm7x25a_kgsl_3d0_init(void)
{
	if (cpu_is_msm7x25a() || cpu_is_msm7x25aa() || cpu_is_msm7x25ab()) {
		kgsl_3d0_pdata.pwr_data.pwrlevel[0].gpu_freq = 133330000;
		kgsl_3d0_pdata.pwr_data.pwrlevel[0].bus_freq = 160000000;
		kgsl_3d0_pdata.pwr_data.pwrlevel[1].gpu_freq = 96000000;
		kgsl_3d0_pdata.pwr_data.pwrlevel[1].bus_freq = 0;
	}
}
示例#3
0
int __init msm7x2x_misc_init(void)
{
	msm_clock_init(&msm7x27a_clock_init_data);
	if (cpu_is_msm7x27aa() || cpu_is_msm7x25ab())
		acpuclk_init(&acpuclk_7x27aa_soc_data);
	else
		acpuclk_init(&acpuclk_7x27a_soc_data);


	return 0;
}
int __init msm7x2x_misc_init(void)
{
	if (socinfo_init() < 0)
		pr_err("%s: socinfo_init() failed!\n", __func__);

	if (cpu_is_msm7x27aa() || cpu_is_msm7x25ab())
		msm7x2x_clock_data.max_speed_delta_khz = 504000;

	msm_clock_init(msm_clocks_7x27a, msm_num_clocks_7x27a);
	msm_acpu_clock_init(&msm7x2x_clock_data);

	return 0;
}
示例#5
0
/*
 * Configure hardware registers in preparation for SWFI.
 */
static void msm_pm_config_hw_before_swfi(void)
{
	if (cpu_is_qsd8x50()) {
		__raw_writel(0x1f, APPS_CLK_SLEEP_EN);
		mb();
	} else if (cpu_is_msm7x27()) {
		__raw_writel(0x0f, APPS_CLK_SLEEP_EN);
		mb();
	} else if (cpu_is_msm7x27a() || cpu_is_msm7x27aa() ||
		   cpu_is_msm7x25a() || cpu_is_msm7x25aa() ||
		   cpu_is_msm7x25ab()) {
		__raw_writel(0x7, APPS_CLK_SLEEP_EN);
		mb();
	}
}
int __init msm7x2x_misc_init(void)
{
    if (!kernel_uart_flag)
        msm_clock_init(&msm7x27a_uart_clock_init_data);
    else
        msm_clock_init(&msm7x27a_clock_init_data);

    if (cpu_is_msm7x27aa() || cpu_is_msm7x25ab())
        acpuclk_init(&acpuclk_7x27aa_soc_data);
    else
        acpuclk_init(&acpuclk_7x27a_soc_data);




    return 0;
}
示例#7
0
/*
 * Configure hardware registers in preparation for Apps power down.
 */
static void msm_pm_config_hw_before_power_down(void)
{
	if (cpu_is_msm7x30() || cpu_is_msm8x55()) {
		__raw_writel(4, APPS_SECOP);
	} else if (cpu_is_msm7x27()) {
		__raw_writel(0x1f, APPS_CLK_SLEEP_EN);
	} else if (cpu_is_msm7x27a() || cpu_is_msm7x27aa() ||
		   cpu_is_msm7x25a() || cpu_is_msm7x25aa() ||
		   cpu_is_msm7x25ab()) {
		__raw_writel(0x7, APPS_CLK_SLEEP_EN);
	} else if (cpu_is_qsd8x50()) {
		__raw_writel(0x1f, APPS_CLK_SLEEP_EN);
		mb();
		__raw_writel(0, APPS_STANDBY_CTL);
	}
	mb();
	__raw_writel(1, APPS_PWRDOWN);
	mb();
}
int __init msm7x2x_misc_init(void)
{
	if (machine_is_msm8625_rumi3()) {
		msm_clock_init(&msm8625_dummy_clock_init_data);
		return 0;
	}

	msm_clock_init(&msm7x27a_clock_init_data);
	if (cpu_is_msm7x27aa() || cpu_is_msm7x25ab())
		platform_device_register(&msm7x27aa_device_acpuclk);
	else if (cpu_is_msm8625()) {
		if (msm8625_cpu_id() == MSM8625)
			platform_device_register(&msm7x27aa_device_acpuclk);
		else if (msm8625_cpu_id() == MSM8625A)
			platform_device_register(&msm8625_device_acpuclk);
	} else {
		platform_device_register(&msm7x27a_device_acpuclk);
	}

	return 0;
}
int __init msm7x2x_misc_init(void)
{
	if (machine_is_msm8625_rumi3()) {
		msm_clock_init(&msm8625_dummy_clock_init_data);
		return 0;
	}

	msm_clock_init(&msm7x27a_clock_init_data);
	if (cpu_is_msm7x27aa() || cpu_is_msm7x25ab())
		acpuclk_init(&acpuclk_7x27aa_soc_data);
	else if (cpu_is_msm8625()) {
		if (msm8625_cpu_id() == MSM8625)
			acpuclk_init(&acpuclk_7x27aa_soc_data);
		else if (msm8625_cpu_id() == MSM8625A)
			acpuclk_init(&acpuclk_8625_soc_data);
		else if (msm8625_cpu_id() == MSM8625AB)
			acpuclk_init(&acpuclk_8625ab_soc_data);

	 } else {
		acpuclk_init(&acpuclk_7x27a_soc_data);
	 }

	return 0;
}