summaryrefslogtreecommitdiff
path: root/sys/dev/intel
AgeCommit message (Collapse)Author
2025-01-02Use bus_generic_detach instead of device_delete_children in detachJohn Baldwin
While here, check for errors from bus_generic_detach and move it to the start of detach if necessary. Differential Revision: https://reviews.freebsd.org/D47969
2024-12-06bus_delayed_attach_children: Switch return type to voidJohn Baldwin
This function never fails similar to bus_attach_children. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D47677
2024-07-24newbus: globally replace device_add_child(..., -1) with DEVICE_UNIT_ANYWarner Losh
Sponsored by: Netflix
2023-12-19pchtherm(4): Add PCI ID for Wellsburg Thermal SubsystemDmitry Luhtionov
MFC after: 2 weeks
2023-11-26sys: Automated cleanup of cdefs and other formattingWarner Losh
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
2023-08-16sys: Remove $FreeBSD$: one-line .c patternWarner Losh
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
2023-08-03intelspi: Add support for ddb/kdb -compatible polled modeVladimir Kondratyev
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
2023-08-03intelspi: Release LPSS reset on Sunrise Point controllers.Vladimir Kondratyev
MacBookPro 14.1 SPI controller requires that to start functioning. MFC after: 1 week Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D41245
2023-08-03intelspi: Move ACPI/PCI ids table out of header file.Vladimir Kondratyev
There is no reason to store it multiple times. MFC after: 1 week Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D41244
2023-08-03intelspi: Add generic resource methods to bus interfaceVladimir Kondratyev
That allows intelspi grandchildren to allocate IRQs MFC after: 1 week Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D41242
2023-08-03intelspi: don't leak spibus on detach.Vladimir Kondratyev
MFC after: 1 week Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D41241
2023-07-31intelspi(4): Add missing driver mutex unlock in NO_SLEEP modeVladimir Kondratyev
Fixes: 1f40866feb21 ("intelspi: add PCI attachment (Lynx/Wildcat/Sunrise Point)") MFC after: 1 week
2023-04-24intelspi: add PCI attachment (Lynx/Wildcat/Sunrise Point)Val Packett
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
2022-05-09pchtherm/intelspi: Remove unused devclass arguments to DRIVER_MODULE.John Baldwin
2021-04-14pchtherm: Add IDs for CannonLake-H, CometLake and Lewisburg controllersVladimir Kondratyev
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 2 weeks
2021-03-05pchtherm: fix a wrong bit and a wrong register useMichal Vanco
Probably just copy-paste errors that slipped in. PR: 253915 Reported by: Michal Vanco <michal.vanco@gmail.com> MFC after: 1 week
2020-09-01Add Cannon Point PCH Thermal Controller Device ID.Takanori Watanabe
PR: 249047 Reported by: Dries Michiels <driesm.michiels at gmail.com> Notes: svn path=/head/; revision=365050
2020-03-31Add Platform Controller Hub built-in thermal management device driver.Takanori Watanabe
Differential Revision: https://reviews.freebsd.org/D24077 Notes: svn path=/head/; revision=359479
2018-10-26Distinguish _CID match and _HID match and make lower priority probeTakanori Watanabe
when _CID match. Reviewed by: jhb, imp Differential Revision:https://reviews.freebsd.org/D16468 Notes: svn path=/head/; revision=339754
2018-09-08intelspi: don't leak spibus children on detach.Konstantin Belousov
Submitted by: Yuri Pankov MFC after: 1 week Approved by: re (gjb) Differential revision: https://reviews.freebsd.org/D17076 Notes: svn path=/head/; revision=338534
2018-09-07Specify the correct resource type in teardown paths.Mark Johnston
Submitted by: Yuri Pankov <yuripv@yuripv.net> Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=338528
2016-12-27[intelspi] Add SPI driver for Intel BayTrail SoCOleksandr Tymoshenko
Add SPI mode (PIO-only) support for Intel Synchronous Serial Port that can be found in several Intel's products starting from PXA family. Most of implementations have slight differences in behavior and in addresses for registers subset. This driver covers only BayTrail SoC implementation for it's the only hardware I have to test it on. Driver attaches to ACPI bus only and does not have PCI or FDT support for now due to lack of hardware to test it on. "intelspi" is the best name I've managed to come up with. Linux driver name (spi-pxa2xx) does not make sense because current implementation does not support actual PXA2xx SoCs. And as far as I know there is no codename assigned to Intel SSP chip. Reviewed by: br, manu MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D8896 Notes: svn path=/head/; revision=310645