MLK-10103-2 cpufreq: imx6: increase SOC/PU voltage for vpu 352M
authorAnson Huang <b20788@freescale.com>
Fri, 16 Jan 2015 10:47:42 +0000 (18:47 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:25 +0000 (14:48 -0500)
When VPU is running at 352MHz, SOC/PU voltage need to be
at 1.25V for 396/792MHz setpoint, as 396M setpoint is
removed, so only increase 792M setpoint's voltage.

Signed-off-by: Anson Huang <b20788@freescale.com>
drivers/cpufreq/imx6q-cpufreq.c

index 6338f50..1a09355 100644 (file)
@@ -292,6 +292,12 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev)
                        unsigned long volt = be32_to_cpup(val++);
                        if (freq_table[j].frequency == freq) {
                                imx6_soc_volt[soc_opp_count++] = volt;
+#ifdef CONFIG_MX6_VPU_352M
+                               if (freq == 792000) {
+                                       pr_info("increase SOC/PU voltage for VPU352MHz\n");
+                                       imx6_soc_volt[soc_opp_count - 1] = 1250000;
+                               }
+#endif
                                break;
                        }
                }