PERFORCE change 168596 for review

Ulf Lilleengen lulf at FreeBSD.org
Wed Sep 16 20:43:41 UTC 2009


http://perforce.freebsd.org/chv.cgi?CH=168596

Change 168596 by lulf at lulf_nobby on 2009/09/16 20:42:52

	- Return correct clock frequency for MCI. The device itself seems to
	  work now, but other problems not directly to mmc (it seems) blocks
	  operation. The clock rate handling should be fixed once I get the
	  device to work.

Affected files ...

.. //depot/projects/avr32/src/sys/avr32/avr32/at32_pm.c#8 edit

Differences ...

==== //depot/projects/avr32/src/sys/avr32/avr32/at32_pm.c#8 (text+ko) ====

@@ -251,7 +251,14 @@
 static uint64_t
 at32_mci_get_rate(devclk_t clk)
 {
-	return (0);
+/*	unsigned long cksel, shift = 0;
+	clksel = RD4(AT32_PM_CKSEL);
+
+	if (clksel & (1 << AT32_PM_CKSEL_PBBDIV)) {
+		shift = 0; // XXX: Need to take divider into account
+	}*/
+	// XXX: Assume OSC0 for now. Fix later.
+	return (20000000);
 } 
 
 static int


More information about the p4-projects mailing list