MLK-14747 driver: cpufreq: Correct dc regulator voltage on imx6ull
authorBai Ping <ping.bai@nxp.com>
Mon, 24 Apr 2017 10:45:17 +0000 (18:45 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:33 +0000 (15:38 -0500)
On i.MX6ULL EVK board, when the overdrive mode(900MHz/800MHz) is
enable, the DC regulator voltage should not be changed. Keep the
DC regulator to default 1.4V.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit e4b51b651ae95226c0ae0447673c64b23b079ee6)

Conflicts:
drivers/cpufreq/imx6q-cpufreq.c

drivers/cpufreq/imx6q-cpufreq.c

index 6d4a7bb..dbcf35b 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Copyright (C) 2013-2015 Freescale Semiconductor, Inc.
- * Copyright (C) 2017 NXP
+ * Copyright (C) 2013-2016 Freescale Semiconductor, Inc.
+ * Copyright 2017 NXP.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
@@ -26,7 +26,7 @@
 #define DC_VOLTAGE_MAX         1400000
 #define FREQ_1P2_GHZ           1200000000
 #define FREQ_396_MHZ           396000
-#define FREQ_696_MHZ           696000
+#define FREQ_528_MHZ           528000
 #define FREQ_198_MHZ           198000
 #define FREQ_24_MHZ            24000
 
@@ -423,10 +423,10 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev)
        }
 
        /*
-        * On i.MX6UL EVK board, if the SOC is run in overide frequency,
+        * On i.MX6UL/ULL EVK board, if the SOC is run in overide frequency,
         * the dc_regulator voltage should not be touched.
         */
-       if (freq_table[num - 1].frequency == FREQ_696_MHZ)
+       if (freq_table[num - 1].frequency > FREQ_528_MHZ)
                ignore_dc_reg = true;
        if (!IS_ERR(dc_reg) && !ignore_dc_reg)
                regulator_set_voltage_tol(dc_reg, DC_VOLTAGE_MIN, 0);