Page MenuHomeFreeBSD

Use SoC ID - based detection in CESA
ClosedPublic

Authored by mw_semihalf.com on Jan 19 2017, 5:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 19, 6:21 PM
Unknown Object (File)
Sun, Jan 12, 8:22 AM
Unknown Object (File)
Dec 14 2024, 3:24 PM
Unknown Object (File)
Dec 4 2024, 1:05 PM
Unknown Object (File)
Dec 4 2024, 11:36 AM
Unknown Object (File)
Dec 4 2024, 11:22 AM
Unknown Object (File)
Dec 3 2024, 10:54 PM
Unknown Object (File)
Nov 10 2024, 4:37 PM
Subscribers

Details

Summary

This commit introduces following changes in order to get rid of
ifdef's from all around the driver.

  • Introduce sc_soc_id field in cesa_softc structure - this value is obtained in cesa_attach() anyway, so make use of it.
  • Replace ifdefs with SoC ID checks.
  • Perform PM control status only for relevant SoC's.

Diff Detail

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

Event Timeline

mw_semihalf.com retitled this revision from to Use SoC ID - based detection in CESA.
mw_semihalf.com updated this object.
mw_semihalf.com edited the test plan for this revision. (Show Details)
mw_semihalf.com added reviewers: ian, imp, zbb, fabient.
mw_semihalf.com set the repository for this revision to rS FreeBSD src repository - subversion.
mw_semihalf.com added subscribers: ARM, mmel.
zbb edited edge metadata.
zbb added inline comments.
sys/dev/cesa/cesa.c
1204 ↗(On Diff #24204)

Found it! Style ;-)

This revision is now accepted and ready to land.Jan 19 2017, 6:09 PM
mw_semihalf.com edited edge metadata.

Fix style in one of assignments.

This revision now requires review to proceed.Jan 20 2017, 12:33 PM
This revision was automatically updated to reflect the committed changes.