Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Apr 2006 16:06:25 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 94990 for review
Message-ID:  <200604111606.k3BG6Pnu080575@repoman.freebsd.org>

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

Change 94990 by imp@imp_hammer on 2006/04/11 16:05:44

	Tweak for KB920x board.

Affected files ...

.. //depot/projects/arm/src/sys/boot/arm/kb920x/boot0/at91rm9200_lowlevel.c#8 edit

Differences ...

==== //depot/projects/arm/src/sys/boot/arm/kb920x/boot0/at91rm9200_lowlevel.c#8 (text+ko) ====

@@ -63,10 +63,10 @@
 	//    CSS = PLLB
 	
 	// Crude selection between 16MHz clock and 10MHz clock.
-	if (AT91C_BASE_CKGR->CKGR_MCFR & AT91C_CKGR_MAINF < 6000)
+//	if (AT91C_BASE_CKGR->CKGR_MCFR & AT91C_CKGR_MAINF < 6000)
 		div = OSC_MAIN_FREQ_DIV_10;
-	else
-		div = OSC_MAIN_FREQ_DIV_16;
+//	else
+//		div = OSC_MAIN_FREQ_DIV_16;
 	
 	// set PLLA = 180MHz
 	// assume main osc = 10Mhz
@@ -80,7 +80,7 @@
 	// mul = 90
 	value = AT91C_BASE_CKGR->CKGR_PLLAR;
 	value &= ~AT91C_CKGR_MULA;
-	value |= (OSC_MAIN_MULT -1) << 16;
+	value |= (OSC_MAIN_MULT - 1) << 16;
 	AT91C_BASE_CKGR->CKGR_PLLAR = value;
 
 	// wait for lock



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