diff options
author | Andre Przywara <andre.przywara@arm.com> | 2017-02-16 01:20:19 +0000 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2017-04-05 15:03:17 +0530 |
commit | e4916e850bfb3a148b4167974d59332b72d2d055 (patch) | |
tree | 69f1c348c25be94d7e6b11ebe1e62f01302b1184 /board/sunxi/board.c | |
parent | 1afd0f6f17db1625a50b69a1edc40f5163db7c31 (diff) | |
download | u-boot-e4916e850bfb3a148b4167974d59332b72d2d055.tar.gz u-boot-e4916e850bfb3a148b4167974d59332b72d2d055.tar.xz u-boot-e4916e850bfb3a148b4167974d59332b72d2d055.zip |
ARM: rename CONFIG_TIMER_CLK_FREQ to COUNTER_FREQUENCY
Many ARMv8 boards define a constant COUNTER_FREQUENCY to specify the
frequency of the ARM Generic Timer (aka. arch timer).
ARMv7 boards traditionally used CONFIG_TIMER_CLK_FREQ for the same
purpose. It seems useful to unify them.
Since there are less occurences of the latter version, lets convert all
users over to COUNTER_FREQUENCY.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'board/sunxi/board.c')
-rw-r--r-- | board/sunxi/board.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/sunxi/board.c b/board/sunxi/board.c index 53656383d5..b9660128e5 100644 --- a/board/sunxi/board.c +++ b/board/sunxi/board.c @@ -100,14 +100,14 @@ int board_init(void) * we avoid the risk of writing to it. */ asm volatile("mrc p15, 0, %0, c14, c0, 0" : "=r"(freq)); - if (freq != CONFIG_TIMER_CLK_FREQ) { + if (freq != COUNTER_FREQUENCY) { debug("arch timer frequency is %d Hz, should be %d, fixing ...\n", - freq, CONFIG_TIMER_CLK_FREQ); + freq, COUNTER_FREQUENCY); #ifdef CONFIG_NON_SECURE printf("arch timer frequency is wrong, but cannot adjust it\n"); #else asm volatile("mcr p15, 0, %0, c14, c0, 0" - : : "r"(CONFIG_TIMER_CLK_FREQ)); + : : "r"(COUNTER_FREQUENCY)); #endif } } |