]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit409dddb249b624150bd0984fe1d36194f27bd765
tree4cec18f6ff280b3066990c217d6de89827b3d97c
parent2a5ba83503735e49eba2e4c6bfb9fe7ddbb58ce3
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