Page MenuHomeFreeBSD

Allwinner MMC cleanup
ClosedPublic

Authored by manu on Jun 16 2016, 4:36 PM.
Tags
Referenced Files
F103552899: D6868.id18666.diff
Tue, Nov 26, 10:58 AM
Unknown Object (File)
Wed, Nov 13, 4:32 PM
Unknown Object (File)
Oct 21 2024, 8:06 AM
Unknown Object (File)
Oct 16 2024, 7:49 PM
Unknown Object (File)
Oct 7 2024, 11:24 AM
Unknown Object (File)
Oct 4 2024, 4:30 AM
Unknown Object (File)
Oct 1 2024, 10:26 AM
Unknown Object (File)
Oct 1 2024, 5:39 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.