#endif
ulong get_bus_freq (ulong);
-void init_timebase (void);
#if defined(CONFIG_PPC405GP)
void get_sys_info (PPC405_SYS_INFO *);
void udelay (unsigned long);
ulong usec2ticks (unsigned long usec);
ulong ticks2usec (unsigned long ticks);
+void init_timebase (void);
/* ppc/vsprintf.c */
ulong simple_strtoul(const char *cp,char **endp,unsigned int base);
void
cpu_init_r (bd_t *bd)
{
+#if defined(CFG_RTCSC) || defined(CFG_RCCR) || defined(CFG_RMDS)
volatile immap_t *immr = (volatile immap_t *)(bd->bi_immr_base);
+#endif
#ifdef CFG_RTCSC
/* Unlock RTSC register */
}
/* ------------------------------------------------------------------------- */
-
-void init_timebase (void)
-{
-#ifdef CONFIG_8xx
- volatile immap_t *immap = (immap_t *)CFG_IMMR;
-
- /* unlock */
- immap->im_sitk.sitk_tbk = KAPWR_KEY;
-#endif
-
- /* reset */
- asm ("li 3,0 ; mttbu 3 ; mttbl 3 ;");
-
-#ifdef CONFIG_8xx
- /* enable */
- immap->im_sit.sit_tbscr |= TBSCR_TBE;
-#endif
-}
-
-/* ------------------------------------------------------------------------- */
return ((ulong)ticks);
}
+/* ------------------------------------------------------------------------- */
+
+void init_timebase (void)
+{
+#ifdef CONFIG_8xx
+ volatile immap_t *immap = (immap_t *)CFG_IMMR;
+
+ /* unlock */
+ immap->im_sitk.sitk_tbk = KAPWR_KEY;
+#endif
+
+ /* reset */
+ asm ("li 3,0 ; mttbu 3 ; mttbl 3 ;");
+
+#ifdef CONFIG_8xx
+ /* enable */
+ immap->im_sit.sit_tbscr |= TBSCR_TBE;
+#endif
+}
+
+/* ------------------------------------------------------------------------- */
+