From 7cae872ea9776770043f8c34908e16b27f96cccf Mon Sep 17 00:00:00 2001 From: Anson Huang Date: Mon, 30 Jun 2014 11:25:50 +0800 Subject: ENGR00320349 cpufreq: imx6: increase SOC/PU voltage for VPU352MHz For VPU352MHz enabled, SOC/PU voltage can NOT be lower than 1250mV, as only 396M and 792M setpoint's SOC/PU voltage is lower than 1250mV and we already disable 396M setpoint, so here we just increase SOC/PU voltage for 792M setpoint when VPU352M is enabled. Signed-off-by: Anson Huang --- drivers/cpufreq/cpufreq-imx6.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/cpufreq/cpufreq-imx6.c b/drivers/cpufreq/cpufreq-imx6.c index c49c8eff8e79..2e457e0c1215 100644 --- a/drivers/cpufreq/cpufreq-imx6.c +++ b/drivers/cpufreq/cpufreq-imx6.c @@ -405,6 +405,12 @@ static int imx6_cpufreq_probe(struct platform_device *pdev) } imx6_soc_opp[i].arm_freq = freq; imx6_soc_opp[i].soc_volt = volt; +#ifdef CONFIG_MX6_VPU_352M + if (imx6_soc_opp[i].arm_freq == 792000) { + pr_info("increase SOC/PU voltage for VPU352MHz\n"); + imx6_soc_opp[i].soc_volt = 1250000; + } +#endif soc_opp_count++; } rcu_read_unlock(); -- cgit v1.2.2