]> git.sur5r.net Git - u-boot/commit
dm: timer: Avoid using timer before it is ready
authorSimon Glass <sjg@chromium.org>
Sun, 29 Nov 2015 05:16:35 +0000 (22:16 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 1 Dec 2015 13:26:12 +0000 (06:26 -0700)
commit881c124ab81fddc41e4ecc7409ad3bb5bcbcf5a6
tree50c09060b0b4b52db21f42cb03455a86000fd1f8
parent4e51fc2351abbb2ebe42fbedccfec3bba20b1c12
dm: timer: Avoid using timer before it is ready

At present bootstage will try to read the timer very early after relocation.
When driver model is used to provide the timer, we cannot read it until
driver model is ready. Correct this by adding a separate stage for the
post-relocation bootstage init.

This fixes booting on chromebook_link.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Thomas Chou <thomas@wytron.com.tw>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Mugunthan V N <mugunthanvnm@ti.com>
common/board_r.c