Skip to content

Commit 16b2746

Browse files
rfvirgilLee Jones
authored andcommitted
mfd: madera: Add common support for Cirrus Logic Madera codecs
This adds the generic core support for Cirrus Logic "Madera" class codecs. These are complex audio codec SoCs with a variety of digital and analogue I/O, onboard audio processing and DSPs, and other features. These codecs are all based off a common set of hardware IP so can be supported by a core of common code (with a few minor device-to-device variations). Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: Nikesh Oswal <Nikesh.Oswal@cirrus.com> Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent 2b49088 commit 16b2746

9 files changed

Lines changed: 1215 additions & 0 deletions

File tree

‎MAINTAINERS‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3487,7 +3487,10 @@ L: patches@opensource.cirrus.com
34873487
T: git https://github.com/CirrusLogic/linux-drivers.git
34883488
W: https://github.com/CirrusLogic/linux-drivers/wiki
34893489
S: Supported
3490+
F: Documentation/devicetree/bindings/mfd/madera.txt
34903491
F: include/linux/mfd/madera/*
3492+
F: drivers/mfd/madera*
3493+
F: drivers/mfd/cs47l*
34913494

34923495
CLEANCACHE API
34933496
M: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

‎drivers/mfd/Kconfig‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,35 @@ config MFD_CROS_EC_CHARDEV
232232
If you have a supported Chromebook, choose Y or M here.
233233
The module will be called cros_ec_dev.
234234

235+
config MFD_MADERA
236+
tristate "Cirrus Logic Madera codecs"
237+
select MFD_CORE
238+
select REGMAP
239+
select REGMAP_IRQ
240+
select MADERA_IRQ
241+
select PINCTRL
242+
select PINCTRL_MADERA
243+
help
244+
Support for the Cirrus Logic Madera platform audio codecs
245+
246+
config MFD_MADERA_I2C
247+
tristate "Cirrus Logic Madera codecs with I2C"
248+
depends on MFD_MADERA
249+
depends on I2C
250+
select REGMAP_I2C
251+
help
252+
Support for the Cirrus Logic Madera platform audio SoC
253+
core functionality controlled via I2C.
254+
255+
config MFD_MADERA_SPI
256+
tristate "Cirrus Logic Madera codecs with SPI"
257+
depends on MFD_MADERA
258+
depends on SPI_MASTER
259+
select REGMAP_SPI
260+
help
261+
Support for the Cirrus Logic Madera platform audio SoC
262+
core functionality controlled via SPI.
263+
235264
config MFD_ASIC3
236265
bool "Compaq ASIC3"
237266
depends on GPIOLIB && ARM

‎drivers/mfd/Makefile‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ wm8994-objs := wm8994-core.o wm8994-irq.o wm8994-regmap.o
7373
obj-$(CONFIG_MFD_WM8994) += wm8994.o
7474
obj-$(CONFIG_MFD_WM97xx) += wm97xx-core.o
7575

76+
madera-objs := madera-core.o
77+
obj-$(CONFIG_MFD_MADERA) += madera.o
78+
obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o
79+
obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
80+
7681
obj-$(CONFIG_TPS6105X) += tps6105x.o
7782
obj-$(CONFIG_TPS65010) += tps65010.o
7883
obj-$(CONFIG_TPS6507X) += tps6507x.o

0 commit comments

Comments
 (0)