]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spl: mx6: powerpc: Drop the condition on timer_init()
authorSimon Glass <sjg@chromium.org>
Tue, 26 Sep 2023 14:14:19 +0000 (08:14 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 6 Oct 2023 18:38:12 +0000 (14:38 -0400)
It doesn't make sense to have some boards do this differently. Drop the
condition in the hope that the maintainers can figure out any run-time
problems.

This has been tested on qemu-ppce500

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Christophe Leroy <christophe.leroy@csgroup.eu>
common/spl/spl.c

index a58b070d17e9b0d71dc3e82b60449b621cd08271..d930d2083de0cc3dbe9d734096acf689eadd2a94 100644 (file)
@@ -758,13 +758,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
                if (spl_init())
                        hang();
        }
-#if !defined(CONFIG_PPC) && !defined(CONFIG_ARCH_MX6)
-       /*
-        * timer_init() does not exist on PPC systems. The timer is initialized
-        * and enabled (decrementer) in interrupt_init() here.
-        */
        timer_init();
-#endif
        if (CONFIG_IS_ENABLED(BLOBLIST)) {
                ret = bloblist_init();
                if (ret) {