From a7ffa3f255e9844d30b63eb79986e0b4d8d60ce8 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Mon, 10 Oct 2016 09:46:28 +0800 Subject: MLK-13307-4 imx-common: timer: add i.MX6SLL support Add i.MX6 SLL GPT timer support. Signed-off-by: Peng Fan (cherry picked from commit d03cc466a5dbd94c1d9bcbdc574ad31512d8b24f) --- arch/arm/imx-common/timer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/imx-common/timer.c b/arch/arm/imx-common/timer.c index f52c6b5..cc151fd 100644 --- a/arch/arm/imx-common/timer.c +++ b/arch/arm/imx-common/timer.c @@ -47,7 +47,8 @@ static inline int gpt_has_clk_source_osc(void) ((is_cpu_type(MXC_CPU_MX6Q) || is_cpu_type(MXC_CPU_MX6D)) && (soc_rev() > CHIP_REV_1_0)) || is_cpu_type(MXC_CPU_MX6DL) || is_cpu_type(MXC_CPU_MX6SOLO) || is_cpu_type(MXC_CPU_MX6SX) || - is_cpu_type(MXC_CPU_MX6UL) || is_cpu_type(MXC_CPU_MX6ULL)) + is_cpu_type(MXC_CPU_MX6UL) || is_cpu_type(MXC_CPU_MX6ULL) || + is_cpu_type(MXC_CPU_MX6SLL)) return 1; return 0; @@ -98,7 +99,8 @@ int timer_init(void) is_cpu_type(MXC_CPU_MX6SX) || is_cpu_type(MXC_CPU_MX7D) || is_cpu_type(MXC_CPU_MX6UL) || - is_cpu_type(MXC_CPU_MX6ULL)) { + is_cpu_type(MXC_CPU_MX6ULL) || + is_cpu_type(MXC_CPU_MX6SLL)) { i |= GPTCR_24MEN; /* Produce 3Mhz clock */ -- cgit v1.1