HomeFreeBSD

Use SoC ID - based detection in CESA

Description

Use SoC ID - based detection in CESA

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.

Submitted by: Marcin Wojtas <mw@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Reviewed by: zbb
Differential revision: https://reviews.freebsd.org/D9247

Details

Provenance
wmaAuthored on Jan 25 2017, 10:22 AM
Parents
rG76b73da7aee0: Add misssing Armada38x ID's in CESA attach
Branches
Unknown
Tags
Unknown

Event Timeline