summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2016-10-10 09:46:28 +0800
committerRobby Cai <robby.cai@nxp.com>2016-11-16 16:57:25 +0800
commita7ffa3f255e9844d30b63eb79986e0b4d8d60ce8 (patch)
treef2d0084b56b72b80c0c0b65160d1d42121970573
parente277d78b70723f2e439bdd14bb43455a14199545 (diff)
downloadu-boot-imx-a7ffa3f255e9844d30b63eb79986e0b4d8d60ce8.zip
u-boot-imx-a7ffa3f255e9844d30b63eb79986e0b4d8d60ce8.tar.gz
u-boot-imx-a7ffa3f255e9844d30b63eb79986e0b4d8d60ce8.tar.bz2
MLK-13307-4 imx-common: timer: add i.MX6SLL support
Add i.MX6 SLL GPT timer support. Signed-off-by: Peng Fan <peng.fan@nxp.com> (cherry picked from commit d03cc466a5dbd94c1d9bcbdc574ad31512d8b24f)
-rw-r--r--arch/arm/imx-common/timer.c6
1 files 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 */