Currently SD Cards doesn't work with the at91_mci driver for AT91RM9200. These changes will make them work: - The 4-bit mode of the never worked. Disable it for now. - Return 'caps' ivar. Probably the 4-bit mode works for other AT91 controllers. Therefore it's necessary to find a better solution.
Responsible Changed From-To: freebsd-arm->stas I'll take it.
Author: mav Date: Tue Jan 20 17:36:58 2009 New Revision: 187476 URL: http://svn.freebsd.org/changeset/base/187476 Log: Implement MMCBR_IVAR_CAPS. It should better be implemented, or results can be unpredictable. PR: arm/128987 Modified: head/sys/arm/at91/at91_mci.c Modified: head/sys/arm/at91/at91_mci.c ============================================================================== --- head/sys/arm/at91/at91_mci.c Tue Jan 20 17:15:12 2009 (r187475) +++ head/sys/arm/at91/at91_mci.c Tue Jan 20 17:36:58 2009 (r187476) @@ -643,6 +643,9 @@ at91_mci_read_ivar(device_t bus, device_ case MMCBR_IVAR_VDD: *(int *)result = sc->host.ios.vdd; break; + case MMCBR_IVAR_CAPS: + *(int *)result = sc->host.caps; + break; case MMCBR_IVAR_MAX_DATA: *(int *)result = 1; break; @@ -683,6 +686,7 @@ at91_mci_write_ivar(device_t bus, device sc->host.ios.vdd = value; break; /* These are read-only */ + case MMCBR_IVAR_CAPS: case MMCBR_IVAR_HOST_OCR: case MMCBR_IVAR_F_MIN: case MMCBR_IVAR_F_MAX: _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
State Changed From-To: open->patched Tentatively mark as patched, this appears to have been fixed (or at least worked around) in HEAD.
State Changed From-To: patched->closed Fixed in r187476