Page MenuHomeFreeBSD

aw_mmc: Reset controller and configure read fifo size
ClosedPublic

Authored by thj on Wed, Feb 4, 10:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Feb 25, 5:25 PM
Unknown Object (File)
Wed, Feb 25, 2:01 AM
Unknown Object (File)
Mon, Feb 23, 7:21 PM
Unknown Object (File)
Thu, Feb 19, 11:00 AM
Unknown Object (File)
Thu, Feb 19, 12:22 AM
Unknown Object (File)
Wed, Feb 18, 11:19 PM
Unknown Object (File)
Wed, Feb 18, 7:02 PM
Unknown Object (File)
Wed, Feb 18, 4:41 PM
Subscribers

Details

Summary

On h616 (and I think h6, but this isn't verified) we need to reset the
controller, configure read and write and set the read fifo size to get a
working sd card.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

thj requested review of this revision.Wed, Feb 4, 10:31 AM

This looks fine to me, nice catch!

This revision is now accepted and ready to land.Wed, Feb 4, 3:18 PM
manu requested changes to this revision.Wed, Feb 4, 3:58 PM
manu added inline comments.
sys/arm/allwinner/aw_mmc.c
746

How where those delay chosen and why it's only done where there is a fifo threashold ?

752

We disable the FIFO and never use it so are you sure that it's needed ?

This revision now requires changes to proceed.Wed, Feb 4, 3:58 PM

remove fifo configuration and delays

This revision is now accepted and ready to land.Mon, Feb 9, 3:18 PM
This revision was automatically updated to reflect the committed changes.