arm: timer: get frequency for arch timer armv7 in cp15 cntfrq
authorPatrick Delaunay <patrick.delaunay@st.com>
Tue, 20 Mar 2018 10:41:23 +0000 (11:41 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 7 Apr 2018 00:45:28 +0000 (20:45 -0400)
commit46fc679ede5f692a6848f7f4d36f6404c3855971
treeb9b382f36853836c3b89e8f44e5df85f1b530f21
parentf3d8f7dd73ac5dde258eb786d4a01869395b56d7
arm: timer: get frequency for arch timer armv7 in cp15 cntfrq

Manage dynamic value for armv7 arch clock timer,
when CONFIG_SYS_HZ_CLOCK is not defined.
Get frequency from CP15 cntfrq information, initialized for example
by first boot stage, clock driver or by BootRom.

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