HomeFreeBSD

intelspi: add PCI attachment (Lynx/Wildcat/Sunrise Point)

Description

intelspi: add PCI attachment (Lynx/Wildcat/Sunrise Point)

Also adds fixups and cleanups:

  • apply the child's mode/speed
  • implement suspend/resume support
  • use RF_SHAREABLE interrupts
  • use bus_delayed_attach_children since the transfer can use interrupts
  • add support for newly added spibus features (cs_delay and flags)

Operation tested on Broadwell (Wildcat Point) MacBookPro12,1.
Attachment also tested on Kaby Lake (Sunrise Point) Pixelbook.

Reviewed by: wulf
MFC after: 1 month
Differential revision: https://reviews.freebsd.org/D29249

Details

Provenance
val_packett.coolAuthored on Apr 24 2023, 9:41 AM
wulfCommitted on Apr 24 2023, 9:41 AM
Reviewer
wulf
Differential Revision
D29249: intelspi: add PCI attachment (Lynx/Wildcat/Sunrise Point), fixup/cleanup
Parents
rG3c0867343819: spibus: extend API: add cs_delay ivar, KEEP_CS and NO_SLEEP flags
Branches
Unknown
Tags
Unknown