Rename a10_mmc to aw_mmc to avoid confusion.
Remove pio code.
Remove check on id.
Details
Details
- Reviewers
jmcneill - Group Reviewers
ARM - Commits
- rS308280: MFC r305689:
rS305689: a10_mmc: Remove completly the PIO code now all access is done by DMA.
Tested on olimex-a20-som-evb
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Rename all register as in the datasheet.
Remove completely the PIO code.
Set number of dma segments to (MAXPHYS / PAGE_SIZE) + 1
File will be move to aw_mmc.{c,h} but here is easier to see the changes.
Comment Actions
Yes, I'm waiting on @jmcneill to see if he can reproduce https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207621 with this patch.
Comment Actions
Do an hardware reset a attach (undocumented register).
Only update clock if needed.
Always set bus width before updating clock.
Tested on A20 and H3
sys/arm/allwinner/a10_mmc.c | ||
---|---|---|
748 ↗ | (On Diff #19407) | should this be renamed to ckcr to match the new register name? |
sys/arm/allwinner/a10_mmc.c | ||
---|---|---|
748 ↗ | (On Diff #19407) | Totally, I'll do a re-read of the code to check if all the variable name are consistent with the registers ones. |