From 4932443d260d23c882e48eefcc66a83dfca7ee5a Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Tue, 8 Dec 2015 17:31:39 -0800 Subject: x86: Move i8254_init() to x86_cpu_init_f() Right now i8254_init() is called from timer_init() in the tsc timer driver. But actually i8254 and tsc are completely different things. Since tsc timer has been converted to driver model, we should find a new place that is appropriate for U-Boot to call i8254_init(), which is now x86_cpu_init_f(). Signed-off-by: Bin Meng Acked-by: Simon Glass --- drivers/timer/tsc_timer.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'drivers/timer') diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c index 6aa243723b..5c4ec0018f 100644 --- a/drivers/timer/tsc_timer.c +++ b/drivers/timer/tsc_timer.c @@ -325,16 +325,6 @@ void __udelay(unsigned long usec) #endif } -int timer_init(void) -{ -#ifdef CONFIG_I8254_TIMER - /* Set up the i8254 timer if required */ - i8254_init(); -#endif - - return 0; -} - static int tsc_timer_get_count(struct udevice *dev, u64 *count) { u64 now_tick = rdtsc(); -- cgit v1.2.1