The r-ccu on the a83t differs from the others only by what it names the ar100 parents. Export the _CCU macros so ccu_sun8i_r can differentiate between a83t r-ccu and the others, add the compat string for the a83t r-ccu.
Details
- Reviewers
manu emaste - Commits
- rS326190: Add r-ccu support for the Allwinner a83t
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 12966
Event Timeline
Unconditionally define the *_CCU macros in aw_ccung.h; maintain array-based clock approach in ccu_sun8i_r
sys/arm/allwinner/clkng/aw_ccung.h | ||
---|---|---|
40 | We should do an enum instead if we always define them. |
sys/arm/allwinner/clkng/aw_ccung.h | ||
---|---|---|
40 | *nod* Do we have a preference on explicitly defining only the first item in the enum vs. explicitly defining all of them? |
sys/arm/allwinner/clkng/aw_ccung.h | ||
---|---|---|
40 | IIRC style(9) say that we only need to define the first. |
Convert to an enum; I ultimately couldn't find anything explicit or implicit in style(9) about it, but we do only define the first in other parts of arm/allwinner so it fits the area.
I was going to go a step further and convert sc->type, but quickly realized that would break down and force us to move all of the individual *_ccu inclusions up into global allwinner stuff or create an even nastier typedef mess in aw_ccung.c