Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2008 04:48:05 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 152188 for review
Message-ID:  <200810300448.m9U4m5V0063938@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=152188

Change 152188 by gonzo@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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810300448.m9U4m5V0063938>