PERFORCE change 152188 for review
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Thu Oct 30 04:48:06 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=152188
Change 152188 by gonzo at gonzo_jeeves on 2008/10/30 04:47:07
Remove Sentry5 pieces
Affected files ...
.. //depot/projects/mips2/src/sys/mips/bcm47xx/bcm47xx_machdep.c#2 edit
Differences ...
==== //depot/projects/mips2/src/sys/mips/bcm47xx/bcm47xx_machdep.c#2 (text+ko) ====
@@ -159,8 +159,6 @@
#if defined(CFE)
cfe_exit(0, 0);
-#else
- *((volatile uint8_t *)MIPS_PHYS_TO_KSEG1(SENTRY5_EXTIFADR)) = 0x80;
#endif
}
@@ -203,38 +201,6 @@
#endif
mips_init();
-# if 0
- /*
- * Probe the Broadcom Sentry5's on-chip PLL clock registers
- * and discover the CPU pipeline clock and bus clock
- * multipliers from this.
- * XXX: Wrong place. You have to ask the ChipCommon
- * or External Interface cores on the SiBa.
- */
- uint32_t busmult, cpumult, refclock, clkcfg1;
-#define S5_CLKCFG1_REFCLOCK_MASK 0x0000001F
-#define S5_CLKCFG1_BUSMULT_MASK 0x000003E0
-#define S5_CLKCFG1_BUSMULT_SHIFT 5
-#define S5_CLKCFG1_CPUMULT_MASK 0xFFFFFC00
-#define S5_CLKCFG1_CPUMULT_SHIFT 10
-
- counter_freq = 100000000; /* XXX */
-
- clkcfg1 = s5_rd_clkcfg1();
- printf("clkcfg1 = 0x%08x\n", clkcfg1);
-
- refclock = clkcfg1 & 0x1F;
- busmult = ((clkcfg1 & 0x000003E0) >> 5) + 1;
- cpumult = ((clkcfg1 & 0xFFFFFC00) >> 10) + 1;
-
- printf("refclock = %u\n", refclock);
- printf("busmult = %u\n", busmult);
- printf("cpumult = %u\n", cpumult);
-
- counter_freq = cpumult * refclock;
-# else
platform_counter_freq = 200 * 1000 * 1000; /* Sentry5 is 200MHz */
-# endif
-
mips_timer_init_params(platform_counter_freq, 0);
}
More information about the p4-projects
mailing list