summaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorRobin Gong <b38343@freescale.com>2015-01-04 16:56:11 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:20:42 +0300
commit725e3a8af006e94f05c59fe9ec95454076dc9914 (patch)
tree72a070e41c49ca3ffa90a25bf98002c19a161102 /drivers/cpufreq
parent85bc943a24e07d7c3b1c9592ec44ebbf3b9b71a6 (diff)
MLK-10073-3 cpufreq: imx6q-cpufreq: add arm-soc-shared property
Pfuze200 only provide one power supply for VDDARM_IN and VDDSOC_IN, for ldo-bypass mode, we have to pretend they are different regulators otherwise regulator famework will refuse update voltage. Signed-off-by: Robin Gong <b38343@freescale.com> (cherry picked from commit 1b41ab90288b2accd710f8852c11753007749e4a)
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/imx6q-cpufreq.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c
index 1a093554c4e6..8e6d245b38a3 100644
--- a/drivers/cpufreq/imx6q-cpufreq.c
+++ b/drivers/cpufreq/imx6q-cpufreq.c
@@ -237,6 +237,16 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev)
}
/*
+ * soc_reg sync with arm_reg if arm shares the same regulator
+ * with soc. Otherwise, regulator common framework will refuse to update
+ * this consumer's voltage right now while another consumer voltage
+ * still keep in old one. For example, imx6sx-sdb with pfuze200 in
+ * ldo-bypass mode.
+ */
+ of_property_read_u32(np, "fsl,arm-soc-shared", &i);
+ if (i == 1)
+ soc_reg = arm_reg;
+ /*
* We expect an OPP table supplied by platform.
* Just, incase the platform did not supply the OPP
* table, it will try to get it.