diff options
author | York Sun <yorksun@freescale.com> | 2015-03-20 19:28:08 -0700 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-04-23 08:55:55 -0700 |
commit | 207774b213caa3c72ebd6c9f6d1e4a3a666938b7 (patch) | |
tree | b0249e1f667a1c607cc1409dfbe7db7fb9b62840 /include | |
parent | 19f9175027b14f11b5a30df17ce76fb6f64dc724 (diff) | |
download | u-boot-imx-207774b213caa3c72ebd6c9f6d1e4a3a666938b7.zip u-boot-imx-207774b213caa3c72ebd6c9f6d1e4a3a666938b7.tar.gz u-boot-imx-207774b213caa3c72ebd6c9f6d1e4a3a666938b7.tar.bz2 |
armv8/ls2085a: Fix generic timer clock source
The timer clock is system clock divided by 4, not fixed 12MHz.
This is common to the SoC, not board specific. Primary core is
fixed when u-boot still runs in board_f. Secondary cores are
fixed by reading a variable set by u-boot.
Signed-off-by: York Sun <yorksun@freescale.com>
CC: Mark Rutland <mark.rutland@arm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/ls2085a_common.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/configs/ls2085a_common.h b/include/configs/ls2085a_common.h index 5721b18..f6b3ed0 100644 --- a/include/configs/ls2085a_common.h +++ b/include/configs/ls2085a_common.h @@ -72,7 +72,11 @@ #define CONFIG_DP_DDR_NUM_CTRLS 1 /* Generic Timer Definitions */ -#define COUNTER_FREQUENCY 12000000 /* 12MHz */ +/* + * This is not an accurate number. It is used in start.S. The frequency + * will be udpated later when get_bus_freq(0) is available. + */ +#define COUNTER_FREQUENCY 25000000 /* 25MHz */ /* Size of malloc() pool */ #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 2048 * 1024) |