]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add IRQ resource to SPIBUS
authormanu <manu@FreeBSD.org>
Thu, 17 Dec 2020 17:11:14 +0000 (17:11 +0000)
committermanu <manu@FreeBSD.org>
Thu, 17 Dec 2020 17:11:14 +0000 (17:11 +0000)
commit2f4c76c0686c09ca209c31b998d4d01e9eeb718e
tree1ac65a4a4e8ba2c1d3bab875dd5c07712601d3a7
parent3ddaa0dc76ffdb562ac98cca34b0f583c49a66a6
Add IRQ resource to SPIBUS

Add capability to SPIBUS to have child device with IRQ.
For example many ADC chip have a dedicated pin to signal "data ready"
and the host can just wait for a interrupt to go out and read the result.

It is the same code as in R282674 and R282702 for IICBUS by Michal Meloun

Submitted by: Oskar Holmund <oskar.holmlund@ohdata.se>
Differential Revision: https://reviews.freebsd.org/D27396
sys/dev/spibus/ofw_spibus.c
sys/dev/spibus/spibus.c
sys/dev/spibus/spibusvar.h