]> git.baikalelectronics.ru Git - uboot.git/commit
armv7: timer: init timer with bootstage
authorPatrick Delaunay <patrick.delaunay@st.com>
Thu, 18 Apr 2019 15:32:46 +0000 (17:32 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Thu, 23 May 2019 09:36:47 +0000 (11:36 +0200)
commit5fc10181e50b7402756ce99bcb76fd586189be28
tree7d5ebb157acfe66052cc63ad39ae98bca1986f02
parent1dc226c3b0fa3f17da0d83236d58b9cbaaccbafd
armv7: timer: init timer with bootstage

In initf_bootstage() we call bootstage_mark_name() which ends up calling
timer_get_us() before timer_init(); that cause crash for stm32mp1.

This patch solve the issue without changing the initialization sequence.
See also commit fc999ac878a6 ("Enable CONFIG_TIMER_EARLY with bootstage")
for other solution when DM is activated for TIMER.

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