]> git.baikalelectronics.ru Git - uboot.git/commit
arm: armv7: solve issue for timer_rate_hz in arch timer
authorPatrick Delaunay <patrick.delaunay@st.com>
Mon, 12 Mar 2018 09:46:06 +0000 (10:46 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 19 Mar 2018 20:14:20 +0000 (16:14 -0400)
commit62d65cc8fcf76f89b313c1fa5b847d8c0b8d802a
tree90aa603cd5c6be10bafa2837f39e45d18a459b37
parent675c51e6f4c79c45afef837db48ab11d58fab7d0
arm: armv7: solve issue for timer_rate_hz in arch timer

The current value timer_rate_hz causes a problem with function
timer_get_us() from lib time and then an issue with
readx_poll_timeout() function.

With corrected value for tbclk() = timer_rate_hz = CONFIG_SYS_HZ_CLOCK
the weak functions in lib timer can be used:
- get_timer()
- __udelay()
So the specific function in this file are removed.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
arch/arm/cpu/armv7/arch_timer.c