Date: Wed, 16 Sep 2009 20:43:40 GMT From: Ulf Lilleengen <lulf@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 168596 for review Message-ID: <200909162043.n8GKhejX048257@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=168596 Change 168596 by lulf@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909162043.n8GKhejX048257>