diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2018-01-02 15:49:36 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2018-03-21 09:41:10 +0100 |
commit | f05c11cd42b97c29fb17e08cd953410775ed780a (patch) | |
tree | fda8505a00202332501fee57c1083b2529753468 /include | |
parent | 88b1209ca920ee0b82f3dd18b69545e3c0dc9f90 (diff) |
imx: initialize and use generic timer on i.MX 6UL/ULL
The i.MX 6UL/ULL feature a Cortex-A7 CPU which suppor the ARM
generic timer. This change makes use of the ARM generic timer in
U-Boot.
This is crucial to make the ARM generic timers usable in Linux since
timer_init() initalizes the system counter module, which is necessary
to use the generic timers CP15 registers.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/mx6_common.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/configs/mx6_common.h b/include/configs/mx6_common.h index d28654b2ed2..f77c93f74a9 100644 --- a/include/configs/mx6_common.h +++ b/include/configs/mx6_common.h @@ -7,7 +7,10 @@ #ifndef __MX6_COMMON_H #define __MX6_COMMON_H -#ifndef CONFIG_MX6UL +#ifdef CONFIG_MX6UL +#define CONFIG_SC_TIMER_CLK 8000000 /* 8Mhz */ +#define COUNTER_FREQUENCY CONFIG_SC_TIMER_CLK +#else #define CONFIG_ARM_ERRATA_743622 #define CONFIG_ARM_ERRATA_751472 #define CONFIG_ARM_ERRATA_794072 |