summaryrefslogtreecommitdiff
path: root/arch/arm/mach-imx
diff options
context:
space:
mode:
authorBai Ping <ping.bai@nxp.com>2017-02-08 17:22:58 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:25:47 +0800
commit90347cd089d50e6f9a0cdc3e83617b3d170dfe50 (patch)
treeaeff18c1c9ba29b54c6822860ce6cfa595b38f7b /arch/arm/mach-imx
parent2404d80c4356a5bf7d379d5fbb22aae2e70eaf69 (diff)
MLK-13894 ARM: imx: Add low power run voltage change support on i.mx6ull
Drop the VDD_SOC and VDD_ARM voltage to 0.9V when system runs at low power run mode. Signed-off-by: Bai Ping <ping.bai@nxp.com>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r--arch/arm/mach-imx/busfreq-imx.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/mach-imx/busfreq-imx.c b/arch/arm/mach-imx/busfreq-imx.c
index 909a70dadf94..1bbee6762853 100644
--- a/arch/arm/mach-imx/busfreq-imx.c
+++ b/arch/arm/mach-imx/busfreq-imx.c
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2011-2016 Freescale Semiconductor, Inc. All Rights Reserved.
+ * 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 as published by
@@ -172,10 +173,8 @@ static void imx6ull_lower_cpu_rate(bool enter)
if (enter) {
org_arm_rate = clk_get_rate(arm_clk);
- if (cpu_is_imx6sll()) {
- origin_arm_volt = regulator_get_voltage(arm_reg);
- origin_soc_volt = regulator_get_voltage(soc_reg);
- }
+ origin_arm_volt = regulator_get_voltage(arm_reg);
+ origin_soc_volt = regulator_get_voltage(soc_reg);
}
clk_set_parent(pll1_bypass_clk, pll1_bypass_src_clk);
@@ -195,7 +194,7 @@ static void imx6ull_lower_cpu_rate(bool enter)
pr_err("set soc reg voltage failed\n");
}
} else {
- if (cpu_is_imx6sll() && uart_from_osc) {
+ if (uart_from_osc) {
ret = regulator_set_voltage_tol(soc_reg, origin_soc_volt, 0);
if (ret)
pr_err("set soc reg voltage failed\n");