Skip to content

Commit 125401e

Browse files
povikjannau
authored andcommitted
dmaengine: apple-sio: Add Apple SIO driver
Add a dmaengine driver for the Apple SIO coprocessor found on Apple SoCs where it provides DMA services. Have the driver support cyclic transactions so that ALSA drivers can rely on it in audio output to HDMI and DisplayPort. Signed-off-by: Martin Povišer <[email protected]>
1 parent fe5fa95 commit 125401e

4 files changed

Lines changed: 927 additions & 0 deletions

File tree

MAINTAINERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2305,9 +2305,11 @@ M: Martin Povišer <[email protected]>
23052305
23062306
23072307
S: Maintained
2308+
F: Documentation/devicetree/bindings/dma/apple,sio.yaml
23082309
F: Documentation/devicetree/bindings/sound/adi,ssm3515.yaml
23092310
F: Documentation/devicetree/bindings/sound/cirrus,cs42l84.yaml
23102311
F: Documentation/devicetree/bindings/sound/apple,*
2312+
F: drivers/dma/apple-sio.c
23112313
F: sound/soc/apple/*
23122314
F: sound/soc/codecs/cs42l83-i2c.c
23132315
F: sound/soc/codecs/cs42l84.*

drivers/dma/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,22 @@ config APPLE_ADMAC
8989
tristate "Apple ADMAC support"
9090
depends on ARCH_APPLE || COMPILE_TEST
9191
select DMA_ENGINE
92+
select DMA_VIRTUAL_CHANNELS
9293
default ARCH_APPLE
9394
help
9495
Enable support for Audio DMA Controller found on Apple Silicon SoCs.
9596

97+
config APPLE_SIO
98+
tristate "Apple SIO support"
99+
depends on ARCH_APPLE || COMPILE_TEST
100+
depends on APPLE_RTKIT
101+
depends on OF_ADDRESS
102+
select DMA_ENGINE
103+
default m if ARCH_APPLE
104+
help
105+
Enable support for the SIO coprocessor found on Apple Silicon SoCs
106+
where it provides DMA services.
107+
96108
config ARM_DMA350
97109
tristate "Arm DMA-350 support"
98110
depends on ARM || ARM64 || COMPILE_TEST

drivers/dma/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ obj-$(CONFIG_ALTERA_MSGDMA) += altera-msgdma.o
1717
obj-$(CONFIG_AMBA_PL08X) += amba-pl08x.o
1818
obj-$(CONFIG_AMCC_PPC440SPE_ADMA) += ppc4xx/
1919
obj-$(CONFIG_APPLE_ADMAC) += apple-admac.o
20+
obj-$(CONFIG_APPLE_SIO) += apple-sio.o
2021
obj-$(CONFIG_ARM_DMA350) += arm-dma350.o
2122
obj-$(CONFIG_AT_HDMAC) += at_hdmac.o
2223
obj-$(CONFIG_AT_XDMAC) += at_xdmac.o

0 commit comments

Comments
 (0)