]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib_ppc/time.c
* Patch by Martin Winistoerfer, 23 Mar 2003
[karo-tx-uboot.git] / lib_ppc / time.c
index 5165abbe35ed2b401fa6f9f516e52b3651bb16b4..3b3c50e4527ef7409614616f406e55be7456f58e 100644 (file)
@@ -80,7 +80,7 @@ unsigned long ticks2usec(unsigned long ticks)
 
 int init_timebase (void)
 {
-#ifdef CONFIG_8xx
+#if defined(CONFIG_5xx) || defined(CONFIG_8xx)
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
 
        /* unlock */
@@ -90,7 +90,7 @@ int init_timebase (void)
        /* reset */
        asm ("li 3,0 ; mttbu 3 ; mttbl 3 ;");
 
-#ifdef CONFIG_8xx
+#if defined(CONFIG_5xx) || defined(CONFIG_8xx)
        /* enable */
        immap->im_sit.sit_tbscr |= TBSCR_TBE;
 #endif