diff options
author | gonzo <gonzo@FreeBSD.org> | 2017-02-27 20:50:21 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2017-02-27 20:50:21 +0000 |
commit | 57cd07a65186c9f2e0fce8e3f970feaae4a9191e (patch) | |
tree | 4690d84a9b11be062a4a802fdec14f5944909dbe /sys/modules | |
parent | 0fde9b751d9a90b3ffde46d62c39219d3c551af0 (diff) | |
download | FreeBSD-src-57cd07a65186c9f2e0fce8e3f970feaae4a9191e.zip FreeBSD-src-57cd07a65186c9f2e0fce8e3f970feaae4a9191e.tar.gz |
MFC r310645:
[intelspi] Add SPI driver for Intel BayTrail SoC
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
Differential Revision: https://reviews.freebsd.org/D8896
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/Makefile | 2 | ||||
-rw-r--r-- | sys/modules/intelspi/Makefile | 8 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile index d141aa9..14b7036 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -165,6 +165,7 @@ SUBDIR= \ ${_igb} \ ${_iir} \ imgact_binmisc \ + ${_intelspi} \ ${_io} \ ${_ioat} \ ${_ipoib} \ @@ -623,6 +624,7 @@ _hyperv= hyperv _ichwd= ichwd _ida= ida _iir= iir +_intelspi= intelspi _ipmi= ipmi _ips= ips _isci= isci diff --git a/sys/modules/intelspi/Makefile b/sys/modules/intelspi/Makefile new file mode 100644 index 0000000..7f60c53 --- /dev/null +++ b/sys/modules/intelspi/Makefile @@ -0,0 +1,8 @@ +# $FreeBSD$ + +.PATH: ${.CURDIR}/../../dev/intel +KMOD= intelspi +SRCS= spi.c +SRCS+= acpi_if.h device_if.h bus_if.h spibus_if.h + +.include <bsd.kmod.mk> |