summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2018-06-03 10:33:46 +0800
committerShawn Guo <shawnguo@kernel.org>2018-06-19 09:07:34 +0800
commit83ef5da0527cfeb1bb77c25f67b7ce0e06a42579 (patch)
tree3062b6cbbd21f4a6034ae6a3a9ee45f75628e570
parente7fa1fb39b118cc8415a946fd2e6bc0f6b6c05c9 (diff)
downloadlinux-83ef5da0527cfeb1bb77c25f67b7ce0e06a42579.tar.gz
linux-83ef5da0527cfeb1bb77c25f67b7ce0e06a42579.tar.bz2
linux-83ef5da0527cfeb1bb77c25f67b7ce0e06a42579.zip
ARM: imx: remove i.MX6SLL support in i.MX6SL cpu idle driver
i.MX6SLL supports ARM power off in cpu idle, better to reuse i.MX6SX cpu idle driver instead of i.MX6SL which does NOT support ARM power off. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
-rw-r--r--arch/arm/mach-imx/cpuidle-imx6sl.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/mach-imx/cpuidle-imx6sl.c b/arch/arm/mach-imx/cpuidle-imx6sl.c
index fa8ead145d17..8d866fb674a8 100644
--- a/arch/arm/mach-imx/cpuidle-imx6sl.c
+++ b/arch/arm/mach-imx/cpuidle-imx6sl.c
@@ -12,7 +12,6 @@
#include "common.h"
#include "cpuidle.h"
-#include "hardware.h"
static int imx6sl_enter_wait(struct cpuidle_device *dev,
struct cpuidle_driver *drv, int index)
@@ -22,11 +21,9 @@ static int imx6sl_enter_wait(struct cpuidle_device *dev,
* Software workaround for ERR005311, see function
* description for details.
*/
- if (cpu_is_imx6sl())
- imx6sl_set_wait_clk(true);
+ imx6sl_set_wait_clk(true);
cpu_do_idle();
- if (cpu_is_imx6sl())
- imx6sl_set_wait_clk(false);
+ imx6sl_set_wait_clk(false);
imx6_set_lpm(WAIT_CLOCKED);
return index;