]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board_f: Use timer_init() on all archs
authorSimon Glass <sjg@chromium.org>
Tue, 28 Mar 2017 16:27:25 +0000 (10:27 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 5 Apr 2017 17:55:05 +0000 (13:55 -0400)
More than half of the architectures use this function so let's make them
all use it.

For those which don't actually define it, we can rely on the weak function
in lib/time.c

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: York Sun <york.sun@nxp.com>
Reviewed-by: Stefan Roese <sr@denx.de>
common/board_f.c

index eb32fca6b4b61af2b65e61f3e32521f9ea72a2e4..f64cfc41f8982779c2af338e4326a394193ef6e7 100644 (file)
@@ -832,10 +832,7 @@ static const init_fnc_t init_sequence_f[] = {
        /* get CPU and bus clocks according to the environment variable */
        get_clocks,             /* get CPU and bus clocks (etc.) */
 #endif
-#if defined(CONFIG_ARM) || defined(CONFIG_MIPS) || defined(CONFIG_PPC) || \
-               defined(CONFIG_NDS32) || defined(CONFIG_SH)
        timer_init,             /* initialize timer */
-#endif
 #if defined(CONFIG_BOARD_POSTCLK_INIT)
        board_postclk_init,
 #endif