Browse Source

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 d03cc466a5)
imx_v2016.03_4.1.15_2.0.0_ga
Peng Fan 4 years ago
committed by Robby Cai
parent
commit
a7ffa3f255
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      arch/arm/imx-common/timer.c

+ 4
- 2
arch/arm/imx-common/timer.c View File

@ -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 */


Loading…
Cancel
Save