Page MenuHomeFreeBSD

Allwinner MMC cleanup
ClosedPublic

Authored by manu on Jun 16 2016, 4:36 PM.
Tags
Referenced Files
Unknown Object (File)
Sun, Jun 23, 10:07 PM
Unknown Object (File)
Fri, May 31, 9:47 PM
Unknown Object (File)
Jan 21 2024, 3:51 AM
Unknown Object (File)
Dec 28 2023, 1:22 AM
Unknown Object (File)
Dec 20 2023, 12:10 AM
Unknown Object (File)
Dec 16 2023, 1:10 PM
Unknown Object (File)
Dec 16 2023, 1:10 PM
Unknown Object (File)
Dec 11 2023, 12:24 AM

Details

Summary

Rename a10_mmc to aw_mmc to avoid confusion.
Remove pio code.
Remove check on id.

Test Plan

Tested on olimex-a20-som-evb

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

manu retitled this revision from to Allwinner MMC cleanup.
manu updated this object.
manu edited the test plan for this revision. (Show Details)
manu added a reviewer: ARM.
manu set the repository for this revision to rS FreeBSD src repository - subversion.
manu added a project: ARM.

My board died after a few minutes, so it need more work.

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.

Do not rename a10_mmc for now as it's easier to see changes.

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.

Rename variable from clkcr to ckcr to reflect register name.

This revision is now accepted and ready to land.Aug 27 2016, 10:57 AM
This revision was automatically updated to reflect the committed changes.