board_f: powerpc: Use timer_init() instead of init_timebase()
authorSimon Glass <sjg@chromium.org>
Tue, 28 Mar 2017 16:27:24 +0000 (10:27 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 5 Apr 2017 17:54:29 +0000 (13:54 -0400)
There is no good reason to use a different name on PowerPC. Change it to
timer_init() like the others.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: York Sun <york.sun@nxp.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/powerpc/cpu/mpc5xx/cpu_init.c
arch/powerpc/lib/time.c
board/freescale/mpc8313erdb/mpc8313erdb.c
board/freescale/mpc8315erdb/mpc8315erdb.c
common/board_f.c
include/common.h

index 0f62c13f862c33895f798a2c8e3cd6c5a136b56b..5bae39f8c0cbea50f8bdf8e52490cf7718cc3d8a 100644 (file)
@@ -43,7 +43,7 @@ void cpu_init_f (volatile immap_t * immr)
        immr->im_uimb.uimb_umcr = CONFIG_SYS_UMCR;
 
        /* Time base and decrementer will be enables (TBE) */
-       /* in init_timebase() in time.c called from board_init_f(). */
+       /* in timer_init() in time.c called from board_init_f(). */
 
        /* Initialize the PIT. Unlock PISCRK */
        immr->im_sitk.sitk_piscrk = KAPWR_KEY;
index 62b6c72f4e1d22e7ecc2b3c4df1b3be33f1bdd5a..de5f0be66dce29803e930854423e2634c3fcd1d4 100644 (file)
@@ -60,7 +60,7 @@ unsigned long ticks2usec(unsigned long ticks)
 #endif
 /* ------------------------------------------------------------------------- */
 
-int init_timebase (void)
+int timer_init(void)
 {
        unsigned long temp;
 
index eac193e8177620aa57efe29c249dfb1f921a2410..693dff651a554cd2b0829dec7cadce471939e9bc 100644 (file)
@@ -133,7 +133,7 @@ void board_init_f(ulong bootflag)
        NS16550_init((NS16550_t)(CONFIG_SYS_IMMR + 0x4500),
                     CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE);
        puts("NAND boot... ");
-       init_timebase();
+       timer_init();
        initdram(0);
        relocate_code(CONFIG_SYS_NAND_U_BOOT_RELOC_SP, (gd_t *)gd,
                      CONFIG_SYS_NAND_U_BOOT_RELOC);
index 3cec09b586861bda87babde3a2905a348232129f..1da6e2166d230f37e449e02ba2ce2749a1aff186 100644 (file)
@@ -221,7 +221,7 @@ void board_init_f(ulong bootflag)
        NS16550_init((NS16550_t)(CONFIG_SYS_IMMR + 0x4500),
                     CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE);
        puts("NAND boot... ");
-       init_timebase();
+       timer_init();
        initdram(0);
        relocate_code(CONFIG_SYS_NAND_U_BOOT_RELOC + 0x10000, (gd_t *)gd,
                      CONFIG_SYS_NAND_U_BOOT_RELOC);
index a4b5df7835cf75f2f95a84ccc0a99722ed38bfb5..eb32fca6b4b61af2b65e61f3e32521f9ea72a2e4 100644 (file)
@@ -831,10 +831,8 @@ static const init_fnc_t init_sequence_f[] = {
 #ifdef CONFIG_PPC
        /* get CPU and bus clocks according to the environment variable */
        get_clocks,             /* get CPU and bus clocks (etc.) */
-       /* TODO: can we rename this to timer_init()? */
-       init_timebase,
 #endif
-#if defined(CONFIG_ARM) || defined(CONFIG_MIPS) || \
+#if defined(CONFIG_ARM) || defined(CONFIG_MIPS) || defined(CONFIG_PPC) || \
                defined(CONFIG_NDS32) || defined(CONFIG_SH)
        timer_init,             /* initialize timer */
 #endif
index 72f144d549c729892bad9e6de05a432f353d86cb..75e70ae8ea80b5dbd3d5cb1c65e28693184cce6c 100644 (file)
@@ -780,7 +780,6 @@ void        wait_ticks    (unsigned long);
 /* arch/$(ARCH)/lib/time.c */
 ulong  usec2ticks    (unsigned long usec);
 ulong  ticks2usec    (unsigned long ticks);
-int    init_timebase (void);
 
 /* lib/gunzip.c */
 int gunzip(void *, int, unsigned char *, unsigned long *);