aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/intel/spi.h
Commit message (Collapse)AuthorAgeFilesLines
* intelspi: Add support for ddb/kdb -compatible polled modeVladimir Kondratyev2023-08-031-1/+1
| | | | | | | | | | | | | | | | Required for Apple and Microsoft -compatible HID-over-SPI drivers. Most logic was already implemented in commit 3c0867343819 "spibus: extend API: add cs_delay ivar, KEEP_CS and NO_SLEEP flags". It dissallowed driver sleeps in the interrupt context. This commit extends this feature to handle ddb/kdb context with following: - Skip driver locking if SPI functions were called from kdb/ddb. - Reinitialize controller if kdb/ddb initiated SPI transfer has interrupted another already running one. Does not work very reliable yet. Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D41247
* intelspi: Move ACPI/PCI ids table out of header file.Vladimir Kondratyev2023-08-031-29/+1
| | | | | | | | There is no reason to store it multiple times. MFC after: 1 week Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D41244
* intelspi: add PCI attachment (Lynx/Wildcat/Sunrise Point)Val Packett2023-04-241-0/+99
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