]> git.sur5r.net Git - u-boot/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)
commit77aace579a9a84c74e99d2e86ecc08b1d9ca402b
tree90aa603cd5c6be10bafa2837f39e45d18a459b37
parent0e373c0ade8c1d634af5178dcd1444871d3e1824
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