From 643b0f75e71098f6deddddc9a17c4cbc1dc96957 Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Thu, 22 Oct 2015 19:13:33 -0700 Subject: 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 Acked-by: Simon Glass --- common/board_r.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'common/board_r.c') diff --git a/common/board_r.c b/common/board_r.c index c4fd3eaf8cc..2270e2ed0f2 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -837,8 +837,7 @@ init_fnc_t init_sequence_r[] = { #if defined(CONFIG_ARM) || defined(CONFIG_AVR32) initr_enable_interrupts, #endif -#if defined(CONFIG_X86) || defined(CONFIG_MICROBLAZE) || defined(CONFIG_AVR32) \ - || defined(CONFIG_M68K) +#if defined(CONFIG_MICROBLAZE) || defined(CONFIG_AVR32) || defined(CONFIG_M68K) timer_init, /* initialize timer */ #endif #if defined(CONFIG_STATUS_LED) -- cgit v1.2.3