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
Reviewer
zbb
Differential Revision
D9247: Use SoC ID - based detection in CESA
Parents
rS312742: MFC r311935: Pretend we support some IOCTLs to not scary upper layers.
Branches
Unknown
Tags
Unknown