x86: Move timer_init() call a bit earlier
authorBin Meng <bmeng.cn@gmail.com>
Fri, 23 Oct 2015 02:13:33 +0000 (19:13 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 13 Nov 2015 14:46:20 +0000 (06:46 -0800)
commit643b0f75e71098f6deddddc9a17c4cbc1dc96957
tree3a26a8a081971a7b8327c2e658f5bb9997fb0fc3
parente5ffa4bb62b4532079ea552a804178f3955775f9
x86: Move timer_init() call a bit earlier

Currently timer_init() is called in board_r.c which is quite late.
Some vgabios execution requires we set up the i8254 timer correctly,
but video initialization comes before timer_init(). Move the call
to board_f.c.

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