board_r: Move early-timer init later
authorSimon Glass <sjg@chromium.org>
Sat, 7 Dec 2019 04:41:46 +0000 (21:41 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 15 Dec 2019 03:44:09 +0000 (11:44 +0800)
commitdd0edcb2508b9abcf828baede32e6b3da5fc0c8a
tree4cec18f6ff280b3066990c217d6de89827b3d97c
parent8aeafb545427b7e0aaecb2bf7bb98eb45eb56658
board_r: Move early-timer init later

At present the early timer init happens as soon as driver model is set up.
This makes it impossible to do anything that needs driver model but must
run before devices are probed (as needed with Intel's FSP-S, for example).

In any case it is not a good idea to tie probing of particular drivers too
closely to the DM init.

Create a new function to init the timer and put it a bit later in the
sequence.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
common/board_r.c