]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/74xx_7xx/cpu.c
* Patch by Thomas Frieden, 13 Nov 2002:
[karo-tx-uboot.git] / cpu / 74xx_7xx / cpu.c
index 8a6915fca7bd8e5325114e62e609704f6d040305..c265ce265af72ae3e72d2a1d60e59c965fc2bcfd 100644 (file)
 #include <74xx_7xx.h>
 #include <asm/cache.h>
 
+#ifdef CONFIG_AMIGAONEG3SE
+#include "../board/MAI/AmigaOneG3SE/via686.h"
+#include "../board/MAI/AmigaOneG3SE/memio.h"
+#endif
+
 cpu_t
 get_cpu_type(void)
 {
@@ -218,12 +223,20 @@ do_reset (cmd_tbl_t *cmdtp, bd_t *bd, int flag, int argc, char *argv[])
 /*
  * For the 7400 the TB clock runs at 1/4 the cpu bus speed.
  */
-unsigned long
-get_tbclk (void)
+#ifdef CONFIG_AMIGAONEG3SE
+unsigned long get_tbclk(void)
 {
-       return CFG_BUS_HZ / 4;
+       DECLARE_GLOBAL_DATA_PTR;
+
+       return (gd->bus_clk / 4);
 }
+#else  /* ! CONFIG_AMIGAONEG3SE */
 
+unsigned long get_tbclk (void)
+{
+       return CFG_BUS_HZ / 4;
+}
+#endif /* CONFIG_AMIGAONEG3SE */
 /* ------------------------------------------------------------------------- */
 
 #if defined(CONFIG_WATCHDOG)