The Cirrus Logic CS47L35, CS47L85, CS47L90/91 codecs are complex audio SoC
devices. In addition to the core audio capability they have onboard GPIO,
regulators, DSPs and interrupt controller and a large register map space
accessed over SPI or I2C. This family of codecs is based around common IP
blocks and they are managed by a set of common drivers referred to as "Madera".
Mayuresh Kulkarni (1):
ASoC: wm_adsp: add support for DSP region lock
Richard Fitzgerald (15):
mfd: madera: Add register definitions for Cirrus Logic Madera codecs
mfd: madera: Add common support for Cirrus Logic Madera codecs
mfd: madera: Register map tables for Cirrus Logic CS47L35
mfd: madera: Register map tables for Cirrus Logic CS47L85
mfd: madera: Register map tables for Cirrus Logic CS47L90/91
regulator: madera-ldo1: LDO1 driver for Cirrus Logic Madera codecs
regulator: madera-micsupp: Mic supply for Cirrus Logic Madera codecs
irqchip: Add driver for Cirrus Logic Madera codecs
pinctrl: madera: Add driver for Cirrus Logic Madera codecs
gpio: madera: Support Cirrus Logic Madera class codecs
ASoC: wm_adsp: Add support for ADSP2V2
ASoC: madera: Add common support for Cirrus Logic Madera codecs
ASoC: cs47l35: Add codec driver for Cirrus Logic CS47L35
ASoC: cs47l85: Add codec driver for Cirrus Logic CS47L85
ASoC: cs47l90: Add codec driver for Cirrus Logic CS47L90
.../devicetree/bindings/gpio/gpio-madera.txt | 24 +
.../interrupt-controller/cirrus,madera.txt | 31 +
Documentation/devicetree/bindings/mfd/madera.txt | 79 +
.../bindings/pinctrl/cirrus,madera-pinctrl.txt | 103 +
.../devicetree/bindings/regulator/madera-ldo1.txt | 29 +
.../bindings/regulator/madera-micsupp.txt | 27 +
Documentation/devicetree/bindings/sound/madera.txt | 63 +
MAINTAINERS | 28 +
drivers/gpio/Kconfig | 6 +
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-madera.c | 173 +
drivers/irqchip/Kconfig | 5 +
drivers/irqchip/Makefile | 1 +
drivers/irqchip/irq-madera.c | 349 +
drivers/mfd/Kconfig | 41 +
drivers/mfd/Makefile | 13 +
drivers/mfd/cs47l35-tables.c | 1688 ++++
drivers/mfd/cs47l85-tables.c | 3169 +++++++
drivers/mfd/cs47l90-tables.c | 2830 +++++++
drivers/mfd/madera-core.c | 689 ++
drivers/mfd/madera-i2c.c | 130 +
drivers/mfd/madera-spi.c | 131 +
drivers/mfd/madera.h | 52 +
drivers/pinctrl/Kconfig | 22 +
drivers/pinctrl/Makefile | 1 +
drivers/pinctrl/pinctrl-madera.c | 1092 +++
drivers/regulator/Kconfig | 16 +
drivers/regulator/Makefile | 2 +
drivers/regulator/madera-ldo1.c | 198 +
drivers/regulator/madera-micsupp.c | 260 +
include/dt-bindings/sound/madera.h | 18 +
include/linux/irqchip/irq-madera-pdata.h | 19 +
include/linux/irqchip/irq-madera.h | 96 +
include/linux/mfd/madera/core.h | 175 +
include/linux/mfd/madera/pdata.h | 88 +
include/linux/mfd/madera/registers.h | 8832 ++++++++++++++++++++
include/linux/regulator/madera-ldo1.h | 24 +
include/linux/regulator/madera-micsupp.h | 21 +
include/sound/madera-pdata.h | 70 +
sound/soc/codecs/Kconfig | 23 +
sound/soc/codecs/Makefile | 8 +
sound/soc/codecs/cs47l35.c | 1747 ++++
sound/soc/codecs/cs47l85.c | 2706 ++++++
sound/soc/codecs/cs47l90.c | 2645 ++++++
sound/soc/codecs/madera.c | 4430 ++++++++++
sound/soc/codecs/madera.h | 470 ++
sound/soc/codecs/wm_adsp.c | 324 +-
sound/soc/codecs/wm_adsp.h | 24 +
48 files changed, 32930 insertions(+), 43 deletions(-)
create mode 100644 Documentation/devicetree/bindings/gpio/gpio-madera.txt
create mode 100644 Documentation/devicetree/bindings/interrupt-controller/cirrus,madera.txt
create mode 100644 Documentation/devicetree/bindings/mfd/madera.txt
create mode 100644 Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt
create mode 100644 Documentation/devicetree/bindings/regulator/madera-ldo1.txt
create mode 100644 Documentation/devicetree/bindings/regulator/madera-micsupp.txt
create mode 100644 Documentation/devicetree/bindings/sound/madera.txt
create mode 100644 drivers/gpio/gpio-madera.c
create mode 100644 drivers/irqchip/irq-madera.c
create mode 100644 drivers/mfd/cs47l35-tables.c
create mode 100644 drivers/mfd/cs47l85-tables.c
create mode 100644 drivers/mfd/cs47l90-tables.c
create mode 100644 drivers/mfd/madera-core.c
create mode 100644 drivers/mfd/madera-i2c.c
create mode 100644 drivers/mfd/madera-spi.c
create mode 100644 drivers/mfd/madera.h
create mode 100644 drivers/pinctrl/pinctrl-madera.c
create mode 100644 drivers/regulator/madera-ldo1.c
create mode 100644 drivers/regulator/madera-micsupp.c
create mode 100644 include/dt-bindings/sound/madera.h
create mode 100644 include/linux/irqchip/irq-madera-pdata.h
create mode 100644 include/linux/irqchip/irq-madera.h
create mode 100644 include/linux/mfd/madera/core.h
create mode 100644 include/linux/mfd/madera/pdata.h
create mode 100644 include/linux/mfd/madera/registers.h
create mode 100644 include/linux/regulator/madera-ldo1.h
create mode 100644 include/linux/regulator/madera-micsupp.h
create mode 100644 include/sound/madera-pdata.h
create mode 100644 sound/soc/codecs/cs47l35.c
create mode 100644 sound/soc/codecs/cs47l85.c
create mode 100644 sound/soc/codecs/cs47l90.c
create mode 100644 sound/soc/codecs/madera.c
create mode 100644 sound/soc/codecs/madera.h
--
1.9.1
This adds support for the GPIOs on Cirrus Logic Madera class codecs.
Signed-off-by: Nariman Poushin <[email protected]>
Signed-off-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
---
.../devicetree/bindings/gpio/gpio-madera.txt | 24 +++
MAINTAINERS | 2 +
drivers/gpio/Kconfig | 6 +
drivers/gpio/Makefile | 1 +
drivers/gpio/gpio-madera.c | 173 +++++++++++++++++++++
5 files changed, 206 insertions(+)
create mode 100644 Documentation/devicetree/bindings/gpio/gpio-madera.txt
create mode 100644 drivers/gpio/gpio-madera.c
diff --git a/Documentation/devicetree/bindings/gpio/gpio-madera.txt b/Documentation/devicetree/bindings/gpio/gpio-madera.txt
new file mode 100644
index 0000000..eb01c6d
--- /dev/null
+++ b/Documentation/devicetree/bindings/gpio/gpio-madera.txt
@@ -0,0 +1,24 @@
+Cirrus Logic Madera class audio codecs gpio driver
+
+This is a subnode of the parent mfd node.
+
+See also the core bindings for the parent MFD driver:
+See Documentation/devicetree/bindings/mfd/madera.txt
+
+Required properties:
+ - compatible : must be "cirrus,madera-gpio"
+ - gpio-controller : Indicates this device is a GPIO controller.
+ - #gpio-cells : Must be 2. The first cell is the pin number. The second cell
+ is reserved for future use and must be zero
+
+Example:
+
+codec: cs47l85@0 {
+ compatible = "cirrus,cs47l85";
+
+ gpio {
+ compatible = "cirrus,madera-gpio";
+ gpio-controller;
+ #gpio-cells = <2>;
+ }
+};
diff --git a/MAINTAINERS b/MAINTAINERS
index 85af1f9..0183692 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3266,6 +3266,7 @@ L: [email protected]
T: git https://github.com/CirrusLogic/linux-drivers.git
W: https://github.com/CirrusLogic/linux-drivers/wiki
S: Supported
+F: Documentation/devicetree/bindings/gpio/gpio-madera.txt
F: Documentation/devicetree/bindings/interrupt-controller/cirrus,madera.txt
F: Documentation/devicetree/bindings/mfd/madera.txt
F: Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt
@@ -3273,6 +3274,7 @@ F: Documentation/devicetree/bindings/regulator/madera*
F: include/linux/irqchip/irq-madera*
F: include/linux/mfd/madera/*
F: include/linux/regulator/madera*
+F: drivers/gpio/gpio-madera*
F: drivers/irqchip/irq-madera*
F: drivers/mfd/madera*
F: drivers/mfd/cs47l*
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 63ceed2..1386728 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -844,6 +844,12 @@ config GPIO_ARIZONA
help
Support for GPIOs on Wolfson Arizona class devices.
+config GPIO_MADERA
+ tristate "Cirrus Logic Madera class codecs"
+ depends on MFD_MADERA
+ help
+ Support for GPIOs on Cirrus Logic Madera class codecs.
+
config GPIO_CRYSTAL_COVE
tristate "GPIO support for Crystal Cove PMIC"
depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC
diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile
index 095598e..d4b6c30 100644
--- a/drivers/gpio/Makefile
+++ b/drivers/gpio/Makefile
@@ -66,6 +66,7 @@ obj-$(CONFIG_GPIO_LPC18XX) += gpio-lpc18xx.o
obj-$(CONFIG_ARCH_LPC32XX) += gpio-lpc32xx.o
obj-$(CONFIG_GPIO_LP873X) += gpio-lp873x.o
obj-$(CONFIG_GPIO_LYNXPOINT) += gpio-lynxpoint.o
+obj-$(CONFIG_GPIO_MADERA) += gpio-madera.o
obj-$(CONFIG_GPIO_MAX730X) += gpio-max730x.o
obj-$(CONFIG_GPIO_MAX7300) += gpio-max7300.o
obj-$(CONFIG_GPIO_MAX7301) += gpio-max7301.o
diff --git a/drivers/gpio/gpio-madera.c b/drivers/gpio/gpio-madera.c
new file mode 100644
index 0000000..b4fa082
--- /dev/null
+++ b/drivers/gpio/gpio-madera.c
@@ -0,0 +1,173 @@
+/*
+ * gpio-madera.c - GPIO support for Cirrus Logic Madera codecs
+ *
+ * Copyright 2015-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/device.h>
+#include <linux/gpio.h>
+#include <linux/kernel.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>
+
+#include <linux/mfd/madera/core.h>
+#include <linux/mfd/madera/pdata.h>
+#include <linux/mfd/madera/registers.h>
+
+struct madera_gpio {
+ struct madera *madera;
+ struct gpio_chip gpio_chip;
+};
+
+static int madera_gpio_direction_in(struct gpio_chip *chip, unsigned int offset)
+{
+ struct madera_gpio *madera_gpio = gpiochip_get_data(chip);
+ struct madera *madera = madera_gpio->madera;
+
+ return regmap_update_bits(madera->regmap,
+ MADERA_GPIO1_CTRL_2 + (2 * offset),
+ MADERA_GP1_DIR_MASK, MADERA_GP1_DIR);
+}
+
+static int madera_gpio_get(struct gpio_chip *chip, unsigned int offset)
+{
+ struct madera_gpio *madera_gpio = gpiochip_get_data(chip);
+ struct madera *madera = madera_gpio->madera;
+ unsigned int val;
+ int ret;
+
+ ret = regmap_read(madera->regmap,
+ MADERA_GPIO1_CTRL_1 + (2 * offset), &val);
+ if (ret < 0)
+ return ret;
+
+ if (val & MADERA_GP1_LVL_MASK)
+ return 1;
+ else
+ return 0;
+}
+
+static int madera_gpio_direction_out(struct gpio_chip *chip,
+ unsigned int offset, int value)
+{
+ struct madera_gpio *madera_gpio = gpiochip_get_data(chip);
+ struct madera *madera = madera_gpio->madera;
+ unsigned int regval;
+ int ret;
+
+ if (value)
+ regval = MADERA_GP1_LVL;
+ else
+ regval = 0;
+
+ ret = regmap_update_bits(madera->regmap,
+ MADERA_GPIO1_CTRL_2 + (2 * offset),
+ MADERA_GP1_DIR_MASK, 0);
+ if (ret < 0)
+ return ret;
+
+ return regmap_update_bits(madera->regmap,
+ MADERA_GPIO1_CTRL_1 + (2 * offset),
+ MADERA_GP1_LVL_MASK, regval);
+}
+
+static void madera_gpio_set(struct gpio_chip *chip, unsigned int offset,
+ int value)
+{
+ struct madera_gpio *madera_gpio = gpiochip_get_data(chip);
+ struct madera *madera = madera_gpio->madera;
+ unsigned int regval;
+ int ret;
+
+ if (value)
+ regval = MADERA_GP1_LVL;
+ else
+ regval = 0;
+
+ ret = regmap_update_bits(madera->regmap,
+ MADERA_GPIO1_CTRL_1 + (2 * offset),
+ MADERA_GP1_LVL_MASK, regval);
+ if (ret)
+ dev_warn(madera->dev, "Failed to write to 0x%x (%d)\n",
+ MADERA_GPIO1_CTRL_1 + (2 * offset), ret);
+}
+
+static struct gpio_chip template_chip = {
+ .label = "madera",
+ .owner = THIS_MODULE,
+ .direction_input = madera_gpio_direction_in,
+ .get = madera_gpio_get,
+ .direction_output = madera_gpio_direction_out,
+ .set = madera_gpio_set,
+ .can_sleep = true,
+};
+
+static int madera_gpio_probe(struct platform_device *pdev)
+{
+ struct madera *madera = dev_get_drvdata(pdev->dev.parent);
+ struct madera_pdata *pdata = dev_get_platdata(madera->dev);
+ struct madera_gpio *madera_gpio;
+ int ret;
+
+ madera_gpio = devm_kzalloc(&pdev->dev, sizeof(*madera_gpio),
+ GFP_KERNEL);
+ if (!madera_gpio)
+ return -ENOMEM;
+
+ madera_gpio->madera = madera;
+ madera_gpio->gpio_chip = template_chip;
+ madera_gpio->gpio_chip.parent = &pdev->dev;
+
+ if (IS_ENABLED(CONFIG_OF_GPIO))
+ madera_gpio->gpio_chip.of_node = pdev->dev.of_node;
+
+ switch (madera->type) {
+ case CS47L35:
+ madera_gpio->gpio_chip.ngpio = CS47L35_NUM_GPIOS;
+ break;
+ case CS47L85:
+ case WM1840:
+ madera_gpio->gpio_chip.ngpio = CS47L85_NUM_GPIOS;
+ break;
+ case CS47L90:
+ case CS47L91:
+ madera_gpio->gpio_chip.ngpio = CS47L90_NUM_GPIOS;
+ break;
+ default:
+ dev_err(&pdev->dev, "Unknown chip variant %d\n",
+ madera->type);
+ return -EINVAL;
+ }
+
+ if (pdata && pdata->gpio_base)
+ madera_gpio->gpio_chip.base = pdata->gpio_base;
+ else
+ madera_gpio->gpio_chip.base = -1;
+
+ ret = devm_gpiochip_add_data(&pdev->dev, &madera_gpio->gpio_chip,
+ madera_gpio);
+ if (ret < 0) {
+ dev_err(&pdev->dev, "Could not register gpiochip, %d\n", ret);
+ return ret;
+ }
+
+ return 0;
+}
+
+static struct platform_driver madera_gpio_driver = {
+ .driver.name = "madera-gpio",
+ .driver.owner = THIS_MODULE,
+ .probe = madera_gpio_probe,
+};
+
+module_platform_driver(madera_gpio_driver);
+
+MODULE_DESCRIPTION("GPIO interface for Madera codecs");
+MODULE_AUTHOR("Nariman Poushin <[email protected]>");
+MODULE_AUTHOR("Richard Fitzgerald <[email protected]>");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:madera-gpio");
--
1.9.1
The adds a driver for the microphone supply regulator on Cirrus Logic
Madera class codecs.
Signed-off-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
---
.../bindings/regulator/madera-micsupp.txt | 27 +++
drivers/regulator/Kconfig | 8 +
drivers/regulator/Makefile | 1 +
drivers/regulator/madera-micsupp.c | 260 +++++++++++++++++++++
include/linux/regulator/madera-micsupp.h | 21 ++
5 files changed, 317 insertions(+)
create mode 100644 Documentation/devicetree/bindings/regulator/madera-micsupp.txt
create mode 100644 drivers/regulator/madera-micsupp.c
create mode 100644 include/linux/regulator/madera-micsupp.h
diff --git a/Documentation/devicetree/bindings/regulator/madera-micsupp.txt b/Documentation/devicetree/bindings/regulator/madera-micsupp.txt
new file mode 100644
index 0000000..08aec7f
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/madera-micsupp.txt
@@ -0,0 +1,27 @@
+Cirrus Logic Madera class audio codecs mic supply regulator driver
+
+Only required if the codec has an internal mic supply regulator.
+This is a subnode of the parent mfd node.
+
+See also the core bindings for the parent MFD driver:
+See Documentation/devicetree/bindings/mfd/madera.txt
+
+Required properties:
+ - compatible : must be "cirrus,madera-micsupp"
+
+Optional subnodes:
+ Standard regulator bindings as described in bindings/regulator/regulator.txt
+
+Example:
+
+codec: cs47l85@0 {
+ compatible = "cirrus,cs47l85";
+
+ micvdd {
+ compatible = "cirrus,madera-micsupp";
+ regulator-min-microvolt = <900000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-allow-bypass = <1>;
+ };
+};
+
diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index c96d9a6..4f4b531 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -376,6 +376,14 @@ config REGULATOR_MADERA_LDO1
to supply DCVDD you must include this driver. If you are using an
external DCVDD regulator you do not need this driver.
+config REGULATOR_MADERA_MICSUPP
+ tristate "Cirrus Logic Madera codecs mic supply regulator"
+ depends on MFD_MADERA
+ depends on SND_SOC
+ help
+ Support for the microphone supply regulator on Cirrus Logic
+ Madera class codecs
+
config REGULATOR_MAX14577
tristate "Maxim 14577/77836 regulator"
depends on MFD_MAX14577
diff --git a/drivers/regulator/Makefile b/drivers/regulator/Makefile
index 2db3592..28cdf6e 100644
--- a/drivers/regulator/Makefile
+++ b/drivers/regulator/Makefile
@@ -50,6 +50,7 @@ obj-$(CONFIG_REGULATOR_LP8755) += lp8755.o
obj-$(CONFIG_REGULATOR_LTC3589) += ltc3589.o
obj-$(CONFIG_REGULATOR_LTC3676) += ltc3676.o
obj-$(CONFIG_REGULATOR_MADERA_LDO1) += madera-ldo1.o
+obj-$(CONFIG_REGULATOR_MADERA_MICSUPP) += madera-micsupp.o
obj-$(CONFIG_REGULATOR_MAX14577) += max14577-regulator.o
obj-$(CONFIG_REGULATOR_MAX1586) += max1586.o
obj-$(CONFIG_REGULATOR_MAX77620) += max77620-regulator.o
diff --git a/drivers/regulator/madera-micsupp.c b/drivers/regulator/madera-micsupp.c
new file mode 100644
index 0000000..ac8bcbd
--- /dev/null
+++ b/drivers/regulator/madera-micsupp.c
@@ -0,0 +1,260 @@
+/*
+ * madera-micsupp.c -- Driver for the mic supply regulator on Madera codecs
+ *
+ * Copyright 2015-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/delay.h>
+#include <linux/device.h>
+#include <linux/err.h>
+#include <linux/module.h>
+#include <linux/of.h>
+#include <linux/platform_device.h>
+#include <linux/regulator/driver.h>
+#include <linux/regulator/machine.h>
+#include <linux/regulator/of_regulator.h>
+#include <linux/workqueue.h>
+#include <sound/soc.h>
+
+#include <linux/regulator/madera-micsupp.h>
+
+#include <linux/mfd/madera/core.h>
+#include <linux/mfd/madera/pdata.h>
+#include <linux/mfd/madera/registers.h>
+
+struct madera_micsupp {
+ struct regulator_dev *regulator;
+ struct madera *madera;
+
+ struct regulator_consumer_supply supply;
+ struct regulator_init_data init_data;
+
+ struct work_struct check_cp_work;
+};
+
+static void madera_micsupp_check_cp(struct work_struct *work)
+{
+ struct madera_micsupp *micsupp =
+ container_of(work, struct madera_micsupp, check_cp_work);
+ struct snd_soc_dapm_context *dapm = micsupp->madera->dapm;
+ struct snd_soc_component *component = snd_soc_dapm_to_component(dapm);
+ struct madera *madera = micsupp->madera;
+ struct regmap *regmap = madera->regmap;
+ unsigned int reg;
+ int ret;
+
+ if (dapm) {
+ ret = regmap_read(regmap, MADERA_MIC_CHARGE_PUMP_1, ®);
+ if (ret) {
+ dev_err(madera->dev,
+ "Failed to read CP state: %d\n", ret);
+ return;
+ }
+
+ reg &= MADERA_CPMIC_ENA | MADERA_CPMIC_BYPASS;
+ if (reg == MADERA_CPMIC_ENA)
+ snd_soc_component_force_enable_pin(component,
+ "MICSUPP");
+ else
+ snd_soc_component_disable_pin(component, "MICSUPP");
+
+ snd_soc_dapm_sync(dapm);
+ }
+}
+
+static int madera_micsupp_enable(struct regulator_dev *rdev)
+{
+ struct madera_micsupp *micsupp = rdev_get_drvdata(rdev);
+ int ret;
+
+ ret = regulator_enable_regmap(rdev);
+ if (ret == 0)
+ schedule_work(&micsupp->check_cp_work);
+
+ return ret;
+}
+
+static int madera_micsupp_disable(struct regulator_dev *rdev)
+{
+ struct madera_micsupp *micsupp = rdev_get_drvdata(rdev);
+ int ret;
+
+ ret = regulator_disable_regmap(rdev);
+ if (ret == 0)
+ schedule_work(&micsupp->check_cp_work);
+
+ return ret;
+}
+
+static int madera_micsupp_set_bypass(struct regulator_dev *rdev, bool ena)
+{
+ struct madera_micsupp *micsupp = rdev_get_drvdata(rdev);
+ int ret;
+
+ ret = regulator_set_bypass_regmap(rdev, ena);
+ if (ret == 0)
+ schedule_work(&micsupp->check_cp_work);
+
+ return ret;
+}
+
+static const struct regulator_ops madera_micsupp_ops = {
+ .enable = madera_micsupp_enable,
+ .disable = madera_micsupp_disable,
+ .is_enabled = regulator_is_enabled_regmap,
+
+ .list_voltage = regulator_list_voltage_linear_range,
+ .map_voltage = regulator_map_voltage_linear_range,
+
+ .get_voltage_sel = regulator_get_voltage_sel_regmap,
+ .set_voltage_sel = regulator_set_voltage_sel_regmap,
+
+ .get_bypass = regulator_get_bypass_regmap,
+ .set_bypass = madera_micsupp_set_bypass,
+};
+
+static const struct regulator_linear_range madera_micsupp_ranges[] = {
+ REGULATOR_LINEAR_RANGE(900000, 0, 0x14, 25000),
+ REGULATOR_LINEAR_RANGE(1500000, 0x15, 0x27, 100000),
+};
+
+static const struct regulator_desc madera_micsupp = {
+ .name = "MICVDD",
+ .supply_name = "CPVDD1",
+ .type = REGULATOR_VOLTAGE,
+ .n_voltages = 40,
+ .ops = &madera_micsupp_ops,
+
+ .vsel_reg = MADERA_LDO2_CONTROL_1,
+ .vsel_mask = MADERA_LDO2_VSEL_MASK,
+ .enable_reg = MADERA_MIC_CHARGE_PUMP_1,
+ .enable_mask = MADERA_CPMIC_ENA,
+ .bypass_reg = MADERA_MIC_CHARGE_PUMP_1,
+ .bypass_mask = MADERA_CPMIC_BYPASS,
+
+ .linear_ranges = madera_micsupp_ranges,
+ .n_linear_ranges = ARRAY_SIZE(madera_micsupp_ranges),
+
+ .enable_time = 3000,
+
+ .owner = THIS_MODULE,
+};
+
+static const struct regulator_init_data madera_micsupp_default = {
+ .constraints = {
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS |
+ REGULATOR_CHANGE_VOLTAGE |
+ REGULATOR_CHANGE_BYPASS,
+ .min_uV = 900000,
+ .max_uV = 3300000,
+ },
+
+ .num_consumer_supplies = 1,
+};
+
+static int madera_micsupp_of_get_pdata(struct madera *madera,
+ struct regulator_config *config,
+ const struct regulator_desc *desc)
+{
+ struct madera_pdata *pdata = &madera->pdata;
+ struct madera_micsupp *micsupp = config->driver_data;
+ struct regulator_init_data *init_data;
+
+ init_data = of_get_regulator_init_data(config->dev, config->of_node,
+ desc);
+
+ if (init_data) {
+ init_data->consumer_supplies = &micsupp->supply;
+ init_data->num_consumer_supplies = 1;
+ pdata->micsupp.init_data = init_data;
+ }
+
+ return 0;
+}
+
+static int madera_micsupp_probe(struct platform_device *pdev)
+{
+ struct madera *madera = dev_get_drvdata(pdev->dev.parent);
+ const struct regulator_desc *desc;
+ struct regulator_config config = { };
+ struct madera_micsupp *micsupp;
+ int ret;
+
+ micsupp = devm_kzalloc(&pdev->dev, sizeof(*micsupp), GFP_KERNEL);
+ if (!micsupp)
+ return -ENOMEM;
+
+ micsupp->madera = madera;
+ INIT_WORK(&micsupp->check_cp_work, madera_micsupp_check_cp);
+
+ /*
+ * Since the chip usually supplies itself we provide some
+ * default init_data for it. This will be overridden with
+ * platform data if provided.
+ */
+ desc = &madera_micsupp;
+ micsupp->init_data = madera_micsupp_default;
+
+ micsupp->init_data.consumer_supplies = &micsupp->supply;
+ micsupp->supply.supply = "MICVDD";
+ micsupp->supply.dev_name = dev_name(madera->dev);
+
+ config.dev = madera->dev;
+ config.of_node = config.dev->of_node;
+ config.driver_data = micsupp;
+ config.regmap = madera->regmap;
+
+ if (IS_ENABLED(CONFIG_OF)) {
+ if (!dev_get_platdata(madera->dev)) {
+ ret = madera_micsupp_of_get_pdata(madera, &config,
+ desc);
+ if (ret < 0)
+ return ret;
+ }
+ }
+
+ if (madera->pdata.micsupp.init_data)
+ config.init_data = madera->pdata.micsupp.init_data;
+ else
+ config.init_data = &micsupp->init_data;
+
+ /* Default to regulated mode, in case bypass is not in constraints */
+ regmap_update_bits(madera->regmap, MADERA_MIC_CHARGE_PUMP_1,
+ MADERA_CPMIC_BYPASS, 0);
+
+ micsupp->regulator = devm_regulator_register(&pdev->dev, desc,
+ &config);
+
+ of_node_put(config.of_node);
+
+ if (IS_ERR(micsupp->regulator)) {
+ ret = PTR_ERR(micsupp->regulator);
+ dev_err(madera->dev, "Failed to register mic supply: %d\n",
+ ret);
+ return ret;
+ }
+
+ platform_set_drvdata(pdev, micsupp);
+
+ return 0;
+}
+
+static struct platform_driver madera_micsupp_driver = {
+ .probe = madera_micsupp_probe,
+ .driver = {
+ .name = "madera-micsupp",
+ },
+};
+
+module_platform_driver(madera_micsupp_driver);
+
+/* Module information */
+MODULE_DESCRIPTION("Madera microphone supply driver");
+MODULE_AUTHOR("Charles Keepax <[email protected]>");
+MODULE_AUTHOR("Richard Fitzgerald <[email protected]>");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:madera-micsupp");
diff --git a/include/linux/regulator/madera-micsupp.h b/include/linux/regulator/madera-micsupp.h
new file mode 100644
index 0000000..9913bc6
--- /dev/null
+++ b/include/linux/regulator/madera-micsupp.h
@@ -0,0 +1,21 @@
+/*
+ * Platform data for Madera codecs MICSUPP regulator
+ *
+ * Copyright 2016-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef MADERA_MICSUPP_H
+#define MADERA_MICSUPP_H
+
+struct regulator_init_data;
+
+struct madera_micsupp_pdata {
+ /** Regulator configuration for MICSUPP */
+ const struct regulator_init_data *init_data;
+};
+
+#endif
--
1.9.1
The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840)
are highly complex devices containing up to 7 programmable DSPs and many
other internal sources of interrupts plus a number of GPIOs that can be
used as interrupt inputs. The large number (>150) of internal interrupt
sources are managed by an on-board interrupt controller.
This driver provides the handling for the interrupt controller. As the
codec is accessed via regmap, we can make use of the generic IRQ
functionality from regmap to do most of the work. Only around half of
the possible interrupt source are currently of interest from the driver
so only this subset is defined. Others can be added in future if needed.
The KConfig options are not user-configurable because this driver is
mandatory so is automatically included when the parent MFD driver is
selected.
Signed-off-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
---
.../interrupt-controller/cirrus,madera.txt | 31 ++
MAINTAINERS | 3 +
drivers/irqchip/Kconfig | 5 +
drivers/irqchip/Makefile | 1 +
drivers/irqchip/irq-madera.c | 349 +++++++++++++++++++++
include/linux/irqchip/irq-madera-pdata.h | 19 ++
include/linux/irqchip/irq-madera.h | 96 ++++++
7 files changed, 504 insertions(+)
create mode 100644 Documentation/devicetree/bindings/interrupt-controller/cirrus,madera.txt
create mode 100644 drivers/irqchip/irq-madera.c
create mode 100644 include/linux/irqchip/irq-madera-pdata.h
create mode 100644 include/linux/irqchip/irq-madera.h
diff --git a/Documentation/devicetree/bindings/interrupt-controller/cirrus,madera.txt b/Documentation/devicetree/bindings/interrupt-controller/cirrus,madera.txt
new file mode 100644
index 0000000..4505315
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/cirrus,madera.txt
@@ -0,0 +1,31 @@
+Cirrus Logic Madera class audio codec IRQ driver
+
+The IRQ properties are members of the parent MFD node.
+
+See also the core bindings for the parent MFD driver:
+See Documentation/devicetree/bindings/mfd/madera.txt
+
+Required properties:
+ - interrupt-controller : Madera class devices contain interrupt controllers
+ and may provide interrupt services to other devices.
+
+ - #interrupt-cells: the number of cells to describe an IRQ, this should be 2.
+ The first cell is the IRQ number.
+ The second cell is the flags, encoded as the trigger masks from
+ bindings/interrupt-controller/interrupts.txt
+
+ - interrupts : The interrupt line the /IRQ signal for the device is
+ connected to.
+
+ - interrupt-parent : The parent interrupt controller.
+
+Example:
+
+codec: cs47l85@0 {
+ compatible = "cirrus,cs47l85";
+
+ interrupt-controller;
+ #interrupt-cells = <2>;
+ interrupts = <&host_irq1>;
+ interrupt-parent = <&gic>;
+};
diff --git a/MAINTAINERS b/MAINTAINERS
index 1207c9c..a06701f 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3266,10 +3266,13 @@ L: [email protected]
T: git https://github.com/CirrusLogic/linux-drivers.git
W: https://github.com/CirrusLogic/linux-drivers/wiki
S: Supported
+F: Documentation/devicetree/bindings/interrupt-controller/cirrus,madera.txt
F: Documentation/devicetree/bindings/mfd/madera.txt
F: Documentation/devicetree/bindings/regulator/madera*
+F: include/linux/irqchip/irq-madera*
F: include/linux/mfd/madera/*
F: include/linux/regulator/madera*
+F: drivers/irqchip/irq-madera*
F: drivers/mfd/madera*
F: drivers/mfd/cs47l*
F: drivers/regulator/madera*
diff --git a/drivers/irqchip/Kconfig b/drivers/irqchip/Kconfig
index 8162121..9c5eae7 100644
--- a/drivers/irqchip/Kconfig
+++ b/drivers/irqchip/Kconfig
@@ -125,6 +125,11 @@ config IMGPDC_IRQ
select GENERIC_IRQ_CHIP
select IRQ_DOMAIN
+config MADERA_IRQ
+ bool
+ select REGMAP_IRQ
+ default y if MFD_MADERA=y
+
config IRQ_MIPS_CPU
bool
select GENERIC_IRQ_CHIP
diff --git a/drivers/irqchip/Makefile b/drivers/irqchip/Makefile
index 152bc40..bcc2a8f 100644
--- a/drivers/irqchip/Makefile
+++ b/drivers/irqchip/Makefile
@@ -16,6 +16,7 @@ obj-$(CONFIG_ARCH_S3C24XX) += irq-s3c24xx.o
obj-$(CONFIG_DW_APB_ICTL) += irq-dw-apb-ictl.o
obj-$(CONFIG_METAG) += irq-metag-ext.o
obj-$(CONFIG_METAG_PERFCOUNTER_IRQS) += irq-metag.o
+obj-$(CONFIG_MADERA_IRQ) += irq-madera.o
obj-$(CONFIG_ARCH_MOXART) += irq-moxart.o
obj-$(CONFIG_CLPS711X_IRQCHIP) += irq-clps711x.o
obj-$(CONFIG_OR1K_PIC) += irq-or1k-pic.o
diff --git a/drivers/irqchip/irq-madera.c b/drivers/irqchip/irq-madera.c
new file mode 100644
index 0000000..461cbb9
--- /dev/null
+++ b/drivers/irqchip/irq-madera.c
@@ -0,0 +1,349 @@
+/*
+ * Interrupt support for Cirrus Logic Madera codecs
+ *
+ * Copyright 2016-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/module.h>
+#include <linux/gpio.h>
+#include <linux/interrupt.h>
+#include <linux/irq.h>
+#include <linux/irqdomain.h>
+#include <linux/pm_runtime.h>
+#include <linux/regmap.h>
+#include <linux/slab.h>
+#include <linux/of.h>
+#include <linux/of_device.h>
+#include <linux/of_gpio.h>
+#include <linux/of_irq.h>
+#include <linux/irqchip/irq-madera.h>
+#include <linux/irqchip/irq-madera-pdata.h>
+#include <linux/mfd/madera/core.h>
+#include <linux/mfd/madera/pdata.h>
+#include <linux/mfd/madera/registers.h>
+
+struct madera_irq_priv {
+ struct device *dev;
+ int irq;
+ struct regmap_irq_chip_data *irq_data;
+ struct madera *madera;
+};
+
+static const struct regmap_irq madera_irqs[MADERA_NUM_IRQ] = {
+ [MADERA_IRQ_FLL1_LOCK] = { .reg_offset = 0,
+ .mask = MADERA_FLL1_LOCK_EINT1 },
+ [MADERA_IRQ_FLL2_LOCK] = { .reg_offset = 0,
+ .mask = MADERA_FLL2_LOCK_EINT1 },
+ [MADERA_IRQ_FLL3_LOCK] = { .reg_offset = 0,
+ .mask = MADERA_FLL3_LOCK_EINT1 },
+ [MADERA_IRQ_FLLAO_LOCK] = { .reg_offset = 0,
+ .mask = MADERA_FLLAO_LOCK_EINT1 },
+
+ [MADERA_IRQ_MICDET1] = { .reg_offset = 4,
+ .mask = MADERA_MICDET1_EINT1 },
+ [MADERA_IRQ_MICDET2] = { .reg_offset = 4,
+ .mask = MADERA_MICDET2_EINT1 },
+ [MADERA_IRQ_HPDET] = { .reg_offset = 4,
+ .mask = MADERA_HPDET_EINT1 },
+
+ [MADERA_IRQ_MICD_CLAMP_RISE] = { .reg_offset = 5,
+ .mask = MADERA_MICD_CLAMP_RISE_EINT1 },
+ [MADERA_IRQ_MICD_CLAMP_FALL] = { .reg_offset = 5,
+ .mask = MADERA_MICD_CLAMP_FALL_EINT1 },
+ [MADERA_IRQ_JD1_FALL] = { .reg_offset = 5,
+ .mask = MADERA_JD1_FALL_EINT1 },
+ [MADERA_IRQ_JD1_RISE] = { .reg_offset = 5,
+ .mask = MADERA_JD1_RISE_EINT1 },
+
+ [MADERA_IRQ_ASRC2_IN1_LOCK] = { .reg_offset = 7,
+ .mask = MADERA_ASRC2_IN1_LOCK_EINT1 },
+ [MADERA_IRQ_ASRC2_IN2_LOCK] = { .reg_offset = 7,
+ .mask = MADERA_ASRC2_IN2_LOCK_EINT1 },
+ [MADERA_IRQ_ASRC1_IN1_LOCK] = { .reg_offset = 7,
+ .mask = MADERA_ASRC1_IN1_LOCK_EINT1 },
+ [MADERA_IRQ_ASRC1_IN2_LOCK] = { .reg_offset = 7,
+ .mask = MADERA_ASRC1_IN2_LOCK_EINT1 },
+
+ [MADERA_IRQ_DRC2_SIG_DET] = { .reg_offset = 7,
+ .mask = MADERA_DRC2_SIG_DET_EINT1 },
+ [MADERA_IRQ_DRC1_SIG_DET] = { .reg_offset = 7,
+ .mask = MADERA_DRC1_SIG_DET_EINT1 },
+
+ [MADERA_IRQ_DSP_IRQ1] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ1_EINT1 },
+ [MADERA_IRQ_DSP_IRQ2] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ2_EINT1 },
+ [MADERA_IRQ_DSP_IRQ3] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ3_EINT1 },
+ [MADERA_IRQ_DSP_IRQ4] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ4_EINT1 },
+ [MADERA_IRQ_DSP_IRQ5] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ5_EINT1 },
+ [MADERA_IRQ_DSP_IRQ6] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ6_EINT1 },
+ [MADERA_IRQ_DSP_IRQ7] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ7_EINT1 },
+ [MADERA_IRQ_DSP_IRQ8] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ8_EINT1 },
+ [MADERA_IRQ_DSP_IRQ9] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ9_EINT1 },
+ [MADERA_IRQ_DSP_IRQ10] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ10_EINT1 },
+ [MADERA_IRQ_DSP_IRQ11] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ11_EINT1 },
+ [MADERA_IRQ_DSP_IRQ12] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ12_EINT1 },
+ [MADERA_IRQ_DSP_IRQ13] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ13_EINT1 },
+ [MADERA_IRQ_DSP_IRQ14] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ14_EINT1 },
+ [MADERA_IRQ_DSP_IRQ15] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ15_EINT1 },
+ [MADERA_IRQ_DSP_IRQ16] = { .reg_offset = 9,
+ .mask = MADERA_DSP_IRQ16_EINT1 },
+
+ [MADERA_IRQ_HP3R_SC] = { .reg_offset = 10,
+ .mask = MADERA_HP3R_SC_EINT1 },
+ [MADERA_IRQ_HP3L_SC] = { .reg_offset = 10,
+ .mask = MADERA_HP3L_SC_EINT1 },
+ [MADERA_IRQ_HP2R_SC] = { .reg_offset = 10,
+ .mask = MADERA_HP2R_SC_EINT1 },
+ [MADERA_IRQ_HP2L_SC] = { .reg_offset = 10,
+ .mask = MADERA_HP2L_SC_EINT1 },
+ [MADERA_IRQ_HP1R_SC] = { .reg_offset = 10,
+ .mask = MADERA_HP1R_SC_EINT1 },
+ [MADERA_IRQ_HP1L_SC] = { .reg_offset = 10,
+ .mask = MADERA_HP1L_SC_EINT1 },
+
+ [MADERA_IRQ_SPK_OVERHEAT_WARN] = { .reg_offset = 13,
+ .mask = MADERA_SPK_OVERHEAT_WARN_EINT1 },
+ [MADERA_IRQ_SPK_OVERHEAT] = { .reg_offset = 13,
+ .mask = MADERA_SPK_SHUTDOWN_EINT1 },
+
+ [MADERA_IRQ_DSP1_BUS_ERROR] = { .reg_offset = 31,
+ .mask = MADERA_ADSP_ERROR_STATUS_DSP1 },
+ [MADERA_IRQ_DSP2_BUS_ERROR] = { .reg_offset = 31,
+ .mask = MADERA_ADSP_ERROR_STATUS_DSP2 },
+ [MADERA_IRQ_DSP3_BUS_ERROR] = { .reg_offset = 31,
+ .mask = MADERA_ADSP_ERROR_STATUS_DSP3 },
+ [MADERA_IRQ_DSP4_BUS_ERROR] = { .reg_offset = 31,
+ .mask = MADERA_ADSP_ERROR_STATUS_DSP4 },
+ [MADERA_IRQ_DSP5_BUS_ERROR] = { .reg_offset = 31,
+ .mask = MADERA_ADSP_ERROR_STATUS_DSP5 },
+ [MADERA_IRQ_DSP6_BUS_ERROR] = { .reg_offset = 31,
+ .mask = MADERA_ADSP_ERROR_STATUS_DSP6 },
+ [MADERA_IRQ_DSP7_BUS_ERROR] = { .reg_offset = 31,
+ .mask = MADERA_ADSP_ERROR_STATUS_DSP7 },
+};
+
+static const struct regmap_irq_chip madera_irq = {
+ .name = "madera IRQ",
+ .status_base = MADERA_IRQ1_STATUS_2,
+ .mask_base = MADERA_IRQ1_MASK_2,
+ .ack_base = MADERA_IRQ1_STATUS_2,
+ .runtime_pm = true, /* codec must be resumed to read IRQ status */
+ .num_regs = 32,
+ .irqs = madera_irqs,
+ .num_irqs = ARRAY_SIZE(madera_irqs),
+};
+
+static int madera_map_irq(struct madera *madera, int irq)
+{
+ struct madera_irq_priv *priv = dev_get_drvdata(madera->irq_dev);
+
+ if (irq < 0)
+ return irq;
+
+ if (!madera->irq_dev)
+ return -ENOENT;
+
+ return regmap_irq_get_virq(priv->irq_data, irq);
+}
+
+int madera_request_irq(struct madera *madera, int irq, const char *name,
+ irq_handler_t handler, void *data)
+{
+ irq = madera_map_irq(madera, irq);
+
+ if (irq < 0)
+ return irq;
+
+ return request_threaded_irq(irq, NULL, handler, IRQF_ONESHOT, name,
+ data);
+
+}
+EXPORT_SYMBOL_GPL(madera_request_irq);
+
+void madera_free_irq(struct madera *madera, int irq, void *data)
+{
+ irq = madera_map_irq(madera, irq);
+
+ if (irq < 0)
+ return;
+
+ free_irq(irq, data);
+}
+EXPORT_SYMBOL_GPL(madera_free_irq);
+
+int madera_set_irq_wake(struct madera *madera, int irq, int on)
+{
+ irq = madera_map_irq(madera, irq);
+
+ if (irq < 0)
+ return irq;
+
+ return irq_set_irq_wake(irq, on);
+}
+EXPORT_SYMBOL_GPL(madera_set_irq_wake);
+
+#ifdef CONFIG_PM_SLEEP
+static int madera_suspend_noirq(struct device *dev)
+{
+ struct madera_irq_priv *priv = dev_get_drvdata(dev);
+
+ dev_dbg(priv->dev, "No IRQ suspend, reenabling IRQ\n");
+
+ enable_irq(priv->irq);
+
+ return 0;
+}
+
+static int madera_suspend(struct device *dev)
+{
+ struct madera_irq_priv *priv = dev_get_drvdata(dev);
+
+ dev_dbg(priv->dev, "Suspend, disabling IRQ\n");
+
+ disable_irq(priv->irq);
+
+ return 0;
+}
+
+static int madera_resume_noirq(struct device *dev)
+{
+ struct madera_irq_priv *priv = dev_get_drvdata(dev);
+
+ dev_dbg(priv->dev, "No IRQ resume, disabling IRQ\n");
+
+ disable_irq(priv->irq);
+
+ return 0;
+}
+
+static int madera_resume(struct device *dev)
+{
+ struct madera_irq_priv *priv = dev_get_drvdata(dev);
+
+ dev_dbg(priv->dev, "Resume, reenabling IRQ\n");
+
+ enable_irq(priv->irq);
+
+ return 0;
+}
+#endif
+
+static const struct dev_pm_ops madera_irq_pm_ops = {
+ SET_SYSTEM_SLEEP_PM_OPS(madera_suspend, madera_resume)
+ SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(madera_suspend_noirq,
+ madera_resume_noirq)
+};
+
+static int madera_irq_probe(struct platform_device *pdev)
+{
+ struct madera *madera = dev_get_drvdata(pdev->dev.parent);
+ struct madera_irq_priv *priv;
+ struct irq_data *irq_data;
+ unsigned int irq_flags = madera->pdata.irqchip.irq_flags;
+ int ret;
+
+ dev_dbg(&pdev->dev, "probe\n");
+
+ priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
+ if (!priv)
+ return -ENOMEM;
+
+ priv->dev = &pdev->dev;
+ priv->madera = madera;
+ priv->irq = madera->irq;
+
+ /* Read the flags from the interrupt controller if not specified */
+ if (!irq_flags) {
+ irq_data = irq_get_irq_data(priv->irq);
+ if (!irq_data) {
+ dev_err(priv->dev, "Invalid IRQ: %d\n", priv->irq);
+ return -EINVAL;
+ }
+
+ irq_flags = irqd_get_trigger_type(irq_data);
+ if (irq_flags == IRQ_TYPE_NONE)
+ irq_flags = IRQF_TRIGGER_LOW; /* Device default */
+ }
+
+ if (irq_flags & (IRQF_TRIGGER_RISING | IRQF_TRIGGER_FALLING)) {
+ dev_err(priv->dev,
+ "Host interrupt not level-triggered\n");
+ return -EINVAL;
+ }
+
+ if (irq_flags & IRQF_TRIGGER_HIGH) {
+ ret = regmap_update_bits(madera->regmap, MADERA_IRQ1_CTRL,
+ MADERA_IRQ_POL_MASK, 0);
+ if (ret) {
+ dev_err(priv->dev,
+ "Failed to set IRQ polarity: %d\n", ret);
+ return ret;
+ }
+ }
+
+ /*
+ * NOTE: regmap registers this against the OF node of the parent of
+ * the regmap - that is, against the mfd driver
+ */
+ ret = regmap_add_irq_chip(madera->regmap, priv->irq, IRQF_ONESHOT, 0,
+ &madera_irq, &priv->irq_data);
+ if (ret) {
+ dev_err(priv->dev, "add_irq_chip failed: %d\n", ret);
+ return ret;
+ }
+
+ platform_set_drvdata(pdev, priv);
+ madera->irq_dev = priv->dev;
+
+ return 0;
+}
+
+static int madera_irq_remove(struct platform_device *pdev)
+{
+ struct madera_irq_priv *priv = platform_get_drvdata(pdev);
+
+ /*
+ * The IRQ is disabled by the parent MFD driver before
+ * it starts cleaning up all child drivers
+ */
+
+ priv->madera->irq_dev = NULL;
+
+ regmap_del_irq_chip(priv->irq, priv->irq_data);
+ free_irq(priv->irq, priv);
+
+ return 0;
+}
+
+static struct platform_driver madera_irq_driver = {
+ .probe = madera_irq_probe,
+ .remove = madera_irq_remove,
+ .driver = {
+ .name = "madera-irq",
+ .pm = &madera_irq_pm_ops,
+ }
+};
+
+module_platform_driver(madera_irq_driver);
+
+MODULE_DESCRIPTION("Madera IRQ driver");
+MODULE_AUTHOR("Richard Fitzgerald <[email protected]>");
+MODULE_LICENSE("GPL v2");
diff --git a/include/linux/irqchip/irq-madera-pdata.h b/include/linux/irqchip/irq-madera-pdata.h
new file mode 100644
index 0000000..5928e81
--- /dev/null
+++ b/include/linux/irqchip/irq-madera-pdata.h
@@ -0,0 +1,19 @@
+/*
+ * Platform data for Cirrus Logic Madera codecs irqchip driver
+ *
+ * Copyright 2016 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef IRQCHIP_MADERA_PDATA_H
+#define IRQCHIP_MADERA_PDATA_H
+
+struct madera_irqchip_pdata {
+ /** Mode for primary IRQ (defaults to active low) */
+ unsigned int irq_flags;
+};
+
+#endif
diff --git a/include/linux/irqchip/irq-madera.h b/include/linux/irqchip/irq-madera.h
new file mode 100644
index 0000000..72dc5e6
--- /dev/null
+++ b/include/linux/irqchip/irq-madera.h
@@ -0,0 +1,96 @@
+/*
+ * Interrupt support for Cirrus Logic Madera codecs
+ *
+ * Copyright 2016-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef IRQCHIP_MADERA_H
+#define IRQCHIP_MADERA_H
+
+#define MADERA_IRQ_FLL1_LOCK 0
+#define MADERA_IRQ_FLL2_LOCK 1
+#define MADERA_IRQ_FLL3_LOCK 2
+#define MADERA_IRQ_FLLAO_LOCK 3
+#define MADERA_IRQ_CLK_SYS_ERR 4
+#define MADERA_IRQ_CLK_ASYNC_ERR 5
+#define MADERA_IRQ_CLK_DSP_ERR 6
+#define MADERA_IRQ_HPDET 7
+#define MADERA_IRQ_MICDET1 8
+#define MADERA_IRQ_MICDET2 9
+#define MADERA_IRQ_JD1_RISE 10
+#define MADERA_IRQ_JD1_FALL 11
+#define MADERA_IRQ_JD2_RISE 12
+#define MADERA_IRQ_JD2_FALL 13
+#define MADERA_IRQ_MICD_CLAMP_RISE 14
+#define MADERA_IRQ_MICD_CLAMP_FALL 15
+#define MADERA_IRQ_DRC2_SIG_DET 16
+#define MADERA_IRQ_DRC1_SIG_DET 17
+#define MADERA_IRQ_ASRC1_IN1_LOCK 18
+#define MADERA_IRQ_ASRC1_IN2_LOCK 19
+#define MADERA_IRQ_ASRC2_IN1_LOCK 20
+#define MADERA_IRQ_ASRC2_IN2_LOCK 21
+#define MADERA_IRQ_DSP_IRQ1 22
+#define MADERA_IRQ_DSP_IRQ2 23
+#define MADERA_IRQ_DSP_IRQ3 24
+#define MADERA_IRQ_DSP_IRQ4 25
+#define MADERA_IRQ_DSP_IRQ5 26
+#define MADERA_IRQ_DSP_IRQ6 27
+#define MADERA_IRQ_DSP_IRQ7 28
+#define MADERA_IRQ_DSP_IRQ8 29
+#define MADERA_IRQ_DSP_IRQ9 30
+#define MADERA_IRQ_DSP_IRQ10 31
+#define MADERA_IRQ_DSP_IRQ11 32
+#define MADERA_IRQ_DSP_IRQ12 33
+#define MADERA_IRQ_DSP_IRQ13 34
+#define MADERA_IRQ_DSP_IRQ14 35
+#define MADERA_IRQ_DSP_IRQ15 36
+#define MADERA_IRQ_DSP_IRQ16 37
+#define MADERA_IRQ_HP1L_SC 38
+#define MADERA_IRQ_HP1R_SC 39
+#define MADERA_IRQ_HP2L_SC 40
+#define MADERA_IRQ_HP2R_SC 41
+#define MADERA_IRQ_HP3L_SC 42
+#define MADERA_IRQ_HP3R_SC 43
+#define MADERA_IRQ_SPKOUTL_SC 44
+#define MADERA_IRQ_SPKOUTR_SC 45
+#define MADERA_IRQ_HP1L_ENABLE_DONE 46
+#define MADERA_IRQ_HP1R_ENABLE_DONE 47
+#define MADERA_IRQ_HP2L_ENABLE_DONE 48
+#define MADERA_IRQ_HP2R_ENABLE_DONE 49
+#define MADERA_IRQ_HP3L_ENABLE_DONE 50
+#define MADERA_IRQ_HP3R_ENABLE_DONE 51
+#define MADERA_IRQ_SPKOUTL_ENABLE_DONE 52
+#define MADERA_IRQ_SPKOUTR_ENABLE_DONE 53
+#define MADERA_IRQ_SPK_SHUTDOWN 54
+#define MADERA_IRQ_SPK_OVERHEAT 55
+#define MADERA_IRQ_SPK_OVERHEAT_WARN 56
+#define MADERA_IRQ_GPIO1 57
+#define MADERA_IRQ_GPIO2 58
+#define MADERA_IRQ_GPIO3 59
+#define MADERA_IRQ_GPIO4 60
+#define MADERA_IRQ_GPIO5 61
+#define MADERA_IRQ_GPIO6 62
+#define MADERA_IRQ_GPIO7 63
+#define MADERA_IRQ_GPIO8 64
+#define MADERA_IRQ_DSP1_BUS_ERROR 65
+#define MADERA_IRQ_DSP2_BUS_ERROR 66
+#define MADERA_IRQ_DSP3_BUS_ERROR 67
+#define MADERA_IRQ_DSP4_BUS_ERROR 68
+#define MADERA_IRQ_DSP5_BUS_ERROR 69
+#define MADERA_IRQ_DSP6_BUS_ERROR 70
+#define MADERA_IRQ_DSP7_BUS_ERROR 71
+
+#define MADERA_NUM_IRQ 72
+
+struct madera;
+
+int madera_request_irq(struct madera *madera, int irq, const char *name,
+ irq_handler_t handler, void *data);
+void madera_free_irq(struct madera *madera, int irq, void *data);
+int madera_set_irq_wake(struct madera *madera, int irq, int on);
+
+#endif
--
1.9.1
This patch adds a driver for the internal LDO1 regulator on
some Cirrus Logic Madera class codecs.
Signed-off-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
---
.../devicetree/bindings/regulator/madera-ldo1.txt | 29 +++
MAINTAINERS | 3 +
drivers/regulator/Kconfig | 8 +
drivers/regulator/Makefile | 1 +
drivers/regulator/madera-ldo1.c | 198 +++++++++++++++++++++
include/linux/regulator/madera-ldo1.h | 24 +++
6 files changed, 263 insertions(+)
create mode 100644 Documentation/devicetree/bindings/regulator/madera-ldo1.txt
create mode 100644 drivers/regulator/madera-ldo1.c
create mode 100644 include/linux/regulator/madera-ldo1.h
diff --git a/Documentation/devicetree/bindings/regulator/madera-ldo1.txt b/Documentation/devicetree/bindings/regulator/madera-ldo1.txt
new file mode 100644
index 0000000..688f21d
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/madera-ldo1.txt
@@ -0,0 +1,29 @@
+Cirrus Logic Madera class audio codecs LDO1 regulator driver
+
+Only required if you are using the codec internal LDO1 regulator.
+This is a subnode of the parent mfd node.
+
+See also the core bindings for the parent MFD driver:
+See Documentation/devicetree/bindings/mfd/madera.txt
+
+Required properties:
+ - compatible : must be "cirrus,madera-ldo1"
+ - LDOVDD-supply : Power supply for the LDO1 regulator.
+
+ - enable-gpio : GPIO to use to enable/disable the regulator.
+ As defined in bindings/gpio.txt.
+
+Optional subnodes:
+ Standard regulator bindings as described in bindings/regulator/regulator.txt
+
+Example:
+
+codec: cs47l85@0 {
+ compatible = "cirrus,cs47l85";
+
+ ldo1 {
+ compatible = "cirrus,madera-ldo1";
+ LDOVDD-supply = <&pmic_vdd1>;
+ enable-gpio = <&gpio 0>;
+ };
+};
diff --git a/MAINTAINERS b/MAINTAINERS
index d28e53f..1207c9c 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3267,9 +3267,12 @@ T: git https://github.com/CirrusLogic/linux-drivers.git
W: https://github.com/CirrusLogic/linux-drivers/wiki
S: Supported
F: Documentation/devicetree/bindings/mfd/madera.txt
+F: Documentation/devicetree/bindings/regulator/madera*
F: include/linux/mfd/madera/*
+F: include/linux/regulator/madera*
F: drivers/mfd/madera*
F: drivers/mfd/cs47l*
+F: drivers/regulator/madera*
CLEANCACHE API
M: Konrad Rzeszutek Wilk <[email protected]>
diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index be06eb2..c96d9a6 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -368,6 +368,14 @@ config REGULATOR_LTC3676
This enables support for the LTC3676
8-output regulators controlled via I2C.
+config REGULATOR_MADERA_LDO1
+ tristate "Cirrus Logic Madera codecs LDO1 regulator"
+ depends on MFD_MADERA
+ help
+ If you want to use the internal LDO1 regulator on CS47L85 and WM1840
+ to supply DCVDD you must include this driver. If you are using an
+ external DCVDD regulator you do not need this driver.
+
config REGULATOR_MAX14577
tristate "Maxim 14577/77836 regulator"
depends on MFD_MAX14577
diff --git a/drivers/regulator/Makefile b/drivers/regulator/Makefile
index ef7725e..2db3592 100644
--- a/drivers/regulator/Makefile
+++ b/drivers/regulator/Makefile
@@ -49,6 +49,7 @@ obj-$(CONFIG_REGULATOR_LP8788) += lp8788-ldo.o
obj-$(CONFIG_REGULATOR_LP8755) += lp8755.o
obj-$(CONFIG_REGULATOR_LTC3589) += ltc3589.o
obj-$(CONFIG_REGULATOR_LTC3676) += ltc3676.o
+obj-$(CONFIG_REGULATOR_MADERA_LDO1) += madera-ldo1.o
obj-$(CONFIG_REGULATOR_MAX14577) += max14577-regulator.o
obj-$(CONFIG_REGULATOR_MAX1586) += max1586.o
obj-$(CONFIG_REGULATOR_MAX77620) += max77620-regulator.o
diff --git a/drivers/regulator/madera-ldo1.c b/drivers/regulator/madera-ldo1.c
new file mode 100644
index 0000000..6504d6f
--- /dev/null
+++ b/drivers/regulator/madera-ldo1.c
@@ -0,0 +1,198 @@
+/*
+ * madera-ldo1.c -- Driver for the LDO1 regulator on Madera codecs
+ *
+ * Copyright 2015-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/device.h>
+#include <linux/err.h>
+#include <linux/gpio.h>
+#include <linux/module.h>
+#include <linux/of.h>
+#include <linux/of_gpio.h>
+#include <linux/platform_device.h>
+#include <linux/regulator/driver.h>
+#include <linux/regulator/machine.h>
+#include <linux/regulator/of_regulator.h>
+
+#include <linux/regulator/madera-ldo1.h>
+
+#include <linux/mfd/madera/core.h>
+#include <linux/mfd/madera/pdata.h>
+#include <linux/mfd/madera/registers.h>
+
+struct madera_ldo1 {
+ struct regulator_dev *regulator;
+
+ struct regulator_consumer_supply supply;
+ struct regulator_init_data init_data;
+};
+
+static const struct regulator_ops madera_ldo1_ops = {
+ .list_voltage = regulator_list_voltage_linear,
+ .map_voltage = regulator_map_voltage_linear,
+ .get_voltage_sel = regulator_get_voltage_sel_regmap,
+ .set_voltage_sel = regulator_set_voltage_sel_regmap,
+};
+
+static const struct regulator_desc madera_ldo1 = {
+ .name = "LDO1",
+ .supply_name = "LDOVDD",
+ .type = REGULATOR_VOLTAGE,
+ .ops = &madera_ldo1_ops,
+
+ .vsel_reg = MADERA_LDO1_CONTROL_1,
+ .vsel_mask = MADERA_LDO1_VSEL_MASK,
+ .min_uV = 900000,
+ .uV_step = 25000,
+ .n_voltages = 13,
+ .enable_time = 3000,
+
+ .owner = THIS_MODULE,
+};
+
+static const struct regulator_init_data madera_ldo1_default = {
+ .constraints = {
+ .min_uV = 1200000,
+ .max_uV = 1200000,
+ .valid_ops_mask = REGULATOR_CHANGE_STATUS,
+ },
+ .num_consumer_supplies = 1,
+};
+
+static int madera_ldo1_of_get_pdata(struct madera *madera,
+ struct regulator_config *config,
+ const struct regulator_desc *desc)
+{
+ struct madera_pdata *pdata = &madera->pdata;
+ struct madera_ldo1 *ldo1 = config->driver_data;
+ struct device_node *dcvdd_node;
+ struct regulator_init_data *init_data;
+
+ dcvdd_node = of_parse_phandle(madera->dev->of_node, "DCVDD-supply", 0);
+
+ init_data = of_get_regulator_init_data(config->dev,
+ config->dev->of_node,
+ desc);
+ if (init_data) {
+ init_data->consumer_supplies = &ldo1->supply;
+ init_data->num_consumer_supplies = 1;
+ pdata->ldo1.init_data = init_data;
+
+ /* Check whether we're supplying the codec's DCVDD */
+ if (dcvdd_node && dcvdd_node != config->dev->of_node)
+ madera->internal_dcvdd = false;
+ } else if (dcvdd_node) {
+ madera->internal_dcvdd = false;
+ }
+
+ of_node_put(dcvdd_node);
+
+ if (madera->internal_dcvdd) {
+ pdata->ldo1.ldoena = of_get_named_gpio(madera->dev->of_node,
+ "enable-gpio", 0);
+ if (pdata->ldo1.ldoena < 0)
+ if (pdata->ldo1.ldoena != -ENOENT)
+ dev_warn(madera->dev,
+ "Malformed enable-gpio ignored: %d\n",
+ pdata->ldo1.ldoena);
+ }
+
+ return 0;
+}
+
+static int madera_ldo1_probe(struct platform_device *pdev)
+{
+ struct madera *madera = dev_get_drvdata(pdev->dev.parent);
+ const struct regulator_desc *desc;
+ struct regulator_config config = { };
+ struct madera_ldo1 *ldo1;
+ int ret;
+
+ madera->internal_dcvdd = true;
+
+ ldo1 = devm_kzalloc(&pdev->dev, sizeof(*ldo1), GFP_KERNEL);
+ if (!ldo1)
+ return -ENOMEM;
+
+ /*
+ * Since the chip usually supplies itself we provide some
+ * default init_data for it. This will be overridden with
+ * platform data if provided.
+ */
+ desc = &madera_ldo1;
+ ldo1->init_data = madera_ldo1_default;
+
+ ldo1->init_data.consumer_supplies = &ldo1->supply;
+ ldo1->supply.supply = "DCVDD";
+ ldo1->supply.dev_name = dev_name(madera->dev);
+
+ config.dev = &pdev->dev;
+ config.of_node = config.dev->of_node;
+ config.driver_data = ldo1;
+ config.regmap = madera->regmap;
+
+ /* pdata defaults to 0 if not explicitly set. Convert to invalid. */
+ if (madera->pdata.ldo1.ldoena == 0)
+ madera->pdata.ldo1.ldoena = -EINVAL;
+
+ if (IS_ENABLED(CONFIG_OF)) {
+ if (!dev_get_platdata(madera->dev)) {
+ ret = madera_ldo1_of_get_pdata(madera, &config, desc);
+ if (ret < 0)
+ return ret;
+ }
+ }
+
+ if (madera->pdata.ldo1.init_data)
+ ldo1->init_data = *madera->pdata.ldo1.init_data;
+
+ if (gpio_is_valid(madera->pdata.ldo1.ldoena)) {
+ config.ena_gpio = madera->pdata.ldo1.ldoena;
+ config.ena_gpio_initialized = true;
+ } else {
+ dev_warn(madera->dev,
+ "Running without LDOENA is not recommended\n");
+ }
+ config.ena_gpio_flags = GPIOF_OUT_INIT_LOW;
+ config.init_data = &ldo1->init_data;
+
+ /*
+ * LDO1 can only be used to supply DCVDD so if it has no
+ * consumers then DCVDD is supplied externally.
+ */
+ if (config.init_data->num_consumer_supplies == 0)
+ madera->internal_dcvdd = false;
+
+ ldo1->regulator = devm_regulator_register(&pdev->dev, desc, &config);
+
+ of_node_put(config.of_node);
+
+ if (IS_ERR(ldo1->regulator)) {
+ ret = PTR_ERR(ldo1->regulator);
+ dev_err(madera->dev, "Failed to register LDO1 supply: %d\n",
+ ret);
+ return ret;
+ }
+
+ return 0;
+}
+
+static struct platform_driver madera_ldo1_driver = {
+ .probe = madera_ldo1_probe,
+ .driver = {
+ .name = "madera-ldo1",
+ },
+};
+
+module_platform_driver(madera_ldo1_driver);
+
+MODULE_DESCRIPTION("Madera LDO1 driver");
+MODULE_AUTHOR("Charles Keepax <[email protected]>");
+MODULE_AUTHOR("Richard Fitzgerald <[email protected]>");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:madera-ldo1");
diff --git a/include/linux/regulator/madera-ldo1.h b/include/linux/regulator/madera-ldo1.h
new file mode 100644
index 0000000..9435021
--- /dev/null
+++ b/include/linux/regulator/madera-ldo1.h
@@ -0,0 +1,24 @@
+/*
+ * Platform data for Madera codecs LDO1 regulator
+ *
+ * Copyright 2016-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef MADERA_LDO1_H
+#define MADERA_LDO1_H
+
+struct regulator_init_data;
+
+struct madera_ldo1_pdata {
+ /** GPIO controlling LODENA, if any */
+ int ldoena;
+
+ /** Regulator configuration for LDO1 */
+ const struct regulator_init_data *init_data;
+};
+
+#endif
--
1.9.1
Adds support for ADSP2V2 cores. Primary differences are that
they use a 32-bit register map compared to the 16-bit register
map of ADSP2V1, and there are some changes to clocking control.
Signed-off-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
---
sound/soc/codecs/wm_adsp.c | 187 ++++++++++++++++++++++++++++++++++-----------
sound/soc/codecs/wm_adsp.h | 1 +
2 files changed, 145 insertions(+), 43 deletions(-)
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index bbdb72f..a9acf22 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -112,17 +112,22 @@
#define ADSP1_CLK_SEL_SHIFT 0 /* CLK_SEL_ENA */
#define ADSP1_CLK_SEL_WIDTH 3 /* CLK_SEL_ENA */
-#define ADSP2_CONTROL 0x0
-#define ADSP2_CLOCKING 0x1
-#define ADSP2_STATUS1 0x4
-#define ADSP2_WDMA_CONFIG_1 0x30
-#define ADSP2_WDMA_CONFIG_2 0x31
-#define ADSP2_RDMA_CONFIG_1 0x34
-
-#define ADSP2_SCRATCH0 0x40
-#define ADSP2_SCRATCH1 0x41
-#define ADSP2_SCRATCH2 0x42
-#define ADSP2_SCRATCH3 0x43
+#define ADSP2_CONTROL 0x0
+#define ADSP2_CLOCKING 0x1
+#define ADSP2V2_CLOCKING 0x2
+#define ADSP2_STATUS1 0x4
+#define ADSP2_WDMA_CONFIG_1 0x30
+#define ADSP2_WDMA_CONFIG_2 0x31
+#define ADSP2V2_WDMA_CONFIG_2 0x32
+#define ADSP2_RDMA_CONFIG_1 0x34
+
+#define ADSP2_SCRATCH0 0x40
+#define ADSP2_SCRATCH1 0x41
+#define ADSP2_SCRATCH2 0x42
+#define ADSP2_SCRATCH3 0x43
+
+#define ADSP2V2_SCRATCH0_1 0x40
+#define ADSP2V2_SCRATCH2_3 0x42
/*
* ADSP2 Control
@@ -153,6 +158,17 @@
#define ADSP2_CLK_SEL_WIDTH 3 /* CLK_SEL_ENA */
/*
+ * ADSP2V2 clocking
+ */
+#define ADSP2V2_CLK_SEL_MASK 0x70000 /* CLK_SEL_ENA */
+#define ADSP2V2_CLK_SEL_SHIFT 16 /* CLK_SEL_ENA */
+#define ADSP2V2_CLK_SEL_WIDTH 3 /* CLK_SEL_ENA */
+
+#define ADSP2V2_RATE_MASK 0x7800 /* DSP_RATE */
+#define ADSP2V2_RATE_SHIFT 11 /* DSP_RATE */
+#define ADSP2V2_RATE_WIDTH 4 /* DSP_RATE */
+
+/*
* ADSP2 Status 1
*/
#define ADSP2_RAM_RDY 0x0001
@@ -683,6 +699,9 @@ static int wm_adsp_fw_put(struct snd_kcontrol *kcontrol,
SOC_ENUM_SINGLE(0, 1, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
SOC_ENUM_SINGLE(0, 2, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
SOC_ENUM_SINGLE(0, 3, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
+ SOC_ENUM_SINGLE(0, 4, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
+ SOC_ENUM_SINGLE(0, 5, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
+ SOC_ENUM_SINGLE(0, 6, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
};
const struct snd_kcontrol_new wm_adsp_fw_controls[] = {
@@ -694,6 +713,12 @@ static int wm_adsp_fw_put(struct snd_kcontrol *kcontrol,
wm_adsp_fw_get, wm_adsp_fw_put),
SOC_ENUM_EXT("DSP4 Firmware", wm_adsp_fw_enum[3],
wm_adsp_fw_get, wm_adsp_fw_put),
+ SOC_ENUM_EXT("DSP5 Firmware", wm_adsp_fw_enum[4],
+ wm_adsp_fw_get, wm_adsp_fw_put),
+ SOC_ENUM_EXT("DSP6 Firmware", wm_adsp_fw_enum[5],
+ wm_adsp_fw_get, wm_adsp_fw_put),
+ SOC_ENUM_EXT("DSP7 Firmware", wm_adsp_fw_enum[6],
+ wm_adsp_fw_get, wm_adsp_fw_put),
};
EXPORT_SYMBOL_GPL(wm_adsp_fw_controls);
@@ -750,6 +775,29 @@ static void wm_adsp2_show_fw_status(struct wm_adsp *dsp)
be16_to_cpu(scratch[3]));
}
+static void wm_adsp2v2_show_fw_status(struct wm_adsp *dsp)
+{
+ u32 scratch[2];
+ int ret;
+
+ ret = regmap_raw_read(dsp->regmap, dsp->base + ADSP2V2_SCRATCH0_1,
+ scratch, sizeof(scratch));
+
+ if (ret) {
+ adsp_err(dsp, "Failed to read SCRATCH regs: %d\n", ret);
+ return;
+ }
+
+ scratch[0] = be32_to_cpu(scratch[0]);
+ scratch[1] = be32_to_cpu(scratch[1]);
+
+ adsp_dbg(dsp, "FW SCRATCH 0:0x%x 1:0x%x 2:0x%x 3:0x%x\n",
+ scratch[0] & 0xFFFF,
+ scratch[0] >> 16,
+ scratch[1] & 0xFFFF,
+ scratch[1] >> 16);
+}
+
static inline struct wm_coeff_ctl *bytes_ext_to_ctl(struct soc_bytes_ext *ext)
{
return container_of(ext, struct wm_coeff_ctl, bytes_ext);
@@ -2435,10 +2483,17 @@ static int wm_adsp2_ena(struct wm_adsp *dsp)
unsigned int val;
int ret, count;
- ret = regmap_update_bits_async(dsp->regmap, dsp->base + ADSP2_CONTROL,
- ADSP2_SYS_ENA, ADSP2_SYS_ENA);
- if (ret != 0)
- return ret;
+ switch (dsp->rev) {
+ case 0:
+ ret = regmap_update_bits_async(dsp->regmap,
+ dsp->base + ADSP2_CONTROL,
+ ADSP2_SYS_ENA, ADSP2_SYS_ENA);
+ if (ret != 0)
+ return ret;
+ break;
+ default:
+ break;
+ }
/* Wait for the RAM to start, should be near instantaneous */
for (count = 0; count < 10; ++count) {
@@ -2497,11 +2552,17 @@ static void wm_adsp2_boot_work(struct work_struct *work)
if (ret != 0)
goto err_ena;
- /* Turn DSP back off until we are ready to run */
- ret = regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
- ADSP2_SYS_ENA, 0);
- if (ret != 0)
- goto err_ena;
+ switch (dsp->rev) {
+ case 0:
+ /* Turn DSP back off until we are ready to run */
+ ret = regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
+ ADSP2_SYS_ENA, 0);
+ if (ret != 0)
+ goto err_ena;
+ break;
+ default:
+ break;
+ }
dsp->booted = true;
@@ -2523,12 +2584,21 @@ static void wm_adsp2_set_dspclk(struct wm_adsp *dsp, unsigned int freq)
{
int ret;
- ret = regmap_update_bits_async(dsp->regmap,
- dsp->base + ADSP2_CLOCKING,
- ADSP2_CLK_SEL_MASK,
- freq << ADSP2_CLK_SEL_SHIFT);
- if (ret != 0)
- adsp_err(dsp, "Failed to set clock rate: %d\n", ret);
+ switch (dsp->rev) {
+ case 0:
+ ret = regmap_update_bits_async(dsp->regmap,
+ dsp->base + ADSP2_CLOCKING,
+ ADSP2_CLK_SEL_MASK,
+ freq << ADSP2_CLK_SEL_SHIFT);
+ if (ret) {
+ adsp_err(dsp, "Failed to set clock rate: %d\n", ret);
+ return;
+ }
+ break;
+ default:
+ /* clock is handled by parent codec driver */
+ break;
+ }
}
int wm_adsp2_preloader_get(struct snd_kcontrol *kcontrol,
@@ -2664,22 +2734,46 @@ int wm_adsp2_event(struct snd_soc_dapm_widget *w,
wm_adsp_signal_event_controls(dsp, WM_ADSP_FW_EVENT_SHUTDOWN);
/* Log firmware state, it can be useful for analysis */
- wm_adsp2_show_fw_status(dsp);
+ switch (dsp->rev) {
+ case 0:
+ wm_adsp2_show_fw_status(dsp);
+ break;
+ default:
+ wm_adsp2v2_show_fw_status(dsp);
+ break;
+ }
mutex_lock(&dsp->pwr_lock);
dsp->running = false;
- regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
+ regmap_update_bits(dsp->regmap,
+ dsp->base + ADSP2_CONTROL,
ADSP2_CORE_ENA | ADSP2_START, 0);
/* Make sure DMAs are quiesced */
- regmap_write(dsp->regmap, dsp->base + ADSP2_RDMA_CONFIG_1, 0);
- regmap_write(dsp->regmap, dsp->base + ADSP2_WDMA_CONFIG_1, 0);
- regmap_write(dsp->regmap, dsp->base + ADSP2_WDMA_CONFIG_2, 0);
-
- regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
- ADSP2_SYS_ENA, 0);
+ switch (dsp->rev) {
+ case 0:
+ regmap_write(dsp->regmap,
+ dsp->base + ADSP2_RDMA_CONFIG_1, 0);
+ regmap_write(dsp->regmap,
+ dsp->base + ADSP2_WDMA_CONFIG_1, 0);
+ regmap_write(dsp->regmap,
+ dsp->base + ADSP2_WDMA_CONFIG_2, 0);
+
+ regmap_update_bits(dsp->regmap,
+ dsp->base + ADSP2_CONTROL,
+ ADSP2_SYS_ENA, 0);
+ break;
+ default:
+ regmap_write(dsp->regmap,
+ dsp->base + ADSP2_RDMA_CONFIG_1, 0);
+ regmap_write(dsp->regmap,
+ dsp->base + ADSP2_WDMA_CONFIG_1, 0);
+ regmap_write(dsp->regmap,
+ dsp->base + ADSP2V2_WDMA_CONFIG_2, 0);
+ break;
+ }
if (wm_adsp_fw[dsp->fw].num_caps != 0)
wm_adsp_buffer_free(dsp);
@@ -2732,15 +2826,22 @@ int wm_adsp2_init(struct wm_adsp *dsp)
{
int ret;
- /*
- * Disable the DSP memory by default when in reset for a small
- * power saving.
- */
- ret = regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
- ADSP2_MEM_ENA, 0);
- if (ret != 0) {
- adsp_err(dsp, "Failed to clear memory retention: %d\n", ret);
- return ret;
+ switch (dsp->rev) {
+ case 0:
+ /*
+ * Disable the DSP memory by default when in reset for a small
+ * power saving.
+ */
+ ret = regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
+ ADSP2_MEM_ENA, 0);
+ if (ret) {
+ adsp_err(dsp,
+ "Failed to clear memory retention: %d\n", ret);
+ return ret;
+ }
+ break;
+ default:
+ break;
}
INIT_LIST_HEAD(&dsp->alg_regions);
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h
index 3706b11..997227f 100644
--- a/sound/soc/codecs/wm_adsp.h
+++ b/sound/soc/codecs/wm_adsp.h
@@ -40,6 +40,7 @@ struct wm_adsp_alg_region {
struct wm_adsp {
const char *part;
+ int rev;
int num;
int type;
struct device *dev;
--
1.9.1
These codecs have a variable number of I/O lines each of which
is individually selectable to a wide range of possible functions.
The functionality is slightly different from the traditional muxed
GPIO since most of the functions can be mapped to any pin (and even
the same function to multiple pins). Most pins have a dedicated
"alternate" function that is only available on that pin. The
alternate functions are usually a group of signals, though it is
not always necessary to enable the full group, depending on the
alternate function and how it is to be used. The mapping between
alternate functions and GPIO pins varies between codecs depending
on the number of alternate functions and available pins.
Signed-off-by: Richard Fitzgerald <[email protected]>
---
.../bindings/pinctrl/cirrus,madera-pinctrl.txt | 103 ++
MAINTAINERS | 2 +
drivers/pinctrl/Kconfig | 22 +
drivers/pinctrl/Makefile | 1 +
drivers/pinctrl/pinctrl-madera.c | 1092 ++++++++++++++++++++
5 files changed, 1220 insertions(+)
create mode 100644 Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt
create mode 100644 drivers/pinctrl/pinctrl-madera.c
diff --git a/Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt
new file mode 100644
index 0000000..e9e20e6
--- /dev/null
+++ b/Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt
@@ -0,0 +1,103 @@
+Cirrus Logic Madera class audio codecs pinctrl driver
+
+The Cirrus Logic Madera codecs provide a number of GPIO functions for
+interfacing to external hardware and to provide logic outputs to other devices.
+Certain groups of GPIO pins also have an alternate function, normally as an
+audio interface.
+
+The set of available GPIOs, functions and alternate function groups differs
+between codecs so refer to the datasheet for the codec for further information
+on what is supported on that device.
+
+The root node for this driver must be a subnode of the parent MFD driver node.
+It contains one subnode that is a container for an arbitrary number of subnodes
+to configure each pin or function group.
+
+See also
+ the core bindings for the parent MFD driver:
+ Documentation/devicetree/bindings/mfd/madera.txt
+
+ the generic pinmix bindings:
+ Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
+
+Required properties of parent mfd node:
+ - pinctrl-names : must be "defaults"
+ - pinctrl-0 : a phandle to the node containing the configuration subnodes
+
+Required properties of pinctrl subnode:
+ - compatible : must be "cirrus,madera-pinctrl"
+
+Required properties of configuration subnodes:
+ - groups : name of one pin group to configure. One of:
+ aif1, aif2, aif3, aif4, mif1, mif2, mif3, pdmspk1, pdmspk2,
+ dmic4, dmic5, dmic6,
+ gpio1, gpio2, ..., gpio40
+ The gpioN groups select the single pin of this name for configuration
+
+Optional properties of configuration subnodes:
+ Any configuration option not explicitly listed in the dts will be left at
+ chip default setting.
+
+ - function : name of function to assign to this group. One of:
+ aif1, aif2, aif3, aif4, mif1, mif2, mif3, pdmspk1, pdmspk2,
+ dmic3, dmic4, dmic5, dmic6,
+ io, dsp-gpio, irq1, irq2,
+ fll1-clk, fll1-lock, fll2-clk, fll2-lock, fll3-clk, fll3-lock,
+ fllao-clk, fllao-lock,
+ opclk, opclk-async, pwm1, pwm2, spdif,
+ asrc1-in1-lock, asrc1-in2-lock, asrc2-in1-lock, asrc2-in2-lock,
+ spkl-short-circuit, spkr-short-circuit, spk-shutdown,
+ spk-overheat-shutdown, spk-overheat-warn,
+ timer1-sts, timer2-sts, timer3-sts, timer4-sts, timer5-sts, timer6-sts,
+ timer7-sts, timer8-sts,
+ log1-fifo-ne, log2-fifo-ne, log3-fifo-ne, log4-fifo-ne, log5-fifo-ne,
+ log6-fifo-ne, log7-fifo-ne, log8-fifo-ne,
+
+ - bias-disable : disable pull-up and pull-down
+ - bias-bus-hold : enable buskeeper
+ - bias-pull-up : output is pulled-up
+ - bias-pull-down : output is pulled-down
+ - drive-push-pull : CMOS output
+ - drive-open-drain : open-drain output
+ - drive-strength : drive strength in mA. Valid values are 4 or 8
+ - input-schmitt-enable : enable schmitt-trigger mode
+ - input-schmitt-disable : disable schmitt-trigger mode
+ - input-debounce : A value of 0 disables debounce, a value !=0 enables
+ debounce
+ - output-low : set the pin to output mode with low level
+ - output-high : set the pin to output mode with high level
+
+Example:
+
+codec: cs47l85@0 {
+ compatible = "cirrus,cs47l85";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&cs47l85_gpio_defaults>;
+
+
+ pinctrl {
+ compatible = "cirrus,madera-pinctrl";
+
+ cs47l85_gpio_defaults: defaults {
+ aif1 {
+ groups = "aif1";
+ function = "aif1";
+ bias-bus-hold;
+ };
+
+ aif2 {
+ groups = "aif2";
+ function = "aif2";
+ bias-bus-hold;
+ };
+
+ opclk {
+ groups = "gpio1";
+ function = "opclk";
+ bias-pull-up;
+ drive-strength = <8>;
+ };
+ };
+ };
+};
diff --git a/MAINTAINERS b/MAINTAINERS
index a06701f..85af1f9 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3268,6 +3268,7 @@ W: https://github.com/CirrusLogic/linux-drivers/wiki
S: Supported
F: Documentation/devicetree/bindings/interrupt-controller/cirrus,madera.txt
F: Documentation/devicetree/bindings/mfd/madera.txt
+F: Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt
F: Documentation/devicetree/bindings/regulator/madera*
F: include/linux/irqchip/irq-madera*
F: include/linux/mfd/madera/*
@@ -3275,6 +3276,7 @@ F: include/linux/regulator/madera*
F: drivers/irqchip/irq-madera*
F: drivers/mfd/madera*
F: drivers/mfd/cs47l*
+F: drivers/pinctrl/pinctrl-madera*
F: drivers/regulator/madera*
CLEANCACHE API
diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index 8f8c2af..483afe5 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -109,6 +109,28 @@ config PINCTRL_DA850_PUPD
Driver for TI DA850/OMAP-L138/AM18XX pinconf. Used to control
pullup/pulldown pin groups.
+config PINCTRL_MADERA
+ bool
+ default y if MFD_MADERA=y
+
+config PINCTRL_CS47L35
+ bool
+ default y if MFD_CS47L35=y
+ select PINMUX
+ select GENERIC_PINCONF
+
+config PINCTRL_CS47L85
+ bool
+ default y if MFD_CS47L85=y
+ select PINMUX
+ select GENERIC_PINCONF
+
+config PINCTRL_CS47L90
+ bool
+ default y if MFD_CS47L90=y
+ select PINMUX
+ select GENERIC_PINCONF
+
config PINCTRL_DIGICOLOR
bool
depends on OF && (ARCH_DIGICOLOR || COMPILE_TEST)
diff --git a/drivers/pinctrl/Makefile b/drivers/pinctrl/Makefile
index a251f43..6e6919c 100644
--- a/drivers/pinctrl/Makefile
+++ b/drivers/pinctrl/Makefile
@@ -17,6 +17,7 @@ obj-$(CONFIG_PINCTRL_AMD) += pinctrl-amd.o
obj-$(CONFIG_PINCTRL_DA850_PUPD) += pinctrl-da850-pupd.o
obj-$(CONFIG_PINCTRL_DIGICOLOR) += pinctrl-digicolor.o
obj-$(CONFIG_PINCTRL_FALCON) += pinctrl-falcon.o
+obj-$(CONFIG_PINCTRL_MADERA) += pinctrl-madera.o
obj-$(CONFIG_PINCTRL_MAX77620) += pinctrl-max77620.o
obj-$(CONFIG_PINCTRL_MESON) += meson/
obj-$(CONFIG_PINCTRL_OXNAS) += pinctrl-oxnas.o
diff --git a/drivers/pinctrl/pinctrl-madera.c b/drivers/pinctrl/pinctrl-madera.c
new file mode 100644
index 0000000..2cf6021
--- /dev/null
+++ b/drivers/pinctrl/pinctrl-madera.c
@@ -0,0 +1,1092 @@
+/*
+ * Pinctrl for Cirrus Logic Madera codecs
+ *
+ * Copyright 2016-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/err.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>
+#include <linux/regmap.h>
+#include <linux/slab.h>
+#include <linux/pinctrl/pinctrl.h>
+#include <linux/pinctrl/pinmux.h>
+#include <linux/pinctrl/pinconf.h>
+#include <linux/pinctrl/pinconf-generic.h>
+
+#include <linux/mfd/madera/core.h>
+#include <linux/mfd/madera/registers.h>
+
+#include "pinctrl-utils.h"
+
+/*
+ * Pins are named after their GPIO number
+ * NOTE: IDs are zero-indexed for coding convenience
+ */
+static const struct pinctrl_pin_desc madera_pins[] = {
+ PINCTRL_PIN(0, "gpio1"),
+ PINCTRL_PIN(1, "gpio2"),
+ PINCTRL_PIN(2, "gpio3"),
+ PINCTRL_PIN(3, "gpio4"),
+ PINCTRL_PIN(4, "gpio5"),
+ PINCTRL_PIN(5, "gpio6"),
+ PINCTRL_PIN(6, "gpio7"),
+ PINCTRL_PIN(7, "gpio8"),
+ PINCTRL_PIN(8, "gpio9"),
+ PINCTRL_PIN(9, "gpio10"),
+ PINCTRL_PIN(10, "gpio11"),
+ PINCTRL_PIN(11, "gpio12"),
+ PINCTRL_PIN(12, "gpio13"),
+ PINCTRL_PIN(13, "gpio14"),
+ PINCTRL_PIN(14, "gpio15"),
+ PINCTRL_PIN(15, "gpio16"),
+ PINCTRL_PIN(16, "gpio17"),
+ PINCTRL_PIN(17, "gpio18"),
+ PINCTRL_PIN(18, "gpio19"),
+ PINCTRL_PIN(19, "gpio20"),
+ PINCTRL_PIN(20, "gpio21"),
+ PINCTRL_PIN(21, "gpio22"),
+ PINCTRL_PIN(22, "gpio23"),
+ PINCTRL_PIN(23, "gpio24"),
+ PINCTRL_PIN(24, "gpio25"),
+ PINCTRL_PIN(25, "gpio26"),
+ PINCTRL_PIN(26, "gpio27"),
+ PINCTRL_PIN(27, "gpio28"),
+ PINCTRL_PIN(28, "gpio29"),
+ PINCTRL_PIN(29, "gpio30"),
+ PINCTRL_PIN(30, "gpio31"),
+ PINCTRL_PIN(31, "gpio32"),
+ PINCTRL_PIN(32, "gpio33"),
+ PINCTRL_PIN(33, "gpio34"),
+ PINCTRL_PIN(34, "gpio35"),
+ PINCTRL_PIN(35, "gpio36"),
+ PINCTRL_PIN(36, "gpio37"),
+ PINCTRL_PIN(37, "gpio38"),
+ PINCTRL_PIN(38, "gpio39"),
+ PINCTRL_PIN(39, "gpio40"),
+};
+
+/*
+ * All single-pin functions can be mapped to any GPIO, however pinmux applies
+ * functions to pin groups and only those groups declared as supporting that
+ * function. To make this work we must put each pin in its own dummy group so
+ * that the functions can be described as applying to all pins.
+ * Since these do not correspond to anything in the actual hardware - they are
+ * merely an adaptation to pinctrl's view of the world - we use the same name
+ * as the pin to avoid confusion when comparing with datasheet instructions
+ */
+static const char * const madera_pin_single_group_names[] = {
+ "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
+ "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
+ "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
+ "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
+ "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
+ "gpio36", "gpio37", "gpio38", "gpio39", "gpio40",
+};
+
+/* set of pin numbers for single-pin groups, zero-indexed */
+static const unsigned int madera_pin_single_group_pins[] = {
+ 0, 1, 2, 3, 4, 5, 6,
+ 7, 8, 9, 10, 11, 12, 13,
+ 14, 15, 16, 17, 18, 19, 20,
+ 21, 22, 23, 24, 25, 26, 27,
+ 28, 29, 30, 31, 32, 33, 34,
+ 35, 36, 37, 38, 39,
+};
+
+static const char * const madera_aif1_group_names[] = { "aif1" };
+static const char * const madera_aif2_group_names[] = { "aif2" };
+static const char * const madera_aif3_group_names[] = { "aif3" };
+static const char * const madera_aif4_group_names[] = { "aif4" };
+static const char * const madera_mif1_group_names[] = { "mif1" };
+static const char * const madera_mif2_group_names[] = { "mif2" };
+static const char * const madera_mif3_group_names[] = { "mif3" };
+static const char * const madera_dmic3_group_names[] = { "dmic3" };
+static const char * const madera_dmic4_group_names[] = { "dmic4" };
+static const char * const madera_dmic5_group_names[] = { "dmic5" };
+static const char * const madera_dmic6_group_names[] = { "dmic6" };
+static const char * const madera_spk1_group_names[] = { "pdmspk1" };
+static const char * const madera_spk2_group_names[] = { "pdmspk2" };
+
+/*
+ * alt-functions always apply to a single pin group, other functions always
+ * apply to all pins
+ */
+static const struct {
+ const char *name;
+ const char * const *group_names;
+ u32 func;
+} madera_mux_funcs[] = {
+ {
+ .name = "aif1",
+ .group_names = madera_aif1_group_names,
+ .func = 0x000
+ },
+ {
+ .name = "aif2",
+ .group_names = madera_aif2_group_names,
+ .func = 0x000
+ },
+ {
+ .name = "aif3",
+ .group_names = madera_aif3_group_names,
+ .func = 0x000
+ },
+ {
+ .name = "aif4",
+ .group_names = madera_aif4_group_names,
+ .func = 0x000
+ },
+ {
+ .name = "mif1",
+ .group_names = madera_mif1_group_names,
+ .func = 0x000
+ },
+ {
+ .name = "mif2",
+ .group_names = madera_mif2_group_names,
+ .func = 0x000
+ },
+ {
+ .name = "mif3",
+ .group_names = madera_mif3_group_names,
+ .func = 0x000
+ },
+ {
+ .name = "dmic3",
+ .group_names = madera_dmic3_group_names,
+ .func = 0x000
+ },
+ {
+ .name = "dmic4",
+ .group_names = madera_dmic4_group_names,
+ .func = 0x000
+ },
+ {
+ .name = "dmic5",
+ .group_names = madera_dmic5_group_names,
+ .func = 0x000
+ },
+ {
+ .name = "dmic6",
+ .group_names = madera_dmic6_group_names,
+ .func = 0x000
+ },
+ {
+ .name = "pdmspk1",
+ .group_names = madera_spk1_group_names,
+ .func = 0x000
+ },
+ {
+ .name = "pdmspk2",
+ .group_names = madera_spk2_group_names,
+ .func = 0x000
+ },
+ {
+ .name = "io",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x001
+ },
+ {
+ .name = "dsp-gpio",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x002
+ },
+ {
+ .name = "irq1",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x003
+ },
+ {
+ .name = "irq2",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x004
+ },
+ {
+ .name = "fll1-clk",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x010
+ },
+ {
+ .name = "fll2-clk",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x011
+ },
+ {
+ .name = "fll3-clk",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x012
+ },
+ {
+ .name = "fllao-clk",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x013
+ },
+ {
+ .name = "fll1-lock",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x018
+ },
+ {
+ .name = "fll2-lock",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x019
+ },
+ {
+ .name = "fll3-lock",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x01a
+ },
+ {
+ .name = "fllao-lock",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x01b
+ },
+ {
+ .name = "opclk",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x040
+ },
+ {
+ .name = "opclk-async",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x041
+ },
+ {
+ .name = "pwm1",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x048
+ },
+ {
+ .name = "pwm2",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x049
+ },
+ {
+ .name = "spdif",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x04c
+ },
+ {
+ .name = "asrc1-in1-lock",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x088
+ },
+ {
+ .name = "asrc1-in2-lock",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x089
+ },
+ {
+ .name = "asrc2-in1-lock",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x08a
+ },
+ {
+ .name = "asrc2-in2-lock",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x08b
+ },
+ {
+ .name = "spkl-short-circuit",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x0b6
+ },
+ {
+ .name = "spkr-short-circuit",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x0b7
+ },
+ {
+ .name = "spk-shutdown",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x0e0
+ },
+ {
+ .name = "spk-overheat-shutdown",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x0e1
+ },
+ {
+ .name = "spk-overheat-warn",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x0e2
+ },
+ {
+ .name = "timer1-sts",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x140
+ },
+ {
+ .name = "timer2-sts",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x141
+ },
+ {
+ .name = "timer3-sts",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x142
+ },
+ {
+ .name = "timer4-sts",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x143
+ },
+ {
+ .name = "timer5-sts",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x144
+ },
+ {
+ .name = "timer6-sts",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x145
+ },
+ {
+ .name = "timer7-sts",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x146
+ },
+ {
+ .name = "timer8-sts",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x147
+ },
+ {
+ .name = "log1-fifo-ne",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x150
+ },
+ {
+ .name = "log2-fifo-ne",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x151
+ },
+ {
+ .name = "log3-fifo-ne",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x152
+ },
+ {
+ .name = "log4-fifo-ne",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x153
+ },
+ {
+ .name = "log5-fifo-ne",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x154
+ },
+ {
+ .name = "log6-fifo-ne",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x155
+ },
+ {
+ .name = "log7-fifo-ne",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x156
+ },
+ {
+ .name = "log8-fifo-ne",
+ .group_names = madera_pin_single_group_names,
+ .func = 0x157
+ },
+};
+
+struct madera_pin_groups {
+ const char *name;
+ const unsigned int *pins;
+ unsigned int n_pins;
+};
+
+struct madera_pin_chip {
+ unsigned int n_pins;
+
+ const struct madera_pin_groups *pin_groups;
+ unsigned int n_pin_groups;
+};
+
+struct madera_pin_private {
+ struct madera *madera;
+
+ const struct madera_pin_chip *chip; /* chip-specific groups */
+
+ struct device *dev;
+ struct pinctrl_dev *pctl;
+};
+
+/*
+ * Chip-specific configs
+ * The alt func groups available differ between codecs. Since these are the
+ * most commonly used functions we place these at the lower function indexes
+ * for convenience, and the less commonly used gpio functions at higher indexes
+ *
+ * To stay consistent with the datasheet the function names are the same as
+ * the group names for that function's pins
+ */
+#ifdef CONFIG_PINCTRL_CS47L35
+/* Note - all 1 less than in datasheet because these are zero-indexed */
+static const unsigned int cs47l35_aif3_pins[] = { 0, 1, 2, 3 };
+static const unsigned int cs47l35_spk_pins[] = { 4, 5 };
+static const unsigned int cs47l35_aif1_pins[] = { 7, 8, 9, 10 };
+static const unsigned int cs47l35_aif2_pins[] = { 11, 12, 13, 14 };
+static const unsigned int cs47l35_mif1_pins[] = { 6, 15 };
+
+static const struct madera_pin_groups cs47l35_pin_groups[] = {
+ { "aif1", cs47l35_aif1_pins, ARRAY_SIZE(cs47l35_aif1_pins) },
+ { "aif2", cs47l35_aif2_pins, ARRAY_SIZE(cs47l35_aif2_pins) },
+ { "aif3", cs47l35_aif3_pins, ARRAY_SIZE(cs47l35_aif3_pins) },
+ { "mif1", cs47l35_mif1_pins, ARRAY_SIZE(cs47l35_mif1_pins) },
+ { "pdmspk1", cs47l35_spk_pins, ARRAY_SIZE(cs47l35_spk_pins) },
+};
+
+const struct madera_pin_chip cs47l35_pin_chip = {
+ .n_pins = CS47L35_NUM_GPIOS,
+ .pin_groups = cs47l35_pin_groups,
+ .n_pin_groups = ARRAY_SIZE(cs47l35_pin_groups),
+};
+#endif
+
+#ifdef CONFIG_PINCTRL_CS47L85
+/* Note - all 1 less than in datasheet because these are zero-indexed */
+static const unsigned int cs47l85_mif1_pins[] = { 8, 9 };
+static const unsigned int cs47l85_mif2_pins[] = { 10, 11 };
+static const unsigned int cs47l85_mif3_pins[] = { 12, 13 };
+static const unsigned int cs47l85_aif1_pins[] = { 14, 15, 16, 17 };
+static const unsigned int cs47l85_aif2_pins[] = { 18, 19, 20, 21 };
+static const unsigned int cs47l85_aif3_pins[] = { 22, 23, 24, 25 };
+static const unsigned int cs47l85_aif4_pins[] = { 26, 27, 28, 29 };
+static const unsigned int cs47l85_dmic4_pins[] = { 30, 31 };
+static const unsigned int cs47l85_dmic5_pins[] = { 32, 33 };
+static const unsigned int cs47l85_dmic6_pins[] = { 34, 35 };
+static const unsigned int cs47l85_spk1_pins[] = { 36, 38 };
+static const unsigned int cs47l85_spk2_pins[] = { 37, 39 };
+
+static const struct madera_pin_groups cs47l85_pin_groups[] = {
+ { "aif1", cs47l85_aif1_pins, ARRAY_SIZE(cs47l85_aif1_pins) },
+ { "aif2", cs47l85_aif2_pins, ARRAY_SIZE(cs47l85_aif2_pins) },
+ { "aif3", cs47l85_aif3_pins, ARRAY_SIZE(cs47l85_aif3_pins) },
+ { "aif4", cs47l85_aif4_pins, ARRAY_SIZE(cs47l85_aif4_pins) },
+ { "mif1", cs47l85_mif1_pins, ARRAY_SIZE(cs47l85_mif1_pins) },
+ { "mif2", cs47l85_mif2_pins, ARRAY_SIZE(cs47l85_mif2_pins) },
+ { "mif3", cs47l85_mif3_pins, ARRAY_SIZE(cs47l85_mif3_pins) },
+ { "dmic4", cs47l85_dmic4_pins, ARRAY_SIZE(cs47l85_dmic4_pins) },
+ { "dmic5", cs47l85_dmic5_pins, ARRAY_SIZE(cs47l85_dmic5_pins) },
+ { "dmic6", cs47l85_dmic6_pins, ARRAY_SIZE(cs47l85_dmic6_pins) },
+ { "pdmspk1", cs47l85_spk1_pins, ARRAY_SIZE(cs47l85_spk1_pins) },
+ { "pdmspk2", cs47l85_spk2_pins, ARRAY_SIZE(cs47l85_spk2_pins) },
+};
+
+const struct madera_pin_chip cs47l85_pin_chip = {
+ .n_pins = CS47L85_NUM_GPIOS,
+ .pin_groups = cs47l85_pin_groups,
+ .n_pin_groups = ARRAY_SIZE(cs47l85_pin_groups),
+};
+#endif
+
+#ifdef CONFIG_PINCTRL_CS47L90
+/* Note - all 1 less than in datasheet because these are zero-indexed */
+static const unsigned int cs47l90_mif1_pins[] = { 8, 9 };
+static const unsigned int cs47l90_mif2_pins[] = { 10, 11 };
+static const unsigned int cs47l90_mif3_pins[] = { 12, 13 };
+static const unsigned int cs47l90_aif1_pins[] = { 14, 15, 16, 17 };
+static const unsigned int cs47l90_aif2_pins[] = { 18, 19, 20, 21 };
+static const unsigned int cs47l90_aif3_pins[] = { 22, 23, 24, 25 };
+static const unsigned int cs47l90_aif4_pins[] = { 26, 27, 28, 29 };
+static const unsigned int cs47l90_dmic4_pins[] = { 30, 31 };
+static const unsigned int cs47l90_dmic5_pins[] = { 32, 33 };
+static const unsigned int cs47l90_dmic3_pins[] = { 34, 35 };
+static const unsigned int cs47l90_spk1_pins[] = { 36, 37 };
+
+static const struct madera_pin_groups cs47l90_pin_groups[] = {
+ { "aif1", cs47l90_aif1_pins, ARRAY_SIZE(cs47l90_aif1_pins) },
+ { "aif2", cs47l90_aif2_pins, ARRAY_SIZE(cs47l90_aif2_pins) },
+ { "aif3", cs47l90_aif3_pins, ARRAY_SIZE(cs47l90_aif3_pins) },
+ { "aif4", cs47l90_aif4_pins, ARRAY_SIZE(cs47l90_aif4_pins) },
+ { "mif1", cs47l90_mif1_pins, ARRAY_SIZE(cs47l90_mif1_pins) },
+ { "mif2", cs47l90_mif2_pins, ARRAY_SIZE(cs47l90_mif2_pins) },
+ { "mif3", cs47l90_mif3_pins, ARRAY_SIZE(cs47l90_mif3_pins) },
+ { "dmic3", cs47l90_dmic3_pins, ARRAY_SIZE(cs47l90_dmic3_pins) },
+ { "dmic4", cs47l90_dmic4_pins, ARRAY_SIZE(cs47l90_dmic4_pins) },
+ { "dmic5", cs47l90_dmic5_pins, ARRAY_SIZE(cs47l90_dmic5_pins) },
+ { "pdmspk1", cs47l90_spk1_pins, ARRAY_SIZE(cs47l90_spk1_pins) },
+};
+
+const struct madera_pin_chip cs47l90_pin_chip = {
+ .n_pins = CS47L90_NUM_GPIOS,
+ .pin_groups = cs47l90_pin_groups,
+ .n_pin_groups = ARRAY_SIZE(cs47l90_pin_groups),
+};
+#endif
+
+static int madera_get_groups_count(struct pinctrl_dev *pctldev)
+{
+ struct madera_pin_private *priv = pinctrl_dev_get_drvdata(pctldev);
+
+ /* Number of alt function groups plus number of single-pin groups */
+ return priv->chip->n_pin_groups + priv->chip->n_pins;
+}
+
+static const char *madera_get_group_name(struct pinctrl_dev *pctldev,
+ unsigned int selector)
+{
+ struct madera_pin_private *priv = pinctrl_dev_get_drvdata(pctldev);
+
+ if (selector < priv->chip->n_pin_groups) {
+ return priv->chip->pin_groups[selector].name;
+ } else {
+ selector -= priv->chip->n_pin_groups;
+ return madera_pin_single_group_names[selector];
+ }
+}
+
+static int madera_get_group_pins(struct pinctrl_dev *pctldev,
+ unsigned int selector,
+ const unsigned int **pins,
+ unsigned int *num_pins)
+{
+ struct madera_pin_private *priv = pinctrl_dev_get_drvdata(pctldev);
+
+ if (selector < priv->chip->n_pin_groups) {
+ *pins = priv->chip->pin_groups[selector].pins;
+ *num_pins = priv->chip->pin_groups[selector].n_pins;
+ } else {
+ /* return the dummy group for a single pin */
+ selector -= priv->chip->n_pin_groups;
+ *pins = &madera_pin_single_group_pins[selector];
+ *num_pins = 1;
+ }
+ return 0;
+}
+
+static void madera_pin_dbg_show(struct pinctrl_dev *pctldev,
+ struct seq_file *s,
+ unsigned int offset)
+{
+ seq_puts(s, " madera-pinctrl");
+}
+
+
+static const struct pinctrl_ops madera_pin_group_ops = {
+ .get_groups_count = madera_get_groups_count,
+ .get_group_name = madera_get_group_name,
+ .get_group_pins = madera_get_group_pins,
+ .pin_dbg_show = madera_pin_dbg_show,
+ .dt_node_to_map = pinconf_generic_dt_node_to_map_all,
+ .dt_free_map = pinctrl_utils_free_map,
+};
+
+static int madera_mux_get_funcs_count(struct pinctrl_dev *pctldev)
+{
+ return ARRAY_SIZE(madera_mux_funcs);
+}
+
+static const char *madera_mux_get_func_name(struct pinctrl_dev *pctldev,
+ unsigned int selector)
+{
+ return madera_mux_funcs[selector].name;
+}
+
+static int madera_mux_get_groups(struct pinctrl_dev *pctldev,
+ unsigned int selector,
+ const char * const **groups,
+ unsigned int * const num_groups)
+{
+ struct madera_pin_private *priv = pinctrl_dev_get_drvdata(pctldev);
+
+ *groups = madera_mux_funcs[selector].group_names;
+
+ if (madera_mux_funcs[selector].func == 0) {
+ /* alt func always maps to a single group */
+ *num_groups = 1;
+ } else {
+ /* other funcs map to all available gpio pins */
+ *num_groups = priv->chip->n_pins;
+ }
+
+ return 0;
+}
+
+static int madera_mux_set_mux(struct pinctrl_dev *pctldev,
+ unsigned int selector,
+ unsigned int group)
+{
+ struct madera_pin_private *priv = pinctrl_dev_get_drvdata(pctldev);
+ struct madera *madera = priv->madera;
+ const struct madera_pin_groups *pin_group = priv->chip->pin_groups;
+ unsigned int n_chip_groups = priv->chip->n_pin_groups;
+ const char *func_name = madera_mux_funcs[selector].name;
+ unsigned int reg;
+ int i, ret;
+
+ dev_dbg(priv->dev, "%s selecting %u (%s) for group %u (%s)\n",
+ __func__, selector, func_name, group,
+ madera_get_group_name(pctldev, group));
+
+ if (madera_mux_funcs[selector].func == 0) {
+ /* alt func pin assignments are codec-specific */
+ for (i = 0; i < n_chip_groups; ++i) {
+ if (strcmp(func_name, pin_group->name) == 0)
+ break;
+
+ ++pin_group;
+ }
+
+ if (i == n_chip_groups)
+ return -EINVAL;
+
+ for (i = 0; i < pin_group->n_pins; ++i) {
+ reg = MADERA_GPIO1_CTRL_1 + (2 * pin_group->pins[i]);
+
+ dev_dbg(priv->dev, "%s setting 0x%x func bits to 0\n",
+ __func__, reg);
+
+ ret = regmap_update_bits(madera->regmap, reg, 0x1ff, 0);
+ if (ret)
+ break;
+
+ }
+ } else {
+ /*
+ * for other funcs the group will be the gpio number and will
+ * be offset by the number of chip-specific functions at the
+ * start of the group list
+ */
+ group -= n_chip_groups;
+ reg = MADERA_GPIO1_CTRL_1 + (2 * group);
+
+ dev_dbg(priv->dev, "%s setting 0x%x func bits to 0x%x\n",
+ __func__, reg, madera_mux_funcs[selector].func);
+
+ ret = regmap_update_bits(madera->regmap,
+ reg,
+ 0x1ff,
+ madera_mux_funcs[selector].func);
+ }
+
+ if (ret)
+ dev_err(priv->dev, "Failed to write to 0x%x (%d)\n",
+ reg, ret);
+
+ return ret;
+}
+
+static const struct pinmux_ops madera_pin_mux_ops = {
+ .get_functions_count = madera_mux_get_funcs_count,
+ .get_function_name = madera_mux_get_func_name,
+ .get_function_groups = madera_mux_get_groups,
+ .set_mux = madera_mux_set_mux,
+};
+
+static unsigned int madera_pin_unmake_drv_str(struct madera_pin_private *priv,
+ u16 regval)
+{
+ regval = (regval & MADERA_GP1_DRV_STR_MASK) >> MADERA_GP1_DRV_STR_SHIFT;
+
+ switch (priv->madera->type) {
+ case CS47L35:
+ case CS47L85:
+ case CS47L90:
+ case WM1840:
+ switch (regval) {
+ case 0:
+ return 4;
+ case 2:
+ return 8;
+ default:
+ return 0;
+ }
+
+ default:
+ switch (regval) {
+ case 0:
+ return 4;
+ case 1:
+ return 8;
+ case 2:
+ return 12;
+ case 3:
+ return 16;
+ default:
+ return 0;
+ }
+ }
+}
+
+static int madera_pin_conf_get(struct pinctrl_dev *pctldev, unsigned int pin,
+ unsigned long *config)
+{
+ struct madera_pin_private *priv = pinctrl_dev_get_drvdata(pctldev);
+ unsigned int param = pinconf_to_config_param(*config);
+ unsigned int result = 0;
+ u16 conf[2];
+ int ret;
+
+ ret = regmap_bulk_read(priv->madera->regmap,
+ MADERA_GPIO1_CTRL_1 + (2 * pin),
+ conf, 2);
+ if (ret) {
+ dev_err(priv->dev, "Failed to read GP%d conf (%d)\n",
+ pin + 1, ret);
+ return ret;
+ }
+
+ switch (param) {
+ case PIN_CONFIG_BIAS_BUS_HOLD:
+ conf[1] &= MADERA_GP1_PU_MASK | MADERA_GP1_PD_MASK;
+ if (conf[1] == (MADERA_GP1_PU | MADERA_GP1_PD))
+ result = 1;
+ break;
+ case PIN_CONFIG_BIAS_DISABLE:
+ conf[1] &= MADERA_GP1_PU_MASK | MADERA_GP1_PD_MASK;
+ if (!conf[1])
+ result = 1;
+ break;
+ case PIN_CONFIG_BIAS_PULL_DOWN:
+ conf[1] &= MADERA_GP1_PU_MASK | MADERA_GP1_PD_MASK;
+ if (conf[1] == MADERA_GP1_PD_MASK)
+ result = 1;
+ break;
+ case PIN_CONFIG_BIAS_PULL_UP:
+ conf[1] &= MADERA_GP1_PU_MASK | MADERA_GP1_PD_MASK;
+ if (conf[1] == MADERA_GP1_PU_MASK)
+ result = 1;
+ break;
+ case PIN_CONFIG_DRIVE_OPEN_DRAIN:
+ if (conf[0] & MADERA_GP1_OP_CFG_MASK)
+ result = 1;
+ break;
+ case PIN_CONFIG_DRIVE_PUSH_PULL:
+ if (!(conf[0] & MADERA_GP1_OP_CFG_MASK))
+ result = 1;
+ break;
+ case PIN_CONFIG_DRIVE_STRENGTH:
+ result = madera_pin_unmake_drv_str(priv, conf[1]);
+ break;
+ case PIN_CONFIG_INPUT_DEBOUNCE:
+ if (conf[0] & MADERA_GP1_DB_MASK)
+ result = 1;
+ break;
+ case PIN_CONFIG_INPUT_ENABLE:
+ if (conf[0] & MADERA_GP1_DIR_MASK)
+ result = 1;
+ break;
+ case PIN_CONFIG_INPUT_SCHMITT:
+ case PIN_CONFIG_INPUT_SCHMITT_ENABLE:
+ if (conf[0] & MADERA_GP1_IP_CFG_MASK)
+ result = 1;
+ break;
+ case PIN_CONFIG_OUTPUT:
+ if ((conf[1] & MADERA_GP1_DIR_MASK) &&
+ (conf[0] & MADERA_GP1_LVL_MASK))
+ result = 1;
+ break;
+ default:
+ break;
+ }
+
+ *config = pinconf_to_config_packed(param, result);
+
+ return 0;
+}
+
+static u16 madera_pin_make_drv_str(struct madera_pin_private *priv,
+ unsigned int milliamps)
+{
+ switch (priv->madera->type) {
+ case CS47L35:
+ case CS47L85:
+ case CS47L90:
+ case WM1840:
+ switch (milliamps) {
+ case 4:
+ return 0;
+ case 8:
+ return 2 << MADERA_GP1_DRV_STR_SHIFT;
+ default:
+ break;
+ }
+ break;
+
+ default:
+ switch (milliamps) {
+ case 4:
+ return 0;
+ case 8:
+ return 1 << MADERA_GP1_DRV_STR_SHIFT;
+ case 12:
+ return 2 << MADERA_GP1_DRV_STR_SHIFT;
+ case 16:
+ return 3 << MADERA_GP1_DRV_STR_SHIFT;
+ default:
+ break;
+ }
+ break;
+ }
+
+ dev_warn(priv->dev, "%u mA not a valid drive strength", milliamps);
+
+ return 0;
+}
+
+static int madera_pin_conf_set(struct pinctrl_dev *pctldev, unsigned int pin,
+ unsigned long *configs, unsigned int num_configs)
+{
+ struct madera_pin_private *priv = pinctrl_dev_get_drvdata(pctldev);
+ u16 conf[2] = {0, 0};
+ u16 mask[2] = {0, 0};
+ unsigned int reg = MADERA_GPIO1_CTRL_1 + (2 * pin);
+ unsigned int val;
+ int ret;
+
+ while (num_configs) {
+ dev_dbg(priv->dev, "%s config 0x%lx\n", __func__, *configs);
+
+ switch (pinconf_to_config_param(*configs)) {
+ case PIN_CONFIG_BIAS_BUS_HOLD:
+ mask[1] |= MADERA_GP1_PU_MASK | MADERA_GP1_PD_MASK;
+ conf[1] |= MADERA_GP1_PU | MADERA_GP1_PD;
+ break;
+ case PIN_CONFIG_BIAS_DISABLE:
+ mask[1] |= MADERA_GP1_PU_MASK | MADERA_GP1_PD_MASK;
+ conf[1] &= ~(MADERA_GP1_PU | MADERA_GP1_PD);
+ break;
+ case PIN_CONFIG_BIAS_PULL_DOWN:
+ mask[1] |= MADERA_GP1_PU_MASK | MADERA_GP1_PD_MASK;
+ conf[1] |= MADERA_GP1_PD;
+ conf[1] &= ~MADERA_GP1_PU;
+ break;
+ case PIN_CONFIG_BIAS_PULL_UP:
+ mask[1] |= MADERA_GP1_PU_MASK | MADERA_GP1_PD_MASK;
+ conf[1] |= MADERA_GP1_PU;
+ conf[1] &= ~MADERA_GP1_PD;
+ break;
+ case PIN_CONFIG_DRIVE_OPEN_DRAIN:
+ mask[0] |= MADERA_GP1_OP_CFG_MASK;
+ conf[0] |= MADERA_GP1_OP_CFG;
+ break;
+ case PIN_CONFIG_DRIVE_PUSH_PULL:
+ mask[0] |= MADERA_GP1_OP_CFG_MASK;
+ conf[0] &= ~MADERA_GP1_OP_CFG;
+ break;
+ case PIN_CONFIG_DRIVE_STRENGTH:
+ val = pinconf_to_config_argument(*configs);
+ mask[1] |= MADERA_GP1_DRV_STR_MASK;
+ conf[1] &= ~MADERA_GP1_DRV_STR_MASK;
+ conf[1] |= madera_pin_make_drv_str(priv, val);
+ break;
+ case PIN_CONFIG_INPUT_DEBOUNCE:
+ mask[0] |= MADERA_GP1_DB_MASK;
+
+ /*
+ * we can't configure debounce time per-pin so value
+ * is just a flag
+ */
+ val = pinconf_to_config_argument(*configs);
+ if (val)
+ conf[0] |= MADERA_GP1_DB;
+ else
+ conf[0] &= ~MADERA_GP1_DB;
+ break;
+ case PIN_CONFIG_INPUT_ENABLE:
+ val = pinconf_to_config_argument(*configs);
+ mask[1] |= MADERA_GP1_DIR_MASK;
+ if (val)
+ conf[1] |= MADERA_GP1_DIR;
+ else
+ conf[1] &= ~MADERA_GP1_DIR;
+ break;
+ case PIN_CONFIG_INPUT_SCHMITT:
+ val = pinconf_to_config_argument(*configs);
+ mask[0] |= MADERA_GP1_IP_CFG;
+ if (val)
+ conf[0] |= MADERA_GP1_IP_CFG;
+ else
+ conf[0] &= ~MADERA_GP1_IP_CFG;
+
+ mask[1] |= MADERA_GP1_DIR_MASK;
+ conf[1] |= MADERA_GP1_DIR;
+ break;
+ case PIN_CONFIG_INPUT_SCHMITT_ENABLE:
+ mask[0] |= MADERA_GP1_IP_CFG;
+ conf[0] |= MADERA_GP1_IP_CFG;
+ mask[1] |= MADERA_GP1_DIR_MASK;
+ conf[1] |= MADERA_GP1_DIR;
+ break;
+ case PIN_CONFIG_OUTPUT:
+ val = pinconf_to_config_argument(*configs);
+ mask[0] |= MADERA_GP1_LVL_MASK;
+ if (val)
+ conf[0] |= MADERA_GP1_LVL;
+ else
+ conf[0] &= ~MADERA_GP1_LVL;
+
+ mask[1] |= MADERA_GP1_DIR_MASK;
+ conf[1] &= ~MADERA_GP1_DIR;
+ break;
+ default:
+ break;
+ }
+
+ ++configs;
+ --num_configs;
+ }
+
+ dev_dbg(priv->dev,
+ "%s gpio%d 0x%x:0x%x 0x%x:0x%x\n",
+ __func__, pin + 1, reg, conf[0], reg + 1, conf[1]);
+
+ ret = regmap_update_bits(priv->madera->regmap, reg, mask[0], conf[0]);
+ if (ret)
+ goto err;
+
+ ++reg;
+ ret = regmap_update_bits(priv->madera->regmap, reg, mask[1], conf[1]);
+ if (ret)
+ goto err;
+
+ return 0;
+
+err:
+ dev_err(priv->dev,
+ "Failed to write GPIO%d conf (%d) reg 0x%x\n",
+ pin + 1, ret, reg);
+
+ return ret;
+}
+
+static int madera_pin_conf_group_set(struct pinctrl_dev *pctldev,
+ unsigned int selector,
+ unsigned long *configs,
+ unsigned int num_configs)
+{
+ struct madera_pin_private *priv = pinctrl_dev_get_drvdata(pctldev);
+ const struct madera_pin_groups *pin_group;
+ unsigned int n_groups = priv->chip->n_pin_groups;
+ int i, ret;
+
+ dev_dbg(priv->dev, "%s setting group %s\n", __func__,
+ madera_get_group_name(pctldev, selector));
+
+ if (selector >= n_groups) {
+ /* group is a single pin, convert to pin number and set */
+ return madera_pin_conf_set(pctldev,
+ selector - n_groups,
+ configs,
+ num_configs);
+ } else {
+ pin_group = &priv->chip->pin_groups[selector];
+
+ for (i = 0; i < pin_group->n_pins; ++i) {
+ ret = madera_pin_conf_set(pctldev,
+ pin_group->pins[i],
+ configs,
+ num_configs);
+ if (ret)
+ return ret;
+ }
+ }
+
+ return 0;
+}
+
+static const struct pinconf_ops madera_pin_conf_ops = {
+ .pin_config_get = madera_pin_conf_get,
+ .pin_config_set = madera_pin_conf_set,
+ .pin_config_group_set = madera_pin_conf_group_set,
+
+};
+
+static struct pinctrl_desc madera_pin_desc = {
+ .name = "madera-pinctrl",
+ .pins = madera_pins,
+ .pctlops = &madera_pin_group_ops,
+ .pmxops = &madera_pin_mux_ops,
+ .confops = &madera_pin_conf_ops,
+ .owner = THIS_MODULE,
+};
+
+static int madera_pin_probe(struct platform_device *pdev)
+{
+ struct madera *madera = dev_get_drvdata(pdev->dev.parent);
+ const struct madera_pdata *pdata = dev_get_platdata(madera->dev);
+ struct madera_pin_private *priv;
+ int ret;
+
+ BUILD_BUG_ON(ARRAY_SIZE(madera_pin_single_group_names) !=
+ ARRAY_SIZE(madera_pin_single_group_pins));
+
+ dev_dbg(&pdev->dev, "%s\n", __func__);
+
+ priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
+ if (!priv)
+ return -ENOMEM;
+
+ priv->dev = &pdev->dev;
+ priv->madera = madera;
+ pdev->dev.of_node = madera->dev->of_node;
+
+ switch (madera->type) {
+#ifdef CONFIG_PINCTRL_CS47L35
+ case CS47L35:
+ priv->chip = &cs47l35_pin_chip;
+ break;
+#endif
+#ifdef CONFIG_PINCTRL_CS47L85
+ case CS47L85:
+ case WM1840:
+ priv->chip = &cs47l85_pin_chip;
+ break;
+#endif
+#ifdef CONFIG_PINCTRL_CS47L90
+ case CS47L90:
+ case CS47L91:
+ priv->chip = &cs47l90_pin_chip;
+ break;
+#endif
+ default:
+ break;
+ }
+
+ if (!priv->chip)
+ return -ENODEV;
+
+ madera_pin_desc.npins = priv->chip->n_pins;
+
+ priv->pctl = devm_pinctrl_register(&pdev->dev, &madera_pin_desc, priv);
+ if (IS_ERR(priv->pctl)) {
+ ret = PTR_ERR(priv->pctl);
+ dev_err(priv->dev, "Failed pinctrl register (%d)\n", ret);
+ return ret;
+ }
+
+ if (pdata) {
+ ret = pinctrl_register_mappings(pdata->gpio_configs,
+ pdata->n_gpio_configs);
+ dev_err(priv->dev, "Failed to register pdata mappings (%d)\n",
+ ret);
+ return ret;
+ }
+
+ dev_dbg(priv->dev, "pinctrl registered\n");
+
+ return 0;
+}
+
+static struct platform_driver madera_pin_driver = {
+ .probe = madera_pin_probe,
+ .driver = {
+ .name = "madera-pinctrl",
+ },
+};
+
+module_platform_driver(madera_pin_driver);
+
+MODULE_DESCRIPTION("Madera pinctrl driver");
+MODULE_AUTHOR("Richard Fitzgerald <[email protected]>");
+MODULE_LICENSE("GPL v2");
--
1.9.1
From: Mayuresh Kulkarni <[email protected]>
Newer ADSP2V2 codecs include a memory protection unit that can
be set to trap illegal accesses. When enabling an ADSPV2 core we
must configure the memory region traps so that the firmware can
access its own memory.
Signed-off-by: Mayuresh Kulkarni <[email protected]>
Signed-off-by: Nikesh Oswal <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
Signed-off-by: Richard Fitzgerald <[email protected]>
---
sound/soc/codecs/wm_adsp.c | 137 +++++++++++++++++++++++++++++++++++++++++++++
sound/soc/codecs/wm_adsp.h | 23 ++++++++
2 files changed, 160 insertions(+)
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index a9acf22..20695b6 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -176,6 +176,37 @@
#define ADSP2_RAM_RDY_SHIFT 0
#define ADSP2_RAM_RDY_WIDTH 1
+/*
+ * ADSP2 Lock support
+ */
+#define ADSP2_LOCK_CODE_0 0x5555
+#define ADSP2_LOCK_CODE_1 0xAAAA
+
+#define ADSP2_WATCHDOG 0x0A
+#define ADSP2_BUS_ERR_ADDR 0x52
+#define ADSP2_REGION_LOCK_STATUS 0x64
+#define ADSP2_LOCK_REGION_1_LOCK_REGION_0 0x66
+#define ADSP2_LOCK_REGION_3_LOCK_REGION_2 0x68
+#define ADSP2_LOCK_REGION_5_LOCK_REGION_4 0x6A
+#define ADSP2_LOCK_REGION_7_LOCK_REGION_6 0x6C
+#define ADSP2_LOCK_REGION_9_LOCK_REGION_8 0x6E
+#define ADSP2_LOCK_REGION_CTRL 0x7A
+#define ADSP2_PMEM_ERR_ADDR_XMEM_ERR_ADDR 0x7C
+
+#define ADSP2_REGION_LOCK_ERR_MASK 0x8000
+#define ADSP2_SLAVE_ERR_MASK 0x4000
+#define ADSP2_WDT_TIMEOUT_STS_MASK 0x2000
+#define ADSP2_CTRL_ERR_PAUSE_ENA 0x0002
+#define ADSP2_CTRL_ERR_EINT 0x0001
+
+#define ADSP2_BUS_ERR_ADDR_MASK 0x00FFFFFF
+#define ADSP2_XMEM_ERR_ADDR_MASK 0x0000FFFF
+#define ADSP2_PMEM_ERR_ADDR_MASK 0x7FFF0000
+#define ADSP2_PMEM_ERR_ADDR_SHIFT 16
+#define ADSP2_WDT_ENA_MASK 0xFFFFFFFD
+
+#define ADSP2_LOCK_REGION_SHIFT 16
+
#define ADSP_MAX_STD_CTRL_SIZE 512
#define WM_ADSP_ACKED_CTL_TIMEOUT_MS 100
@@ -2638,6 +2669,18 @@ int wm_adsp2_preloader_put(struct snd_kcontrol *kcontrol,
}
EXPORT_SYMBOL_GPL(wm_adsp2_preloader_put);
+static void wm_adsp_stop_watchdog(struct wm_adsp *dsp)
+{
+ switch (dsp->rev) {
+ case 0:
+ case 1:
+ return;
+ default:
+ regmap_update_bits(dsp->regmap, dsp->base + ADSP2_WATCHDOG,
+ ADSP2_WDT_ENA_MASK, 0);
+ }
+}
+
int wm_adsp2_early_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event,
unsigned int freq)
@@ -2710,6 +2753,8 @@ int wm_adsp2_event(struct snd_soc_dapm_widget *w,
if (ret != 0)
goto err;
+ wm_adsp2_lock(dsp, dsp->lock_regions);
+
ret = regmap_update_bits(dsp->regmap,
dsp->base + ADSP2_CONTROL,
ADSP2_CORE_ENA | ADSP2_START,
@@ -2733,6 +2778,8 @@ int wm_adsp2_event(struct snd_soc_dapm_widget *w,
/* Tell the firmware to cleanup */
wm_adsp_signal_event_controls(dsp, WM_ADSP_FW_EVENT_SHUTDOWN);
+ wm_adsp_stop_watchdog(dsp);
+
/* Log firmware state, it can be useful for analysis */
switch (dsp->rev) {
case 0:
@@ -3624,4 +3671,94 @@ int wm_adsp_compr_copy(struct snd_compr_stream *stream, char __user *buf,
}
EXPORT_SYMBOL_GPL(wm_adsp_compr_copy);
+int wm_adsp2_lock(struct wm_adsp *dsp, unsigned int lock_regions)
+{
+ struct regmap *regmap = dsp->regmap;
+ unsigned int code0, code1, lock_reg;
+
+ if (!(lock_regions & WM_ADSP2_REGION_ALL))
+ return 0;
+
+ lock_regions &= WM_ADSP2_REGION_ALL;
+ lock_reg = dsp->base + ADSP2_LOCK_REGION_1_LOCK_REGION_0;
+
+ while (lock_regions) {
+ code0 = code1 = 0;
+ if (lock_regions & BIT(0)) {
+ code0 = ADSP2_LOCK_CODE_0;
+ code1 = ADSP2_LOCK_CODE_1;
+ }
+ if (lock_regions & BIT(1)) {
+ code0 |= ADSP2_LOCK_CODE_0 << ADSP2_LOCK_REGION_SHIFT;
+ code1 |= ADSP2_LOCK_CODE_1 << ADSP2_LOCK_REGION_SHIFT;
+ }
+ regmap_write(regmap, lock_reg, code0);
+ regmap_write(regmap, lock_reg, code1);
+ lock_regions >>= 2;
+ lock_reg += 2;
+ }
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(wm_adsp2_lock);
+
+irqreturn_t wm_adsp2_bus_error(struct wm_adsp *dsp)
+{
+ unsigned int val;
+ struct regmap *regmap = dsp->regmap;
+ int ret = 0;
+
+ ret = regmap_read(regmap, dsp->base + ADSP2_LOCK_REGION_CTRL, &val);
+ if (ret) {
+ adsp_err(dsp,
+ "Failed to read Region Lock Ctrl register: %d\n", ret);
+ return IRQ_HANDLED;
+ }
+
+ if (val & ADSP2_WDT_TIMEOUT_STS_MASK) {
+ adsp_err(dsp, "watchdog timeout error\n");
+ wm_adsp_stop_watchdog(dsp);
+ }
+
+ if (val & (ADSP2_SLAVE_ERR_MASK | ADSP2_REGION_LOCK_ERR_MASK)) {
+ if (val & ADSP2_SLAVE_ERR_MASK)
+ adsp_err(dsp, "bus error: slave error\n");
+ else
+ adsp_err(dsp, "bus error: region lock error\n");
+
+ ret = regmap_read(regmap, dsp->base + ADSP2_BUS_ERR_ADDR, &val);
+ if (ret) {
+ adsp_err(dsp,
+ "Failed to read Bus Err Addr register: %d\n",
+ ret);
+ return IRQ_HANDLED;
+ }
+
+ adsp_err(dsp, "bus error address = 0x%x\n",
+ val & ADSP2_BUS_ERR_ADDR_MASK);
+
+ ret = regmap_read(regmap,
+ dsp->base + ADSP2_PMEM_ERR_ADDR_XMEM_ERR_ADDR,
+ &val);
+ if (ret) {
+ adsp_err(dsp,
+ "Failed to read Pmem Xmem Err Addr register: %d\n",
+ ret);
+ return IRQ_HANDLED;
+ }
+
+ adsp_err(dsp, "xmem error address = 0x%x\n",
+ val & ADSP2_XMEM_ERR_ADDR_MASK);
+ adsp_err(dsp, "pmem error address = 0x%x\n",
+ (val & ADSP2_PMEM_ERR_ADDR_MASK) >>
+ ADSP2_PMEM_ERR_ADDR_SHIFT);
+ }
+
+ regmap_update_bits(regmap, dsp->base + ADSP2_LOCK_REGION_CTRL,
+ ADSP2_CTRL_ERR_EINT, ADSP2_CTRL_ERR_EINT);
+
+ return IRQ_HANDLED;
+}
+EXPORT_SYMBOL_GPL(wm_adsp2_bus_error);
+
MODULE_LICENSE("GPL v2");
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h
index 997227f..41cc11c 100644
--- a/sound/soc/codecs/wm_adsp.h
+++ b/sound/soc/codecs/wm_adsp.h
@@ -23,6 +23,23 @@
#define WM_ADSP_COMPR_OK 0
#define WM_ADSP_COMPR_VOICE_TRIGGER 1
+#define WM_ADSP2_REGION_0 BIT(0)
+#define WM_ADSP2_REGION_1 BIT(1)
+#define WM_ADSP2_REGION_2 BIT(2)
+#define WM_ADSP2_REGION_3 BIT(3)
+#define WM_ADSP2_REGION_4 BIT(4)
+#define WM_ADSP2_REGION_5 BIT(5)
+#define WM_ADSP2_REGION_6 BIT(6)
+#define WM_ADSP2_REGION_7 BIT(7)
+#define WM_ADSP2_REGION_8 BIT(8)
+#define WM_ADSP2_REGION_9 BIT(9)
+#define WM_ADSP2_REGION_1_9 (WM_ADSP2_REGION_1 | \
+ WM_ADSP2_REGION_2 | WM_ADSP2_REGION_3 | \
+ WM_ADSP2_REGION_4 | WM_ADSP2_REGION_5 | \
+ WM_ADSP2_REGION_6 | WM_ADSP2_REGION_7 | \
+ WM_ADSP2_REGION_8 | WM_ADSP2_REGION_9)
+#define WM_ADSP2_REGION_ALL (WM_ADSP2_REGION_0 | WM_ADSP2_REGION_1_9)
+
struct wm_adsp_region {
int type;
unsigned int base;
@@ -76,6 +93,8 @@ struct wm_adsp {
struct mutex pwr_lock;
+ unsigned int lock_regions;
+
#ifdef CONFIG_DEBUG_FS
struct dentry *debugfs_root;
char *wmfw_file_name;
@@ -114,6 +133,10 @@ int wm_adsp1_event(struct snd_soc_dapm_widget *w,
int wm_adsp2_early_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event,
unsigned int freq);
+
+int wm_adsp2_lock(struct wm_adsp *adsp, unsigned int regions);
+irqreturn_t wm_adsp2_bus_error(struct wm_adsp *adsp);
+
int wm_adsp2_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event);
--
1.9.1
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 <[email protected]>
Signed-off-by: Nikesh Oswal <[email protected]>
Signed-off-by: Richard Fitzgerald <[email protected]>
---
Documentation/devicetree/bindings/mfd/madera.txt | 79 +++
MAINTAINERS | 3 +
drivers/mfd/Kconfig | 23 +
drivers/mfd/Makefile | 4 +
drivers/mfd/madera-core.c | 689 +++++++++++++++++++++++
drivers/mfd/madera-i2c.c | 130 +++++
drivers/mfd/madera-spi.c | 131 +++++
drivers/mfd/madera.h | 52 ++
include/linux/mfd/madera/core.h | 175 ++++++
include/linux/mfd/madera/pdata.h | 88 +++
10 files changed, 1374 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mfd/madera.txt
create mode 100644 drivers/mfd/madera-core.c
create mode 100644 drivers/mfd/madera-i2c.c
create mode 100644 drivers/mfd/madera-spi.c
create mode 100644 drivers/mfd/madera.h
create mode 100644 include/linux/mfd/madera/core.h
create mode 100644 include/linux/mfd/madera/pdata.h
diff --git a/Documentation/devicetree/bindings/mfd/madera.txt b/Documentation/devicetree/bindings/mfd/madera.txt
new file mode 100644
index 0000000..a6c3260
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/madera.txt
@@ -0,0 +1,79 @@
+Cirrus Logic Madera class audio codecs multi-function device
+
+These devices are audio SoCs with extensive digital capabilities and a range
+of analogue I/O.
+
+See also the child driver bindings in:
+bindings/extcon/extcon-madera.txt
+bindings/gpio/gpio-madera.txt
+bindings/interrupt-controller/cirrus,madera.txt
+bindings/pinctrl/cirrus,madera-pinctrl.txt
+bindings/regulator/madera-ldo1.txt
+bindings/regulator/madera-micsupp.txt
+bindings/sound/madera.txt
+
+Required properties:
+
+ - compatible : One of the following chip-specific strings:
+ "cirrus,cs47l35"
+ "cirrus,cs47l85"
+ "cirrus,cs47l90"
+ "cirrus,cs47l91"
+ "cirrus,wm1840"
+
+ - reg : I2C slave address when connected using I2C, chip select number when
+ using SPI.
+
+ - DCVDD-supply : Power supply for the device as defined in
+ bindings/regulator/regulator.txt
+ Mandatory on CS47L35, CS47L90, CS47L91
+ Optional on CS47L85, WM1840
+
+ - AVDD-supply, DBVDD1-supply, DBVDD2-supply, CPVDD1-supply, CPVDD2-supply :
+ Power supplies for the device
+
+ - DBVDD3-supply, DBVDD4-supply : Power supplies for the device
+ (CS47L85, CS47L90, CS47L91, WM1840)
+
+ - SPKVDDL-supply, SPKVDDR-supply : Power supplies for the device
+ (CS47L85, WM1840)
+
+ - SPKVDD-supply : Power supply for the device
+ (CS47L35)
+
+Optional properties:
+
+ - MICVDD-supply : Power supply, only need to be specified if
+ powered externally
+
+ - reset-gpios : One entry specifying the GPIO controlling /RESET.
+ As defined in bindings/gpio.txt.
+ Although optional, it is strongly recommended to use a hardware reset
+
+ - MICBIASx : Initial data for the MICBIAS regulators, as covered in
+ Documentation/devicetree/bindings/regulator/regulator.txt.
+ One for each MICBIAS generator (MICBIAS1, MICBIAS2, ...)
+ (all codecs)
+
+ One for each output pin (MICBIAS1A, MIBCIAS1B, MICBIAS2A, ...)
+ (all except CS47L85, WM1840)
+
+ The following following additional property is supported for the generator
+ nodes:
+ - cirrus,ext-cap : Set to 1 if the MICBIAS has external decoupling
+ capacitors attached.
+
+Example:
+
+codec: cs47l85@0 {
+ compatible = "cirrus,cs47l85";
+ reg = <0>;
+
+ reset-gpios = <&gpio 0>;
+
+ MICBIAS1 {
+ regulator-min-microvolt = <900000>;
+ regulator-max-microvolt = <3300000>;
+ cirrus,ext-cap = <1>;
+ };
+};
diff --git a/MAINTAINERS b/MAINTAINERS
index 02995c9..d28e53f 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3266,7 +3266,10 @@ L: [email protected]
T: git https://github.com/CirrusLogic/linux-drivers.git
W: https://github.com/CirrusLogic/linux-drivers/wiki
S: Supported
+F: Documentation/devicetree/bindings/mfd/madera.txt
F: include/linux/mfd/madera/*
+F: drivers/mfd/madera*
+F: drivers/mfd/cs47l*
CLEANCACHE API
M: Konrad Rzeszutek Wilk <[email protected]>
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index ce3a918..f0f9979 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -203,6 +203,29 @@ config MFD_CROS_EC_SPI
response time cannot be guaranteed, we support ignoring
'pre-amble' bytes before the response actually starts.
+config MFD_MADERA
+ bool
+ select REGMAP
+ select MFD_CORE
+
+config MFD_MADERA_I2C
+ tristate "Cirrus Logic Madera codecs with I2C"
+ select MFD_MADERA
+ select REGMAP_I2C
+ depends on I2C
+ help
+ Support for the Cirrus Logic Madera platform audio SoC
+ core functionality controlled via I2C.
+
+config MFD_MADERA_SPI
+ tristate "Cirrus Logic Madera codecs with SPI"
+ select MFD_MADERA
+ select REGMAP_SPI
+ depends on SPI_MASTER
+ help
+ Support for the Cirrus Logic Madera platform audio SoC
+ core functionality controlled via SPI.
+
config MFD_ASIC3
bool "Compaq ASIC3"
depends on GPIOLIB && ARM
diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
index fa86dbe..c41f6c9 100644
--- a/drivers/mfd/Makefile
+++ b/drivers/mfd/Makefile
@@ -72,6 +72,10 @@ obj-$(CONFIG_MFD_WM8350_I2C) += wm8350-i2c.o
wm8994-objs := wm8994-core.o wm8994-irq.o wm8994-regmap.o
obj-$(CONFIG_MFD_WM8994) += wm8994.o
+obj-$(CONFIG_MFD_MADERA) += madera-core.o
+obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o
+obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
+
obj-$(CONFIG_TPS6105X) += tps6105x.o
obj-$(CONFIG_TPS65010) += tps65010.o
obj-$(CONFIG_TPS6507X) += tps6507x.o
diff --git a/drivers/mfd/madera-core.c b/drivers/mfd/madera-core.c
new file mode 100644
index 0000000..ab5fe9b
--- /dev/null
+++ b/drivers/mfd/madera-core.c
@@ -0,0 +1,689 @@
+/*
+ * Core MFD support for Cirrus Logic Madera codecs
+ *
+ * Copyright 2015-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/device.h>
+#include <linux/delay.h>
+#include <linux/err.h>
+#include <linux/gpio.h>
+#include <linux/mfd/core.h>
+#include <linux/module.h>
+#include <linux/notifier.h>
+#include <linux/of.h>
+#include <linux/of_device.h>
+#include <linux/of_gpio.h>
+#include <linux/platform_device.h>
+#include <linux/pm_runtime.h>
+#include <linux/regmap.h>
+#include <linux/regulator/consumer.h>
+#include <linux/regulator/machine.h>
+#include <linux/regulator/of_regulator.h>
+
+#include <linux/mfd/madera/core.h>
+#include <linux/mfd/madera/registers.h>
+
+#include "madera.h"
+
+#define CS47L35_SILICON_ID 0x6360
+#define CS47L85_SILICON_ID 0x6338
+#define CS47L90_SILICON_ID 0x6364
+
+#define MADERA_32KZ_MCLK2 1
+
+static const char * const madera_core_supplies[] = {
+ "AVDD",
+ "DBVDD1",
+};
+
+static const struct mfd_cell madera_ldo1_devs[] = {
+ { .name = "madera-ldo1", .of_compatible = "cirrus,madera-ldo1" },
+};
+
+static const struct mfd_cell cs47l35_devs[] = {
+ { .name = "madera-pinctrl", .of_compatible = "cirrus,madera-pinctrl" },
+ { .name = "madera-irq", },
+ { .name = "madera-micsupp", .of_compatible = "cirrus,madera-micsupp" },
+ { .name = "madera-gpio", .of_compatible = "cirrus,madera-gpio" },
+ { .name = "madera-extcon", .of_compatible = "cirrus,madera-extcon" },
+ { .name = "cs47l35-codec", .of_compatible = "cirrus,cs47l35-codec" },
+ { .name = "madera-haptics", .of_compatible = "cirrus,madera-haptics" },
+};
+
+static const struct mfd_cell cs47l85_devs[] = {
+ { .name = "madera-pinctrl", .of_compatible = "cirrus,madera-pinctrl" },
+ { .name = "madera-irq", },
+ { .name = "madera-micsupp", .of_compatible = "cirrus,madera-micsupp" },
+ { .name = "madera-gpio", .of_compatible = "cirrus,madera-gpio" },
+ { .name = "madera-extcon", .of_compatible = "cirrus,madera-extcon" },
+ { .name = "cs47l85-codec", .of_compatible = "cirrus,cs47l85-codec" },
+ { .name = "madera-haptics", .of_compatible = "cirrus,madera-haptics" },
+};
+
+static const struct mfd_cell cs47l90_devs[] = {
+ { .name = "madera-pinctrl", .of_compatible = "cirrus,madera-pinctrl" },
+ { .name = "madera-irq", },
+ { .name = "madera-micsupp", .of_compatible = "cirrus,madera-micsupp" },
+ { .name = "madera-gpio", .of_compatible = "cirrus,madera-gpio" },
+ { .name = "madera-extcon", .of_compatible = "cirrus,madera-extcon" },
+ { .name = "cs47l90-codec", .of_compatible = "cirrus,cs47l90-codec" },
+ { .name = "madera-haptics", .of_compatible = "cirrus,madera-haptics" },
+};
+
+const char *madera_name_from_type(enum madera_type type)
+{
+ switch (type) {
+ case CS47L35:
+ return "CS47L35";
+ case CS47L85:
+ return "CS47L85";
+ case CS47L90:
+ return "CS47L90";
+ case CS47L91:
+ return "CS47L91";
+ case WM1840:
+ return "WM1840";
+ default:
+ return "Unknown";
+ }
+}
+EXPORT_SYMBOL_GPL(madera_name_from_type);
+
+#define MADERA_BOOT_POLL_MAX_INTERVAL_US 5000
+#define MADERA_BOOT_POLL_TIMEOUT_US 25000
+
+static int madera_wait_for_boot(struct madera *madera)
+{
+ unsigned int val;
+ int ret;
+
+ /*
+ * We can't use an interrupt as we need to runtime resume to do so,
+ * so we poll the status bit. This won't race with the interrupt
+ * handler because it will be blocked on runtime resume.
+ */
+ ret = regmap_read_poll_timeout(madera->regmap,
+ MADERA_IRQ1_RAW_STATUS_1,
+ val,
+ (val & MADERA_BOOT_DONE_STS1),
+ MADERA_BOOT_POLL_MAX_INTERVAL_US,
+ MADERA_BOOT_POLL_TIMEOUT_US);
+ /*
+ * BOOT_DONE defaults to unmasked on boot so we must ack it.
+ * Do this unconditionally to avoid interrupt storms
+ */
+ regmap_write(madera->regmap, MADERA_IRQ1_STATUS_1,
+ MADERA_BOOT_DONE_EINT1);
+
+ if (ret)
+ dev_err(madera->dev, "Polling BOOT_DONE_STS failed: %d\n", ret);
+
+ pm_runtime_mark_last_busy(madera->dev);
+
+ return ret;
+}
+
+static int madera_soft_reset(struct madera *madera)
+{
+ int ret;
+
+ ret = regmap_write(madera->regmap, MADERA_SOFTWARE_RESET, 0);
+ if (ret != 0) {
+ dev_err(madera->dev, "Failed to soft reset device: %d\n", ret);
+ return ret;
+ }
+ usleep_range(1000, 2000);
+
+ return 0;
+}
+
+static void madera_enable_hard_reset(struct madera *madera)
+{
+ if (madera->reset_gpio)
+ gpiod_set_value_cansleep(madera->reset_gpio, 0);
+}
+
+static void madera_disable_hard_reset(struct madera *madera)
+{
+ if (madera->reset_gpio) {
+ gpiod_set_value_cansleep(madera->reset_gpio, 1);
+ usleep_range(1000, 2000);
+ }
+}
+
+#ifdef CONFIG_PM
+static int madera_runtime_resume(struct device *dev)
+{
+ struct madera *madera = dev_get_drvdata(dev);
+ int ret;
+
+ dev_dbg(madera->dev, "Leaving sleep mode\n");
+
+ ret = regulator_enable(madera->dcvdd);
+ if (ret) {
+ dev_err(madera->dev, "Failed to enable DCVDD: %d\n", ret);
+ return ret;
+ }
+
+ regcache_cache_only(madera->regmap, false);
+ regcache_cache_only(madera->regmap_32bit, false);
+
+ ret = madera_wait_for_boot(madera);
+ if (ret)
+ goto err;
+
+ ret = regcache_sync(madera->regmap);
+ if (ret) {
+ dev_err(madera->dev,
+ "Failed to restore 16-bit register cache\n");
+ goto err;
+ }
+
+ ret = regcache_sync(madera->regmap_32bit);
+ if (ret) {
+ dev_err(madera->dev,
+ "Failed to restore 32-bit register cache\n");
+ goto err;
+ }
+
+ return 0;
+
+err:
+ regcache_cache_only(madera->regmap_32bit, true);
+ regcache_cache_only(madera->regmap, true);
+ regulator_disable(madera->dcvdd);
+
+ return ret;
+}
+
+static int madera_runtime_suspend(struct device *dev)
+{
+ struct madera *madera = dev_get_drvdata(dev);
+
+ dev_dbg(madera->dev, "Entering sleep mode\n");
+
+ regcache_cache_only(madera->regmap, true);
+ regcache_mark_dirty(madera->regmap);
+ regcache_cache_only(madera->regmap_32bit, true);
+ regcache_mark_dirty(madera->regmap_32bit);
+
+ regulator_disable(madera->dcvdd);
+
+ return 0;
+}
+#endif
+
+const struct dev_pm_ops madera_pm_ops = {
+ SET_RUNTIME_PM_OPS(madera_runtime_suspend,
+ madera_runtime_resume,
+ NULL)
+};
+EXPORT_SYMBOL_GPL(madera_pm_ops);
+
+unsigned int madera_get_num_micbias(struct madera *madera)
+{
+
+ switch (madera->type) {
+ case CS47L35:
+ return 2;
+ case CS47L85:
+ case WM1840:
+ return 4;
+ case CS47L90:
+ case CS47L91:
+ return 2;
+ default:
+ dev_warn(madera->dev, "No micbias known for codec %s\n",
+ madera_name_from_type(madera->type));
+ return 0;
+ }
+}
+EXPORT_SYMBOL_GPL(madera_get_num_micbias);
+
+unsigned int madera_get_num_childbias(struct madera *madera,
+ unsigned int micbias)
+{
+ /*
+ * micbias argument reserved for future codecs that don't
+ * have the same number of children on each micbias
+ */
+
+ switch (madera->type) {
+ case CS47L35:
+ return 2;
+ case CS47L85:
+ case WM1840:
+ return 0;
+ case CS47L90:
+ case CS47L91:
+ return 4;
+ default:
+ dev_warn(madera->dev, "No child micbias known for codec %s\n",
+ madera_name_from_type(madera->type));
+ return 0;
+ }
+}
+EXPORT_SYMBOL_GPL(madera_get_num_childbias);
+
+#ifdef CONFIG_OF
+const struct of_device_id madera_of_match[] = {
+ { .compatible = "cirrus,cs47l35", .data = (void *)CS47L35 },
+ { .compatible = "cirrus,cs47l85", .data = (void *)CS47L85 },
+ { .compatible = "cirrus,cs47l90", .data = (void *)CS47L90 },
+ { .compatible = "cirrus,cs47l91", .data = (void *)CS47L91 },
+ { .compatible = "cirrus,wm1840", .data = (void *)WM1840 },
+ {},
+};
+EXPORT_SYMBOL_GPL(madera_of_match);
+
+unsigned long madera_of_get_type(struct device *dev)
+{
+ const struct of_device_id *id = of_match_device(madera_of_match, dev);
+
+ if (id)
+ return (unsigned long)id->data;
+ else
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_of_get_type);
+#endif
+
+static int madera_prop_get_core_pdata(struct madera *madera)
+{
+ int ret;
+
+ madera->reset_gpio = devm_gpiod_get_optional(madera->dev,
+ "reset",
+ GPIOD_OUT_LOW);
+ if (IS_ERR(madera->reset_gpio)) {
+ ret = PTR_ERR(madera->reset_gpio);
+
+ if (ret == -EPROBE_DEFER)
+ return ret;
+ else if ((ret < 0) && (ret != -EINVAL))
+ dev_warn(madera->dev,
+ "DT property reset-gpio is malformed: %d\n",
+ ret);
+ }
+
+ return 0;
+}
+
+static void madera_configure_micbias(struct madera *madera)
+{
+ unsigned int num_micbias = madera_get_num_micbias(madera);
+ struct madera_micbias_pdata *pdata;
+ struct regulator_init_data *init_data;
+ unsigned int num_child_micbias;
+ unsigned int val, mask, reg;
+ int i, j, ret;
+
+ for (i = 0; i < num_micbias; i++) {
+ pdata = &madera->pdata.micbias[i];
+ init_data = &pdata->init_data;
+
+ if (!init_data->constraints.max_uV &&
+ !init_data->constraints.valid_ops_mask)
+ continue; /* pdata not set */
+
+ /* Apply default for bypass mode */
+ if (!init_data->constraints.max_uV)
+ init_data->constraints.max_uV = 2800;
+
+ val = (init_data->constraints.max_uV - 1500000) / 100000;
+ val <<= MADERA_MICB1_LVL_SHIFT;
+
+ mask = MADERA_MICB1_LVL_MASK | MADERA_MICB1_EXT_CAP |
+ MADERA_MICB1_BYPASS | MADERA_MICB1_RATE;
+
+ if (pdata->ext_cap)
+ val |= MADERA_MICB1_EXT_CAP;
+
+ /* if no child biases the discharge is set in the parent */
+ num_child_micbias = madera_get_num_childbias(madera, i + 1);
+ if (num_child_micbias == 0) {
+ mask |= MADERA_MICB1_DISCH;
+
+ switch (init_data->constraints.active_discharge) {
+ case REGULATOR_ACTIVE_DISCHARGE_ENABLE:
+ val |= MADERA_MICB1_DISCH;
+ break;
+ default:
+ break;
+ }
+ }
+
+ if (init_data->constraints.soft_start)
+ val |= MADERA_MICB1_RATE;
+
+ if (init_data->constraints.valid_ops_mask &
+ REGULATOR_CHANGE_BYPASS)
+ val |= MADERA_MICB1_BYPASS;
+
+ reg = MADERA_MIC_BIAS_CTRL_1 + i;
+ ret = regmap_update_bits(madera->regmap, reg, mask, val);
+ if (ret)
+ dev_warn(madera->dev, "Failed to write 0x%x (%d)\n",
+ reg, ret);
+
+ dev_dbg(madera->dev, "Set MICBIAS_CTRL_%d mask=0x%x val=0x%x\n",
+ i + 1, mask, val);
+
+ /* Configure the child micbias pins */
+ val = 0;
+ mask = 0;
+ for (j = 0; j < num_child_micbias; j++) {
+ mask |= (MADERA_MICB1A_DISCH << (j * 4));
+
+ init_data = &pdata->pin[j].init_data;
+ switch (init_data->constraints.active_discharge) {
+ case REGULATOR_ACTIVE_DISCHARGE_ENABLE:
+ val |= (MADERA_MICB1A_DISCH << (j * 4));
+ break;
+ default:
+ break;
+ }
+ }
+
+ if (mask) {
+ reg = MADERA_MIC_BIAS_CTRL_5 + (i * 2);
+ ret = regmap_update_bits(madera->regmap, reg, mask, val);
+ if (ret)
+ dev_warn(madera->dev,
+ "Failed to write 0x%x (%d)\n",
+ reg, ret);
+
+ dev_dbg(madera->dev,
+ "Set MICBIAS_CTRL_%d mask=0x%x val=0x%x\n",
+ i + 5, mask, val);
+ }
+ }
+}
+
+int madera_dev_init(struct madera *madera)
+{
+ struct device *dev = madera->dev;
+ const char *name;
+ unsigned int hwid;
+ int (*patch_fn)(struct madera *) = NULL;
+ const struct mfd_cell *mfd_devs;
+ int n_devs = 0;
+ int i, ret;
+
+ dev_set_drvdata(madera->dev, madera);
+ BLOCKING_INIT_NOTIFIER_HEAD(&madera->notifier);
+
+ if (dev_get_platdata(madera->dev)) {
+ memcpy(&madera->pdata, dev_get_platdata(madera->dev),
+ sizeof(madera->pdata));
+
+ /* We use 0 in pdata to indicate a GPIO has not been set */
+ if (madera->pdata.reset > 0) {
+ /* Start out with /RESET asserted */
+ ret = devm_gpio_request_one(madera->dev,
+ madera->pdata.reset,
+ GPIOF_DIR_OUT | GPIOF_INIT_LOW,
+ "madera reset");
+ if (ret) {
+ dev_err(dev, "Failed to request /RESET: %d\n",
+ ret);
+ return ret;
+ }
+
+ madera->reset_gpio = gpio_to_desc(madera->pdata.reset);
+ }
+ } else {
+ ret = madera_prop_get_core_pdata(madera);
+ if (ret)
+ return ret;
+ }
+
+ if (!madera->reset_gpio)
+ dev_warn(madera->dev,
+ "Running without reset GPIO is not recommended\n");
+
+ regcache_cache_only(madera->regmap, true);
+ regcache_cache_only(madera->regmap_32bit, true);
+
+ for (i = 0; i < ARRAY_SIZE(madera_core_supplies); i++)
+ madera->core_supplies[i].supply = madera_core_supplies[i];
+
+ madera->num_core_supplies = ARRAY_SIZE(madera_core_supplies);
+
+ switch (madera->type) {
+ case CS47L35:
+ case CS47L90:
+ case CS47L91:
+ break;
+ case CS47L85:
+ case WM1840:
+ ret = mfd_add_devices(madera->dev, PLATFORM_DEVID_NONE,
+ madera_ldo1_devs,
+ ARRAY_SIZE(madera_ldo1_devs),
+ NULL, 0, NULL);
+ if (ret != 0) {
+ dev_err(dev, "Failed to add LDO1 child: %d\n", ret);
+ return ret;
+ }
+ break;
+ default:
+ dev_err(madera->dev, "Unknown device type %d\n", madera->type);
+ return -ENODEV;
+ }
+
+ ret = devm_regulator_bulk_get(dev, madera->num_core_supplies,
+ madera->core_supplies);
+ if (ret) {
+ dev_err(dev, "Failed to request core supplies: %d\n", ret);
+ goto err_devs;
+ }
+
+ /*
+ * Don't use devres here because the only device we have to get
+ * against is the MFD device and DCVDD will likely be supplied by
+ * one of its children. Meaning that the regulator will be
+ * destroyed by the time devres calls regulator put.
+ */
+ madera->dcvdd = regulator_get_exclusive(madera->dev, "DCVDD");
+ if (IS_ERR(madera->dcvdd)) {
+ ret = PTR_ERR(madera->dcvdd);
+ dev_err(dev, "Failed to request DCVDD: %d\n", ret);
+ goto err_devs;
+ }
+
+ ret = regulator_bulk_enable(madera->num_core_supplies,
+ madera->core_supplies);
+ if (ret) {
+ dev_err(dev, "Failed to enable core supplies: %d\n", ret);
+ goto err_dcvdd;
+ }
+
+ ret = regulator_enable(madera->dcvdd);
+ if (ret) {
+ dev_err(dev, "Failed to enable DCVDD: %d\n", ret);
+ goto err_enable;
+ }
+
+ madera_disable_hard_reset(madera);
+
+ regcache_cache_only(madera->regmap, false);
+ regcache_cache_only(madera->regmap_32bit, false);
+
+ /*
+ * Verify that this is a chip we know about before we
+ * starting doing any writes to its registers
+ */
+ ret = regmap_read(madera->regmap, MADERA_SOFTWARE_RESET, &hwid);
+ if (ret) {
+ dev_err(dev, "Failed to read ID register: %d\n", ret);
+ goto err_reset;
+ }
+
+ switch (hwid) {
+ case CS47L35_SILICON_ID:
+ case CS47L85_SILICON_ID:
+ case CS47L90_SILICON_ID:
+ break;
+ default:
+ dev_err(madera->dev, "Unknown device ID: %x\n", hwid);
+ ret = -EINVAL;
+ goto err_reset;
+ }
+
+ /* If we don't have a reset GPIO use a soft reset */
+ if (!madera->reset_gpio) {
+ ret = madera_soft_reset(madera);
+ if (ret)
+ goto err_reset;
+ }
+
+ ret = madera_wait_for_boot(madera);
+ if (ret) {
+ dev_err(madera->dev, "Device failed initial boot: %d\n", ret);
+ goto err_reset;
+ }
+
+ ret = regmap_read(madera->regmap, MADERA_HARDWARE_REVISION,
+ &madera->rev);
+ if (ret) {
+ dev_err(dev, "Failed to read revision register: %d\n", ret);
+ goto err_reset;
+ }
+ madera->rev &= MADERA_HW_REVISION_MASK;
+
+ name = madera_name_from_type(madera->type);
+
+ switch (hwid) {
+ case CS47L35_SILICON_ID:
+ if (IS_ENABLED(CONFIG_MFD_CS47L35)) {
+ switch (madera->type) {
+ case CS47L35:
+ patch_fn = cs47l35_patch;
+ mfd_devs = cs47l35_devs;
+ n_devs = ARRAY_SIZE(cs47l35_devs);
+ break;
+ default:
+ break;
+ }
+ }
+ break;
+ case CS47L85_SILICON_ID:
+ if (IS_ENABLED(CONFIG_MFD_CS47L85)) {
+ switch (madera->type) {
+ case CS47L85:
+ case WM1840:
+ patch_fn = cs47l85_patch;
+ mfd_devs = cs47l85_devs;
+ n_devs = ARRAY_SIZE(cs47l85_devs);
+ break;
+ default:
+ break;
+ }
+ }
+ break;
+ case CS47L90_SILICON_ID:
+ if (IS_ENABLED(CONFIG_MFD_CS47L90)) {
+ switch (madera->type) {
+ case CS47L90:
+ case CS47L91:
+ patch_fn = cs47l90_patch;
+ mfd_devs = cs47l90_devs;
+ n_devs = ARRAY_SIZE(cs47l90_devs);
+ break;
+ default:
+ break;
+ }
+ }
+ break;
+ default:
+ break;
+ }
+
+ if (!n_devs) {
+ dev_err(madera->dev, "Device ID 0x%x not a %s\n", hwid, name);
+ ret = -ENODEV;
+ goto err_reset;
+ }
+
+ dev_info(dev, "%s silicon revision %d\n", name, madera->rev);
+
+ /* Apply hardware patch */
+ if (patch_fn) {
+ ret = patch_fn(madera);
+ if (ret) {
+ dev_err(madera->dev, "Failed to apply patch %d\n", ret);
+ goto err_reset;
+ }
+ }
+
+ /* Init 32k clock sourced from MCLK2 */
+ ret = regmap_update_bits(madera->regmap,
+ MADERA_CLOCK_32K_1,
+ MADERA_CLK_32K_ENA_MASK | MADERA_CLK_32K_SRC_MASK,
+ MADERA_CLK_32K_ENA | MADERA_32KZ_MCLK2);
+ if (ret) {
+ dev_err(madera->dev, "Failed to init 32k clock: %d\n", ret);
+ goto err_reset;
+ }
+
+ madera_configure_micbias(madera);
+
+ pm_runtime_set_active(madera->dev);
+ pm_runtime_enable(madera->dev);
+ pm_runtime_set_autosuspend_delay(madera->dev, 100);
+ pm_runtime_use_autosuspend(madera->dev);
+
+ ret = mfd_add_devices(madera->dev, PLATFORM_DEVID_NONE,
+ mfd_devs, n_devs,
+ NULL, 0, NULL);
+ if (ret) {
+ dev_err(madera->dev, "Failed to add subdevices: %d\n", ret);
+ goto err_pm_runtime;
+ }
+
+ return 0;
+
+err_pm_runtime:
+ pm_runtime_disable(madera->dev);
+err_reset:
+ madera_enable_hard_reset(madera);
+ regulator_disable(madera->dcvdd);
+err_enable:
+ regulator_bulk_disable(madera->num_core_supplies,
+ madera->core_supplies);
+err_dcvdd:
+ regulator_put(madera->dcvdd);
+err_devs:
+ mfd_remove_devices(dev);
+
+ return ret;
+}
+EXPORT_SYMBOL_GPL(madera_dev_init);
+
+int madera_dev_exit(struct madera *madera)
+{
+ /* Prevent any IRQs being serviced while we clean up */
+ disable_irq(madera->irq);
+
+ /*
+ * DCVDD could be supplied by a child node, we must disable it before
+ * removing the children, and prevent PM runtime from turning it back on
+ */
+ pm_runtime_disable(madera->dev);
+
+ regulator_disable(madera->dcvdd);
+ regulator_put(madera->dcvdd);
+
+ mfd_remove_devices(madera->dev);
+ madera_enable_hard_reset(madera);
+
+ regulator_bulk_disable(madera->num_core_supplies,
+ madera->core_supplies);
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_dev_exit);
diff --git a/drivers/mfd/madera-i2c.c b/drivers/mfd/madera-i2c.c
new file mode 100644
index 0000000..8c90780
--- /dev/null
+++ b/drivers/mfd/madera-i2c.c
@@ -0,0 +1,130 @@
+/*
+ * I2C bus interface to Cirrus Logic Madera codecs
+ *
+ * Copyright 2015-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/device.h>
+#include <linux/err.h>
+#include <linux/i2c.h>
+#include <linux/module.h>
+#include <linux/regmap.h>
+#include <linux/of.h>
+
+#include <linux/mfd/madera/core.h>
+
+#include "madera.h"
+
+static int madera_i2c_probe(struct i2c_client *i2c,
+ const struct i2c_device_id *id)
+{
+ struct madera *madera;
+ const struct regmap_config *regmap_16bit_config = NULL;
+ const struct regmap_config *regmap_32bit_config = NULL;
+ unsigned long type;
+ int ret;
+
+ if (i2c->dev.of_node)
+ type = madera_of_get_type(&i2c->dev);
+ else
+ type = id->driver_data;
+
+ switch (type) {
+ case CS47L35:
+ if (IS_ENABLED(CONFIG_MFD_CS47L35)) {
+ regmap_16bit_config = &cs47l35_16bit_i2c_regmap;
+ regmap_32bit_config = &cs47l35_32bit_i2c_regmap;
+ }
+ break;
+ case CS47L85:
+ case WM1840:
+ if (IS_ENABLED(CONFIG_MFD_CS47L85)) {
+ regmap_16bit_config = &cs47l85_16bit_i2c_regmap;
+ regmap_32bit_config = &cs47l85_32bit_i2c_regmap;
+ }
+ break;
+ case CS47L90:
+ case CS47L91:
+ if (IS_ENABLED(CONFIG_MFD_CS47L90)) {
+ regmap_16bit_config = &cs47l90_16bit_i2c_regmap;
+ regmap_32bit_config = &cs47l90_32bit_i2c_regmap;
+ }
+ break;
+ default:
+ dev_err(&i2c->dev,
+ "Unknown Madera I2C device type %ld\n", type);
+ return -EINVAL;
+ }
+
+ if (!regmap_16bit_config) {
+ dev_err(&i2c->dev,
+ "Kernel does not include support for %s\n",
+ madera_name_from_type(type));
+ return -EINVAL;
+ }
+
+ madera = devm_kzalloc(&i2c->dev, sizeof(*madera), GFP_KERNEL);
+ if (!madera)
+ return -ENOMEM;
+
+ madera->regmap = devm_regmap_init_i2c(i2c, regmap_16bit_config);
+ if (IS_ERR(madera->regmap)) {
+ ret = PTR_ERR(madera->regmap);
+ dev_err(&i2c->dev,
+ "Failed to allocate 16-bit register map: %d\n", ret);
+ return ret;
+ }
+
+ madera->regmap_32bit = devm_regmap_init_i2c(i2c, regmap_32bit_config);
+ if (IS_ERR(madera->regmap_32bit)) {
+ ret = PTR_ERR(madera->regmap_32bit);
+ dev_err(&i2c->dev,
+ "Failed to allocate 32-bit register map: %d\n", ret);
+ return ret;
+ }
+
+ madera->type = type;
+ madera->dev = &i2c->dev;
+ madera->irq = i2c->irq;
+
+ return madera_dev_init(madera);
+}
+
+static int madera_i2c_remove(struct i2c_client *i2c)
+{
+ struct madera *madera = dev_get_drvdata(&i2c->dev);
+
+ madera_dev_exit(madera);
+ return 0;
+}
+
+static const struct i2c_device_id madera_i2c_id[] = {
+ { "cs47l35", CS47L35 },
+ { "cs47l85", CS47L85 },
+ { "cs47l90", CS47L90 },
+ { "cs47l91", CS47L91 },
+ { "wm1840", WM1840 },
+ { }
+};
+MODULE_DEVICE_TABLE(i2c, madera_i2c_id);
+
+static struct i2c_driver madera_i2c_driver = {
+ .driver = {
+ .name = "madera",
+ .pm = &madera_pm_ops,
+ .of_match_table = of_match_ptr(madera_of_match),
+ },
+ .probe = madera_i2c_probe,
+ .remove = madera_i2c_remove,
+ .id_table = madera_i2c_id,
+};
+
+module_i2c_driver(madera_i2c_driver);
+
+MODULE_DESCRIPTION("Madera I2C bus interface");
+MODULE_AUTHOR("Richard Fitzgerald <[email protected]>");
+MODULE_LICENSE("GPL v2");
diff --git a/drivers/mfd/madera-spi.c b/drivers/mfd/madera-spi.c
new file mode 100644
index 0000000..e7e13f0
--- /dev/null
+++ b/drivers/mfd/madera-spi.c
@@ -0,0 +1,131 @@
+/*
+ * SPI bus interface to Cirrus Logic Madera codecs
+ *
+ * Copyright 2015-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/device.h>
+#include <linux/err.h>
+#include <linux/module.h>
+#include <linux/regmap.h>
+#include <linux/of.h>
+#include <linux/spi/spi.h>
+
+#include <linux/mfd/madera/core.h>
+
+#include "madera.h"
+
+static int madera_spi_probe(struct spi_device *spi)
+{
+ const struct spi_device_id *id = spi_get_device_id(spi);
+ struct madera *madera;
+ const struct regmap_config *regmap_16bit_config = NULL;
+ const struct regmap_config *regmap_32bit_config = NULL;
+ unsigned long type;
+ int ret;
+
+ if (spi->dev.of_node)
+ type = madera_of_get_type(&spi->dev);
+ else
+ type = id->driver_data;
+
+ switch (type) {
+ case CS47L35:
+ if (IS_ENABLED(CONFIG_MFD_CS47L35)) {
+ regmap_16bit_config = &cs47l35_16bit_spi_regmap;
+ regmap_32bit_config = &cs47l35_32bit_spi_regmap;
+ }
+ break;
+ case CS47L85:
+ case WM1840:
+ if (IS_ENABLED(CONFIG_MFD_CS47L85)) {
+ regmap_16bit_config = &cs47l85_16bit_spi_regmap;
+ regmap_32bit_config = &cs47l85_32bit_spi_regmap;
+ }
+ break;
+ case CS47L90:
+ case CS47L91:
+ if (IS_ENABLED(CONFIG_MFD_CS47L90)) {
+ regmap_16bit_config = &cs47l90_16bit_spi_regmap;
+ regmap_32bit_config = &cs47l90_32bit_spi_regmap;
+ }
+ break;
+ default:
+ dev_err(&spi->dev,
+ "Unknown Madera SPI device type %ld\n", type);
+ return -EINVAL;
+ }
+
+ if (!regmap_16bit_config) {
+ dev_err(&spi->dev,
+ "Kernel does not include support for %s\n",
+ madera_name_from_type(type));
+ return -EINVAL;
+ }
+
+ madera = devm_kzalloc(&spi->dev, sizeof(*madera), GFP_KERNEL);
+ if (!madera)
+ return -ENOMEM;
+
+ madera->regmap = devm_regmap_init_spi(spi, regmap_16bit_config);
+ if (IS_ERR(madera->regmap)) {
+ ret = PTR_ERR(madera->regmap);
+ dev_err(&spi->dev,
+ "Failed to allocate 16-bit register map: %d\n", ret);
+ return ret;
+ }
+
+ madera->regmap_32bit = devm_regmap_init_spi(spi, regmap_32bit_config);
+ if (IS_ERR(madera->regmap_32bit)) {
+ ret = PTR_ERR(madera->regmap_32bit);
+ dev_err(&spi->dev,
+ "Failed to allocate 32-bit register map: %d\n", ret);
+ return ret;
+ }
+
+ madera->type = type;
+ madera->dev = &spi->dev;
+ madera->irq = spi->irq;
+
+ return madera_dev_init(madera);
+}
+
+static int madera_spi_remove(struct spi_device *spi)
+{
+ struct madera *madera = spi_get_drvdata(spi);
+
+ madera_dev_exit(madera);
+ return 0;
+}
+
+static const struct spi_device_id madera_spi_ids[] = {
+ { "cs47l35", CS47L35 },
+ { "cs47l85", CS47L85 },
+ { "cs47l90", CS47L90 },
+ { "cs47l91", CS47L91 },
+ { "wm1840", WM1840 },
+ { },
+};
+MODULE_DEVICE_TABLE(spi, madera_spi_ids);
+
+static struct spi_driver madera_spi_driver = {
+ .driver = {
+ .name = "madera",
+ .owner = THIS_MODULE,
+ .pm = &madera_pm_ops,
+ .of_match_table = of_match_ptr(madera_of_match),
+ },
+ .probe = madera_spi_probe,
+ .remove = madera_spi_remove,
+ .id_table = madera_spi_ids,
+};
+
+module_spi_driver(madera_spi_driver);
+
+MODULE_DESCRIPTION("Madera SPI bus interface");
+MODULE_AUTHOR("Richard Fitzgerald <[email protected]>");
+MODULE_LICENSE("GPL v2");
diff --git a/drivers/mfd/madera.h b/drivers/mfd/madera.h
new file mode 100644
index 0000000..57f6add
--- /dev/null
+++ b/drivers/mfd/madera.h
@@ -0,0 +1,52 @@
+/*
+ * madera.h -- MFD internals for Cirrus Logic Madera codecs
+ *
+ * Copyright 2015-2016 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef MADERA_MFD_H
+#define MADERA_MFD_H
+
+#include <linux/pm.h>
+#include <linux/of.h>
+
+struct madera;
+
+extern const struct dev_pm_ops madera_pm_ops;
+extern const struct of_device_id madera_of_match[];
+
+int madera_dev_init(struct madera *madera);
+int madera_dev_exit(struct madera *madera);
+
+#ifdef CONFIG_OF
+unsigned long madera_of_get_type(struct device *dev);
+#else
+static inline unsigned long madera_of_get_type(struct device *dev)
+{
+ return 0;
+}
+#endif
+
+extern const struct regmap_config cs47l35_16bit_spi_regmap;
+extern const struct regmap_config cs47l35_32bit_spi_regmap;
+extern const struct regmap_config cs47l35_16bit_i2c_regmap;
+extern const struct regmap_config cs47l35_32bit_i2c_regmap;
+int cs47l35_patch(struct madera *madera);
+
+extern const struct regmap_config cs47l85_16bit_spi_regmap;
+extern const struct regmap_config cs47l85_32bit_spi_regmap;
+extern const struct regmap_config cs47l85_16bit_i2c_regmap;
+extern const struct regmap_config cs47l85_32bit_i2c_regmap;
+int cs47l85_patch(struct madera *madera);
+
+extern const struct regmap_config cs47l90_16bit_spi_regmap;
+extern const struct regmap_config cs47l90_32bit_spi_regmap;
+extern const struct regmap_config cs47l90_16bit_i2c_regmap;
+extern const struct regmap_config cs47l90_32bit_i2c_regmap;
+int cs47l90_patch(struct madera *madera);
+
+#endif
diff --git a/include/linux/mfd/madera/core.h b/include/linux/mfd/madera/core.h
new file mode 100644
index 0000000..59b05f8
--- /dev/null
+++ b/include/linux/mfd/madera/core.h
@@ -0,0 +1,175 @@
+/*
+ * MFD internals for Cirrus Logic Madera codecs
+ *
+ * Copyright 2015-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef MADERA_CORE_H
+#define MADERA_CORE_H
+
+#include <linux/interrupt.h>
+#include <linux/regmap.h>
+#include <linux/notifier.h>
+#include <linux/gpio/consumer.h>
+#include <linux/regulator/consumer.h>
+#include <linux/mfd/madera/pdata.h>
+#include <linux/irqchip/irq-madera.h>
+#include <sound/madera-pdata.h>
+
+enum madera_type {
+ CS47L35 = 1,
+ CS47L85 = 2,
+ CS47L90 = 3,
+ CS47L91 = 4,
+ WM1840 = 7,
+};
+
+#define MADERA_MAX_CORE_SUPPLIES 2
+#define MADERA_MAX_GPIOS 40
+
+#define CS47L35_NUM_GPIOS 16
+#define CS47L85_NUM_GPIOS 40
+#define CS47L90_NUM_GPIOS 38
+
+
+/* Notifier events */
+#define MADERA_NOTIFY_VOICE_TRIGGER 0x1
+#define MADERA_NOTIFY_HPDET 0x2
+#define MADERA_NOTIFY_MICDET 0x4
+
+/* GPIO Function Definitions */
+#define MADERA_GP_FN_ALTERNATE 0x00
+#define MADERA_GP_FN_GPIO 0x01
+#define MADERA_GP_FN_DSP_GPIO 0x02
+#define MADERA_GP_FN_IRQ1 0x03
+#define MADERA_GP_FN_IRQ2 0x04
+#define MADERA_GP_FN_FLL1_CLOCK 0x10
+#define MADERA_GP_FN_FLL2_CLOCK 0x11
+#define MADERA_GP_FN_FLL3_CLOCK 0x12
+#define MADERA_GP_FN_FLLAO_CLOCK 0x13
+#define MADERA_GP_FN_FLL1_LOCK 0x18
+#define MADERA_GP_FN_FLL2_LOCK 0x19
+#define MADERA_GP_FN_FLL3_LOCK 0x1A
+#define MADERA_GP_FN_FLLAO_LOCK 0x1B
+#define MADERA_GP_FN_OPCLK_OUT 0x40
+#define MADERA_GP_FN_OPCLK_ASYNC_OUT 0x41
+#define MADERA_GP_FN_PWM1 0x48
+#define MADERA_GP_FN_PWM2 0x49
+#define MADERA_GP_FN_SPDIF_OUT 0x4C
+#define MADERA_GP_FN_HEADPHONE_DET 0x50
+#define MADERA_GP_FN_MIC_DET 0x58
+#define MADERA_GP_FN_DRC1_SIGNAL_DETECT 0x80
+#define MADERA_GP_FN_DRC2_SIGNAL_DETECT 0x81
+#define MADERA_GP_FN_ASRC1_IN1_LOCK 0x88
+#define MADERA_GP_FN_ASRC1_IN2_LOCK 0x89
+#define MADERA_GP_FN_ASRC2_IN1_LOCK 0x8A
+#define MADERA_GP_FN_ASRC2_IN2_LOCK 0x8B
+#define MADERA_GP_FN_DSP_IRQ1 0xA0
+#define MADERA_GP_FN_DSP_IRQ2 0xA1
+#define MADERA_GP_FN_DSP_IRQ3 0xA2
+#define MADERA_GP_FN_DSP_IRQ4 0xA3
+#define MADERA_GP_FN_DSP_IRQ5 0xA4
+#define MADERA_GP_FN_DSP_IRQ6 0xA5
+#define MADERA_GP_FN_DSP_IRQ7 0xA6
+#define MADERA_GP_FN_DSP_IRQ8 0xA7
+#define MADERA_GP_FN_DSP_IRQ9 0xA8
+#define MADERA_GP_FN_DSP_IRQ10 0xA9
+#define MADERA_GP_FN_DSP_IRQ11 0xAA
+#define MADERA_GP_FN_DSP_IRQ12 0xAB
+#define MADERA_GP_FN_DSP_IRQ13 0xAC
+#define MADERA_GP_FN_DSP_IRQ14 0xAD
+#define MADERA_GP_FN_DSP_IRQ15 0xAE
+#define MADERA_GP_FN_DSP_IRQ16 0xAF
+#define MADERA_GP_FN_HPOUT1L_SC 0xB0
+#define MADERA_GP_FN_HPOUT1R_SC 0xB1
+#define MADERA_GP_FN_HPOUT2L_SC 0xB2
+#define MADERA_GP_FN_HPOUT2R_SC 0xB3
+#define MADERA_GP_FN_HPOUT3L_SC 0xB4
+#define MADERA_GP_FN_HPOUT4R_SC 0xB5
+#define MADERA_GP_FN_SPKOUTL_SC 0xB6
+#define MADERA_GP_FN_SPKOUTR_SC 0xB7
+#define MADERA_GP_FN_HPOUT1L_ENA 0xC0
+#define MADERA_GP_FN_HPOUT1R_ENA 0xC1
+#define MADERA_GP_FN_HPOUT2L_ENA 0xC2
+#define MADERA_GP_FN_HPOUT2R_ENA 0xC3
+#define MADERA_GP_FN_HPOUT3L_ENA 0xC4
+#define MADERA_GP_FN_HPOUT4R_ENA 0xC5
+#define MADERA_GP_FN_SPKOUTL_ENA 0xC6
+#define MADERA_GP_FN_SPKOUTR_ENA 0xC7
+#define MADERA_GP_FN_HPOUT1L_DIS 0xD0
+#define MADERA_GP_FN_HPOUT1R_DIS 0xD1
+#define MADERA_GP_FN_HPOUT2L_DIS 0xD2
+#define MADERA_GP_FN_HPOUT2R_DIS 0xD3
+#define MADERA_GP_FN_HPOUT3L_DIS 0xD4
+#define MADERA_GP_FN_HPOUT4R_DIS 0xD5
+#define MADERA_GP_FN_SPKOUTL_DIS 0xD6
+#define MADERA_GP_FN_SPKOUTR_DIS 0xD7
+#define MADERA_GP_FN_SPK_SHUTDOWN 0xE0
+#define MADERA_GP_FN_SPK_OVH_SHUTDOWN 0xE1
+#define MADERA_GP_FN_SPK_OVH_WARN 0xE2
+#define MADERA_GP_FN_TIMER1_STATUS 0x140
+#define MADERA_GP_FN_TIMER2_STATUS 0x141
+#define MADERA_GP_FN_TIMER3_STATUS 0x142
+#define MADERA_GP_FN_TIMER4_STATUS 0x143
+#define MADERA_GP_FN_TIMER5_STATUS 0x144
+#define MADERA_GP_FN_TIMER6_STATUS 0x145
+#define MADERA_GP_FN_TIMER7_STATUS 0x146
+#define MADERA_GP_FN_TIMER8_STATUS 0x147
+#define MADERA_GP_FN_EVENTLOG1_FIFO_STS 0x150
+#define MADERA_GP_FN_EVENTLOG2_FIFO_STS 0x151
+#define MADERA_GP_FN_EVENTLOG3_FIFO_STS 0x152
+#define MADERA_GP_FN_EVENTLOG4_FIFO_STS 0x153
+#define MADERA_GP_FN_EVENTLOG5_FIFO_STS 0x154
+#define MADERA_GP_FN_EVENTLOG6_FIFO_STS 0x155
+#define MADERA_GP_FN_EVENTLOG7_FIFO_STS 0x156
+#define MADERA_GP_FN_EVENTLOG8_FIFO_STS 0x157
+
+struct snd_soc_dapm_context;
+
+struct madera {
+ struct regmap *regmap;
+ struct regmap *regmap_32bit;
+
+ struct device *dev;
+
+ enum madera_type type;
+ unsigned int rev;
+
+ struct gpio_desc *reset_gpio;
+
+ int num_core_supplies;
+ struct regulator_bulk_data core_supplies[MADERA_MAX_CORE_SUPPLIES];
+ struct regulator *dcvdd;
+ bool internal_dcvdd;
+
+ struct madera_pdata pdata;
+
+ struct device *irq_dev;
+ int irq;
+
+ unsigned int out_clamp[MADERA_MAX_OUTPUT];
+ unsigned int out_shorted[MADERA_MAX_OUTPUT];
+ unsigned int hp_ena;
+
+ struct snd_soc_dapm_context *dapm;
+
+ struct blocking_notifier_head notifier;
+};
+
+unsigned int madera_get_num_micbias(struct madera *madera);
+unsigned int madera_get_num_childbias(struct madera *madera,
+ unsigned int micbias);
+
+const char *madera_name_from_type(enum madera_type type);
+
+static inline int madera_call_notifiers(struct madera *madera,
+ unsigned long event,
+ void *data)
+{
+ return blocking_notifier_call_chain(&madera->notifier, event, data);
+}
+#endif
diff --git a/include/linux/mfd/madera/pdata.h b/include/linux/mfd/madera/pdata.h
new file mode 100644
index 0000000..6d930aa
--- /dev/null
+++ b/include/linux/mfd/madera/pdata.h
@@ -0,0 +1,88 @@
+/*
+ * Platform data for Cirrus Logic Madera codecs
+ *
+ * Copyright 2015-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef MADERA_PDATA_H
+#define MADERA_PDATA_H
+
+#include <linux/kernel.h>
+#include <linux/regulator/machine.h>
+
+#include <linux/regulator/madera-ldo1.h>
+#include <linux/regulator/madera-micsupp.h>
+#include <linux/irqchip/irq-madera-pdata.h>
+#include <sound/madera-pdata.h>
+
+#define MADERA_MAX_MICBIAS 4
+#define MADERA_MAX_CHILD_MICBIAS 4
+
+#define MADERA_MAX_GPSW 2
+
+struct pinctrl_map;
+
+/** MICBIAS pin configuration */
+struct madera_micbias_pin_pdata {
+ /** Regulator configuration for pin switch */
+ struct regulator_init_data init_data;
+};
+
+/** Regulator configuration for an on-chip MICBIAS */
+struct madera_micbias_pdata {
+ /** Configuration of the MICBIAS generator */
+ struct regulator_init_data init_data;
+
+ bool ext_cap; /** External capacitor fitted */
+
+ /**
+ * Configuration for each output pin from this MICBIAS
+ * (Not used on CS47L85 and WM1840)
+ */
+ struct madera_micbias_pin_pdata pin[MADERA_MAX_CHILD_MICBIAS];
+};
+
+struct madera_pdata {
+ /** GPIO controlling /RESET, if any */
+ int reset;
+
+ /** Substruct of pdata for the LDO1 regulator */
+ struct madera_ldo1_pdata ldo1;
+
+ /** Substruct of pdata for the MICSUPP regulator */
+ struct madera_micsupp_pdata micsupp;
+
+ /** Substruct of pdata for the irqchip driver */
+ struct madera_irqchip_pdata irqchip;
+
+ /** Base GPIO */
+ int gpio_base;
+
+ /**
+ * Array of GPIO configurations
+ * See Documentation/pinctrl.txt
+ */
+ const struct pinctrl_map *gpio_configs;
+ int n_gpio_configs;
+
+ /** MICBIAS configurations */
+ struct madera_micbias_pdata micbias[MADERA_MAX_MICBIAS];
+
+ /**
+ * Substructure of pdata for the ASoC codec driver
+ * See include/sound/madera-pdata.h
+ */
+ struct madera_codec_pdata codec;
+
+ /**
+ * General purpose switch mode setting
+ * See the SW1_MODE field in the datasheet for the available values
+ */
+ u32 gpsw[MADERA_MAX_GPSW];
+};
+
+#endif
--
1.9.1
Regmap configuration tables for Cirrus Logic CS47L35 codecs.
Signed-off-by: Piotr Stankiewicz <[email protected]>
Signed-off-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
---
drivers/mfd/Kconfig | 6 +
drivers/mfd/Makefile | 3 +
drivers/mfd/cs47l35-tables.c | 1688 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 1697 insertions(+)
create mode 100644 drivers/mfd/cs47l35-tables.c
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index f0f9979..5aa62f4 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -226,6 +226,12 @@ config MFD_MADERA_SPI
Support for the Cirrus Logic Madera platform audio SoC
core functionality controlled via SPI.
+config MFD_CS47L35
+ bool "Cirrus Logic CS47L35"
+ depends on MFD_MADERA
+ help
+ Support for Cirrus Logic CS47L35 Smart Codec
+
config MFD_ASIC3
bool "Compaq ASIC3"
depends on GPIOLIB && ARM
diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
index c41f6c9..c14a86d 100644
--- a/drivers/mfd/Makefile
+++ b/drivers/mfd/Makefile
@@ -73,6 +73,9 @@ wm8994-objs := wm8994-core.o wm8994-irq.o wm8994-regmap.o
obj-$(CONFIG_MFD_WM8994) += wm8994.o
obj-$(CONFIG_MFD_MADERA) += madera-core.o
+ifeq ($(CONFIG_MFD_CS47L35),y)
+obj-$(CONFIG_MFD_MADERA) += cs47l35-tables.o
+endif
obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o
obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
diff --git a/drivers/mfd/cs47l35-tables.c b/drivers/mfd/cs47l35-tables.c
new file mode 100644
index 0000000..1336c60
--- /dev/null
+++ b/drivers/mfd/cs47l35-tables.c
@@ -0,0 +1,1688 @@
+/*
+ * Regmap tables for CS47L35 codec
+ *
+ * Copyright 2015-2016 Cirrus Logic
+ *
+ * Author: Piotr Stankiewicz <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/device.h>
+#include <linux/module.h>
+#include <linux/regmap.h>
+
+#include <linux/mfd/madera/core.h>
+#include <linux/mfd/madera/registers.h>
+
+#include "madera.h"
+
+static const struct reg_sequence cs47l35_reva_16_patch[] = {
+ { 0x460, 0x0c40 },
+ { 0x461, 0xcd1a },
+ { 0x462, 0x0c40 },
+ { 0x463, 0xb53b },
+ { 0x464, 0x0c40 },
+ { 0x465, 0x7503 },
+ { 0x466, 0x0c40 },
+ { 0x467, 0x4a41 },
+ { 0x468, 0x0041 },
+ { 0x469, 0x3491 },
+ { 0x46a, 0x0841 },
+ { 0x46b, 0x1f50 },
+ { 0x46c, 0x0446 },
+ { 0x46d, 0x14ed },
+ { 0x46e, 0x0446 },
+ { 0x46f, 0x1455 },
+ { 0x470, 0x04c6 },
+ { 0x471, 0x1220 },
+ { 0x472, 0x04c6 },
+ { 0x473, 0x040f },
+ { 0x474, 0x04ce },
+ { 0x475, 0x0339 },
+ { 0x476, 0x05df },
+ { 0x477, 0x028f },
+ { 0x478, 0x05df },
+ { 0x479, 0x0209 },
+ { 0x47a, 0x05df },
+ { 0x47b, 0x00cf },
+ { 0x47c, 0x05df },
+ { 0x47d, 0x0001 },
+ { 0x47e, 0x07ff },
+};
+
+int cs47l35_patch(struct madera *madera)
+{
+ int ret;
+
+ ret = regmap_register_patch(madera->regmap, cs47l35_reva_16_patch,
+ ARRAY_SIZE(cs47l35_reva_16_patch));
+ if (ret < 0)
+ dev_err(madera->dev, "Error applying patch: %d\n", ret);
+
+ return ret;
+}
+EXPORT_SYMBOL_GPL(cs47l35_patch);
+
+static const struct reg_default cs47l35_reg_default[] = {
+ { 0x00000020, 0x0000 }, /* R32 (0x20) - Tone Generator 1 */
+ { 0x00000021, 0x1000 }, /* R33 (0x21) - Tone Generator 2 */
+ { 0x00000022, 0x0000 }, /* R34 (0x22) - Tone Generator 3 */
+ { 0x00000023, 0x1000 }, /* R35 (0x23) - Tone Generator 4 */
+ { 0x00000024, 0x0000 }, /* R36 (0x24) - Tone Generator 5 */
+ { 0x00000030, 0x0000 }, /* R48 (0x30) - PWM Drive 1 */
+ { 0x00000031, 0x0100 }, /* R49 (0x31) - PWM Drive 2 */
+ { 0x00000032, 0x0100 }, /* R50 (0x32) - PWM Drive 3 */
+ { 0x00000061, 0x01ff }, /* R97 (0x61) - Sample Rate Sequence Select 1 */
+ { 0x00000062, 0x01ff }, /* R98 (0x62) - Sample Rate Sequence Select 2 */
+ { 0x00000063, 0x01ff }, /* R99 (0x63) - Sample Rate Sequence Select 3 */
+ { 0x00000064, 0x01ff }, /* R100 (0x64) - Sample Rate Sequence Select 4*/
+ { 0x00000066, 0x01ff }, /* R102 (0x66) - Always On Triggers Sequence Select 1*/
+ { 0x00000067, 0x01ff }, /* R103 (0x67) - Always On Triggers Sequence Select 2*/
+ { 0x00000090, 0x0000 }, /* R144 (0x90) - Haptics Control 1 */
+ { 0x00000091, 0x7fff }, /* R145 (0x91) - Haptics Control 2 */
+ { 0x00000092, 0x0000 }, /* R146 (0x92) - Haptics phase 1 intensity */
+ { 0x00000093, 0x0000 }, /* R147 (0x93) - Haptics phase 1 duration */
+ { 0x00000094, 0x0000 }, /* R148 (0x94) - Haptics phase 2 intensity */
+ { 0x00000095, 0x0000 }, /* R149 (0x95) - Haptics phase 2 duration */
+ { 0x00000096, 0x0000 }, /* R150 (0x96) - Haptics phase 3 intensity */
+ { 0x00000097, 0x0000 }, /* R151 (0x97) - Haptics phase 3 duration */
+ { 0x000000A0, 0x0000 }, /* R160 (0xa0) - Comfort Noise Generator */
+ { 0x00000100, 0x0002 }, /* R256 (0x100) - Clock 32k 1 */
+ { 0x00000101, 0x0404 }, /* R257 (0x101) - System Clock 1 */
+ { 0x00000102, 0x0011 }, /* R258 (0x102) - Sample rate 1 */
+ { 0x00000103, 0x0011 }, /* R259 (0x103) - Sample rate 2 */
+ { 0x00000104, 0x0011 }, /* R260 (0x104) - Sample rate 3 */
+ { 0x00000120, 0x0305 }, /* R288 (0x120) - DSP Clock 1 */
+ { 0x00000122, 0x0000 }, /* R290 (0x122) - DSP Clock 2 */
+ { 0x00000149, 0x0000 }, /* R329 (0x149) - Output system clock */
+ { 0x0000014a, 0x0000 }, /* R330 (0x14a) - Output async clock */
+ { 0x00000152, 0x0000 }, /* R338 (0x152) - Rate Estimator 1 */
+ { 0x00000153, 0x0000 }, /* R339 (0x153) - Rate Estimator 2 */
+ { 0x00000154, 0x0000 }, /* R340 (0x154) - Rate Estimator 3 */
+ { 0x00000155, 0x0000 }, /* R341 (0x155) - Rate Estimator 4 */
+ { 0x00000156, 0x0000 }, /* R342 (0x156) - Rate Estimator 5 */
+ { 0x00000171, 0x0002 }, /* R369 (0x171) - FLL1 Control 1 */
+ { 0x00000172, 0x0008 }, /* R370 (0x172) - FLL1 Control 2 */
+ { 0x00000173, 0x0018 }, /* R371 (0x173) - FLL1 Control 3 */
+ { 0x00000174, 0x007d }, /* R372 (0x174) - FLL1 Control 4 */
+ { 0x00000175, 0x0000 }, /* R373 (0x175) - FLL1 Control 5 */
+ { 0x00000176, 0x0000 }, /* R374 (0x176) - FLL1 Control 6 */
+ { 0x00000177, 0x0281 }, /* R375 (0x177) - FLL1 Loop Filter Test 1 */
+ { 0x00000179, 0x0000 }, /* R377 (0x179) - FLL1 Control 7 */
+ { 0x0000017f, 0x0000 }, /* R383 (0x17f) - FLL1 Synchroniser 1 */
+ { 0x00000180, 0x0000 }, /* R384 (0x180) - FLL1 Synchroniser 2 */
+ { 0x00000181, 0x0000 }, /* R385 (0x181) - FLL1 Synchroniser 3 */
+ { 0x00000182, 0x0000 }, /* R386 (0x182) - FLL1 Synchroniser 4 */
+ { 0x00000183, 0x0000 }, /* R387 (0x183) - FLL1 Synchroniser 5 */
+ { 0x00000184, 0x0000 }, /* R388 (0x184) - FLL1 Synchroniser 6 */
+ { 0x00000185, 0x0001 }, /* R389 (0x185) - FLL1 Synchroniser 7 */
+ { 0x00000187, 0x0000 }, /* R391 (0x187) - FLL1 Spread Spectrum */
+ { 0x00000188, 0x000c }, /* R392 (0x188) - FLL1 GPIO Clock */
+ { 0x00000200, 0x0006 }, /* R512 (0x200) - Mic Charge Pump 1 */
+ { 0x0000020b, 0x0400 }, /* R523 (0x20b) - HP Charge Pump 8 */
+ { 0x00000213, 0x03e4 }, /* R531 (0x213) - LDO2 Control 1 */
+ { 0x00000218, 0x00e6 }, /* R536 (0x218) - Mic Bias Ctrl 1 */
+ { 0x00000219, 0x00e6 }, /* R537 (0x219) - Mic Bias Ctrl 2 */
+ { 0x0000021c, 0x0022 }, /* R540 (0x21c) - Mic Bias Ctrl 5 */
+ { 0x0000021e, 0x0022 }, /* R542 (0x21e) - Mic Bias Ctrl 6 */
+ { 0x0000027e, 0x0000 }, /* R638 (0x27e) - EDRE HP stereo control */
+ { 0x00000293, 0x0080 }, /* R659 (0x293) - Accessory Detect Mode 1 */
+ { 0x0000029b, 0x0000 }, /* R667 (0x29b) - Headphone Detect 1 */
+ { 0x000002a3, 0x1102 }, /* R675 (0x2a3) - Mic Detect Control 1 */
+ { 0x000002a4, 0x009f }, /* R676 (0x2a4) - Mic Detect Control 2 */
+ { 0x000002a6, 0x3d3d }, /* R678 (0x2a6) - Mic Detect Level 1 */
+ { 0x000002a7, 0x3d3d }, /* R679 (0x2a7) - Mic Detect Level 2 */
+ { 0x000002a8, 0x333d }, /* R680 (0x2a8) - Mic Detect Level 3 */
+ { 0x000002a9, 0x202d }, /* R681 (0x2a9) - Mic Detect Level 4 */
+ { 0x000002c6, 0x0010 }, /* R710 (0x2c5) - Mic Clamp control */
+ { 0x000002c8, 0x0000 }, /* R712 (0x2c8) - GP switch 1 */
+ { 0x000002d3, 0x0000 }, /* R723 (0x2d3) - Jack detect analogue */
+ { 0x00000300, 0x0000 }, /* R768 (0x300) - Input Enables */
+ { 0x00000308, 0x0000 }, /* R776 (0x308) - Input Rate */
+ { 0x00000309, 0x0022 }, /* R777 (0x309) - Input Volume Ramp */
+ { 0x0000030c, 0x0002 }, /* R780 (0x30c) - HPF Control */
+ { 0x00000310, 0x0080 }, /* R784 (0x310) - IN1L Control */
+ { 0x00000311, 0x0180 }, /* R785 (0x311) - ADC Digital Volume 1L */
+ { 0x00000312, 0x0500 }, /* R786 (0x312) - DMIC1L Control */
+ { 0x00000314, 0x0080 }, /* R788 (0x314) - IN1R Control */
+ { 0x00000315, 0x0180 }, /* R789 (0x315) - ADC Digital Volume 1R */
+ { 0x00000316, 0x0000 }, /* R790 (0x316) - DMIC1R Control */
+ { 0x00000318, 0x0080 }, /* R792 (0x318) - IN2L Control */
+ { 0x00000319, 0x0180 }, /* R793 (0x319) - ADC Digital Volume 2L */
+ { 0x0000031a, 0x0500 }, /* R794 (0x31a) - DMIC2L Control */
+ { 0x0000031c, 0x0080 }, /* R796 (0x31c) - IN2R Control */
+ { 0x0000031d, 0x0180 }, /* R797 (0x31d) - ADC Digital Volume 2R */
+ { 0x0000031e, 0x0000 }, /* R798 (0x31e) - DMIC2R Control */
+ { 0x00000400, 0x0000 }, /* R1024 (0x400) - Output Enables 1 */
+ { 0x00000408, 0x0000 }, /* R1032 (0x408) - Output Rate 1 */
+ { 0x00000409, 0x0022 }, /* R1033 (0x409) - Output Volume Ramp */
+ { 0x00000410, 0x0080 }, /* R1040 (0x410) - Output Path Config 1L */
+ { 0x00000411, 0x0180 }, /* R1041 (0x411) - DAC Digital Volume 1L */
+ { 0x00000413, 0x0001 }, /* R1043 (0x413) - Noise Gate Select 1L */
+ { 0x00000414, 0x0080 }, /* R1044 (0x414) - Output Path Config 1R */
+ { 0x00000415, 0x0180 }, /* R1045 (0x415) - DAC Digital Volume 1R */
+ { 0x00000417, 0x0002 }, /* R1047 (0x417) - Noise Gate Select 1R */
+ { 0x00000428, 0x0000 }, /* R1064 (0x428) - Output Path Config 4L */
+ { 0x00000429, 0x0180 }, /* R1065 (0x429) - DAC Digital Volume 4L */
+ { 0x0000042b, 0x0040 }, /* R1067 (0x42b) - Noise Gate Select 4L */
+ { 0x00000430, 0x0000 }, /* R1072 (0x430) - Output Path Config 5L */
+ { 0x00000431, 0x0180 }, /* R1073 (0x431) - DAC Digital Volume 5L */
+ { 0x00000433, 0x0100 }, /* R1075 (0x433) - Noise Gate Select 5L */
+ { 0x00000434, 0x0000 }, /* R1076 (0x434) - Output Path Config 5R */
+ { 0x00000435, 0x0180 }, /* R1077 (0x435) - DAC Digital Volume 5R */
+ { 0x00000437, 0x0200 }, /* R1079 (0x437) - Noise Gate Select 5R */
+ { 0x00000440, 0x0003 }, /* R1088 (0x440) - DRE Enable */
+ { 0x00000448, 0x0a83 }, /* R1096 (0x448) - eDRE Enable */
+ { 0x0000044a, 0x0000 }, /* R1098 (0x44a) - eDRE Manual */
+ { 0x00000450, 0x0000 }, /* R1104 (0x450) - DAC AEC Control 1 */
+ { 0x00000458, 0x0000 }, /* R1112 (0x458) - Noise Gate Control */
+ { 0x00000490, 0x0069 }, /* R1168 (0x490) - PDM SPK1 CTRL 1 */
+ { 0x00000491, 0x0000 }, /* R1169 (0x491) - PDM SPK1 CTRL 2 */
+ { 0x000004a0, 0x3080 }, /* R1184 (0x4a0) - HP1 Short Circuit Ctrl */
+ { 0x000004a8, 0x7120 }, /* R1192 (0x4a8) - HP Test Ctrl 5 */
+ { 0x000004a9, 0x7120 }, /* R1193 (0x4a9) - HP Test Ctrl 6 */
+ { 0x00000500, 0x000c }, /* R1280 (0x500) - AIF1 BCLK Ctrl */
+ { 0x00000501, 0x0000 }, /* R1281 (0x501) - AIF1 Tx Pin Ctrl */
+ { 0x00000502, 0x0000 }, /* R1282 (0x502) - AIF1 Rx Pin Ctrl */
+ { 0x00000503, 0x0000 }, /* R1283 (0x503) - AIF1 Rate Ctrl */
+ { 0x00000504, 0x0000 }, /* R1284 (0x504) - AIF1 Format */
+ { 0x00000506, 0x0040 }, /* R1286 (0x506) - AIF1 Rx BCLK Rate */
+ { 0x00000507, 0x1818 }, /* R1287 (0x507) - AIF1 Frame Ctrl 1 */
+ { 0x00000508, 0x1818 }, /* R1288 (0x508) - AIF1 Frame Ctrl 2 */
+ { 0x00000509, 0x0000 }, /* R1289 (0x509) - AIF1 Frame Ctrl 3 */
+ { 0x0000050a, 0x0001 }, /* R1290 (0x50a) - AIF1 Frame Ctrl 4 */
+ { 0x0000050b, 0x0002 }, /* R1291 (0x50b) - AIF1 Frame Ctrl 5 */
+ { 0x0000050c, 0x0003 }, /* R1292 (0x50c) - AIF1 Frame Ctrl 6 */
+ { 0x0000050d, 0x0004 }, /* R1293 (0x50d) - AIF1 Frame Ctrl 7 */
+ { 0x0000050e, 0x0005 }, /* R1294 (0x50e) - AIF1 Frame Ctrl 8 */
+ { 0x00000511, 0x0000 }, /* R1297 (0x511) - AIF1 Frame Ctrl 11 */
+ { 0x00000512, 0x0001 }, /* R1298 (0x512) - AIF1 Frame Ctrl 12 */
+ { 0x00000513, 0x0002 }, /* R1299 (0x513) - AIF1 Frame Ctrl 13 */
+ { 0x00000514, 0x0003 }, /* R1300 (0x514) - AIF1 Frame Ctrl 14 */
+ { 0x00000515, 0x0004 }, /* R1301 (0x515) - AIF1 Frame Ctrl 15 */
+ { 0x00000516, 0x0005 }, /* R1302 (0x516) - AIF1 Frame Ctrl 16 */
+ { 0x00000519, 0x0000 }, /* R1305 (0x519) - AIF1 Tx Enables */
+ { 0x0000051a, 0x0000 }, /* R1306 (0x51a) - AIF1 Rx Enables */
+ { 0x00000540, 0x000c }, /* R1344 (0x540) - AIF2 BCLK Ctrl */
+ { 0x00000541, 0x0000 }, /* R1345 (0x541) - AIF2 Tx Pin Ctrl */
+ { 0x00000542, 0x0000 }, /* R1346 (0x542) - AIF2 Rx Pin Ctrl */
+ { 0x00000543, 0x0000 }, /* R1347 (0x543) - AIF2 Rate Ctrl */
+ { 0x00000544, 0x0000 }, /* R1348 (0x544) - AIF2 Format */
+ { 0x00000546, 0x0040 }, /* R1350 (0x546) - AIF2 Rx BCLK Rate */
+ { 0x00000547, 0x1818 }, /* R1351 (0x547) - AIF2 Frame Ctrl 1 */
+ { 0x00000548, 0x1818 }, /* R1352 (0x548) - AIF2 Frame Ctrl 2 */
+ { 0x00000549, 0x0000 }, /* R1353 (0x549) - AIF2 Frame Ctrl 3 */
+ { 0x0000054a, 0x0001 }, /* R1354 (0x54a) - AIF2 Frame Ctrl 4 */
+ { 0x00000551, 0x0000 }, /* R1361 (0x551) - AIF2 Frame Ctrl 11 */
+ { 0x00000552, 0x0001 }, /* R1362 (0x552) - AIF2 Frame Ctrl 12 */
+ { 0x00000559, 0x0000 }, /* R1369 (0x559) - AIF2 Tx Enables */
+ { 0x0000055a, 0x0000 }, /* R1370 (0x55a) - AIF2 Rx Enables */
+ { 0x00000580, 0x000c }, /* R1408 (0x580) - AIF3 BCLK Ctrl */
+ { 0x00000581, 0x0000 }, /* R1409 (0x581) - AIF3 Tx Pin Ctrl */
+ { 0x00000582, 0x0000 }, /* R1410 (0x582) - AIF3 Rx Pin Ctrl */
+ { 0x00000583, 0x0000 }, /* R1411 (0x583) - AIF3 Rate Ctrl */
+ { 0x00000584, 0x0000 }, /* R1412 (0x584) - AIF3 Format */
+ { 0x00000586, 0x0040 }, /* R1414 (0x586) - AIF3 Rx BCLK Rate */
+ { 0x00000587, 0x1818 }, /* R1415 (0x587) - AIF3 Frame Ctrl 1 */
+ { 0x00000588, 0x1818 }, /* R1416 (0x588) - AIF3 Frame Ctrl 2 */
+ { 0x00000589, 0x0000 }, /* R1417 (0x589) - AIF3 Frame Ctrl 3 */
+ { 0x0000058a, 0x0001 }, /* R1418 (0x58a) - AIF3 Frame Ctrl 4 */
+ { 0x00000591, 0x0000 }, /* R1425 (0x591) - AIF3 Frame Ctrl 11 */
+ { 0x00000592, 0x0001 }, /* R1426 (0x592) - AIF3 Frame Ctrl 12 */
+ { 0x00000599, 0x0000 }, /* R1433 (0x599) - AIF3 Tx Enables */
+ { 0x0000059a, 0x0000 }, /* R1434 (0x59a) - AIF3 Rx Enables */
+ { 0x000005c2, 0x0000 }, /* R1474 (0x5c2) - SPD1 TX Control */
+ { 0x000005e3, 0x0000 }, /* R1507 (0x5e3) - SLIMbus Framer Ref Gear */
+ { 0x000005e5, 0x0000 }, /* R1509 (0x5e5) - SLIMbus Rates 1 */
+ { 0x000005e6, 0x0000 }, /* R1510 (0x5e6) - SLIMbus Rates 2 */
+ { 0x000005e7, 0x0000 }, /* R1511 (0x5e7) - SLIMbus Rates 3 */
+ { 0x000005e9, 0x0000 }, /* R1513 (0x5e9) - SLIMbus Rates 5 */
+ { 0x000005ea, 0x0000 }, /* R1514 (0x5ea) - SLIMbus Rates 6 */
+ { 0x000005eb, 0x0000 }, /* R1515 (0x5eb) - SLIMbus Rates 7 */
+ { 0x000005f5, 0x0000 }, /* R1525 (0x5f5) - SLIMbus RX Channel Enable */
+ { 0x000005f6, 0x0000 }, /* R1526 (0x5f6) - SLIMbus TX Channel Enable */
+ { 0x00000640, 0x0000 }, /* R1600 (0x640) - PWM1MIX Input 1 Source */
+ { 0x00000641, 0x0080 }, /* R1601 (0x641) - PWM1MIX Input 1 Volume */
+ { 0x00000642, 0x0000 }, /* R1602 (0x642) - PWM1MIX Input 2 Source */
+ { 0x00000643, 0x0080 }, /* R1603 (0x643) - PWM1MIX Input 2 Volume */
+ { 0x00000644, 0x0000 }, /* R1604 (0x644) - PWM1MIX Input 3 Source */
+ { 0x00000645, 0x0080 }, /* R1605 (0x645) - PWM1MIX Input 3 Volume */
+ { 0x00000646, 0x0000 }, /* R1606 (0x646) - PWM1MIX Input 4 Source */
+ { 0x00000647, 0x0080 }, /* R1607 (0x647) - PWM1MIX Input 4 Volume */
+ { 0x00000648, 0x0000 }, /* R1608 (0x648) - PWM2MIX Input 1 Source */
+ { 0x00000649, 0x0080 }, /* R1609 (0x649) - PWM2MIX Input 1 Volume */
+ { 0x0000064a, 0x0000 }, /* R1610 (0x64a) - PWM2MIX Input 2 Source */
+ { 0x0000064b, 0x0080 }, /* R1611 (0x64b) - PWM2MIX Input 2 Volume */
+ { 0x0000064c, 0x0000 }, /* R1612 (0x64c) - PWM2MIX Input 3 Source */
+ { 0x0000064d, 0x0080 }, /* R1613 (0x64d) - PWM2MIX Input 3 Volume */
+ { 0x0000064e, 0x0000 }, /* R1614 (0x64e) - PWM2MIX Input 4 Source */
+ { 0x0000064f, 0x0080 }, /* R1615 (0x64f) - PWM2MIX Input 4 Volume */
+ { 0x00000680, 0x0000 }, /* R1664 (0x680) - OUT1LMIX Input 1 Source */
+ { 0x00000681, 0x0080 }, /* R1665 (0x681) - OUT1LMIX Input 1 Volume */
+ { 0x00000682, 0x0000 }, /* R1666 (0x682) - OUT1LMIX Input 2 Source */
+ { 0x00000683, 0x0080 }, /* R1667 (0x683) - OUT1LMIX Input 2 Volume */
+ { 0x00000684, 0x0000 }, /* R1668 (0x684) - OUT1LMIX Input 3 Source */
+ { 0x00000685, 0x0080 }, /* R1669 (0x685) - OUT1LMIX Input 3 Volume */
+ { 0x00000686, 0x0000 }, /* R1670 (0x686) - OUT1LMIX Input 4 Source */
+ { 0x00000687, 0x0080 }, /* R1671 (0x687) - OUT1LMIX Input 4 Volume */
+ { 0x00000688, 0x0000 }, /* R1672 (0x688) - OUT1RMIX Input 1 Source */
+ { 0x00000689, 0x0080 }, /* R1673 (0x689) - OUT1RMIX Input 1 Volume */
+ { 0x0000068a, 0x0000 }, /* R1674 (0x68a) - OUT1RMIX Input 2 Source */
+ { 0x0000068b, 0x0080 }, /* R1675 (0x68b) - OUT1RMIX Input 2 Volume */
+ { 0x0000068c, 0x0000 }, /* R1672 (0x68c) - OUT1RMIX Input 3 Source */
+ { 0x0000068d, 0x0080 }, /* R1673 (0x68d) - OUT1RMIX Input 3 Volume */
+ { 0x0000068e, 0x0000 }, /* R1674 (0x68e) - OUT1RMIX Input 4 Source */
+ { 0x0000068f, 0x0080 }, /* R1675 (0x68f) - OUT1RMIX Input 4 Volume */
+ { 0x000006b0, 0x0000 }, /* R1712 (0x6b0) - OUT4LMIX Input 1 Source */
+ { 0x000006b1, 0x0080 }, /* R1713 (0x6b1) - OUT4LMIX Input 1 Volume */
+ { 0x000006b2, 0x0000 }, /* R1714 (0x6b2) - OUT4LMIX Input 2 Source */
+ { 0x000006b3, 0x0080 }, /* R1715 (0x6b3) - OUT4LMIX Input 2 Volume */
+ { 0x000006b4, 0x0000 }, /* R1716 (0x6b4) - OUT4LMIX Input 3 Source */
+ { 0x000006b5, 0x0080 }, /* R1717 (0x6b5) - OUT4LMIX Input 3 Volume */
+ { 0x000006b6, 0x0000 }, /* R1718 (0x6b6) - OUT4LMIX Input 4 Source */
+ { 0x000006b7, 0x0080 }, /* R1719 (0x6b7) - OUT4LMIX Input 4 Volume */
+ { 0x000006c0, 0x0000 }, /* R1728 (0x6c0) - OUT5LMIX Input 1 Source */
+ { 0x000006c1, 0x0080 }, /* R1729 (0x6c1) - OUT5LMIX Input 1 Volume */
+ { 0x000006c2, 0x0000 }, /* R1730 (0x6c2) - OUT5LMIX Input 2 Source */
+ { 0x000006c3, 0x0080 }, /* R1731 (0x6c3) - OUT5LMIX Input 2 Volume */
+ { 0x000006c4, 0x0000 }, /* R1732 (0x6c4) - OUT5LMIX Input 3 Source */
+ { 0x000006c5, 0x0080 }, /* R1733 (0x6c5) - OUT5LMIX Input 3 Volume */
+ { 0x000006c6, 0x0000 }, /* R1734 (0x6c6) - OUT5LMIX Input 4 Source */
+ { 0x000006c7, 0x0080 }, /* R1735 (0x6c7) - OUT5LMIX Input 4 Volume */
+ { 0x000006c8, 0x0000 }, /* R1736 (0x6c8) - OUT5RMIX Input 1 Source */
+ { 0x000006c9, 0x0080 }, /* R1737 (0x6c9) - OUT5RMIX Input 1 Volume */
+ { 0x000006ca, 0x0000 }, /* R1738 (0x6ca) - OUT5RMIX Input 2 Source */
+ { 0x000006cb, 0x0080 }, /* R1739 (0x6cb) - OUT5RMIX Input 2 Volume */
+ { 0x000006cc, 0x0000 }, /* R1740 (0x6cc) - OUT5RMIX Input 3 Source */
+ { 0x000006cd, 0x0080 }, /* R1741 (0x6cd) - OUT5RMIX Input 3 Volume */
+ { 0x000006ce, 0x0000 }, /* R1742 (0x6ce) - OUT5RMIX Input 4 Source */
+ { 0x000006cf, 0x0080 }, /* R1743 (0x6cf) - OUT5RMIX Input 4 Volume */
+ { 0x00000700, 0x0000 }, /* R1792 (0x700) - AIF1TX1MIX Input 1 Source */
+ { 0x00000701, 0x0080 }, /* R1793 (0x701) - AIF1TX1MIX Input 1 Volume */
+ { 0x00000702, 0x0000 }, /* R1794 (0x702) - AIF1TX1MIX Input 2 Source */
+ { 0x00000703, 0x0080 }, /* R1795 (0x703) - AIF1TX1MIX Input 2 Volume */
+ { 0x00000704, 0x0000 }, /* R1796 (0x704) - AIF1TX1MIX Input 3 Source */
+ { 0x00000705, 0x0080 }, /* R1797 (0x705) - AIF1TX1MIX Input 3 Volume */
+ { 0x00000706, 0x0000 }, /* R1798 (0x706) - AIF1TX1MIX Input 4 Source */
+ { 0x00000707, 0x0080 }, /* R1799 (0x707) - AIF1TX1MIX Input 4 Volume */
+ { 0x00000708, 0x0000 }, /* R1800 (0x708) - AIF1TX2MIX Input 1 Source */
+ { 0x00000709, 0x0080 }, /* R1801 (0x709) - AIF1TX2MIX Input 1 Volume */
+ { 0x0000070a, 0x0000 }, /* R1802 (0x70a) - AIF1TX2MIX Input 2 Source */
+ { 0x0000070b, 0x0080 }, /* R1803 (0x70b) - AIF1TX2MIX Input 2 Volume */
+ { 0x0000070c, 0x0000 }, /* R1804 (0x70c) - AIF1TX2MIX Input 3 Source */
+ { 0x0000070d, 0x0080 }, /* R1805 (0x70d) - AIF1TX2MIX Input 3 Volume */
+ { 0x0000070e, 0x0000 }, /* R1806 (0x70e) - AIF1TX2MIX Input 4 Source */
+ { 0x0000070f, 0x0080 }, /* R1807 (0x70f) - AIF1TX2MIX Input 4 Volume */
+ { 0x00000710, 0x0000 }, /* R1808 (0x710) - AIF1TX3MIX Input 1 Source */
+ { 0x00000711, 0x0080 }, /* R1809 (0x711) - AIF1TX3MIX Input 1 Volume */
+ { 0x00000712, 0x0000 }, /* R1810 (0x712) - AIF1TX3MIX Input 2 Source */
+ { 0x00000713, 0x0080 }, /* R1811 (0x713) - AIF1TX3MIX Input 2 Volume */
+ { 0x00000714, 0x0000 }, /* R1812 (0x714) - AIF1TX3MIX Input 3 Source */
+ { 0x00000715, 0x0080 }, /* R1813 (0x715) - AIF1TX3MIX Input 3 Volume */
+ { 0x00000716, 0x0000 }, /* R1814 (0x716) - AIF1TX3MIX Input 4 Source */
+ { 0x00000717, 0x0080 }, /* R1815 (0x717) - AIF1TX3MIX Input 4 Volume */
+ { 0x00000718, 0x0000 }, /* R1816 (0x718) - AIF1TX4MIX Input 1 Source */
+ { 0x00000719, 0x0080 }, /* R1817 (0x719) - AIF1TX4MIX Input 1 Volume */
+ { 0x0000071a, 0x0000 }, /* R1818 (0x71a) - AIF1TX4MIX Input 2 Source */
+ { 0x0000071b, 0x0080 }, /* R1819 (0x71b) - AIF1TX4MIX Input 2 Volume */
+ { 0x0000071c, 0x0000 }, /* R1820 (0x71c) - AIF1TX4MIX Input 3 Source */
+ { 0x0000071d, 0x0080 }, /* R1821 (0x71d) - AIF1TX4MIX Input 3 Volume */
+ { 0x0000071e, 0x0000 }, /* R1822 (0x71e) - AIF1TX4MIX Input 4 Source */
+ { 0x0000071f, 0x0080 }, /* R1823 (0x71f) - AIF1TX4MIX Input 4 Volume */
+ { 0x00000720, 0x0000 }, /* R1824 (0x720) - AIF1TX5MIX Input 1 Source */
+ { 0x00000721, 0x0080 }, /* R1825 (0x721) - AIF1TX5MIX Input 1 Volume */
+ { 0x00000722, 0x0000 }, /* R1826 (0x722) - AIF1TX5MIX Input 2 Source */
+ { 0x00000723, 0x0080 }, /* R1827 (0x723) - AIF1TX5MIX Input 2 Volume */
+ { 0x00000724, 0x0000 }, /* R1828 (0x724) - AIF1TX5MIX Input 3 Source */
+ { 0x00000725, 0x0080 }, /* R1829 (0x725) - AIF1TX5MIX Input 3 Volume */
+ { 0x00000726, 0x0000 }, /* R1830 (0x726) - AIF1TX5MIX Input 4 Source */
+ { 0x00000727, 0x0080 }, /* R1831 (0x727) - AIF1TX5MIX Input 4 Volume */
+ { 0x00000728, 0x0000 }, /* R1832 (0x728) - AIF1TX6MIX Input 1 Source */
+ { 0x00000729, 0x0080 }, /* R1833 (0x729) - AIF1TX6MIX Input 1 Volume */
+ { 0x0000072a, 0x0000 }, /* R1834 (0x72a) - AIF1TX6MIX Input 2 Source */
+ { 0x0000072b, 0x0080 }, /* R1835 (0x72b) - AIF1TX6MIX Input 2 Volume */
+ { 0x0000072c, 0x0000 }, /* R1836 (0x72c) - AIF1TX6MIX Input 3 Source */
+ { 0x0000072d, 0x0080 }, /* R1837 (0x72d) - AIF1TX6MIX Input 3 Volume */
+ { 0x0000072e, 0x0000 }, /* R1838 (0x72e) - AIF1TX6MIX Input 4 Source */
+ { 0x0000072f, 0x0080 }, /* R1839 (0x72f) - AIF1TX6MIX Input 4 Volume */
+ { 0x00000740, 0x0000 }, /* R1856 (0x740) - AIF2TX1MIX Input 1 Source */
+ { 0x00000741, 0x0080 }, /* R1857 (0x741) - AIF2TX1MIX Input 1 Volume */
+ { 0x00000742, 0x0000 }, /* R1858 (0x742) - AIF2TX1MIX Input 2 Source */
+ { 0x00000743, 0x0080 }, /* R1859 (0x743) - AIF2TX1MIX Input 2 Volume */
+ { 0x00000744, 0x0000 }, /* R1860 (0x744) - AIF2TX1MIX Input 3 Source */
+ { 0x00000745, 0x0080 }, /* R1861 (0x745) - AIF2TX1MIX Input 3 Volume */
+ { 0x00000746, 0x0000 }, /* R1862 (0x746) - AIF2TX1MIX Input 4 Source */
+ { 0x00000747, 0x0080 }, /* R1863 (0x747) - AIF2TX1MIX Input 4 Volume */
+ { 0x00000748, 0x0000 }, /* R1864 (0x748) - AIF2TX2MIX Input 1 Source */
+ { 0x00000749, 0x0080 }, /* R1865 (0x749) - AIF2TX2MIX Input 1 Volume */
+ { 0x0000074a, 0x0000 }, /* R1866 (0x74a) - AIF2TX2MIX Input 2 Source */
+ { 0x0000074b, 0x0080 }, /* R1867 (0x74b) - AIF2TX2MIX Input 2 Volume */
+ { 0x0000074c, 0x0000 }, /* R1868 (0x74c) - AIF2TX2MIX Input 3 Source */
+ { 0x0000074d, 0x0080 }, /* R1869 (0x74d) - AIF2TX2MIX Input 3 Volume */
+ { 0x0000074e, 0x0000 }, /* R1870 (0x74e) - AIF2TX2MIX Input 4 Source */
+ { 0x0000074f, 0x0080 }, /* R1871 (0x74f) - AIF2TX2MIX Input 4 Volume */
+ { 0x00000780, 0x0000 }, /* R1920 (0x780) - AIF3TX1MIX Input 1 Source */
+ { 0x00000781, 0x0080 }, /* R1921 (0x781) - AIF3TX1MIX Input 1 Volume */
+ { 0x00000782, 0x0000 }, /* R1922 (0x782) - AIF3TX1MIX Input 2 Source */
+ { 0x00000783, 0x0080 }, /* R1923 (0x783) - AIF3TX1MIX Input 2 Volume */
+ { 0x00000784, 0x0000 }, /* R1924 (0x784) - AIF3TX1MIX Input 3 Source */
+ { 0x00000785, 0x0080 }, /* R1925 (0x785) - AIF3TX1MIX Input 3 Volume */
+ { 0x00000786, 0x0000 }, /* R1926 (0x786) - AIF3TX1MIX Input 4 Source */
+ { 0x00000787, 0x0080 }, /* R1927 (0x787) - AIF3TX1MIX Input 4 Volume */
+ { 0x00000788, 0x0000 }, /* R1928 (0x788) - AIF3TX2MIX Input 1 Source */
+ { 0x00000789, 0x0080 }, /* R1929 (0x789) - AIF3TX2MIX Input 1 Volume */
+ { 0x0000078a, 0x0000 }, /* R1930 (0x78a) - AIF3TX2MIX Input 2 Source */
+ { 0x0000078b, 0x0080 }, /* R1931 (0x78b) - AIF3TX2MIX Input 2 Volume */
+ { 0x0000078c, 0x0000 }, /* R1932 (0x78c) - AIF3TX2MIX Input 3 Source */
+ { 0x0000078d, 0x0080 }, /* R1933 (0x78d) - AIF3TX2MIX Input 3 Volume */
+ { 0x0000078e, 0x0000 }, /* R1934 (0x78e) - AIF3TX2MIX Input 4 Source */
+ { 0x0000078f, 0x0080 }, /* R1935 (0x78f) - AIF3TX2MIX Input 4 Volume */
+ { 0x000007c0, 0x0000 }, /* R1984 (0x7c0) - SLIMTX1MIX Input 1 Source */
+ { 0x000007c1, 0x0080 }, /* R1985 (0x7c1) - SLIMTX1MIX Input 1 Volume */
+ { 0x000007c2, 0x0000 }, /* R1986 (0x7c2) - SLIMTX1MIX Input 2 Source */
+ { 0x000007c3, 0x0080 }, /* R1987 (0x7c3) - SLIMTX1MIX Input 2 Volume */
+ { 0x000007c4, 0x0000 }, /* R1988 (0x7c4) - SLIMTX1MIX Input 3 Source */
+ { 0x000007c5, 0x0080 }, /* R1989 (0x7c5) - SLIMTX1MIX Input 3 Volume */
+ { 0x000007c6, 0x0000 }, /* R1990 (0x7c6) - SLIMTX1MIX Input 4 Source */
+ { 0x000007c7, 0x0080 }, /* R1991 (0x7c7) - SLIMTX1MIX Input 4 Volume */
+ { 0x000007c8, 0x0000 }, /* R1992 (0x7c8) - SLIMTX2MIX Input 1 Source */
+ { 0x000007c9, 0x0080 }, /* R1993 (0x7c9) - SLIMTX2MIX Input 1 Volume */
+ { 0x000007ca, 0x0000 }, /* R1994 (0x7ca) - SLIMTX2MIX Input 2 Source */
+ { 0x000007cb, 0x0080 }, /* R1995 (0x7cb) - SLIMTX2MIX Input 2 Volume */
+ { 0x000007cc, 0x0000 }, /* R1996 (0x7cc) - SLIMTX2MIX Input 3 Source */
+ { 0x000007cd, 0x0080 }, /* R1997 (0x7cd) - SLIMTX2MIX Input 3 Volume */
+ { 0x000007ce, 0x0000 }, /* R1998 (0x7ce) - SLIMTX2MIX Input 4 Source */
+ { 0x000007cf, 0x0080 }, /* R1999 (0x7cf) - SLIMTX2MIX Input 4 Volume */
+ { 0x000007d0, 0x0000 }, /* R2000 (0x7d0) - SLIMTX3MIX Input 1 Source */
+ { 0x000007d1, 0x0080 }, /* R2001 (0x7d1) - SLIMTX3MIX Input 1 Volume */
+ { 0x000007d2, 0x0000 }, /* R2002 (0x7d2) - SLIMTX3MIX Input 2 Source */
+ { 0x000007d3, 0x0080 }, /* R2003 (0x7d3) - SLIMTX3MIX Input 2 Volume */
+ { 0x000007d4, 0x0000 }, /* R2004 (0x7d4) - SLIMTX3MIX Input 3 Source */
+ { 0x000007d5, 0x0080 }, /* R2005 (0x7d5) - SLIMTX3MIX Input 3 Volume */
+ { 0x000007d6, 0x0000 }, /* R2006 (0x7d6) - SLIMTX3MIX Input 4 Source */
+ { 0x000007d7, 0x0080 }, /* R2007 (0x7d7) - SLIMTX3MIX Input 4 Volume */
+ { 0x000007d8, 0x0000 }, /* R2008 (0x7d8) - SLIMTX4MIX Input 1 Source */
+ { 0x000007d9, 0x0080 }, /* R2009 (0x7d9) - SLIMTX4MIX Input 1 Volume */
+ { 0x000007da, 0x0000 }, /* R2010 (0x7da) - SLIMTX4MIX Input 2 Source */
+ { 0x000007db, 0x0080 }, /* R2011 (0x7db) - SLIMTX4MIX Input 2 Volume */
+ { 0x000007dc, 0x0000 }, /* R2012 (0x7dc) - SLIMTX4MIX Input 3 Source */
+ { 0x000007dd, 0x0080 }, /* R2013 (0x7dd) - SLIMTX4MIX Input 3 Volume */
+ { 0x000007de, 0x0000 }, /* R2014 (0x7de) - SLIMTX4MIX Input 4 Source */
+ { 0x000007df, 0x0080 }, /* R2015 (0x7df) - SLIMTX4MIX Input 4 Volume */
+ { 0x000007e0, 0x0000 }, /* R2016 (0x7e0) - SLIMTX5MIX Input 1 Source */
+ { 0x000007e1, 0x0080 }, /* R2017 (0x7e1) - SLIMTX5MIX Input 1 Volume */
+ { 0x000007e2, 0x0000 }, /* R2018 (0x7e2) - SLIMTX5MIX Input 2 Source */
+ { 0x000007e3, 0x0080 }, /* R2019 (0x7e3) - SLIMTX5MIX Input 2 Volume */
+ { 0x000007e4, 0x0000 }, /* R2020 (0x7e4) - SLIMTX5MIX Input 3 Source */
+ { 0x000007e5, 0x0080 }, /* R2021 (0x7e5) - SLIMTX5MIX Input 3 Volume */
+ { 0x000007e6, 0x0000 }, /* R2022 (0x7e6) - SLIMTX5MIX Input 4 Source */
+ { 0x000007e7, 0x0080 }, /* R2023 (0x7e7) - SLIMTX5MIX Input 4 Volume */
+ { 0x000007e8, 0x0000 }, /* R2024 (0x7e8) - SLIMTX6MIX Input 1 Source */
+ { 0x000007e9, 0x0080 }, /* R2025 (0x7e9) - SLIMTX6MIX Input 1 Volume */
+ { 0x000007ea, 0x0000 }, /* R2026 (0x7ea) - SLIMTX6MIX Input 2 Source */
+ { 0x000007eb, 0x0080 }, /* R2027 (0x7eb) - SLIMTX6MIX Input 2 Volume */
+ { 0x000007ec, 0x0000 }, /* R2028 (0x7ec) - SLIMTX6MIX Input 3 Source */
+ { 0x000007ed, 0x0080 }, /* R2029 (0x7ed) - SLIMTX6MIX Input 3 Volume */
+ { 0x000007ee, 0x0000 }, /* R2030 (0x7ee) - SLIMTX6MIX Input 4 Source */
+ { 0x000007ef, 0x0080 }, /* R2031 (0x7ef) - SLIMTX6MIX Input 4 Volume */
+ { 0x00000800, 0x0000 }, /* R2048 (0x800) - SPDIF1TX1MIX Input 1 Source*/
+ { 0x00000801, 0x0080 }, /* R2049 (0x801) - SPDIF1TX1MIX Input 1 Volume*/
+ { 0x00000808, 0x0000 }, /* R2056 (0x808) - SPDIF1TX2MIX Input 1 Source*/
+ { 0x00000809, 0x0080 }, /* R2057 (0x809) - SPDIF1TX2MIX Input 1 Volume*/
+ { 0x00000880, 0x0000 }, /* R2176 (0x880) - EQ1MIX Input 1 Source */
+ { 0x00000881, 0x0080 }, /* R2177 (0x881) - EQ1MIX Input 1 Volume */
+ { 0x00000882, 0x0000 }, /* R2178 (0x882) - EQ1MIX Input 2 Source */
+ { 0x00000883, 0x0080 }, /* R2179 (0x883) - EQ1MIX Input 2 Volume */
+ { 0x00000884, 0x0000 }, /* R2180 (0x884) - EQ1MIX Input 3 Source */
+ { 0x00000885, 0x0080 }, /* R2181 (0x885) - EQ1MIX Input 3 Volume */
+ { 0x00000886, 0x0000 }, /* R2182 (0x886) - EQ1MIX Input 4 Source */
+ { 0x00000887, 0x0080 }, /* R2183 (0x887) - EQ1MIX Input 4 Volume */
+ { 0x00000888, 0x0000 }, /* R2184 (0x888) - EQ2MIX Input 1 Source */
+ { 0x00000889, 0x0080 }, /* R2185 (0x889) - EQ2MIX Input 1 Volume */
+ { 0x0000088a, 0x0000 }, /* R2186 (0x88a) - EQ2MIX Input 2 Source */
+ { 0x0000088b, 0x0080 }, /* R2187 (0x88b) - EQ2MIX Input 2 Volume */
+ { 0x0000088c, 0x0000 }, /* R2188 (0x88c) - EQ2MIX Input 3 Source */
+ { 0x0000088d, 0x0080 }, /* R2189 (0x88d) - EQ2MIX Input 3 Volume */
+ { 0x0000088e, 0x0000 }, /* R2190 (0x88e) - EQ2MIX Input 4 Source */
+ { 0x0000088f, 0x0080 }, /* R2191 (0x88f) - EQ2MIX Input 4 Volume */
+ { 0x00000890, 0x0000 }, /* R2192 (0x890) - EQ3MIX Input 1 Source */
+ { 0x00000891, 0x0080 }, /* R2193 (0x891) - EQ3MIX Input 1 Volume */
+ { 0x00000892, 0x0000 }, /* R2194 (0x892) - EQ3MIX Input 2 Source */
+ { 0x00000893, 0x0080 }, /* R2195 (0x893) - EQ3MIX Input 2 Volume */
+ { 0x00000894, 0x0000 }, /* R2196 (0x894) - EQ3MIX Input 3 Source */
+ { 0x00000895, 0x0080 }, /* R2197 (0x895) - EQ3MIX Input 3 Volume */
+ { 0x00000896, 0x0000 }, /* R2198 (0x896) - EQ3MIX Input 4 Source */
+ { 0x00000897, 0x0080 }, /* R2199 (0x897) - EQ3MIX Input 4 Volume */
+ { 0x00000898, 0x0000 }, /* R2200 (0x898) - EQ4MIX Input 1 Source */
+ { 0x00000899, 0x0080 }, /* R2201 (0x899) - EQ4MIX Input 1 Volume */
+ { 0x0000089a, 0x0000 }, /* R2202 (0x89a) - EQ4MIX Input 2 Source */
+ { 0x0000089b, 0x0080 }, /* R2203 (0x89b) - EQ4MIX Input 2 Volume */
+ { 0x0000089c, 0x0000 }, /* R2204 (0x89c) - EQ4MIX Input 3 Source */
+ { 0x0000089d, 0x0080 }, /* R2205 (0x89d) - EQ4MIX Input 3 Volume */
+ { 0x0000089e, 0x0000 }, /* R2206 (0x89e) - EQ4MIX Input 4 Source */
+ { 0x0000089f, 0x0080 }, /* R2207 (0x89f) - EQ4MIX Input 4 Volume */
+ { 0x000008c0, 0x0000 }, /* R2240 (0x8c0) - DRC1LMIX Input 1 Source */
+ { 0x000008c1, 0x0080 }, /* R2241 (0x8c1) - DRC1LMIX Input 1 Volume */
+ { 0x000008c2, 0x0000 }, /* R2242 (0x8c2) - DRC1LMIX Input 2 Source */
+ { 0x000008c3, 0x0080 }, /* R2243 (0x8c3) - DRC1LMIX Input 2 Volume */
+ { 0x000008c4, 0x0000 }, /* R2244 (0x8c4) - DRC1LMIX Input 3 Source */
+ { 0x000008c5, 0x0080 }, /* R2245 (0x8c5) - DRC1LMIX Input 3 Volume */
+ { 0x000008c6, 0x0000 }, /* R2246 (0x8c6) - DRC1LMIX Input 4 Source */
+ { 0x000008c7, 0x0080 }, /* R2247 (0x8c7) - DRC1LMIX Input 4 Volume */
+ { 0x000008c8, 0x0000 }, /* R2248 (0x8c8) - DRC1RMIX Input 1 Source */
+ { 0x000008c9, 0x0080 }, /* R2249 (0x8c9) - DRC1RMIX Input 1 Volume */
+ { 0x000008ca, 0x0000 }, /* R2250 (0x8ca) - DRC1RMIX Input 2 Source */
+ { 0x000008cb, 0x0080 }, /* R2251 (0x8cb) - DRC1RMIX Input 2 Volume */
+ { 0x000008cc, 0x0000 }, /* R2252 (0x8cc) - DRC1RMIX Input 3 Source */
+ { 0x000008cd, 0x0080 }, /* R2253 (0x8cd) - DRC1RMIX Input 3 Volume */
+ { 0x000008ce, 0x0000 }, /* R2254 (0x8ce) - DRC1RMIX Input 4 Source */
+ { 0x000008cf, 0x0080 }, /* R2255 (0x8cf) - DRC1RMIX Input 4 Volume */
+ { 0x000008d0, 0x0000 }, /* R2256 (0x8d0) - DRC2LMIX Input 1 Source */
+ { 0x000008d1, 0x0080 }, /* R2257 (0x8d1) - DRC2LMIX Input 1 Volume */
+ { 0x000008d2, 0x0000 }, /* R2258 (0x8d2) - DRC2LMIX Input 2 Source */
+ { 0x000008d3, 0x0080 }, /* R2259 (0x8d3) - DRC2LMIX Input 2 Volume */
+ { 0x000008d4, 0x0000 }, /* R2260 (0x8d4) - DRC2LMIX Input 3 Source */
+ { 0x000008d5, 0x0080 }, /* R2261 (0x8d5) - DRC2LMIX Input 3 Volume */
+ { 0x000008d6, 0x0000 }, /* R2262 (0x8d6) - DRC2LMIX Input 4 Source */
+ { 0x000008d7, 0x0080 }, /* R2263 (0x8d7) - DRC2LMIX Input 4 Volume */
+ { 0x000008d8, 0x0000 }, /* R2264 (0x8d8) - DRC2RMIX Input 1 Source */
+ { 0x000008d9, 0x0080 }, /* R2265 (0x8d9) - DRC2RMIX Input 1 Volume */
+ { 0x000008da, 0x0000 }, /* R2266 (0x8da) - DRC2RMIX Input 2 Source */
+ { 0x000008db, 0x0080 }, /* R2267 (0x8db) - DRC2RMIX Input 2 Volume */
+ { 0x000008dc, 0x0000 }, /* R2268 (0x8dc) - DRC2RMIX Input 3 Source */
+ { 0x000008dd, 0x0080 }, /* R2269 (0x8dd) - DRC2RMIX Input 3 Volume */
+ { 0x000008de, 0x0000 }, /* R2270 (0x8de) - DRC2RMIX Input 4 Source */
+ { 0x000008df, 0x0080 }, /* R2271 (0x8df) - DRC2RMIX Input 4 Volume */
+ { 0x00000900, 0x0000 }, /* R2304 (0x900) - HPLP1MIX Input 1 Source */
+ { 0x00000901, 0x0080 }, /* R2305 (0x901) - HPLP1MIX Input 1 Volume */
+ { 0x00000902, 0x0000 }, /* R2306 (0x902) - HPLP1MIX Input 2 Source */
+ { 0x00000903, 0x0080 }, /* R2307 (0x903) - HPLP1MIX Input 2 Volume */
+ { 0x00000904, 0x0000 }, /* R2308 (0x904) - HPLP1MIX Input 3 Source */
+ { 0x00000905, 0x0080 }, /* R2309 (0x905) - HPLP1MIX Input 3 Volume */
+ { 0x00000906, 0x0000 }, /* R2310 (0x906) - HPLP1MIX Input 4 Source */
+ { 0x00000907, 0x0080 }, /* R2311 (0x907) - HPLP1MIX Input 4 Volume */
+ { 0x00000908, 0x0000 }, /* R2312 (0x908) - HPLP2MIX Input 1 Source */
+ { 0x00000909, 0x0080 }, /* R2313 (0x909) - HPLP2MIX Input 1 Volume */
+ { 0x0000090a, 0x0000 }, /* R2314 (0x90a) - HPLP2MIX Input 2 Source */
+ { 0x0000090b, 0x0080 }, /* R2315 (0x90b) - HPLP2MIX Input 2 Volume */
+ { 0x0000090c, 0x0000 }, /* R2316 (0x90c) - HPLP2MIX Input 3 Source */
+ { 0x0000090d, 0x0080 }, /* R2317 (0x90d) - HPLP2MIX Input 3 Volume */
+ { 0x0000090e, 0x0000 }, /* R2318 (0x90e) - HPLP2MIX Input 4 Source */
+ { 0x0000090f, 0x0080 }, /* R2319 (0x90f) - HPLP2MIX Input 4 Volume */
+ { 0x00000910, 0x0000 }, /* R2320 (0x910) - HPLP3MIX Input 1 Source */
+ { 0x00000911, 0x0080 }, /* R2321 (0x911) - HPLP3MIX Input 1 Volume */
+ { 0x00000912, 0x0000 }, /* R2322 (0x912) - HPLP3MIX Input 2 Source */
+ { 0x00000913, 0x0080 }, /* R2323 (0x913) - HPLP3MIX Input 2 Volume */
+ { 0x00000914, 0x0000 }, /* R2324 (0x914) - HPLP3MIX Input 3 Source */
+ { 0x00000915, 0x0080 }, /* R2325 (0x915) - HPLP3MIX Input 3 Volume */
+ { 0x00000916, 0x0000 }, /* R2326 (0x916) - HPLP3MIX Input 4 Source */
+ { 0x00000917, 0x0080 }, /* R2327 (0x917) - HPLP3MIX Input 4 Volume */
+ { 0x00000918, 0x0000 }, /* R2328 (0x918) - HPLP4MIX Input 1 Source */
+ { 0x00000919, 0x0080 }, /* R2329 (0x919) - HPLP4MIX Input 1 Volume */
+ { 0x0000091a, 0x0000 }, /* R2330 (0x91a) - HPLP4MIX Input 2 Source */
+ { 0x0000091b, 0x0080 }, /* R2331 (0x91b) - HPLP4MIX Input 2 Volume */
+ { 0x0000091c, 0x0000 }, /* R2332 (0x91c) - HPLP4MIX Input 3 Source */
+ { 0x0000091d, 0x0080 }, /* R2333 (0x91d) - HPLP4MIX Input 3 Volume */
+ { 0x0000091e, 0x0000 }, /* R2334 (0x91e) - HPLP4MIX Input 4 Source */
+ { 0x0000091f, 0x0080 }, /* R2335 (0x91f) - HPLP4MIX Input 4 Volume */
+ { 0x00000940, 0x0000 }, /* R2368 (0x940) - DSP1LMIX Input 1 Source */
+ { 0x00000941, 0x0080 }, /* R2369 (0x941) - DSP1LMIX Input 1 Volume */
+ { 0x00000942, 0x0000 }, /* R2370 (0x942) - DSP1LMIX Input 2 Source */
+ { 0x00000943, 0x0080 }, /* R2371 (0x943) - DSP1LMIX Input 2 Volume */
+ { 0x00000944, 0x0000 }, /* R2372 (0x944) - DSP1LMIX Input 3 Source */
+ { 0x00000945, 0x0080 }, /* R2373 (0x945) - DSP1LMIX Input 3 Volume */
+ { 0x00000946, 0x0000 }, /* R2374 (0x946) - DSP1LMIX Input 4 Source */
+ { 0x00000947, 0x0080 }, /* R2375 (0x947) - DSP1LMIX Input 4 Volume */
+ { 0x00000948, 0x0000 }, /* R2376 (0x948) - DSP1RMIX Input 1 Source */
+ { 0x00000949, 0x0080 }, /* R2377 (0x949) - DSP1RMIX Input 1 Volume */
+ { 0x0000094a, 0x0000 }, /* R2378 (0x94a) - DSP1RMIX Input 2 Source */
+ { 0x0000094b, 0x0080 }, /* R2379 (0x94b) - DSP1RMIX Input 2 Volume */
+ { 0x0000094c, 0x0000 }, /* R2380 (0x94c) - DSP1RMIX Input 3 Source */
+ { 0x0000094d, 0x0080 }, /* R2381 (0x94d) - DSP1RMIX Input 3 Volume */
+ { 0x0000094e, 0x0000 }, /* R2382 (0x94e) - DSP1RMIX Input 4 Source */
+ { 0x0000094f, 0x0080 }, /* R2383 (0x94f) - DSP1RMIX Input 4 Volume */
+ { 0x00000950, 0x0000 }, /* R2384 (0x950) - DSP1AUX1MIX Input 1 Source */
+ { 0x00000958, 0x0000 }, /* R2392 (0x958) - DSP1AUX2MIX Input 1 Source */
+ { 0x00000960, 0x0000 }, /* R2400 (0x960) - DSP1AUX3MIX Input 1 Source */
+ { 0x00000968, 0x0000 }, /* R2408 (0x968) - DSP1AUX4MIX Input 1 Source */
+ { 0x00000970, 0x0000 }, /* R2416 (0x970) - DSP1AUX5MIX Input 1 Source */
+ { 0x00000978, 0x0000 }, /* R2424 (0x978) - DSP1AUX6MIX Input 1 Source */
+ { 0x00000980, 0x0000 }, /* R2432 (0x980) - DSP2LMIX Input 1 Source */
+ { 0x00000981, 0x0080 }, /* R2433 (0x981) - DSP2LMIX Input 1 Volume */
+ { 0x00000982, 0x0000 }, /* R2434 (0x982) - DSP2LMIX Input 2 Source */
+ { 0x00000983, 0x0080 }, /* R2435 (0x983) - DSP2LMIX Input 2 Volume */
+ { 0x00000984, 0x0000 }, /* R2436 (0x984) - DSP2LMIX Input 3 Source */
+ { 0x00000985, 0x0080 }, /* R2437 (0x985) - DSP2LMIX Input 3 Volume */
+ { 0x00000986, 0x0000 }, /* R2438 (0x986) - DSP2LMIX Input 4 Source */
+ { 0x00000987, 0x0080 }, /* R2439 (0x987) - DSP2LMIX Input 4 Volume */
+ { 0x00000988, 0x0000 }, /* R2440 (0x988) - DSP2RMIX Input 1 Source */
+ { 0x00000989, 0x0080 }, /* R2441 (0x989) - DSP2RMIX Input 1 Volume */
+ { 0x0000098a, 0x0000 }, /* R2442 (0x98a) - DSP2RMIX Input 2 Source */
+ { 0x0000098b, 0x0080 }, /* R2443 (0x98b) - DSP2RMIX Input 2 Volume */
+ { 0x0000098c, 0x0000 }, /* R2444 (0x98c) - DSP2RMIX Input 3 Source */
+ { 0x0000098d, 0x0080 }, /* R2445 (0x98d) - DSP2RMIX Input 3 Volume */
+ { 0x0000098e, 0x0000 }, /* R2446 (0x98e) - DSP2RMIX Input 4 Source */
+ { 0x0000098f, 0x0080 }, /* R2447 (0x98f) - DSP2RMIX Input 4 Volume */
+ { 0x00000990, 0x0000 }, /* R2448 (0x990) - DSP2AUX1MIX Input 1 Source */
+ { 0x00000998, 0x0000 }, /* R2456 (0x998) - DSP2AUX2MIX Input 1 Source */
+ { 0x000009a0, 0x0000 }, /* R2464 (0x9a0) - DSP2AUX3MIX Input 1 Source */
+ { 0x000009a8, 0x0000 }, /* R2472 (0x9a8) - DSP2AUX4MIX Input 1 Source */
+ { 0x000009b0, 0x0000 }, /* R2480 (0x9b0) - DSP2AUX5MIX Input 1 Source */
+ { 0x000009b8, 0x0000 }, /* R2488 (0x9b8) - DSP2AUX6MIX Input 1 Source */
+ { 0x000009c0, 0x0000 }, /* R2496 (0x9c0) - DSP3LMIX Input 1 Source */
+ { 0x000009c1, 0x0080 }, /* R2497 (0x9c1) - DSP3LMIX Input 1 Volume */
+ { 0x000009c2, 0x0000 }, /* R2498 (0x9c2) - DSP3LMIX Input 2 Source */
+ { 0x000009c3, 0x0080 }, /* R2499 (0x9c3) - DSP3LMIX Input 2 Volume */
+ { 0x000009c4, 0x0000 }, /* R2500 (0x9c4) - DSP3LMIX Input 3 Source */
+ { 0x000009c5, 0x0080 }, /* R2501 (0x9c5) - DSP3LMIX Input 3 Volume */
+ { 0x000009c6, 0x0000 }, /* R2502 (0x9c6) - DSP3LMIX Input 4 Source */
+ { 0x000009c7, 0x0080 }, /* R2503 (0x9c7) - DSP3LMIX Input 4 Volume */
+ { 0x000009c8, 0x0000 }, /* R2504 (0x9c8) - DSP3RMIX Input 1 Source */
+ { 0x000009c9, 0x0080 }, /* R2505 (0x9c9) - DSP3RMIX Input 1 Volume */
+ { 0x000009ca, 0x0000 }, /* R2506 (0x9ca) - DSP3RMIX Input 2 Source */
+ { 0x000009cb, 0x0080 }, /* R2507 (0x9cb) - DSP3RMIX Input 2 Volume */
+ { 0x000009cc, 0x0000 }, /* R2508 (0x9cc) - DSP3RMIX Input 3 Source */
+ { 0x000009cd, 0x0080 }, /* R2509 (0x9cd) - DSP3RMIX Input 3 Volume */
+ { 0x000009ce, 0x0000 }, /* R2510 (0x9ce) - DSP3RMIX Input 4 Source */
+ { 0x000009cf, 0x0080 }, /* R2511 (0x9cf) - DSP3RMIX Input 4 Volume */
+ { 0x000009d0, 0x0000 }, /* R2512 (0x9d0) - DSP3AUX1MIX Input 1 Source */
+ { 0x000009d8, 0x0000 }, /* R2520 (0x9d8) - DSP3AUX2MIX Input 1 Source */
+ { 0x000009e0, 0x0000 }, /* R2528 (0x9e0) - DSP3AUX3MIX Input 1 Source */
+ { 0x000009e8, 0x0000 }, /* R2536 (0x9e8) - DSP3AUX4MIX Input 1 Source */
+ { 0x000009f0, 0x0000 }, /* R2544 (0x9f0) - DSP3AUX5MIX Input 1 Source */
+ { 0x000009f8, 0x0000 }, /* R2552 (0x9f8) - DSP3AUX6MIX Input 1 Source */
+ { 0x00000b00, 0x0000 }, /* R2816 (0xb00) - ISRC1DEC1MIX Input 1 Source*/
+ { 0x00000b08, 0x0000 }, /* R2824 (0xb08) - ISRC1DEC2MIX Input 1 Source*/
+ { 0x00000b10, 0x0000 }, /* R2832 (0xb10) - ISRC1DEC3MIX Input 1 Source*/
+ { 0x00000b18, 0x0000 }, /* R2840 (0xb18) - ISRC1DEC4MIX Input 1 Source*/
+ { 0x00000b20, 0x0000 }, /* R2848 (0xb20) - ISRC1INT1MIX Input 1 Source*/
+ { 0x00000b28, 0x0000 }, /* R2856 (0xb28) - ISRC1INT2MIX Input 1 Source*/
+ { 0x00000b30, 0x0000 }, /* R2864 (0xb30) - ISRC1INT3MIX Input 1 Source*/
+ { 0x00000b38, 0x0000 }, /* R2872 (0xb38) - ISRC1INT4MIX Input 1 Source*/
+ { 0x00000b40, 0x0000 }, /* R2880 (0xb40) - ISRC2DEC1MIX Input 1 Source*/
+ { 0x00000b48, 0x0000 }, /* R2888 (0xb48) - ISRC2DEC2MIX Input 1 Source*/
+ { 0x00000b50, 0x0000 }, /* R2896 (0xb50) - ISRC2DEC3MIX Input 1 Source*/
+ { 0x00000b58, 0x0000 }, /* R2904 (0xb58) - ISRC2DEC4MIX Input 1 Source*/
+ { 0x00000b60, 0x0000 }, /* R2912 (0xb60) - ISRC2INT1MIX Input 1 Source*/
+ { 0x00000b68, 0x0000 }, /* R2920 (0xb68) - ISRC2INT2MIX Input 1 Source*/
+ { 0x00000b70, 0x0000 }, /* R2928 (0xb70) - ISRC2INT3MIX Input 1 Source*/
+ { 0x00000b78, 0x0000 }, /* R2936 (0xb78) - ISRC2INT4MIX Input 1 Source*/
+ { 0x00000e00, 0x0000 }, /* R3584 (0xe00) - FX Ctrl1 */
+ { 0x00000e10, 0x6318 }, /* R3600 (0xe10) - EQ1_1 */
+ { 0x00000e11, 0x6300 }, /* R3601 (0xe11) - EQ1_2 */
+ { 0x00000e12, 0x0fc8 }, /* R3602 (0xe12) - EQ1_3 */
+ { 0x00000e13, 0x03fe }, /* R3603 (0xe13) - EQ1_4 */
+ { 0x00000e14, 0x00e0 }, /* R3604 (0xe14) - EQ1_5 */
+ { 0x00000e15, 0x1ec4 }, /* R3605 (0xe15) - EQ1_6 */
+ { 0x00000e16, 0xf136 }, /* R3606 (0xe16) - EQ1_7 */
+ { 0x00000e17, 0x0409 }, /* R3607 (0xe17) - EQ1_8 */
+ { 0x00000e18, 0x04cc }, /* R3608 (0xe18) - EQ1_9 */
+ { 0x00000e19, 0x1c9b }, /* R3609 (0xe19) - EQ1_10 */
+ { 0x00000e1a, 0xf337 }, /* R3610 (0xe1a) - EQ1_11 */
+ { 0x00000e1b, 0x040b }, /* R3611 (0xe1b) - EQ1_12 */
+ { 0x00000e1c, 0x0cbb }, /* R3612 (0xe1c) - EQ1_13 */
+ { 0x00000e1d, 0x16f8 }, /* R3613 (0xe1d) - EQ1_14 */
+ { 0x00000e1e, 0xf7d9 }, /* R3614 (0xe1e) - EQ1_15 */
+ { 0x00000e1f, 0x040a }, /* R3615 (0xe1f) - EQ1_16 */
+ { 0x00000e20, 0x1f14 }, /* R3616 (0xe20) - EQ1_17 */
+ { 0x00000e21, 0x058c }, /* R3617 (0xe21) - EQ1_18 */
+ { 0x00000e22, 0x0563 }, /* R3618 (0xe22) - EQ1_19 */
+ { 0x00000e23, 0x4000 }, /* R3619 (0xe23) - EQ1_20 */
+ { 0x00000e24, 0x0b75 }, /* R3620 (0xe24) - EQ1_21 */
+ { 0x00000e26, 0x6318 }, /* R3622 (0xe26) - EQ2_1 */
+ { 0x00000e27, 0x6300 }, /* R3623 (0xe27) - EQ2_2 */
+ { 0x00000e28, 0x0fc8 }, /* R3624 (0xe28) - EQ2_3 */
+ { 0x00000e29, 0x03fe }, /* R3625 (0xe29) - EQ2_4 */
+ { 0x00000e2a, 0x00e0 }, /* R3626 (0xe2a) - EQ2_5 */
+ { 0x00000e2b, 0x1ec4 }, /* R3627 (0xe2b) - EQ2_6 */
+ { 0x00000e2c, 0xf136 }, /* R3628 (0xe2c) - EQ2_7 */
+ { 0x00000e2d, 0x0409 }, /* R3629 (0xe2d) - EQ2_8 */
+ { 0x00000e2e, 0x04cc }, /* R3630 (0xe2e) - EQ2_9 */
+ { 0x00000e2f, 0x1c9b }, /* R3631 (0xe2f) - EQ2_10 */
+ { 0x00000e30, 0xf337 }, /* R3632 (0xe30) - EQ2_11 */
+ { 0x00000e31, 0x040b }, /* R3633 (0xe31) - EQ2_12 */
+ { 0x00000e32, 0x0cbb }, /* R3634 (0xe32) - EQ2_13 */
+ { 0x00000e33, 0x16f8 }, /* R3635 (0xe33) - EQ2_14 */
+ { 0x00000e34, 0xf7d9 }, /* R3636 (0xe34) - EQ2_15 */
+ { 0x00000e35, 0x040a }, /* R3637 (0xe35) - EQ2_16 */
+ { 0x00000e36, 0x1f14 }, /* R3638 (0xe36) - EQ2_17 */
+ { 0x00000e37, 0x058c }, /* R3639 (0xe37) - EQ2_18 */
+ { 0x00000e38, 0x0563 }, /* R3640 (0xe38) - EQ2_19 */
+ { 0x00000e39, 0x4000 }, /* R3641 (0xe39) - EQ2_20 */
+ { 0x00000e3a, 0x0b75 }, /* R3642 (0xe3a) - EQ2_21 */
+ { 0x00000e3c, 0x6318 }, /* R3644 (0xe3c) - EQ3_1 */
+ { 0x00000e3d, 0x6300 }, /* R3645 (0xe3d) - EQ3_2 */
+ { 0x00000e3e, 0x0fc8 }, /* R3646 (0xe3e) - EQ3_3 */
+ { 0x00000e3f, 0x03fe }, /* R3647 (0xe3f) - EQ3_4 */
+ { 0x00000e40, 0x00e0 }, /* R3648 (0xe40) - EQ3_5 */
+ { 0x00000e41, 0x1ec4 }, /* R3649 (0xe41) - EQ3_6 */
+ { 0x00000e42, 0xf136 }, /* R3650 (0xe42) - EQ3_7 */
+ { 0x00000e43, 0x0409 }, /* R3651 (0xe43) - EQ3_8 */
+ { 0x00000e44, 0x04cc }, /* R3652 (0xe44) - EQ3_9 */
+ { 0x00000e45, 0x1c9b }, /* R3653 (0xe45) - EQ3_10 */
+ { 0x00000e46, 0xf337 }, /* R3654 (0xe46) - EQ3_11 */
+ { 0x00000e47, 0x040b }, /* R3655 (0xe47) - EQ3_12 */
+ { 0x00000e48, 0x0cbb }, /* R3656 (0xe48) - EQ3_13 */
+ { 0x00000e49, 0x16f8 }, /* R3657 (0xe49) - EQ3_14 */
+ { 0x00000e4a, 0xf7d9 }, /* R3658 (0xe4a) - EQ3_15 */
+ { 0x00000e4b, 0x040a }, /* R3659 (0xe4b) - EQ3_16 */
+ { 0x00000e4c, 0x1f14 }, /* R3660 (0xe4c) - EQ3_17 */
+ { 0x00000e4d, 0x058c }, /* R3661 (0xe4d) - EQ3_18 */
+ { 0x00000e4e, 0x0563 }, /* R3662 (0xe4e) - EQ3_19 */
+ { 0x00000e4f, 0x4000 }, /* R3663 (0xe4f) - EQ3_20 */
+ { 0x00000e50, 0x0b75 }, /* R3664 (0xe50) - EQ3_21 */
+ { 0x00000e52, 0x6318 }, /* R3666 (0xe52) - EQ4_1 */
+ { 0x00000e53, 0x6300 }, /* R3667 (0xe53) - EQ4_2 */
+ { 0x00000e54, 0x0fc8 }, /* R3668 (0xe54) - EQ4_3 */
+ { 0x00000e55, 0x03fe }, /* R3669 (0xe55) - EQ4_4 */
+ { 0x00000e56, 0x00e0 }, /* R3670 (0xe56) - EQ4_5 */
+ { 0x00000e57, 0x1ec4 }, /* R3671 (0xe57) - EQ4_6 */
+ { 0x00000e58, 0xf136 }, /* R3672 (0xe58) - EQ4_7 */
+ { 0x00000e59, 0x0409 }, /* R3673 (0xe59) - EQ4_8 */
+ { 0x00000e5a, 0x04cc }, /* R3674 (0xe5a) - EQ4_9 */
+ { 0x00000e5b, 0x1c9b }, /* R3675 (0xe5b) - EQ4_10 */
+ { 0x00000e5c, 0xf337 }, /* R3676 (0xe5c) - EQ4_11 */
+ { 0x00000e5d, 0x040b }, /* R3677 (0xe5d) - EQ4_12 */
+ { 0x00000e5e, 0x0cbb }, /* R3678 (0xe5e) - EQ4_13 */
+ { 0x00000e5f, 0x16f8 }, /* R3679 (0xe5f) - EQ4_14 */
+ { 0x00000e60, 0xf7d9 }, /* R3680 (0xe60) - EQ4_15 */
+ { 0x00000e61, 0x040a }, /* R3681 (0xe61) - EQ4_16 */
+ { 0x00000e62, 0x1f14 }, /* R3682 (0xe62) - EQ4_17 */
+ { 0x00000e63, 0x058c }, /* R3683 (0xe63) - EQ4_18 */
+ { 0x00000e64, 0x0563 }, /* R3684 (0xe64) - EQ4_19 */
+ { 0x00000e65, 0x4000 }, /* R3685 (0xe65) - EQ4_20 */
+ { 0x00000e66, 0x0b75 }, /* R3686 (0xe66) - EQ4_21 */
+ { 0x00000e80, 0x0018 }, /* R3712 (0xe80) - DRC1 ctrl1 */
+ { 0x00000e81, 0x0933 }, /* R3713 (0xe81) - DRC1 ctrl2 */
+ { 0x00000e82, 0x0018 }, /* R3714 (0xe82) - DRC1 ctrl3 */
+ { 0x00000e83, 0x0000 }, /* R3715 (0xe83) - DRC1 ctrl4 */
+ { 0x00000e84, 0x0000 }, /* R3716 (0xe84) - DRC1 ctrl5 */
+ { 0x00000e88, 0x0018 }, /* R3720 (0xe88) - DRC2 ctrl1 */
+ { 0x00000e89, 0x0933 }, /* R3721 (0xe89) - DRC2 ctrl2 */
+ { 0x00000e8a, 0x0018 }, /* R3722 (0xe8a) - DRC2 ctrl3 */
+ { 0x00000e8b, 0x0000 }, /* R3723 (0xe8b) - DRC2 ctrl4 */
+ { 0x00000e8c, 0x0000 }, /* R3724 (0xe8c) - DRC2 ctrl5 */
+ { 0x00000ec0, 0x0000 }, /* R3776 (0xec0) - HPLPF1_1 */
+ { 0x00000ec1, 0x0000 }, /* R3777 (0xec1) - HPLPF1_2 */
+ { 0x00000ec4, 0x0000 }, /* R3780 (0xec4) - HPLPF2_1 */
+ { 0x00000ec5, 0x0000 }, /* R3781 (0xec5) - HPLPF2_2 */
+ { 0x00000ec8, 0x0000 }, /* R3784 (0xec8) - HPLPF3_1 */
+ { 0x00000ec9, 0x0000 }, /* R3785 (0xec9) - HPLPF3_2 */
+ { 0x00000ecc, 0x0000 }, /* R3788 (0xecc) - HPLPF4_1 */
+ { 0x00000ecd, 0x0000 }, /* R3789 (0xecd) - HPLPF4_2 */
+ { 0x00000ef0, 0x0000 }, /* R3824 (0xef0) - ISRC 1 CTRL 1 */
+ { 0x00000ef1, 0x0001 }, /* R3825 (0xef1) - ISRC 1 CTRL 2 */
+ { 0x00000ef2, 0x0000 }, /* R3826 (0xef2) - ISRC 1 CTRL 3 */
+ { 0x00000ef3, 0x0000 }, /* R3827 (0xef3) - ISRC 2 CTRL 1 */
+ { 0x00000ef4, 0x0001 }, /* R3828 (0xef4) - ISRC 2 CTRL 2 */
+ { 0x00000ef5, 0x0000 }, /* R3829 (0xef5) - ISRC 2 CTRL 3 */
+ { 0x00001300, 0x0000 }, /* R4864 (0x1300) - DAC Comp 1 */
+ { 0x00001302, 0x0000 }, /* R4866 (0x1302) - DAC Comp 2 */
+ { 0x00001380, 0x0000 }, /* R4992 (0x1380) - FRF Coefficient 1L 1 */
+ { 0x00001381, 0x0000 }, /* R4993 (0x1381) - FRF Coefficient 1L 2 */
+ { 0x00001382, 0x0000 }, /* R4994 (0x1382) - FRF Coefficient 1L 3 */
+ { 0x00001383, 0x0000 }, /* R4995 (0x1383) - FRF Coefficient 1L 4 */
+ { 0x00001390, 0x0000 }, /* R5008 (0x1390) - FRF Coefficient 1R 1 */
+ { 0x00001391, 0x0000 }, /* R5009 (0x1391) - FRF Coefficient 1R 2 */
+ { 0x00001392, 0x0000 }, /* R5010 (0x1392) - FRF Coefficient 1R 3 */
+ { 0x00001393, 0x0000 }, /* R5011 (0x1393) - FRF Coefficient 1R 4 */
+ { 0x000013a0, 0x0000 }, /* R5024 (0x13a0) - FRF Coefficient 4L 1 */
+ { 0x000013a1, 0x0000 }, /* R5025 (0x13a1) - FRF Coefficient 4L 2 */
+ { 0x000013a2, 0x0000 }, /* R5026 (0x13a2) - FRF Coefficient 4L 3 */
+ { 0x000013a3, 0x0000 }, /* R5027 (0x13a3) - FRF Coefficient 4L 4 */
+ { 0x000013b0, 0x0000 }, /* R5040 (0x13b0) - FRF Coefficient 5L 1 */
+ { 0x000013b1, 0x0000 }, /* R5041 (0x13b1) - FRF Coefficient 5L 2 */
+ { 0x000013b2, 0x0000 }, /* R5042 (0x13b2) - FRF Coefficient 5L 3 */
+ { 0x000013b3, 0x0000 }, /* R5043 (0x13b3) - FRF Coefficient 5L 4 */
+ { 0x000013c0, 0x0000 }, /* R5040 (0x13c0) - FRF Coefficient 5R 1 */
+ { 0x000013c1, 0x0000 }, /* R5041 (0x13c1) - FRF Coefficient 5R 2 */
+ { 0x000013c2, 0x0000 }, /* R5042 (0x13c2) - FRF Coefficient 5R 3 */
+ { 0x000013c3, 0x0000 }, /* R5043 (0x13c3) - FRF Coefficient 5R 4 */
+ { 0x00001700, 0x2001 }, /* R5888 (0x1700) - GPIO1 Control 1 */
+ { 0x00001701, 0xf000 }, /* R5889 (0x1701) - GPIO1 Control 2 */
+ { 0x00001702, 0x2001 }, /* R5890 (0x1702) - GPIO2 Control 1 */
+ { 0x00001703, 0xf000 }, /* R5891 (0x1703) - GPIO2 Control 2 */
+ { 0x00001704, 0x2001 }, /* R5892 (0x1704) - GPIO3 Control 1 */
+ { 0x00001705, 0xf000 }, /* R5893 (0x1705) - GPIO3 Control 2 */
+ { 0x00001706, 0x2001 }, /* R5894 (0x1706) - GPIO4 Control 1 */
+ { 0x00001707, 0xf000 }, /* R5895 (0x1707) - GPIO4 Control 2 */
+ { 0x00001708, 0x2001 }, /* R5896 (0x1708) - GPIO5 Control 1 */
+ { 0x00001709, 0xf000 }, /* R5897 (0x1709) - GPIO5 Control 2 */
+ { 0x0000170a, 0x2001 }, /* R5898 (0x170a) - GPIO6 Control 1 */
+ { 0x0000170b, 0xf000 }, /* R5899 (0x170b) - GPIO6 Control 2 */
+ { 0x0000170c, 0x2001 }, /* R5900 (0x170c) - GPIO7 Control 1 */
+ { 0x0000170d, 0xf000 }, /* R5901 (0x170d) - GPIO7 Control 2 */
+ { 0x0000170e, 0x2001 }, /* R5902 (0x170e) - GPIO8 Control 1 */
+ { 0x0000170f, 0xf000 }, /* R5903 (0x170f) - GPIO8 Control 2 */
+ { 0x00001710, 0x2001 }, /* R5904 (0x1710) - GPIO9 Control 1 */
+ { 0x00001711, 0xf000 }, /* R5905 (0x1711) - GPIO9 Control 2 */
+ { 0x00001712, 0x2001 }, /* R5906 (0x1712) - GPIO10 Control 1 */
+ { 0x00001713, 0xf000 }, /* R5907 (0x1713) - GPIO10 Control 2 */
+ { 0x00001714, 0x2001 }, /* R5908 (0x1714) - GPIO11 Control 1 */
+ { 0x00001715, 0xf000 }, /* R5909 (0x1715) - GPIO11 Control 2 */
+ { 0x00001716, 0x2001 }, /* R5910 (0x1716) - GPIO12 Control 1 */
+ { 0x00001717, 0xf000 }, /* R5911 (0x1717) - GPIO12 Control 2 */
+ { 0x00001718, 0x2001 }, /* R5912 (0x1718) - GPIO13 Control 1 */
+ { 0x00001719, 0xf000 }, /* R5913 (0x1719) - GPIO13 Control 2 */
+ { 0x0000171a, 0x2001 }, /* R5914 (0x171a) - GPIO14 Control 1 */
+ { 0x0000171b, 0xf000 }, /* R5915 (0x171b) - GPIO14 Control 2 */
+ { 0x0000171c, 0x2001 }, /* R5916 (0x171c) - GPIO15 Control 1 */
+ { 0x0000171d, 0xf000 }, /* R5917 (0x171d) - GPIO15 Control 2 */
+ { 0x0000171e, 0x2001 }, /* R5918 (0x171e) - GPIO16 Control 1 */
+ { 0x0000171f, 0xf000 }, /* R5919 (0x171f) - GPIO16 Control 2 */
+ { 0x00001840, 0xffff }, /* R6208 (0x1840) - IRQ1 Mask 1 */
+ { 0x00001841, 0xffff }, /* R6209 (0x1841) - IRQ1 Mask 2 */
+ { 0x00001842, 0xffff }, /* R6210 (0x1842) - IRQ1 Mask 3 */
+ { 0x00001843, 0xffff }, /* R6211 (0x1843) - IRQ1 Mask 4 */
+ { 0x00001844, 0xffff }, /* R6212 (0x1844) - IRQ1 Mask 5 */
+ { 0x00001845, 0xffff }, /* R6213 (0x1845) - IRQ1 Mask 6 */
+ { 0x00001846, 0xffff }, /* R6214 (0x1846) - IRQ1 Mask 7 */
+ { 0x00001847, 0xffff }, /* R6215 (0x1847) - IRQ1 Mask 8 */
+ { 0x00001848, 0xffff }, /* R6216 (0x1848) - IRQ1 Mask 9 */
+ { 0x00001849, 0xffff }, /* R6217 (0x1849) - IRQ1 Mask 10 */
+ { 0x0000184a, 0xffff }, /* R6218 (0x184a) - IRQ1 Mask 11 */
+ { 0x0000184b, 0xffff }, /* R6219 (0x184b) - IRQ1 Mask 12 */
+ { 0x0000184c, 0xffff }, /* R6220 (0x184c) - IRQ1 Mask 13 */
+ { 0x0000184d, 0xffff }, /* R6221 (0x184d) - IRQ1 Mask 14 */
+ { 0x0000184e, 0xffff }, /* R6222 (0x184e) - IRQ1 Mask 15 */
+ { 0x0000184f, 0xffff }, /* R6223 (0x184f) - IRQ1 Mask 16 */
+ { 0x00001850, 0xffff }, /* R6224 (0x1850) - IRQ1 Mask 17 */
+ { 0x00001851, 0xffff }, /* R6225 (0x1851) - IRQ1 Mask 18 */
+ { 0x00001852, 0xffff }, /* R6226 (0x1852) - IRQ1 Mask 19 */
+ { 0x00001853, 0xffff }, /* R6227 (0x1853) - IRQ1 Mask 20 */
+ { 0x00001854, 0xffff }, /* R6228 (0x1854) - IRQ1 Mask 21 */
+ { 0x00001855, 0xffff }, /* R6229 (0x1855) - IRQ1 Mask 22 */
+ { 0x00001856, 0xffff }, /* R6230 (0x1856) - IRQ1 Mask 23 */
+ { 0x00001857, 0xffff }, /* R6231 (0x1857) - IRQ1 Mask 24 */
+ { 0x00001858, 0xffff }, /* R6232 (0x1858) - IRQ1 Mask 25 */
+ { 0x00001859, 0xffff }, /* R6233 (0x1859) - IRQ1 Mask 26 */
+ { 0x0000185a, 0xffff }, /* R6234 (0x185a) - IRQ1 Mask 27 */
+ { 0x0000185b, 0xffff }, /* R6235 (0x185b) - IRQ1 Mask 28 */
+ { 0x0000185c, 0xffff }, /* R6236 (0x185c) - IRQ1 Mask 29 */
+ { 0x0000185d, 0xffff }, /* R6237 (0x185d) - IRQ1 Mask 30 */
+ { 0x0000185e, 0xffff }, /* R6238 (0x185e) - IRQ1 Mask 31 */
+ { 0x0000185f, 0xffff }, /* R6239 (0x185f) - IRQ1 Mask 32 */
+ { 0x00001860, 0xffff }, /* R6240 (0x1860) - IRQ1 Mask 33 */
+ { 0x00001a06, 0x0000 }, /* R6662 (0x1a06) - Interrupt Debounce 7 */
+ { 0x00001a80, 0x4400 }, /* R6784 (0x1a80) - IRQ1 CTRL */
+};
+
+static bool cs47l35_is_adsp_memory(unsigned int reg)
+{
+ switch (reg) {
+ case 0x080000 ... 0x085ffe:
+ case 0x0a0000 ... 0x0a7ffe:
+ case 0x0c0000 ... 0x0c1ffe:
+ case 0x0e0000 ... 0x0e1ffe:
+ case 0x100000 ... 0x10effe:
+ case 0x120000 ... 0x12bffe:
+ case 0x136000 ... 0x137ffe:
+ case 0x140000 ... 0x14bffe:
+ case 0x160000 ... 0x161ffe:
+ case 0x180000 ... 0x18effe:
+ case 0x1a0000 ... 0x1b1ffe:
+ case 0x1b6000 ... 0x1b7ffe:
+ case 0x1c0000 ... 0x1cbffe:
+ case 0x1e0000 ... 0x1e1ffe:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static bool cs47l35_16bit_readable_register(struct device *dev,
+ unsigned int reg)
+{
+ switch (reg) {
+ case MADERA_SOFTWARE_RESET:
+ case MADERA_HARDWARE_REVISION:
+ case MADERA_WRITE_SEQUENCER_CTRL_0:
+ case MADERA_WRITE_SEQUENCER_CTRL_1:
+ case MADERA_WRITE_SEQUENCER_CTRL_2:
+ case MADERA_TONE_GENERATOR_1:
+ case MADERA_TONE_GENERATOR_2:
+ case MADERA_TONE_GENERATOR_3:
+ case MADERA_TONE_GENERATOR_4:
+ case MADERA_TONE_GENERATOR_5:
+ case MADERA_PWM_DRIVE_1:
+ case MADERA_PWM_DRIVE_2:
+ case MADERA_PWM_DRIVE_3:
+ case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_1:
+ case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_2:
+ case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_3:
+ case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_4:
+ case MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_1:
+ case MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_2:
+ case MADERA_HAPTICS_CONTROL_1:
+ case MADERA_HAPTICS_CONTROL_2:
+ case MADERA_HAPTICS_PHASE_1_INTENSITY:
+ case MADERA_HAPTICS_PHASE_1_DURATION:
+ case MADERA_HAPTICS_PHASE_2_INTENSITY:
+ case MADERA_HAPTICS_PHASE_2_DURATION:
+ case MADERA_HAPTICS_PHASE_3_INTENSITY:
+ case MADERA_HAPTICS_PHASE_3_DURATION:
+ case MADERA_HAPTICS_STATUS:
+ case MADERA_COMFORT_NOISE_GENERATOR:
+ case MADERA_CLOCK_32K_1:
+ case MADERA_SYSTEM_CLOCK_1:
+ case MADERA_SAMPLE_RATE_1:
+ case MADERA_SAMPLE_RATE_2:
+ case MADERA_SAMPLE_RATE_3:
+ case MADERA_SAMPLE_RATE_1_STATUS:
+ case MADERA_SAMPLE_RATE_2_STATUS:
+ case MADERA_SAMPLE_RATE_3_STATUS:
+ case MADERA_DSP_CLOCK_1:
+ case MADERA_DSP_CLOCK_2:
+ case MADERA_OUTPUT_SYSTEM_CLOCK:
+ case MADERA_OUTPUT_ASYNC_CLOCK:
+ case MADERA_RATE_ESTIMATOR_1:
+ case MADERA_RATE_ESTIMATOR_2:
+ case MADERA_RATE_ESTIMATOR_3:
+ case MADERA_RATE_ESTIMATOR_4:
+ case MADERA_RATE_ESTIMATOR_5:
+ case MADERA_FLL1_CONTROL_1:
+ case MADERA_FLL1_CONTROL_2:
+ case MADERA_FLL1_CONTROL_3:
+ case MADERA_FLL1_CONTROL_4:
+ case MADERA_FLL1_CONTROL_5:
+ case MADERA_FLL1_CONTROL_6:
+ case MADERA_FLL1_CONTROL_7:
+ case MADERA_FLL1_LOOP_FILTER_TEST_1:
+ case CS47L35_FLL1_SYNCHRONISER_1:
+ case CS47L35_FLL1_SYNCHRONISER_2:
+ case CS47L35_FLL1_SYNCHRONISER_3:
+ case CS47L35_FLL1_SYNCHRONISER_4:
+ case CS47L35_FLL1_SYNCHRONISER_5:
+ case CS47L35_FLL1_SYNCHRONISER_6:
+ case CS47L35_FLL1_SYNCHRONISER_7:
+ case CS47L35_FLL1_SPREAD_SPECTRUM:
+ case CS47L35_FLL1_GPIO_CLOCK:
+ case MADERA_MIC_CHARGE_PUMP_1:
+ case MADERA_HP_CHARGE_PUMP_8:
+ case MADERA_LDO2_CONTROL_1:
+ case MADERA_MIC_BIAS_CTRL_1:
+ case MADERA_MIC_BIAS_CTRL_2:
+ case MADERA_MIC_BIAS_CTRL_5:
+ case MADERA_MIC_BIAS_CTRL_6:
+ case MADERA_HP_CTRL_1L:
+ case MADERA_HP_CTRL_1R:
+ case MADERA_DCS_HP1L_CONTROL:
+ case MADERA_DCS_HP1R_CONTROL:
+ case MADERA_EDRE_HP_STEREO_CONTROL:
+ case MADERA_ACCESSORY_DETECT_MODE_1:
+ case MADERA_HEADPHONE_DETECT_1:
+ case MADERA_HEADPHONE_DETECT_2:
+ case MADERA_HEADPHONE_DETECT_3:
+ case MADERA_HEADPHONE_DETECT_5:
+ case MADERA_MICD_CLAMP_CONTROL:
+ case MADERA_MIC_DETECT_1_CONTROL_1:
+ case MADERA_MIC_DETECT_1_CONTROL_2:
+ case MADERA_MIC_DETECT_1_CONTROL_3:
+ case MADERA_MIC_DETECT_1_LEVEL_1:
+ case MADERA_MIC_DETECT_1_LEVEL_2:
+ case MADERA_MIC_DETECT_1_LEVEL_3:
+ case MADERA_MIC_DETECT_1_LEVEL_4:
+ case MADERA_MIC_DETECT_1_CONTROL_4:
+ case MADERA_GP_SWITCH_1:
+ case MADERA_JACK_DETECT_ANALOGUE:
+ case MADERA_INPUT_ENABLES:
+ case MADERA_INPUT_ENABLES_STATUS:
+ case MADERA_INPUT_RATE:
+ case MADERA_INPUT_VOLUME_RAMP:
+ case MADERA_HPF_CONTROL:
+ case MADERA_IN1L_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_1L:
+ case MADERA_DMIC1L_CONTROL:
+ case MADERA_IN1R_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_1R:
+ case MADERA_DMIC1R_CONTROL:
+ case MADERA_IN2L_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_2L:
+ case MADERA_DMIC2L_CONTROL:
+ case MADERA_IN2R_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_2R:
+ case MADERA_DMIC2R_CONTROL:
+ case MADERA_OUTPUT_ENABLES_1:
+ case MADERA_OUTPUT_STATUS_1:
+ case MADERA_RAW_OUTPUT_STATUS_1:
+ case MADERA_OUTPUT_RATE_1:
+ case MADERA_OUTPUT_VOLUME_RAMP:
+ case MADERA_OUTPUT_PATH_CONFIG_1L:
+ case MADERA_DAC_DIGITAL_VOLUME_1L:
+ case MADERA_NOISE_GATE_SELECT_1L:
+ case MADERA_OUTPUT_PATH_CONFIG_1R:
+ case MADERA_DAC_DIGITAL_VOLUME_1R:
+ case MADERA_NOISE_GATE_SELECT_1R:
+ case MADERA_OUTPUT_PATH_CONFIG_4L:
+ case MADERA_DAC_DIGITAL_VOLUME_4L:
+ case MADERA_NOISE_GATE_SELECT_4L:
+ case MADERA_OUTPUT_PATH_CONFIG_5L:
+ case MADERA_DAC_DIGITAL_VOLUME_5L:
+ case MADERA_NOISE_GATE_SELECT_5L:
+ case MADERA_OUTPUT_PATH_CONFIG_5R:
+ case MADERA_DAC_DIGITAL_VOLUME_5R:
+ case MADERA_NOISE_GATE_SELECT_5R:
+ case MADERA_DRE_ENABLE:
+ case MADERA_EDRE_ENABLE:
+ case MADERA_EDRE_MANUAL:
+ case MADERA_DAC_AEC_CONTROL_1:
+ case MADERA_NOISE_GATE_CONTROL:
+ case MADERA_PDM_SPK1_CTRL_1:
+ case MADERA_PDM_SPK1_CTRL_2:
+ case MADERA_HP1_SHORT_CIRCUIT_CTRL:
+ case MADERA_HP_TEST_CTRL_5:
+ case MADERA_HP_TEST_CTRL_6:
+ case MADERA_AIF1_BCLK_CTRL:
+ case MADERA_AIF1_TX_PIN_CTRL:
+ case MADERA_AIF1_RX_PIN_CTRL:
+ case MADERA_AIF1_RATE_CTRL:
+ case MADERA_AIF1_FORMAT:
+ case MADERA_AIF1_RX_BCLK_RATE:
+ case MADERA_AIF1_FRAME_CTRL_1:
+ case MADERA_AIF1_FRAME_CTRL_2:
+ case MADERA_AIF1_FRAME_CTRL_3:
+ case MADERA_AIF1_FRAME_CTRL_4:
+ case MADERA_AIF1_FRAME_CTRL_5:
+ case MADERA_AIF1_FRAME_CTRL_6:
+ case MADERA_AIF1_FRAME_CTRL_7:
+ case MADERA_AIF1_FRAME_CTRL_8:
+ case MADERA_AIF1_FRAME_CTRL_11:
+ case MADERA_AIF1_FRAME_CTRL_12:
+ case MADERA_AIF1_FRAME_CTRL_13:
+ case MADERA_AIF1_FRAME_CTRL_14:
+ case MADERA_AIF1_FRAME_CTRL_15:
+ case MADERA_AIF1_FRAME_CTRL_16:
+ case MADERA_AIF1_TX_ENABLES:
+ case MADERA_AIF1_RX_ENABLES:
+ case MADERA_AIF2_BCLK_CTRL:
+ case MADERA_AIF2_TX_PIN_CTRL:
+ case MADERA_AIF2_RX_PIN_CTRL:
+ case MADERA_AIF2_RATE_CTRL:
+ case MADERA_AIF2_FORMAT:
+ case MADERA_AIF2_RX_BCLK_RATE:
+ case MADERA_AIF2_FRAME_CTRL_1:
+ case MADERA_AIF2_FRAME_CTRL_2:
+ case MADERA_AIF2_FRAME_CTRL_3:
+ case MADERA_AIF2_FRAME_CTRL_4:
+ case MADERA_AIF2_FRAME_CTRL_11:
+ case MADERA_AIF2_FRAME_CTRL_12:
+ case MADERA_AIF2_TX_ENABLES:
+ case MADERA_AIF2_RX_ENABLES:
+ case MADERA_AIF3_BCLK_CTRL:
+ case MADERA_AIF3_TX_PIN_CTRL:
+ case MADERA_AIF3_RX_PIN_CTRL:
+ case MADERA_AIF3_RATE_CTRL:
+ case MADERA_AIF3_FORMAT:
+ case MADERA_AIF3_RX_BCLK_RATE:
+ case MADERA_AIF3_FRAME_CTRL_1:
+ case MADERA_AIF3_FRAME_CTRL_2:
+ case MADERA_AIF3_FRAME_CTRL_3:
+ case MADERA_AIF3_FRAME_CTRL_4:
+ case MADERA_AIF3_FRAME_CTRL_11:
+ case MADERA_AIF3_FRAME_CTRL_12:
+ case MADERA_AIF3_TX_ENABLES:
+ case MADERA_AIF3_RX_ENABLES:
+ case MADERA_SPD1_TX_CONTROL:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_1:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_2:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_3:
+ case MADERA_SLIMBUS_FRAMER_REF_GEAR:
+ case MADERA_SLIMBUS_RATES_1:
+ case MADERA_SLIMBUS_RATES_2:
+ case MADERA_SLIMBUS_RATES_3:
+ case MADERA_SLIMBUS_RATES_5:
+ case MADERA_SLIMBUS_RATES_6:
+ case MADERA_SLIMBUS_RATES_7:
+ case MADERA_SLIMBUS_RX_CHANNEL_ENABLE:
+ case MADERA_SLIMBUS_TX_CHANNEL_ENABLE:
+ case MADERA_SLIMBUS_RX_PORT_STATUS:
+ case MADERA_SLIMBUS_TX_PORT_STATUS:
+ case MADERA_PWM1MIX_INPUT_1_SOURCE:
+ case MADERA_PWM1MIX_INPUT_1_VOLUME:
+ case MADERA_PWM1MIX_INPUT_2_SOURCE:
+ case MADERA_PWM1MIX_INPUT_2_VOLUME:
+ case MADERA_PWM1MIX_INPUT_3_SOURCE:
+ case MADERA_PWM1MIX_INPUT_3_VOLUME:
+ case MADERA_PWM1MIX_INPUT_4_SOURCE:
+ case MADERA_PWM1MIX_INPUT_4_VOLUME:
+ case MADERA_PWM2MIX_INPUT_1_SOURCE:
+ case MADERA_PWM2MIX_INPUT_1_VOLUME:
+ case MADERA_PWM2MIX_INPUT_2_SOURCE:
+ case MADERA_PWM2MIX_INPUT_2_VOLUME:
+ case MADERA_PWM2MIX_INPUT_3_SOURCE:
+ case MADERA_PWM2MIX_INPUT_3_VOLUME:
+ case MADERA_PWM2MIX_INPUT_4_SOURCE:
+ case MADERA_PWM2MIX_INPUT_4_VOLUME:
+ case MADERA_OUT1LMIX_INPUT_1_SOURCE:
+ case MADERA_OUT1LMIX_INPUT_1_VOLUME:
+ case MADERA_OUT1LMIX_INPUT_2_SOURCE:
+ case MADERA_OUT1LMIX_INPUT_2_VOLUME:
+ case MADERA_OUT1LMIX_INPUT_3_SOURCE:
+ case MADERA_OUT1LMIX_INPUT_3_VOLUME:
+ case MADERA_OUT1LMIX_INPUT_4_SOURCE:
+ case MADERA_OUT1LMIX_INPUT_4_VOLUME:
+ case MADERA_OUT1RMIX_INPUT_1_SOURCE:
+ case MADERA_OUT1RMIX_INPUT_1_VOLUME:
+ case MADERA_OUT1RMIX_INPUT_2_SOURCE:
+ case MADERA_OUT1RMIX_INPUT_2_VOLUME:
+ case MADERA_OUT1RMIX_INPUT_3_SOURCE:
+ case MADERA_OUT1RMIX_INPUT_3_VOLUME:
+ case MADERA_OUT1RMIX_INPUT_4_SOURCE:
+ case MADERA_OUT1RMIX_INPUT_4_VOLUME:
+ case MADERA_OUT4LMIX_INPUT_1_SOURCE:
+ case MADERA_OUT4LMIX_INPUT_1_VOLUME:
+ case MADERA_OUT4LMIX_INPUT_2_SOURCE:
+ case MADERA_OUT4LMIX_INPUT_2_VOLUME:
+ case MADERA_OUT4LMIX_INPUT_3_SOURCE:
+ case MADERA_OUT4LMIX_INPUT_3_VOLUME:
+ case MADERA_OUT4LMIX_INPUT_4_SOURCE:
+ case MADERA_OUT4LMIX_INPUT_4_VOLUME:
+ case MADERA_OUT5LMIX_INPUT_1_SOURCE:
+ case MADERA_OUT5LMIX_INPUT_1_VOLUME:
+ case MADERA_OUT5LMIX_INPUT_2_SOURCE:
+ case MADERA_OUT5LMIX_INPUT_2_VOLUME:
+ case MADERA_OUT5LMIX_INPUT_3_SOURCE:
+ case MADERA_OUT5LMIX_INPUT_3_VOLUME:
+ case MADERA_OUT5LMIX_INPUT_4_SOURCE:
+ case MADERA_OUT5LMIX_INPUT_4_VOLUME:
+ case MADERA_OUT5RMIX_INPUT_1_SOURCE:
+ case MADERA_OUT5RMIX_INPUT_1_VOLUME:
+ case MADERA_OUT5RMIX_INPUT_2_SOURCE:
+ case MADERA_OUT5RMIX_INPUT_2_VOLUME:
+ case MADERA_OUT5RMIX_INPUT_3_SOURCE:
+ case MADERA_OUT5RMIX_INPUT_3_VOLUME:
+ case MADERA_OUT5RMIX_INPUT_4_SOURCE:
+ case MADERA_OUT5RMIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX1MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX1MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX1MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX1MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX1MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX1MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX1MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX1MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX2MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX2MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX2MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX2MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX2MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX2MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX2MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX2MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX3MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX3MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX3MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX3MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX3MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX3MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX3MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX3MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX4MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX4MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX4MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX4MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX4MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX4MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX4MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX4MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX5MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX5MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX5MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX5MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX5MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX5MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX5MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX5MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX6MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX6MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX6MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX6MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX6MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX6MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX6MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX6MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX1MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX1MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX1MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX1MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX1MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX1MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX1MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX1MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX2MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX2MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX2MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX2MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX2MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX2MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX2MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX2MIX_INPUT_4_VOLUME:
+ case MADERA_AIF3TX1MIX_INPUT_1_SOURCE:
+ case MADERA_AIF3TX1MIX_INPUT_1_VOLUME:
+ case MADERA_AIF3TX1MIX_INPUT_2_SOURCE:
+ case MADERA_AIF3TX1MIX_INPUT_2_VOLUME:
+ case MADERA_AIF3TX1MIX_INPUT_3_SOURCE:
+ case MADERA_AIF3TX1MIX_INPUT_3_VOLUME:
+ case MADERA_AIF3TX1MIX_INPUT_4_SOURCE:
+ case MADERA_AIF3TX1MIX_INPUT_4_VOLUME:
+ case MADERA_AIF3TX2MIX_INPUT_1_SOURCE:
+ case MADERA_AIF3TX2MIX_INPUT_1_VOLUME:
+ case MADERA_AIF3TX2MIX_INPUT_2_SOURCE:
+ case MADERA_AIF3TX2MIX_INPUT_2_VOLUME:
+ case MADERA_AIF3TX2MIX_INPUT_3_SOURCE:
+ case MADERA_AIF3TX2MIX_INPUT_3_VOLUME:
+ case MADERA_AIF3TX2MIX_INPUT_4_SOURCE:
+ case MADERA_AIF3TX2MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX1MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX1MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX1MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX1MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX1MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX1MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX1MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX1MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX2MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX2MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX2MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX2MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX2MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX2MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX2MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX2MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX3MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX3MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX3MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX3MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX3MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX3MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX3MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX3MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX4MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX4MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX4MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX4MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX4MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX4MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX4MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX4MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX5MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX5MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX5MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX5MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX5MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX5MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX5MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX5MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX6MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX6MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX6MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX6MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX6MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX6MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX6MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX6MIX_INPUT_4_VOLUME:
+ case MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE:
+ case MADERA_SPDIF1TX1MIX_INPUT_1_VOLUME:
+ case MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE:
+ case MADERA_SPDIF1TX2MIX_INPUT_1_VOLUME:
+ case MADERA_EQ1MIX_INPUT_1_SOURCE:
+ case MADERA_EQ1MIX_INPUT_1_VOLUME:
+ case MADERA_EQ1MIX_INPUT_2_SOURCE:
+ case MADERA_EQ1MIX_INPUT_2_VOLUME:
+ case MADERA_EQ1MIX_INPUT_3_SOURCE:
+ case MADERA_EQ1MIX_INPUT_3_VOLUME:
+ case MADERA_EQ1MIX_INPUT_4_SOURCE:
+ case MADERA_EQ1MIX_INPUT_4_VOLUME:
+ case MADERA_EQ2MIX_INPUT_1_SOURCE:
+ case MADERA_EQ2MIX_INPUT_1_VOLUME:
+ case MADERA_EQ2MIX_INPUT_2_SOURCE:
+ case MADERA_EQ2MIX_INPUT_2_VOLUME:
+ case MADERA_EQ2MIX_INPUT_3_SOURCE:
+ case MADERA_EQ2MIX_INPUT_3_VOLUME:
+ case MADERA_EQ2MIX_INPUT_4_SOURCE:
+ case MADERA_EQ2MIX_INPUT_4_VOLUME:
+ case MADERA_EQ3MIX_INPUT_1_SOURCE:
+ case MADERA_EQ3MIX_INPUT_1_VOLUME:
+ case MADERA_EQ3MIX_INPUT_2_SOURCE:
+ case MADERA_EQ3MIX_INPUT_2_VOLUME:
+ case MADERA_EQ3MIX_INPUT_3_SOURCE:
+ case MADERA_EQ3MIX_INPUT_3_VOLUME:
+ case MADERA_EQ3MIX_INPUT_4_SOURCE:
+ case MADERA_EQ3MIX_INPUT_4_VOLUME:
+ case MADERA_EQ4MIX_INPUT_1_SOURCE:
+ case MADERA_EQ4MIX_INPUT_1_VOLUME:
+ case MADERA_EQ4MIX_INPUT_2_SOURCE:
+ case MADERA_EQ4MIX_INPUT_2_VOLUME:
+ case MADERA_EQ4MIX_INPUT_3_SOURCE:
+ case MADERA_EQ4MIX_INPUT_3_VOLUME:
+ case MADERA_EQ4MIX_INPUT_4_SOURCE:
+ case MADERA_EQ4MIX_INPUT_4_VOLUME:
+ case MADERA_DRC1LMIX_INPUT_1_SOURCE:
+ case MADERA_DRC1LMIX_INPUT_1_VOLUME:
+ case MADERA_DRC1LMIX_INPUT_2_SOURCE:
+ case MADERA_DRC1LMIX_INPUT_2_VOLUME:
+ case MADERA_DRC1LMIX_INPUT_3_SOURCE:
+ case MADERA_DRC1LMIX_INPUT_3_VOLUME:
+ case MADERA_DRC1LMIX_INPUT_4_SOURCE:
+ case MADERA_DRC1LMIX_INPUT_4_VOLUME:
+ case MADERA_DRC1RMIX_INPUT_1_SOURCE:
+ case MADERA_DRC1RMIX_INPUT_1_VOLUME:
+ case MADERA_DRC1RMIX_INPUT_2_SOURCE:
+ case MADERA_DRC1RMIX_INPUT_2_VOLUME:
+ case MADERA_DRC1RMIX_INPUT_3_SOURCE:
+ case MADERA_DRC1RMIX_INPUT_3_VOLUME:
+ case MADERA_DRC1RMIX_INPUT_4_SOURCE:
+ case MADERA_DRC1RMIX_INPUT_4_VOLUME:
+ case MADERA_DRC2LMIX_INPUT_1_SOURCE:
+ case MADERA_DRC2LMIX_INPUT_1_VOLUME:
+ case MADERA_DRC2LMIX_INPUT_2_SOURCE:
+ case MADERA_DRC2LMIX_INPUT_2_VOLUME:
+ case MADERA_DRC2LMIX_INPUT_3_SOURCE:
+ case MADERA_DRC2LMIX_INPUT_3_VOLUME:
+ case MADERA_DRC2LMIX_INPUT_4_SOURCE:
+ case MADERA_DRC2LMIX_INPUT_4_VOLUME:
+ case MADERA_DRC2RMIX_INPUT_1_SOURCE:
+ case MADERA_DRC2RMIX_INPUT_1_VOLUME:
+ case MADERA_DRC2RMIX_INPUT_2_SOURCE:
+ case MADERA_DRC2RMIX_INPUT_2_VOLUME:
+ case MADERA_DRC2RMIX_INPUT_3_SOURCE:
+ case MADERA_DRC2RMIX_INPUT_3_VOLUME:
+ case MADERA_DRC2RMIX_INPUT_4_SOURCE:
+ case MADERA_DRC2RMIX_INPUT_4_VOLUME:
+ case MADERA_HPLP1MIX_INPUT_1_SOURCE:
+ case MADERA_HPLP1MIX_INPUT_1_VOLUME:
+ case MADERA_HPLP1MIX_INPUT_2_SOURCE:
+ case MADERA_HPLP1MIX_INPUT_2_VOLUME:
+ case MADERA_HPLP1MIX_INPUT_3_SOURCE:
+ case MADERA_HPLP1MIX_INPUT_3_VOLUME:
+ case MADERA_HPLP1MIX_INPUT_4_SOURCE:
+ case MADERA_HPLP1MIX_INPUT_4_VOLUME:
+ case MADERA_HPLP2MIX_INPUT_1_SOURCE:
+ case MADERA_HPLP2MIX_INPUT_1_VOLUME:
+ case MADERA_HPLP2MIX_INPUT_2_SOURCE:
+ case MADERA_HPLP2MIX_INPUT_2_VOLUME:
+ case MADERA_HPLP2MIX_INPUT_3_SOURCE:
+ case MADERA_HPLP2MIX_INPUT_3_VOLUME:
+ case MADERA_HPLP2MIX_INPUT_4_SOURCE:
+ case MADERA_HPLP2MIX_INPUT_4_VOLUME:
+ case MADERA_HPLP3MIX_INPUT_1_SOURCE:
+ case MADERA_HPLP3MIX_INPUT_1_VOLUME:
+ case MADERA_HPLP3MIX_INPUT_2_SOURCE:
+ case MADERA_HPLP3MIX_INPUT_2_VOLUME:
+ case MADERA_HPLP3MIX_INPUT_3_SOURCE:
+ case MADERA_HPLP3MIX_INPUT_3_VOLUME:
+ case MADERA_HPLP3MIX_INPUT_4_SOURCE:
+ case MADERA_HPLP3MIX_INPUT_4_VOLUME:
+ case MADERA_HPLP4MIX_INPUT_1_SOURCE:
+ case MADERA_HPLP4MIX_INPUT_1_VOLUME:
+ case MADERA_HPLP4MIX_INPUT_2_SOURCE:
+ case MADERA_HPLP4MIX_INPUT_2_VOLUME:
+ case MADERA_HPLP4MIX_INPUT_3_SOURCE:
+ case MADERA_HPLP4MIX_INPUT_3_VOLUME:
+ case MADERA_HPLP4MIX_INPUT_4_SOURCE:
+ case MADERA_HPLP4MIX_INPUT_4_VOLUME:
+ case MADERA_DSP1LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP1LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP1LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP1LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP1LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP1LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP1LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP1LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP1RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP1RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP1RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP1RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP1RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP1RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP1RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP1RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP1AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP2LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP2LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP2LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP2RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP2RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP2RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP2RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP2RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP2RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP2RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP2RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP2AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP3LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP3LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP3LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP3RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP3RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP3RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP3RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP3RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP3RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP3RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP3RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP3AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1DEC1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1DEC2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1DEC3MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1DEC4MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1INT1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1INT2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1INT3MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1INT4MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2DEC1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2DEC2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2DEC3MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2DEC4MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2INT1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2INT2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2INT3MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2INT4MIX_INPUT_1_SOURCE:
+ case MADERA_FX_CTRL1:
+ case MADERA_FX_CTRL2:
+ case MADERA_EQ1_1:
+ case MADERA_EQ1_2:
+ case MADERA_EQ1_3:
+ case MADERA_EQ1_4:
+ case MADERA_EQ1_5:
+ case MADERA_EQ1_6:
+ case MADERA_EQ1_7:
+ case MADERA_EQ1_8:
+ case MADERA_EQ1_9:
+ case MADERA_EQ1_10:
+ case MADERA_EQ1_11:
+ case MADERA_EQ1_12:
+ case MADERA_EQ1_13:
+ case MADERA_EQ1_14:
+ case MADERA_EQ1_15:
+ case MADERA_EQ1_16:
+ case MADERA_EQ1_17:
+ case MADERA_EQ1_18:
+ case MADERA_EQ1_19:
+ case MADERA_EQ1_20:
+ case MADERA_EQ1_21:
+ case MADERA_EQ2_1:
+ case MADERA_EQ2_2:
+ case MADERA_EQ2_3:
+ case MADERA_EQ2_4:
+ case MADERA_EQ2_5:
+ case MADERA_EQ2_6:
+ case MADERA_EQ2_7:
+ case MADERA_EQ2_8:
+ case MADERA_EQ2_9:
+ case MADERA_EQ2_10:
+ case MADERA_EQ2_11:
+ case MADERA_EQ2_12:
+ case MADERA_EQ2_13:
+ case MADERA_EQ2_14:
+ case MADERA_EQ2_15:
+ case MADERA_EQ2_16:
+ case MADERA_EQ2_17:
+ case MADERA_EQ2_18:
+ case MADERA_EQ2_19:
+ case MADERA_EQ2_20:
+ case MADERA_EQ2_21:
+ case MADERA_EQ3_1:
+ case MADERA_EQ3_2:
+ case MADERA_EQ3_3:
+ case MADERA_EQ3_4:
+ case MADERA_EQ3_5:
+ case MADERA_EQ3_6:
+ case MADERA_EQ3_7:
+ case MADERA_EQ3_8:
+ case MADERA_EQ3_9:
+ case MADERA_EQ3_10:
+ case MADERA_EQ3_11:
+ case MADERA_EQ3_12:
+ case MADERA_EQ3_13:
+ case MADERA_EQ3_14:
+ case MADERA_EQ3_15:
+ case MADERA_EQ3_16:
+ case MADERA_EQ3_17:
+ case MADERA_EQ3_18:
+ case MADERA_EQ3_19:
+ case MADERA_EQ3_20:
+ case MADERA_EQ3_21:
+ case MADERA_EQ4_1:
+ case MADERA_EQ4_2:
+ case MADERA_EQ4_3:
+ case MADERA_EQ4_4:
+ case MADERA_EQ4_5:
+ case MADERA_EQ4_6:
+ case MADERA_EQ4_7:
+ case MADERA_EQ4_8:
+ case MADERA_EQ4_9:
+ case MADERA_EQ4_10:
+ case MADERA_EQ4_11:
+ case MADERA_EQ4_12:
+ case MADERA_EQ4_13:
+ case MADERA_EQ4_14:
+ case MADERA_EQ4_15:
+ case MADERA_EQ4_16:
+ case MADERA_EQ4_17:
+ case MADERA_EQ4_18:
+ case MADERA_EQ4_19:
+ case MADERA_EQ4_20:
+ case MADERA_EQ4_21:
+ case MADERA_DRC1_CTRL1:
+ case MADERA_DRC1_CTRL2:
+ case MADERA_DRC1_CTRL3:
+ case MADERA_DRC1_CTRL4:
+ case MADERA_DRC1_CTRL5:
+ case MADERA_DRC2_CTRL1:
+ case MADERA_DRC2_CTRL2:
+ case MADERA_DRC2_CTRL3:
+ case MADERA_DRC2_CTRL4:
+ case MADERA_DRC2_CTRL5:
+ case MADERA_HPLPF1_1:
+ case MADERA_HPLPF1_2:
+ case MADERA_HPLPF2_1:
+ case MADERA_HPLPF2_2:
+ case MADERA_HPLPF3_1:
+ case MADERA_HPLPF3_2:
+ case MADERA_HPLPF4_1:
+ case MADERA_HPLPF4_2:
+ case MADERA_ISRC_1_CTRL_1:
+ case MADERA_ISRC_1_CTRL_2:
+ case MADERA_ISRC_1_CTRL_3:
+ case MADERA_ISRC_2_CTRL_1:
+ case MADERA_ISRC_2_CTRL_2:
+ case MADERA_ISRC_2_CTRL_3:
+ case MADERA_DAC_COMP_1:
+ case MADERA_DAC_COMP_2:
+ case MADERA_FRF_COEFFICIENT_1L_1:
+ case MADERA_FRF_COEFFICIENT_1L_2:
+ case MADERA_FRF_COEFFICIENT_1L_3:
+ case MADERA_FRF_COEFFICIENT_1L_4:
+ case MADERA_FRF_COEFFICIENT_1R_1:
+ case MADERA_FRF_COEFFICIENT_1R_2:
+ case MADERA_FRF_COEFFICIENT_1R_3:
+ case MADERA_FRF_COEFFICIENT_1R_4:
+ case CS47L35_FRF_COEFFICIENT_4L_1:
+ case CS47L35_FRF_COEFFICIENT_4L_2:
+ case CS47L35_FRF_COEFFICIENT_4L_3:
+ case CS47L35_FRF_COEFFICIENT_4L_4:
+ case CS47L35_FRF_COEFFICIENT_5L_1:
+ case CS47L35_FRF_COEFFICIENT_5L_2:
+ case CS47L35_FRF_COEFFICIENT_5L_3:
+ case CS47L35_FRF_COEFFICIENT_5L_4:
+ case CS47L35_FRF_COEFFICIENT_5R_1:
+ case CS47L35_FRF_COEFFICIENT_5R_2:
+ case CS47L35_FRF_COEFFICIENT_5R_3:
+ case CS47L35_FRF_COEFFICIENT_5R_4:
+ case MADERA_GPIO1_CTRL_1 ... MADERA_GPIO16_CTRL_2:
+ case MADERA_IRQ1_STATUS_1 ... MADERA_IRQ1_STATUS_33:
+ case MADERA_IRQ1_MASK_1 ... MADERA_IRQ1_MASK_33:
+ case MADERA_IRQ1_RAW_STATUS_1 ... MADERA_IRQ1_RAW_STATUS_33:
+ case MADERA_INTERRUPT_DEBOUNCE_7:
+ case MADERA_IRQ1_CTRL:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static bool cs47l35_16bit_volatile_register(struct device *dev,
+ unsigned int reg)
+{
+ switch (reg) {
+ case MADERA_SOFTWARE_RESET:
+ case MADERA_HARDWARE_REVISION:
+ case MADERA_WRITE_SEQUENCER_CTRL_0:
+ case MADERA_WRITE_SEQUENCER_CTRL_1:
+ case MADERA_WRITE_SEQUENCER_CTRL_2:
+ case MADERA_HAPTICS_STATUS:
+ case MADERA_SAMPLE_RATE_1_STATUS:
+ case MADERA_SAMPLE_RATE_2_STATUS:
+ case MADERA_SAMPLE_RATE_3_STATUS:
+ case MADERA_HP_CTRL_1L:
+ case MADERA_HP_CTRL_1R:
+ case MADERA_DCS_HP1L_CONTROL:
+ case MADERA_DCS_HP1R_CONTROL:
+ case MADERA_MIC_DETECT_1_CONTROL_3:
+ case MADERA_MIC_DETECT_1_CONTROL_4:
+ case MADERA_HEADPHONE_DETECT_2:
+ case MADERA_HEADPHONE_DETECT_3:
+ case MADERA_HEADPHONE_DETECT_5:
+ case MADERA_INPUT_ENABLES_STATUS:
+ case MADERA_OUTPUT_STATUS_1:
+ case MADERA_RAW_OUTPUT_STATUS_1:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_1:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_2:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_3:
+ case MADERA_SLIMBUS_RX_PORT_STATUS:
+ case MADERA_SLIMBUS_TX_PORT_STATUS:
+ case MADERA_FX_CTRL2:
+ case MADERA_IRQ1_STATUS_1 ... MADERA_IRQ1_STATUS_33:
+ case MADERA_IRQ1_RAW_STATUS_1 ... MADERA_IRQ1_RAW_STATUS_33:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static bool cs47l35_32bit_readable_register(struct device *dev,
+ unsigned int reg)
+{
+ switch (reg) {
+ case MADERA_WSEQ_SEQUENCE_1 ... MADERA_WSEQ_SEQUENCE_252:
+ case CS47L35_OTP_HPDET_CAL_1 ... CS47L35_OTP_HPDET_CAL_2:
+ case MADERA_DSP1_CONFIG_1 ... MADERA_DSP1_SCRATCH_2:
+ case MADERA_DSP2_CONFIG_1 ... MADERA_DSP2_SCRATCH_2:
+ case MADERA_DSP3_CONFIG_1 ... MADERA_DSP3_SCRATCH_2:
+ return true;
+ default:
+ return cs47l35_is_adsp_memory(reg);
+ }
+}
+
+static bool cs47l35_32bit_volatile_register(struct device *dev,
+ unsigned int reg)
+{
+ switch (reg) {
+ case MADERA_WSEQ_SEQUENCE_1 ... MADERA_WSEQ_SEQUENCE_252:
+ case CS47L35_OTP_HPDET_CAL_1 ... CS47L35_OTP_HPDET_CAL_2:
+ case MADERA_DSP1_CONFIG_1 ... MADERA_DSP1_SCRATCH_2:
+ case MADERA_DSP2_CONFIG_1 ... MADERA_DSP2_SCRATCH_2:
+ case MADERA_DSP3_CONFIG_1 ... MADERA_DSP3_SCRATCH_2:
+ return true;
+ default:
+ return cs47l35_is_adsp_memory(reg);
+ }
+}
+
+const struct regmap_config cs47l35_16bit_spi_regmap = {
+ .name = "cs47l35_16bit",
+ .reg_bits = 32,
+ .pad_bits = 16,
+ .val_bits = 16,
+ .reg_format_endian = REGMAP_ENDIAN_BIG,
+ .val_format_endian = REGMAP_ENDIAN_BIG,
+
+ .max_register = 0x1b00,
+ .readable_reg = cs47l35_16bit_readable_register,
+ .volatile_reg = cs47l35_16bit_volatile_register,
+
+ .cache_type = REGCACHE_RBTREE,
+ .reg_defaults = cs47l35_reg_default,
+ .num_reg_defaults = ARRAY_SIZE(cs47l35_reg_default),
+};
+EXPORT_SYMBOL_GPL(cs47l35_16bit_spi_regmap);
+
+const struct regmap_config cs47l35_16bit_i2c_regmap = {
+ .name = "cs47l35_16bit",
+ .reg_bits = 32,
+ .val_bits = 16,
+ .reg_format_endian = REGMAP_ENDIAN_BIG,
+ .val_format_endian = REGMAP_ENDIAN_BIG,
+
+ .max_register = 0x1b00,
+ .readable_reg = cs47l35_16bit_readable_register,
+ .volatile_reg = cs47l35_16bit_volatile_register,
+
+ .cache_type = REGCACHE_RBTREE,
+ .reg_defaults = cs47l35_reg_default,
+ .num_reg_defaults = ARRAY_SIZE(cs47l35_reg_default),
+};
+EXPORT_SYMBOL_GPL(cs47l35_16bit_i2c_regmap);
+
+const struct regmap_config cs47l35_32bit_spi_regmap = {
+ .name = "cs47l35_32bit",
+ .reg_bits = 32,
+ .reg_stride = 2,
+ .pad_bits = 16,
+ .val_bits = 32,
+ .reg_format_endian = REGMAP_ENDIAN_BIG,
+ .val_format_endian = REGMAP_ENDIAN_BIG,
+
+ .max_register = MADERA_DSP3_SCRATCH_2,
+ .readable_reg = cs47l35_32bit_readable_register,
+ .volatile_reg = cs47l35_32bit_volatile_register,
+
+ .cache_type = REGCACHE_RBTREE,
+};
+EXPORT_SYMBOL_GPL(cs47l35_32bit_spi_regmap);
+
+const struct regmap_config cs47l35_32bit_i2c_regmap = {
+ .name = "cs47l35_32bit",
+ .reg_bits = 32,
+ .reg_stride = 2,
+ .val_bits = 32,
+ .reg_format_endian = REGMAP_ENDIAN_BIG,
+ .val_format_endian = REGMAP_ENDIAN_BIG,
+
+ .max_register = MADERA_DSP3_SCRATCH_2,
+ .readable_reg = cs47l35_32bit_readable_register,
+ .volatile_reg = cs47l35_32bit_volatile_register,
+
+ .cache_type = REGCACHE_RBTREE,
+};
+EXPORT_SYMBOL_GPL(cs47l35_32bit_i2c_regmap);
--
1.9.1
Adds the codec driver for the CS47L35 SmartCodec. This is a
multi-functional codec based on the Cirrus Logic Madera platform.
Signed-off-by: Piotr Stankiewicz <[email protected]>
Signed-off-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
---
sound/soc/codecs/Kconfig | 6 +
sound/soc/codecs/Makefile | 2 +
sound/soc/codecs/cs47l35.c | 1747 ++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 1755 insertions(+)
create mode 100644 sound/soc/codecs/cs47l35.c
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index 753b0f1..aad4a7e 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -62,6 +62,7 @@ config SND_SOC_ALL_CODECS
select SND_SOC_CS42XX8_I2C if I2C
select SND_SOC_CS4349 if I2C
select SND_SOC_CS47L24 if MFD_CS47L24
+ select SND_SOC_CS47L35 if MFD_CS47L35
select SND_SOC_CS53L30 if I2C
select SND_SOC_CX20442 if TTY
select SND_SOC_DA7210 if SND_SOC_I2C_AND_SPI
@@ -493,6 +494,9 @@ config SND_SOC_CS4349
config SND_SOC_CS47L24
tristate
+config SND_SOC_CS47L35
+ tristate
+
# Cirrus Logic Quad-Channel ADC
config SND_SOC_CS53L30
tristate "Cirrus Logic CS53L30 CODEC"
@@ -580,6 +584,8 @@ config SND_SOC_LM49453
config SND_SOC_MADERA
tristate
+ default y if SND_SOC_CS47L35=y
+ default m if SND_SOC_CS47L35=m
config SND_SOC_MAX98088
tristate
diff --git a/sound/soc/codecs/Makefile b/sound/soc/codecs/Makefile
index 641cf66..1b26ecb 100644
--- a/sound/soc/codecs/Makefile
+++ b/sound/soc/codecs/Makefile
@@ -55,6 +55,7 @@ snd-soc-cs42xx8-objs := cs42xx8.o
snd-soc-cs42xx8-i2c-objs := cs42xx8-i2c.o
snd-soc-cs4349-objs := cs4349.o
snd-soc-cs47l24-objs := cs47l24.o
+snd-soc-cs47l35-objs := cs47l35.o
snd-soc-cs53l30-objs := cs53l30.o
snd-soc-cx20442-objs := cx20442.o
snd-soc-da7210-objs := da7210.o
@@ -289,6 +290,7 @@ obj-$(CONFIG_SND_SOC_CS42XX8) += snd-soc-cs42xx8.o
obj-$(CONFIG_SND_SOC_CS42XX8_I2C) += snd-soc-cs42xx8-i2c.o
obj-$(CONFIG_SND_SOC_CS4349) += snd-soc-cs4349.o
obj-$(CONFIG_SND_SOC_CS47L24) += snd-soc-cs47l24.o
+obj-$(CONFIG_SND_SOC_CS47L35) += snd-soc-cs47l35.o
obj-$(CONFIG_SND_SOC_CS53L30) += snd-soc-cs53l30.o
obj-$(CONFIG_SND_SOC_CX20442) += snd-soc-cx20442.o
obj-$(CONFIG_SND_SOC_DA7210) += snd-soc-da7210.o
diff --git a/sound/soc/codecs/cs47l35.c b/sound/soc/codecs/cs47l35.c
new file mode 100644
index 0000000..50ecc44
--- /dev/null
+++ b/sound/soc/codecs/cs47l35.c
@@ -0,0 +1,1747 @@
+/*
+ * cs47l35.c -- ALSA SoC Audio driver for CS47L35 codecs
+ *
+ * Copyright 2015-2017 Cirrus Logic Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/module.h>
+#include <linux/moduleparam.h>
+#include <linux/device.h>
+#include <linux/delay.h>
+#include <linux/init.h>
+#include <linux/pm.h>
+#include <linux/pm_runtime.h>
+#include <linux/regmap.h>
+#include <sound/core.h>
+#include <sound/pcm.h>
+#include <sound/pcm_params.h>
+#include <sound/soc.h>
+#include <sound/tlv.h>
+#include <sound/tlv.h>
+
+#include <linux/mfd/madera/core.h>
+#include <linux/mfd/madera/registers.h>
+
+#include "madera.h"
+#include "wm_adsp.h"
+
+#define CS47L35_NUM_ADSP 3
+#define CS47L35_MONO_OUTPUTS 1
+
+struct cs47l35 {
+ struct madera_priv core;
+ struct madera_fll fll;
+};
+
+static const struct wm_adsp_region cs47l35_dsp1_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x080000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x0e0000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x0a0000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x0c0000 },
+};
+
+static const struct wm_adsp_region cs47l35_dsp2_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x100000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x160000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x120000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x140000 },
+};
+
+static const struct wm_adsp_region cs47l35_dsp3_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x180000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x1e0000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x1a0000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x1c0000 },
+};
+
+static const struct wm_adsp_region *cs47l35_dsp_regions[] = {
+ cs47l35_dsp1_regions,
+ cs47l35_dsp2_regions,
+ cs47l35_dsp3_regions,
+};
+
+static const int wm_adsp2_control_bases[] = {
+ MADERA_DSP1_CONFIG_1,
+ MADERA_DSP2_CONFIG_1,
+ MADERA_DSP3_CONFIG_1,
+};
+
+static const char * const cs47l35_outdemux_texts[] = {
+ "HPOUT",
+ "EPOUT",
+};
+
+static SOC_ENUM_SINGLE_DECL(cs47l35_outdemux_enum, SND_SOC_NOPM, 0,
+ cs47l35_outdemux_texts);
+
+static const struct snd_kcontrol_new cs47l35_outdemux =
+ SOC_DAPM_ENUM_EXT("HPOUT1 Demux", cs47l35_outdemux_enum,
+ snd_soc_dapm_get_enum_double, madera_out1_demux_put);
+
+static int cs47l35_adsp_power_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol,
+ int event)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+ struct cs47l35 *cs47l35 = snd_soc_codec_get_drvdata(codec);
+ struct madera_priv *priv = &cs47l35->core;
+ struct madera *madera = priv->madera;
+ unsigned int freq;
+ int ret;
+
+ ret = regmap_read(madera->regmap, MADERA_DSP_CLOCK_1, &freq);
+ if (ret != 0) {
+ dev_err(madera->dev,
+ "Failed to read MADERA_DSP_CLOCK_1: %d\n", ret);
+ return ret;
+ }
+
+ freq &= MADERA_DSP_CLK_FREQ_LEGACY_MASK;
+ freq >>= MADERA_DSP_CLK_FREQ_LEGACY_SHIFT;
+
+ switch (event) {
+ case SND_SOC_DAPM_PRE_PMU:
+ ret = madera_set_adsp_clk(&cs47l35->core, w->shift, freq);
+ if (ret)
+ return ret;
+ break;
+ default:
+ break;
+ }
+
+ return wm_adsp2_early_event(w, kcontrol, event, freq);
+}
+
+#define CS47L35_NG_SRC(name, base) \
+ SOC_SINGLE(name " NG HPOUT1L Switch", base, 0, 1, 0), \
+ SOC_SINGLE(name " NG HPOUT1R Switch", base, 1, 1, 0), \
+ SOC_SINGLE(name " NG SPKOUT Switch", base, 6, 1, 0), \
+ SOC_SINGLE(name " NG SPKDAT1L Switch", base, 8, 1, 0), \
+ SOC_SINGLE(name " NG SPKDAT1R Switch", base, 9, 1, 0)
+
+static void cs47l35_hp_post_enable(struct snd_soc_dapm_widget *w)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+ unsigned int val;
+
+ switch (w->shift) {
+ case MADERA_OUT1L_ENA_SHIFT:
+ case MADERA_OUT1R_ENA_SHIFT:
+ val = snd_soc_read(codec, MADERA_OUTPUT_ENABLES_1);
+ val &= (MADERA_OUT1L_ENA | MADERA_OUT1R_ENA);
+
+ if (val == (MADERA_OUT1L_ENA | MADERA_OUT1R_ENA))
+ snd_soc_update_bits(codec,
+ MADERA_EDRE_HP_STEREO_CONTROL,
+ MADERA_HP1_EDRE_STEREO_MASK,
+ MADERA_HP1_EDRE_STEREO);
+ break;
+
+ default:
+ break;
+ }
+}
+
+static void cs47l35_hp_post_disable(struct snd_soc_dapm_widget *w)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+
+ switch (w->shift) {
+ case MADERA_OUT1L_ENA_SHIFT:
+ snd_soc_write(codec, MADERA_DCS_HP1L_CONTROL, 0x2006);
+ break;
+ case MADERA_OUT1R_ENA_SHIFT:
+ snd_soc_write(codec, MADERA_DCS_HP1R_CONTROL, 0x2006);
+ break;
+ default:
+ return;
+ }
+
+ /* Only get to here for OUT1L and OUT1R */
+ snd_soc_update_bits(codec,
+ MADERA_EDRE_HP_STEREO_CONTROL,
+ MADERA_HP1_EDRE_STEREO_MASK,
+ 0);
+}
+
+static int cs47l35_hp_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event)
+{
+ int ret;
+
+ switch (event) {
+ case SND_SOC_DAPM_PRE_PMU:
+ case SND_SOC_DAPM_PRE_PMD:
+ return madera_hp_ev(w, kcontrol, event);
+ case SND_SOC_DAPM_POST_PMU:
+ ret = madera_hp_ev(w, kcontrol, event);
+ if (ret < 0)
+ return ret;
+
+ cs47l35_hp_post_enable(w);
+ return 0;
+ case SND_SOC_DAPM_POST_PMD:
+ ret = madera_hp_ev(w, kcontrol, event);
+ cs47l35_hp_post_disable(w);
+ return ret;
+ default:
+ return -EINVAL;
+ }
+}
+
+static const struct snd_kcontrol_new cs47l35_snd_controls[] = {
+SOC_ENUM("IN1 OSR", madera_in_dmic_osr[0]),
+SOC_ENUM("IN2 OSR", madera_in_dmic_osr[1]),
+
+SOC_SINGLE_RANGE_TLV("IN1L Volume", MADERA_IN1L_CONTROL,
+ MADERA_IN1L_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+SOC_SINGLE_RANGE_TLV("IN1R Volume", MADERA_IN1R_CONTROL,
+ MADERA_IN1R_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+SOC_SINGLE_RANGE_TLV("IN2L Volume", MADERA_IN2L_CONTROL,
+ MADERA_IN2L_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+SOC_SINGLE_RANGE_TLV("IN2R Volume", MADERA_IN2R_CONTROL,
+ MADERA_IN2R_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+
+SOC_ENUM("IN HPF Cutoff Frequency", madera_in_hpf_cut_enum),
+
+SOC_SINGLE("IN1L HPF Switch", MADERA_IN1L_CONTROL,
+ MADERA_IN1L_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN1R HPF Switch", MADERA_IN1R_CONTROL,
+ MADERA_IN1R_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN2L HPF Switch", MADERA_IN2L_CONTROL,
+ MADERA_IN2L_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN2R HPF Switch", MADERA_IN2R_CONTROL,
+ MADERA_IN2R_HPF_SHIFT, 1, 0),
+
+SOC_SINGLE_TLV("IN1L Digital Volume", MADERA_ADC_DIGITAL_VOLUME_1L,
+ MADERA_IN1L_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN1R Digital Volume", MADERA_ADC_DIGITAL_VOLUME_1R,
+ MADERA_IN1R_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN2L Digital Volume", MADERA_ADC_DIGITAL_VOLUME_2L,
+ MADERA_IN2L_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN2R Digital Volume", MADERA_ADC_DIGITAL_VOLUME_2R,
+ MADERA_IN2R_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+
+SOC_ENUM("Input Ramp Up", madera_in_vi_ramp),
+SOC_ENUM("Input Ramp Down", madera_in_vd_ramp),
+
+MADERA_MIXER_CONTROLS("EQ1", MADERA_EQ1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("EQ2", MADERA_EQ2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("EQ3", MADERA_EQ3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("EQ4", MADERA_EQ4MIX_INPUT_1_SOURCE),
+
+MADERA_EQ_CONTROL("EQ1 Coefficients", MADERA_EQ1_2),
+SOC_SINGLE_TLV("EQ1 B1 Volume", MADERA_EQ1_1, MADERA_EQ1_B1_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ1 B2 Volume", MADERA_EQ1_1, MADERA_EQ1_B2_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ1 B3 Volume", MADERA_EQ1_1, MADERA_EQ1_B3_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ1 B4 Volume", MADERA_EQ1_2, MADERA_EQ1_B4_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ1 B5 Volume", MADERA_EQ1_2, MADERA_EQ1_B5_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+
+MADERA_EQ_CONTROL("EQ2 Coefficients", MADERA_EQ2_2),
+SOC_SINGLE_TLV("EQ2 B1 Volume", MADERA_EQ2_1, MADERA_EQ2_B1_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ2 B2 Volume", MADERA_EQ2_1, MADERA_EQ2_B2_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ2 B3 Volume", MADERA_EQ2_1, MADERA_EQ2_B3_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ2 B4 Volume", MADERA_EQ2_2, MADERA_EQ2_B4_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ2 B5 Volume", MADERA_EQ2_2, MADERA_EQ2_B5_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+
+MADERA_EQ_CONTROL("EQ3 Coefficients", MADERA_EQ3_2),
+SOC_SINGLE_TLV("EQ3 B1 Volume", MADERA_EQ3_1, MADERA_EQ3_B1_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ3 B2 Volume", MADERA_EQ3_1, MADERA_EQ3_B2_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ3 B3 Volume", MADERA_EQ3_1, MADERA_EQ3_B3_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ3 B4 Volume", MADERA_EQ3_2, MADERA_EQ3_B4_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ3 B5 Volume", MADERA_EQ3_2, MADERA_EQ3_B5_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+
+MADERA_EQ_CONTROL("EQ4 Coefficients", MADERA_EQ4_2),
+SOC_SINGLE_TLV("EQ4 B1 Volume", MADERA_EQ4_1, MADERA_EQ4_B1_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ4 B2 Volume", MADERA_EQ4_1, MADERA_EQ4_B2_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ4 B3 Volume", MADERA_EQ4_1, MADERA_EQ4_B3_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ4 B4 Volume", MADERA_EQ4_2, MADERA_EQ4_B4_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ4 B5 Volume", MADERA_EQ4_2, MADERA_EQ4_B5_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+
+MADERA_MIXER_CONTROLS("DRC1L", MADERA_DRC1LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DRC1R", MADERA_DRC1RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DRC2L", MADERA_DRC2LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DRC2R", MADERA_DRC2RMIX_INPUT_1_SOURCE),
+
+SND_SOC_BYTES_MASK("DRC1", MADERA_DRC1_CTRL1, 5,
+ MADERA_DRC1R_ENA | MADERA_DRC1L_ENA),
+SND_SOC_BYTES_MASK("DRC2", MADERA_DRC2_CTRL1, 5,
+ MADERA_DRC2R_ENA | MADERA_DRC2L_ENA),
+
+MADERA_MIXER_CONTROLS("LHPF1", MADERA_HPLP1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("LHPF2", MADERA_HPLP2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("LHPF3", MADERA_HPLP3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("LHPF4", MADERA_HPLP4MIX_INPUT_1_SOURCE),
+
+MADERA_LHPF_CONTROL("LHPF1 Coefficients", MADERA_HPLPF1_2),
+MADERA_LHPF_CONTROL("LHPF2 Coefficients", MADERA_HPLPF2_2),
+MADERA_LHPF_CONTROL("LHPF3 Coefficients", MADERA_HPLPF3_2),
+MADERA_LHPF_CONTROL("LHPF4 Coefficients", MADERA_HPLPF4_2),
+
+SOC_ENUM("LHPF1 Mode", madera_lhpf1_mode),
+SOC_ENUM("LHPF2 Mode", madera_lhpf2_mode),
+SOC_ENUM("LHPF3 Mode", madera_lhpf3_mode),
+SOC_ENUM("LHPF4 Mode", madera_lhpf4_mode),
+
+SOC_ENUM("Sample Rate 2", madera_sample_rate[0]),
+SOC_ENUM("Sample Rate 3", madera_sample_rate[1]),
+
+MADERA_RATE_ENUM("ISRC1 FSL", madera_isrc_fsl[0]),
+MADERA_RATE_ENUM("ISRC2 FSL", madera_isrc_fsl[1]),
+MADERA_RATE_ENUM("ISRC1 FSH", madera_isrc_fsh[0]),
+MADERA_RATE_ENUM("ISRC2 FSH", madera_isrc_fsh[1]),
+
+MADERA_MIXER_CONTROLS("DSP1L", MADERA_DSP1LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP1R", MADERA_DSP1RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP2L", MADERA_DSP2LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP2R", MADERA_DSP2RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP3L", MADERA_DSP3LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP3R", MADERA_DSP3RMIX_INPUT_1_SOURCE),
+
+SOC_SINGLE_TLV("Noise Generator Volume", MADERA_COMFORT_NOISE_GENERATOR,
+ MADERA_NOISE_GEN_GAIN_SHIFT, 0x16, 0, madera_noise_tlv),
+
+MADERA_MIXER_CONTROLS("HPOUT1L", MADERA_OUT1LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("HPOUT1R", MADERA_OUT1RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SPKOUT", MADERA_OUT4LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SPKDAT1L", MADERA_OUT5LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SPKDAT1R", MADERA_OUT5RMIX_INPUT_1_SOURCE),
+
+SOC_SINGLE("HPOUT1 SC Protect Switch", MADERA_HP1_SHORT_CIRCUIT_CTRL,
+ MADERA_HP1_SC_ENA_SHIFT, 1, 0),
+
+SOC_SINGLE("HPOUT1L ONEFLT Switch", MADERA_HP_TEST_CTRL_5,
+ MADERA_HP1L_ONEFLT_SHIFT, 1, 0),
+SOC_SINGLE("HPOUT1R ONEFLT Switch", MADERA_HP_TEST_CTRL_6,
+ MADERA_HP1R_ONEFLT_SHIFT, 1, 0),
+
+SOC_SINGLE("SPKDAT1 High Performance Switch", MADERA_OUTPUT_PATH_CONFIG_5L,
+ MADERA_OUT5_OSR_SHIFT, 1, 0),
+
+SOC_DOUBLE_R("HPOUT1 Digital Switch", MADERA_DAC_DIGITAL_VOLUME_1L,
+ MADERA_DAC_DIGITAL_VOLUME_1R, MADERA_OUT1L_MUTE_SHIFT, 1, 1),
+SOC_SINGLE("Speaker Digital Switch", MADERA_DAC_DIGITAL_VOLUME_4L,
+ MADERA_OUT4L_MUTE_SHIFT, 1, 1),
+SOC_DOUBLE_R("SPKDAT1 Digital Switch", MADERA_DAC_DIGITAL_VOLUME_5L,
+ MADERA_DAC_DIGITAL_VOLUME_5R, MADERA_OUT5L_MUTE_SHIFT, 1, 1),
+
+SOC_DOUBLE_R_TLV("HPOUT1 Digital Volume", MADERA_DAC_DIGITAL_VOLUME_1L,
+ MADERA_DAC_DIGITAL_VOLUME_1R, MADERA_OUT1L_VOL_SHIFT,
+ 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("Speaker Digital Volume", MADERA_DAC_DIGITAL_VOLUME_4L,
+ MADERA_OUT4L_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_DOUBLE_R_TLV("SPKDAT1 Digital Volume", MADERA_DAC_DIGITAL_VOLUME_5L,
+ MADERA_DAC_DIGITAL_VOLUME_5R, MADERA_OUT5L_VOL_SHIFT,
+ 0xbf, 0, madera_digital_tlv),
+
+SOC_DOUBLE("SPKDAT1 Switch", MADERA_PDM_SPK1_CTRL_1, MADERA_SPK1L_MUTE_SHIFT,
+ MADERA_SPK1R_MUTE_SHIFT, 1, 1),
+
+SOC_DOUBLE("HPOUT1 EDRE Switch", MADERA_EDRE_ENABLE,
+ MADERA_EDRE_OUT1L_THR1_ENA_SHIFT,
+ MADERA_EDRE_OUT1R_THR1_ENA_SHIFT, 1, 0),
+
+SOC_SINGLE("Speaker THR1 EDRE Switch", MADERA_EDRE_ENABLE,
+ MADERA_EDRE_OUT4L_THR1_ENA_SHIFT, 1, 0),
+
+SOC_ENUM("Output Ramp Up", madera_out_vi_ramp),
+SOC_ENUM("Output Ramp Down", madera_out_vd_ramp),
+
+SOC_SINGLE("Noise Gate Switch", MADERA_NOISE_GATE_CONTROL,
+ MADERA_NGATE_ENA_SHIFT, 1, 0),
+SOC_SINGLE_TLV("Noise Gate Threshold Volume", MADERA_NOISE_GATE_CONTROL,
+ MADERA_NGATE_THR_SHIFT, 7, 1, madera_ng_tlv),
+SOC_ENUM("Noise Gate Hold", madera_ng_hold),
+
+CS47L35_NG_SRC("HPOUT1L", MADERA_NOISE_GATE_SELECT_1L),
+CS47L35_NG_SRC("HPOUT1R", MADERA_NOISE_GATE_SELECT_1R),
+CS47L35_NG_SRC("SPKOUT", MADERA_NOISE_GATE_SELECT_4L),
+CS47L35_NG_SRC("SPKDAT1L", MADERA_NOISE_GATE_SELECT_5L),
+CS47L35_NG_SRC("SPKDAT1R", MADERA_NOISE_GATE_SELECT_5R),
+
+MADERA_MIXER_CONTROLS("AIF1TX1", MADERA_AIF1TX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX2", MADERA_AIF1TX2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX3", MADERA_AIF1TX3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX4", MADERA_AIF1TX4MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX5", MADERA_AIF1TX5MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX6", MADERA_AIF1TX6MIX_INPUT_1_SOURCE),
+
+MADERA_MIXER_CONTROLS("AIF2TX1", MADERA_AIF2TX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX2", MADERA_AIF2TX2MIX_INPUT_1_SOURCE),
+
+MADERA_MIXER_CONTROLS("AIF3TX1", MADERA_AIF3TX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF3TX2", MADERA_AIF3TX2MIX_INPUT_1_SOURCE),
+
+MADERA_MIXER_CONTROLS("SLIMTX1", MADERA_SLIMTX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX2", MADERA_SLIMTX2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX3", MADERA_SLIMTX3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX4", MADERA_SLIMTX4MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX5", MADERA_SLIMTX5MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX6", MADERA_SLIMTX6MIX_INPUT_1_SOURCE),
+
+MADERA_GAINMUX_CONTROLS("SPDIF1TX1", MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE),
+MADERA_GAINMUX_CONTROLS("SPDIF1TX2", MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE),
+};
+
+MADERA_MIXER_ENUMS(EQ1, MADERA_EQ1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(EQ2, MADERA_EQ2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(EQ3, MADERA_EQ3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(EQ4, MADERA_EQ4MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DRC1L, MADERA_DRC1LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DRC1R, MADERA_DRC1RMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DRC2L, MADERA_DRC2LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DRC2R, MADERA_DRC2RMIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(LHPF1, MADERA_HPLP1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(LHPF2, MADERA_HPLP2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(LHPF3, MADERA_HPLP3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(LHPF4, MADERA_HPLP4MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP1L, MADERA_DSP1LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP1R, MADERA_DSP1RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP1, MADERA_DSP1AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP2L, MADERA_DSP2LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP2R, MADERA_DSP2RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP2, MADERA_DSP2AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP3L, MADERA_DSP3LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP3R, MADERA_DSP3RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP3, MADERA_DSP3AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(PWM1, MADERA_PWM1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(PWM2, MADERA_PWM2MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(OUT1L, MADERA_OUT1LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(OUT1R, MADERA_OUT1RMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SPKOUT, MADERA_OUT4LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SPKDAT1L, MADERA_OUT5LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SPKDAT1R, MADERA_OUT5RMIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(AIF1TX1, MADERA_AIF1TX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX2, MADERA_AIF1TX2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX3, MADERA_AIF1TX3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX4, MADERA_AIF1TX4MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX5, MADERA_AIF1TX5MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX6, MADERA_AIF1TX6MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(AIF2TX1, MADERA_AIF2TX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX2, MADERA_AIF2TX2MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(AIF3TX1, MADERA_AIF3TX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF3TX2, MADERA_AIF3TX2MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(SLIMTX1, MADERA_SLIMTX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX2, MADERA_SLIMTX2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX3, MADERA_SLIMTX3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX4, MADERA_SLIMTX4MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX5, MADERA_SLIMTX5MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX6, MADERA_SLIMTX6MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(SPD1TX1, MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(SPD1TX2, MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC1INT1, MADERA_ISRC1INT1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1INT2, MADERA_ISRC1INT2MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1INT3, MADERA_ISRC1INT3MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1INT4, MADERA_ISRC1INT4MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC1DEC1, MADERA_ISRC1DEC1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1DEC2, MADERA_ISRC1DEC2MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1DEC3, MADERA_ISRC1DEC3MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1DEC4, MADERA_ISRC1DEC4MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC2INT1, MADERA_ISRC2INT1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2INT2, MADERA_ISRC2INT2MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2INT3, MADERA_ISRC2INT3MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2INT4, MADERA_ISRC2INT4MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC2DEC1, MADERA_ISRC2DEC1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2DEC2, MADERA_ISRC2DEC2MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2DEC3, MADERA_ISRC2DEC3MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2DEC4, MADERA_ISRC2DEC4MIX_INPUT_1_SOURCE);
+
+static const char * const cs47l35_aec_loopback_texts[] = {
+ "HPOUT1L", "HPOUT1R", "SPKOUT", "SPKDAT1L", "SPKDAT1R",
+};
+
+static const unsigned int cs47l35_aec_loopback_values[] = {
+ 0, 1, 6, 8, 9,
+};
+
+static const struct soc_enum cs47l35_aec_loopback =
+ SOC_VALUE_ENUM_SINGLE(MADERA_DAC_AEC_CONTROL_1,
+ MADERA_AEC1_LOOPBACK_SRC_SHIFT, 0xf,
+ ARRAY_SIZE(cs47l35_aec_loopback_texts),
+ cs47l35_aec_loopback_texts,
+ cs47l35_aec_loopback_values);
+
+static const struct snd_kcontrol_new cs47l35_aec_loopback_mux =
+ SOC_DAPM_ENUM("AEC1 Loopback", cs47l35_aec_loopback);
+
+static const struct snd_soc_dapm_widget cs47l35_dapm_widgets[] = {
+SND_SOC_DAPM_SUPPLY("SYSCLK", MADERA_SYSTEM_CLOCK_1, MADERA_SYSCLK_ENA_SHIFT,
+ 0, madera_sysclk_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+SND_SOC_DAPM_SUPPLY("OPCLK", MADERA_OUTPUT_SYSTEM_CLOCK,
+ MADERA_OPCLK_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("DSPCLK", MADERA_DSP_CLOCK_1, 6,
+ 0, NULL, 0),
+
+SND_SOC_DAPM_REGULATOR_SUPPLY("DBVDD2", 0, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("CPVDD1", 20, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("CPVDD2", 20, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("MICVDD", 0, SND_SOC_DAPM_REGULATOR_BYPASS),
+SND_SOC_DAPM_REGULATOR_SUPPLY("SPKVDD", 0, 0),
+
+SND_SOC_DAPM_SUPPLY("MICBIAS1", MADERA_MIC_BIAS_CTRL_1,
+ MADERA_MICB1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS2", MADERA_MIC_BIAS_CTRL_2,
+ MADERA_MICB1_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_SUPPLY("MICBIAS1A", MADERA_MIC_BIAS_CTRL_5,
+ MADERA_MICB1A_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS1B", MADERA_MIC_BIAS_CTRL_5,
+ MADERA_MICB1B_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS2A", MADERA_MIC_BIAS_CTRL_6,
+ MADERA_MICB2A_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS2B", MADERA_MIC_BIAS_CTRL_6,
+ MADERA_MICB2B_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_SUPPLY("FXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_FX, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ISRC1DECCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ISRC1_DEC, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ISRC1INTCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ISRC1_INT, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ISRC2DECCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ISRC2_DEC, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ISRC2INTCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ISRC2_INT, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("OUTCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_OUT, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("SPDCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_SPD, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP1CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP1, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP2CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP2, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP3CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP3, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("AIF1TXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_AIF1, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("AIF2TXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_AIF2, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("AIF3TXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_AIF3, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("SLIMBUSCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_SLIMBUS, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("PWMCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_PWM, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+
+SND_SOC_DAPM_SIGGEN("TONE"),
+SND_SOC_DAPM_SIGGEN("NOISE"),
+
+SND_SOC_DAPM_INPUT("IN1AL"),
+SND_SOC_DAPM_INPUT("IN1AR"),
+SND_SOC_DAPM_INPUT("IN1BL"),
+SND_SOC_DAPM_INPUT("IN1BR"),
+SND_SOC_DAPM_INPUT("IN2L"),
+SND_SOC_DAPM_INPUT("IN2R"),
+
+SND_SOC_DAPM_OUTPUT("DRC1 Signal Activity"),
+SND_SOC_DAPM_OUTPUT("DRC2 Signal Activity"),
+
+SND_SOC_DAPM_OUTPUT("DSP Trigger Out"),
+
+SND_SOC_DAPM_MUX("IN1L Mux", SND_SOC_NOPM, 0, 0, &madera_inmux[0]),
+SND_SOC_DAPM_MUX("IN1R Mux", SND_SOC_NOPM, 0, 0, &madera_inmux[1]),
+
+SND_SOC_DAPM_DEMUX("HPOUT1 Demux", SND_SOC_NOPM, 0, 0, &cs47l35_outdemux),
+
+SND_SOC_DAPM_PGA("PWM1 Driver", MADERA_PWM_DRIVE_1, MADERA_PWM1_ENA_SHIFT,
+ 0, NULL, 0),
+SND_SOC_DAPM_PGA("PWM2 Driver", MADERA_PWM_DRIVE_1, MADERA_PWM2_ENA_SHIFT,
+ 0, NULL, 0),
+
+SND_SOC_DAPM_AIF_OUT("AIF1TX1", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX2", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX3", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX4", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX5", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX6", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX6_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_OUT("AIF2TX1", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX2", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX2_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_OUT("AIF3TX1", NULL, 0,
+ MADERA_AIF3_TX_ENABLES, MADERA_AIF3TX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF3TX2", NULL, 0,
+ MADERA_AIF3_TX_ENABLES, MADERA_AIF3TX2_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_OUT("SLIMTX1", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX2", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX3", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX4", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX5", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX6", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX6_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_PGA_E("OUT1L", SND_SOC_NOPM,
+ MADERA_OUT1L_ENA_SHIFT, 0, NULL, 0, cs47l35_hp_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT1R", SND_SOC_NOPM,
+ MADERA_OUT1R_ENA_SHIFT, 0, NULL, 0, cs47l35_hp_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT4L", SND_SOC_NOPM,
+ MADERA_OUT4L_ENA_SHIFT, 0, NULL, 0, madera_spk_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+SND_SOC_DAPM_PGA_E("OUT5L", MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT5L_ENA_SHIFT, 0, NULL, 0, madera_out_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT5R", MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT5R_ENA_SHIFT, 0, NULL, 0, madera_out_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMU),
+
+SND_SOC_DAPM_PGA("SPD1TX1", MADERA_SPD1_TX_CONTROL,
+ MADERA_SPD1_VAL1_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("SPD1TX2", MADERA_SPD1_TX_CONTROL,
+ MADERA_SPD1_VAL2_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_OUT_DRV("SPD1", MADERA_SPD1_TX_CONTROL,
+ MADERA_SPD1_ENA_SHIFT, 0, NULL, 0),
+
+/*
+ * Input mux widgets arranged in order of sources in MADERA_MIXER_INPUT_ROUTES
+ * to take advantage of cache lookup in DAPM
+ */
+SND_SOC_DAPM_PGA("Noise Generator", MADERA_COMFORT_NOISE_GENERATOR,
+ MADERA_NOISE_GEN_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("Tone Generator 1", MADERA_TONE_GENERATOR_1,
+ MADERA_TONE1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("Tone Generator 2", MADERA_TONE_GENERATOR_1,
+ MADERA_TONE2_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_SIGGEN("HAPTICS"),
+
+SND_SOC_DAPM_MUX("AEC1 Loopback", MADERA_DAC_AEC_CONTROL_1,
+ MADERA_AEC1_LOOPBACK_ENA_SHIFT, 0,
+ &cs47l35_aec_loopback_mux),
+
+SND_SOC_DAPM_PGA_E("IN1L PGA", MADERA_INPUT_ENABLES, MADERA_IN1L_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN1R PGA", MADERA_INPUT_ENABLES, MADERA_IN1R_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN2L PGA", MADERA_INPUT_ENABLES, MADERA_IN2L_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN2R PGA", MADERA_INPUT_ENABLES, MADERA_IN2R_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+
+SND_SOC_DAPM_AIF_IN("AIF1RX1", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX2", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX3", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX4", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX5", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX6", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX6_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_IN("AIF2RX1", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX2", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX2_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_IN("AIF3RX1", NULL, 0,
+ MADERA_AIF3_RX_ENABLES, MADERA_AIF3RX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF3RX2", NULL, 0,
+ MADERA_AIF3_RX_ENABLES, MADERA_AIF3RX2_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_IN("SLIMRX1", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX2", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX3", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX4", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX5", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX6", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX6_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_PGA("EQ1", MADERA_EQ1_1, MADERA_EQ1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("EQ2", MADERA_EQ2_1, MADERA_EQ2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("EQ3", MADERA_EQ3_1, MADERA_EQ3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("EQ4", MADERA_EQ4_1, MADERA_EQ4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("DRC1L", MADERA_DRC1_CTRL1, MADERA_DRC1L_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("DRC1R", MADERA_DRC1_CTRL1, MADERA_DRC1R_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("DRC2L", MADERA_DRC2_CTRL1, MADERA_DRC2L_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("DRC2R", MADERA_DRC2_CTRL1, MADERA_DRC2R_ENA_SHIFT, 0,
+ NULL, 0),
+
+SND_SOC_DAPM_PGA("LHPF1", MADERA_HPLPF1_1, MADERA_LHPF1_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("LHPF2", MADERA_HPLPF2_1, MADERA_LHPF2_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("LHPF3", MADERA_HPLPF3_1, MADERA_LHPF3_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("LHPF4", MADERA_HPLPF4_1, MADERA_LHPF4_ENA_SHIFT, 0,
+ NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC1DEC1", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_DEC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1DEC2", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_DEC2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1DEC3", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_DEC3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1DEC4", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_DEC4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC1INT1", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_INT1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1INT2", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_INT2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1INT3", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_INT3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1INT4", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_INT4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC2DEC1", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_DEC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2DEC2", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_DEC2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2DEC3", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_DEC3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2DEC4", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_DEC4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC2INT1", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_INT1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2INT2", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_INT2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2INT3", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_INT3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2INT4", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_INT4_ENA_SHIFT, 0, NULL, 0),
+
+WM_ADSP2("DSP1", 0, cs47l35_adsp_power_ev),
+WM_ADSP2("DSP2", 1, cs47l35_adsp_power_ev),
+WM_ADSP2("DSP3", 2, cs47l35_adsp_power_ev),
+
+/* End of ordered input mux widgets */
+
+MADERA_MIXER_WIDGETS(EQ1, "EQ1"),
+MADERA_MIXER_WIDGETS(EQ2, "EQ2"),
+MADERA_MIXER_WIDGETS(EQ3, "EQ3"),
+MADERA_MIXER_WIDGETS(EQ4, "EQ4"),
+
+MADERA_MIXER_WIDGETS(DRC1L, "DRC1L"),
+MADERA_MIXER_WIDGETS(DRC1R, "DRC1R"),
+MADERA_MIXER_WIDGETS(DRC2L, "DRC2L"),
+MADERA_MIXER_WIDGETS(DRC2R, "DRC2R"),
+
+SND_SOC_DAPM_SWITCH("DRC1 Activity Output", SND_SOC_NOPM, 0, 0,
+ &madera_drc_activity_output_mux[0]),
+SND_SOC_DAPM_SWITCH("DRC2 Activity Output", SND_SOC_NOPM, 0, 0,
+ &madera_drc_activity_output_mux[1]),
+
+MADERA_MIXER_WIDGETS(LHPF1, "LHPF1"),
+MADERA_MIXER_WIDGETS(LHPF2, "LHPF2"),
+MADERA_MIXER_WIDGETS(LHPF3, "LHPF3"),
+MADERA_MIXER_WIDGETS(LHPF4, "LHPF4"),
+
+MADERA_MIXER_WIDGETS(PWM1, "PWM1"),
+MADERA_MIXER_WIDGETS(PWM2, "PWM2"),
+
+MADERA_MIXER_WIDGETS(OUT1L, "HPOUT1L"),
+MADERA_MIXER_WIDGETS(OUT1R, "HPOUT1R"),
+MADERA_MIXER_WIDGETS(SPKOUT, "SPKOUT"),
+MADERA_MIXER_WIDGETS(SPKDAT1L, "SPKDAT1L"),
+MADERA_MIXER_WIDGETS(SPKDAT1R, "SPKDAT1R"),
+
+MADERA_MIXER_WIDGETS(AIF1TX1, "AIF1TX1"),
+MADERA_MIXER_WIDGETS(AIF1TX2, "AIF1TX2"),
+MADERA_MIXER_WIDGETS(AIF1TX3, "AIF1TX3"),
+MADERA_MIXER_WIDGETS(AIF1TX4, "AIF1TX4"),
+MADERA_MIXER_WIDGETS(AIF1TX5, "AIF1TX5"),
+MADERA_MIXER_WIDGETS(AIF1TX6, "AIF1TX6"),
+
+MADERA_MIXER_WIDGETS(AIF2TX1, "AIF2TX1"),
+MADERA_MIXER_WIDGETS(AIF2TX2, "AIF2TX2"),
+
+MADERA_MIXER_WIDGETS(AIF3TX1, "AIF3TX1"),
+MADERA_MIXER_WIDGETS(AIF3TX2, "AIF3TX2"),
+
+MADERA_MIXER_WIDGETS(SLIMTX1, "SLIMTX1"),
+MADERA_MIXER_WIDGETS(SLIMTX2, "SLIMTX2"),
+MADERA_MIXER_WIDGETS(SLIMTX3, "SLIMTX3"),
+MADERA_MIXER_WIDGETS(SLIMTX4, "SLIMTX4"),
+MADERA_MIXER_WIDGETS(SLIMTX5, "SLIMTX5"),
+MADERA_MIXER_WIDGETS(SLIMTX6, "SLIMTX6"),
+
+MADERA_MUX_WIDGETS(SPD1TX1, "SPDIF1TX1"),
+MADERA_MUX_WIDGETS(SPD1TX2, "SPDIF1TX2"),
+
+MADERA_DSP_WIDGETS(DSP1, "DSP1"),
+MADERA_DSP_WIDGETS(DSP2, "DSP2"),
+MADERA_DSP_WIDGETS(DSP3, "DSP3"),
+
+SND_SOC_DAPM_SWITCH("DSP1 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[0]),
+SND_SOC_DAPM_SWITCH("DSP2 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[1]),
+SND_SOC_DAPM_SWITCH("DSP3 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[2]),
+
+MADERA_MUX_WIDGETS(ISRC1DEC1, "ISRC1DEC1"),
+MADERA_MUX_WIDGETS(ISRC1DEC2, "ISRC1DEC2"),
+MADERA_MUX_WIDGETS(ISRC1DEC3, "ISRC1DEC3"),
+MADERA_MUX_WIDGETS(ISRC1DEC4, "ISRC1DEC4"),
+
+MADERA_MUX_WIDGETS(ISRC1INT1, "ISRC1INT1"),
+MADERA_MUX_WIDGETS(ISRC1INT2, "ISRC1INT2"),
+MADERA_MUX_WIDGETS(ISRC1INT3, "ISRC1INT3"),
+MADERA_MUX_WIDGETS(ISRC1INT4, "ISRC1INT4"),
+
+MADERA_MUX_WIDGETS(ISRC2DEC1, "ISRC2DEC1"),
+MADERA_MUX_WIDGETS(ISRC2DEC2, "ISRC2DEC2"),
+MADERA_MUX_WIDGETS(ISRC2DEC3, "ISRC2DEC3"),
+MADERA_MUX_WIDGETS(ISRC2DEC4, "ISRC2DEC4"),
+
+MADERA_MUX_WIDGETS(ISRC2INT1, "ISRC2INT1"),
+MADERA_MUX_WIDGETS(ISRC2INT2, "ISRC2INT2"),
+MADERA_MUX_WIDGETS(ISRC2INT3, "ISRC2INT3"),
+MADERA_MUX_WIDGETS(ISRC2INT4, "ISRC2INT4"),
+
+SND_SOC_DAPM_OUTPUT("HPOUTL"),
+SND_SOC_DAPM_OUTPUT("HPOUTR"),
+SND_SOC_DAPM_OUTPUT("EPOUTP"),
+SND_SOC_DAPM_OUTPUT("EPOUTN"),
+SND_SOC_DAPM_OUTPUT("SPKOUTN"),
+SND_SOC_DAPM_OUTPUT("SPKOUTP"),
+SND_SOC_DAPM_OUTPUT("SPKDAT1L"),
+SND_SOC_DAPM_OUTPUT("SPKDAT1R"),
+SND_SOC_DAPM_OUTPUT("SPDIF1"),
+
+SND_SOC_DAPM_OUTPUT("MICSUPP"),
+};
+
+#define MADERA_MIXER_INPUT_ROUTES(name) \
+ { name, "Noise Generator", "Noise Generator" }, \
+ { name, "Tone Generator 1", "Tone Generator 1" }, \
+ { name, "Tone Generator 2", "Tone Generator 2" }, \
+ { name, "Haptics", "HAPTICS" }, \
+ { name, "AEC1", "AEC1 Loopback" }, \
+ { name, "IN1L", "IN1L PGA" }, \
+ { name, "IN1R", "IN1R PGA" }, \
+ { name, "IN2L", "IN2L PGA" }, \
+ { name, "IN2R", "IN2R PGA" }, \
+ { name, "AIF1RX1", "AIF1RX1" }, \
+ { name, "AIF1RX2", "AIF1RX2" }, \
+ { name, "AIF1RX3", "AIF1RX3" }, \
+ { name, "AIF1RX4", "AIF1RX4" }, \
+ { name, "AIF1RX5", "AIF1RX5" }, \
+ { name, "AIF1RX6", "AIF1RX6" }, \
+ { name, "AIF2RX1", "AIF2RX1" }, \
+ { name, "AIF2RX2", "AIF2RX2" }, \
+ { name, "AIF3RX1", "AIF3RX1" }, \
+ { name, "AIF3RX2", "AIF3RX2" }, \
+ { name, "SLIMRX1", "SLIMRX1" }, \
+ { name, "SLIMRX2", "SLIMRX2" }, \
+ { name, "SLIMRX3", "SLIMRX3" }, \
+ { name, "SLIMRX4", "SLIMRX4" }, \
+ { name, "SLIMRX5", "SLIMRX5" }, \
+ { name, "SLIMRX6", "SLIMRX6" }, \
+ { name, "EQ1", "EQ1" }, \
+ { name, "EQ2", "EQ2" }, \
+ { name, "EQ3", "EQ3" }, \
+ { name, "EQ4", "EQ4" }, \
+ { name, "DRC1L", "DRC1L" }, \
+ { name, "DRC1R", "DRC1R" }, \
+ { name, "DRC2L", "DRC2L" }, \
+ { name, "DRC2R", "DRC2R" }, \
+ { name, "LHPF1", "LHPF1" }, \
+ { name, "LHPF2", "LHPF2" }, \
+ { name, "LHPF3", "LHPF3" }, \
+ { name, "LHPF4", "LHPF4" }, \
+ { name, "ISRC1DEC1", "ISRC1DEC1" }, \
+ { name, "ISRC1DEC2", "ISRC1DEC2" }, \
+ { name, "ISRC1DEC3", "ISRC1DEC3" }, \
+ { name, "ISRC1DEC4", "ISRC1DEC4" }, \
+ { name, "ISRC1INT1", "ISRC1INT1" }, \
+ { name, "ISRC1INT2", "ISRC1INT2" }, \
+ { name, "ISRC1INT3", "ISRC1INT3" }, \
+ { name, "ISRC1INT4", "ISRC1INT4" }, \
+ { name, "ISRC2DEC1", "ISRC2DEC1" }, \
+ { name, "ISRC2DEC2", "ISRC2DEC2" }, \
+ { name, "ISRC2DEC3", "ISRC2DEC3" }, \
+ { name, "ISRC2DEC4", "ISRC2DEC4" }, \
+ { name, "ISRC2INT1", "ISRC2INT1" }, \
+ { name, "ISRC2INT2", "ISRC2INT2" }, \
+ { name, "ISRC2INT3", "ISRC2INT3" }, \
+ { name, "ISRC2INT4", "ISRC2INT4" }, \
+ { name, "DSP1.1", "DSP1" }, \
+ { name, "DSP1.2", "DSP1" }, \
+ { name, "DSP1.3", "DSP1" }, \
+ { name, "DSP1.4", "DSP1" }, \
+ { name, "DSP1.5", "DSP1" }, \
+ { name, "DSP1.6", "DSP1" }, \
+ { name, "DSP2.1", "DSP2" }, \
+ { name, "DSP2.2", "DSP2" }, \
+ { name, "DSP2.3", "DSP2" }, \
+ { name, "DSP2.4", "DSP2" }, \
+ { name, "DSP2.5", "DSP2" }, \
+ { name, "DSP2.6", "DSP2" }, \
+ { name, "DSP3.1", "DSP3" }, \
+ { name, "DSP3.2", "DSP3" }, \
+ { name, "DSP3.3", "DSP3" }, \
+ { name, "DSP3.4", "DSP3" }, \
+ { name, "DSP3.5", "DSP3" }, \
+ { name, "DSP3.6", "DSP3" }
+
+static const struct snd_soc_dapm_route cs47l35_dapm_routes[] = {
+ /* Internal clock domains */
+ { "EQ1", NULL, "FXCLK" },
+ { "EQ2", NULL, "FXCLK" },
+ { "EQ3", NULL, "FXCLK" },
+ { "EQ4", NULL, "FXCLK" },
+ { "DRC1L", NULL, "FXCLK" },
+ { "DRC1R", NULL, "FXCLK" },
+ { "DRC2L", NULL, "FXCLK" },
+ { "DRC2R", NULL, "FXCLK" },
+ { "LHPF1", NULL, "FXCLK" },
+ { "LHPF2", NULL, "FXCLK" },
+ { "LHPF3", NULL, "FXCLK" },
+ { "LHPF4", NULL, "FXCLK" },
+ { "PWM1 Mixer", NULL, "PWMCLK" },
+ { "PWM2 Mixer", NULL, "PWMCLK" },
+ { "OUT1L", NULL, "OUTCLK" },
+ { "OUT1R", NULL, "OUTCLK" },
+ { "OUT4L", NULL, "OUTCLK" },
+ { "OUT5L", NULL, "OUTCLK" },
+ { "OUT5R", NULL, "OUTCLK" },
+ { "AIF1TX1", NULL, "AIF1TXCLK" },
+ { "AIF1TX2", NULL, "AIF1TXCLK" },
+ { "AIF1TX3", NULL, "AIF1TXCLK" },
+ { "AIF1TX4", NULL, "AIF1TXCLK" },
+ { "AIF1TX5", NULL, "AIF1TXCLK" },
+ { "AIF1TX6", NULL, "AIF1TXCLK" },
+ { "AIF2TX1", NULL, "AIF2TXCLK" },
+ { "AIF2TX2", NULL, "AIF2TXCLK" },
+ { "AIF3TX1", NULL, "AIF3TXCLK" },
+ { "AIF3TX2", NULL, "AIF3TXCLK" },
+ { "SLIMTX1", NULL, "SLIMBUSCLK" },
+ { "SLIMTX2", NULL, "SLIMBUSCLK" },
+ { "SLIMTX3", NULL, "SLIMBUSCLK" },
+ { "SLIMTX4", NULL, "SLIMBUSCLK" },
+ { "SLIMTX5", NULL, "SLIMBUSCLK" },
+ { "SLIMTX6", NULL, "SLIMBUSCLK" },
+ { "SPD1TX1", NULL, "SPDCLK" },
+ { "SPD1TX2", NULL, "SPDCLK" },
+ { "DSP1", NULL, "DSP1CLK" },
+ { "DSP2", NULL, "DSP2CLK" },
+ { "DSP3", NULL, "DSP3CLK" },
+ { "ISRC1DEC1", NULL, "ISRC1DECCLK" },
+ { "ISRC1DEC2", NULL, "ISRC1DECCLK" },
+ { "ISRC1DEC3", NULL, "ISRC1DECCLK" },
+ { "ISRC1DEC4", NULL, "ISRC1DECCLK" },
+ { "ISRC1INT1", NULL, "ISRC1INTCLK" },
+ { "ISRC1INT2", NULL, "ISRC1INTCLK" },
+ { "ISRC1INT3", NULL, "ISRC1INTCLK" },
+ { "ISRC1INT4", NULL, "ISRC1INTCLK" },
+ { "ISRC2DEC1", NULL, "ISRC2DECCLK" },
+ { "ISRC2DEC2", NULL, "ISRC2DECCLK" },
+ { "ISRC2DEC3", NULL, "ISRC2DECCLK" },
+ { "ISRC2DEC4", NULL, "ISRC2DECCLK" },
+ { "ISRC2INT1", NULL, "ISRC2INTCLK" },
+ { "ISRC2INT2", NULL, "ISRC2INTCLK" },
+ { "ISRC2INT3", NULL, "ISRC2INTCLK" },
+ { "ISRC2INT4", NULL, "ISRC2INTCLK" },
+
+ { "AIF2 Capture", NULL, "DBVDD2" },
+ { "AIF2 Playback", NULL, "DBVDD2" },
+
+ { "AIF3 Capture", NULL, "DBVDD2" },
+ { "AIF3 Playback", NULL, "DBVDD2" },
+
+ { "OUT1L", NULL, "CPVDD1" },
+ { "OUT1R", NULL, "CPVDD1" },
+ { "OUT1L", NULL, "CPVDD2" },
+ { "OUT1R", NULL, "CPVDD2" },
+
+ { "OUT4L", NULL, "SPKVDD" },
+
+ { "OUT1L", NULL, "SYSCLK" },
+ { "OUT1R", NULL, "SYSCLK" },
+ { "OUT4L", NULL, "SYSCLK" },
+ { "OUT5L", NULL, "SYSCLK" },
+ { "OUT5R", NULL, "SYSCLK" },
+
+ { "SPD1", NULL, "SYSCLK" },
+ { "SPD1", NULL, "SPD1TX1" },
+ { "SPD1", NULL, "SPD1TX2" },
+
+ { "IN1AL", NULL, "SYSCLK" },
+ { "IN1AR", NULL, "SYSCLK" },
+ { "IN1BL", NULL, "SYSCLK" },
+ { "IN1BR", NULL, "SYSCLK" },
+ { "IN2L", NULL, "SYSCLK" },
+ { "IN2R", NULL, "SYSCLK" },
+
+ { "MICBIAS1", NULL, "MICVDD" },
+ { "MICBIAS2", NULL, "MICVDD" },
+
+ { "MICBIAS1A", NULL, "MICBIAS1" },
+ { "MICBIAS1B", NULL, "MICBIAS1" },
+ { "MICBIAS2A", NULL, "MICBIAS2" },
+ { "MICBIAS2B", NULL, "MICBIAS2" },
+
+ { "Noise Generator", NULL, "SYSCLK" },
+ { "Tone Generator 1", NULL, "SYSCLK" },
+ { "Tone Generator 2", NULL, "SYSCLK" },
+
+ { "Noise Generator", NULL, "NOISE" },
+ { "Tone Generator 1", NULL, "TONE" },
+ { "Tone Generator 2", NULL, "TONE" },
+
+ { "AIF1 Capture", NULL, "AIF1TX1" },
+ { "AIF1 Capture", NULL, "AIF1TX2" },
+ { "AIF1 Capture", NULL, "AIF1TX3" },
+ { "AIF1 Capture", NULL, "AIF1TX4" },
+ { "AIF1 Capture", NULL, "AIF1TX5" },
+ { "AIF1 Capture", NULL, "AIF1TX6" },
+
+ { "AIF1RX1", NULL, "AIF1 Playback" },
+ { "AIF1RX2", NULL, "AIF1 Playback" },
+ { "AIF1RX3", NULL, "AIF1 Playback" },
+ { "AIF1RX4", NULL, "AIF1 Playback" },
+ { "AIF1RX5", NULL, "AIF1 Playback" },
+ { "AIF1RX6", NULL, "AIF1 Playback" },
+
+ { "AIF2 Capture", NULL, "AIF2TX1" },
+ { "AIF2 Capture", NULL, "AIF2TX2" },
+
+ { "AIF2RX1", NULL, "AIF2 Playback" },
+ { "AIF2RX2", NULL, "AIF2 Playback" },
+
+ { "AIF3 Capture", NULL, "AIF3TX1" },
+ { "AIF3 Capture", NULL, "AIF3TX2" },
+
+ { "AIF3RX1", NULL, "AIF3 Playback" },
+ { "AIF3RX2", NULL, "AIF3 Playback" },
+
+ { "Slim1 Capture", NULL, "SLIMTX1" },
+ { "Slim1 Capture", NULL, "SLIMTX2" },
+ { "Slim1 Capture", NULL, "SLIMTX3" },
+ { "Slim1 Capture", NULL, "SLIMTX4" },
+
+ { "SLIMRX1", NULL, "Slim1 Playback" },
+ { "SLIMRX2", NULL, "Slim1 Playback" },
+ { "SLIMRX3", NULL, "Slim1 Playback" },
+ { "SLIMRX4", NULL, "Slim1 Playback" },
+
+ { "Slim2 Capture", NULL, "SLIMTX5" },
+ { "Slim2 Capture", NULL, "SLIMTX6" },
+
+ { "SLIMRX5", NULL, "Slim2 Playback" },
+ { "SLIMRX6", NULL, "Slim2 Playback" },
+
+ { "AIF1 Playback", NULL, "SYSCLK" },
+ { "AIF2 Playback", NULL, "SYSCLK" },
+ { "AIF3 Playback", NULL, "SYSCLK" },
+ { "Slim1 Playback", NULL, "SYSCLK" },
+ { "Slim2 Playback", NULL, "SYSCLK" },
+
+ { "AIF1 Capture", NULL, "SYSCLK" },
+ { "AIF2 Capture", NULL, "SYSCLK" },
+ { "AIF3 Capture", NULL, "SYSCLK" },
+ { "Slim1 Capture", NULL, "SYSCLK" },
+ { "Slim2 Capture", NULL, "SYSCLK" },
+
+ { "Voice Control DSP", NULL, "DSP3" },
+
+ { "Audio Trace DSP", NULL, "DSP1" },
+
+ { "IN1L Mux", "A", "IN1AL" },
+ { "IN1L Mux", "B", "IN1BL" },
+ { "IN1R Mux", "A", "IN1AR" },
+ { "IN1R Mux", "B", "IN1BR" },
+
+ { "IN1L PGA", NULL, "IN1L Mux" },
+ { "IN1R PGA", NULL, "IN1R Mux" },
+
+ { "IN2L PGA", NULL, "IN2L" },
+ { "IN2R PGA", NULL, "IN2R" },
+
+ MADERA_MIXER_ROUTES("OUT1L", "HPOUT1L"),
+ MADERA_MIXER_ROUTES("OUT1R", "HPOUT1R"),
+
+ MADERA_MIXER_ROUTES("OUT4L", "SPKOUT"),
+
+ MADERA_MIXER_ROUTES("OUT5L", "SPKDAT1L"),
+ MADERA_MIXER_ROUTES("OUT5R", "SPKDAT1R"),
+
+ MADERA_MIXER_ROUTES("PWM1 Driver", "PWM1"),
+ MADERA_MIXER_ROUTES("PWM2 Driver", "PWM2"),
+
+ MADERA_MIXER_ROUTES("AIF1TX1", "AIF1TX1"),
+ MADERA_MIXER_ROUTES("AIF1TX2", "AIF1TX2"),
+ MADERA_MIXER_ROUTES("AIF1TX3", "AIF1TX3"),
+ MADERA_MIXER_ROUTES("AIF1TX4", "AIF1TX4"),
+ MADERA_MIXER_ROUTES("AIF1TX5", "AIF1TX5"),
+ MADERA_MIXER_ROUTES("AIF1TX6", "AIF1TX6"),
+
+ MADERA_MIXER_ROUTES("AIF2TX1", "AIF2TX1"),
+ MADERA_MIXER_ROUTES("AIF2TX2", "AIF2TX2"),
+
+ MADERA_MIXER_ROUTES("AIF3TX1", "AIF3TX1"),
+ MADERA_MIXER_ROUTES("AIF3TX2", "AIF3TX2"),
+
+ MADERA_MIXER_ROUTES("SLIMTX1", "SLIMTX1"),
+ MADERA_MIXER_ROUTES("SLIMTX2", "SLIMTX2"),
+ MADERA_MIXER_ROUTES("SLIMTX3", "SLIMTX3"),
+ MADERA_MIXER_ROUTES("SLIMTX4", "SLIMTX4"),
+ MADERA_MIXER_ROUTES("SLIMTX5", "SLIMTX5"),
+ MADERA_MIXER_ROUTES("SLIMTX6", "SLIMTX6"),
+
+ MADERA_MUX_ROUTES("SPD1TX1", "SPDIF1TX1"),
+ MADERA_MUX_ROUTES("SPD1TX2", "SPDIF1TX2"),
+
+ MADERA_MIXER_ROUTES("EQ1", "EQ1"),
+ MADERA_MIXER_ROUTES("EQ2", "EQ2"),
+ MADERA_MIXER_ROUTES("EQ3", "EQ3"),
+ MADERA_MIXER_ROUTES("EQ4", "EQ4"),
+
+ MADERA_MIXER_ROUTES("DRC1L", "DRC1L"),
+ MADERA_MIXER_ROUTES("DRC1R", "DRC1R"),
+ MADERA_MIXER_ROUTES("DRC2L", "DRC2L"),
+ MADERA_MIXER_ROUTES("DRC2R", "DRC2R"),
+
+ MADERA_MIXER_ROUTES("LHPF1", "LHPF1"),
+ MADERA_MIXER_ROUTES("LHPF2", "LHPF2"),
+ MADERA_MIXER_ROUTES("LHPF3", "LHPF3"),
+ MADERA_MIXER_ROUTES("LHPF4", "LHPF4"),
+
+ MADERA_DSP_ROUTES("DSP1"),
+ MADERA_DSP_ROUTES("DSP2"),
+ MADERA_DSP_ROUTES("DSP3"),
+
+ { "DSP Trigger Out", NULL, "DSP1 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP2 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP3 Trigger Output" },
+
+ { "DSP1 Trigger Output", "Switch", "DSP1" },
+ { "DSP2 Trigger Output", "Switch", "DSP2" },
+ { "DSP3 Trigger Output", "Switch", "DSP3" },
+
+ MADERA_MUX_ROUTES("ISRC1INT1", "ISRC1INT1"),
+ MADERA_MUX_ROUTES("ISRC1INT2", "ISRC1INT2"),
+ MADERA_MUX_ROUTES("ISRC1INT3", "ISRC1INT3"),
+ MADERA_MUX_ROUTES("ISRC1INT4", "ISRC1INT4"),
+
+ MADERA_MUX_ROUTES("ISRC1DEC1", "ISRC1DEC1"),
+ MADERA_MUX_ROUTES("ISRC1DEC2", "ISRC1DEC2"),
+ MADERA_MUX_ROUTES("ISRC1DEC3", "ISRC1DEC3"),
+ MADERA_MUX_ROUTES("ISRC1DEC4", "ISRC1DEC4"),
+
+ MADERA_MUX_ROUTES("ISRC2INT1", "ISRC2INT1"),
+ MADERA_MUX_ROUTES("ISRC2INT2", "ISRC2INT2"),
+ MADERA_MUX_ROUTES("ISRC2INT3", "ISRC2INT3"),
+ MADERA_MUX_ROUTES("ISRC2INT4", "ISRC2INT4"),
+
+ MADERA_MUX_ROUTES("ISRC2DEC1", "ISRC2DEC1"),
+ MADERA_MUX_ROUTES("ISRC2DEC2", "ISRC2DEC2"),
+ MADERA_MUX_ROUTES("ISRC2DEC3", "ISRC2DEC3"),
+ MADERA_MUX_ROUTES("ISRC2DEC4", "ISRC2DEC4"),
+
+ { "AEC1 Loopback", "HPOUT1L", "OUT1L" },
+ { "AEC1 Loopback", "HPOUT1R", "OUT1R" },
+ { "HPOUT1 Demux", NULL, "OUT1L" },
+ { "HPOUT1 Demux", NULL, "OUT1R" },
+
+ { "AEC1 Loopback", "SPKOUT", "OUT4L" },
+ { "SPKOUTN", NULL, "OUT4L" },
+ { "SPKOUTP", NULL, "OUT4L" },
+
+ { "HPOUTL", "HPOUT", "HPOUT1 Demux" },
+ { "HPOUTR", "HPOUT", "HPOUT1 Demux" },
+ { "EPOUTP", "EPOUT", "HPOUT1 Demux" },
+ { "EPOUTN", "EPOUT", "HPOUT1 Demux" },
+
+ { "AEC1 Loopback", "SPKDAT1L", "OUT5L" },
+ { "AEC1 Loopback", "SPKDAT1R", "OUT5R" },
+ { "SPKDAT1L", NULL, "OUT5L" },
+ { "SPKDAT1R", NULL, "OUT5R" },
+
+ { "SPDIF1", NULL, "SPD1" },
+
+ { "MICSUPP", NULL, "SYSCLK" },
+
+ { "DRC1 Signal Activity", NULL, "DRC1 Activity Output" },
+ { "DRC2 Signal Activity", NULL, "DRC2 Activity Output" },
+ { "DRC1 Activity Output", "Switch", "DRC1L" },
+ { "DRC1 Activity Output", "Switch", "DRC1R" },
+ { "DRC2 Activity Output", "Switch", "DRC2L" },
+ { "DRC2 Activity Output", "Switch", "DRC2R" },
+};
+
+static int cs47l35_set_fll(struct snd_soc_codec *codec, int fll_id, int source,
+ unsigned int fref, unsigned int fout)
+{
+ struct cs47l35 *cs47l35 = snd_soc_codec_get_drvdata(codec);
+
+ switch (fll_id) {
+ case MADERA_FLL1_REFCLK:
+ return madera_set_fll_refclk(&cs47l35->fll, source, fref,
+ fout);
+ case MADERA_FLL1_SYNCCLK:
+ return madera_set_fll_syncclk(&cs47l35->fll, source, fref,
+ fout);
+ default:
+ return -EINVAL;
+ }
+}
+
+static struct snd_soc_dai_driver cs47l35_dai[] = {
+ {
+ .name = "cs47l35-aif1",
+ .id = 1,
+ .base = MADERA_AIF1_BCLK_CTRL,
+ .playback = {
+ .stream_name = "AIF1 Playback",
+ .channels_min = 1,
+ .channels_max = 6,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "AIF1 Capture",
+ .channels_min = 1,
+ .channels_max = 6,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_dai_ops,
+ .symmetric_rates = 1,
+ .symmetric_samplebits = 1,
+ },
+ {
+ .name = "cs47l35-aif2",
+ .id = 2,
+ .base = MADERA_AIF2_BCLK_CTRL,
+ .playback = {
+ .stream_name = "AIF2 Playback",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "AIF2 Capture",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_dai_ops,
+ .symmetric_rates = 1,
+ .symmetric_samplebits = 1,
+ },
+ {
+ .name = "cs47l35-aif3",
+ .id = 3,
+ .base = MADERA_AIF3_BCLK_CTRL,
+ .playback = {
+ .stream_name = "AIF3 Playback",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "AIF3 Capture",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_dai_ops,
+ .symmetric_rates = 1,
+ .symmetric_samplebits = 1,
+ },
+ {
+ .name = "cs47l35-slim1",
+ .id = 4,
+ .playback = {
+ .stream_name = "Slim1 Playback",
+ .channels_min = 1,
+ .channels_max = 4,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "Slim1 Capture",
+ .channels_min = 1,
+ .channels_max = 4,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_simple_dai_ops,
+ },
+ {
+ .name = "cs47l35-slim2",
+ .id = 5,
+ .playback = {
+ .stream_name = "Slim2 Playback",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "Slim2 Capture",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_simple_dai_ops,
+ },
+ {
+ .name = "cs47l35-cpu-voicectrl",
+ .capture = {
+ .stream_name = "Voice Control CPU",
+ .channels_min = 1,
+ .channels_max = 1,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .compress_new = snd_soc_new_compress,
+ },
+ {
+ .name = "cs47l35-dsp-voicectrl",
+ .capture = {
+ .stream_name = "Voice Control DSP",
+ .channels_min = 1,
+ .channels_max = 1,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ },
+ {
+ .name = "cs47l35-cpu-trace",
+ .capture = {
+ .stream_name = "Audio Trace CPU",
+ .channels_min = 1,
+ .channels_max = 6,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .compress_new = snd_soc_new_compress,
+ },
+ {
+ .name = "cs47l35-dsp-trace",
+ .capture = {
+ .stream_name = "Audio Trace DSP",
+ .channels_min = 1,
+ .channels_max = 6,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ },
+};
+
+static int cs47l35_open(struct snd_compr_stream *stream)
+{
+ struct snd_soc_pcm_runtime *rtd = stream->private_data;
+ struct cs47l35 *cs47l35 = snd_soc_platform_get_drvdata(rtd->platform);
+ struct madera_priv *priv = &cs47l35->core;
+ struct madera *madera = priv->madera;
+ int n_adsp;
+
+ if (strcmp(rtd->codec_dai->name, "cs47l35-dsp-voicectrl") == 0) {
+ n_adsp = 2;
+ } else if (strcmp(rtd->codec_dai->name, "cs47l35-dsp-trace") == 0) {
+ n_adsp = 0;
+ } else {
+ dev_err(madera->dev,
+ "No suitable compressed stream for DAI '%s'\n",
+ rtd->codec_dai->name);
+ return -EINVAL;
+ }
+
+ return wm_adsp_compr_open(&priv->adsp[n_adsp], stream);
+}
+
+static irqreturn_t cs47l35_adsp2_irq(int irq, void *data)
+{
+ struct cs47l35 *cs47l35 = data;
+ struct madera_priv *priv = &cs47l35->core;
+ struct madera *madera = priv->madera;
+ struct madera_voice_trigger_info trig_info;
+ int serviced = 0;
+ int i, ret;
+
+ for (i = 0; i < CS47L35_NUM_ADSP; ++i) {
+ ret = wm_adsp_compr_handle_irq(&priv->adsp[i]);
+ if (ret != -ENODEV)
+ serviced++;
+ if (ret == WM_ADSP_COMPR_VOICE_TRIGGER) {
+ trig_info.core_num = i + 1;
+ madera_call_notifiers(madera,
+ MADERA_NOTIFY_VOICE_TRIGGER,
+ &trig_info);
+ }
+ }
+
+ if (!serviced) {
+ dev_err(madera->dev, "Spurious compressed data IRQ\n");
+ return IRQ_NONE;
+ }
+
+ return IRQ_HANDLED;
+}
+
+static const char * const cs47l35_dmic_refs[] = {
+ "MICVDD",
+ "MICBIAS1B",
+ "MICBIAS2A",
+ "MICBIAS2B",
+};
+
+static const char * const cs47l35_dmic_inputs[] = {
+ "IN1L Mux",
+ "IN1R Mux",
+ "IN2L",
+ "IN2R",
+};
+
+static int cs47l35_codec_probe(struct snd_soc_codec *codec)
+{
+ struct cs47l35 *cs47l35 = snd_soc_codec_get_drvdata(codec);
+ struct madera *madera = cs47l35->core.madera;
+ int i, ret;
+
+ madera->dapm = snd_soc_codec_get_dapm(codec);
+
+ ret = madera_init_inputs(codec,
+ cs47l35_dmic_inputs,
+ ARRAY_SIZE(cs47l35_dmic_inputs),
+ cs47l35_dmic_refs,
+ ARRAY_SIZE(cs47l35_dmic_refs));
+ if (ret)
+ return ret;
+
+ ret = madera_init_outputs(codec, CS47L35_MONO_OUTPUTS);
+ if (ret)
+ return ret;
+
+ snd_soc_component_disable_pin(snd_soc_dapm_to_component(madera->dapm),
+ "HAPTICS");
+
+ ret = snd_soc_add_codec_controls(codec, madera_adsp_rate_controls,
+ CS47L35_NUM_ADSP);
+ if (ret)
+ return ret;
+
+ for (i = 0; i < CS47L35_NUM_ADSP; i++)
+ wm_adsp2_codec_probe(&cs47l35->core.adsp[i], codec);
+
+ return 0;
+}
+
+static int cs47l35_codec_remove(struct snd_soc_codec *codec)
+{
+ struct cs47l35 *cs47l35 = snd_soc_codec_get_drvdata(codec);
+ int i;
+
+ for (i = 0; i < CS47L35_NUM_ADSP; i++)
+ wm_adsp2_codec_remove(&cs47l35->core.adsp[i], codec);
+
+ cs47l35->core.madera->dapm = NULL;
+
+ return 0;
+}
+
+#define CS47L35_DIG_VU 0x0200
+
+static unsigned int cs47l35_digital_vu[] = {
+ MADERA_DAC_DIGITAL_VOLUME_1L,
+ MADERA_DAC_DIGITAL_VOLUME_1R,
+ MADERA_DAC_DIGITAL_VOLUME_4L,
+ MADERA_DAC_DIGITAL_VOLUME_5L,
+ MADERA_DAC_DIGITAL_VOLUME_5R,
+};
+
+static struct regmap *cs47l35_get_regmap(struct device *dev)
+{
+ struct cs47l35 *priv = dev_get_drvdata(dev);
+
+ return priv->core.madera->regmap;
+}
+
+static struct snd_soc_codec_driver soc_codec_dev_cs47l35 = {
+ .probe = cs47l35_codec_probe,
+ .remove = cs47l35_codec_remove,
+ .get_regmap = cs47l35_get_regmap,
+
+ .idle_bias_off = true,
+
+ .set_sysclk = madera_set_sysclk,
+ .set_pll = cs47l35_set_fll,
+
+ .component_driver = {
+ .controls = cs47l35_snd_controls,
+ .num_controls = ARRAY_SIZE(cs47l35_snd_controls),
+ .dapm_widgets = cs47l35_dapm_widgets,
+ .num_dapm_widgets = ARRAY_SIZE(cs47l35_dapm_widgets),
+ .dapm_routes = cs47l35_dapm_routes,
+ .num_dapm_routes = ARRAY_SIZE(cs47l35_dapm_routes),
+ },
+};
+
+static struct snd_compr_ops cs47l35_compr_ops = {
+ .open = cs47l35_open,
+ .free = wm_adsp_compr_free,
+ .set_params = wm_adsp_compr_set_params,
+ .get_caps = wm_adsp_compr_get_caps,
+ .trigger = wm_adsp_compr_trigger,
+ .pointer = wm_adsp_compr_pointer,
+ .copy = wm_adsp_compr_copy,
+};
+
+static struct snd_soc_platform_driver cs47l35_compr_platform = {
+ .compr_ops = &cs47l35_compr_ops,
+};
+
+static int cs47l35_probe(struct platform_device *pdev)
+{
+ struct madera *madera = dev_get_drvdata(pdev->dev.parent);
+ struct cs47l35 *cs47l35;
+ int i, ret;
+
+ BUILD_BUG_ON(ARRAY_SIZE(cs47l35_dai) > MADERA_MAX_DAI);
+
+ /* quick exit if Madera irqchip driver hasn't completed probe */
+ if (!madera->irq_dev) {
+ dev_dbg(&pdev->dev, "irqchip driver not ready\n");
+ return -EPROBE_DEFER;
+ }
+
+ cs47l35 = devm_kzalloc(&pdev->dev, sizeof(struct cs47l35), GFP_KERNEL);
+ if (!cs47l35)
+ return -ENOMEM;
+ platform_set_drvdata(pdev, cs47l35);
+
+ cs47l35->core.madera = madera;
+ cs47l35->core.dev = &pdev->dev;
+ cs47l35->core.num_inputs = 4;
+
+ ret = madera_core_init(&cs47l35->core);
+ if (ret)
+ return ret;
+
+ ret = madera_init_overheat(&cs47l35->core);
+ if (ret)
+ return ret;
+
+ ret = madera_request_irq(madera, MADERA_IRQ_DSP_IRQ1,
+ "ADSP2 Compressed IRQ", cs47l35_adsp2_irq,
+ cs47l35);
+ if (ret != 0) {
+ dev_err(&pdev->dev, "Failed to request DSP IRQ: %d\n", ret);
+ return ret;
+ }
+
+ for (i = 0; i < CS47L35_NUM_ADSP; i++) {
+ cs47l35->core.adsp[i].part = "cs47l35";
+ cs47l35->core.adsp[i].num = i + 1;
+ cs47l35->core.adsp[i].type = WMFW_ADSP2;
+ cs47l35->core.adsp[i].rev = 1;
+ cs47l35->core.adsp[i].dev = madera->dev;
+ cs47l35->core.adsp[i].regmap = madera->regmap_32bit;
+
+ cs47l35->core.adsp[i].base = wm_adsp2_control_bases[i];
+ cs47l35->core.adsp[i].mem = cs47l35_dsp_regions[i];
+ cs47l35->core.adsp[i].num_mems
+ = ARRAY_SIZE(cs47l35_dsp1_regions);
+
+ ret = wm_adsp2_init(&cs47l35->core.adsp[i]);
+ if (ret != 0) {
+ for (--i; i >= 0; --i)
+ wm_adsp2_remove(&cs47l35->core.adsp[i]);
+ goto error_core;
+ }
+ }
+
+ madera_init_fll(madera, 1, MADERA_FLL1_CONTROL_1 - 1, &cs47l35->fll);
+
+ for (i = 0; i < ARRAY_SIZE(cs47l35_dai); i++)
+ madera_init_dai(&cs47l35->core, i);
+
+ /* Latch volume update bits */
+ for (i = 0; i < ARRAY_SIZE(cs47l35_digital_vu); i++)
+ regmap_update_bits(madera->regmap, cs47l35_digital_vu[i],
+ CS47L35_DIG_VU, CS47L35_DIG_VU);
+
+ pm_runtime_enable(&pdev->dev);
+ pm_runtime_idle(&pdev->dev);
+
+ ret = snd_soc_register_platform(&pdev->dev, &cs47l35_compr_platform);
+ if (ret < 0) {
+ dev_err(&pdev->dev, "Failed to register platform: %d\n", ret);
+ goto error;
+ }
+
+ ret = snd_soc_register_codec(&pdev->dev, &soc_codec_dev_cs47l35,
+ cs47l35_dai, ARRAY_SIZE(cs47l35_dai));
+ if (ret < 0) {
+ dev_err(&pdev->dev,
+ "Failed to register codec: %d\n",
+ ret);
+ snd_soc_unregister_platform(&pdev->dev);
+ goto error;
+ }
+
+ return ret;
+
+error:
+ for (i = 0; i < CS47L35_NUM_ADSP; i++)
+ wm_adsp2_remove(&cs47l35->core.adsp[i]);
+error_core:
+ madera_core_destroy(&cs47l35->core);
+
+ return ret;
+}
+
+static int cs47l35_remove(struct platform_device *pdev)
+{
+ struct cs47l35 *cs47l35 = platform_get_drvdata(pdev);
+ int i;
+
+ snd_soc_unregister_platform(&pdev->dev);
+ snd_soc_unregister_codec(&pdev->dev);
+ pm_runtime_disable(&pdev->dev);
+
+ for (i = 0; i < CS47L35_NUM_ADSP; i++)
+ wm_adsp2_remove(&cs47l35->core.adsp[i]);
+
+ madera_free_irq(cs47l35->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l35);
+ madera_free_overheat(&cs47l35->core);
+ madera_core_destroy(&cs47l35->core);
+
+ return 0;
+}
+
+static struct platform_driver cs47l35_codec_driver = {
+ .driver = {
+ .name = "cs47l35-codec",
+ },
+ .probe = cs47l35_probe,
+ .remove = cs47l35_remove,
+};
+
+module_platform_driver(cs47l35_codec_driver);
+
+MODULE_DESCRIPTION("ASoC CS47L35 driver");
+MODULE_AUTHOR("Piotr Stankiewicz <[email protected]>");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:cs47l35-codec");
--
1.9.1
Regmap configuration tables for Cirrus Logic CS47L85 codecs.
Signed-off-by: Nariman Poushin <[email protected]>
Signed-off-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
---
drivers/mfd/Kconfig | 6 +
drivers/mfd/Makefile | 3 +
drivers/mfd/cs47l85-tables.c | 3169 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 3178 insertions(+)
create mode 100644 drivers/mfd/cs47l85-tables.c
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 5aa62f4..6618972 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -232,6 +232,12 @@ config MFD_CS47L35
help
Support for Cirrus Logic CS47L35 Smart Codec
+config MFD_CS47L85
+ bool "Cirrus Logic CS47L85"
+ depends on MFD_MADERA
+ help
+ Support for Cirrus Logic CS47L85 Smart Codec
+
config MFD_ASIC3
bool "Compaq ASIC3"
depends on GPIOLIB && ARM
diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
index c14a86d..9fdca9a 100644
--- a/drivers/mfd/Makefile
+++ b/drivers/mfd/Makefile
@@ -76,6 +76,9 @@ obj-$(CONFIG_MFD_MADERA) += madera-core.o
ifeq ($(CONFIG_MFD_CS47L35),y)
obj-$(CONFIG_MFD_MADERA) += cs47l35-tables.o
endif
+ifeq ($(CONFIG_MFD_CS47L85),y)
+obj-$(CONFIG_MFD_MADERA) += cs47l85-tables.o
+endif
obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o
obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
diff --git a/drivers/mfd/cs47l85-tables.c b/drivers/mfd/cs47l85-tables.c
new file mode 100644
index 0000000..92512d5
--- /dev/null
+++ b/drivers/mfd/cs47l85-tables.c
@@ -0,0 +1,3169 @@
+/*
+ * Regmap tables for CS47L85 codec
+ *
+ * Copyright 2015-2016 Cirrus Logic
+ *
+ * Author: Nariman Poushin <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/device.h>
+#include <linux/module.h>
+#include <linux/regmap.h>
+
+#include <linux/mfd/madera/core.h>
+#include <linux/mfd/madera/registers.h>
+
+#include "madera.h"
+
+static const struct reg_sequence cs47l85_reva_16_patch[] = {
+ { 0x80, 0x0003 },
+ { 0x213, 0x03E4 },
+ { 0x177, 0x0281 },
+ { 0x197, 0x0281 },
+ { 0x1B7, 0x0281 },
+ { 0x4B1, 0x010A },
+ { 0x4CF, 0x0933 },
+ { 0x36C, 0x011B },
+ { 0x4B8, 0x1120 },
+ { 0x4A0, 0x3280 },
+ { 0x4A1, 0x3200 },
+ { 0x4A2, 0x3200 },
+ { 0x441, 0xC050 },
+ { 0x4A4, 0x000B },
+ { 0x4A5, 0x000B },
+ { 0x4A6, 0x000B },
+ { 0x4E2, 0x1E1D },
+ { 0x4E3, 0x1E1D },
+ { 0x4E4, 0x1E1D },
+ { 0x293, 0x0080 },
+ { 0x17D, 0x0303 },
+ { 0x19D, 0x0303 },
+ { 0x27E, 0x0000 },
+ { 0x80, 0x0000 },
+ { 0x80, 0x0000 },
+ { 0x448, 0x003f },
+};
+
+static const struct reg_sequence cs47l85_revc_16_patch[] = {
+ { 0x27E, 0x0000 },
+ { 0x2C2, 0x0005 },
+ { 0x448, 0x003f },
+};
+
+static const struct reg_sequence cs47l85_reva_32_patch[] = {
+ { 0x3000, 0xC2253632 },
+ { 0x3002, 0xC2300001 },
+ { 0x3004, 0x8225100E },
+ { 0x3006, 0x22251803 },
+ { 0x3008, 0x82310B00 },
+ { 0x300A, 0xE231023B },
+ { 0x300C, 0x02313B01 },
+ { 0x300E, 0x62300000 },
+ { 0x3010, 0xE2314288 },
+ { 0x3012, 0x02310B00 },
+ { 0x3014, 0x02310B00 },
+ { 0x3016, 0x04050100 },
+ { 0x3018, 0x42310C02 },
+ { 0x301A, 0xE2310227 },
+ { 0x301C, 0x02313B01 },
+ { 0x301E, 0xE2314266 },
+ { 0x3020, 0xE2315294 },
+ { 0x3022, 0x02310B00 },
+ { 0x3024, 0x02310B00 },
+ { 0x3026, 0x02251100 },
+ { 0x3028, 0x02251401 },
+ { 0x302A, 0x02250200 },
+ { 0x302C, 0x02251001 },
+ { 0x302E, 0x02250200 },
+ { 0x3030, 0xE2310266 },
+ { 0x3032, 0x82314B15 },
+ { 0x3034, 0x82310B15 },
+ { 0x3036, 0xE2315294 },
+ { 0x3038, 0x02310B00 },
+ { 0x303A, 0x8225160D },
+ { 0x303C, 0x0225F501 },
+ { 0x303E, 0x8225061C },
+ { 0x3040, 0x02251000 },
+ { 0x3042, 0x04051101 },
+ { 0x3044, 0x02251800 },
+ { 0x3046, 0x42251203 },
+ { 0x3048, 0x02251101 },
+ { 0x304A, 0xC2251300 },
+ { 0x304C, 0x2225FB02 },
+ { 0x3050, 0xC2263632 },
+ { 0x3052, 0xC2300001 },
+ { 0x3054, 0x8226100E },
+ { 0x3056, 0x22261803 },
+ { 0x3058, 0x82310B02 },
+ { 0x305A, 0xE231023B },
+ { 0x305C, 0x02313B01 },
+ { 0x305E, 0x62300000 },
+ { 0x3060, 0xE2314288 },
+ { 0x3062, 0x02310B00 },
+ { 0x3064, 0x02310B00 },
+ { 0x3066, 0x04050000 },
+ { 0x3068, 0x42310C03 },
+ { 0x306A, 0xE2310227 },
+ { 0x306C, 0x02313B01 },
+ { 0x306E, 0xE2314266 },
+ { 0x3070, 0xE2315294 },
+ { 0x3072, 0x02310B00 },
+ { 0x3074, 0x02310B00 },
+ { 0x3076, 0x02261100 },
+ { 0x3078, 0x02261401 },
+ { 0x307A, 0x02260200 },
+ { 0x307C, 0x02261001 },
+ { 0x307E, 0x02260200 },
+ { 0x3080, 0xE2310266 },
+ { 0x3082, 0x82314B17 },
+ { 0x3084, 0x82310B17 },
+ { 0x3086, 0xE2315294 },
+ { 0x3088, 0x02310B00 },
+ { 0x308A, 0x8226160D },
+ { 0x308C, 0x0226F501 },
+ { 0x308E, 0x8226061C },
+ { 0x3090, 0x02261000 },
+ { 0x3092, 0x04051101 },
+ { 0x3094, 0x02261800 },
+ { 0x3096, 0x42261203 },
+ { 0x3098, 0x02261101 },
+ { 0x309A, 0xC2261300 },
+ { 0x309C, 0x2226FB02 },
+ { 0x309E, 0x0000F000 },
+ { 0x30A0, 0xC2273632 },
+ { 0x30A2, 0xC2400001 },
+ { 0x30A4, 0x8227100E },
+ { 0x30A6, 0x22271803 },
+ { 0x30A8, 0x82410B00 },
+ { 0x30AA, 0xE241023B },
+ { 0x30AC, 0x02413B01 },
+ { 0x30AE, 0x62400000 },
+ { 0x30B0, 0xE2414288 },
+ { 0x30B2, 0x02410B00 },
+ { 0x30B4, 0x02410B00 },
+ { 0x30B6, 0x04050300 },
+ { 0x30B8, 0x42410C02 },
+ { 0x30BA, 0xE2410227 },
+ { 0x30BC, 0x02413B01 },
+ { 0x30BE, 0xE2414266 },
+ { 0x30C0, 0xE2415294 },
+ { 0x30C2, 0x02410B00 },
+ { 0x30C4, 0x02410B00 },
+ { 0x30C6, 0x02271100 },
+ { 0x30C8, 0x02271401 },
+ { 0x30CA, 0x02270200 },
+ { 0x30CC, 0x02271001 },
+ { 0x30CE, 0x02270200 },
+ { 0x30D0, 0xE2410266 },
+ { 0x30D2, 0x82414B15 },
+ { 0x30D4, 0x82410B15 },
+ { 0x30D6, 0xE2415294 },
+ { 0x30D8, 0x02410B00 },
+ { 0x30DA, 0x8227160D },
+ { 0x30DC, 0x0227F501 },
+ { 0x30DE, 0x8227061C },
+ { 0x30E0, 0x02271000 },
+ { 0x30E2, 0x04051101 },
+ { 0x30E4, 0x02271800 },
+ { 0x30E6, 0x42271203 },
+ { 0x30E8, 0x02271101 },
+ { 0x30EA, 0xC2271300 },
+ { 0x30EC, 0x2227FB02 },
+ { 0x30F0, 0xC2283632 },
+ { 0x30F2, 0xC2400001 },
+ { 0x30F4, 0x8228100E },
+ { 0x30F6, 0x22281803 },
+ { 0x30F8, 0x82410B02 },
+ { 0x30FA, 0xE241023B },
+ { 0x30FC, 0x02413B01 },
+ { 0x30FE, 0x62400000 },
+ { 0x3100, 0xE2414288 },
+ { 0x3102, 0x02410B00 },
+ { 0x3104, 0x02410B00 },
+ { 0x3106, 0x04050200 },
+ { 0x3108, 0x42410C03 },
+ { 0x310A, 0xE2410227 },
+ { 0x310C, 0x02413B01 },
+ { 0x310E, 0xE2414266 },
+ { 0x3110, 0xE2415294 },
+ { 0x3112, 0x02410B00 },
+ { 0x3114, 0x02410B00 },
+ { 0x3116, 0x02281100 },
+ { 0x3118, 0x02281401 },
+ { 0x311A, 0x02280200 },
+ { 0x311C, 0x02281001 },
+ { 0x311E, 0x02280200 },
+ { 0x3120, 0xE2410266 },
+ { 0x3122, 0x82414B17 },
+ { 0x3124, 0x82410B17 },
+ { 0x3126, 0xE2415294 },
+ { 0x3128, 0x02410B00 },
+ { 0x312A, 0x8228160D },
+ { 0x312C, 0x0228F501 },
+ { 0x312E, 0x8228061C },
+ { 0x3130, 0x02281000 },
+ { 0x3132, 0x04051101 },
+ { 0x3134, 0x02281800 },
+ { 0x3136, 0x42281203 },
+ { 0x3138, 0x02281101 },
+ { 0x313A, 0xC2281300 },
+ { 0x313C, 0x2228FB02 },
+ { 0x3140, 0xC2293632 },
+ { 0x3142, 0xC2500001 },
+ { 0x3144, 0x8229100E },
+ { 0x3146, 0x22291803 },
+ { 0x3148, 0x82510B00 },
+ { 0x314A, 0xE251023B },
+ { 0x314C, 0x02513B01 },
+ { 0x314E, 0x62500000 },
+ { 0x3150, 0xE2514288 },
+ { 0x3152, 0x02510B00 },
+ { 0x3154, 0x02510B00 },
+ { 0x3156, 0x04050500 },
+ { 0x3158, 0x42510C02 },
+ { 0x315A, 0xE2510227 },
+ { 0x315C, 0x02513B01 },
+ { 0x315E, 0xE2514266 },
+ { 0x3160, 0xE2515294 },
+ { 0x3162, 0x02510B00 },
+ { 0x3164, 0x02510B00 },
+ { 0x3166, 0x02291100 },
+ { 0x3168, 0x02291401 },
+ { 0x316A, 0x02290200 },
+ { 0x316C, 0x02291001 },
+ { 0x316E, 0x02290200 },
+ { 0x3170, 0xE2510266 },
+ { 0x3172, 0x82514B15 },
+ { 0x3174, 0x82510B15 },
+ { 0x3176, 0xE2515294 },
+ { 0x3178, 0x02510B00 },
+ { 0x317A, 0x8229160D },
+ { 0x317C, 0x0229F501 },
+ { 0x317E, 0x8229061C },
+ { 0x3180, 0x02291000 },
+ { 0x3182, 0x04051101 },
+ { 0x3184, 0x02291800 },
+ { 0x3186, 0x42291203 },
+ { 0x3188, 0x02291101 },
+ { 0x318A, 0xC2291300 },
+ { 0x318C, 0x2229FB02 },
+ { 0x3190, 0xC22A3632 },
+ { 0x3192, 0xC2500001 },
+ { 0x3194, 0x822A100E },
+ { 0x3196, 0x222A1803 },
+ { 0x3198, 0x82510B02 },
+ { 0x319A, 0xE251023B },
+ { 0x319C, 0x02513B01 },
+ { 0x319E, 0x62500000 },
+ { 0x31A0, 0xE2514288 },
+ { 0x31A2, 0x02510B00 },
+ { 0x31A4, 0x02510B00 },
+ { 0x31A6, 0x04050400 },
+ { 0x31A8, 0x42510C03 },
+ { 0x31AA, 0xE2510227 },
+ { 0x31AC, 0x02513B01 },
+ { 0x31AE, 0xE2514266 },
+ { 0x31B0, 0xE2515294 },
+ { 0x31B2, 0x02510B00 },
+ { 0x31B4, 0x02510B00 },
+ { 0x31B6, 0x022A1100 },
+ { 0x31B8, 0x022A1401 },
+ { 0x31BA, 0x022A0200 },
+ { 0x31BC, 0x022A1001 },
+ { 0x31BE, 0x022A0200 },
+ { 0x31C0, 0xE2510266 },
+ { 0x31C2, 0x82514B17 },
+ { 0x31C4, 0x82510B17 },
+ { 0x31C6, 0xE2515294 },
+ { 0x31C8, 0x02510B00 },
+ { 0x31CA, 0x822A160D },
+ { 0x31CC, 0x022AF501 },
+ { 0x31CE, 0x822A061C },
+ { 0x31D0, 0x022A1000 },
+ { 0x31D2, 0x04051101 },
+ { 0x31D4, 0x022A1800 },
+ { 0x31D6, 0x422A1203 },
+ { 0x31D8, 0x022A1101 },
+ { 0x31DA, 0xC22A1300 },
+ { 0x31DC, 0x222AFB02 },
+};
+
+static const struct reg_sequence cs47l85_revc_32_patch[] = {
+ { 0x3380, 0xE4103066 },
+ { 0x3382, 0xE4103070 },
+ { 0x3384, 0xE4103078 },
+ { 0x3386, 0xE4103080 },
+ { 0x3388, 0xE410F080 },
+ { 0x338A, 0xE4143066 },
+ { 0x338C, 0xE4143070 },
+ { 0x338E, 0xE4143078 },
+ { 0x3390, 0xE4143080 },
+ { 0x3392, 0xE414F080 },
+ { 0x3394, 0xE4103078 },
+ { 0x3396, 0xE4103070 },
+ { 0x3398, 0xE4103066 },
+ { 0x339A, 0xE410F056 },
+ { 0x339C, 0xE4143078 },
+ { 0x339E, 0xE4143070 },
+ { 0x33A0, 0xE4143066 },
+ { 0x33A2, 0xE414F056 },
+};
+
+int cs47l85_patch(struct madera *madera)
+{
+ int ret = 0;
+ const struct reg_sequence *patch16;
+ const struct reg_sequence *patch32;
+ unsigned int num16, num32;
+
+ switch (madera->rev) {
+ case 0:
+ case 1:
+ patch16 = cs47l85_reva_16_patch;
+ num16 = ARRAY_SIZE(cs47l85_reva_16_patch);
+
+ patch32 = cs47l85_reva_32_patch;
+ num32 = ARRAY_SIZE(cs47l85_reva_32_patch);
+ break;
+ default:
+ patch16 = cs47l85_revc_16_patch;
+ num16 = ARRAY_SIZE(cs47l85_revc_16_patch);
+
+ patch32 = cs47l85_revc_32_patch;
+ num32 = ARRAY_SIZE(cs47l85_revc_32_patch);
+ break;
+ }
+
+ ret = regmap_register_patch(madera->regmap, patch16, num16);
+ if (ret < 0) {
+ dev_err(madera->dev,
+ "Error in applying 16-bit patch: %d\n", ret);
+ return ret;
+ }
+
+ ret = regmap_register_patch(madera->regmap_32bit, patch32, num32);
+ if (ret < 0) {
+ dev_err(madera->dev,
+ "Error in applying 32-bit patch: %d\n", ret);
+ return ret;
+ }
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(cs47l85_patch);
+
+static const struct reg_default cs47l85_reg_default[] = {
+ { 0x00000020, 0x0000 }, /* R32 (0x20) - Tone Generator 1 */
+ { 0x00000021, 0x1000 }, /* R33 (0x21) - Tone Generator 2 */
+ { 0x00000022, 0x0000 }, /* R34 (0x22) - Tone Generator 3 */
+ { 0x00000023, 0x1000 }, /* R35 (0x23) - Tone Generator 4 */
+ { 0x00000024, 0x0000 }, /* R36 (0x24) - Tone Generator 5 */
+ { 0x00000030, 0x0000 }, /* R48 (0x30) - PWM Drive 1 */
+ { 0x00000031, 0x0100 }, /* R49 (0x31) - PWM Drive 2 */
+ { 0x00000032, 0x0100 }, /* R50 (0x32) - PWM Drive 3 */
+ { 0x00000061, 0x01ff }, /* R97 (0x61) - Sample Rate Sequence Select 1 */
+ { 0x00000062, 0x01ff }, /* R98 (0x62) - Sample Rate Sequence Select 2 */
+ { 0x00000063, 0x01ff }, /* R99 (0x63) - Sample Rate Sequence Select 3 */
+ { 0x00000064, 0x01ff }, /* R100 (0x64) - Sample Rate Sequence Select 4 */
+ { 0x00000066, 0x01ff }, /* R102 (0x66) - Always On Triggers Sequence Select 1*/
+ { 0x00000067, 0x01ff }, /* R103 (0x67) - Always On Triggers Sequence Select 2*/
+ { 0x00000090, 0x0000 }, /* R144 (0x90) - Haptics Control 1 */
+ { 0x00000091, 0x7fff }, /* R145 (0x91) - Haptics Control 2 */
+ { 0x00000092, 0x0000 }, /* R146 (0x92) - Haptics phase 1 intensity */
+ { 0x00000093, 0x0000 }, /* R147 (0x93) - Haptics phase 1 duration */
+ { 0x00000094, 0x0000 }, /* R148 (0x94) - Haptics phase 2 intensity */
+ { 0x00000095, 0x0000 }, /* R149 (0x95) - Haptics phase 2 duration */
+ { 0x00000096, 0x0000 }, /* R150 (0x96) - Haptics phase 3 intensity */
+ { 0x00000097, 0x0000 }, /* R151 (0x97) - Haptics phase 3 duration */
+ { 0x000000a0, 0x0000 }, /* R160 (0xa0) - Comfort Noise Generator */
+ { 0x00000100, 0x0002 }, /* R256 (0x100) - Clock 32k 1 */
+ { 0x00000101, 0x0404 }, /* R257 (0x101) - System Clock 1 */
+ { 0x00000102, 0x0011 }, /* R258 (0x102) - Sample rate 1 */
+ { 0x00000103, 0x0011 }, /* R259 (0x103) - Sample rate 2 */
+ { 0x00000104, 0x0011 }, /* R260 (0x104) - Sample rate 3 */
+ { 0x00000112, 0x0305 }, /* R274 (0x112) - Async clock 1 */
+ { 0x00000113, 0x0011 }, /* R275 (0x113) - Async sample rate 1 */
+ { 0x00000114, 0x0011 }, /* R276 (0x114) - Async sample rate 2 */
+ { 0x00000120, 0x0305 }, /* R288 (0x120) - DSP Clock 1 */
+ { 0x00000122, 0x0000 }, /* R290 (0x122) - DSP Clock 2 */
+ { 0x00000149, 0x0000 }, /* R329 (0x149) - Output system clock */
+ { 0x0000014a, 0x0000 }, /* R330 (0x14a) - Output async clock */
+ { 0x00000152, 0x0000 }, /* R338 (0x152) - Rate Estimator 1 */
+ { 0x00000153, 0x0000 }, /* R339 (0x153) - Rate Estimator 2 */
+ { 0x00000154, 0x0000 }, /* R340 (0x154) - Rate Estimator 3 */
+ { 0x00000155, 0x0000 }, /* R341 (0x155) - Rate Estimator 4 */
+ { 0x00000156, 0x0000 }, /* R342 (0x156) - Rate Estimator 5 */
+ { 0x00000171, 0x0002 }, /* R369 (0x171) - FLL1 Control 1 */
+ { 0x00000172, 0x0008 }, /* R370 (0x172) - FLL1 Control 2 */
+ { 0x00000173, 0x0018 }, /* R371 (0x173) - FLL1 Control 3 */
+ { 0x00000174, 0x007d }, /* R372 (0x174) - FLL1 Control 4 */
+ { 0x00000175, 0x0000 }, /* R373 (0x175) - FLL1 Control 5 */
+ { 0x00000176, 0x0000 }, /* R374 (0x176) - FLL1 Control 6 */
+ { 0x00000177, 0x0281 }, /* R375 (0x177) - FLL1 Loop Filter Test 1 */
+ { 0x00000179, 0x0000 }, /* R377 (0x179) - FLL1 Control 7 */
+ { 0x00000181, 0x0000 }, /* R385 (0x181) - FLL1 Synchroniser 1 */
+ { 0x00000182, 0x0000 }, /* R386 (0x182) - FLL1 Synchroniser 2 */
+ { 0x00000183, 0x0000 }, /* R387 (0x183) - FLL1 Synchroniser 3 */
+ { 0x00000184, 0x0000 }, /* R388 (0x184) - FLL1 Synchroniser 4 */
+ { 0x00000185, 0x0000 }, /* R389 (0x185) - FLL1 Synchroniser 5 */
+ { 0x00000186, 0x0000 }, /* R390 (0x186) - FLL1 Synchroniser 6 */
+ { 0x00000187, 0x0001 }, /* R391 (0x187) - FLL1 Synchroniser 7 */
+ { 0x00000189, 0x0000 }, /* R393 (0x189) - FLL1 Spread Spectrum */
+ { 0x0000018a, 0x000c }, /* R394 (0x18a) - FLL1 GPIO Clock */
+ { 0x00000191, 0x0002 }, /* R401 (0x191) - FLL2 Control 1 */
+ { 0x00000192, 0x0008 }, /* R402 (0x192) - FLL2 Control 2 */
+ { 0x00000193, 0x0018 }, /* R403 (0x193) - FLL2 Control 3 */
+ { 0x00000194, 0x007d }, /* R404 (0x194) - FLL2 Control 4 */
+ { 0x00000195, 0x0000 }, /* R405 (0x195) - FLL2 Control 5 */
+ { 0x00000196, 0x0000 }, /* R406 (0x196) - FLL2 Control 6 */
+ { 0x00000197, 0x0281 }, /* R407 (0x197) - FLL2 Loop Filter Test 1 */
+ { 0x00000199, 0x0000 }, /* R409 (0x199) - FLL2 Control 7 */
+ { 0x000001a1, 0x0000 }, /* R417 (0x1a1) - FLL2 Synchroniser 1 */
+ { 0x000001a2, 0x0000 }, /* R418 (0x1a2) - FLL2 Synchroniser 2 */
+ { 0x000001a3, 0x0000 }, /* R419 (0x1a3) - FLL2 Synchroniser 3 */
+ { 0x000001a4, 0x0000 }, /* R420 (0x1a4) - FLL2 Synchroniser 4 */
+ { 0x000001a5, 0x0000 }, /* R421 (0x1a5) - FLL2 Synchroniser 5 */
+ { 0x000001a6, 0x0000 }, /* R422 (0x1a6) - FLL2 Synchroniser 6 */
+ { 0x000001a7, 0x0001 }, /* R423 (0x1a7) - FLL2 Synchroniser 7 */
+ { 0x000001a9, 0x0000 }, /* R425 (0x1a9) - FLL2 Spread Spectrum */
+ { 0x000001aa, 0x000c }, /* R426 (0x1aa) - FLL2 GPIO Clock */
+ { 0x000001b1, 0x0002 }, /* R433 (0x1b1) - FLL3 Control 1 */
+ { 0x000001b2, 0x0008 }, /* R434 (0x1b2) - FLL3 Control 2 */
+ { 0x000001b3, 0x0018 }, /* R435 (0x1b3) - FLL3 Control 3 */
+ { 0x000001b4, 0x007d }, /* R436 (0x1b4) - FLL3 Control 4 */
+ { 0x000001b5, 0x0000 }, /* R437 (0x1b5) - FLL3 Control 5 */
+ { 0x000001b6, 0x0000 }, /* R438 (0x1b6) - FLL3 Control 6 */
+ { 0x000001b7, 0x0281 }, /* R439 (0x1b7) - FLL3 Loop Filter Test 1 */
+ { 0x000001b9, 0x0000 }, /* R441 (0x1b9) - FLL3 Control 7 */
+ { 0x000001c1, 0x0000 }, /* R449 (0x1c1) - FLL3 Synchroniser 1 */
+ { 0x000001c2, 0x0000 }, /* R450 (0x1c2) - FLL3 Synchroniser 2 */
+ { 0x000001c3, 0x0000 }, /* R451 (0x1c3) - FLL3 Synchroniser 3 */
+ { 0x000001c4, 0x0000 }, /* R452 (0x1c4) - FLL3 Synchroniser 4 */
+ { 0x000001c5, 0x0000 }, /* R453 (0x1c5) - FLL3 Synchroniser 5 */
+ { 0x000001c6, 0x0000 }, /* R454 (0x1c6) - FLL3 Synchroniser 6 */
+ { 0x000001c7, 0x0001 }, /* R455 (0x1c7) - FLL3 Synchroniser 7 */
+ { 0x000001c9, 0x0000 }, /* R457 (0x1c9) - FLL3 Spread Spectrum */
+ { 0x000001ca, 0x000C }, /* R458 (0x1ca) - FLL3 GPIO Clock */
+ { 0x00000200, 0x0006 }, /* R512 (0x200) - Mic Charge Pump 1 */
+ { 0x0000020b, 0x0400 }, /* R523 (0x20B) - HP Charge Pump 8 */
+ { 0x00000210, 0x0184 }, /* R528 (0x210) - LDO1 Control 1 */
+ { 0x00000213, 0x03e4 }, /* R531 (0x213) - LDO2 Control 1 */
+ { 0x00000218, 0x00e6 }, /* R536 (0x218) - Mic Bias Ctrl 1 */
+ { 0x00000219, 0x00e6 }, /* R537 (0x219) - Mic Bias Ctrl 2 */
+ { 0x0000021a, 0x00e6 }, /* R538 (0x21a) - Mic Bias Ctrl 3 */
+ { 0x0000021b, 0x00e6 }, /* R539 (0x21b) - Mic Bias Ctrl 4 */
+ { 0x0000027e, 0x0000 }, /* R638 (0x27e) - EDRE HP stereo control */
+ { 0x00000293, 0x0000 }, /* R659 (0x293) - Accessory Detect Mode 1 */
+ { 0x0000029b, 0x0000 }, /* R667 (0x29b) - Headphone Detect 1 */
+ { 0x000002a3, 0x1102 }, /* R675 (0x2a3) - Mic Detect Control 1 */
+ { 0x000002a4, 0x009f }, /* R676 (0x2a4) - Mic Detect Control 2 */
+ { 0x000002a6, 0x3737 }, /* R678 (0x2a6) - Mic Detect Level 1 */
+ { 0x000002a7, 0x2c37 }, /* R679 (0x2a7) - Mic Detect Level 2 */
+ { 0x000002a8, 0x1422 }, /* R680 (0x2a8) - Mic Detect Level 3 */
+ { 0x000002a9, 0x030a }, /* R681 (0x2a9) - Mic Detect Level 4 */
+ { 0x000002c6, 0x0010 }, /* R710 (0x2c6) - Mic Clamp control */
+ { 0x000002c8, 0x0000 }, /* R712 (0x2c8) - GP switch 1 */
+ { 0x000002d3, 0x0000 }, /* R723 (0x2d3) - Jack detect analogue */
+ { 0x00000300, 0x0000 }, /* R768 (0x300) - Input Enables */
+ { 0x00000308, 0x0000 }, /* R776 (0x308) - Input Rate */
+ { 0x00000309, 0x0022 }, /* R777 (0x309) - Input Volume Ramp */
+ { 0x0000030c, 0x0002 }, /* R780 (0x30c) - HPF Control */
+ { 0x00000310, 0x0080 }, /* R784 (0x310) - IN1L Control */
+ { 0x00000311, 0x0180 }, /* R785 (0x311) - ADC Digital Volume 1L */
+ { 0x00000312, 0x0500 }, /* R786 (0x312) - DMIC1L Control */
+ { 0x00000314, 0x0080 }, /* R788 (0x314) - IN1R Control */
+ { 0x00000315, 0x0180 }, /* R789 (0x315) - ADC Digital Volume 1R */
+ { 0x00000316, 0x0000 }, /* R790 (0x316) - DMIC1R Control */
+ { 0x00000318, 0x0080 }, /* R792 (0x318) - IN2L Control */
+ { 0x00000319, 0x0180 }, /* R793 (0x319) - ADC Digital Volume 2L */
+ { 0x0000031a, 0x0500 }, /* R794 (0x31a) - DMIC2L Control */
+ { 0x0000031c, 0x0080 }, /* R796 (0x31c) - IN2R Control */
+ { 0x0000031d, 0x0180 }, /* R797 (0x31d) - ADC Digital Volume 2R */
+ { 0x0000031e, 0x0000 }, /* R798 (0x31e) - DMIC2R Control */
+ { 0x00000320, 0x0080 }, /* R800 (0x320) - IN3L Control */
+ { 0x00000321, 0x0180 }, /* R801 (0x321) - ADC Digital Volume 3L */
+ { 0x00000322, 0x0500 }, /* R802 (0x322) - DMIC3L Control */
+ { 0x00000324, 0x0080 }, /* R804 (0x324) - IN3R Control */
+ { 0x00000325, 0x0180 }, /* R805 (0x325) - ADC Digital Volume 3R */
+ { 0x00000326, 0x0000 }, /* R806 (0x326) - DMIC3R Control */
+ { 0x00000328, 0x0000 }, /* R808 (0x328) - IN4 Control */
+ { 0x00000329, 0x0180 }, /* R809 (0x329) - ADC Digital Volume 4L */
+ { 0x0000032a, 0x0500 }, /* R810 (0x32a) - DMIC4L Control */
+ { 0x0000032c, 0x0000 }, /* R812 (0x32c) - IN4R Control */
+ { 0x0000032d, 0x0180 }, /* R813 (0x32d) - ADC Digital Volume 4R */
+ { 0x0000032e, 0x0000 }, /* R814 (0x32e) - DMIC4R Control */
+ { 0x00000330, 0x0000 }, /* R816 (0x330) - IN5L Control */
+ { 0x00000331, 0x0180 }, /* R817 (0x331) - ADC Digital Volume 5L */
+ { 0x00000332, 0x0500 }, /* R818 (0x332) - DMIC5L Control */
+ { 0x00000334, 0x0000 }, /* R820 (0x334) - IN5R Control */
+ { 0x00000335, 0x0180 }, /* R821 (0x335) - ADC Digital Volume 5R */
+ { 0x00000336, 0x0000 }, /* R822 (0x336) - DMIC5R Control */
+ { 0x00000338, 0x0000 }, /* R824 (0x338) - IN6L Control */
+ { 0x00000339, 0x0180 }, /* R825 (0x339) - ADC Digital Volume 6L */
+ { 0x0000033a, 0x0500 }, /* R826 (0x33a) - DMIC6L Control */
+ { 0x0000033c, 0x0000 }, /* R828 (0x33c) - IN6R Control */
+ { 0x0000033d, 0x0180 }, /* R829 (0x33d) - ADC Digital Volume 6R */
+ { 0x0000033e, 0x0000 }, /* R830 (0x33e) - DMIC6R Control */
+ { 0x00000400, 0x0000 }, /* R1024 (0x400) - Output Enables 1 */
+ { 0x00000408, 0x0000 }, /* R1032 (0x408) - Output Rate 1 */
+ { 0x00000409, 0x0022 }, /* R1033 (0x409) - Output Volume Ramp */
+ { 0x00000410, 0x0080 }, /* R1040 (0x410) - Output Path Config 1L */
+ { 0x00000411, 0x0180 }, /* R1041 (0x411) - DAC Digital Volume 1L */
+ { 0x00000413, 0x0001 }, /* R1043 (0x413) - Noise Gate Select 1L */
+ { 0x00000414, 0x0080 }, /* R1044 (0x414) - Output Path Config 1R */
+ { 0x00000415, 0x0180 }, /* R1045 (0x415) - DAC Digital Volume 1R */
+ { 0x00000417, 0x0002 }, /* R1047 (0x417) - Noise Gate Select 1R */
+ { 0x00000418, 0x0080 }, /* R1048 (0x418) - Output Path Config 2L */
+ { 0x00000419, 0x0180 }, /* R1049 (0x419) - DAC Digital Volume 2L */
+ { 0x0000041b, 0x0004 }, /* R1051 (0x41b) - Noise Gate Select 2L */
+ { 0x0000041c, 0x0080 }, /* R1052 (0x41c) - Output Path Config 2R */
+ { 0x0000041d, 0x0180 }, /* R1053 (0x41d) - DAC Digital Volume 2R */
+ { 0x0000041f, 0x0008 }, /* R1055 (0x41f) - Noise Gate Select 2R */
+ { 0x00000420, 0x0080 }, /* R1056 (0x420) - Output Path Config 3L */
+ { 0x00000421, 0x0180 }, /* R1057 (0x421) - DAC Digital Volume 3L */
+ { 0x00000423, 0x0010 }, /* R1059 (0x423) - Noise Gate Select 3L */
+ { 0x00000424, 0x0080 }, /* R1060 (0x424) - Output Path Config 3R */
+ { 0x00000425, 0x0180 }, /* R1061 (0x425) - DAC Digital Volume 3R */
+ { 0x00000427, 0x0020 }, /* R1063 (0x427) - Noise Gate Select 3R */
+ { 0x00000428, 0x0000 }, /* R1064 (0x428) - Output Path Config 4L */
+ { 0x00000429, 0x0180 }, /* R1065 (0x429) - DAC Digital Volume 4L */
+ { 0x0000042b, 0x0040 }, /* R1067 (0x42b) - Noise Gate Select 4L */
+ { 0x0000042c, 0x0000 }, /* R1068 (0x42c) - Output Path Config 4R */
+ { 0x0000042d, 0x0180 }, /* R1069 (0x42d) - DAC Digital Volume 4R */
+ { 0x0000042f, 0x0080 }, /* R1071 (0x42f) - Noise Gate Select 4R */
+ { 0x00000430, 0x0000 }, /* R1072 (0x430) - Output Path Config 5L */
+ { 0x00000431, 0x0180 }, /* R1073 (0x431) - DAC Digital Volume 5L */
+ { 0x00000433, 0x0100 }, /* R1075 (0x433) - Noise Gate Select 5L */
+ { 0x00000434, 0x0000 }, /* R1076 (0x434) - Output Path Config 5R */
+ { 0x00000435, 0x0180 }, /* R1077 (0x435) - DAC Digital Volume 5R */
+ { 0x00000437, 0x0200 }, /* R1079 (0x437) - Noise Gate Select 5R */
+ { 0x00000438, 0x0000 }, /* R1080 (0x438) - Output Path Config 6L */
+ { 0x00000439, 0x0180 }, /* R1081 (0x439) - DAC Digital Volume 6L */
+ { 0x0000043b, 0x0400 }, /* R1083 (0x43b) - Noise Gate Select 6L */
+ { 0x0000043c, 0x0000 }, /* R1084 (0x43c) - Output Path Config 6R */
+ { 0x0000043d, 0x0180 }, /* R1085 (0x43d) - DAC Digital Volume 6R */
+ { 0x0000043f, 0x0800 }, /* R1087 (0x43f) - Noise Gate Select 6R */
+ { 0x00000440, 0x003f }, /* R1088 (0x440) - DRE Enable */
+ { 0x00000448, 0x003f }, /* R1096 (0x448) - EDRE Enable */
+ { 0x0000044a, 0x0000 }, /* R1098 (0x44a) - EDRE Manual */
+ { 0x00000450, 0x0000 }, /* R1104 (0x450) - DAC AEC Control 1 */
+ { 0x00000451, 0x0000 }, /* R1105 (0x451) - DAC AEC Control 2 */
+ { 0x00000458, 0x0000 }, /* R1112 (0x458) - Noise Gate Control */
+ { 0x00000490, 0x0069 }, /* R1168 (0x490) - PDM SPK1 CTRL 1 */
+ { 0x00000491, 0x0000 }, /* R1169 (0x491) - PDM SPK1 CTRL 2 */
+ { 0x00000492, 0x0069 }, /* R1170 (0x492) - PDM SPK2 CTRL 1 */
+ { 0x00000493, 0x0000 }, /* R1171 (0x493) - PDM SPK2 CTRL 2 */
+ { 0x000004a0, 0x3210 }, /* R1184 (0x4a0) - HP1 Short Circuit Ctrl */
+ { 0x000004a1, 0x3200 }, /* R1185 (0x4a1) - HP2 Short Circuit Ctrl */
+ { 0x000004a2, 0x3200 }, /* R1186 (0x4a2) - HP3 Short Circuit Ctrl */
+ { 0x000004a8, 0x7020 }, /* R1192 (0x4a8) - HP Test Ctrl 5 */
+ { 0x000004a9, 0x7020 }, /* R1193 (0x4a9) - HP Test Ctrl 6 */
+ { 0x00000500, 0x000c }, /* R1280 (0x500) - AIF1 BCLK Ctrl */
+ { 0x00000501, 0x0000 }, /* R1281 (0x501) - AIF1 Tx Pin Ctrl */
+ { 0x00000502, 0x0000 }, /* R1282 (0x502) - AIF1 Rx Pin Ctrl */
+ { 0x00000503, 0x0000 }, /* R1283 (0x503) - AIF1 Rate Ctrl */
+ { 0x00000504, 0x0000 }, /* R1284 (0x504) - AIF1 Format */
+ { 0x00000506, 0x0040 }, /* R1286 (0x506) - AIF1 Rx BCLK Rate */
+ { 0x00000507, 0x1818 }, /* R1287 (0x507) - AIF1 Frame Ctrl 1 */
+ { 0x00000508, 0x1818 }, /* R1288 (0x508) - AIF1 Frame Ctrl 2 */
+ { 0x00000509, 0x0000 }, /* R1289 (0x509) - AIF1 Frame Ctrl 3 */
+ { 0x0000050a, 0x0001 }, /* R1290 (0x50a) - AIF1 Frame Ctrl 4 */
+ { 0x0000050b, 0x0002 }, /* R1291 (0x50b) - AIF1 Frame Ctrl 5 */
+ { 0x0000050c, 0x0003 }, /* R1292 (0x50c) - AIF1 Frame Ctrl 6 */
+ { 0x0000050d, 0x0004 }, /* R1293 (0x50d) - AIF1 Frame Ctrl 7 */
+ { 0x0000050e, 0x0005 }, /* R1294 (0x50e) - AIF1 Frame Ctrl 8 */
+ { 0x0000050f, 0x0006 }, /* R1295 (0x50f) - AIF1 Frame Ctrl 9 */
+ { 0x00000510, 0x0007 }, /* R1296 (0x510) - AIF1 Frame Ctrl 10 */
+ { 0x00000511, 0x0000 }, /* R1297 (0x511) - AIF1 Frame Ctrl 11 */
+ { 0x00000512, 0x0001 }, /* R1298 (0x512) - AIF1 Frame Ctrl 12 */
+ { 0x00000513, 0x0002 }, /* R1299 (0x513) - AIF1 Frame Ctrl 13 */
+ { 0x00000514, 0x0003 }, /* R1300 (0x514) - AIF1 Frame Ctrl 14 */
+ { 0x00000515, 0x0004 }, /* R1301 (0x515) - AIF1 Frame Ctrl 15 */
+ { 0x00000516, 0x0005 }, /* R1302 (0x516) - AIF1 Frame Ctrl 16 */
+ { 0x00000517, 0x0006 }, /* R1303 (0x517) - AIF1 Frame Ctrl 17 */
+ { 0x00000518, 0x0007 }, /* R1304 (0x518) - AIF1 Frame Ctrl 18 */
+ { 0x00000519, 0x0000 }, /* R1305 (0x519) - AIF1 Tx Enables */
+ { 0x0000051a, 0x0000 }, /* R1306 (0x51a) - AIF1 Rx Enables */
+ { 0x00000540, 0x000c }, /* R1344 (0x540) - AIF2 BCLK Ctrl */
+ { 0x00000541, 0x0000 }, /* R1345 (0x541) - AIF2 Tx Pin Ctrl */
+ { 0x00000542, 0x0000 }, /* R1346 (0x542) - AIF2 Rx Pin Ctrl */
+ { 0x00000543, 0x0000 }, /* R1347 (0x543) - AIF2 Rate Ctrl */
+ { 0x00000544, 0x0000 }, /* R1348 (0x544) - AIF2 Format */
+ { 0x00000546, 0x0040 }, /* R1350 (0x546) - AIF2 Rx BCLK Rate */
+ { 0x00000547, 0x1818 }, /* R1351 (0x547) - AIF2 Frame Ctrl 1 */
+ { 0x00000548, 0x1818 }, /* R1352 (0x548) - AIF2 Frame Ctrl 2 */
+ { 0x00000549, 0x0000 }, /* R1353 (0x549) - AIF2 Frame Ctrl 3 */
+ { 0x0000054a, 0x0001 }, /* R1354 (0x54a) - AIF2 Frame Ctrl 4 */
+ { 0x0000054b, 0x0002 }, /* R1355 (0x54b) - AIF2 Frame Ctrl 5 */
+ { 0x0000054c, 0x0003 }, /* R1356 (0x54c) - AIF2 Frame Ctrl 6 */
+ { 0x0000054d, 0x0004 }, /* R1357 (0x54d) - AIF2 Frame Ctrl 7 */
+ { 0x0000054e, 0x0005 }, /* R1358 (0x54e) - AIF2 Frame Ctrl 8 */
+ { 0x0000054f, 0x0006 }, /* R1359 (0x54f) - AIF2 Frame Ctrl 9 */
+ { 0x00000550, 0x0007 }, /* R1360 (0x550) - AIF2 Frame Ctrl 10 */
+ { 0x00000551, 0x0000 }, /* R1361 (0x551) - AIF2 Frame Ctrl 11 */
+ { 0x00000552, 0x0001 }, /* R1362 (0x552) - AIF2 Frame Ctrl 12 */
+ { 0x00000553, 0x0002 }, /* R1363 (0x553) - AIF2 Frame Ctrl 13 */
+ { 0x00000554, 0x0003 }, /* R1364 (0x554) - AIF2 Frame Ctrl 14 */
+ { 0x00000555, 0x0004 }, /* R1365 (0x555) - AIF2 Frame Ctrl 15 */
+ { 0x00000556, 0x0005 }, /* R1366 (0x556) - AIF2 Frame Ctrl 16 */
+ { 0x00000557, 0x0006 }, /* R1367 (0x557) - AIF2 Frame Ctrl 17 */
+ { 0x00000558, 0x0007 }, /* R1368 (0x558) - AIF2 Frame Ctrl 18 */
+ { 0x00000559, 0x0000 }, /* R1369 (0x559) - AIF2 Tx Enables */
+ { 0x0000055a, 0x0000 }, /* R1370 (0x55a) - AIF2 Rx Enables */
+ { 0x00000580, 0x000c }, /* R1408 (0x580) - AIF3 BCLK Ctrl */
+ { 0x00000581, 0x0000 }, /* R1409 (0x581) - AIF3 Tx Pin Ctrl */
+ { 0x00000582, 0x0000 }, /* R1410 (0x582) - AIF3 Rx Pin Ctrl */
+ { 0x00000583, 0x0000 }, /* R1411 (0x583) - AIF3 Rate Ctrl */
+ { 0x00000584, 0x0000 }, /* R1412 (0x584) - AIF3 Format */
+ { 0x00000586, 0x0040 }, /* R1414 (0x586) - AIF3 Rx BCLK Rate */
+ { 0x00000587, 0x1818 }, /* R1415 (0x587) - AIF3 Frame Ctrl 1 */
+ { 0x00000588, 0x1818 }, /* R1416 (0x588) - AIF3 Frame Ctrl 2 */
+ { 0x00000589, 0x0000 }, /* R1417 (0x589) - AIF3 Frame Ctrl 3 */
+ { 0x0000058a, 0x0001 }, /* R1418 (0x58a) - AIF3 Frame Ctrl 4 */
+ { 0x00000591, 0x0000 }, /* R1425 (0x591) - AIF3 Frame Ctrl 11 */
+ { 0x00000592, 0x0001 }, /* R1426 (0x592) - AIF3 Frame Ctrl 12 */
+ { 0x00000599, 0x0000 }, /* R1433 (0x599) - AIF3 Tx Enables */
+ { 0x0000059a, 0x0000 }, /* R1434 (0x59a) - AIF3 Rx Enables */
+ { 0x000005a0, 0x000c }, /* R1440 (0x5a0) - AIF4 BCLK Ctrl */
+ { 0x000005a1, 0x0000 }, /* R1441 (0x5a1) - AIF4 Tx Pin Ctrl */
+ { 0x000005a2, 0x0000 }, /* R1442 (0x5a2) - AIF4 Rx Pin Ctrl */
+ { 0x000005a3, 0x0000 }, /* R1443 (0x5a3) - AIF4 Rate Ctrl */
+ { 0x000005a4, 0x0000 }, /* R1444 (0x5a4) - AIF4 Format */
+ { 0x000005a6, 0x0040 }, /* R1446 (0x5a6) - AIF4 Rx BCLK Rate */
+ { 0x000005a7, 0x1818 }, /* R1447 (0x5a7) - AIF4 Frame Ctrl 1 */
+ { 0x000005a8, 0x1818 }, /* R1448 (0x5a8) - AIF4 Frame Ctrl 2 */
+ { 0x000005a9, 0x0000 }, /* R1449 (0x5a9) - AIF4 Frame Ctrl 3 */
+ { 0x000005aa, 0x0001 }, /* R1450 (0x5aa) - AIF4 Frame Ctrl 4 */
+ { 0x000005b1, 0x0000 }, /* R1457 (0x5b1) - AIF4 Frame Ctrl 11 */
+ { 0x000005b2, 0x0001 }, /* R1458 (0x5b2) - AIF4 Frame Ctrl 12 */
+ { 0x000005b9, 0x0000 }, /* R1465 (0x5b9) - AIF4 Tx Enables */
+ { 0x000005ba, 0x0000 }, /* R1466 (0x5ba) - AIF4 Rx Enables */
+ { 0x000005c2, 0x0000 }, /* R1474 (0x5c2) - SPD1 TX Control */
+ { 0x000005e3, 0x0000 }, /* R1507 (0x5e3) - SLIMbus Framer Ref Gear */
+ { 0x000005e5, 0x0000 }, /* R1509 (0x5e5) - SLIMbus Rates 1 */
+ { 0x000005e6, 0x0000 }, /* R1510 (0x5e6) - SLIMbus Rates 2 */
+ { 0x000005e7, 0x0000 }, /* R1511 (0x5e7) - SLIMbus Rates 3 */
+ { 0x000005e8, 0x0000 }, /* R1512 (0x5e8) - SLIMbus Rates 4 */
+ { 0x000005e9, 0x0000 }, /* R1513 (0x5e9) - SLIMbus Rates 5 */
+ { 0x000005ea, 0x0000 }, /* R1514 (0x5ea) - SLIMbus Rates 6 */
+ { 0x000005eb, 0x0000 }, /* R1515 (0x5eb) - SLIMbus Rates 7 */
+ { 0x000005ec, 0x0000 }, /* R1516 (0x5ec) - SLIMbus Rates 8 */
+ { 0x000005f5, 0x0000 }, /* R1525 (0x5f5) - SLIMbus RX Channel Enable */
+ { 0x000005f6, 0x0000 }, /* R1526 (0x5F6) - SLIMbus TX Channel Enable */
+ { 0x00000640, 0x0000 }, /* R1600 (0x640) - PWM1MIX Input 1 Source */
+ { 0x00000641, 0x0080 }, /* R1601 (0x641) - PWM1MIX Input 1 Volume */
+ { 0x00000642, 0x0000 }, /* R1602 (0x642) - PWM1MIX Input 2 Source */
+ { 0x00000643, 0x0080 }, /* R1603 (0x643) - PWM1MIX Input 2 Volume */
+ { 0x00000644, 0x0000 }, /* R1604 (0x644) - PWM1MIX Input 3 Source */
+ { 0x00000645, 0x0080 }, /* R1605 (0x645) - PWM1MIX Input 3 Volume */
+ { 0x00000646, 0x0000 }, /* R1606 (0x646) - PWM1MIX Input 4 Source */
+ { 0x00000647, 0x0080 }, /* R1607 (0x647) - PWM1MIX Input 4 Volume */
+ { 0x00000648, 0x0000 }, /* R1608 (0x648) - PWM2MIX Input 1 Source */
+ { 0x00000649, 0x0080 }, /* R1609 (0x649) - PWM2MIX Input 1 Volume */
+ { 0x0000064a, 0x0000 }, /* R1610 (0x64a) - PWM2MIX Input 2 Source */
+ { 0x0000064b, 0x0080 }, /* R1611 (0x64b) - PWM2MIX Input 2 Volume */
+ { 0x0000064c, 0x0000 }, /* R1612 (0x64c) - PWM2MIX Input 3 Source */
+ { 0x0000064d, 0x0080 }, /* R1613 (0x64d) - PWM2MIX Input 3 Volume */
+ { 0x0000064e, 0x0000 }, /* R1614 (0x64e) - PWM2MIX Input 4 Source */
+ { 0x0000064f, 0x0080 }, /* R1615 (0x64f) - PWM2MIX Input 4 Volume */
+ { 0x00000680, 0x0000 }, /* R1664 (0x680) - OUT1LMIX Input 1 Source */
+ { 0x00000681, 0x0080 }, /* R1665 (0x681) - OUT1LMIX Input 1 Volume */
+ { 0x00000682, 0x0000 }, /* R1666 (0x682) - OUT1LMIX Input 2 Source */
+ { 0x00000683, 0x0080 }, /* R1667 (0x683) - OUT1LMIX Input 2 Volume */
+ { 0x00000684, 0x0000 }, /* R1668 (0x684) - OUT1LMIX Input 3 Source */
+ { 0x00000685, 0x0080 }, /* R1669 (0x685) - OUT1LMIX Input 3 Volume */
+ { 0x00000686, 0x0000 }, /* R1670 (0x686) - OUT1LMIX Input 4 Source */
+ { 0x00000687, 0x0080 }, /* R1671 (0x687) - OUT1LMIX Input 4 Volume */
+ { 0x00000688, 0x0000 }, /* R1672 (0x688) - OUT1RMIX Input 1 Source */
+ { 0x00000689, 0x0080 }, /* R1673 (0x689) - OUT1RMIX Input 1 Volume */
+ { 0x0000068a, 0x0000 }, /* R1674 (0x68a) - OUT1RMIX Input 2 Source */
+ { 0x0000068b, 0x0080 }, /* R1675 (0x68b) - OUT1RMIX Input 2 Volume */
+ { 0x0000068c, 0x0000 }, /* R1672 (0x68c) - OUT1RMIX Input 3 Source */
+ { 0x0000068d, 0x0080 }, /* R1673 (0x68d) - OUT1RMIX Input 3 Volume */
+ { 0x0000068e, 0x0000 }, /* R1674 (0x68e) - OUT1RMIX Input 4 Source */
+ { 0x0000068f, 0x0080 }, /* R1675 (0x68f) - OUT1RMIX Input 4 Volume */
+ { 0x00000690, 0x0000 }, /* R1680 (0x690) - OUT2LMIX Input 1 Source */
+ { 0x00000691, 0x0080 }, /* R1681 (0x691) - OUT2LMIX Input 1 Volume */
+ { 0x00000692, 0x0000 }, /* R1682 (0x692) - OUT2LMIX Input 2 Source */
+ { 0x00000693, 0x0080 }, /* R1683 (0x693) - OUT2LMIX Input 2 Volume */
+ { 0x00000694, 0x0000 }, /* R1684 (0x694) - OUT2LMIX Input 3 Source */
+ { 0x00000695, 0x0080 }, /* R1685 (0x695) - OUT2LMIX Input 3 Volume */
+ { 0x00000696, 0x0000 }, /* R1686 (0x696) - OUT2LMIX Input 4 Source */
+ { 0x00000697, 0x0080 }, /* R1687 (0x697) - OUT2LMIX Input 4 Volume */
+ { 0x00000698, 0x0000 }, /* R1688 (0x698) - OUT2RMIX Input 1 Source */
+ { 0x00000699, 0x0080 }, /* R1689 (0x699) - OUT2RMIX Input 1 Volume */
+ { 0x0000069a, 0x0000 }, /* R1690 (0x69a) - OUT2RMIX Input 2 Source */
+ { 0x0000069b, 0x0080 }, /* R1691 (0x69b) - OUT2RMIX Input 2 Volume */
+ { 0x0000069c, 0x0000 }, /* R1692 (0x69c) - OUT2RMIX Input 3 Source */
+ { 0x0000069d, 0x0080 }, /* R1693 (0x69d) - OUT2RMIX Input 3 Volume */
+ { 0x0000069e, 0x0000 }, /* R1694 (0x69e) - OUT2RMIX Input 4 Source */
+ { 0x0000069f, 0x0080 }, /* R1695 (0x69f) - OUT2RMIX Input 4 Volume */
+ { 0x000006a0, 0x0000 }, /* R1696 (0x6a0) - OUT3LMIX Input 1 Source */
+ { 0x000006a1, 0x0080 }, /* R1697 (0x6a1) - OUT3LMIX Input 1 Volume */
+ { 0x000006a2, 0x0000 }, /* R1698 (0x6a2) - OUT3LMIX Input 2 Source */
+ { 0x000006a3, 0x0080 }, /* R1699 (0x6a3) - OUT3LMIX Input 2 Volume */
+ { 0x000006a4, 0x0000 }, /* R1700 (0x6a4) - OUT3LMIX Input 3 Source */
+ { 0x000006a5, 0x0080 }, /* R1701 (0x6a5) - OUT3LMIX Input 3 Volume */
+ { 0x000006a6, 0x0000 }, /* R1702 (0x6a6) - OUT3LMIX Input 4 Source */
+ { 0x000006a7, 0x0080 }, /* R1703 (0x6a7) - OUT3LMIX Input 4 Volume */
+ { 0x000006a8, 0x0000 }, /* R1704 (0x6a8) - OUT3RMIX Input 1 Source */
+ { 0x000006a9, 0x0080 }, /* R1705 (0x6a9) - OUT3RMIX Input 1 Volume */
+ { 0x000006aa, 0x0000 }, /* R1706 (0x6aa) - OUT3RMIX Input 2 Source */
+ { 0x000006ab, 0x0080 }, /* R1707 (0x6ab) - OUT3RMIX Input 2 Volume */
+ { 0x000006ac, 0x0000 }, /* R1708 (0x6ac) - OUT3RMIX Input 3 Source */
+ { 0x000006ad, 0x0080 }, /* R1709 (0x6ad) - OUT3RMIX Input 3 Volume */
+ { 0x000006ae, 0x0000 }, /* R1710 (0x6ae) - OUT3RMIX Input 4 Source */
+ { 0x000006af, 0x0080 }, /* R1711 (0x6af) - OUT3RMIX Input 4 Volume */
+ { 0x000006b0, 0x0000 }, /* R1712 (0x6b0) - OUT4LMIX Input 1 Source */
+ { 0x000006b1, 0x0080 }, /* R1713 (0x6b1) - OUT4LMIX Input 1 Volume */
+ { 0x000006b2, 0x0000 }, /* R1714 (0x6b2) - OUT4LMIX Input 2 Source */
+ { 0x000006b3, 0x0080 }, /* R1715 (0x6b3) - OUT4LMIX Input 2 Volume */
+ { 0x000006b4, 0x0000 }, /* R1716 (0x6b4) - OUT4LMIX Input 3 Source */
+ { 0x000006b5, 0x0080 }, /* R1717 (0x6b5) - OUT4LMIX Input 3 Volume */
+ { 0x000006b6, 0x0000 }, /* R1718 (0x6b6) - OUT4LMIX Input 4 Source */
+ { 0x000006b7, 0x0080 }, /* R1719 (0x6b7) - OUT4LMIX Input 4 Volume */
+ { 0x000006b8, 0x0000 }, /* R1720 (0x6b8) - OUT4RMIX Input 1 Source */
+ { 0x000006b9, 0x0080 }, /* R1721 (0x6b9) - OUT4RMIX Input 1 Volume */
+ { 0x000006ba, 0x0000 }, /* R1722 (0x6ba) - OUT4RMIX Input 2 Source */
+ { 0x000006bb, 0x0080 }, /* R1723 (0x6bb) - OUT4RMIX Input 2 Volume */
+ { 0x000006bc, 0x0000 }, /* R1724 (0x6bc) - OUT4RMIX Input 3 Source */
+ { 0x000006bd, 0x0080 }, /* R1725 (0x6bd) - OUT4RMIX Input 3 Volume */
+ { 0x000006be, 0x0000 }, /* R1726 (0x6be) - OUT4RMIX Input 4 Source */
+ { 0x000006bf, 0x0080 }, /* R1727 (0x6bf) - OUT4RMIX Input 4 Volume */
+ { 0x000006c0, 0x0000 }, /* R1728 (0x6c0) - OUT5LMIX Input 1 Source */
+ { 0x000006c1, 0x0080 }, /* R1729 (0x6c1) - OUT5LMIX Input 1 Volume */
+ { 0x000006c2, 0x0000 }, /* R1730 (0x6c2) - OUT5LMIX Input 2 Source */
+ { 0x000006c3, 0x0080 }, /* R1731 (0x6c3) - OUT5LMIX Input 2 Volume */
+ { 0x000006c4, 0x0000 }, /* R1732 (0x6c4) - OUT5LMIX Input 3 Source */
+ { 0x000006c5, 0x0080 }, /* R1733 (0x6c5) - OUT5LMIX Input 3 Volume */
+ { 0x000006c6, 0x0000 }, /* R1734 (0x6c6) - OUT5LMIX Input 4 Source */
+ { 0x000006c7, 0x0080 }, /* R1735 (0x6c7) - OUT5LMIX Input 4 Volume */
+ { 0x000006c8, 0x0000 }, /* R1736 (0x6c8) - OUT5RMIX Input 1 Source */
+ { 0x000006c9, 0x0080 }, /* R1737 (0x6c9) - OUT5RMIX Input 1 Volume */
+ { 0x000006ca, 0x0000 }, /* R1738 (0x6ca) - OUT5RMIX Input 2 Source */
+ { 0x000006cb, 0x0080 }, /* R1739 (0x6cb) - OUT5RMIX Input 2 Volume */
+ { 0x000006cc, 0x0000 }, /* R1740 (0x6cc) - OUT5RMIX Input 3 Source */
+ { 0x000006cd, 0x0080 }, /* R1741 (0x6cd) - OUT5RMIX Input 3 Volume */
+ { 0x000006ce, 0x0000 }, /* R1742 (0x6ce) - OUT5RMIX Input 4 Source */
+ { 0x000006cf, 0x0080 }, /* R1743 (0x6cf) - OUT5RMIX Input 4 Volume */
+ { 0x000006d0, 0x0000 }, /* R1744 (0x6d0) - OUT6LMIX Input 1 Source */
+ { 0x000006d1, 0x0080 }, /* R1745 (0x6d1) - OUT6LMIX Input 1 Volume */
+ { 0x000006d2, 0x0000 }, /* R1746 (0x6d2) - OUT6LMIX Input 2 Source */
+ { 0x000006d3, 0x0080 }, /* R1747 (0x6d3) - OUT6LMIX Input 2 Volume */
+ { 0x000006d4, 0x0000 }, /* R1748 (0x6d4) - OUT6LMIX Input 3 Source */
+ { 0x000006d5, 0x0080 }, /* R1749 (0x6d5) - OUT6LMIX Input 3 Volume */
+ { 0x000006d6, 0x0000 }, /* R1750 (0x6d6) - OUT6LMIX Input 4 Source */
+ { 0x000006d7, 0x0080 }, /* R1751 (0x6d7) - OUT6LMIX Input 4 Volume */
+ { 0x000006d8, 0x0000 }, /* R1752 (0x6d8) - OUT6RMIX Input 1 Source */
+ { 0x000006d9, 0x0080 }, /* R1753 (0x6d9) - OUT6RMIX Input 1 Volume */
+ { 0x000006da, 0x0000 }, /* R1754 (0x6da) - OUT6RMIX Input 2 Source */
+ { 0x000006db, 0x0080 }, /* R1755 (0x6db) - OUT6RMIX Input 2 Volume */
+ { 0x000006dc, 0x0000 }, /* R1756 (0x6dc) - OUT6RMIX Input 3 Source */
+ { 0x000006dd, 0x0080 }, /* R1757 (0x6dd) - OUT6RMIX Input 3 Volume */
+ { 0x000006de, 0x0000 }, /* R1758 (0x6de) - OUT6RMIX Input 4 Source */
+ { 0x000006df, 0x0080 }, /* R1759 (0x6df) - OUT6RMIX Input 4 Volume */
+ { 0x00000700, 0x0000 }, /* R1792 (0x700) - AIF1TX1MIX Input 1 Source */
+ { 0x00000701, 0x0080 }, /* R1793 (0x701) - AIF1TX1MIX Input 1 Volume */
+ { 0x00000702, 0x0000 }, /* R1794 (0x702) - AIF1TX1MIX Input 2 Source */
+ { 0x00000703, 0x0080 }, /* R1795 (0x703) - AIF1TX1MIX Input 2 Volume */
+ { 0x00000704, 0x0000 }, /* R1796 (0x704) - AIF1TX1MIX Input 3 Source */
+ { 0x00000705, 0x0080 }, /* R1797 (0x705) - AIF1TX1MIX Input 3 Volume */
+ { 0x00000706, 0x0000 }, /* R1798 (0x706) - AIF1TX1MIX Input 4 Source */
+ { 0x00000707, 0x0080 }, /* R1799 (0x707) - AIF1TX1MIX Input 4 Volume */
+ { 0x00000708, 0x0000 }, /* R1800 (0x708) - AIF1TX2MIX Input 1 Source */
+ { 0x00000709, 0x0080 }, /* R1801 (0x709) - AIF1TX2MIX Input 1 Volume */
+ { 0x0000070a, 0x0000 }, /* R1802 (0x70a) - AIF1TX2MIX Input 2 Source */
+ { 0x0000070b, 0x0080 }, /* R1803 (0x70b) - AIF1TX2MIX Input 2 Volume */
+ { 0x0000070c, 0x0000 }, /* R1804 (0x70c) - AIF1TX2MIX Input 3 Source */
+ { 0x0000070d, 0x0080 }, /* R1805 (0x70d) - AIF1TX2MIX Input 3 Volume */
+ { 0x0000070e, 0x0000 }, /* R1806 (0x70e) - AIF1TX2MIX Input 4 Source */
+ { 0x0000070f, 0x0080 }, /* R1807 (0x70f) - AIF1TX2MIX Input 4 Volume */
+ { 0x00000710, 0x0000 }, /* R1808 (0x710) - AIF1TX3MIX Input 1 Source */
+ { 0x00000711, 0x0080 }, /* R1809 (0x711) - AIF1TX3MIX Input 1 Volume */
+ { 0x00000712, 0x0000 }, /* R1810 (0x712) - AIF1TX3MIX Input 2 Source */
+ { 0x00000713, 0x0080 }, /* R1811 (0x713) - AIF1TX3MIX Input 2 Volume */
+ { 0x00000714, 0x0000 }, /* R1812 (0x714) - AIF1TX3MIX Input 3 Source */
+ { 0x00000715, 0x0080 }, /* R1813 (0x715) - AIF1TX3MIX Input 3 Volume */
+ { 0x00000716, 0x0000 }, /* R1814 (0x716) - AIF1TX3MIX Input 4 Source */
+ { 0x00000717, 0x0080 }, /* R1815 (0x717) - AIF1TX3MIX Input 4 Volume */
+ { 0x00000718, 0x0000 }, /* R1816 (0x718) - AIF1TX4MIX Input 1 Source */
+ { 0x00000719, 0x0080 }, /* R1817 (0x719) - AIF1TX4MIX Input 1 Volume */
+ { 0x0000071a, 0x0000 }, /* R1818 (0x71a) - AIF1TX4MIX Input 2 Source */
+ { 0x0000071b, 0x0080 }, /* R1819 (0x71b) - AIF1TX4MIX Input 2 Volume */
+ { 0x0000071c, 0x0000 }, /* R1820 (0x71c) - AIF1TX4MIX Input 3 Source */
+ { 0x0000071d, 0x0080 }, /* R1821 (0x71d) - AIF1TX4MIX Input 3 Volume */
+ { 0x0000071e, 0x0000 }, /* R1822 (0x71e) - AIF1TX4MIX Input 4 Source */
+ { 0x0000071f, 0x0080 }, /* R1823 (0x71f) - AIF1TX4MIX Input 4 Volume */
+ { 0x00000720, 0x0000 }, /* R1824 (0x720) - AIF1TX5MIX Input 1 Source */
+ { 0x00000721, 0x0080 }, /* R1825 (0x721) - AIF1TX5MIX Input 1 Volume */
+ { 0x00000722, 0x0000 }, /* R1826 (0x722) - AIF1TX5MIX Input 2 Source */
+ { 0x00000723, 0x0080 }, /* R1827 (0x723) - AIF1TX5MIX Input 2 Volume */
+ { 0x00000724, 0x0000 }, /* R1828 (0x724) - AIF1TX5MIX Input 3 Source */
+ { 0x00000725, 0x0080 }, /* R1829 (0x725) - AIF1TX5MIX Input 3 Volume */
+ { 0x00000726, 0x0000 }, /* R1830 (0x726) - AIF1TX5MIX Input 4 Source */
+ { 0x00000727, 0x0080 }, /* R1831 (0x727) - AIF1TX5MIX Input 4 Volume */
+ { 0x00000728, 0x0000 }, /* R1832 (0x728) - AIF1TX6MIX Input 1 Source */
+ { 0x00000729, 0x0080 }, /* R1833 (0x729) - AIF1TX6MIX Input 1 Volume */
+ { 0x0000072a, 0x0000 }, /* R1834 (0x72a) - AIF1TX6MIX Input 2 Source */
+ { 0x0000072b, 0x0080 }, /* R1835 (0x72b) - AIF1TX6MIX Input 2 Volume */
+ { 0x0000072c, 0x0000 }, /* R1836 (0x72c) - AIF1TX6MIX Input 3 Source */
+ { 0x0000072d, 0x0080 }, /* R1837 (0x72d) - AIF1TX6MIX Input 3 Volume */
+ { 0x0000072e, 0x0000 }, /* R1838 (0x72e) - AIF1TX6MIX Input 4 Source */
+ { 0x0000072f, 0x0080 }, /* R1839 (0x72f) - AIF1TX6MIX Input 4 Volume */
+ { 0x00000730, 0x0000 }, /* R1840 (0x730) - AIF1TX7MIX Input 1 Source */
+ { 0x00000731, 0x0080 }, /* R1841 (0x731) - AIF1TX7MIX Input 1 Volume */
+ { 0x00000732, 0x0000 }, /* R1842 (0x732) - AIF1TX7MIX Input 2 Source */
+ { 0x00000733, 0x0080 }, /* R1843 (0x733) - AIF1TX7MIX Input 2 Volume */
+ { 0x00000734, 0x0000 }, /* R1844 (0x734) - AIF1TX7MIX Input 3 Source */
+ { 0x00000735, 0x0080 }, /* R1845 (0x735) - AIF1TX7MIX Input 3 Volume */
+ { 0x00000736, 0x0000 }, /* R1846 (0x736) - AIF1TX7MIX Input 4 Source */
+ { 0x00000737, 0x0080 }, /* R1847 (0x737) - AIF1TX7MIX Input 4 Volume */
+ { 0x00000738, 0x0000 }, /* R1848 (0x738) - AIF1TX8MIX Input 1 Source */
+ { 0x00000739, 0x0080 }, /* R1849 (0x739) - AIF1TX8MIX Input 1 Volume */
+ { 0x0000073a, 0x0000 }, /* R1850 (0x73a) - AIF1TX8MIX Input 2 Source */
+ { 0x0000073b, 0x0080 }, /* R1851 (0x73b) - AIF1TX8MIX Input 2 Volume */
+ { 0x0000073c, 0x0000 }, /* R1852 (0x73c) - AIF1TX8MIX Input 3 Source */
+ { 0x0000073d, 0x0080 }, /* R1853 (0x73d) - AIF1TX8MIX Input 3 Volume */
+ { 0x0000073e, 0x0000 }, /* R1854 (0x73e) - AIF1TX8MIX Input 4 Source */
+ { 0x0000073f, 0x0080 }, /* R1855 (0x73f) - AIF1TX8MIX Input 4 Volume */
+ { 0x00000740, 0x0000 }, /* R1856 (0x740) - AIF2TX1MIX Input 1 Source */
+ { 0x00000741, 0x0080 }, /* R1857 (0x741) - AIF2TX1MIX Input 1 Volume */
+ { 0x00000742, 0x0000 }, /* R1858 (0x742) - AIF2TX1MIX Input 2 Source */
+ { 0x00000743, 0x0080 }, /* R1859 (0x743) - AIF2TX1MIX Input 2 Volume */
+ { 0x00000744, 0x0000 }, /* R1860 (0x744) - AIF2TX1MIX Input 3 Source */
+ { 0x00000745, 0x0080 }, /* R1861 (0x745) - AIF2TX1MIX Input 3 Volume */
+ { 0x00000746, 0x0000 }, /* R1862 (0x746) - AIF2TX1MIX Input 4 Source */
+ { 0x00000747, 0x0080 }, /* R1863 (0x747) - AIF2TX1MIX Input 4 Volume */
+ { 0x00000748, 0x0000 }, /* R1864 (0x748) - AIF2TX2MIX Input 1 Source */
+ { 0x00000749, 0x0080 }, /* R1865 (0x749) - AIF2TX2MIX Input 1 Volume */
+ { 0x0000074a, 0x0000 }, /* R1866 (0x74a) - AIF2TX2MIX Input 2 Source */
+ { 0x0000074b, 0x0080 }, /* R1867 (0x74b) - AIF2TX2MIX Input 2 Volume */
+ { 0x0000074c, 0x0000 }, /* R1868 (0x74c) - AIF2TX2MIX Input 3 Source */
+ { 0x0000074d, 0x0080 }, /* R1869 (0x74d) - AIF2TX2MIX Input 3 Volume */
+ { 0x0000074e, 0x0000 }, /* R1870 (0x74e) - AIF2TX2MIX Input 4 Source */
+ { 0x0000074f, 0x0080 }, /* R1871 (0x74f) - AIF2TX2MIX Input 4 Volume */
+ { 0x00000750, 0x0000 }, /* R1872 (0x750) - AIF2TX3MIX Input 1 Source */
+ { 0x00000751, 0x0080 }, /* R1873 (0x751) - AIF2TX3MIX Input 1 Volume */
+ { 0x00000752, 0x0000 }, /* R1874 (0x752) - AIF2TX3MIX Input 2 Source */
+ { 0x00000753, 0x0080 }, /* R1875 (0x753) - AIF2TX3MIX Input 2 Volume */
+ { 0x00000754, 0x0000 }, /* R1876 (0x754) - AIF2TX3MIX Input 3 Source */
+ { 0x00000755, 0x0080 }, /* R1877 (0x755) - AIF2TX3MIX Input 3 Volume */
+ { 0x00000756, 0x0000 }, /* R1878 (0x756) - AIF2TX3MIX Input 4 Source */
+ { 0x00000757, 0x0080 }, /* R1879 (0x757) - AIF2TX3MIX Input 4 Volume */
+ { 0x00000758, 0x0000 }, /* R1880 (0x758) - AIF2TX4MIX Input 1 Source */
+ { 0x00000759, 0x0080 }, /* R1881 (0x759) - AIF2TX4MIX Input 1 Volume */
+ { 0x0000075a, 0x0000 }, /* R1882 (0x75a) - AIF2TX4MIX Input 2 Source */
+ { 0x0000075b, 0x0080 }, /* R1883 (0x75b) - AIF2TX4MIX Input 2 Volume */
+ { 0x0000075c, 0x0000 }, /* R1884 (0x75c) - AIF2TX4MIX Input 3 Source */
+ { 0x0000075d, 0x0080 }, /* R1885 (0x75d) - AIF2TX4MIX Input 3 Volume */
+ { 0x0000075e, 0x0000 }, /* R1886 (0x75e) - AIF2TX4MIX Input 4 Source */
+ { 0x0000075f, 0x0080 }, /* R1887 (0x75f) - AIF2TX4MIX Input 4 Volume */
+ { 0x00000760, 0x0000 }, /* R1888 (0x760) - AIF2TX5MIX Input 1 Source */
+ { 0x00000761, 0x0080 }, /* R1889 (0x761) - AIF2TX5MIX Input 1 Volume */
+ { 0x00000762, 0x0000 }, /* R1890 (0x762) - AIF2TX5MIX Input 2 Source */
+ { 0x00000763, 0x0080 }, /* R1891 (0x763) - AIF2TX5MIX Input 2 Volume */
+ { 0x00000764, 0x0000 }, /* R1892 (0x764) - AIF2TX5MIX Input 3 Source */
+ { 0x00000765, 0x0080 }, /* R1893 (0x765) - AIF2TX5MIX Input 3 Volume */
+ { 0x00000766, 0x0000 }, /* R1894 (0x766) - AIF2TX5MIX Input 4 Source */
+ { 0x00000767, 0x0080 }, /* R1895 (0x767) - AIF2TX5MIX Input 4 Volume */
+ { 0x00000768, 0x0000 }, /* R1896 (0x768) - AIF2TX6MIX Input 1 Source */
+ { 0x00000769, 0x0080 }, /* R1897 (0x769) - AIF2TX6MIX Input 1 Volume */
+ { 0x0000076a, 0x0000 }, /* R1898 (0x76a) - AIF2TX6MIX Input 2 Source */
+ { 0x0000076b, 0x0080 }, /* R1899 (0x76b) - AIF2TX6MIX Input 2 Volume */
+ { 0x0000076c, 0x0000 }, /* R1900 (0x76c) - AIF2TX6MIX Input 3 Source */
+ { 0x0000076d, 0x0080 }, /* R1901 (0x76d) - AIF2TX6MIX Input 3 Volume */
+ { 0x0000076e, 0x0000 }, /* R1902 (0x76e) - AIF2TX6MIX Input 4 Source */
+ { 0x0000076f, 0x0080 }, /* R1903 (0x76f) - AIF2TX6MIX Input 4 Volume */
+ { 0x00000770, 0x0000 }, /* R1904 (0x770) - AIF2TX7MIX Input 1 Source */
+ { 0x00000771, 0x0080 }, /* R1905 (0x771) - AIF2TX7MIX Input 1 Volume */
+ { 0x00000772, 0x0000 }, /* R1906 (0x772) - AIF2TX7MIX Input 2 Source */
+ { 0x00000773, 0x0080 }, /* R1907 (0x773) - AIF2TX7MIX Input 2 Volume */
+ { 0x00000774, 0x0000 }, /* R1908 (0x774) - AIF2TX7MIX Input 3 Source */
+ { 0x00000775, 0x0080 }, /* R1909 (0x775) - AIF2TX7MIX Input 3 Volume */
+ { 0x00000776, 0x0000 }, /* R1910 (0x776) - AIF2TX7MIX Input 4 Source */
+ { 0x00000777, 0x0080 }, /* R1911 (0x777) - AIF2TX7MIX Input 4 Volume */
+ { 0x00000778, 0x0000 }, /* R1912 (0x778) - AIF2TX8MIX Input 1 Source */
+ { 0x00000779, 0x0080 }, /* R1913 (0x779) - AIF2TX8MIX Input 1 Volume */
+ { 0x0000077a, 0x0000 }, /* R1914 (0x77a) - AIF2TX8MIX Input 2 Source */
+ { 0x0000077b, 0x0080 }, /* R1915 (0x77b) - AIF2TX8MIX Input 2 Volume */
+ { 0x0000077c, 0x0000 }, /* R1916 (0x77c) - AIF2TX8MIX Input 3 Source */
+ { 0x0000077d, 0x0080 }, /* R1917 (0x77d) - AIF2TX8MIX Input 3 Volume */
+ { 0x0000077e, 0x0000 }, /* R1918 (0x77e) - AIF2TX8MIX Input 4 Source */
+ { 0x0000077f, 0x0080 }, /* R1919 (0x77f) - AIF2TX8MIX Input 4 Volume */
+ { 0x00000780, 0x0000 }, /* R1920 (0x780) - AIF3TX1MIX Input 1 Source */
+ { 0x00000781, 0x0080 }, /* R1921 (0x781) - AIF3TX1MIX Input 1 Volume */
+ { 0x00000782, 0x0000 }, /* R1922 (0x782) - AIF3TX1MIX Input 2 Source */
+ { 0x00000783, 0x0080 }, /* R1923 (0x783) - AIF3TX1MIX Input 2 Volume */
+ { 0x00000784, 0x0000 }, /* R1924 (0x784) - AIF3TX1MIX Input 3 Source */
+ { 0x00000785, 0x0080 }, /* R1925 (0x785) - AIF3TX1MIX Input 3 Volume */
+ { 0x00000786, 0x0000 }, /* R1926 (0x786) - AIF3TX1MIX Input 4 Source */
+ { 0x00000787, 0x0080 }, /* R1927 (0x787) - AIF3TX1MIX Input 4 Volume */
+ { 0x00000788, 0x0000 }, /* R1928 (0x788) - AIF3TX2MIX Input 1 Source */
+ { 0x00000789, 0x0080 }, /* R1929 (0x789) - AIF3TX2MIX Input 1 Volume */
+ { 0x0000078a, 0x0000 }, /* R1930 (0x78a) - AIF3TX2MIX Input 2 Source */
+ { 0x0000078b, 0x0080 }, /* R1931 (0x78b) - AIF3TX2MIX Input 2 Volume */
+ { 0x0000078c, 0x0000 }, /* R1932 (0x78c) - AIF3TX2MIX Input 3 Source */
+ { 0x0000078d, 0x0080 }, /* R1933 (0x78d) - AIF3TX2MIX Input 3 Volume */
+ { 0x0000078e, 0x0000 }, /* R1934 (0x78e) - AIF3TX2MIX Input 4 Source */
+ { 0x0000078f, 0x0080 }, /* R1935 (0x78f) - AIF3TX2MIX Input 4 Volume */
+ { 0x000007a0, 0x0000 }, /* R1952 (0x7a0) - AIF4TX1MIX Input 1 Source */
+ { 0x000007a1, 0x0080 }, /* R1953 (0x7a1) - AIF4TX1MIX Input 1 Volume */
+ { 0x000007a2, 0x0000 }, /* R1954 (0x7a2) - AIF4TX1MIX Input 2 Source */
+ { 0x000007a3, 0x0080 }, /* R1955 (0x7a3) - AIF4TX1MIX Input 2 Volume */
+ { 0x000007a4, 0x0000 }, /* R1956 (0x7a4) - AIF4TX1MIX Input 3 Source */
+ { 0x000007a5, 0x0080 }, /* R1957 (0x7a5) - AIF4TX1MIX Input 3 Volume */
+ { 0x000007a6, 0x0000 }, /* R1958 (0x7a6) - AIF4TX1MIX Input 4 Source */
+ { 0x000007a7, 0x0080 }, /* R1959 (0x7a7) - AIF4TX1MIX Input 4 Volume */
+ { 0x000007a8, 0x0000 }, /* R1960 (0x7a8) - AIF4TX2MIX Input 1 Source */
+ { 0x000007a9, 0x0080 }, /* R1961 (0x7a9) - AIF4TX2MIX Input 1 Volume */
+ { 0x000007aa, 0x0000 }, /* R1962 (0x7aa) - AIF4TX2MIX Input 2 Source */
+ { 0x000007ab, 0x0080 }, /* R1963 (0x7ab) - AIF4TX2MIX Input 2 Volume */
+ { 0x000007ac, 0x0000 }, /* R1964 (0x7ac) - AIF4TX2MIX Input 3 Source */
+ { 0x000007ad, 0x0080 }, /* R1965 (0x7ad) - AIF4TX2MIX Input 3 Volume */
+ { 0x000007ae, 0x0000 }, /* R1966 (0x7ae) - AIF4TX2MIX Input 4 Source */
+ { 0x000007af, 0x0080 }, /* R1967 (0x7af) - AIF4TX2MIX Input 4 Volume */
+ { 0x000007c0, 0x0000 }, /* R1984 (0x7c0) - SLIMTX1MIX Input 1 Source */
+ { 0x000007c1, 0x0080 }, /* R1985 (0x7c1) - SLIMTX1MIX Input 1 Volume */
+ { 0x000007c2, 0x0000 }, /* R1986 (0x7c2) - SLIMTX1MIX Input 2 Source */
+ { 0x000007c3, 0x0080 }, /* R1987 (0x7c3) - SLIMTX1MIX Input 2 Volume */
+ { 0x000007c4, 0x0000 }, /* R1988 (0x7c4) - SLIMTX1MIX Input 3 Source */
+ { 0x000007c5, 0x0080 }, /* R1989 (0x7c5) - SLIMTX1MIX Input 3 Volume */
+ { 0x000007c6, 0x0000 }, /* R1990 (0x7c6) - SLIMTX1MIX Input 4 Source */
+ { 0x000007c7, 0x0080 }, /* R1991 (0x7c7) - SLIMTX1MIX Input 4 Volume */
+ { 0x000007c8, 0x0000 }, /* R1992 (0x7c8) - SLIMTX2MIX Input 1 Source */
+ { 0x000007c9, 0x0080 }, /* R1993 (0x7c9) - SLIMTX2MIX Input 1 Volume */
+ { 0x000007ca, 0x0000 }, /* R1994 (0x7ca) - SLIMTX2MIX Input 2 Source */
+ { 0x000007cb, 0x0080 }, /* R1995 (0x7cb) - SLIMTX2MIX Input 2 Volume */
+ { 0x000007cc, 0x0000 }, /* R1996 (0x7cc) - SLIMTX2MIX Input 3 Source */
+ { 0x000007cd, 0x0080 }, /* R1997 (0x7cd) - SLIMTX2MIX Input 3 Volume */
+ { 0x000007ce, 0x0000 }, /* R1998 (0x7ce) - SLIMTX2MIX Input 4 Source */
+ { 0x000007cf, 0x0080 }, /* R1999 (0x7cf) - SLIMTX2MIX Input 4 Volume */
+ { 0x000007d0, 0x0000 }, /* R2000 (0x7d0) - SLIMTX3MIX Input 1 Source */
+ { 0x000007d1, 0x0080 }, /* R2001 (0x7d1) - SLIMTX3MIX Input 1 Volume */
+ { 0x000007d2, 0x0000 }, /* R2002 (0x7d2) - SLIMTX3MIX Input 2 Source */
+ { 0x000007d3, 0x0080 }, /* R2003 (0x7d3) - SLIMTX3MIX Input 2 Volume */
+ { 0x000007d4, 0x0000 }, /* R2004 (0x7d4) - SLIMTX3MIX Input 3 Source */
+ { 0x000007d5, 0x0080 }, /* R2005 (0x7d5) - SLIMTX3MIX Input 3 Volume */
+ { 0x000007d6, 0x0000 }, /* R2006 (0x7d6) - SLIMTX3MIX Input 4 Source */
+ { 0x000007d7, 0x0080 }, /* R2007 (0x7d7) - SLIMTX3MIX Input 4 Volume */
+ { 0x000007d8, 0x0000 }, /* R2008 (0x7d8) - SLIMTX4MIX Input 1 Source */
+ { 0x000007d9, 0x0080 }, /* R2009 (0x7d9) - SLIMTX4MIX Input 1 Volume */
+ { 0x000007da, 0x0000 }, /* R2010 (0x7da) - SLIMTX4MIX Input 2 Source */
+ { 0x000007db, 0x0080 }, /* R2011 (0x7db) - SLIMTX4MIX Input 2 Volume */
+ { 0x000007dc, 0x0000 }, /* R2012 (0x7dc) - SLIMTX4MIX Input 3 Source */
+ { 0x000007dd, 0x0080 }, /* R2013 (0x7dd) - SLIMTX4MIX Input 3 Volume */
+ { 0x000007de, 0x0000 }, /* R2014 (0x7de) - SLIMTX4MIX Input 4 Source */
+ { 0x000007df, 0x0080 }, /* R2015 (0x7df) - SLIMTX4MIX Input 4 Volume */
+ { 0x000007e0, 0x0000 }, /* R2016 (0x7e0) - SLIMTX5MIX Input 1 Source */
+ { 0x000007e1, 0x0080 }, /* R2017 (0x7e1) - SLIMTX5MIX Input 1 Volume */
+ { 0x000007e2, 0x0000 }, /* R2018 (0x7e2) - SLIMTX5MIX Input 2 Source */
+ { 0x000007e3, 0x0080 }, /* R2019 (0x7e3) - SLIMTX5MIX Input 2 Volume */
+ { 0x000007e4, 0x0000 }, /* R2020 (0x7e4) - SLIMTX5MIX Input 3 Source */
+ { 0x000007e5, 0x0080 }, /* R2021 (0x7e5) - SLIMTX5MIX Input 3 Volume */
+ { 0x000007e6, 0x0000 }, /* R2022 (0x7e6) - SLIMTX5MIX Input 4 Source */
+ { 0x000007e7, 0x0080 }, /* R2023 (0x7e7) - SLIMTX5MIX Input 4 Volume */
+ { 0x000007e8, 0x0000 }, /* R2024 (0x7e8) - SLIMTX6MIX Input 1 Source */
+ { 0x000007e9, 0x0080 }, /* R2025 (0x7e9) - SLIMTX6MIX Input 1 Volume */
+ { 0x000007ea, 0x0000 }, /* R2026 (0x7ea) - SLIMTX6MIX Input 2 Source */
+ { 0x000007eb, 0x0080 }, /* R2027 (0x7eb) - SLIMTX6MIX Input 2 Volume */
+ { 0x000007ec, 0x0000 }, /* R2028 (0x7ec) - SLIMTX6MIX Input 3 Source */
+ { 0x000007ed, 0x0080 }, /* R2029 (0x7ed) - SLIMTX6MIX Input 3 Volume */
+ { 0x000007ee, 0x0000 }, /* R2030 (0x7ee) - SLIMTX6MIX Input 4 Source */
+ { 0x000007ef, 0x0080 }, /* R2031 (0x7ef) - SLIMTX6MIX Input 4 Volume */
+ { 0x000007f0, 0x0000 }, /* R2032 (0x7f0) - SLIMTX7MIX Input 1 Source */
+ { 0x000007f1, 0x0080 }, /* R2033 (0x7f1) - SLIMTX7MIX Input 1 Volume */
+ { 0x000007f2, 0x0000 }, /* R2034 (0x7f2) - SLIMTX7MIX Input 2 Source */
+ { 0x000007f3, 0x0080 }, /* R2035 (0x7f3) - SLIMTX7MIX Input 2 Volume */
+ { 0x000007f4, 0x0000 }, /* R2036 (0x7f4) - SLIMTX7MIX Input 3 Source */
+ { 0x000007f5, 0x0080 }, /* R2037 (0x7f5) - SLIMTX7MIX Input 3 Volume */
+ { 0x000007f6, 0x0000 }, /* R2038 (0x7f6) - SLIMTX7MIX Input 4 Source */
+ { 0x000007f7, 0x0080 }, /* R2039 (0x7f7) - SLIMTX7MIX Input 4 Volume */
+ { 0x000007f8, 0x0000 }, /* R2040 (0x7f8) - SLIMTX8MIX Input 1 Source */
+ { 0x000007f9, 0x0080 }, /* R2041 (0x7f9) - SLIMTX8MIX Input 1 Volume */
+ { 0x000007fa, 0x0000 }, /* R2042 (0x7fa) - SLIMTX8MIX Input 2 Source */
+ { 0x000007fb, 0x0080 }, /* R2043 (0x7fb) - SLIMTX8MIX Input 2 Volume */
+ { 0x000007fc, 0x0000 }, /* R2044 (0x7fc) - SLIMTX8MIX Input 3 Source */
+ { 0x000007fd, 0x0080 }, /* R2045 (0x7fd) - SLIMTX8MIX Input 3 Volume */
+ { 0x000007fe, 0x0000 }, /* R2046 (0x7fe) - SLIMTX8MIX Input 4 Source */
+ { 0x000007ff, 0x0080 }, /* R2047 (0x7ff) - SLIMTX8MIX Input 4 Volume */
+ { 0x00000800, 0x0000 }, /* R2048 (0x800) - SPDIF1TX1MIX Input 1 Source */
+ { 0x00000801, 0x0080 }, /* R2049 (0x801) - SPDIF1TX1MIX Input 1 Volume */
+ { 0x00000808, 0x0000 }, /* R2056 (0x808) - SPDIF1TX2MIX Input 1 Source */
+ { 0x00000809, 0x0080 }, /* R2057 (0x809) - SPDIF1TX2MIX Input 1 Volume */
+ { 0x00000880, 0x0000 }, /* R2176 (0x880) - EQ1MIX Input 1 Source */
+ { 0x00000881, 0x0080 }, /* R2177 (0x881) - EQ1MIX Input 1 Volume */
+ { 0x00000882, 0x0000 }, /* R2178 (0x882) - EQ1MIX Input 2 Source */
+ { 0x00000883, 0x0080 }, /* R2179 (0x883) - EQ1MIX Input 2 Volume */
+ { 0x00000884, 0x0000 }, /* R2180 (0x884) - EQ1MIX Input 3 Source */
+ { 0x00000885, 0x0080 }, /* R2181 (0x885) - EQ1MIX Input 3 Volume */
+ { 0x00000886, 0x0000 }, /* R2182 (0x886) - EQ1MIX Input 4 Source */
+ { 0x00000887, 0x0080 }, /* R2183 (0x887) - EQ1MIX Input 4 Volume */
+ { 0x00000888, 0x0000 }, /* R2184 (0x888) - EQ2MIX Input 1 Source */
+ { 0x00000889, 0x0080 }, /* R2185 (0x889) - EQ2MIX Input 1 Volume */
+ { 0x0000088a, 0x0000 }, /* R2186 (0x88a) - EQ2MIX Input 2 Source */
+ { 0x0000088b, 0x0080 }, /* R2187 (0x88b) - EQ2MIX Input 2 Volume */
+ { 0x0000088c, 0x0000 }, /* R2188 (0x88c) - EQ2MIX Input 3 Source */
+ { 0x0000088d, 0x0080 }, /* R2189 (0x88d) - EQ2MIX Input 3 Volume */
+ { 0x0000088e, 0x0000 }, /* R2190 (0x88e) - EQ2MIX Input 4 Source */
+ { 0x0000088f, 0x0080 }, /* R2191 (0x88f) - EQ2MIX Input 4 Volume */
+ { 0x00000890, 0x0000 }, /* R2192 (0x890) - EQ3MIX Input 1 Source */
+ { 0x00000891, 0x0080 }, /* R2193 (0x891) - EQ3MIX Input 1 Volume */
+ { 0x00000892, 0x0000 }, /* R2194 (0x892) - EQ3MIX Input 2 Source */
+ { 0x00000893, 0x0080 }, /* R2195 (0x893) - EQ3MIX Input 2 Volume */
+ { 0x00000894, 0x0000 }, /* R2196 (0x894) - EQ3MIX Input 3 Source */
+ { 0x00000895, 0x0080 }, /* R2197 (0x895) - EQ3MIX Input 3 Volume */
+ { 0x00000896, 0x0000 }, /* R2198 (0x896) - EQ3MIX Input 4 Source */
+ { 0x00000897, 0x0080 }, /* R2199 (0x897) - EQ3MIX Input 4 Volume */
+ { 0x00000898, 0x0000 }, /* R2200 (0x898) - EQ4MIX Input 1 Source */
+ { 0x00000899, 0x0080 }, /* R2201 (0x899) - EQ4MIX Input 1 Volume */
+ { 0x0000089a, 0x0000 }, /* R2202 (0x89a) - EQ4MIX Input 2 Source */
+ { 0x0000089b, 0x0080 }, /* R2203 (0x89b) - EQ4MIX Input 2 Volume */
+ { 0x0000089c, 0x0000 }, /* R2204 (0x89c) - EQ4MIX Input 3 Source */
+ { 0x0000089d, 0x0080 }, /* R2205 (0x89d) - EQ4MIX Input 3 Volume */
+ { 0x0000089e, 0x0000 }, /* R2206 (0x89e) - EQ4MIX Input 4 Source */
+ { 0x0000089f, 0x0080 }, /* R2207 (0x89f) - EQ4MIX Input 4 Volume */
+ { 0x000008c0, 0x0000 }, /* R2240 (0x8c0) - DRC1LMIX Input 1 Source */
+ { 0x000008c1, 0x0080 }, /* R2241 (0x8c1) - DRC1LMIX Input 1 Volume */
+ { 0x000008c2, 0x0000 }, /* R2242 (0x8c2) - DRC1LMIX Input 2 Source */
+ { 0x000008c3, 0x0080 }, /* R2243 (0x8c3) - DRC1LMIX Input 2 Volume */
+ { 0x000008c4, 0x0000 }, /* R2244 (0x8c4) - DRC1LMIX Input 3 Source */
+ { 0x000008c5, 0x0080 }, /* R2245 (0x8c5) - DRC1LMIX Input 3 Volume */
+ { 0x000008c6, 0x0000 }, /* R2246 (0x8c6) - DRC1LMIX Input 4 Source */
+ { 0x000008c7, 0x0080 }, /* R2247 (0x8c7) - DRC1LMIX Input 4 Volume */
+ { 0x000008c8, 0x0000 }, /* R2248 (0x8c8) - DRC1RMIX Input 1 Source */
+ { 0x000008c9, 0x0080 }, /* R2249 (0x8c9) - DRC1RMIX Input 1 Volume */
+ { 0x000008ca, 0x0000 }, /* R2250 (0x8ca) - DRC1RMIX Input 2 Source */
+ { 0x000008cb, 0x0080 }, /* R2251 (0x8cb) - DRC1RMIX Input 2 Volume */
+ { 0x000008cc, 0x0000 }, /* R2252 (0x8cc) - DRC1RMIX Input 3 Source */
+ { 0x000008cd, 0x0080 }, /* R2253 (0x8cd) - DRC1RMIX Input 3 Volume */
+ { 0x000008ce, 0x0000 }, /* R2254 (0x8ce) - DRC1RMIX Input 4 Source */
+ { 0x000008cf, 0x0080 }, /* R2255 (0x8cf) - DRC1RMIX Input 4 Volume */
+ { 0x000008d0, 0x0000 }, /* R2256 (0x8d0) - DRC2LMIX Input 1 Source */
+ { 0x000008d1, 0x0080 }, /* R2257 (0x8d1) - DRC2LMIX Input 1 Volume */
+ { 0x000008d2, 0x0000 }, /* R2258 (0x8d2) - DRC2LMIX Input 2 Source */
+ { 0x000008d3, 0x0080 }, /* R2259 (0x8d3) - DRC2LMIX Input 2 Volume */
+ { 0x000008d4, 0x0000 }, /* R2260 (0x8d4) - DRC2LMIX Input 3 Source */
+ { 0x000008d5, 0x0080 }, /* R2261 (0x8d5) - DRC2LMIX Input 3 Volume */
+ { 0x000008d6, 0x0000 }, /* R2262 (0x8d6) - DRC2LMIX Input 4 Source */
+ { 0x000008d7, 0x0080 }, /* R2263 (0x8d7) - DRC2LMIX Input 4 Volume */
+ { 0x000008d8, 0x0000 }, /* R2264 (0x8d8) - DRC2RMIX Input 1 Source */
+ { 0x000008d9, 0x0080 }, /* R2265 (0x8d9) - DRC2RMIX Input 1 Volume */
+ { 0x000008da, 0x0000 }, /* R2266 (0x8da) - DRC2RMIX Input 2 Source */
+ { 0x000008db, 0x0080 }, /* R2267 (0x8db) - DRC2RMIX Input 2 Volume */
+ { 0x000008dc, 0x0000 }, /* R2268 (0x8dc) - DRC2RMIX Input 3 Source */
+ { 0x000008dd, 0x0080 }, /* R2269 (0x8dd) - DRC2RMIX Input 3 Volume */
+ { 0x000008de, 0x0000 }, /* R2270 (0x8de) - DRC2RMIX Input 4 Source */
+ { 0x000008df, 0x0080 }, /* R2271 (0x8df) - DRC2RMIX Input 4 Volume */
+ { 0x00000900, 0x0000 }, /* R2304 (0x900) - HPLP1MIX Input 1 Source */
+ { 0x00000901, 0x0080 }, /* R2305 (0x901) - HPLP1MIX Input 1 Volume */
+ { 0x00000902, 0x0000 }, /* R2306 (0x902) - HPLP1MIX Input 2 Source */
+ { 0x00000903, 0x0080 }, /* R2307 (0x903) - HPLP1MIX Input 2 Volume */
+ { 0x00000904, 0x0000 }, /* R2308 (0x904) - HPLP1MIX Input 3 Source */
+ { 0x00000905, 0x0080 }, /* R2309 (0x905) - HPLP1MIX Input 3 Volume */
+ { 0x00000906, 0x0000 }, /* R2310 (0x906) - HPLP1MIX Input 4 Source */
+ { 0x00000907, 0x0080 }, /* R2311 (0x907) - HPLP1MIX Input 4 Volume */
+ { 0x00000908, 0x0000 }, /* R2312 (0x908) - HPLP2MIX Input 1 Source */
+ { 0x00000909, 0x0080 }, /* R2313 (0x909) - HPLP2MIX Input 1 Volume */
+ { 0x0000090a, 0x0000 }, /* R2314 (0x90a) - HPLP2MIX Input 2 Source */
+ { 0x0000090b, 0x0080 }, /* R2315 (0x90b) - HPLP2MIX Input 2 Volume */
+ { 0x0000090c, 0x0000 }, /* R2316 (0x90c) - HPLP2MIX Input 3 Source */
+ { 0x0000090d, 0x0080 }, /* R2317 (0x90d) - HPLP2MIX Input 3 Volume */
+ { 0x0000090e, 0x0000 }, /* R2318 (0x90e) - HPLP2MIX Input 4 Source */
+ { 0x0000090f, 0x0080 }, /* R2319 (0x90f) - HPLP2MIX Input 4 Volume */
+ { 0x00000910, 0x0000 }, /* R2320 (0x910) - HPLP3MIX Input 1 Source */
+ { 0x00000911, 0x0080 }, /* R2321 (0x911) - HPLP3MIX Input 1 Volume */
+ { 0x00000912, 0x0000 }, /* R2322 (0x912) - HPLP3MIX Input 2 Source */
+ { 0x00000913, 0x0080 }, /* R2323 (0x913) - HPLP3MIX Input 2 Volume */
+ { 0x00000914, 0x0000 }, /* R2324 (0x914) - HPLP3MIX Input 3 Source */
+ { 0x00000915, 0x0080 }, /* R2325 (0x915) - HPLP3MIX Input 3 Volume */
+ { 0x00000916, 0x0000 }, /* R2326 (0x916) - HPLP3MIX Input 4 Source */
+ { 0x00000917, 0x0080 }, /* R2327 (0x917) - HPLP3MIX Input 4 Volume */
+ { 0x00000918, 0x0000 }, /* R2328 (0x918) - HPLP4MIX Input 1 Source */
+ { 0x00000919, 0x0080 }, /* R2329 (0x919) - HPLP4MIX Input 1 Volume */
+ { 0x0000091a, 0x0000 }, /* R2330 (0x91a) - HPLP4MIX Input 2 Source */
+ { 0x0000091b, 0x0080 }, /* R2331 (0x91b) - HPLP4MIX Input 2 Volume */
+ { 0x0000091c, 0x0000 }, /* R2332 (0x91c) - HPLP4MIX Input 3 Source */
+ { 0x0000091d, 0x0080 }, /* R2333 (0x91d) - HPLP4MIX Input 3 Volume */
+ { 0x0000091e, 0x0000 }, /* R2334 (0x91e) - HPLP4MIX Input 4 Source */
+ { 0x0000091f, 0x0080 }, /* R2335 (0x91f) - HPLP4MIX Input 4 Volume */
+ { 0x00000940, 0x0000 }, /* R2368 (0x940) - DSP1LMIX Input 1 Source */
+ { 0x00000941, 0x0080 }, /* R2369 (0x941) - DSP1LMIX Input 1 Volume */
+ { 0x00000942, 0x0000 }, /* R2370 (0x942) - DSP1LMIX Input 2 Source */
+ { 0x00000943, 0x0080 }, /* R2371 (0x943) - DSP1LMIX Input 2 Volume */
+ { 0x00000944, 0x0000 }, /* R2372 (0x944) - DSP1LMIX Input 3 Source */
+ { 0x00000945, 0x0080 }, /* R2373 (0x945) - DSP1LMIX Input 3 Volume */
+ { 0x00000946, 0x0000 }, /* R2374 (0x946) - DSP1LMIX Input 4 Source */
+ { 0x00000947, 0x0080 }, /* R2375 (0x947) - DSP1LMIX Input 4 Volume */
+ { 0x00000948, 0x0000 }, /* R2376 (0x948) - DSP1RMIX Input 1 Source */
+ { 0x00000949, 0x0080 }, /* R2377 (0x949) - DSP1RMIX Input 1 Volume */
+ { 0x0000094a, 0x0000 }, /* R2378 (0x94a) - DSP1RMIX Input 2 Source */
+ { 0x0000094b, 0x0080 }, /* R2379 (0x94b) - DSP1RMIX Input 2 Volume */
+ { 0x0000094c, 0x0000 }, /* R2380 (0x94c) - DSP1RMIX Input 3 Source */
+ { 0x0000094d, 0x0080 }, /* R2381 (0x94d) - DSP1RMIX Input 3 Volume */
+ { 0x0000094e, 0x0000 }, /* R2382 (0x94e) - DSP1RMIX Input 4 Source */
+ { 0x0000094f, 0x0080 }, /* R2383 (0x94f) - DSP1RMIX Input 4 Volume */
+ { 0x00000950, 0x0000 }, /* R2384 (0x950) - DSP1AUX1MIX Input 1 Source */
+ { 0x00000958, 0x0000 }, /* R2392 (0x958) - DSP1AUX2MIX Input 1 Source */
+ { 0x00000960, 0x0000 }, /* R2400 (0x960) - DSP1AUX3MIX Input 1 Source */
+ { 0x00000968, 0x0000 }, /* R2408 (0x968) - DSP1AUX4MIX Input 1 Source */
+ { 0x00000970, 0x0000 }, /* R2416 (0x970) - DSP1AUX5MIX Input 1 Source */
+ { 0x00000978, 0x0000 }, /* R2424 (0x978) - DSP1AUX6MIX Input 1 Source */
+ { 0x00000980, 0x0000 }, /* R2432 (0x980) - DSP2LMIX Input 1 Source */
+ { 0x00000981, 0x0080 }, /* R2433 (0x981) - DSP2LMIX Input 1 Volume */
+ { 0x00000982, 0x0000 }, /* R2434 (0x982) - DSP2LMIX Input 2 Source */
+ { 0x00000983, 0x0080 }, /* R2435 (0x983) - DSP2LMIX Input 2 Volume */
+ { 0x00000984, 0x0000 }, /* R2436 (0x984) - DSP2LMIX Input 3 Source */
+ { 0x00000985, 0x0080 }, /* R2437 (0x985) - DSP2LMIX Input 3 Volume */
+ { 0x00000986, 0x0000 }, /* R2438 (0x986) - DSP2LMIX Input 4 Source */
+ { 0x00000987, 0x0080 }, /* R2439 (0x987) - DSP2LMIX Input 4 Volume */
+ { 0x00000988, 0x0000 }, /* R2440 (0x988) - DSP2RMIX Input 1 Source */
+ { 0x00000989, 0x0080 }, /* R2441 (0x989) - DSP2RMIX Input 1 Volume */
+ { 0x0000098a, 0x0000 }, /* R2442 (0x98a) - DSP2RMIX Input 2 Source */
+ { 0x0000098b, 0x0080 }, /* R2443 (0x98b) - DSP2RMIX Input 2 Volume */
+ { 0x0000098c, 0x0000 }, /* R2444 (0x98c) - DSP2RMIX Input 3 Source */
+ { 0x0000098d, 0x0080 }, /* R2445 (0x98d) - DSP2RMIX Input 3 Volume */
+ { 0x0000098e, 0x0000 }, /* R2446 (0x98e) - DSP2RMIX Input 4 Source */
+ { 0x0000098f, 0x0080 }, /* R2447 (0x98f) - DSP2RMIX Input 4 Volume */
+ { 0x00000990, 0x0000 }, /* R2448 (0x990) - DSP2AUX1MIX Input 1 Source */
+ { 0x00000998, 0x0000 }, /* R2456 (0x998) - DSP2AUX2MIX Input 1 Source */
+ { 0x000009a0, 0x0000 }, /* R2464 (0x9a0) - DSP2AUX3MIX Input 1 Source */
+ { 0x000009a8, 0x0000 }, /* R2472 (0x9a8) - DSP2AUX4MIX Input 1 Source */
+ { 0x000009b0, 0x0000 }, /* R2480 (0x9b0) - DSP2AUX5MIX Input 1 Source */
+ { 0x000009b8, 0x0000 }, /* R2488 (0x9b8) - DSP2AUX6MIX Input 1 Source */
+ { 0x000009c0, 0x0000 }, /* R2496 (0x9c0) - DSP3LMIX Input 1 Source */
+ { 0x000009c1, 0x0080 }, /* R2497 (0x9c1) - DSP3LMIX Input 1 Volume */
+ { 0x000009c2, 0x0000 }, /* R2498 (0x9c2) - DSP3LMIX Input 2 Source */
+ { 0x000009c3, 0x0080 }, /* R2499 (0x9c3) - DSP3LMIX Input 2 Volume */
+ { 0x000009c4, 0x0000 }, /* R2500 (0x9c4) - DSP3LMIX Input 3 Source */
+ { 0x000009c5, 0x0080 }, /* R2501 (0x9c5) - DSP3LMIX Input 3 Volume */
+ { 0x000009c6, 0x0000 }, /* R2502 (0x9c6) - DSP3LMIX Input 4 Source */
+ { 0x000009c7, 0x0080 }, /* R2503 (0x9c7) - DSP3LMIX Input 4 Volume */
+ { 0x000009c8, 0x0000 }, /* R2504 (0x9c8) - DSP3RMIX Input 1 Source */
+ { 0x000009c9, 0x0080 }, /* R2505 (0x9c9) - DSP3RMIX Input 1 Volume */
+ { 0x000009ca, 0x0000 }, /* R2506 (0x9ca) - DSP3RMIX Input 2 Source */
+ { 0x000009cb, 0x0080 }, /* R2507 (0x9cb) - DSP3RMIX Input 2 Volume */
+ { 0x000009cc, 0x0000 }, /* R2508 (0x9cc) - DSP3RMIX Input 3 Source */
+ { 0x000009cd, 0x0080 }, /* R2509 (0x9cd) - DSP3RMIX Input 3 Volume */
+ { 0x000009ce, 0x0000 }, /* R2510 (0x9ce) - DSP3RMIX Input 4 Source */
+ { 0x000009cf, 0x0080 }, /* R2511 (0x9cf) - DSP3RMIX Input 4 Volume */
+ { 0x000009d0, 0x0000 }, /* R2512 (0x9d0) - DSP3AUX1MIX Input 1 Source */
+ { 0x000009d8, 0x0000 }, /* R2520 (0x9d8) - DSP3AUX2MIX Input 1 Source */
+ { 0x000009e0, 0x0000 }, /* R2528 (0x9e0) - DSP3AUX3MIX Input 1 Source */
+ { 0x000009e8, 0x0000 }, /* R2536 (0x9e8) - DSP3AUX4MIX Input 1 Source */
+ { 0x000009f0, 0x0000 }, /* R2544 (0x9f0) - DSP3AUX5MIX Input 1 Source */
+ { 0x000009f8, 0x0000 }, /* R2552 (0x9f8) - DSP3AUX6MIX Input 1 Source */
+ { 0x00000a00, 0x0000 }, /* R2560 (0xa00) - DSP4LMIX Input 1 Source */
+ { 0x00000a01, 0x0080 }, /* R2561 (0xa01) - DSP4LMIX Input 1 Volume */
+ { 0x00000a02, 0x0000 }, /* R2562 (0xa02) - DSP4LMIX Input 2 Source */
+ { 0x00000a03, 0x0080 }, /* R2563 (0xa03) - DSP4LMIX Input 2 Volume */
+ { 0x00000a04, 0x0000 }, /* R2564 (0xa04) - DSP4LMIX Input 3 Source */
+ { 0x00000a05, 0x0080 }, /* R2565 (0xa05) - DSP4LMIX Input 3 Volume */
+ { 0x00000a06, 0x0000 }, /* R2566 (0xa06) - DSP4LMIX Input 4 Source */
+ { 0x00000a07, 0x0080 }, /* R2567 (0xa07) - DSP4LMIX Input 4 Volume */
+ { 0x00000a08, 0x0000 }, /* R2568 (0xa08) - DSP4RMIX Input 1 Source */
+ { 0x00000a09, 0x0080 }, /* R2569 (0xa09) - DSP4RMIX Input 1 Volume */
+ { 0x00000a0a, 0x0000 }, /* R2570 (0xa0a) - DSP4RMIX Input 2 Source */
+ { 0x00000a0b, 0x0080 }, /* R2571 (0xa0b) - DSP4RMIX Input 2 Volume */
+ { 0x00000a0c, 0x0000 }, /* R2572 (0xa0c) - DSP4RMIX Input 3 Source */
+ { 0x00000a0d, 0x0080 }, /* R2573 (0xa0d) - DSP4RMIX Input 3 Volume */
+ { 0x00000a0e, 0x0000 }, /* R2574 (0xa0e) - DSP4RMIX Input 4 Source */
+ { 0x00000a0f, 0x0080 }, /* R2575 (0xa0f) - DSP4RMIX Input 4 Volume */
+ { 0x00000a10, 0x0000 }, /* R2576 (0xa10) - DSP4AUX1MIX Input 1 Source */
+ { 0x00000a18, 0x0000 }, /* R2584 (0xa18) - DSP4AUX2MIX Input 1 Source */
+ { 0x00000a20, 0x0000 }, /* R2592 (0xa20) - DSP4AUX3MIX Input 1 Source */
+ { 0x00000a28, 0x0000 }, /* R2600 (0xa28) - DSP4AUX4MIX Input 1 Source */
+ { 0x00000a30, 0x0000 }, /* R2608 (0xa30) - DSP4AUX5MIX Input 1 Source */
+ { 0x00000a38, 0x0000 }, /* R2616 (0xa38) - DSP4AUX6MIX Input 1 Source */
+ { 0x00000a40, 0x0000 }, /* R2624 (0xa40) - DSP5LMIX Input 1 Source */
+ { 0x00000a41, 0x0080 }, /* R2625 (0xa41) - DSP5LMIX Input 1 Volume */
+ { 0x00000a42, 0x0000 }, /* R2626 (0xa42) - DSP5LMIX Input 2 Source */
+ { 0x00000a43, 0x0080 }, /* R2627 (0xa43) - DSP5LMIX Input 2 Volume */
+ { 0x00000a44, 0x0000 }, /* R2628 (0xa44) - DSP5LMIX Input 3 Source */
+ { 0x00000a45, 0x0080 }, /* R2629 (0xa45) - DSP5LMIX Input 3 Volume */
+ { 0x00000a46, 0x0000 }, /* R2630 (0xa46) - DSP5LMIX Input 4 Source */
+ { 0x00000a47, 0x0080 }, /* R2631 (0xa47) - DSP5LMIX Input 4 Volume */
+ { 0x00000a48, 0x0000 }, /* R2632 (0xa48) - DSP5RMIX Input 1 Source */
+ { 0x00000a49, 0x0080 }, /* R2633 (0xa49) - DSP5RMIX Input 1 Volume */
+ { 0x00000a4a, 0x0000 }, /* R2634 (0xa4a) - DSP5RMIX Input 2 Source */
+ { 0x00000a4b, 0x0080 }, /* R2635 (0xa4b) - DSP5RMIX Input 2 Volume */
+ { 0x00000a4c, 0x0000 }, /* R2636 (0xa4c) - DSP5RMIX Input 3 Source */
+ { 0x00000a4d, 0x0080 }, /* R2637 (0xa4d) - DSP5RMIX Input 3 Volume */
+ { 0x00000a4e, 0x0000 }, /* R2638 (0xa4e) - DSP5RMIX Input 4 Source */
+ { 0x00000a4f, 0x0080 }, /* R2639 (0xa4f) - DSP5RMIX Input 4 Volume */
+ { 0x00000a50, 0x0000 }, /* R2640 (0xa50) - DSP5AUX1MIX Input 1 Source */
+ { 0x00000a58, 0x0000 }, /* R2658 (0xa58) - DSP5AUX2MIX Input 1 Source */
+ { 0x00000a60, 0x0000 }, /* R2656 (0xa60) - DSP5AUX3MIX Input 1 Source */
+ { 0x00000a68, 0x0000 }, /* R2664 (0xa68) - DSP5AUX4MIX Input 1 Source */
+ { 0x00000a70, 0x0000 }, /* R2672 (0xa70) - DSP5AUX5MIX Input 1 Source */
+ { 0x00000a78, 0x0000 }, /* R2680 (0xa78) - DSP5AUX6MIX Input 1 Source */
+ { 0x00000a80, 0x0000 }, /* R2688 (0xa80) - ASRC1_1LMIX Input 1 Source */
+ { 0x00000a88, 0x0000 }, /* R2696 (0xa88) - ASRC1_1RMIX Input 1 Source */
+ { 0x00000a90, 0x0000 }, /* R2704 (0xa90) - ASRC1_2LMIX Input 1 Source */
+ { 0x00000a98, 0x0000 }, /* R2712 (0xa98) - ASRC1_2RMIX Input 1 Source */
+ { 0x00000aa0, 0x0000 }, /* R2720 (0xaa0) - ASRC2_1LMIX Input 1 Source */
+ { 0x00000aa8, 0x0000 }, /* R2728 (0xaa8) - ASRC2_1RMIX Input 1 Source */
+ { 0x00000ab0, 0x0000 }, /* R2736 (0xab0) - ASRC2_2LMIX Input 1 Source */
+ { 0x00000ab8, 0x0000 }, /* R2744 (0xab8) - ASRC2_2RMIX Input 1 Source */
+ { 0x00000b00, 0x0000 }, /* R2816 (0xb00) - ISRC1DEC1MIX Input 1 Source*/
+ { 0x00000b08, 0x0000 }, /* R2824 (0xb08) - ISRC1DEC2MIX Input 1 Source*/
+ { 0x00000b10, 0x0000 }, /* R2832 (0xb10) - ISRC1DEC3MIX Input 1 Source*/
+ { 0x00000b18, 0x0000 }, /* R2840 (0xb18) - ISRC1DEC4MIX Input 1 Source*/
+ { 0x00000b20, 0x0000 }, /* R2848 (0xb20) - ISRC1INT1MIX Input 1 Source*/
+ { 0x00000b28, 0x0000 }, /* R2856 (0xb28) - ISRC1INT2MIX Input 1 Source*/
+ { 0x00000b30, 0x0000 }, /* R2864 (0xb30) - ISRC1INT3MIX Input 1 Source*/
+ { 0x00000b38, 0x0000 }, /* R2872 (0xb38) - ISRC1INT4MIX Input 1 Source*/
+ { 0x00000b40, 0x0000 }, /* R2880 (0xb40) - ISRC2DEC1MIX Input 1 Source*/
+ { 0x00000b48, 0x0000 }, /* R2888 (0xb48) - ISRC2DEC2MIX Input 1 Source*/
+ { 0x00000b50, 0x0000 }, /* R2896 (0xb50) - ISRC2DEC3MIX Input 1 Source*/
+ { 0x00000b58, 0x0000 }, /* R2904 (0xb58) - ISRC2DEC4MIX Input 1 Source*/
+ { 0x00000b60, 0x0000 }, /* R2912 (0xb60) - ISRC2INT1MIX Input 1 Source*/
+ { 0x00000b68, 0x0000 }, /* R2920 (0xb68) - ISRC2INT2MIX Input 1 Source*/
+ { 0x00000b70, 0x0000 }, /* R2928 (0xb70) - ISRC2INT3MIX Input 1 Source*/
+ { 0x00000b78, 0x0000 }, /* R2936 (0xb78) - ISRC2INT4MIX Input 1 Source*/
+ { 0x00000b80, 0x0000 }, /* R2944 (0xb80) - ISRC3DEC1MIX Input 1 Source*/
+ { 0x00000b88, 0x0000 }, /* R2952 (0xb88) - ISRC3DEC2MIX Input 1 Source*/
+ { 0x00000ba0, 0x0000 }, /* R2976 (0xb80) - ISRC3INT1MIX Input 1 Source*/
+ { 0x00000ba8, 0x0000 }, /* R2984 (0xb88) - ISRC3INT2MIX Input 1 Source*/
+ { 0x00000bc0, 0x0000 }, /* R3008 (0xbc0) - ISRC4DEC1MIX Input 1 Source */
+ { 0x00000bc8, 0x0000 }, /* R3016 (0xbc8) - ISRC4DEC2MIX Input 1 Source */
+ { 0x00000be0, 0x0000 }, /* R3040 (0xbe0) - ISRC4INT1MIX Input 1 Source */
+ { 0x00000be8, 0x0000 }, /* R3048 (0xbe8) - ISRC4INT2MIX Input 1 Source */
+ { 0x00000c00, 0x0000 }, /* R3072 (0xc00) - DSP6LMIX Input 1 Source */
+ { 0x00000c01, 0x0080 }, /* R3073 (0xc01) - DSP6LMIX Input 1 Volume */
+ { 0x00000c02, 0x0000 }, /* R3074 (0xc02) - DSP6LMIX Input 2 Source */
+ { 0x00000c03, 0x0080 }, /* R3075 (0xc03) - DSP6LMIX Input 2 Volume */
+ { 0x00000c04, 0x0000 }, /* R3076 (0xc04) - DSP6LMIX Input 3 Source */
+ { 0x00000c05, 0x0080 }, /* R3077 (0xc05) - DSP6LMIX Input 3 Volume */
+ { 0x00000c06, 0x0000 }, /* R3078 (0xc06) - DSP6LMIX Input 4 Source */
+ { 0x00000c07, 0x0080 }, /* R3079 (0xc07) - DSP6LMIX Input 4 Volume */
+ { 0x00000c08, 0x0000 }, /* R3080 (0xc08) - DSP6RMIX Input 1 Source */
+ { 0x00000c09, 0x0080 }, /* R3081 (0xc09) - DSP6RMIX Input 1 Volume */
+ { 0x00000c0a, 0x0000 }, /* R3082 (0xc0a) - DSP6RMIX Input 2 Source */
+ { 0x00000c0b, 0x0080 }, /* R3083 (0xc0b) - DSP6RMIX Input 2 Volume */
+ { 0x00000c0c, 0x0000 }, /* R3084 (0xc0c) - DSP6RMIX Input 3 Source */
+ { 0x00000c0d, 0x0080 }, /* R3085 (0xc0d) - DSP6RMIX Input 3 Volume */
+ { 0x00000c0e, 0x0000 }, /* R3086 (0xc0e) - DSP6RMIX Input 4 Source */
+ { 0x00000c0f, 0x0080 }, /* R3087 (0xc0f) - DSP6RMIX Input 4 Volume */
+ { 0x00000c10, 0x0000 }, /* R3088 (0xc10) - DSP6AUX1MIX Input 1 Source */
+ { 0x00000c18, 0x0000 }, /* R3088 (0xc18) - DSP6AUX2MIX Input 1 Source */
+ { 0x00000c20, 0x0000 }, /* R3088 (0xc20) - DSP6AUX3MIX Input 1 Source */
+ { 0x00000c28, 0x0000 }, /* R3088 (0xc28) - DSP6AUX4MIX Input 1 Source */
+ { 0x00000c30, 0x0000 }, /* R3088 (0xc30) - DSP6AUX5MIX Input 1 Source */
+ { 0x00000c38, 0x0000 }, /* R3088 (0xc38) - DSP6AUX6MIX Input 1 Source */
+ { 0x00000c40, 0x0000 }, /* R3136 (0xc40) - DSP7LMIX Input 1 Source */
+ { 0x00000c41, 0x0080 }, /* R3137 (0xc41) - DSP7LMIX Input 1 Volume */
+ { 0x00000c42, 0x0000 }, /* R3138 (0xc42) - DSP7LMIX Input 2 Source */
+ { 0x00000c43, 0x0080 }, /* R3139 (0xc43) - DSP7LMIX Input 2 Volume */
+ { 0x00000c44, 0x0000 }, /* R3140 (0xc44) - DSP7LMIX Input 3 Source */
+ { 0x00000c45, 0x0080 }, /* R3141 (0xc45) - DSP7lMIX Input 3 Volume */
+ { 0x00000c46, 0x0000 }, /* R3142 (0xc46) - DSP7lMIX Input 4 Source */
+ { 0x00000c47, 0x0080 }, /* R3143 (0xc47) - DSP7LMIX Input 4 Volume */
+ { 0x00000c48, 0x0000 }, /* R3144 (0xc48) - DSP7RMIX Input 1 Source */
+ { 0x00000c49, 0x0080 }, /* R3145 (0xc49) - DSP7RMIX Input 1 Volume */
+ { 0x00000c4a, 0x0000 }, /* R3146 (0xc4a) - DSP7RMIX Input 2 Source */
+ { 0x00000c4b, 0x0080 }, /* R3147 (0xc4b) - DSP7RMIX Input 2 Volume */
+ { 0x00000c4c, 0x0000 }, /* R3148 (0xc4c) - DSP7RMIX Input 3 Source */
+ { 0x00000c4d, 0x0080 }, /* R3159 (0xc4d) - DSP7RMIX Input 3 Volume */
+ { 0x00000c4e, 0x0000 }, /* R3150 (0xc4e) - DSP7RMIX Input 4 Source */
+ { 0x00000c4f, 0x0080 }, /* R3151 (0xc4f) - DSP7RMIX Input 4 Volume */
+ { 0x00000c50, 0x0000 }, /* R3152 (0xc50) - DSP7AUX1MIX Input 1 Source */
+ { 0x00000c58, 0x0000 }, /* R3160 (0xc58) - DSP7AUX2MIX Input 1 Source */
+ { 0x00000c60, 0x0000 }, /* R3168 (0xc60) - DSP7AUX3MIX Input 1 Source */
+ { 0x00000c68, 0x0000 }, /* R3176 (0xc68) - DSP7AUX4MIX Input 1 Source */
+ { 0x00000c70, 0x0000 }, /* R3184 (0xc70) - DSP7AUX5MIX Input 1 Source */
+ { 0x00000c78, 0x0000 }, /* R3192 (0xc78) - DSP7AUX6MIX Input 1 Source */
+ { 0x00000e00, 0x0000 }, /* R3584 (0xe00) - FX Ctrl1 */
+ { 0x00000e10, 0x6318 }, /* R3600 (0xe10) - EQ1_1 */
+ { 0x00000e11, 0x6300 }, /* R3601 (0xe11) - EQ1_2 */
+ { 0x00000e12, 0x0fc8 }, /* R3602 (0xe12) - EQ1_3 */
+ { 0x00000e13, 0x03fe }, /* R3603 (0xe13) - EQ1_4 */
+ { 0x00000e14, 0x00e0 }, /* R3604 (0xe14) - EQ1_5 */
+ { 0x00000e15, 0x1ec4 }, /* R3605 (0xe15) - EQ1_6 */
+ { 0x00000e16, 0xf136 }, /* R3606 (0xe16) - EQ1_7 */
+ { 0x00000e17, 0x0409 }, /* R3607 (0xe17) - EQ1_8 */
+ { 0x00000e18, 0x04cc }, /* R3608 (0xe18) - EQ1_9 */
+ { 0x00000e19, 0x1c9b }, /* R3609 (0xe19) - EQ1_10 */
+ { 0x00000e1a, 0xf337 }, /* R3610 (0xe1a) - EQ1_11 */
+ { 0x00000e1b, 0x040b }, /* R3611 (0xe1b) - EQ1_12 */
+ { 0x00000e1c, 0x0cbb }, /* R3612 (0xe1c) - EQ1_13 */
+ { 0x00000e1d, 0x16f8 }, /* R3613 (0xe1d) - EQ1_14 */
+ { 0x00000e1e, 0xf7d9 }, /* R3614 (0xe1e) - EQ1_15 */
+ { 0x00000e1f, 0x040a }, /* R3615 (0xe1f) - EQ1_16 */
+ { 0x00000e20, 0x1f14 }, /* R3616 (0xe20) - EQ1_17 */
+ { 0x00000e21, 0x058c }, /* R3617 (0xe21) - EQ1_18 */
+ { 0x00000e22, 0x0563 }, /* R3618 (0xe22) - EQ1_19 */
+ { 0x00000e23, 0x4000 }, /* R3619 (0xe23) - EQ1_20 */
+ { 0x00000e24, 0x0b75 }, /* R3620 (0xe24) - EQ1_21 */
+ { 0x00000e26, 0x6318 }, /* R3622 (0xe26) - EQ2_1 */
+ { 0x00000e27, 0x6300 }, /* R3623 (0xe27) - EQ2_2 */
+ { 0x00000e28, 0x0fc8 }, /* R3624 (0xe28) - EQ2_3 */
+ { 0x00000e29, 0x03fe }, /* R3625 (0xe29) - EQ2_4 */
+ { 0x00000e2a, 0x00e0 }, /* R3626 (0xe2a) - EQ2_5 */
+ { 0x00000e2b, 0x1ec4 }, /* R3627 (0xe2b) - EQ2_6 */
+ { 0x00000e2c, 0xf136 }, /* R3628 (0xe2c) - EQ2_7 */
+ { 0x00000e2d, 0x0409 }, /* R3629 (0xe2d) - EQ2_8 */
+ { 0x00000e2e, 0x04cc }, /* R3630 (0xe2e) - EQ2_9 */
+ { 0x00000e2f, 0x1c9b }, /* R3631 (0xe2f) - EQ2_10 */
+ { 0x00000e30, 0xf337 }, /* R3632 (0xe30) - EQ2_11 */
+ { 0x00000e31, 0x040b }, /* R3633 (0xe31) - EQ2_12 */
+ { 0x00000e32, 0x0cbb }, /* R3634 (0xe32) - EQ2_13 */
+ { 0x00000e33, 0x16f8 }, /* R3635 (0xe33) - EQ2_14 */
+ { 0x00000e34, 0xf7d9 }, /* R3636 (0xe34) - EQ2_15 */
+ { 0x00000e35, 0x040a }, /* R3637 (0xe35) - EQ2_16 */
+ { 0x00000e36, 0x1f14 }, /* R3638 (0xe36) - EQ2_17 */
+ { 0x00000e37, 0x058c }, /* R3639 (0xe37) - EQ2_18 */
+ { 0x00000e38, 0x0563 }, /* R3640 (0xe38) - EQ2_19 */
+ { 0x00000e39, 0x4000 }, /* R3641 (0xe39) - EQ2_20 */
+ { 0x00000e3a, 0x0b75 }, /* R3642 (0xe3a) - EQ2_21 */
+ { 0x00000e3c, 0x6318 }, /* R3644 (0xe3c) - EQ3_1 */
+ { 0x00000e3d, 0x6300 }, /* R3645 (0xe3d) - EQ3_2 */
+ { 0x00000e3e, 0x0fc8 }, /* R3646 (0xe3e) - EQ3_3 */
+ { 0x00000e3f, 0x03fe }, /* R3647 (0xe3f) - EQ3_4 */
+ { 0x00000e40, 0x00e0 }, /* R3648 (0xe40) - EQ3_5 */
+ { 0x00000e41, 0x1ec4 }, /* R3649 (0xe41) - EQ3_6 */
+ { 0x00000e42, 0xf136 }, /* R3650 (0xe42) - EQ3_7 */
+ { 0x00000e43, 0x0409 }, /* R3651 (0xe43) - EQ3_8 */
+ { 0x00000e44, 0x04cc }, /* R3652 (0xe44) - EQ3_9 */
+ { 0x00000e45, 0x1c9b }, /* R3653 (0xe45) - EQ3_10 */
+ { 0x00000e46, 0xf337 }, /* R3654 (0xe46) - EQ3_11 */
+ { 0x00000e47, 0x040b }, /* R3655 (0xe47) - EQ3_12 */
+ { 0x00000e48, 0x0cbb }, /* R3656 (0xe48) - EQ3_13 */
+ { 0x00000e49, 0x16f8 }, /* R3657 (0xe49) - EQ3_14 */
+ { 0x00000e4a, 0xf7d9 }, /* R3658 (0xe4a) - EQ3_15 */
+ { 0x00000e4b, 0x040a }, /* R3659 (0xe4b) - EQ3_16 */
+ { 0x00000e4c, 0x1f14 }, /* R3660 (0xe4c) - EQ3_17 */
+ { 0x00000e4d, 0x058c }, /* R3661 (0xe4d) - EQ3_18 */
+ { 0x00000e4e, 0x0563 }, /* R3662 (0xe4e) - EQ3_19 */
+ { 0x00000e4f, 0x4000 }, /* R3663 (0xe4f) - EQ3_20 */
+ { 0x00000e50, 0x0b75 }, /* R3664 (0xe50) - EQ3_21 */
+ { 0x00000e52, 0x6318 }, /* R3666 (0xe52) - EQ4_1 */
+ { 0x00000e53, 0x6300 }, /* R3667 (0xe53) - EQ4_2 */
+ { 0x00000e54, 0x0fc8 }, /* R3668 (0xe54) - EQ4_3 */
+ { 0x00000e55, 0x03fe }, /* R3669 (0xe55) - EQ4_4 */
+ { 0x00000e56, 0x00e0 }, /* R3670 (0xe56) - EQ4_5 */
+ { 0x00000e57, 0x1ec4 }, /* R3671 (0xe57) - EQ4_6 */
+ { 0x00000e58, 0xf136 }, /* R3672 (0xe58) - EQ4_7 */
+ { 0x00000e59, 0x0409 }, /* R3673 (0xe59) - EQ4_8 */
+ { 0x00000e5a, 0x04cc }, /* R3674 (0xe5a) - EQ4_9 */
+ { 0x00000e5b, 0x1c9b }, /* R3675 (0xe5b) - EQ4_10 */
+ { 0x00000e5c, 0xf337 }, /* R3676 (0xe5c) - EQ4_11 */
+ { 0x00000e5d, 0x040b }, /* R3677 (0xe5d) - EQ4_12 */
+ { 0x00000e5e, 0x0cbb }, /* R3678 (0xe5e) - EQ4_13 */
+ { 0x00000e5f, 0x16f8 }, /* R3679 (0xe5f) - EQ4_14 */
+ { 0x00000e60, 0xf7d9 }, /* R3680 (0xe60) - EQ4_15 */
+ { 0x00000e61, 0x040a }, /* R3681 (0xe61) - EQ4_16 */
+ { 0x00000e62, 0x1f14 }, /* R3682 (0xe62) - EQ4_17 */
+ { 0x00000e63, 0x058c }, /* R3683 (0xe63) - EQ4_18 */
+ { 0x00000e64, 0x0563 }, /* R3684 (0xe64) - EQ4_19 */
+ { 0x00000e65, 0x4000 }, /* R3685 (0xe65) - EQ4_20 */
+ { 0x00000e66, 0x0b75 }, /* R3686 (0xe66) - EQ4_21 */
+ { 0x00000e80, 0x0018 }, /* R3712 (0xe80) - DRC1 ctrl1 */
+ { 0x00000e81, 0x0933 }, /* R3713 (0xe81) - DRC1 ctrl2 */
+ { 0x00000e82, 0x0018 }, /* R3714 (0xe82) - DRC1 ctrl3 */
+ { 0x00000e83, 0x0000 }, /* R3715 (0xe83) - DRC1 ctrl4 */
+ { 0x00000e84, 0x0000 }, /* R3716 (0xe84) - DRC1 ctrl5 */
+ { 0x00000e88, 0x0933 }, /* R3720 (0xe88) - DRC2 ctrl1 */
+ { 0x00000e89, 0x0018 }, /* R3721 (0xe89) - DRC2 ctrl2 */
+ { 0x00000e8a, 0x0000 }, /* R3722 (0xe8a) - DRC2 ctrl3 */
+ { 0x00000e8b, 0x0000 }, /* R3723 (0xe8b) - DRC2 ctrl4 */
+ { 0x00000e8c, 0x0040 }, /* R3724 (0xe8c) - DRC2 ctrl5 */
+ { 0x00000ec0, 0x0000 }, /* R3776 (0xec0) - HPLPF1_1 */
+ { 0x00000ec1, 0x0000 }, /* R3777 (0xec1) - HPLPF1_2 */
+ { 0x00000ec4, 0x0000 }, /* R3780 (0xec4) - HPLPF2_1 */
+ { 0x00000ec5, 0x0000 }, /* R3781 (0xec5) - HPLPF2_2 */
+ { 0x00000ec8, 0x0000 }, /* R3784 (0xec8) - HPLPF3_1 */
+ { 0x00000ec9, 0x0000 }, /* R3785 (0xec9) - HPLPF3_2 */
+ { 0x00000ecc, 0x0000 }, /* R3788 (0xecc) - HPLPF4_1 */
+ { 0x00000ecd, 0x0000 }, /* R3789 (0xecd) - HPLPF4_2 */
+ { 0x00000ed0, 0x0000 }, /* R3792 (0xed0) - ASRC2_ENABLE */
+ { 0x00000ed2, 0x0000 }, /* R3794 (0xed2) - ASRC2_RATE1 */
+ { 0x00000ed3, 0x4000 }, /* R3795 (0xed3) - ASRC2_RATE2 */
+ { 0x00000ee0, 0x0000 }, /* R3808 (0xee0) - ASRC1_ENABLE */
+ { 0x00000ee2, 0x0000 }, /* R3810 (0xee2) - ASRC1_RATE1 */
+ { 0x00000ee3, 0x4000 }, /* R3811 (0xee3) - ASRC1_RATE2 */
+ { 0x00000ef0, 0x0000 }, /* R3824 (0xef0) - ISRC 1 CTRL 1 */
+ { 0x00000ef1, 0x0001 }, /* R3825 (0xef1) - ISRC 1 CTRL 2 */
+ { 0x00000ef2, 0x0000 }, /* R3826 (0xef2) - ISRC 1 CTRL 3 */
+ { 0x00000ef3, 0x0000 }, /* R3827 (0xef3) - ISRC 2 CTRL 1 */
+ { 0x00000ef4, 0x0001 }, /* R3828 (0xef4) - ISRC 2 CTRL 2 */
+ { 0x00000ef5, 0x0000 }, /* R3829 (0xef5) - ISRC 2 CTRL 3 */
+ { 0x00000ef6, 0x0000 }, /* R3830 (0xef6) - ISRC 3 CTRL 1 */
+ { 0x00000ef7, 0x0001 }, /* R3831 (0xef7) - ISRC 3 CTRL 2 */
+ { 0x00000ef8, 0x0000 }, /* R3832 (0xef8) - ISRC 3 CTRL 3 */
+ { 0x00000ef9, 0x0000 }, /* R3833 (0xef9) - ISRC 4 CTRL 1 */
+ { 0x00000efa, 0x0001 }, /* R3834 (0xefa) - ISRC 4 CTRL 2 */
+ { 0x00000efb, 0x0000 }, /* R3835 (0xefb) - ISRC 4 CTRL 3 */
+ { 0x00000f01, 0x0000 }, /* R3841 (0xf01) - ANC_SRC */
+ { 0x00000f02, 0x0000 }, /* R3842 (0xf02) - DSP Status */
+ { 0x00000f08, 0x001c }, /* R3848 (0xf08) - ANC Coefficient */
+ { 0x00000f09, 0x0000 }, /* R3849 (0xf09) - ANC Coefficient */
+ { 0x00000f0a, 0x0000 }, /* R3850 (0xf0a) - ANC Coefficient */
+ { 0x00000f0b, 0x0000 }, /* R3851 (0xf0b) - ANC Coefficient */
+ { 0x00000f0c, 0x0000 }, /* R3852 (0xf0c) - ANC Coefficient */
+ { 0x00000f0d, 0x0000 }, /* R3853 (0xf0d) - ANC Coefficient */
+ { 0x00000f0e, 0x0000 }, /* R3854 (0xf0e) - ANC Coefficient */
+ { 0x00000f0f, 0x0000 }, /* R3855 (0xf0f) - ANC Coefficient */
+ { 0x00000f10, 0x0000 }, /* R3856 (0xf10) - ANC Coefficient */
+ { 0x00000f11, 0x0000 }, /* R3857 (0xf11) - ANC Coefficient */
+ { 0x00000f12, 0x0000 }, /* R3858 (0xf12) - ANC Coefficient */
+ { 0x00000f15, 0x0000 }, /* R3861 (0xf15) - FCL Filter Control */
+ { 0x00000f17, 0x0004 }, /* R3863 (0xf17) - FCL ADC Reformatter Control */
+ { 0x00000f18, 0x0004 }, /* R3864 (0xf18) - ANC Coefficient */
+ { 0x00000f19, 0x0002 }, /* R3865 (0xf19) - ANC Coefficient */
+ { 0x00000f1a, 0x0000 }, /* R3866 (0xf1a) - ANC Coefficient */
+ { 0x00000f1b, 0x0010 }, /* R3867 (0xf1b) - ANC Coefficient */
+ { 0x00000f1c, 0x0000 }, /* R3868 (0xf1c) - ANC Coefficient */
+ { 0x00000f1d, 0x0000 }, /* R3869 (0xf1d) - ANC Coefficient */
+ { 0x00000f1e, 0x0000 }, /* R3870 (0xf1e) - ANC Coefficient */
+ { 0x00000f1f, 0x0000 }, /* R3871 (0xf1f) - ANC Coefficient */
+ { 0x00000f20, 0x0000 }, /* R3872 (0xf20) - ANC Coefficient */
+ { 0x00000f21, 0x0000 }, /* R3873 (0xf21) - ANC Coefficient */
+ { 0x00000f22, 0x0000 }, /* R3874 (0xf22) - ANC Coefficient */
+ { 0x00000f23, 0x0000 }, /* R3875 (0xf23) - ANC Coefficient */
+ { 0x00000f24, 0x0000 }, /* R3876 (0xf24) - ANC Coefficient */
+ { 0x00000f25, 0x0000 }, /* R3877 (0xf25) - ANC Coefficient */
+ { 0x00000f26, 0x0000 }, /* R3878 (0xf26) - ANC Coefficient */
+ { 0x00000f27, 0x0000 }, /* R3879 (0xf27) - ANC Coefficient */
+ { 0x00000f28, 0x0000 }, /* R3880 (0xf28) - ANC Coefficient */
+ { 0x00000f29, 0x0000 }, /* R3881 (0xf29) - ANC Coefficient */
+ { 0x00000f2a, 0x0000 }, /* R3882 (0xf2a) - ANC Coefficient */
+ { 0x00000f2b, 0x0000 }, /* R3883 (0xf2b) - ANC Coefficient */
+ { 0x00000f2c, 0x0000 }, /* R3884 (0xf2c) - ANC Coefficient */
+ { 0x00000f2d, 0x0000 }, /* R3885 (0xf2d) - ANC Coefficient */
+ { 0x00000f2e, 0x0000 }, /* R3886 (0xf2e) - ANC Coefficient */
+ { 0x00000f2f, 0x0000 }, /* R3887 (0xf2f) - ANC Coefficient */
+ { 0x00000f30, 0x0000 }, /* R3888 (0xf30) - ANC Coefficient */
+ { 0x00000f31, 0x0000 }, /* R3889 (0xf31) - ANC Coefficient */
+ { 0x00000f32, 0x0000 }, /* R3890 (0xf32) - ANC Coefficient */
+ { 0x00000f33, 0x0000 }, /* R3891 (0xf33) - ANC Coefficient */
+ { 0x00000f34, 0x0000 }, /* R3892 (0xf34) - ANC Coefficient */
+ { 0x00000f35, 0x0000 }, /* R3893 (0xf35) - ANC Coefficient */
+ { 0x00000f36, 0x0000 }, /* R3894 (0xf36) - ANC Coefficient */
+ { 0x00000f37, 0x0000 }, /* R3895 (0xf37) - ANC Coefficient */
+ { 0x00000f38, 0x0000 }, /* R3896 (0xf38) - ANC Coefficient */
+ { 0x00000f39, 0x0000 }, /* R3897 (0xf39) - ANC Coefficient */
+ { 0x00000f3a, 0x0000 }, /* R3898 (0xf3a) - ANC Coefficient */
+ { 0x00000f3b, 0x0000 }, /* R3899 (0xf3b) - ANC Coefficient */
+ { 0x00000f3c, 0x0000 }, /* R3900 (0xf3c) - ANC Coefficient */
+ { 0x00000f3d, 0x0000 }, /* R3901 (0xf3d) - ANC Coefficient */
+ { 0x00000f3e, 0x0000 }, /* R3902 (0xf3e) - ANC Coefficient */
+ { 0x00000f3f, 0x0000 }, /* R3903 (0xf3f) - ANC Coefficient */
+ { 0x00000f40, 0x0000 }, /* R3904 (0xf40) - ANC Coefficient */
+ { 0x00000f41, 0x0000 }, /* R3905 (0xf41) - ANC Coefficient */
+ { 0x00000f42, 0x0000 }, /* R3906 (0xf42) - ANC Coefficient */
+ { 0x00000f43, 0x0000 }, /* R3907 (0xf43) - ANC Coefficient */
+ { 0x00000f44, 0x0000 }, /* R3908 (0xf44) - ANC Coefficient */
+ { 0x00000f45, 0x0000 }, /* R3909 (0xf45) - ANC Coefficient */
+ { 0x00000f46, 0x0000 }, /* R3910 (0xf46) - ANC Coefficient */
+ { 0x00000f47, 0x0000 }, /* R3911 (0xf47) - ANC Coefficient */
+ { 0x00000f48, 0x0000 }, /* R3912 (0xf48) - ANC Coefficient */
+ { 0x00000f49, 0x0000 }, /* R3913 (0xf49) - ANC Coefficient */
+ { 0x00000f4a, 0x0000 }, /* R3914 (0xf4a) - ANC Coefficient */
+ { 0x00000f4b, 0x0000 }, /* R3915 (0xf4b) - ANC Coefficient */
+ { 0x00000f4c, 0x0000 }, /* R3916 (0xf4c) - ANC Coefficient */
+ { 0x00000f4d, 0x0000 }, /* R3917 (0xf4d) - ANC Coefficient */
+ { 0x00000f4e, 0x0000 }, /* R3918 (0xf4e) - ANC Coefficient */
+ { 0x00000f4f, 0x0000 }, /* R3919 (0xf4f) - ANC Coefficient */
+ { 0x00000f50, 0x0000 }, /* R3920 (0xf50) - ANC Coefficient */
+ { 0x00000f51, 0x0000 }, /* R3921 (0xf51) - ANC Coefficient */
+ { 0x00000f52, 0x0000 }, /* R3922 (0xf52) - ANC Coefficient */
+ { 0x00000f53, 0x0000 }, /* R3923 (0xf53) - ANC Coefficient */
+ { 0x00000f54, 0x0000 }, /* R3924 (0xf54) - ANC Coefficient */
+ { 0x00000f55, 0x0000 }, /* R3925 (0xf55) - ANC Coefficient */
+ { 0x00000f56, 0x0000 }, /* R3926 (0xf56) - ANC Coefficient */
+ { 0x00000f57, 0x0000 }, /* R3927 (0xf57) - ANC Coefficient */
+ { 0x00000f58, 0x0000 }, /* R3928 (0xf58) - ANC Coefficient */
+ { 0x00000f59, 0x0000 }, /* R3929 (0xf59) - ANC Coefficient */
+ { 0x00000f5a, 0x0000 }, /* R3930 (0xf5a) - ANC Coefficient */
+ { 0x00000f5b, 0x0000 }, /* R3931 (0xf5b) - ANC Coefficient */
+ { 0x00000f5c, 0x0000 }, /* R3932 (0xf5c) - ANC Coefficient */
+ { 0x00000f5d, 0x0000 }, /* R3933 (0xf5d) - ANC Coefficient */
+ { 0x00000f5e, 0x0000 }, /* R3934 (0xf5e) - ANC Coefficient */
+ { 0x00000f5f, 0x0000 }, /* R3935 (0xf5f) - ANC Coefficient */
+ { 0x00000f60, 0x0000 }, /* R3936 (0xf60) - ANC Coefficient */
+ { 0x00000f61, 0x0000 }, /* R3937 (0xf61) - ANC Coefficient */
+ { 0x00000f62, 0x0000 }, /* R3938 (0xf62) - ANC Coefficient */
+ { 0x00000f63, 0x0000 }, /* R3939 (0xf63) - ANC Coefficient */
+ { 0x00000f64, 0x0000 }, /* R3940 (0xf64) - ANC Coefficient */
+ { 0x00000f65, 0x0000 }, /* R3941 (0xf65) - ANC Coefficient */
+ { 0x00000f66, 0x0000 }, /* R3942 (0xf66) - ANC Coefficient */
+ { 0x00000f67, 0x0000 }, /* R3943 (0xf67) - ANC Coefficient */
+ { 0x00000f68, 0x0000 }, /* R3944 (0xf68) - ANC Coefficient */
+ { 0x00000f69, 0x0000 }, /* R3945 (0xf69) - ANC Coefficient */
+ { 0x00000f71, 0x0000 }, /* R3953 (0xf71) - FCR Filter Control */
+ { 0x00000f73, 0x0004 }, /* R3955 (0xf73) - FCR ADC Reformatter Control */
+ { 0x00000f74, 0x0004 }, /* R3956 (0xf74) - ANC Coefficient */
+ { 0x00000f75, 0x0002 }, /* R3957 (0xf75) - ANC Coefficient */
+ { 0x00000f76, 0x0000 }, /* R3958 (0xf76) - ANC Coefficient */
+ { 0x00000f77, 0x0010 }, /* R3959 (0xf77) - ANC Coefficient */
+ { 0x00000f78, 0x0000 }, /* R3960 (0xf78) - ANC Coefficient */
+ { 0x00000f79, 0x0000 }, /* R3961 (0xf79) - ANC Coefficient */
+ { 0x00000f7a, 0x0000 }, /* R3962 (0xf7a) - ANC Coefficient */
+ { 0x00000f7b, 0x0000 }, /* R3963 (0xf7b) - ANC Coefficient */
+ { 0x00000f7c, 0x0000 }, /* R3964 (0xf7c) - ANC Coefficient */
+ { 0x00000f7d, 0x0000 }, /* R3965 (0xf7d) - ANC Coefficient */
+ { 0x00000f7e, 0x0000 }, /* R3966 (0xf7e) - ANC Coefficient */
+ { 0x00000f7f, 0x0000 }, /* R3967 (0xf7f) - ANC Coefficient */
+ { 0x00000f80, 0x0000 }, /* R3968 (0xf80) - ANC Coefficient */
+ { 0x00000f81, 0x0000 }, /* R3969 (0xf81) - ANC Coefficient */
+ { 0x00000f82, 0x0000 }, /* R3970 (0xf82) - ANC Coefficient */
+ { 0x00000f83, 0x0000 }, /* R3971 (0xf83) - ANC Coefficient */
+ { 0x00000f84, 0x0000 }, /* R3972 (0xf84) - ANC Coefficient */
+ { 0x00000f85, 0x0000 }, /* R3973 (0xf85) - ANC Coefficient */
+ { 0x00000f86, 0x0000 }, /* R3974 (0xf86) - ANC Coefficient */
+ { 0x00000f87, 0x0000 }, /* R3975 (0xf87) - ANC Coefficient */
+ { 0x00000f88, 0x0000 }, /* R3976 (0xf88) - ANC Coefficient */
+ { 0x00000f89, 0x0000 }, /* R3977 (0xf89) - ANC Coefficient */
+ { 0x00000f8a, 0x0000 }, /* R3978 (0xf8a) - ANC Coefficient */
+ { 0x00000f8b, 0x0000 }, /* R3979 (0xf8b) - ANC Coefficient */
+ { 0x00000f8c, 0x0000 }, /* R3980 (0xf8c) - ANC Coefficient */
+ { 0x00000f8d, 0x0000 }, /* R3981 (0xf8d) - ANC Coefficient */
+ { 0x00000f8e, 0x0000 }, /* R3982 (0xf8e) - ANC Coefficient */
+ { 0x00000f8f, 0x0000 }, /* R3983 (0xf8f) - ANC Coefficient */
+ { 0x00000f90, 0x0000 }, /* R3984 (0xf90) - ANC Coefficient */
+ { 0x00000f91, 0x0000 }, /* R3985 (0xf91) - ANC Coefficient */
+ { 0x00000f92, 0x0000 }, /* R3986 (0xf92) - ANC Coefficient */
+ { 0x00000f93, 0x0000 }, /* R3987 (0xf93) - ANC Coefficient */
+ { 0x00000f94, 0x0000 }, /* R3988 (0xf94) - ANC Coefficient */
+ { 0x00000f95, 0x0000 }, /* R3989 (0xf95) - ANC Coefficient */
+ { 0x00000f96, 0x0000 }, /* R3990 (0xf96) - ANC Coefficient */
+ { 0x00000f97, 0x0000 }, /* R3991 (0xf97) - ANC Coefficient */
+ { 0x00000f98, 0x0000 }, /* R3992 (0xf98) - ANC Coefficient */
+ { 0x00000f99, 0x0000 }, /* R3993 (0xf99) - ANC Coefficient */
+ { 0x00000f9a, 0x0000 }, /* R3994 (0xf9a) - ANC Coefficient */
+ { 0x00000f9b, 0x0000 }, /* R3995 (0xf9b) - ANC Coefficient */
+ { 0x00000f9c, 0x0000 }, /* R3996 (0xf9c) - ANC Coefficient */
+ { 0x00000f9d, 0x0000 }, /* R3997 (0xf9d) - ANC Coefficient */
+ { 0x00000f9e, 0x0000 }, /* R3998 (0xf9e) - ANC Coefficient */
+ { 0x00000f9f, 0x0000 }, /* R3999 (0xf9f) - ANC Coefficient */
+ { 0x00000fa0, 0x0000 }, /* R4000 (0xfa0) - ANC Coefficient */
+ { 0x00000fa1, 0x0000 }, /* R4001 (0xfa1) - ANC Coefficient */
+ { 0x00000fa2, 0x0000 }, /* R4002 (0xfa2) - ANC Coefficient */
+ { 0x00000fa3, 0x0000 }, /* R4003 (0xfa3) - ANC Coefficient */
+ { 0x00000fa4, 0x0000 }, /* R4004 (0xfa4) - ANC Coefficient */
+ { 0x00000fa5, 0x0000 }, /* R4005 (0xfa5) - ANC Coefficient */
+ { 0x00000fa6, 0x0000 }, /* R4006 (0xfa6) - ANC Coefficient */
+ { 0x00000fa7, 0x0000 }, /* R4007 (0xfa7) - ANC Coefficient */
+ { 0x00000fa8, 0x0000 }, /* R4008 (0xfa8) - ANC Coefficient */
+ { 0x00000fa9, 0x0000 }, /* R4009 (0xfa9) - ANC Coefficient */
+ { 0x00000faa, 0x0000 }, /* R4010 (0xfaa) - ANC Coefficient */
+ { 0x00000fab, 0x0000 }, /* R4011 (0xfab) - ANC Coefficient */
+ { 0x00000fac, 0x0000 }, /* R4012 (0xfac) - ANC Coefficient */
+ { 0x00000fad, 0x0000 }, /* R4013 (0xfad) - ANC Coefficient */
+ { 0x00000fae, 0x0000 }, /* R4014 (0xfae) - ANC Coefficient */
+ { 0x00000faf, 0x0000 }, /* R4015 (0xfaf) - ANC Coefficient */
+ { 0x00000fb0, 0x0000 }, /* R4016 (0xfb0) - ANC Coefficient */
+ { 0x00000fb1, 0x0000 }, /* R4017 (0xfb1) - ANC Coefficient */
+ { 0x00000fb2, 0x0000 }, /* R4018 (0xfb2) - ANC Coefficient */
+ { 0x00000fb3, 0x0000 }, /* R4019 (0xfb3) - ANC Coefficient */
+ { 0x00000fb4, 0x0000 }, /* R4020 (0xfb4) - ANC Coefficient */
+ { 0x00000fb5, 0x0000 }, /* R4021 (0xfb5) - ANC Coefficient */
+ { 0x00000fb6, 0x0000 }, /* R4022 (0xfb6) - ANC Coefficient */
+ { 0x00000fb7, 0x0000 }, /* R4023 (0xfb7) - ANC Coefficient */
+ { 0x00000fb8, 0x0000 }, /* R4024 (0xfb8) - ANC Coefficient */
+ { 0x00000fb9, 0x0000 }, /* R4025 (0xfb9) - ANC Coefficient */
+ { 0x00000fba, 0x0000 }, /* R4026 (0xfba) - ANC Coefficient */
+ { 0x00000fbb, 0x0000 }, /* R4027 (0xfbb) - ANC Coefficient */
+ { 0x00000fbc, 0x0000 }, /* R4028 (0xfbc) - ANC Coefficient */
+ { 0x00000fbd, 0x0000 }, /* R4029 (0xfbd) - ANC Coefficient */
+ { 0x00000fbe, 0x0000 }, /* R4030 (0xfbe) - ANC Coefficient */
+ { 0x00000fbf, 0x0000 }, /* R4031 (0xfbf) - ANC Coefficient */
+ { 0x00000fc0, 0x0000 }, /* R4032 (0xfc0) - ANC Coefficient */
+ { 0x00000fc1, 0x0000 }, /* R4033 (0xfc1) - ANC Coefficient */
+ { 0x00000fc2, 0x0000 }, /* R4034 (0xfc2) - ANC Coefficient */
+ { 0x00000fc3, 0x0000 }, /* R4035 (0xfc3) - ANC Coefficient */
+ { 0x00000fc4, 0x0000 }, /* R4036 (0xfc4) - ANC Coefficient */
+ { 0x00000fc5, 0x0000 }, /* R4037 (0xfc5) - ANC Coefficient */
+ { 0x00001300, 0x0000 }, /* R4864 (0x1300) - DAC Comp 1 */
+ { 0x00001302, 0x0000 }, /* R4866 (0x1302) - DAC Comp 2 */
+ { 0x00001380, 0x0000 }, /* R4992 (0x1380) - FRF Coefficient 1L 1 */
+ { 0x00001381, 0x0000 }, /* R4993 (0x1381) - FRF Coefficient 1L 2 */
+ { 0x00001382, 0x0000 }, /* R4994 (0x1382) - FRF Coefficient 1L 3 */
+ { 0x00001383, 0x0000 }, /* R4995 (0x1383) - FRF Coefficient 1L 4 */
+ { 0x00001390, 0x0000 }, /* R5008 (0x1390) - FRF Coefficient 1R 1 */
+ { 0x00001391, 0x0000 }, /* R5009 (0x1391) - FRF Coefficient 1R 2 */
+ { 0x00001392, 0x0000 }, /* R5010 (0x1392) - FRF Coefficient 1R 3 */
+ { 0x00001393, 0x0000 }, /* R5011 (0x1393) - FRF Coefficient 1R 4 */
+ { 0x000013a0, 0x0000 }, /* R5024 (0x13a0) - FRF Coefficient 2L 1 */
+ { 0x000013a1, 0x0000 }, /* R5025 (0x13a1) - FRF Coefficient 2L 2 */
+ { 0x000013a2, 0x0000 }, /* R5026 (0x13a2) - FRF Coefficient 2L 3 */
+ { 0x000013a3, 0x0000 }, /* R5027 (0x13a3) - FRF Coefficient 2L 4 */
+ { 0x000013b0, 0x0000 }, /* R5040 (0x13b0) - FRF Coefficient 2R 1 */
+ { 0x000013b1, 0x0000 }, /* R5041 (0x13b1) - FRF Coefficient 2R 2 */
+ { 0x000013b2, 0x0000 }, /* R5042 (0x13b2) - FRF Coefficient 2R 3 */
+ { 0x000013b3, 0x0000 }, /* R5043 (0x13b3) - FRF Coefficient 2R 4 */
+ { 0x000013c0, 0x0000 }, /* R5040 (0x13c0) - FRF Coefficient 3L 1 */
+ { 0x000013c1, 0x0000 }, /* R5041 (0x13c1) - FRF Coefficient 3L 2 */
+ { 0x000013c2, 0x0000 }, /* R5042 (0x13c2) - FRF Coefficient 3L 3 */
+ { 0x000013c3, 0x0000 }, /* R5043 (0x13c3) - FRF Coefficient 3L 4 */
+ { 0x000013d0, 0x0000 }, /* R5072 (0x13d0) - FRF Coefficient 3R 1 */
+ { 0x000013d1, 0x0000 }, /* R5073 (0x13d1) - FRF Coefficient 3R 2 */
+ { 0x000013d2, 0x0000 }, /* R5074 (0x13d2) - FRF Coefficient 3R 3 */
+ { 0x000013d3, 0x0000 }, /* R5075 (0x13d3) - FRF Coefficient 3R 4 */
+ { 0x000013e0, 0x0000 }, /* R5088 (0x13e0) - FRF Coefficient 4L 1 */
+ { 0x000013e1, 0x0000 }, /* R5089 (0x13e1) - FRF Coefficient 4L 2 */
+ { 0x000013e2, 0x0000 }, /* R5090 (0x13e2) - FRF Coefficient 4L 3 */
+ { 0x000013e3, 0x0000 }, /* R5091 (0x13e3) - FRF Coefficient 4L 4 */
+ { 0x000013f0, 0x0000 }, /* R5104 (0x13f0) - FRF Coefficient 4R 1 */
+ { 0x000013f1, 0x0000 }, /* R5105 (0x13f1) - FRF Coefficient 4R 2 */
+ { 0x000013f2, 0x0000 }, /* R5106 (0x13f2) - FRF Coefficient 4R 3 */
+ { 0x000013f3, 0x0000 }, /* R5107 (0x13f3) - FRF Coefficient 4R 4 */
+ { 0x00001400, 0x0000 }, /* R5120 (0x1400) - FRF Coefficient 5L 1 */
+ { 0x00001401, 0x0000 }, /* R5121 (0x1401) - FRF Coefficient 5L 2 */
+ { 0x00001402, 0x0000 }, /* R5122 (0x1402) - FRF Coefficient 5L 3 */
+ { 0x00001403, 0x0000 }, /* R5123 (0x1403) - FRF Coefficient 5L 4 */
+ { 0x00001410, 0x0000 }, /* R5136 (0x1410) - FRF Coefficient 5R 1 */
+ { 0x00001411, 0x0000 }, /* R5137 (0x1411) - FRF Coefficient 5R 2 */
+ { 0x00001412, 0x0000 }, /* R5138 (0x1412) - FRF Coefficient 5R 3 */
+ { 0x00001413, 0x0000 }, /* R5139 (0x1413) - FRF Coefficient 5R 4 */
+ { 0x00001420, 0x0000 }, /* R5152 (0x1420) - FRF Coefficient 6L 1 */
+ { 0x00001421, 0x0000 }, /* R5153 (0x1421) - FRF Coefficient 6L 2 */
+ { 0x00001422, 0x0000 }, /* R5154 (0x1422) - FRF Coefficient 6L 3 */
+ { 0x00001423, 0x0000 }, /* R5155 (0x1423) - FRF Coefficient 6L 4 */
+ { 0x00001430, 0x0000 }, /* R5168 (0x1430) - FRF Coefficient 6R 1 */
+ { 0x00001431, 0x0000 }, /* R5169 (0x1431) - FRF Coefficient 6R 2 */
+ { 0x00001432, 0x0000 }, /* R5170 (0x1432) - FRF Coefficient 6R 3 */
+ { 0x00001433, 0x0000 }, /* R5171 (0x1433) - FRF Coefficient 6R 4 */
+ { 0x00001700, 0x2001 }, /* R5888 (0x1700) - GPIO1 Control 1 */
+ { 0x00001701, 0xe000 }, /* R5889 (0x1701) - GPIO1 Control 2 */
+ { 0x00001702, 0x2001 }, /* R5890 (0x1702) - GPIO2 Control 1 */
+ { 0x00001703, 0xe000 }, /* R5891 (0x1703) - GPIO2 Control 2 */
+ { 0x00001704, 0x2001 }, /* R5892 (0x1704) - GPIO3 Control 1 */
+ { 0x00001705, 0xe000 }, /* R5893 (0x1705) - GPIO3 Control 2 */
+ { 0x00001706, 0x2001 }, /* R5894 (0x1706) - GPIO4 Control 1 */
+ { 0x00001707, 0xe000 }, /* R5895 (0x1707) - GPIO4 Control 2 */
+ { 0x00001708, 0x2001 }, /* R5896 (0x1708) - GPIO5 Control 1 */
+ { 0x00001709, 0xe000 }, /* R5897 (0x1709) - GPIO5 Control 2 */
+ { 0x0000170a, 0x2001 }, /* R5898 (0x170a) - GPIO6 Control 1 */
+ { 0x0000170b, 0xe000 }, /* R5899 (0x170b) - GPIO6 Control 2 */
+ { 0x0000170c, 0x2001 }, /* R5900 (0x170c) - GPIO7 Control 1 */
+ { 0x0000170d, 0xe000 }, /* R5901 (0x170d) - GPIO7 Control 2 */
+ { 0x0000170e, 0x2001 }, /* R5902 (0x170e) - GPIO8 Control 1 */
+ { 0x0000170f, 0xe000 }, /* R5903 (0x170f) - GPIO8 Control 2 */
+ { 0x00001710, 0x2001 }, /* R5904 (0x1710) - GPIO9 Control 1 */
+ { 0x00001711, 0xe000 }, /* R5905 (0x1711) - GPIO9 Control 2 */
+ { 0x00001712, 0x2001 }, /* R5906 (0x1712) - GPIO10 Control 1 */
+ { 0x00001713, 0xe000 }, /* R5907 (0x1713) - GPIO10 Control 2 */
+ { 0x00001714, 0x2001 }, /* R5908 (0x1714) - GPIO11 Control 1 */
+ { 0x00001715, 0xe000 }, /* R5909 (0x1715) - GPIO11 Control 2 */
+ { 0x00001716, 0x2001 }, /* R5910 (0x1716) - GPIO12 Control 1 */
+ { 0x00001717, 0xe000 }, /* R5911 (0x1717) - GPIO12 Control 2 */
+ { 0x00001718, 0x2001 }, /* R5912 (0x1718) - GPIO13 Control 1 */
+ { 0x00001719, 0xE000 }, /* R5913 (0x1719) - GPIO13 Control 2 */
+ { 0x0000171a, 0x2001 }, /* R5914 (0x171a) - GPIO14 Control 1 */
+ { 0x0000171b, 0xE000 }, /* R5915 (0x171b) - GPIO14 Control 2 */
+ { 0x0000171c, 0x2001 }, /* R5916 (0x171c) - GPIO15 Control 1 */
+ { 0x0000171d, 0xE000 }, /* R5917 (0x171d) - GPIO15 Control 2 */
+ { 0x0000171e, 0x2001 }, /* R5918 (0x171e) - GPIO16 Control 1 */
+ { 0x0000171f, 0xE000 }, /* R5919 (0x171f) - GPIO16 Control 2 */
+ { 0x00001720, 0x2001 }, /* R5920 (0x1720) - GPIO17 Control 1 */
+ { 0x00001721, 0xe000 }, /* R5921 (0x1721) - GPIO17 Control 2 */
+ { 0x00001722, 0x2001 }, /* R5922 (0x1722) - GPIO18 Control 1 */
+ { 0x00001723, 0xe000 }, /* R5923 (0x1723) - GPIO18 Control 2 */
+ { 0x00001724, 0x2001 }, /* R5924 (0x1724) - GPIO19 Control 1 */
+ { 0x00001725, 0xe000 }, /* R5925 (0x1725) - GPIO19 Control 2 */
+ { 0x00001726, 0x2001 }, /* R5926 (0x1726) - GPIO20 Control 1 */
+ { 0x00001727, 0xe000 }, /* R5927 (0x1727) - GPIO20 Control 2 */
+ { 0x00001728, 0x2001 }, /* R5928 (0x1728) - GPIO21 Control 1 */
+ { 0x00001729, 0xe000 }, /* R5929 (0x1729) - GPIO21 Control 2 */
+ { 0x0000172a, 0x2001 }, /* R5930 (0x172a) - GPIO22 Control 1 */
+ { 0x0000172b, 0xe000 }, /* R5931 (0x172b) - GPIO22 Control 2 */
+ { 0x0000172c, 0x2001 }, /* R5932 (0x172c) - GPIO23 Control 1 */
+ { 0x0000172d, 0xe000 }, /* R5933 (0x172d) - GPIO23 Control 2 */
+ { 0x0000172e, 0x2001 }, /* R5934 (0x172e) - GPIO24 Control 1 */
+ { 0x0000172f, 0xe000 }, /* R5935 (0x172f) - GPIO24 Control 2 */
+ { 0x00001730, 0x2001 }, /* R5936 (0x1730) - GPIO25 Control 1 */
+ { 0x00001731, 0xe000 }, /* R5937 (0x1731) - GPIO25 Control 2 */
+ { 0x00001732, 0x2001 }, /* R5938 (0x1732) - GPIO26 Control 1 */
+ { 0x00001733, 0xe000 }, /* R5939 (0x1733) - GPIO26 Control 2 */
+ { 0x00001734, 0x2001 }, /* R5940 (0x1734) - GPIO27 Control 1 */
+ { 0x00001735, 0xe000 }, /* R5941 (0x1735) - GPIO27 Control 2 */
+ { 0x00001736, 0x2001 }, /* R5942 (0x1736) - GPIO28 Control 1 */
+ { 0x00001737, 0xe000 }, /* R5943 (0x1737) - GPIO28 Control 2 */
+ { 0x00001738, 0x2001 }, /* R5944 (0x1738) - GPIO29 Control 1 */
+ { 0x00001739, 0xe000 }, /* R5945 (0x1739) - GPIO29 Control 2 */
+ { 0x0000173a, 0x2001 }, /* R5946 (0x173a) - GPIO30 Control 1 */
+ { 0x0000173b, 0xe000 }, /* R5947 (0x173b) - GPIO30 Control 2 */
+ { 0x0000173c, 0x2001 }, /* R5948 (0x173c) - GPIO31 Control 1 */
+ { 0x0000173d, 0xe000 }, /* R5949 (0x173d) - GPIO31 Control 2 */
+ { 0x0000173e, 0x2001 }, /* R5950 (0x173e) - GPIO32 Control 1 */
+ { 0x0000173f, 0xe000 }, /* R5951 (0x173f) - GPIO32 Control 2 */
+ { 0x00001740, 0x2001 }, /* R5952 (0x1740) - GPIO33 Control 1 */
+ { 0x00001741, 0xe000 }, /* R5953 (0x1741) - GPIO33 Control 2 */
+ { 0x00001742, 0x2001 }, /* R5954 (0x1742) - GPIO34 Control 1 */
+ { 0x00001743, 0xe000 }, /* R5955 (0x1743) - GPIO34 Control 2 */
+ { 0x00001744, 0x2001 }, /* R5956 (0x1744) - GPIO35 Control 1 */
+ { 0x00001745, 0xe000 }, /* R5957 (0x1745) - GPIO35 Control 2 */
+ { 0x00001746, 0x2001 }, /* R5958 (0x1746) - GPIO36 Control 1 */
+ { 0x00001747, 0xe000 }, /* R5959 (0x1747) - GPIO36 Control 2 */
+ { 0x00001748, 0x2001 }, /* R5960 (0x1748) - GPIO37 Control 1 */
+ { 0x00001749, 0xe000 }, /* R5961 (0x1749) - GPIO37 Control 2 */
+ { 0x0000174a, 0x2001 }, /* R5962 (0x174a) - GPIO38 Control 1 */
+ { 0x0000174b, 0xe000 }, /* R5963 (0x174b) - GPIO38 Control 2 */
+ { 0x0000174c, 0x2001 }, /* R5964 (0x174c) - GPIO39 Control 1 */
+ { 0x0000174d, 0xe000 }, /* R5965 (0x174d) - GPIO39 Control 2 */
+ { 0x0000174e, 0x2001 }, /* R5966 (0x174e) - GPIO40 Control 1 */
+ { 0x0000174f, 0xe000 }, /* R5967 (0x174f) - GPIO40 Control 2 */
+ { 0x00001840, 0xffff }, /* R6208 (0x1840) - IRQ1 Mask 1 */
+ { 0x00001841, 0xffff }, /* R6209 (0x1841) - IRQ1 Mask 2 */
+ { 0x00001842, 0xffff }, /* R6210 (0x1842) - IRQ1 Mask 3 */
+ { 0x00001843, 0xffff }, /* R6211 (0x1843) - IRQ1 Mask 4 */
+ { 0x00001844, 0xffff }, /* R6212 (0x1844) - IRQ1 Mask 5 */
+ { 0x00001845, 0xffff }, /* R6213 (0x1845) - IRQ1 Mask 6 */
+ { 0x00001846, 0xffff }, /* R6214 (0x1846) - IRQ1 Mask 7 */
+ { 0x00001847, 0xffff }, /* R6215 (0x1847) - IRQ1 Mask 8 */
+ { 0x00001848, 0xffff }, /* R6216 (0x1848) - IRQ1 Mask 9 */
+ { 0x00001849, 0xffff }, /* R6217 (0x1849) - IRQ1 Mask 10 */
+ { 0x0000184a, 0xffff }, /* R6218 (0x184a) - IRQ1 Mask 11 */
+ { 0x0000184b, 0xffff }, /* R6219 (0x184b) - IRQ1 Mask 12 */
+ { 0x0000184c, 0xffff }, /* R6220 (0x184c) - IRQ1 Mask 13 */
+ { 0x0000184d, 0xffff }, /* R6221 (0x184d) - IRQ1 Mask 14 */
+ { 0x0000184e, 0xffff }, /* R6222 (0x184e) - IRQ1 Mask 15 */
+ { 0x0000184f, 0xffff }, /* R6223 (0x184f) - IRQ1 Mask 16 */
+ { 0x00001850, 0xffff }, /* R6224 (0x1850) - IRQ1 Mask 17 */
+ { 0x00001851, 0xffff }, /* R6225 (0x1851) - IRQ1 Mask 18 */
+ { 0x00001852, 0xffff }, /* R6226 (0x1852) - IRQ1 Mask 19 */
+ { 0x00001853, 0xffff }, /* R6227 (0x1853) - IRQ1 Mask 20 */
+ { 0x00001854, 0xffff }, /* R6228 (0x1854) - IRQ1 Mask 21 */
+ { 0x00001855, 0xffff }, /* R6229 (0x1855) - IRQ1 Mask 22 */
+ { 0x00001856, 0xffff }, /* R6230 (0x1856) - IRQ1 Mask 23 */
+ { 0x00001857, 0xffff }, /* R6231 (0x1857) - IRQ1 Mask 24 */
+ { 0x00001858, 0xffff }, /* R6232 (0x1858) - IRQ1 Mask 25 */
+ { 0x00001859, 0xffff }, /* R6233 (0x1859) - IRQ1 Mask 26 */
+ { 0x0000185a, 0xffff }, /* R6234 (0x185a) - IRQ1 Mask 27 */
+ { 0x0000185b, 0xffff }, /* R6235 (0x185b) - IRQ1 Mask 28 */
+ { 0x0000185c, 0xffff }, /* R6236 (0x185c) - IRQ1 Mask 29 */
+ { 0x0000185d, 0xffff }, /* R6237 (0x185d) - IRQ1 Mask 30 */
+ { 0x0000185e, 0xffff }, /* R6238 (0x185e) - IRQ1 Mask 31 */
+ { 0x0000185f, 0xffff }, /* R6239 (0x185f) - IRQ1 Mask 32 */
+ { 0x00001860, 0xffff }, /* R6240 (0x1860) - IRQ1 Mask 33 */
+ { 0x00001a06, 0x0000 }, /* R6662 (0x1a06) - Interrupt Debounce 7 */
+ { 0x00001a80, 0x4400 }, /* R6784 (0x1a80) - IRQ1 CTRL */
+};
+
+static bool cs47l85_is_adsp_memory(unsigned int reg)
+{
+ switch (reg) {
+ case 0x080000 ... 0x085ffe:
+ case 0x0a0000 ... 0x0a7ffe:
+ case 0x0c0000 ... 0x0c1ffe:
+ case 0x0e0000 ... 0x0e1ffe:
+ case 0x100000 ... 0x10effe:
+ case 0x120000 ... 0x12bffe:
+ case 0x136000 ... 0x137ffe:
+ case 0x140000 ... 0x14bffe:
+ case 0x160000 ... 0x161ffe:
+ case 0x180000 ... 0x18effe:
+ case 0x1a0000 ... 0x1b1ffe:
+ case 0x1b6000 ... 0x1b7ffe:
+ case 0x1c0000 ... 0x1cbffe:
+ case 0x1e0000 ... 0x1e1ffe:
+ case 0x200000 ... 0x208ffe:
+ case 0x220000 ... 0x231ffe:
+ case 0x240000 ... 0x24bffe:
+ case 0x260000 ... 0x261ffe:
+ case 0x280000 ... 0x288ffe:
+ case 0x2a0000 ... 0x2a9ffe:
+ case 0x2c0000 ... 0x2c3ffe:
+ case 0x2e0000 ... 0x2e1ffe:
+ case 0x300000 ... 0x305ffe:
+ case 0x320000 ... 0x333ffe:
+ case 0x340000 ... 0x34bffe:
+ case 0x360000 ... 0x361ffe:
+ case 0x380000 ... 0x388ffe:
+ case 0x3a0000 ... 0x3a7ffe:
+ case 0x3c0000 ... 0x3c1ffe:
+ case 0x3e0000 ... 0x3e1ffe:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static bool cs47l85_16bit_readable_register(struct device *dev,
+ unsigned int reg)
+{
+ switch (reg) {
+ case MADERA_SOFTWARE_RESET:
+ case MADERA_HARDWARE_REVISION:
+ case MADERA_WRITE_SEQUENCER_CTRL_0:
+ case MADERA_WRITE_SEQUENCER_CTRL_1:
+ case MADERA_WRITE_SEQUENCER_CTRL_2:
+ case MADERA_TONE_GENERATOR_1:
+ case MADERA_TONE_GENERATOR_2:
+ case MADERA_TONE_GENERATOR_3:
+ case MADERA_TONE_GENERATOR_4:
+ case MADERA_TONE_GENERATOR_5:
+ case MADERA_PWM_DRIVE_1:
+ case MADERA_PWM_DRIVE_2:
+ case MADERA_PWM_DRIVE_3:
+ case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_1:
+ case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_2:
+ case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_3:
+ case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_4:
+ case MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_1:
+ case MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_2:
+ case MADERA_HAPTICS_CONTROL_1:
+ case MADERA_HAPTICS_CONTROL_2:
+ case MADERA_HAPTICS_PHASE_1_INTENSITY:
+ case MADERA_HAPTICS_PHASE_1_DURATION:
+ case MADERA_HAPTICS_PHASE_2_INTENSITY:
+ case MADERA_HAPTICS_PHASE_2_DURATION:
+ case MADERA_HAPTICS_PHASE_3_INTENSITY:
+ case MADERA_HAPTICS_PHASE_3_DURATION:
+ case MADERA_HAPTICS_STATUS:
+ case MADERA_COMFORT_NOISE_GENERATOR:
+ case MADERA_CLOCK_32K_1:
+ case MADERA_SYSTEM_CLOCK_1:
+ case MADERA_SAMPLE_RATE_1:
+ case MADERA_SAMPLE_RATE_2:
+ case MADERA_SAMPLE_RATE_3:
+ case MADERA_SAMPLE_RATE_1_STATUS:
+ case MADERA_SAMPLE_RATE_2_STATUS:
+ case MADERA_SAMPLE_RATE_3_STATUS:
+ case MADERA_ASYNC_CLOCK_1:
+ case MADERA_ASYNC_SAMPLE_RATE_1:
+ case MADERA_ASYNC_SAMPLE_RATE_1_STATUS:
+ case MADERA_ASYNC_SAMPLE_RATE_2:
+ case MADERA_ASYNC_SAMPLE_RATE_2_STATUS:
+ case MADERA_DSP_CLOCK_1:
+ case MADERA_DSP_CLOCK_2:
+ case MADERA_OUTPUT_SYSTEM_CLOCK:
+ case MADERA_OUTPUT_ASYNC_CLOCK:
+ case MADERA_RATE_ESTIMATOR_1:
+ case MADERA_RATE_ESTIMATOR_2:
+ case MADERA_RATE_ESTIMATOR_3:
+ case MADERA_RATE_ESTIMATOR_4:
+ case MADERA_RATE_ESTIMATOR_5:
+ case MADERA_FLL1_CONTROL_1:
+ case MADERA_FLL1_CONTROL_2:
+ case MADERA_FLL1_CONTROL_3:
+ case MADERA_FLL1_CONTROL_4:
+ case MADERA_FLL1_CONTROL_5:
+ case MADERA_FLL1_CONTROL_6:
+ case MADERA_FLL1_CONTROL_7:
+ case MADERA_FLL1_LOOP_FILTER_TEST_1:
+ case MADERA_FLL1_SYNCHRONISER_1:
+ case MADERA_FLL1_SYNCHRONISER_2:
+ case MADERA_FLL1_SYNCHRONISER_3:
+ case MADERA_FLL1_SYNCHRONISER_4:
+ case MADERA_FLL1_SYNCHRONISER_5:
+ case MADERA_FLL1_SYNCHRONISER_6:
+ case MADERA_FLL1_SYNCHRONISER_7:
+ case MADERA_FLL1_SPREAD_SPECTRUM:
+ case MADERA_FLL1_GPIO_CLOCK:
+ case MADERA_FLL2_CONTROL_1:
+ case MADERA_FLL2_CONTROL_2:
+ case MADERA_FLL2_CONTROL_3:
+ case MADERA_FLL2_CONTROL_4:
+ case MADERA_FLL2_CONTROL_5:
+ case MADERA_FLL2_CONTROL_6:
+ case MADERA_FLL2_CONTROL_7:
+ case MADERA_FLL2_LOOP_FILTER_TEST_1:
+ case MADERA_FLL2_SYNCHRONISER_1:
+ case MADERA_FLL2_SYNCHRONISER_2:
+ case MADERA_FLL2_SYNCHRONISER_3:
+ case MADERA_FLL2_SYNCHRONISER_4:
+ case MADERA_FLL2_SYNCHRONISER_5:
+ case MADERA_FLL2_SYNCHRONISER_6:
+ case MADERA_FLL2_SYNCHRONISER_7:
+ case MADERA_FLL2_SPREAD_SPECTRUM:
+ case MADERA_FLL2_GPIO_CLOCK:
+ case MADERA_FLL3_CONTROL_1:
+ case MADERA_FLL3_CONTROL_2:
+ case MADERA_FLL3_CONTROL_3:
+ case MADERA_FLL3_CONTROL_4:
+ case MADERA_FLL3_CONTROL_5:
+ case MADERA_FLL3_CONTROL_6:
+ case MADERA_FLL3_CONTROL_7:
+ case MADERA_FLL3_LOOP_FILTER_TEST_1:
+ case MADERA_FLL3_SYNCHRONISER_1:
+ case MADERA_FLL3_SYNCHRONISER_2:
+ case MADERA_FLL3_SYNCHRONISER_3:
+ case MADERA_FLL3_SYNCHRONISER_4:
+ case MADERA_FLL3_SYNCHRONISER_5:
+ case MADERA_FLL3_SYNCHRONISER_6:
+ case MADERA_FLL3_SYNCHRONISER_7:
+ case MADERA_FLL3_SPREAD_SPECTRUM:
+ case MADERA_FLL3_GPIO_CLOCK:
+ case MADERA_MIC_CHARGE_PUMP_1:
+ case MADERA_HP_CHARGE_PUMP_8:
+ case MADERA_LDO1_CONTROL_1:
+ case MADERA_LDO2_CONTROL_1:
+ case MADERA_MIC_BIAS_CTRL_1:
+ case MADERA_MIC_BIAS_CTRL_2:
+ case MADERA_MIC_BIAS_CTRL_3:
+ case MADERA_MIC_BIAS_CTRL_4:
+ case MADERA_HP_CTRL_1L:
+ case MADERA_HP_CTRL_1R:
+ case MADERA_HP_CTRL_2L:
+ case MADERA_HP_CTRL_2R:
+ case MADERA_HP_CTRL_3L:
+ case MADERA_HP_CTRL_3R:
+ case MADERA_DCS_HP1L_CONTROL:
+ case MADERA_DCS_HP1R_CONTROL:
+ case MADERA_EDRE_HP_STEREO_CONTROL:
+ case MADERA_ACCESSORY_DETECT_MODE_1:
+ case MADERA_HEADPHONE_DETECT_1:
+ case MADERA_HEADPHONE_DETECT_2:
+ case MADERA_HEADPHONE_DETECT_3:
+ case MADERA_HEADPHONE_DETECT_5:
+ case MADERA_MICD_CLAMP_CONTROL:
+ case MADERA_MIC_DETECT_1_CONTROL_1:
+ case MADERA_MIC_DETECT_1_CONTROL_2:
+ case MADERA_MIC_DETECT_1_CONTROL_3:
+ case MADERA_MIC_DETECT_1_LEVEL_1:
+ case MADERA_MIC_DETECT_1_LEVEL_2:
+ case MADERA_MIC_DETECT_1_LEVEL_3:
+ case MADERA_MIC_DETECT_1_LEVEL_4:
+ case MADERA_MIC_DETECT_1_CONTROL_4:
+ case MADERA_GP_SWITCH_1:
+ case MADERA_JACK_DETECT_ANALOGUE:
+ case MADERA_INPUT_ENABLES:
+ case MADERA_INPUT_ENABLES_STATUS:
+ case MADERA_INPUT_RATE:
+ case MADERA_INPUT_VOLUME_RAMP:
+ case MADERA_HPF_CONTROL:
+ case MADERA_IN1L_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_1L:
+ case MADERA_DMIC1L_CONTROL:
+ case MADERA_IN1R_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_1R:
+ case MADERA_DMIC1R_CONTROL:
+ case MADERA_IN2L_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_2L:
+ case MADERA_DMIC2L_CONTROL:
+ case MADERA_IN2R_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_2R:
+ case MADERA_DMIC2R_CONTROL:
+ case MADERA_IN3L_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_3L:
+ case MADERA_DMIC3L_CONTROL:
+ case MADERA_IN3R_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_3R:
+ case MADERA_DMIC3R_CONTROL:
+ case MADERA_IN4L_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_4L:
+ case MADERA_DMIC4L_CONTROL:
+ case MADERA_IN4R_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_4R:
+ case MADERA_DMIC4R_CONTROL:
+ case MADERA_IN5L_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_5L:
+ case MADERA_DMIC5L_CONTROL:
+ case MADERA_IN5R_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_5R:
+ case MADERA_DMIC5R_CONTROL:
+ case MADERA_IN6L_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_6L:
+ case MADERA_DMIC6L_CONTROL:
+ case MADERA_IN6R_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_6R:
+ case MADERA_DMIC6R_CONTROL:
+ case MADERA_OUTPUT_ENABLES_1:
+ case MADERA_OUTPUT_STATUS_1:
+ case MADERA_RAW_OUTPUT_STATUS_1:
+ case MADERA_OUTPUT_RATE_1:
+ case MADERA_OUTPUT_VOLUME_RAMP:
+ case MADERA_OUTPUT_PATH_CONFIG_1L:
+ case MADERA_DAC_DIGITAL_VOLUME_1L:
+ case MADERA_NOISE_GATE_SELECT_1L:
+ case MADERA_OUTPUT_PATH_CONFIG_1R:
+ case MADERA_DAC_DIGITAL_VOLUME_1R:
+ case MADERA_NOISE_GATE_SELECT_1R:
+ case MADERA_OUTPUT_PATH_CONFIG_2L:
+ case MADERA_DAC_DIGITAL_VOLUME_2L:
+ case MADERA_NOISE_GATE_SELECT_2L:
+ case MADERA_OUTPUT_PATH_CONFIG_2R:
+ case MADERA_DAC_DIGITAL_VOLUME_2R:
+ case MADERA_NOISE_GATE_SELECT_2R:
+ case MADERA_OUTPUT_PATH_CONFIG_3L:
+ case MADERA_DAC_DIGITAL_VOLUME_3L:
+ case MADERA_NOISE_GATE_SELECT_3L:
+ case MADERA_OUTPUT_PATH_CONFIG_3R:
+ case MADERA_DAC_DIGITAL_VOLUME_3R:
+ case MADERA_NOISE_GATE_SELECT_3R:
+ case MADERA_OUTPUT_PATH_CONFIG_4L:
+ case MADERA_DAC_DIGITAL_VOLUME_4L:
+ case MADERA_NOISE_GATE_SELECT_4L:
+ case MADERA_OUTPUT_PATH_CONFIG_4R:
+ case MADERA_DAC_DIGITAL_VOLUME_4R:
+ case MADERA_NOISE_GATE_SELECT_4R:
+ case MADERA_OUTPUT_PATH_CONFIG_5L:
+ case MADERA_DAC_DIGITAL_VOLUME_5L:
+ case MADERA_NOISE_GATE_SELECT_5L:
+ case MADERA_OUTPUT_PATH_CONFIG_5R:
+ case MADERA_DAC_DIGITAL_VOLUME_5R:
+ case MADERA_NOISE_GATE_SELECT_5R:
+ case MADERA_OUTPUT_PATH_CONFIG_6L:
+ case MADERA_DAC_DIGITAL_VOLUME_6L:
+ case MADERA_NOISE_GATE_SELECT_6L:
+ case MADERA_OUTPUT_PATH_CONFIG_6R:
+ case MADERA_DAC_DIGITAL_VOLUME_6R:
+ case MADERA_NOISE_GATE_SELECT_6R:
+ case MADERA_DRE_ENABLE:
+ case MADERA_EDRE_ENABLE:
+ case MADERA_EDRE_MANUAL:
+ case MADERA_DAC_AEC_CONTROL_1:
+ case MADERA_DAC_AEC_CONTROL_2:
+ case MADERA_NOISE_GATE_CONTROL:
+ case MADERA_PDM_SPK1_CTRL_1:
+ case MADERA_PDM_SPK1_CTRL_2:
+ case MADERA_PDM_SPK2_CTRL_1:
+ case MADERA_PDM_SPK2_CTRL_2:
+ case MADERA_HP1_SHORT_CIRCUIT_CTRL:
+ case MADERA_HP2_SHORT_CIRCUIT_CTRL:
+ case MADERA_HP3_SHORT_CIRCUIT_CTRL:
+ case MADERA_HP_TEST_CTRL_5:
+ case MADERA_HP_TEST_CTRL_6:
+ case MADERA_AIF1_BCLK_CTRL:
+ case MADERA_AIF1_TX_PIN_CTRL:
+ case MADERA_AIF1_RX_PIN_CTRL:
+ case MADERA_AIF1_RATE_CTRL:
+ case MADERA_AIF1_FORMAT:
+ case MADERA_AIF1_RX_BCLK_RATE:
+ case MADERA_AIF1_FRAME_CTRL_1:
+ case MADERA_AIF1_FRAME_CTRL_2:
+ case MADERA_AIF1_FRAME_CTRL_3:
+ case MADERA_AIF1_FRAME_CTRL_4:
+ case MADERA_AIF1_FRAME_CTRL_5:
+ case MADERA_AIF1_FRAME_CTRL_6:
+ case MADERA_AIF1_FRAME_CTRL_7:
+ case MADERA_AIF1_FRAME_CTRL_8:
+ case MADERA_AIF1_FRAME_CTRL_9:
+ case MADERA_AIF1_FRAME_CTRL_10:
+ case MADERA_AIF1_FRAME_CTRL_11:
+ case MADERA_AIF1_FRAME_CTRL_12:
+ case MADERA_AIF1_FRAME_CTRL_13:
+ case MADERA_AIF1_FRAME_CTRL_14:
+ case MADERA_AIF1_FRAME_CTRL_15:
+ case MADERA_AIF1_FRAME_CTRL_16:
+ case MADERA_AIF1_FRAME_CTRL_17:
+ case MADERA_AIF1_FRAME_CTRL_18:
+ case MADERA_AIF1_TX_ENABLES:
+ case MADERA_AIF1_RX_ENABLES:
+ case MADERA_AIF2_BCLK_CTRL:
+ case MADERA_AIF2_TX_PIN_CTRL:
+ case MADERA_AIF2_RX_PIN_CTRL:
+ case MADERA_AIF2_RATE_CTRL:
+ case MADERA_AIF2_FORMAT:
+ case MADERA_AIF2_RX_BCLK_RATE:
+ case MADERA_AIF2_FRAME_CTRL_1:
+ case MADERA_AIF2_FRAME_CTRL_2:
+ case MADERA_AIF2_FRAME_CTRL_3:
+ case MADERA_AIF2_FRAME_CTRL_4:
+ case MADERA_AIF2_FRAME_CTRL_5:
+ case MADERA_AIF2_FRAME_CTRL_6:
+ case MADERA_AIF2_FRAME_CTRL_7:
+ case MADERA_AIF2_FRAME_CTRL_8:
+ case MADERA_AIF2_FRAME_CTRL_9:
+ case MADERA_AIF2_FRAME_CTRL_10:
+ case MADERA_AIF2_FRAME_CTRL_11:
+ case MADERA_AIF2_FRAME_CTRL_12:
+ case MADERA_AIF2_FRAME_CTRL_13:
+ case MADERA_AIF2_FRAME_CTRL_14:
+ case MADERA_AIF2_FRAME_CTRL_15:
+ case MADERA_AIF2_FRAME_CTRL_16:
+ case MADERA_AIF2_FRAME_CTRL_17:
+ case MADERA_AIF2_FRAME_CTRL_18:
+ case MADERA_AIF2_TX_ENABLES:
+ case MADERA_AIF2_RX_ENABLES:
+ case MADERA_AIF3_BCLK_CTRL:
+ case MADERA_AIF3_TX_PIN_CTRL:
+ case MADERA_AIF3_RX_PIN_CTRL:
+ case MADERA_AIF3_RATE_CTRL:
+ case MADERA_AIF3_FORMAT:
+ case MADERA_AIF3_RX_BCLK_RATE:
+ case MADERA_AIF3_FRAME_CTRL_1:
+ case MADERA_AIF3_FRAME_CTRL_2:
+ case MADERA_AIF3_FRAME_CTRL_3:
+ case MADERA_AIF3_FRAME_CTRL_4:
+ case MADERA_AIF3_FRAME_CTRL_11:
+ case MADERA_AIF3_FRAME_CTRL_12:
+ case MADERA_AIF3_TX_ENABLES:
+ case MADERA_AIF3_RX_ENABLES:
+ case MADERA_AIF4_BCLK_CTRL:
+ case MADERA_AIF4_TX_PIN_CTRL:
+ case MADERA_AIF4_RX_PIN_CTRL:
+ case MADERA_AIF4_RATE_CTRL:
+ case MADERA_AIF4_FORMAT:
+ case MADERA_AIF4_RX_BCLK_RATE:
+ case MADERA_AIF4_FRAME_CTRL_1:
+ case MADERA_AIF4_FRAME_CTRL_2:
+ case MADERA_AIF4_FRAME_CTRL_3:
+ case MADERA_AIF4_FRAME_CTRL_4:
+ case MADERA_AIF4_FRAME_CTRL_11:
+ case MADERA_AIF4_FRAME_CTRL_12:
+ case MADERA_AIF4_TX_ENABLES:
+ case MADERA_AIF4_RX_ENABLES:
+ case MADERA_SPD1_TX_CONTROL:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_1:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_2:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_3:
+ case MADERA_SLIMBUS_FRAMER_REF_GEAR:
+ case MADERA_SLIMBUS_RATES_1:
+ case MADERA_SLIMBUS_RATES_2:
+ case MADERA_SLIMBUS_RATES_3:
+ case MADERA_SLIMBUS_RATES_4:
+ case MADERA_SLIMBUS_RATES_5:
+ case MADERA_SLIMBUS_RATES_6:
+ case MADERA_SLIMBUS_RATES_7:
+ case MADERA_SLIMBUS_RATES_8:
+ case MADERA_SLIMBUS_RX_CHANNEL_ENABLE:
+ case MADERA_SLIMBUS_TX_CHANNEL_ENABLE:
+ case MADERA_SLIMBUS_RX_PORT_STATUS:
+ case MADERA_SLIMBUS_TX_PORT_STATUS:
+ case MADERA_PWM1MIX_INPUT_1_SOURCE:
+ case MADERA_PWM1MIX_INPUT_1_VOLUME:
+ case MADERA_PWM1MIX_INPUT_2_SOURCE:
+ case MADERA_PWM1MIX_INPUT_2_VOLUME:
+ case MADERA_PWM1MIX_INPUT_3_SOURCE:
+ case MADERA_PWM1MIX_INPUT_3_VOLUME:
+ case MADERA_PWM1MIX_INPUT_4_SOURCE:
+ case MADERA_PWM1MIX_INPUT_4_VOLUME:
+ case MADERA_PWM2MIX_INPUT_1_SOURCE:
+ case MADERA_PWM2MIX_INPUT_1_VOLUME:
+ case MADERA_PWM2MIX_INPUT_2_SOURCE:
+ case MADERA_PWM2MIX_INPUT_2_VOLUME:
+ case MADERA_PWM2MIX_INPUT_3_SOURCE:
+ case MADERA_PWM2MIX_INPUT_3_VOLUME:
+ case MADERA_PWM2MIX_INPUT_4_SOURCE:
+ case MADERA_PWM2MIX_INPUT_4_VOLUME:
+ case MADERA_OUT1LMIX_INPUT_1_SOURCE:
+ case MADERA_OUT1LMIX_INPUT_1_VOLUME:
+ case MADERA_OUT1LMIX_INPUT_2_SOURCE:
+ case MADERA_OUT1LMIX_INPUT_2_VOLUME:
+ case MADERA_OUT1LMIX_INPUT_3_SOURCE:
+ case MADERA_OUT1LMIX_INPUT_3_VOLUME:
+ case MADERA_OUT1LMIX_INPUT_4_SOURCE:
+ case MADERA_OUT1LMIX_INPUT_4_VOLUME:
+ case MADERA_OUT1RMIX_INPUT_1_SOURCE:
+ case MADERA_OUT1RMIX_INPUT_1_VOLUME:
+ case MADERA_OUT1RMIX_INPUT_2_SOURCE:
+ case MADERA_OUT1RMIX_INPUT_2_VOLUME:
+ case MADERA_OUT1RMIX_INPUT_3_SOURCE:
+ case MADERA_OUT1RMIX_INPUT_3_VOLUME:
+ case MADERA_OUT1RMIX_INPUT_4_SOURCE:
+ case MADERA_OUT1RMIX_INPUT_4_VOLUME:
+ case MADERA_OUT2LMIX_INPUT_1_SOURCE:
+ case MADERA_OUT2LMIX_INPUT_1_VOLUME:
+ case MADERA_OUT2LMIX_INPUT_2_SOURCE:
+ case MADERA_OUT2LMIX_INPUT_2_VOLUME:
+ case MADERA_OUT2LMIX_INPUT_3_SOURCE:
+ case MADERA_OUT2LMIX_INPUT_3_VOLUME:
+ case MADERA_OUT2LMIX_INPUT_4_SOURCE:
+ case MADERA_OUT2LMIX_INPUT_4_VOLUME:
+ case MADERA_OUT2RMIX_INPUT_1_SOURCE:
+ case MADERA_OUT2RMIX_INPUT_1_VOLUME:
+ case MADERA_OUT2RMIX_INPUT_2_SOURCE:
+ case MADERA_OUT2RMIX_INPUT_2_VOLUME:
+ case MADERA_OUT2RMIX_INPUT_3_SOURCE:
+ case MADERA_OUT2RMIX_INPUT_3_VOLUME:
+ case MADERA_OUT2RMIX_INPUT_4_SOURCE:
+ case MADERA_OUT2RMIX_INPUT_4_VOLUME:
+ case MADERA_OUT3LMIX_INPUT_1_SOURCE:
+ case MADERA_OUT3LMIX_INPUT_1_VOLUME:
+ case MADERA_OUT3LMIX_INPUT_2_SOURCE:
+ case MADERA_OUT3LMIX_INPUT_2_VOLUME:
+ case MADERA_OUT3LMIX_INPUT_3_SOURCE:
+ case MADERA_OUT3LMIX_INPUT_3_VOLUME:
+ case MADERA_OUT3LMIX_INPUT_4_SOURCE:
+ case MADERA_OUT3LMIX_INPUT_4_VOLUME:
+ case MADERA_OUT3RMIX_INPUT_1_SOURCE:
+ case MADERA_OUT3RMIX_INPUT_1_VOLUME:
+ case MADERA_OUT3RMIX_INPUT_2_SOURCE:
+ case MADERA_OUT3RMIX_INPUT_2_VOLUME:
+ case MADERA_OUT3RMIX_INPUT_3_SOURCE:
+ case MADERA_OUT3RMIX_INPUT_3_VOLUME:
+ case MADERA_OUT3RMIX_INPUT_4_SOURCE:
+ case MADERA_OUT3RMIX_INPUT_4_VOLUME:
+ case MADERA_OUT4LMIX_INPUT_1_SOURCE:
+ case MADERA_OUT4LMIX_INPUT_1_VOLUME:
+ case MADERA_OUT4LMIX_INPUT_2_SOURCE:
+ case MADERA_OUT4LMIX_INPUT_2_VOLUME:
+ case MADERA_OUT4LMIX_INPUT_3_SOURCE:
+ case MADERA_OUT4LMIX_INPUT_3_VOLUME:
+ case MADERA_OUT4LMIX_INPUT_4_SOURCE:
+ case MADERA_OUT4LMIX_INPUT_4_VOLUME:
+ case MADERA_OUT4RMIX_INPUT_1_SOURCE:
+ case MADERA_OUT4RMIX_INPUT_1_VOLUME:
+ case MADERA_OUT4RMIX_INPUT_2_SOURCE:
+ case MADERA_OUT4RMIX_INPUT_2_VOLUME:
+ case MADERA_OUT4RMIX_INPUT_3_SOURCE:
+ case MADERA_OUT4RMIX_INPUT_3_VOLUME:
+ case MADERA_OUT4RMIX_INPUT_4_SOURCE:
+ case MADERA_OUT4RMIX_INPUT_4_VOLUME:
+ case MADERA_OUT5LMIX_INPUT_1_SOURCE:
+ case MADERA_OUT5LMIX_INPUT_1_VOLUME:
+ case MADERA_OUT5LMIX_INPUT_2_SOURCE:
+ case MADERA_OUT5LMIX_INPUT_2_VOLUME:
+ case MADERA_OUT5LMIX_INPUT_3_SOURCE:
+ case MADERA_OUT5LMIX_INPUT_3_VOLUME:
+ case MADERA_OUT5LMIX_INPUT_4_SOURCE:
+ case MADERA_OUT5LMIX_INPUT_4_VOLUME:
+ case MADERA_OUT5RMIX_INPUT_1_SOURCE:
+ case MADERA_OUT5RMIX_INPUT_1_VOLUME:
+ case MADERA_OUT5RMIX_INPUT_2_SOURCE:
+ case MADERA_OUT5RMIX_INPUT_2_VOLUME:
+ case MADERA_OUT5RMIX_INPUT_3_SOURCE:
+ case MADERA_OUT5RMIX_INPUT_3_VOLUME:
+ case MADERA_OUT5RMIX_INPUT_4_SOURCE:
+ case MADERA_OUT5RMIX_INPUT_4_VOLUME:
+ case MADERA_OUT6LMIX_INPUT_1_SOURCE:
+ case MADERA_OUT6LMIX_INPUT_1_VOLUME:
+ case MADERA_OUT6LMIX_INPUT_2_SOURCE:
+ case MADERA_OUT6LMIX_INPUT_2_VOLUME:
+ case MADERA_OUT6LMIX_INPUT_3_SOURCE:
+ case MADERA_OUT6LMIX_INPUT_3_VOLUME:
+ case MADERA_OUT6LMIX_INPUT_4_SOURCE:
+ case MADERA_OUT6LMIX_INPUT_4_VOLUME:
+ case MADERA_OUT6RMIX_INPUT_1_SOURCE:
+ case MADERA_OUT6RMIX_INPUT_1_VOLUME:
+ case MADERA_OUT6RMIX_INPUT_2_SOURCE:
+ case MADERA_OUT6RMIX_INPUT_2_VOLUME:
+ case MADERA_OUT6RMIX_INPUT_3_SOURCE:
+ case MADERA_OUT6RMIX_INPUT_3_VOLUME:
+ case MADERA_OUT6RMIX_INPUT_4_SOURCE:
+ case MADERA_OUT6RMIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX1MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX1MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX1MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX1MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX1MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX1MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX1MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX1MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX2MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX2MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX2MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX2MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX2MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX2MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX2MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX2MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX3MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX3MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX3MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX3MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX3MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX3MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX3MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX3MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX4MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX4MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX4MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX4MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX4MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX4MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX4MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX4MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX5MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX5MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX5MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX5MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX5MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX5MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX5MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX5MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX6MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX6MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX6MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX6MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX6MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX6MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX6MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX6MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX7MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX7MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX7MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX7MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX7MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX7MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX7MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX7MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX8MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX8MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX8MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX8MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX8MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX8MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX8MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX8MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX1MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX1MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX1MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX1MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX1MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX1MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX1MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX1MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX2MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX2MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX2MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX2MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX2MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX2MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX2MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX2MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX3MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX3MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX3MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX3MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX3MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX3MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX3MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX3MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX4MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX4MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX4MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX4MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX4MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX4MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX4MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX4MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX5MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX5MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX5MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX5MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX5MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX5MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX5MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX5MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX6MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX6MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX6MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX6MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX6MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX6MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX6MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX6MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX7MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX7MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX7MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX7MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX7MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX7MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX7MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX7MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX8MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX8MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX8MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX8MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX8MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX8MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX8MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX8MIX_INPUT_4_VOLUME:
+ case MADERA_AIF3TX1MIX_INPUT_1_SOURCE:
+ case MADERA_AIF3TX1MIX_INPUT_1_VOLUME:
+ case MADERA_AIF3TX1MIX_INPUT_2_SOURCE:
+ case MADERA_AIF3TX1MIX_INPUT_2_VOLUME:
+ case MADERA_AIF3TX1MIX_INPUT_3_SOURCE:
+ case MADERA_AIF3TX1MIX_INPUT_3_VOLUME:
+ case MADERA_AIF3TX1MIX_INPUT_4_SOURCE:
+ case MADERA_AIF3TX1MIX_INPUT_4_VOLUME:
+ case MADERA_AIF3TX2MIX_INPUT_1_SOURCE:
+ case MADERA_AIF3TX2MIX_INPUT_1_VOLUME:
+ case MADERA_AIF3TX2MIX_INPUT_2_SOURCE:
+ case MADERA_AIF3TX2MIX_INPUT_2_VOLUME:
+ case MADERA_AIF3TX2MIX_INPUT_3_SOURCE:
+ case MADERA_AIF3TX2MIX_INPUT_3_VOLUME:
+ case MADERA_AIF3TX2MIX_INPUT_4_SOURCE:
+ case MADERA_AIF3TX2MIX_INPUT_4_VOLUME:
+ case MADERA_AIF4TX1MIX_INPUT_1_SOURCE:
+ case MADERA_AIF4TX1MIX_INPUT_1_VOLUME:
+ case MADERA_AIF4TX1MIX_INPUT_2_SOURCE:
+ case MADERA_AIF4TX1MIX_INPUT_2_VOLUME:
+ case MADERA_AIF4TX1MIX_INPUT_3_SOURCE:
+ case MADERA_AIF4TX1MIX_INPUT_3_VOLUME:
+ case MADERA_AIF4TX1MIX_INPUT_4_SOURCE:
+ case MADERA_AIF4TX1MIX_INPUT_4_VOLUME:
+ case MADERA_AIF4TX2MIX_INPUT_1_SOURCE:
+ case MADERA_AIF4TX2MIX_INPUT_1_VOLUME:
+ case MADERA_AIF4TX2MIX_INPUT_2_SOURCE:
+ case MADERA_AIF4TX2MIX_INPUT_2_VOLUME:
+ case MADERA_AIF4TX2MIX_INPUT_3_SOURCE:
+ case MADERA_AIF4TX2MIX_INPUT_3_VOLUME:
+ case MADERA_AIF4TX2MIX_INPUT_4_SOURCE:
+ case MADERA_AIF4TX2MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX1MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX1MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX1MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX1MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX1MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX1MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX1MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX1MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX2MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX2MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX2MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX2MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX2MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX2MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX2MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX2MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX3MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX3MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX3MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX3MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX3MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX3MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX3MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX3MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX4MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX4MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX4MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX4MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX4MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX4MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX4MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX4MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX5MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX5MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX5MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX5MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX5MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX5MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX5MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX5MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX6MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX6MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX6MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX6MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX6MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX6MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX6MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX6MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX7MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX7MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX7MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX7MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX7MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX7MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX7MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX7MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX8MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX8MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX8MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX8MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX8MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX8MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX8MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX8MIX_INPUT_4_VOLUME:
+ case MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE:
+ case MADERA_SPDIF1TX1MIX_INPUT_1_VOLUME:
+ case MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE:
+ case MADERA_SPDIF1TX2MIX_INPUT_1_VOLUME:
+ case MADERA_EQ1MIX_INPUT_1_SOURCE:
+ case MADERA_EQ1MIX_INPUT_1_VOLUME:
+ case MADERA_EQ1MIX_INPUT_2_SOURCE:
+ case MADERA_EQ1MIX_INPUT_2_VOLUME:
+ case MADERA_EQ1MIX_INPUT_3_SOURCE:
+ case MADERA_EQ1MIX_INPUT_3_VOLUME:
+ case MADERA_EQ1MIX_INPUT_4_SOURCE:
+ case MADERA_EQ1MIX_INPUT_4_VOLUME:
+ case MADERA_EQ2MIX_INPUT_1_SOURCE:
+ case MADERA_EQ2MIX_INPUT_1_VOLUME:
+ case MADERA_EQ2MIX_INPUT_2_SOURCE:
+ case MADERA_EQ2MIX_INPUT_2_VOLUME:
+ case MADERA_EQ2MIX_INPUT_3_SOURCE:
+ case MADERA_EQ2MIX_INPUT_3_VOLUME:
+ case MADERA_EQ2MIX_INPUT_4_SOURCE:
+ case MADERA_EQ2MIX_INPUT_4_VOLUME:
+ case MADERA_EQ3MIX_INPUT_1_SOURCE:
+ case MADERA_EQ3MIX_INPUT_1_VOLUME:
+ case MADERA_EQ3MIX_INPUT_2_SOURCE:
+ case MADERA_EQ3MIX_INPUT_2_VOLUME:
+ case MADERA_EQ3MIX_INPUT_3_SOURCE:
+ case MADERA_EQ3MIX_INPUT_3_VOLUME:
+ case MADERA_EQ3MIX_INPUT_4_SOURCE:
+ case MADERA_EQ3MIX_INPUT_4_VOLUME:
+ case MADERA_EQ4MIX_INPUT_1_SOURCE:
+ case MADERA_EQ4MIX_INPUT_1_VOLUME:
+ case MADERA_EQ4MIX_INPUT_2_SOURCE:
+ case MADERA_EQ4MIX_INPUT_2_VOLUME:
+ case MADERA_EQ4MIX_INPUT_3_SOURCE:
+ case MADERA_EQ4MIX_INPUT_3_VOLUME:
+ case MADERA_EQ4MIX_INPUT_4_SOURCE:
+ case MADERA_EQ4MIX_INPUT_4_VOLUME:
+ case MADERA_DRC1LMIX_INPUT_1_SOURCE:
+ case MADERA_DRC1LMIX_INPUT_1_VOLUME:
+ case MADERA_DRC1LMIX_INPUT_2_SOURCE:
+ case MADERA_DRC1LMIX_INPUT_2_VOLUME:
+ case MADERA_DRC1LMIX_INPUT_3_SOURCE:
+ case MADERA_DRC1LMIX_INPUT_3_VOLUME:
+ case MADERA_DRC1LMIX_INPUT_4_SOURCE:
+ case MADERA_DRC1LMIX_INPUT_4_VOLUME:
+ case MADERA_DRC1RMIX_INPUT_1_SOURCE:
+ case MADERA_DRC1RMIX_INPUT_1_VOLUME:
+ case MADERA_DRC1RMIX_INPUT_2_SOURCE:
+ case MADERA_DRC1RMIX_INPUT_2_VOLUME:
+ case MADERA_DRC1RMIX_INPUT_3_SOURCE:
+ case MADERA_DRC1RMIX_INPUT_3_VOLUME:
+ case MADERA_DRC1RMIX_INPUT_4_SOURCE:
+ case MADERA_DRC1RMIX_INPUT_4_VOLUME:
+ case MADERA_DRC2LMIX_INPUT_1_SOURCE:
+ case MADERA_DRC2LMIX_INPUT_1_VOLUME:
+ case MADERA_DRC2LMIX_INPUT_2_SOURCE:
+ case MADERA_DRC2LMIX_INPUT_2_VOLUME:
+ case MADERA_DRC2LMIX_INPUT_3_SOURCE:
+ case MADERA_DRC2LMIX_INPUT_3_VOLUME:
+ case MADERA_DRC2LMIX_INPUT_4_SOURCE:
+ case MADERA_DRC2LMIX_INPUT_4_VOLUME:
+ case MADERA_DRC2RMIX_INPUT_1_SOURCE:
+ case MADERA_DRC2RMIX_INPUT_1_VOLUME:
+ case MADERA_DRC2RMIX_INPUT_2_SOURCE:
+ case MADERA_DRC2RMIX_INPUT_2_VOLUME:
+ case MADERA_DRC2RMIX_INPUT_3_SOURCE:
+ case MADERA_DRC2RMIX_INPUT_3_VOLUME:
+ case MADERA_DRC2RMIX_INPUT_4_SOURCE:
+ case MADERA_DRC2RMIX_INPUT_4_VOLUME:
+ case MADERA_HPLP1MIX_INPUT_1_SOURCE:
+ case MADERA_HPLP1MIX_INPUT_1_VOLUME:
+ case MADERA_HPLP1MIX_INPUT_2_SOURCE:
+ case MADERA_HPLP1MIX_INPUT_2_VOLUME:
+ case MADERA_HPLP1MIX_INPUT_3_SOURCE:
+ case MADERA_HPLP1MIX_INPUT_3_VOLUME:
+ case MADERA_HPLP1MIX_INPUT_4_SOURCE:
+ case MADERA_HPLP1MIX_INPUT_4_VOLUME:
+ case MADERA_HPLP2MIX_INPUT_1_SOURCE:
+ case MADERA_HPLP2MIX_INPUT_1_VOLUME:
+ case MADERA_HPLP2MIX_INPUT_2_SOURCE:
+ case MADERA_HPLP2MIX_INPUT_2_VOLUME:
+ case MADERA_HPLP2MIX_INPUT_3_SOURCE:
+ case MADERA_HPLP2MIX_INPUT_3_VOLUME:
+ case MADERA_HPLP2MIX_INPUT_4_SOURCE:
+ case MADERA_HPLP2MIX_INPUT_4_VOLUME:
+ case MADERA_HPLP3MIX_INPUT_1_SOURCE:
+ case MADERA_HPLP3MIX_INPUT_1_VOLUME:
+ case MADERA_HPLP3MIX_INPUT_2_SOURCE:
+ case MADERA_HPLP3MIX_INPUT_2_VOLUME:
+ case MADERA_HPLP3MIX_INPUT_3_SOURCE:
+ case MADERA_HPLP3MIX_INPUT_3_VOLUME:
+ case MADERA_HPLP3MIX_INPUT_4_SOURCE:
+ case MADERA_HPLP3MIX_INPUT_4_VOLUME:
+ case MADERA_HPLP4MIX_INPUT_1_SOURCE:
+ case MADERA_HPLP4MIX_INPUT_1_VOLUME:
+ case MADERA_HPLP4MIX_INPUT_2_SOURCE:
+ case MADERA_HPLP4MIX_INPUT_2_VOLUME:
+ case MADERA_HPLP4MIX_INPUT_3_SOURCE:
+ case MADERA_HPLP4MIX_INPUT_3_VOLUME:
+ case MADERA_HPLP4MIX_INPUT_4_SOURCE:
+ case MADERA_HPLP4MIX_INPUT_4_VOLUME:
+ case MADERA_DSP1LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP1LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP1LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP1LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP1LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP1LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP1LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP1LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP1RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP1RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP1RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP1RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP1RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP1RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP1RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP1RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP1AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP2LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP2LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP2LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP2RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP2RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP2RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP2RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP2RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP2RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP2RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP2RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP2AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP3LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP3LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP3LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP3RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP3RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP3RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP3RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP3RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP3RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP3RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP3RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP3AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_DSP4LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP4LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP4LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP4LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP4LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP4LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP4LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP4LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP4RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP4RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP4RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP4RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP4RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP4RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP4RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP4RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP4AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP4AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP4AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP4AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP4AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP4AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_DSP5LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP5LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP5LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP5LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP5LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP5LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP5LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP5LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP5RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP5RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP5RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP5RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP5RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP5RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP5RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP5RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP5AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP5AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP5AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP5AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP5AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP5AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_ASRC1_1LMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC1_1RMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC1_2LMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC1_2RMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC2_1LMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC2_1RMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC2_2LMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC2_2RMIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1DEC1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1DEC2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1DEC3MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1DEC4MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1INT1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1INT2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1INT3MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1INT4MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2DEC1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2DEC2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2DEC3MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2DEC4MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2INT1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2INT2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2INT3MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2INT4MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC3DEC1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC3DEC2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC3INT1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC3INT2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC4DEC1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC4DEC2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC4INT1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC4INT2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP6LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP6LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP6LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP6LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP6LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP6LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP6LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP6LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP6RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP6RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP6RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP6RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP6RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP6RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP6RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP6RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP6AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP6AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP6AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP6AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP6AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP6AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_DSP7LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP7LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP7LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP7LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP7LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP7LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP7LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP7LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP7RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP7RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP7RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP7RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP7RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP7RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP7RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP7RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP7AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP7AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP7AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP7AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP7AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP7AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_FX_CTRL1:
+ case MADERA_FX_CTRL2:
+ case MADERA_EQ1_1:
+ case MADERA_EQ1_2:
+ case MADERA_EQ1_3:
+ case MADERA_EQ1_4:
+ case MADERA_EQ1_5:
+ case MADERA_EQ1_6:
+ case MADERA_EQ1_7:
+ case MADERA_EQ1_8:
+ case MADERA_EQ1_9:
+ case MADERA_EQ1_10:
+ case MADERA_EQ1_11:
+ case MADERA_EQ1_12:
+ case MADERA_EQ1_13:
+ case MADERA_EQ1_14:
+ case MADERA_EQ1_15:
+ case MADERA_EQ1_16:
+ case MADERA_EQ1_17:
+ case MADERA_EQ1_18:
+ case MADERA_EQ1_19:
+ case MADERA_EQ1_20:
+ case MADERA_EQ1_21:
+ case MADERA_EQ2_1:
+ case MADERA_EQ2_2:
+ case MADERA_EQ2_3:
+ case MADERA_EQ2_4:
+ case MADERA_EQ2_5:
+ case MADERA_EQ2_6:
+ case MADERA_EQ2_7:
+ case MADERA_EQ2_8:
+ case MADERA_EQ2_9:
+ case MADERA_EQ2_10:
+ case MADERA_EQ2_11:
+ case MADERA_EQ2_12:
+ case MADERA_EQ2_13:
+ case MADERA_EQ2_14:
+ case MADERA_EQ2_15:
+ case MADERA_EQ2_16:
+ case MADERA_EQ2_17:
+ case MADERA_EQ2_18:
+ case MADERA_EQ2_19:
+ case MADERA_EQ2_20:
+ case MADERA_EQ2_21:
+ case MADERA_EQ3_1:
+ case MADERA_EQ3_2:
+ case MADERA_EQ3_3:
+ case MADERA_EQ3_4:
+ case MADERA_EQ3_5:
+ case MADERA_EQ3_6:
+ case MADERA_EQ3_7:
+ case MADERA_EQ3_8:
+ case MADERA_EQ3_9:
+ case MADERA_EQ3_10:
+ case MADERA_EQ3_11:
+ case MADERA_EQ3_12:
+ case MADERA_EQ3_13:
+ case MADERA_EQ3_14:
+ case MADERA_EQ3_15:
+ case MADERA_EQ3_16:
+ case MADERA_EQ3_17:
+ case MADERA_EQ3_18:
+ case MADERA_EQ3_19:
+ case MADERA_EQ3_20:
+ case MADERA_EQ3_21:
+ case MADERA_EQ4_1:
+ case MADERA_EQ4_2:
+ case MADERA_EQ4_3:
+ case MADERA_EQ4_4:
+ case MADERA_EQ4_5:
+ case MADERA_EQ4_6:
+ case MADERA_EQ4_7:
+ case MADERA_EQ4_8:
+ case MADERA_EQ4_9:
+ case MADERA_EQ4_10:
+ case MADERA_EQ4_11:
+ case MADERA_EQ4_12:
+ case MADERA_EQ4_13:
+ case MADERA_EQ4_14:
+ case MADERA_EQ4_15:
+ case MADERA_EQ4_16:
+ case MADERA_EQ4_17:
+ case MADERA_EQ4_18:
+ case MADERA_EQ4_19:
+ case MADERA_EQ4_20:
+ case MADERA_EQ4_21:
+ case MADERA_DRC1_CTRL1:
+ case MADERA_DRC1_CTRL2:
+ case MADERA_DRC1_CTRL3:
+ case MADERA_DRC1_CTRL4:
+ case MADERA_DRC1_CTRL5:
+ case MADERA_DRC2_CTRL1:
+ case MADERA_DRC2_CTRL2:
+ case MADERA_DRC2_CTRL3:
+ case MADERA_DRC2_CTRL4:
+ case MADERA_DRC2_CTRL5:
+ case MADERA_HPLPF1_1:
+ case MADERA_HPLPF1_2:
+ case MADERA_HPLPF2_1:
+ case MADERA_HPLPF2_2:
+ case MADERA_HPLPF3_1:
+ case MADERA_HPLPF3_2:
+ case MADERA_HPLPF4_1:
+ case MADERA_HPLPF4_2:
+ case MADERA_ASRC1_ENABLE:
+ case MADERA_ASRC1_STATUS:
+ case MADERA_ASRC1_RATE1:
+ case MADERA_ASRC1_RATE2:
+ case MADERA_ASRC2_ENABLE:
+ case MADERA_ASRC2_STATUS:
+ case MADERA_ASRC2_RATE1:
+ case MADERA_ASRC2_RATE2:
+ case MADERA_ISRC_1_CTRL_1:
+ case MADERA_ISRC_1_CTRL_2:
+ case MADERA_ISRC_1_CTRL_3:
+ case MADERA_ISRC_2_CTRL_1:
+ case MADERA_ISRC_2_CTRL_2:
+ case MADERA_ISRC_2_CTRL_3:
+ case MADERA_ISRC_3_CTRL_1:
+ case MADERA_ISRC_3_CTRL_2:
+ case MADERA_ISRC_3_CTRL_3:
+ case MADERA_ISRC_4_CTRL_1:
+ case MADERA_ISRC_4_CTRL_2:
+ case MADERA_ISRC_4_CTRL_3:
+ case MADERA_CLOCK_CONTROL:
+ case MADERA_ANC_SRC:
+ case MADERA_DSP_STATUS:
+ case MADERA_ANC_COEFF_START ... MADERA_ANC_COEFF_END:
+ case MADERA_FCL_FILTER_CONTROL:
+ case MADERA_FCL_ADC_REFORMATTER_CONTROL:
+ case MADERA_FCL_COEFF_START ... MADERA_FCL_COEFF_END:
+ case MADERA_FCR_FILTER_CONTROL:
+ case MADERA_FCR_ADC_REFORMATTER_CONTROL:
+ case MADERA_FCR_COEFF_START ... MADERA_FCR_COEFF_END:
+ case MADERA_DAC_COMP_1:
+ case MADERA_DAC_COMP_2:
+ case MADERA_FRF_COEFFICIENT_1L_1:
+ case MADERA_FRF_COEFFICIENT_1L_2:
+ case MADERA_FRF_COEFFICIENT_1L_3:
+ case MADERA_FRF_COEFFICIENT_1L_4:
+ case MADERA_FRF_COEFFICIENT_1R_1:
+ case MADERA_FRF_COEFFICIENT_1R_2:
+ case MADERA_FRF_COEFFICIENT_1R_3:
+ case MADERA_FRF_COEFFICIENT_1R_4:
+ case MADERA_FRF_COEFFICIENT_2L_1:
+ case MADERA_FRF_COEFFICIENT_2L_2:
+ case MADERA_FRF_COEFFICIENT_2L_3:
+ case MADERA_FRF_COEFFICIENT_2L_4:
+ case MADERA_FRF_COEFFICIENT_2R_1:
+ case MADERA_FRF_COEFFICIENT_2R_2:
+ case MADERA_FRF_COEFFICIENT_2R_3:
+ case MADERA_FRF_COEFFICIENT_2R_4:
+ case MADERA_FRF_COEFFICIENT_3L_1:
+ case MADERA_FRF_COEFFICIENT_3L_2:
+ case MADERA_FRF_COEFFICIENT_3L_3:
+ case MADERA_FRF_COEFFICIENT_3L_4:
+ case MADERA_FRF_COEFFICIENT_3R_1:
+ case MADERA_FRF_COEFFICIENT_3R_2:
+ case MADERA_FRF_COEFFICIENT_3R_3:
+ case MADERA_FRF_COEFFICIENT_3R_4:
+ case MADERA_FRF_COEFFICIENT_4L_1:
+ case MADERA_FRF_COEFFICIENT_4L_2:
+ case MADERA_FRF_COEFFICIENT_4L_3:
+ case MADERA_FRF_COEFFICIENT_4L_4:
+ case MADERA_FRF_COEFFICIENT_4R_1:
+ case MADERA_FRF_COEFFICIENT_4R_2:
+ case MADERA_FRF_COEFFICIENT_4R_3:
+ case MADERA_FRF_COEFFICIENT_4R_4:
+ case MADERA_FRF_COEFFICIENT_5L_1:
+ case MADERA_FRF_COEFFICIENT_5L_2:
+ case MADERA_FRF_COEFFICIENT_5L_3:
+ case MADERA_FRF_COEFFICIENT_5L_4:
+ case MADERA_FRF_COEFFICIENT_5R_1:
+ case MADERA_FRF_COEFFICIENT_5R_2:
+ case MADERA_FRF_COEFFICIENT_5R_3:
+ case MADERA_FRF_COEFFICIENT_5R_4:
+ case MADERA_FRF_COEFFICIENT_6L_1:
+ case MADERA_FRF_COEFFICIENT_6L_2:
+ case MADERA_FRF_COEFFICIENT_6L_3:
+ case MADERA_FRF_COEFFICIENT_6L_4:
+ case MADERA_FRF_COEFFICIENT_6R_1:
+ case MADERA_FRF_COEFFICIENT_6R_2:
+ case MADERA_FRF_COEFFICIENT_6R_3:
+ case MADERA_FRF_COEFFICIENT_6R_4:
+ case MADERA_GPIO1_CTRL_1:
+ case MADERA_GPIO1_CTRL_2:
+ case MADERA_GPIO2_CTRL_1:
+ case MADERA_GPIO2_CTRL_2:
+ case MADERA_GPIO3_CTRL_1:
+ case MADERA_GPIO3_CTRL_2:
+ case MADERA_GPIO4_CTRL_1:
+ case MADERA_GPIO4_CTRL_2:
+ case MADERA_GPIO5_CTRL_1:
+ case MADERA_GPIO5_CTRL_2:
+ case MADERA_GPIO6_CTRL_1:
+ case MADERA_GPIO6_CTRL_2:
+ case MADERA_GPIO7_CTRL_1:
+ case MADERA_GPIO7_CTRL_2:
+ case MADERA_GPIO8_CTRL_1:
+ case MADERA_GPIO8_CTRL_2:
+ case MADERA_GPIO9_CTRL_1:
+ case MADERA_GPIO9_CTRL_2:
+ case MADERA_GPIO10_CTRL_1:
+ case MADERA_GPIO10_CTRL_2:
+ case MADERA_GPIO11_CTRL_1:
+ case MADERA_GPIO11_CTRL_2:
+ case MADERA_GPIO12_CTRL_1:
+ case MADERA_GPIO12_CTRL_2:
+ case MADERA_GPIO13_CTRL_1:
+ case MADERA_GPIO13_CTRL_2:
+ case MADERA_GPIO14_CTRL_1:
+ case MADERA_GPIO14_CTRL_2:
+ case MADERA_GPIO15_CTRL_1:
+ case MADERA_GPIO15_CTRL_2:
+ case MADERA_GPIO16_CTRL_1:
+ case MADERA_GPIO16_CTRL_2:
+ case MADERA_GPIO17_CTRL_1:
+ case MADERA_GPIO17_CTRL_2:
+ case MADERA_GPIO18_CTRL_1:
+ case MADERA_GPIO18_CTRL_2:
+ case MADERA_GPIO19_CTRL_1:
+ case MADERA_GPIO19_CTRL_2:
+ case MADERA_GPIO20_CTRL_1:
+ case MADERA_GPIO20_CTRL_2:
+ case MADERA_GPIO21_CTRL_1:
+ case MADERA_GPIO21_CTRL_2:
+ case MADERA_GPIO22_CTRL_1:
+ case MADERA_GPIO22_CTRL_2:
+ case MADERA_GPIO23_CTRL_1:
+ case MADERA_GPIO23_CTRL_2:
+ case MADERA_GPIO24_CTRL_1:
+ case MADERA_GPIO24_CTRL_2:
+ case MADERA_GPIO25_CTRL_1:
+ case MADERA_GPIO25_CTRL_2:
+ case MADERA_GPIO26_CTRL_1:
+ case MADERA_GPIO26_CTRL_2:
+ case MADERA_GPIO27_CTRL_1:
+ case MADERA_GPIO27_CTRL_2:
+ case MADERA_GPIO28_CTRL_1:
+ case MADERA_GPIO28_CTRL_2:
+ case MADERA_GPIO29_CTRL_1:
+ case MADERA_GPIO29_CTRL_2:
+ case MADERA_GPIO30_CTRL_1:
+ case MADERA_GPIO30_CTRL_2:
+ case MADERA_GPIO31_CTRL_1:
+ case MADERA_GPIO31_CTRL_2:
+ case MADERA_GPIO32_CTRL_1:
+ case MADERA_GPIO32_CTRL_2:
+ case MADERA_GPIO33_CTRL_1:
+ case MADERA_GPIO33_CTRL_2:
+ case MADERA_GPIO34_CTRL_1:
+ case MADERA_GPIO34_CTRL_2:
+ case MADERA_GPIO35_CTRL_1:
+ case MADERA_GPIO35_CTRL_2:
+ case MADERA_GPIO36_CTRL_1:
+ case MADERA_GPIO36_CTRL_2:
+ case MADERA_GPIO37_CTRL_1:
+ case MADERA_GPIO37_CTRL_2:
+ case MADERA_GPIO38_CTRL_1:
+ case MADERA_GPIO38_CTRL_2:
+ case MADERA_GPIO39_CTRL_1:
+ case MADERA_GPIO39_CTRL_2:
+ case MADERA_GPIO40_CTRL_1:
+ case MADERA_GPIO40_CTRL_2:
+ case MADERA_IRQ1_STATUS_1 ... MADERA_IRQ1_STATUS_33:
+ case MADERA_IRQ1_MASK_1 ... MADERA_IRQ1_MASK_33:
+ case MADERA_IRQ1_RAW_STATUS_1 ... MADERA_IRQ1_RAW_STATUS_33:
+ case MADERA_INTERRUPT_DEBOUNCE_7:
+ case MADERA_IRQ1_CTRL:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static bool cs47l85_16bit_volatile_register(struct device *dev,
+ unsigned int reg)
+{
+ switch (reg) {
+ case MADERA_SOFTWARE_RESET:
+ case MADERA_HARDWARE_REVISION:
+ case MADERA_WRITE_SEQUENCER_CTRL_0:
+ case MADERA_WRITE_SEQUENCER_CTRL_1:
+ case MADERA_WRITE_SEQUENCER_CTRL_2:
+ case MADERA_HAPTICS_STATUS:
+ case MADERA_SAMPLE_RATE_1_STATUS:
+ case MADERA_SAMPLE_RATE_2_STATUS:
+ case MADERA_SAMPLE_RATE_3_STATUS:
+ case MADERA_ASYNC_SAMPLE_RATE_1_STATUS:
+ case MADERA_ASYNC_SAMPLE_RATE_2_STATUS:
+ case MADERA_HP_CTRL_1L:
+ case MADERA_HP_CTRL_1R:
+ case MADERA_HP_CTRL_2L:
+ case MADERA_HP_CTRL_2R:
+ case MADERA_HP_CTRL_3L:
+ case MADERA_HP_CTRL_3R:
+ case MADERA_DCS_HP1L_CONTROL:
+ case MADERA_DCS_HP1R_CONTROL:
+ case MADERA_MIC_DETECT_1_CONTROL_3:
+ case MADERA_MIC_DETECT_1_CONTROL_4:
+ case MADERA_HEADPHONE_DETECT_2:
+ case MADERA_HEADPHONE_DETECT_3:
+ case MADERA_HEADPHONE_DETECT_5:
+ case MADERA_INPUT_ENABLES_STATUS:
+ case MADERA_OUTPUT_STATUS_1:
+ case MADERA_RAW_OUTPUT_STATUS_1:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_1:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_2:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_3:
+ case MADERA_SLIMBUS_RX_PORT_STATUS:
+ case MADERA_SLIMBUS_TX_PORT_STATUS:
+ case MADERA_FX_CTRL2:
+ case MADERA_ASRC2_STATUS:
+ case MADERA_ASRC1_STATUS:
+ case MADERA_CLOCK_CONTROL:
+ case MADERA_IRQ1_STATUS_1 ...MADERA_IRQ1_STATUS_33:
+ case MADERA_IRQ1_RAW_STATUS_1 ... MADERA_IRQ1_RAW_STATUS_33:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static bool cs47l85_32bit_readable_register(struct device *dev,
+ unsigned int reg)
+{
+ switch (reg) {
+ case MADERA_WSEQ_SEQUENCE_1 ... MADERA_WSEQ_SEQUENCE_508:
+ case CS47L85_OTP_HPDET_CAL_1 ... CS47L85_OTP_HPDET_CAL_2:
+ case MADERA_DSP1_CONFIG_1 ... MADERA_DSP1_SCRATCH_2:
+ case MADERA_DSP2_CONFIG_1 ... MADERA_DSP2_SCRATCH_2:
+ case MADERA_DSP3_CONFIG_1 ... MADERA_DSP3_SCRATCH_2:
+ case MADERA_DSP4_CONFIG_1 ... MADERA_DSP4_SCRATCH_2:
+ case MADERA_DSP5_CONFIG_1 ... MADERA_DSP5_SCRATCH_2:
+ case MADERA_DSP6_CONFIG_1 ... MADERA_DSP6_SCRATCH_2:
+ case MADERA_DSP7_CONFIG_1 ... MADERA_DSP7_SCRATCH_2:
+ return true;
+ default:
+ return cs47l85_is_adsp_memory(reg);
+ }
+}
+
+static bool cs47l85_32bit_volatile_register(struct device *dev,
+ unsigned int reg)
+{
+ switch (reg) {
+ case MADERA_WSEQ_SEQUENCE_1 ... MADERA_WSEQ_SEQUENCE_508:
+ case CS47L85_OTP_HPDET_CAL_1 ... CS47L85_OTP_HPDET_CAL_2:
+ case MADERA_DSP1_CONFIG_1 ... MADERA_DSP1_SCRATCH_2:
+ case MADERA_DSP2_CONFIG_1 ... MADERA_DSP2_SCRATCH_2:
+ case MADERA_DSP3_CONFIG_1 ... MADERA_DSP3_SCRATCH_2:
+ case MADERA_DSP4_CONFIG_1 ... MADERA_DSP4_SCRATCH_2:
+ case MADERA_DSP5_CONFIG_1 ... MADERA_DSP5_SCRATCH_2:
+ case MADERA_DSP6_CONFIG_1 ... MADERA_DSP6_SCRATCH_2:
+ case MADERA_DSP7_CONFIG_1 ... MADERA_DSP7_SCRATCH_2:
+ return true;
+ default:
+ return cs47l85_is_adsp_memory(reg);
+ }
+}
+
+const struct regmap_config cs47l85_16bit_spi_regmap = {
+ .name = "cs47l85_16bit",
+ .reg_bits = 32,
+ .pad_bits = 16,
+ .val_bits = 16,
+ .reg_format_endian = REGMAP_ENDIAN_BIG,
+ .val_format_endian = REGMAP_ENDIAN_BIG,
+
+ .max_register = 0x2fff,
+ .readable_reg = cs47l85_16bit_readable_register,
+ .volatile_reg = cs47l85_16bit_volatile_register,
+
+ .cache_type = REGCACHE_RBTREE,
+ .reg_defaults = cs47l85_reg_default,
+ .num_reg_defaults = ARRAY_SIZE(cs47l85_reg_default),
+};
+EXPORT_SYMBOL_GPL(cs47l85_16bit_spi_regmap);
+
+const struct regmap_config cs47l85_16bit_i2c_regmap = {
+ .name = "cs47l85_16bit",
+ .reg_bits = 32,
+ .val_bits = 16,
+ .reg_format_endian = REGMAP_ENDIAN_BIG,
+ .val_format_endian = REGMAP_ENDIAN_BIG,
+
+ .max_register = 0x2fff,
+ .readable_reg = cs47l85_16bit_readable_register,
+ .volatile_reg = cs47l85_16bit_volatile_register,
+
+ .cache_type = REGCACHE_RBTREE,
+ .reg_defaults = cs47l85_reg_default,
+ .num_reg_defaults = ARRAY_SIZE(cs47l85_reg_default),
+};
+EXPORT_SYMBOL_GPL(cs47l85_16bit_i2c_regmap);
+
+const struct regmap_config cs47l85_32bit_spi_regmap = {
+ .name = "cs47l85_32bit",
+ .reg_bits = 32,
+ .reg_stride = 2,
+ .pad_bits = 16,
+ .val_bits = 32,
+ .reg_format_endian = REGMAP_ENDIAN_BIG,
+ .val_format_endian = REGMAP_ENDIAN_BIG,
+
+ .max_register = MADERA_DSP7_SCRATCH_2,
+ .readable_reg = cs47l85_32bit_readable_register,
+ .volatile_reg = cs47l85_32bit_volatile_register,
+
+ .cache_type = REGCACHE_RBTREE,
+};
+EXPORT_SYMBOL_GPL(cs47l85_32bit_spi_regmap);
+
+const struct regmap_config cs47l85_32bit_i2c_regmap = {
+ .name = "cs47l85_32bit",
+ .reg_bits = 32,
+ .reg_stride = 2,
+ .val_bits = 32,
+ .reg_format_endian = REGMAP_ENDIAN_BIG,
+ .val_format_endian = REGMAP_ENDIAN_BIG,
+
+ .max_register = MADERA_DSP7_SCRATCH_2,
+ .readable_reg = cs47l85_32bit_readable_register,
+ .volatile_reg = cs47l85_32bit_volatile_register,
+
+ .cache_type = REGCACHE_RBTREE,
+};
+EXPORT_SYMBOL_GPL(cs47l85_32bit_i2c_regmap);
--
1.9.1
This patch adds a header file of register definitions for Cirrus
Logic "Madera" class codecs. These codecs are all based off a common
set of hardware IP so have a common register map (with a few minor
device-to-device variations). These are complex devices with a large
number of features and so have a correspondingly large register set.
The registers.h file has been auto-generated from the hardware register
definitions, stripped down to only registers we need to access from
the driver.
Signed-off-by: Richard Fitzgerald <[email protected]>
---
MAINTAINERS | 10 +
include/linux/mfd/madera/registers.h | 8832 ++++++++++++++++++++++++++++++++++
2 files changed, 8842 insertions(+)
create mode 100644 include/linux/mfd/madera/registers.h
diff --git a/MAINTAINERS b/MAINTAINERS
index 788354d..02995c9 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3258,6 +3258,16 @@ L: [email protected] (moderated for non-subscribers)
S: Maintained
F: sound/soc/codecs/cs*
+CIRRUS LOGIC MADERA CODEC DRIVERS
+M: Charles Keepax <[email protected]>
+M: Richard Fitzgerald <[email protected]>
+L: [email protected] (moderated for non-subscribers)
+L: [email protected]
+T: git https://github.com/CirrusLogic/linux-drivers.git
+W: https://github.com/CirrusLogic/linux-drivers/wiki
+S: Supported
+F: include/linux/mfd/madera/*
+
CLEANCACHE API
M: Konrad Rzeszutek Wilk <[email protected]>
L: [email protected]
diff --git a/include/linux/mfd/madera/registers.h b/include/linux/mfd/madera/registers.h
new file mode 100644
index 0000000..9108c13
--- /dev/null
+++ b/include/linux/mfd/madera/registers.h
@@ -0,0 +1,8832 @@
+/*
+ * Madera register definitions
+ *
+ * Copyright 2015-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef MADERA_REGISTERS_H
+#define MADERA_REGISTERS_H
+
+/*
+ * Register Addresses.
+ */
+#define MADERA_SOFTWARE_RESET 0x00
+#define MADERA_HARDWARE_REVISION 0x01
+#define MADERA_CTRL_IF_CFG_1 0x08
+#define MADERA_CTRL_IF_CFG_2 0x09
+#define MADERA_CTRL_IF_CFG_3 0x0A
+#define MADERA_WRITE_SEQUENCER_CTRL_0 0x16
+#define MADERA_WRITE_SEQUENCER_CTRL_1 0x17
+#define MADERA_WRITE_SEQUENCER_CTRL_2 0x18
+#define MADERA_TONE_GENERATOR_1 0x20
+#define MADERA_TONE_GENERATOR_2 0x21
+#define MADERA_TONE_GENERATOR_3 0x22
+#define MADERA_TONE_GENERATOR_4 0x23
+#define MADERA_TONE_GENERATOR_5 0x24
+#define MADERA_PWM_DRIVE_1 0x30
+#define MADERA_PWM_DRIVE_2 0x31
+#define MADERA_PWM_DRIVE_3 0x32
+#define MADERA_SEQUENCE_CONTROL 0x41
+#define MADERA_SAMPLE_RATE_SEQUENCE_SELECT_1 0x61
+#define MADERA_SAMPLE_RATE_SEQUENCE_SELECT_2 0x62
+#define MADERA_SAMPLE_RATE_SEQUENCE_SELECT_3 0x63
+#define MADERA_SAMPLE_RATE_SEQUENCE_SELECT_4 0x64
+#define MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_1 0x66
+#define MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_2 0x67
+#define MADERA_HAPTICS_CONTROL_1 0x90
+#define MADERA_HAPTICS_CONTROL_2 0x91
+#define MADERA_HAPTICS_PHASE_1_INTENSITY 0x92
+#define MADERA_HAPTICS_PHASE_1_DURATION 0x93
+#define MADERA_HAPTICS_PHASE_2_INTENSITY 0x94
+#define MADERA_HAPTICS_PHASE_2_DURATION 0x95
+#define MADERA_HAPTICS_PHASE_3_INTENSITY 0x96
+#define MADERA_HAPTICS_PHASE_3_DURATION 0x97
+#define MADERA_HAPTICS_STATUS 0x98
+#define MADERA_COMFORT_NOISE_GENERATOR 0xA0
+#define MADERA_CLOCK_32K_1 0x100
+#define MADERA_SYSTEM_CLOCK_1 0x101
+#define MADERA_SAMPLE_RATE_1 0x102
+#define MADERA_SAMPLE_RATE_2 0x103
+#define MADERA_SAMPLE_RATE_3 0x104
+#define MADERA_SAMPLE_RATE_1_STATUS 0x10A
+#define MADERA_SAMPLE_RATE_2_STATUS 0x10B
+#define MADERA_SAMPLE_RATE_3_STATUS 0x10C
+#define MADERA_ASYNC_CLOCK_1 0x112
+#define MADERA_ASYNC_SAMPLE_RATE_1 0x113
+#define MADERA_ASYNC_SAMPLE_RATE_2 0x114
+#define MADERA_ASYNC_SAMPLE_RATE_1_STATUS 0x11B
+#define MADERA_ASYNC_SAMPLE_RATE_2_STATUS 0x11C
+#define MADERA_DSP_CLOCK_1 0x120
+#define MADERA_DSP_CLOCK_2 0x122
+#define MADERA_OUTPUT_SYSTEM_CLOCK 0x149
+#define MADERA_OUTPUT_ASYNC_CLOCK 0x14A
+#define MADERA_RATE_ESTIMATOR_1 0x152
+#define MADERA_RATE_ESTIMATOR_2 0x153
+#define MADERA_RATE_ESTIMATOR_3 0x154
+#define MADERA_RATE_ESTIMATOR_4 0x155
+#define MADERA_RATE_ESTIMATOR_5 0x156
+#define MADERA_FLL1_CONTROL_1 0x171
+#define MADERA_FLL1_CONTROL_2 0x172
+#define MADERA_FLL1_CONTROL_3 0x173
+#define MADERA_FLL1_CONTROL_4 0x174
+#define MADERA_FLL1_CONTROL_5 0x175
+#define MADERA_FLL1_CONTROL_6 0x176
+#define MADERA_FLL1_LOOP_FILTER_TEST_1 0x177
+#define MADERA_FLL1_NCO_TEST_0 0x178
+#define MADERA_FLL1_CONTROL_7 0x179
+#define MADERA_FLL1_EFS_2 0x17A
+#define CS47L35_FLL1_SYNCHRONISER_1 0x17F
+#define CS47L35_FLL1_SYNCHRONISER_2 0x180
+#define CS47L35_FLL1_SYNCHRONISER_3 0x181
+#define CS47L35_FLL1_SYNCHRONISER_4 0x182
+#define CS47L35_FLL1_SYNCHRONISER_5 0x183
+#define CS47L35_FLL1_SYNCHRONISER_6 0x184
+#define CS47L35_FLL1_SYNCHRONISER_7 0x185
+#define CS47L35_FLL1_SPREAD_SPECTRUM 0x187
+#define CS47L35_FLL1_GPIO_CLOCK 0x188
+#define MADERA_FLL1_SYNCHRONISER_1 0x181
+#define MADERA_FLL1_SYNCHRONISER_2 0x182
+#define MADERA_FLL1_SYNCHRONISER_3 0x183
+#define MADERA_FLL1_SYNCHRONISER_4 0x184
+#define MADERA_FLL1_SYNCHRONISER_5 0x185
+#define MADERA_FLL1_SYNCHRONISER_6 0x186
+#define MADERA_FLL1_SYNCHRONISER_7 0x187
+#define MADERA_FLL1_SPREAD_SPECTRUM 0x189
+#define MADERA_FLL1_GPIO_CLOCK 0x18A
+#define MADERA_FLL2_CONTROL_1 0x191
+#define MADERA_FLL2_CONTROL_2 0x192
+#define MADERA_FLL2_CONTROL_3 0x193
+#define MADERA_FLL2_CONTROL_4 0x194
+#define MADERA_FLL2_CONTROL_5 0x195
+#define MADERA_FLL2_CONTROL_6 0x196
+#define MADERA_FLL2_LOOP_FILTER_TEST_1 0x197
+#define MADERA_FLL2_NCO_TEST_0 0x198
+#define MADERA_FLL2_CONTROL_7 0x199
+#define MADERA_FLL2_EFS_2 0x19A
+#define MADERA_FLL2_SYNCHRONISER_1 0x1A1
+#define MADERA_FLL2_SYNCHRONISER_2 0x1A2
+#define MADERA_FLL2_SYNCHRONISER_3 0x1A3
+#define MADERA_FLL2_SYNCHRONISER_4 0x1A4
+#define MADERA_FLL2_SYNCHRONISER_5 0x1A5
+#define MADERA_FLL2_SYNCHRONISER_6 0x1A6
+#define MADERA_FLL2_SYNCHRONISER_7 0x1A7
+#define MADERA_FLL2_SPREAD_SPECTRUM 0x1A9
+#define MADERA_FLL2_GPIO_CLOCK 0x1AA
+#define MADERA_FLL3_CONTROL_1 0x1B1
+#define MADERA_FLL3_CONTROL_2 0x1B2
+#define MADERA_FLL3_CONTROL_3 0x1B3
+#define MADERA_FLL3_CONTROL_4 0x1B4
+#define MADERA_FLL3_CONTROL_5 0x1B5
+#define MADERA_FLL3_CONTROL_6 0x1B6
+#define MADERA_FLL3_LOOP_FILTER_TEST_1 0x1B7
+#define MADERA_FLL3_NCO_TEST_0 0x1B8
+#define MADERA_FLL3_CONTROL_7 0x1B9
+#define MADERA_FLL3_SYNCHRONISER_1 0x1C1
+#define MADERA_FLL3_SYNCHRONISER_2 0x1C2
+#define MADERA_FLL3_SYNCHRONISER_3 0x1C3
+#define MADERA_FLL3_SYNCHRONISER_4 0x1C4
+#define MADERA_FLL3_SYNCHRONISER_5 0x1C5
+#define MADERA_FLL3_SYNCHRONISER_6 0x1C6
+#define MADERA_FLL3_SYNCHRONISER_7 0x1C7
+#define MADERA_FLL3_SPREAD_SPECTRUM 0x1C9
+#define MADERA_FLL3_GPIO_CLOCK 0x1CA
+#define MADERA_FLLAO_CONTROL_1 0x1D1
+#define MADERA_FLLAO_CONTROL_2 0x1D2
+#define MADERA_FLLAO_CONTROL_3 0x1D3
+#define MADERA_FLLAO_CONTROL_4 0x1D4
+#define MADERA_FLLAO_CONTROL_5 0x1D5
+#define MADERA_FLLAO_CONTROL_6 0x1D6
+#define MADERA_FLLAO_CONTROL_7 0x1D8
+#define MADERA_FLLAO_CONTROL_8 0x1DA
+#define MADERA_FLLAO_CONTROL_9 0x1DB
+#define MADERA_FLLAO_CONTROL_10 0x1DC
+#define MADERA_FLLAO_CONTROL_11 0x1DD
+#define MADERA_MIC_CHARGE_PUMP_1 0x200
+#define MADERA_HP_CHARGE_PUMP_8 0x20B
+#define MADERA_LDO1_CONTROL_1 0x210
+#define MADERA_LDO2_CONTROL_1 0x213
+#define MADERA_MIC_BIAS_CTRL_1 0x218
+#define MADERA_MIC_BIAS_CTRL_2 0x219
+#define MADERA_MIC_BIAS_CTRL_3 0x21A
+#define MADERA_MIC_BIAS_CTRL_4 0x21B
+#define MADERA_MIC_BIAS_CTRL_5 0x21C
+#define MADERA_MIC_BIAS_CTRL_6 0x21E
+#define MADERA_HP_CTRL_1L 0x225
+#define MADERA_HP_CTRL_1R 0x226
+#define MADERA_HP_CTRL_2L 0x227
+#define MADERA_HP_CTRL_2R 0x228
+#define MADERA_HP_CTRL_3L 0x229
+#define MADERA_HP_CTRL_3R 0x22A
+#define MADERA_DCS_HP1L_CONTROL 0x232
+#define MADERA_DCS_HP1R_CONTROL 0x238
+#define MADERA_EDRE_HP_STEREO_CONTROL 0x27E
+#define MADERA_ACCESSORY_DETECT_MODE_1 0x293
+#define MADERA_HEADPHONE_DETECT_0 0x299
+#define MADERA_HEADPHONE_DETECT_1 0x29B
+#define MADERA_HEADPHONE_DETECT_2 0x29C
+#define MADERA_HEADPHONE_DETECT_3 0x29D
+#define MADERA_HEADPHONE_DETECT_4 0x29E
+#define MADERA_HEADPHONE_DETECT_5 0x29F
+#define MADERA_MIC_DETECT_1_CONTROL_0 0x2A2
+#define MADERA_MIC_DETECT_1_CONTROL_1 0x2A3
+#define MADERA_MIC_DETECT_1_CONTROL_2 0x2A4
+#define MADERA_MIC_DETECT_1_CONTROL_3 0x2A5
+#define MADERA_MIC_DETECT_1_LEVEL_1 0x2A6
+#define MADERA_MIC_DETECT_1_LEVEL_2 0x2A7
+#define MADERA_MIC_DETECT_1_LEVEL_3 0x2A8
+#define MADERA_MIC_DETECT_1_LEVEL_4 0x2A9
+#define MADERA_MIC_DETECT_1_CONTROL_4 0x2AB
+#define MADERA_MIC_DETECT_2_CONTROL_0 0x2B2
+#define MADERA_MIC_DETECT_2_CONTROL_1 0x2B3
+#define MADERA_MIC_DETECT_2_CONTROL_2 0x2B4
+#define MADERA_MIC_DETECT_2_CONTROL_3 0x2B5
+#define MADERA_MIC_DETECT_2_LEVEL_1 0x2B6
+#define MADERA_MIC_DETECT_2_LEVEL_2 0x2B7
+#define MADERA_MIC_DETECT_2_LEVEL_3 0x2B8
+#define MADERA_MIC_DETECT_2_LEVEL_4 0x2B9
+#define MADERA_MIC_DETECT_2_CONTROL_4 0x2BB
+#define MADERA_MICD_CLAMP_CONTROL 0x2C6
+#define MADERA_GP_SWITCH_1 0x2C8
+#define MADERA_JACK_DETECT_ANALOGUE 0x2D3
+#define MADERA_INPUT_ENABLES 0x300
+#define MADERA_INPUT_ENABLES_STATUS 0x301
+#define MADERA_INPUT_RATE 0x308
+#define MADERA_INPUT_VOLUME_RAMP 0x309
+#define MADERA_HPF_CONTROL 0x30C
+#define MADERA_IN1L_CONTROL 0x310
+#define MADERA_ADC_DIGITAL_VOLUME_1L 0x311
+#define MADERA_DMIC1L_CONTROL 0x312
+#define MADERA_IN1L_RATE_CONTROL 0x313
+#define MADERA_IN1R_CONTROL 0x314
+#define MADERA_ADC_DIGITAL_VOLUME_1R 0x315
+#define MADERA_DMIC1R_CONTROL 0x316
+#define MADERA_IN1R_RATE_CONTROL 0x317
+#define MADERA_IN2L_CONTROL 0x318
+#define MADERA_ADC_DIGITAL_VOLUME_2L 0x319
+#define MADERA_DMIC2L_CONTROL 0x31A
+#define MADERA_IN2L_RATE_CONTROL 0x31B
+#define MADERA_IN2R_CONTROL 0x31C
+#define MADERA_ADC_DIGITAL_VOLUME_2R 0x31D
+#define MADERA_DMIC2R_CONTROL 0x31E
+#define MADERA_IN2R_RATE_CONTROL 0x31F
+#define MADERA_IN3L_CONTROL 0x320
+#define MADERA_ADC_DIGITAL_VOLUME_3L 0x321
+#define MADERA_DMIC3L_CONTROL 0x322
+#define MADERA_IN3L_RATE_CONTROL 0x323
+#define MADERA_IN3R_CONTROL 0x324
+#define MADERA_ADC_DIGITAL_VOLUME_3R 0x325
+#define MADERA_DMIC3R_CONTROL 0x326
+#define MADERA_IN3R_RATE_CONTROL 0x327
+#define MADERA_IN4L_CONTROL 0x328
+#define MADERA_ADC_DIGITAL_VOLUME_4L 0x329
+#define MADERA_DMIC4L_CONTROL 0x32A
+#define MADERA_IN4L_RATE_CONTROL 0x32B
+#define MADERA_IN4R_CONTROL 0x32C
+#define MADERA_ADC_DIGITAL_VOLUME_4R 0x32D
+#define MADERA_DMIC4R_CONTROL 0x32E
+#define MADERA_IN4R_RATE_CONTROL 0x32F
+#define MADERA_IN5L_CONTROL 0x330
+#define MADERA_ADC_DIGITAL_VOLUME_5L 0x331
+#define MADERA_DMIC5L_CONTROL 0x332
+#define MADERA_IN5L_RATE_CONTROL 0x333
+#define MADERA_IN5R_CONTROL 0x334
+#define MADERA_ADC_DIGITAL_VOLUME_5R 0x335
+#define MADERA_DMIC5R_CONTROL 0x336
+#define MADERA_IN5R_RATE_CONTROL 0x337
+#define MADERA_IN6L_CONTROL 0x338
+#define MADERA_ADC_DIGITAL_VOLUME_6L 0x339
+#define MADERA_DMIC6L_CONTROL 0x33A
+#define MADERA_IN6R_CONTROL 0x33C
+#define MADERA_ADC_DIGITAL_VOLUME_6R 0x33D
+#define MADERA_DMIC6R_CONTROL 0x33E
+#define MADERA_OUTPUT_ENABLES_1 0x400
+#define MADERA_OUTPUT_STATUS_1 0x401
+#define MADERA_RAW_OUTPUT_STATUS_1 0x406
+#define MADERA_OUTPUT_RATE_1 0x408
+#define MADERA_OUTPUT_VOLUME_RAMP 0x409
+#define MADERA_OUTPUT_PATH_CONFIG_1L 0x410
+#define MADERA_DAC_DIGITAL_VOLUME_1L 0x411
+#define MADERA_OUTPUT_PATH_CONFIG_1 0x412
+#define MADERA_NOISE_GATE_SELECT_1L 0x413
+#define MADERA_OUTPUT_PATH_CONFIG_1R 0x414
+#define MADERA_DAC_DIGITAL_VOLUME_1R 0x415
+#define MADERA_NOISE_GATE_SELECT_1R 0x417
+#define MADERA_OUTPUT_PATH_CONFIG_2L 0x418
+#define MADERA_DAC_DIGITAL_VOLUME_2L 0x419
+#define MADERA_OUTPUT_PATH_CONFIG_2 0x41A
+#define MADERA_NOISE_GATE_SELECT_2L 0x41B
+#define MADERA_OUTPUT_PATH_CONFIG_2R 0x41C
+#define MADERA_DAC_DIGITAL_VOLUME_2R 0x41D
+#define MADERA_NOISE_GATE_SELECT_2R 0x41F
+#define MADERA_OUTPUT_PATH_CONFIG_3L 0x420
+#define MADERA_DAC_DIGITAL_VOLUME_3L 0x421
+#define MADERA_NOISE_GATE_SELECT_3L 0x423
+#define MADERA_OUTPUT_PATH_CONFIG_3R 0x424
+#define MADERA_DAC_DIGITAL_VOLUME_3R 0x425
+#define MADERA_NOISE_GATE_SELECT_3R 0x427
+#define MADERA_OUTPUT_PATH_CONFIG_4L 0x428
+#define MADERA_DAC_DIGITAL_VOLUME_4L 0x429
+#define MADERA_NOISE_GATE_SELECT_4L 0x42B
+#define MADERA_OUTPUT_PATH_CONFIG_4R 0x42C
+#define MADERA_DAC_DIGITAL_VOLUME_4R 0x42D
+#define MADERA_NOISE_GATE_SELECT_4R 0x42F
+#define MADERA_OUTPUT_PATH_CONFIG_5L 0x430
+#define MADERA_DAC_DIGITAL_VOLUME_5L 0x431
+#define MADERA_NOISE_GATE_SELECT_5L 0x433
+#define MADERA_OUTPUT_PATH_CONFIG_5R 0x434
+#define MADERA_DAC_DIGITAL_VOLUME_5R 0x435
+#define MADERA_NOISE_GATE_SELECT_5R 0x437
+#define MADERA_OUTPUT_PATH_CONFIG_6L 0x438
+#define MADERA_DAC_DIGITAL_VOLUME_6L 0x439
+#define MADERA_NOISE_GATE_SELECT_6L 0x43B
+#define MADERA_OUTPUT_PATH_CONFIG_6R 0x43C
+#define MADERA_DAC_DIGITAL_VOLUME_6R 0x43D
+#define MADERA_NOISE_GATE_SELECT_6R 0x43F
+#define MADERA_DRE_ENABLE 0x440
+#define MADERA_EDRE_ENABLE 0x448
+#define MADERA_EDRE_MANUAL 0x44A
+#define MADERA_DAC_AEC_CONTROL_1 0x450
+#define MADERA_DAC_AEC_CONTROL_2 0x451
+#define MADERA_NOISE_GATE_CONTROL 0x458
+#define MADERA_PDM_SPK1_CTRL_1 0x490
+#define MADERA_PDM_SPK1_CTRL_2 0x491
+#define MADERA_PDM_SPK2_CTRL_1 0x492
+#define MADERA_PDM_SPK2_CTRL_2 0x493
+#define MADERA_HP1_SHORT_CIRCUIT_CTRL 0x4A0
+#define MADERA_HP2_SHORT_CIRCUIT_CTRL 0x4A1
+#define MADERA_HP3_SHORT_CIRCUIT_CTRL 0x4A2
+#define MADERA_HP_TEST_CTRL_1 0x4A4
+#define MADERA_HP_TEST_CTRL_5 0x4A8
+#define MADERA_HP_TEST_CTRL_6 0x4A9
+#define MADERA_AIF1_BCLK_CTRL 0x500
+#define MADERA_AIF1_TX_PIN_CTRL 0x501
+#define MADERA_AIF1_RX_PIN_CTRL 0x502
+#define MADERA_AIF1_RATE_CTRL 0x503
+#define MADERA_AIF1_FORMAT 0x504
+#define MADERA_AIF1_RX_BCLK_RATE 0x506
+#define MADERA_AIF1_FRAME_CTRL_1 0x507
+#define MADERA_AIF1_FRAME_CTRL_2 0x508
+#define MADERA_AIF1_FRAME_CTRL_3 0x509
+#define MADERA_AIF1_FRAME_CTRL_4 0x50A
+#define MADERA_AIF1_FRAME_CTRL_5 0x50B
+#define MADERA_AIF1_FRAME_CTRL_6 0x50C
+#define MADERA_AIF1_FRAME_CTRL_7 0x50D
+#define MADERA_AIF1_FRAME_CTRL_8 0x50E
+#define MADERA_AIF1_FRAME_CTRL_9 0x50F
+#define MADERA_AIF1_FRAME_CTRL_10 0x510
+#define MADERA_AIF1_FRAME_CTRL_11 0x511
+#define MADERA_AIF1_FRAME_CTRL_12 0x512
+#define MADERA_AIF1_FRAME_CTRL_13 0x513
+#define MADERA_AIF1_FRAME_CTRL_14 0x514
+#define MADERA_AIF1_FRAME_CTRL_15 0x515
+#define MADERA_AIF1_FRAME_CTRL_16 0x516
+#define MADERA_AIF1_FRAME_CTRL_17 0x517
+#define MADERA_AIF1_FRAME_CTRL_18 0x518
+#define MADERA_AIF1_TX_ENABLES 0x519
+#define MADERA_AIF1_RX_ENABLES 0x51A
+#define MADERA_AIF1_FORCE_WRITE 0x51B
+#define MADERA_AIF2_BCLK_CTRL 0x540
+#define MADERA_AIF2_TX_PIN_CTRL 0x541
+#define MADERA_AIF2_RX_PIN_CTRL 0x542
+#define MADERA_AIF2_RATE_CTRL 0x543
+#define MADERA_AIF2_FORMAT 0x544
+#define MADERA_AIF2_RX_BCLK_RATE 0x546
+#define MADERA_AIF2_FRAME_CTRL_1 0x547
+#define MADERA_AIF2_FRAME_CTRL_2 0x548
+#define MADERA_AIF2_FRAME_CTRL_3 0x549
+#define MADERA_AIF2_FRAME_CTRL_4 0x54A
+#define MADERA_AIF2_FRAME_CTRL_5 0x54B
+#define MADERA_AIF2_FRAME_CTRL_6 0x54C
+#define MADERA_AIF2_FRAME_CTRL_7 0x54D
+#define MADERA_AIF2_FRAME_CTRL_8 0x54E
+#define MADERA_AIF2_FRAME_CTRL_9 0x54F
+#define MADERA_AIF2_FRAME_CTRL_10 0x550
+#define MADERA_AIF2_FRAME_CTRL_11 0x551
+#define MADERA_AIF2_FRAME_CTRL_12 0x552
+#define MADERA_AIF2_FRAME_CTRL_13 0x553
+#define MADERA_AIF2_FRAME_CTRL_14 0x554
+#define MADERA_AIF2_FRAME_CTRL_15 0x555
+#define MADERA_AIF2_FRAME_CTRL_16 0x556
+#define MADERA_AIF2_FRAME_CTRL_17 0x557
+#define MADERA_AIF2_FRAME_CTRL_18 0x558
+#define MADERA_AIF2_TX_ENABLES 0x559
+#define MADERA_AIF2_RX_ENABLES 0x55A
+#define MADERA_AIF2_FORCE_WRITE 0x55B
+#define MADERA_AIF3_BCLK_CTRL 0x580
+#define MADERA_AIF3_TX_PIN_CTRL 0x581
+#define MADERA_AIF3_RX_PIN_CTRL 0x582
+#define MADERA_AIF3_RATE_CTRL 0x583
+#define MADERA_AIF3_FORMAT 0x584
+#define MADERA_AIF3_RX_BCLK_RATE 0x586
+#define MADERA_AIF3_FRAME_CTRL_1 0x587
+#define MADERA_AIF3_FRAME_CTRL_2 0x588
+#define MADERA_AIF3_FRAME_CTRL_3 0x589
+#define MADERA_AIF3_FRAME_CTRL_4 0x58A
+#define MADERA_AIF3_FRAME_CTRL_11 0x591
+#define MADERA_AIF3_FRAME_CTRL_12 0x592
+#define MADERA_AIF3_TX_ENABLES 0x599
+#define MADERA_AIF3_RX_ENABLES 0x59A
+#define MADERA_AIF3_FORCE_WRITE 0x59B
+#define MADERA_AIF4_BCLK_CTRL 0x5A0
+#define MADERA_AIF4_TX_PIN_CTRL 0x5A1
+#define MADERA_AIF4_RX_PIN_CTRL 0x5A2
+#define MADERA_AIF4_RATE_CTRL 0x5A3
+#define MADERA_AIF4_FORMAT 0x5A4
+#define MADERA_AIF4_RX_BCLK_RATE 0x5A6
+#define MADERA_AIF4_FRAME_CTRL_1 0x5A7
+#define MADERA_AIF4_FRAME_CTRL_2 0x5A8
+#define MADERA_AIF4_FRAME_CTRL_3 0x5A9
+#define MADERA_AIF4_FRAME_CTRL_4 0x5AA
+#define MADERA_AIF4_FRAME_CTRL_11 0x5B1
+#define MADERA_AIF4_FRAME_CTRL_12 0x5B2
+#define MADERA_AIF4_TX_ENABLES 0x5B9
+#define MADERA_AIF4_RX_ENABLES 0x5BA
+#define MADERA_AIF4_FORCE_WRITE 0x5BB
+#define MADERA_SPD1_TX_CONTROL 0x5C2
+#define MADERA_SPD1_TX_CHANNEL_STATUS_1 0x5C3
+#define MADERA_SPD1_TX_CHANNEL_STATUS_2 0x5C4
+#define MADERA_SPD1_TX_CHANNEL_STATUS_3 0x5C5
+#define MADERA_SLIMBUS_FRAMER_REF_GEAR 0x5E3
+#define MADERA_SLIMBUS_RATES_1 0x5E5
+#define MADERA_SLIMBUS_RATES_2 0x5E6
+#define MADERA_SLIMBUS_RATES_3 0x5E7
+#define MADERA_SLIMBUS_RATES_4 0x5E8
+#define MADERA_SLIMBUS_RATES_5 0x5E9
+#define MADERA_SLIMBUS_RATES_6 0x5EA
+#define MADERA_SLIMBUS_RATES_7 0x5EB
+#define MADERA_SLIMBUS_RATES_8 0x5EC
+#define MADERA_SLIMBUS_RX_CHANNEL_ENABLE 0x5F5
+#define MADERA_SLIMBUS_TX_CHANNEL_ENABLE 0x5F6
+#define MADERA_SLIMBUS_RX_PORT_STATUS 0x5F7
+#define MADERA_SLIMBUS_TX_PORT_STATUS 0x5F8
+#define MADERA_PWM1MIX_INPUT_1_SOURCE 0x640
+#define MADERA_PWM1MIX_INPUT_1_VOLUME 0x641
+#define MADERA_PWM1MIX_INPUT_2_SOURCE 0x642
+#define MADERA_PWM1MIX_INPUT_2_VOLUME 0x643
+#define MADERA_PWM1MIX_INPUT_3_SOURCE 0x644
+#define MADERA_PWM1MIX_INPUT_3_VOLUME 0x645
+#define MADERA_PWM1MIX_INPUT_4_SOURCE 0x646
+#define MADERA_PWM1MIX_INPUT_4_VOLUME 0x647
+#define MADERA_PWM2MIX_INPUT_1_SOURCE 0x648
+#define MADERA_PWM2MIX_INPUT_1_VOLUME 0x649
+#define MADERA_PWM2MIX_INPUT_2_SOURCE 0x64A
+#define MADERA_PWM2MIX_INPUT_2_VOLUME 0x64B
+#define MADERA_PWM2MIX_INPUT_3_SOURCE 0x64C
+#define MADERA_PWM2MIX_INPUT_3_VOLUME 0x64D
+#define MADERA_PWM2MIX_INPUT_4_SOURCE 0x64E
+#define MADERA_PWM2MIX_INPUT_4_VOLUME 0x64F
+#define MADERA_OUT1LMIX_INPUT_1_SOURCE 0x680
+#define MADERA_OUT1LMIX_INPUT_1_VOLUME 0x681
+#define MADERA_OUT1LMIX_INPUT_2_SOURCE 0x682
+#define MADERA_OUT1LMIX_INPUT_2_VOLUME 0x683
+#define MADERA_OUT1LMIX_INPUT_3_SOURCE 0x684
+#define MADERA_OUT1LMIX_INPUT_3_VOLUME 0x685
+#define MADERA_OUT1LMIX_INPUT_4_SOURCE 0x686
+#define MADERA_OUT1LMIX_INPUT_4_VOLUME 0x687
+#define MADERA_OUT1RMIX_INPUT_1_SOURCE 0x688
+#define MADERA_OUT1RMIX_INPUT_1_VOLUME 0x689
+#define MADERA_OUT1RMIX_INPUT_2_SOURCE 0x68A
+#define MADERA_OUT1RMIX_INPUT_2_VOLUME 0x68B
+#define MADERA_OUT1RMIX_INPUT_3_SOURCE 0x68C
+#define MADERA_OUT1RMIX_INPUT_3_VOLUME 0x68D
+#define MADERA_OUT1RMIX_INPUT_4_SOURCE 0x68E
+#define MADERA_OUT1RMIX_INPUT_4_VOLUME 0x68F
+#define MADERA_OUT2LMIX_INPUT_1_SOURCE 0x690
+#define MADERA_OUT2LMIX_INPUT_1_VOLUME 0x691
+#define MADERA_OUT2LMIX_INPUT_2_SOURCE 0x692
+#define MADERA_OUT2LMIX_INPUT_2_VOLUME 0x693
+#define MADERA_OUT2LMIX_INPUT_3_SOURCE 0x694
+#define MADERA_OUT2LMIX_INPUT_3_VOLUME 0x695
+#define MADERA_OUT2LMIX_INPUT_4_SOURCE 0x696
+#define MADERA_OUT2LMIX_INPUT_4_VOLUME 0x697
+#define MADERA_OUT2RMIX_INPUT_1_SOURCE 0x698
+#define MADERA_OUT2RMIX_INPUT_1_VOLUME 0x699
+#define MADERA_OUT2RMIX_INPUT_2_SOURCE 0x69A
+#define MADERA_OUT2RMIX_INPUT_2_VOLUME 0x69B
+#define MADERA_OUT2RMIX_INPUT_3_SOURCE 0x69C
+#define MADERA_OUT2RMIX_INPUT_3_VOLUME 0x69D
+#define MADERA_OUT2RMIX_INPUT_4_SOURCE 0x69E
+#define MADERA_OUT2RMIX_INPUT_4_VOLUME 0x69F
+#define MADERA_OUT3LMIX_INPUT_1_SOURCE 0x6A0
+#define MADERA_OUT3LMIX_INPUT_1_VOLUME 0x6A1
+#define MADERA_OUT3LMIX_INPUT_2_SOURCE 0x6A2
+#define MADERA_OUT3LMIX_INPUT_2_VOLUME 0x6A3
+#define MADERA_OUT3LMIX_INPUT_3_SOURCE 0x6A4
+#define MADERA_OUT3LMIX_INPUT_3_VOLUME 0x6A5
+#define MADERA_OUT3LMIX_INPUT_4_SOURCE 0x6A6
+#define MADERA_OUT3LMIX_INPUT_4_VOLUME 0x6A7
+#define MADERA_OUT3RMIX_INPUT_1_SOURCE 0x6A8
+#define MADERA_OUT3RMIX_INPUT_1_VOLUME 0x6A9
+#define MADERA_OUT3RMIX_INPUT_2_SOURCE 0x6AA
+#define MADERA_OUT3RMIX_INPUT_2_VOLUME 0x6AB
+#define MADERA_OUT3RMIX_INPUT_3_SOURCE 0x6AC
+#define MADERA_OUT3RMIX_INPUT_3_VOLUME 0x6AD
+#define MADERA_OUT3RMIX_INPUT_4_SOURCE 0x6AE
+#define MADERA_OUT3RMIX_INPUT_4_VOLUME 0x6AF
+#define MADERA_OUT4LMIX_INPUT_1_SOURCE 0x6B0
+#define MADERA_OUT4LMIX_INPUT_1_VOLUME 0x6B1
+#define MADERA_OUT4LMIX_INPUT_2_SOURCE 0x6B2
+#define MADERA_OUT4LMIX_INPUT_2_VOLUME 0x6B3
+#define MADERA_OUT4LMIX_INPUT_3_SOURCE 0x6B4
+#define MADERA_OUT4LMIX_INPUT_3_VOLUME 0x6B5
+#define MADERA_OUT4LMIX_INPUT_4_SOURCE 0x6B6
+#define MADERA_OUT4LMIX_INPUT_4_VOLUME 0x6B7
+#define MADERA_OUT4RMIX_INPUT_1_SOURCE 0x6B8
+#define MADERA_OUT4RMIX_INPUT_1_VOLUME 0x6B9
+#define MADERA_OUT4RMIX_INPUT_2_SOURCE 0x6BA
+#define MADERA_OUT4RMIX_INPUT_2_VOLUME 0x6BB
+#define MADERA_OUT4RMIX_INPUT_3_SOURCE 0x6BC
+#define MADERA_OUT4RMIX_INPUT_3_VOLUME 0x6BD
+#define MADERA_OUT4RMIX_INPUT_4_SOURCE 0x6BE
+#define MADERA_OUT4RMIX_INPUT_4_VOLUME 0x6BF
+#define MADERA_OUT5LMIX_INPUT_1_SOURCE 0x6C0
+#define MADERA_OUT5LMIX_INPUT_1_VOLUME 0x6C1
+#define MADERA_OUT5LMIX_INPUT_2_SOURCE 0x6C2
+#define MADERA_OUT5LMIX_INPUT_2_VOLUME 0x6C3
+#define MADERA_OUT5LMIX_INPUT_3_SOURCE 0x6C4
+#define MADERA_OUT5LMIX_INPUT_3_VOLUME 0x6C5
+#define MADERA_OUT5LMIX_INPUT_4_SOURCE 0x6C6
+#define MADERA_OUT5LMIX_INPUT_4_VOLUME 0x6C7
+#define MADERA_OUT5RMIX_INPUT_1_SOURCE 0x6C8
+#define MADERA_OUT5RMIX_INPUT_1_VOLUME 0x6C9
+#define MADERA_OUT5RMIX_INPUT_2_SOURCE 0x6CA
+#define MADERA_OUT5RMIX_INPUT_2_VOLUME 0x6CB
+#define MADERA_OUT5RMIX_INPUT_3_SOURCE 0x6CC
+#define MADERA_OUT5RMIX_INPUT_3_VOLUME 0x6CD
+#define MADERA_OUT5RMIX_INPUT_4_SOURCE 0x6CE
+#define MADERA_OUT5RMIX_INPUT_4_VOLUME 0x6CF
+#define MADERA_OUT6LMIX_INPUT_1_SOURCE 0x6D0
+#define MADERA_OUT6LMIX_INPUT_1_VOLUME 0x6D1
+#define MADERA_OUT6LMIX_INPUT_2_SOURCE 0x6D2
+#define MADERA_OUT6LMIX_INPUT_2_VOLUME 0x6D3
+#define MADERA_OUT6LMIX_INPUT_3_SOURCE 0x6D4
+#define MADERA_OUT6LMIX_INPUT_3_VOLUME 0x6D5
+#define MADERA_OUT6LMIX_INPUT_4_SOURCE 0x6D6
+#define MADERA_OUT6LMIX_INPUT_4_VOLUME 0x6D7
+#define MADERA_OUT6RMIX_INPUT_1_SOURCE 0x6D8
+#define MADERA_OUT6RMIX_INPUT_1_VOLUME 0x6D9
+#define MADERA_OUT6RMIX_INPUT_2_SOURCE 0x6DA
+#define MADERA_OUT6RMIX_INPUT_2_VOLUME 0x6DB
+#define MADERA_OUT6RMIX_INPUT_3_SOURCE 0x6DC
+#define MADERA_OUT6RMIX_INPUT_3_VOLUME 0x6DD
+#define MADERA_OUT6RMIX_INPUT_4_SOURCE 0x6DE
+#define MADERA_OUT6RMIX_INPUT_4_VOLUME 0x6DF
+#define MADERA_AIF1TX1MIX_INPUT_1_SOURCE 0x700
+#define MADERA_AIF1TX1MIX_INPUT_1_VOLUME 0x701
+#define MADERA_AIF1TX1MIX_INPUT_2_SOURCE 0x702
+#define MADERA_AIF1TX1MIX_INPUT_2_VOLUME 0x703
+#define MADERA_AIF1TX1MIX_INPUT_3_SOURCE 0x704
+#define MADERA_AIF1TX1MIX_INPUT_3_VOLUME 0x705
+#define MADERA_AIF1TX1MIX_INPUT_4_SOURCE 0x706
+#define MADERA_AIF1TX1MIX_INPUT_4_VOLUME 0x707
+#define MADERA_AIF1TX2MIX_INPUT_1_SOURCE 0x708
+#define MADERA_AIF1TX2MIX_INPUT_1_VOLUME 0x709
+#define MADERA_AIF1TX2MIX_INPUT_2_SOURCE 0x70A
+#define MADERA_AIF1TX2MIX_INPUT_2_VOLUME 0x70B
+#define MADERA_AIF1TX2MIX_INPUT_3_SOURCE 0x70C
+#define MADERA_AIF1TX2MIX_INPUT_3_VOLUME 0x70D
+#define MADERA_AIF1TX2MIX_INPUT_4_SOURCE 0x70E
+#define MADERA_AIF1TX2MIX_INPUT_4_VOLUME 0x70F
+#define MADERA_AIF1TX3MIX_INPUT_1_SOURCE 0x710
+#define MADERA_AIF1TX3MIX_INPUT_1_VOLUME 0x711
+#define MADERA_AIF1TX3MIX_INPUT_2_SOURCE 0x712
+#define MADERA_AIF1TX3MIX_INPUT_2_VOLUME 0x713
+#define MADERA_AIF1TX3MIX_INPUT_3_SOURCE 0x714
+#define MADERA_AIF1TX3MIX_INPUT_3_VOLUME 0x715
+#define MADERA_AIF1TX3MIX_INPUT_4_SOURCE 0x716
+#define MADERA_AIF1TX3MIX_INPUT_4_VOLUME 0x717
+#define MADERA_AIF1TX4MIX_INPUT_1_SOURCE 0x718
+#define MADERA_AIF1TX4MIX_INPUT_1_VOLUME 0x719
+#define MADERA_AIF1TX4MIX_INPUT_2_SOURCE 0x71A
+#define MADERA_AIF1TX4MIX_INPUT_2_VOLUME 0x71B
+#define MADERA_AIF1TX4MIX_INPUT_3_SOURCE 0x71C
+#define MADERA_AIF1TX4MIX_INPUT_3_VOLUME 0x71D
+#define MADERA_AIF1TX4MIX_INPUT_4_SOURCE 0x71E
+#define MADERA_AIF1TX4MIX_INPUT_4_VOLUME 0x71F
+#define MADERA_AIF1TX5MIX_INPUT_1_SOURCE 0x720
+#define MADERA_AIF1TX5MIX_INPUT_1_VOLUME 0x721
+#define MADERA_AIF1TX5MIX_INPUT_2_SOURCE 0x722
+#define MADERA_AIF1TX5MIX_INPUT_2_VOLUME 0x723
+#define MADERA_AIF1TX5MIX_INPUT_3_SOURCE 0x724
+#define MADERA_AIF1TX5MIX_INPUT_3_VOLUME 0x725
+#define MADERA_AIF1TX5MIX_INPUT_4_SOURCE 0x726
+#define MADERA_AIF1TX5MIX_INPUT_4_VOLUME 0x727
+#define MADERA_AIF1TX6MIX_INPUT_1_SOURCE 0x728
+#define MADERA_AIF1TX6MIX_INPUT_1_VOLUME 0x729
+#define MADERA_AIF1TX6MIX_INPUT_2_SOURCE 0x72A
+#define MADERA_AIF1TX6MIX_INPUT_2_VOLUME 0x72B
+#define MADERA_AIF1TX6MIX_INPUT_3_SOURCE 0x72C
+#define MADERA_AIF1TX6MIX_INPUT_3_VOLUME 0x72D
+#define MADERA_AIF1TX6MIX_INPUT_4_SOURCE 0x72E
+#define MADERA_AIF1TX6MIX_INPUT_4_VOLUME 0x72F
+#define MADERA_AIF1TX7MIX_INPUT_1_SOURCE 0x730
+#define MADERA_AIF1TX7MIX_INPUT_1_VOLUME 0x731
+#define MADERA_AIF1TX7MIX_INPUT_2_SOURCE 0x732
+#define MADERA_AIF1TX7MIX_INPUT_2_VOLUME 0x733
+#define MADERA_AIF1TX7MIX_INPUT_3_SOURCE 0x734
+#define MADERA_AIF1TX7MIX_INPUT_3_VOLUME 0x735
+#define MADERA_AIF1TX7MIX_INPUT_4_SOURCE 0x736
+#define MADERA_AIF1TX7MIX_INPUT_4_VOLUME 0x737
+#define MADERA_AIF1TX8MIX_INPUT_1_SOURCE 0x738
+#define MADERA_AIF1TX8MIX_INPUT_1_VOLUME 0x739
+#define MADERA_AIF1TX8MIX_INPUT_2_SOURCE 0x73A
+#define MADERA_AIF1TX8MIX_INPUT_2_VOLUME 0x73B
+#define MADERA_AIF1TX8MIX_INPUT_3_SOURCE 0x73C
+#define MADERA_AIF1TX8MIX_INPUT_3_VOLUME 0x73D
+#define MADERA_AIF1TX8MIX_INPUT_4_SOURCE 0x73E
+#define MADERA_AIF1TX8MIX_INPUT_4_VOLUME 0x73F
+#define MADERA_AIF2TX1MIX_INPUT_1_SOURCE 0x740
+#define MADERA_AIF2TX1MIX_INPUT_1_VOLUME 0x741
+#define MADERA_AIF2TX1MIX_INPUT_2_SOURCE 0x742
+#define MADERA_AIF2TX1MIX_INPUT_2_VOLUME 0x743
+#define MADERA_AIF2TX1MIX_INPUT_3_SOURCE 0x744
+#define MADERA_AIF2TX1MIX_INPUT_3_VOLUME 0x745
+#define MADERA_AIF2TX1MIX_INPUT_4_SOURCE 0x746
+#define MADERA_AIF2TX1MIX_INPUT_4_VOLUME 0x747
+#define MADERA_AIF2TX2MIX_INPUT_1_SOURCE 0x748
+#define MADERA_AIF2TX2MIX_INPUT_1_VOLUME 0x749
+#define MADERA_AIF2TX2MIX_INPUT_2_SOURCE 0x74A
+#define MADERA_AIF2TX2MIX_INPUT_2_VOLUME 0x74B
+#define MADERA_AIF2TX2MIX_INPUT_3_SOURCE 0x74C
+#define MADERA_AIF2TX2MIX_INPUT_3_VOLUME 0x74D
+#define MADERA_AIF2TX2MIX_INPUT_4_SOURCE 0x74E
+#define MADERA_AIF2TX2MIX_INPUT_4_VOLUME 0x74F
+#define MADERA_AIF2TX3MIX_INPUT_1_SOURCE 0x750
+#define MADERA_AIF2TX3MIX_INPUT_1_VOLUME 0x751
+#define MADERA_AIF2TX3MIX_INPUT_2_SOURCE 0x752
+#define MADERA_AIF2TX3MIX_INPUT_2_VOLUME 0x753
+#define MADERA_AIF2TX3MIX_INPUT_3_SOURCE 0x754
+#define MADERA_AIF2TX3MIX_INPUT_3_VOLUME 0x755
+#define MADERA_AIF2TX3MIX_INPUT_4_SOURCE 0x756
+#define MADERA_AIF2TX3MIX_INPUT_4_VOLUME 0x757
+#define MADERA_AIF2TX4MIX_INPUT_1_SOURCE 0x758
+#define MADERA_AIF2TX4MIX_INPUT_1_VOLUME 0x759
+#define MADERA_AIF2TX4MIX_INPUT_2_SOURCE 0x75A
+#define MADERA_AIF2TX4MIX_INPUT_2_VOLUME 0x75B
+#define MADERA_AIF2TX4MIX_INPUT_3_SOURCE 0x75C
+#define MADERA_AIF2TX4MIX_INPUT_3_VOLUME 0x75D
+#define MADERA_AIF2TX4MIX_INPUT_4_SOURCE 0x75E
+#define MADERA_AIF2TX4MIX_INPUT_4_VOLUME 0x75F
+#define MADERA_AIF2TX5MIX_INPUT_1_SOURCE 0x760
+#define MADERA_AIF2TX5MIX_INPUT_1_VOLUME 0x761
+#define MADERA_AIF2TX5MIX_INPUT_2_SOURCE 0x762
+#define MADERA_AIF2TX5MIX_INPUT_2_VOLUME 0x763
+#define MADERA_AIF2TX5MIX_INPUT_3_SOURCE 0x764
+#define MADERA_AIF2TX5MIX_INPUT_3_VOLUME 0x765
+#define MADERA_AIF2TX5MIX_INPUT_4_SOURCE 0x766
+#define MADERA_AIF2TX5MIX_INPUT_4_VOLUME 0x767
+#define MADERA_AIF2TX6MIX_INPUT_1_SOURCE 0x768
+#define MADERA_AIF2TX6MIX_INPUT_1_VOLUME 0x769
+#define MADERA_AIF2TX6MIX_INPUT_2_SOURCE 0x76A
+#define MADERA_AIF2TX6MIX_INPUT_2_VOLUME 0x76B
+#define MADERA_AIF2TX6MIX_INPUT_3_SOURCE 0x76C
+#define MADERA_AIF2TX6MIX_INPUT_3_VOLUME 0x76D
+#define MADERA_AIF2TX6MIX_INPUT_4_SOURCE 0x76E
+#define MADERA_AIF2TX6MIX_INPUT_4_VOLUME 0x76F
+#define MADERA_AIF2TX7MIX_INPUT_1_SOURCE 0x770
+#define MADERA_AIF2TX7MIX_INPUT_1_VOLUME 0x771
+#define MADERA_AIF2TX7MIX_INPUT_2_SOURCE 0x772
+#define MADERA_AIF2TX7MIX_INPUT_2_VOLUME 0x773
+#define MADERA_AIF2TX7MIX_INPUT_3_SOURCE 0x774
+#define MADERA_AIF2TX7MIX_INPUT_3_VOLUME 0x775
+#define MADERA_AIF2TX7MIX_INPUT_4_SOURCE 0x776
+#define MADERA_AIF2TX7MIX_INPUT_4_VOLUME 0x777
+#define MADERA_AIF2TX8MIX_INPUT_1_SOURCE 0x778
+#define MADERA_AIF2TX8MIX_INPUT_1_VOLUME 0x779
+#define MADERA_AIF2TX8MIX_INPUT_2_SOURCE 0x77A
+#define MADERA_AIF2TX8MIX_INPUT_2_VOLUME 0x77B
+#define MADERA_AIF2TX8MIX_INPUT_3_SOURCE 0x77C
+#define MADERA_AIF2TX8MIX_INPUT_3_VOLUME 0x77D
+#define MADERA_AIF2TX8MIX_INPUT_4_SOURCE 0x77E
+#define MADERA_AIF2TX8MIX_INPUT_4_VOLUME 0x77F
+#define MADERA_AIF3TX1MIX_INPUT_1_SOURCE 0x780
+#define MADERA_AIF3TX1MIX_INPUT_1_VOLUME 0x781
+#define MADERA_AIF3TX1MIX_INPUT_2_SOURCE 0x782
+#define MADERA_AIF3TX1MIX_INPUT_2_VOLUME 0x783
+#define MADERA_AIF3TX1MIX_INPUT_3_SOURCE 0x784
+#define MADERA_AIF3TX1MIX_INPUT_3_VOLUME 0x785
+#define MADERA_AIF3TX1MIX_INPUT_4_SOURCE 0x786
+#define MADERA_AIF3TX1MIX_INPUT_4_VOLUME 0x787
+#define MADERA_AIF3TX2MIX_INPUT_1_SOURCE 0x788
+#define MADERA_AIF3TX2MIX_INPUT_1_VOLUME 0x789
+#define MADERA_AIF3TX2MIX_INPUT_2_SOURCE 0x78A
+#define MADERA_AIF3TX2MIX_INPUT_2_VOLUME 0x78B
+#define MADERA_AIF3TX2MIX_INPUT_3_SOURCE 0x78C
+#define MADERA_AIF3TX2MIX_INPUT_3_VOLUME 0x78D
+#define MADERA_AIF3TX2MIX_INPUT_4_SOURCE 0x78E
+#define MADERA_AIF3TX2MIX_INPUT_4_VOLUME 0x78F
+#define MADERA_AIF4TX1MIX_INPUT_1_SOURCE 0x7A0
+#define MADERA_AIF4TX1MIX_INPUT_1_VOLUME 0x7A1
+#define MADERA_AIF4TX1MIX_INPUT_2_SOURCE 0x7A2
+#define MADERA_AIF4TX1MIX_INPUT_2_VOLUME 0x7A3
+#define MADERA_AIF4TX1MIX_INPUT_3_SOURCE 0x7A4
+#define MADERA_AIF4TX1MIX_INPUT_3_VOLUME 0x7A5
+#define MADERA_AIF4TX1MIX_INPUT_4_SOURCE 0x7A6
+#define MADERA_AIF4TX1MIX_INPUT_4_VOLUME 0x7A7
+#define MADERA_AIF4TX2MIX_INPUT_1_SOURCE 0x7A8
+#define MADERA_AIF4TX2MIX_INPUT_1_VOLUME 0x7A9
+#define MADERA_AIF4TX2MIX_INPUT_2_SOURCE 0x7AA
+#define MADERA_AIF4TX2MIX_INPUT_2_VOLUME 0x7AB
+#define MADERA_AIF4TX2MIX_INPUT_3_SOURCE 0x7AC
+#define MADERA_AIF4TX2MIX_INPUT_3_VOLUME 0x7AD
+#define MADERA_AIF4TX2MIX_INPUT_4_SOURCE 0x7AE
+#define MADERA_AIF4TX2MIX_INPUT_4_VOLUME 0x7AF
+#define MADERA_SLIMTX1MIX_INPUT_1_SOURCE 0x7C0
+#define MADERA_SLIMTX1MIX_INPUT_1_VOLUME 0x7C1
+#define MADERA_SLIMTX1MIX_INPUT_2_SOURCE 0x7C2
+#define MADERA_SLIMTX1MIX_INPUT_2_VOLUME 0x7C3
+#define MADERA_SLIMTX1MIX_INPUT_3_SOURCE 0x7C4
+#define MADERA_SLIMTX1MIX_INPUT_3_VOLUME 0x7C5
+#define MADERA_SLIMTX1MIX_INPUT_4_SOURCE 0x7C6
+#define MADERA_SLIMTX1MIX_INPUT_4_VOLUME 0x7C7
+#define MADERA_SLIMTX2MIX_INPUT_1_SOURCE 0x7C8
+#define MADERA_SLIMTX2MIX_INPUT_1_VOLUME 0x7C9
+#define MADERA_SLIMTX2MIX_INPUT_2_SOURCE 0x7CA
+#define MADERA_SLIMTX2MIX_INPUT_2_VOLUME 0x7CB
+#define MADERA_SLIMTX2MIX_INPUT_3_SOURCE 0x7CC
+#define MADERA_SLIMTX2MIX_INPUT_3_VOLUME 0x7CD
+#define MADERA_SLIMTX2MIX_INPUT_4_SOURCE 0x7CE
+#define MADERA_SLIMTX2MIX_INPUT_4_VOLUME 0x7CF
+#define MADERA_SLIMTX3MIX_INPUT_1_SOURCE 0x7D0
+#define MADERA_SLIMTX3MIX_INPUT_1_VOLUME 0x7D1
+#define MADERA_SLIMTX3MIX_INPUT_2_SOURCE 0x7D2
+#define MADERA_SLIMTX3MIX_INPUT_2_VOLUME 0x7D3
+#define MADERA_SLIMTX3MIX_INPUT_3_SOURCE 0x7D4
+#define MADERA_SLIMTX3MIX_INPUT_3_VOLUME 0x7D5
+#define MADERA_SLIMTX3MIX_INPUT_4_SOURCE 0x7D6
+#define MADERA_SLIMTX3MIX_INPUT_4_VOLUME 0x7D7
+#define MADERA_SLIMTX4MIX_INPUT_1_SOURCE 0x7D8
+#define MADERA_SLIMTX4MIX_INPUT_1_VOLUME 0x7D9
+#define MADERA_SLIMTX4MIX_INPUT_2_SOURCE 0x7DA
+#define MADERA_SLIMTX4MIX_INPUT_2_VOLUME 0x7DB
+#define MADERA_SLIMTX4MIX_INPUT_3_SOURCE 0x7DC
+#define MADERA_SLIMTX4MIX_INPUT_3_VOLUME 0x7DD
+#define MADERA_SLIMTX4MIX_INPUT_4_SOURCE 0x7DE
+#define MADERA_SLIMTX4MIX_INPUT_4_VOLUME 0x7DF
+#define MADERA_SLIMTX5MIX_INPUT_1_SOURCE 0x7E0
+#define MADERA_SLIMTX5MIX_INPUT_1_VOLUME 0x7E1
+#define MADERA_SLIMTX5MIX_INPUT_2_SOURCE 0x7E2
+#define MADERA_SLIMTX5MIX_INPUT_2_VOLUME 0x7E3
+#define MADERA_SLIMTX5MIX_INPUT_3_SOURCE 0x7E4
+#define MADERA_SLIMTX5MIX_INPUT_3_VOLUME 0x7E5
+#define MADERA_SLIMTX5MIX_INPUT_4_SOURCE 0x7E6
+#define MADERA_SLIMTX5MIX_INPUT_4_VOLUME 0x7E7
+#define MADERA_SLIMTX6MIX_INPUT_1_SOURCE 0x7E8
+#define MADERA_SLIMTX6MIX_INPUT_1_VOLUME 0x7E9
+#define MADERA_SLIMTX6MIX_INPUT_2_SOURCE 0x7EA
+#define MADERA_SLIMTX6MIX_INPUT_2_VOLUME 0x7EB
+#define MADERA_SLIMTX6MIX_INPUT_3_SOURCE 0x7EC
+#define MADERA_SLIMTX6MIX_INPUT_3_VOLUME 0x7ED
+#define MADERA_SLIMTX6MIX_INPUT_4_SOURCE 0x7EE
+#define MADERA_SLIMTX6MIX_INPUT_4_VOLUME 0x7EF
+#define MADERA_SLIMTX7MIX_INPUT_1_SOURCE 0x7F0
+#define MADERA_SLIMTX7MIX_INPUT_1_VOLUME 0x7F1
+#define MADERA_SLIMTX7MIX_INPUT_2_SOURCE 0x7F2
+#define MADERA_SLIMTX7MIX_INPUT_2_VOLUME 0x7F3
+#define MADERA_SLIMTX7MIX_INPUT_3_SOURCE 0x7F4
+#define MADERA_SLIMTX7MIX_INPUT_3_VOLUME 0x7F5
+#define MADERA_SLIMTX7MIX_INPUT_4_SOURCE 0x7F6
+#define MADERA_SLIMTX7MIX_INPUT_4_VOLUME 0x7F7
+#define MADERA_SLIMTX8MIX_INPUT_1_SOURCE 0x7F8
+#define MADERA_SLIMTX8MIX_INPUT_1_VOLUME 0x7F9
+#define MADERA_SLIMTX8MIX_INPUT_2_SOURCE 0x7FA
+#define MADERA_SLIMTX8MIX_INPUT_2_VOLUME 0x7FB
+#define MADERA_SLIMTX8MIX_INPUT_3_SOURCE 0x7FC
+#define MADERA_SLIMTX8MIX_INPUT_3_VOLUME 0x7FD
+#define MADERA_SLIMTX8MIX_INPUT_4_SOURCE 0x7FE
+#define MADERA_SLIMTX8MIX_INPUT_4_VOLUME 0x7FF
+#define MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE 0x800
+#define MADERA_SPDIF1TX1MIX_INPUT_1_VOLUME 0x801
+#define MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE 0x808
+#define MADERA_SPDIF1TX2MIX_INPUT_1_VOLUME 0x809
+#define MADERA_EQ1MIX_INPUT_1_SOURCE 0x880
+#define MADERA_EQ1MIX_INPUT_1_VOLUME 0x881
+#define MADERA_EQ1MIX_INPUT_2_SOURCE 0x882
+#define MADERA_EQ1MIX_INPUT_2_VOLUME 0x883
+#define MADERA_EQ1MIX_INPUT_3_SOURCE 0x884
+#define MADERA_EQ1MIX_INPUT_3_VOLUME 0x885
+#define MADERA_EQ1MIX_INPUT_4_SOURCE 0x886
+#define MADERA_EQ1MIX_INPUT_4_VOLUME 0x887
+#define MADERA_EQ2MIX_INPUT_1_SOURCE 0x888
+#define MADERA_EQ2MIX_INPUT_1_VOLUME 0x889
+#define MADERA_EQ2MIX_INPUT_2_SOURCE 0x88A
+#define MADERA_EQ2MIX_INPUT_2_VOLUME 0x88B
+#define MADERA_EQ2MIX_INPUT_3_SOURCE 0x88C
+#define MADERA_EQ2MIX_INPUT_3_VOLUME 0x88D
+#define MADERA_EQ2MIX_INPUT_4_SOURCE 0x88E
+#define MADERA_EQ2MIX_INPUT_4_VOLUME 0x88F
+#define MADERA_EQ3MIX_INPUT_1_SOURCE 0x890
+#define MADERA_EQ3MIX_INPUT_1_VOLUME 0x891
+#define MADERA_EQ3MIX_INPUT_2_SOURCE 0x892
+#define MADERA_EQ3MIX_INPUT_2_VOLUME 0x893
+#define MADERA_EQ3MIX_INPUT_3_SOURCE 0x894
+#define MADERA_EQ3MIX_INPUT_3_VOLUME 0x895
+#define MADERA_EQ3MIX_INPUT_4_SOURCE 0x896
+#define MADERA_EQ3MIX_INPUT_4_VOLUME 0x897
+#define MADERA_EQ4MIX_INPUT_1_SOURCE 0x898
+#define MADERA_EQ4MIX_INPUT_1_VOLUME 0x899
+#define MADERA_EQ4MIX_INPUT_2_SOURCE 0x89A
+#define MADERA_EQ4MIX_INPUT_2_VOLUME 0x89B
+#define MADERA_EQ4MIX_INPUT_3_SOURCE 0x89C
+#define MADERA_EQ4MIX_INPUT_3_VOLUME 0x89D
+#define MADERA_EQ4MIX_INPUT_4_SOURCE 0x89E
+#define MADERA_EQ4MIX_INPUT_4_VOLUME 0x89F
+#define MADERA_DRC1LMIX_INPUT_1_SOURCE 0x8C0
+#define MADERA_DRC1LMIX_INPUT_1_VOLUME 0x8C1
+#define MADERA_DRC1LMIX_INPUT_2_SOURCE 0x8C2
+#define MADERA_DRC1LMIX_INPUT_2_VOLUME 0x8C3
+#define MADERA_DRC1LMIX_INPUT_3_SOURCE 0x8C4
+#define MADERA_DRC1LMIX_INPUT_3_VOLUME 0x8C5
+#define MADERA_DRC1LMIX_INPUT_4_SOURCE 0x8C6
+#define MADERA_DRC1LMIX_INPUT_4_VOLUME 0x8C7
+#define MADERA_DRC1RMIX_INPUT_1_SOURCE 0x8C8
+#define MADERA_DRC1RMIX_INPUT_1_VOLUME 0x8C9
+#define MADERA_DRC1RMIX_INPUT_2_SOURCE 0x8CA
+#define MADERA_DRC1RMIX_INPUT_2_VOLUME 0x8CB
+#define MADERA_DRC1RMIX_INPUT_3_SOURCE 0x8CC
+#define MADERA_DRC1RMIX_INPUT_3_VOLUME 0x8CD
+#define MADERA_DRC1RMIX_INPUT_4_SOURCE 0x8CE
+#define MADERA_DRC1RMIX_INPUT_4_VOLUME 0x8CF
+#define MADERA_DRC2LMIX_INPUT_1_SOURCE 0x8D0
+#define MADERA_DRC2LMIX_INPUT_1_VOLUME 0x8D1
+#define MADERA_DRC2LMIX_INPUT_2_SOURCE 0x8D2
+#define MADERA_DRC2LMIX_INPUT_2_VOLUME 0x8D3
+#define MADERA_DRC2LMIX_INPUT_3_SOURCE 0x8D4
+#define MADERA_DRC2LMIX_INPUT_3_VOLUME 0x8D5
+#define MADERA_DRC2LMIX_INPUT_4_SOURCE 0x8D6
+#define MADERA_DRC2LMIX_INPUT_4_VOLUME 0x8D7
+#define MADERA_DRC2RMIX_INPUT_1_SOURCE 0x8D8
+#define MADERA_DRC2RMIX_INPUT_1_VOLUME 0x8D9
+#define MADERA_DRC2RMIX_INPUT_2_SOURCE 0x8DA
+#define MADERA_DRC2RMIX_INPUT_2_VOLUME 0x8DB
+#define MADERA_DRC2RMIX_INPUT_3_SOURCE 0x8DC
+#define MADERA_DRC2RMIX_INPUT_3_VOLUME 0x8DD
+#define MADERA_DRC2RMIX_INPUT_4_SOURCE 0x8DE
+#define MADERA_DRC2RMIX_INPUT_4_VOLUME 0x8DF
+#define MADERA_HPLP1MIX_INPUT_1_SOURCE 0x900
+#define MADERA_HPLP1MIX_INPUT_1_VOLUME 0x901
+#define MADERA_HPLP1MIX_INPUT_2_SOURCE 0x902
+#define MADERA_HPLP1MIX_INPUT_2_VOLUME 0x903
+#define MADERA_HPLP1MIX_INPUT_3_SOURCE 0x904
+#define MADERA_HPLP1MIX_INPUT_3_VOLUME 0x905
+#define MADERA_HPLP1MIX_INPUT_4_SOURCE 0x906
+#define MADERA_HPLP1MIX_INPUT_4_VOLUME 0x907
+#define MADERA_HPLP2MIX_INPUT_1_SOURCE 0x908
+#define MADERA_HPLP2MIX_INPUT_1_VOLUME 0x909
+#define MADERA_HPLP2MIX_INPUT_2_SOURCE 0x90A
+#define MADERA_HPLP2MIX_INPUT_2_VOLUME 0x90B
+#define MADERA_HPLP2MIX_INPUT_3_SOURCE 0x90C
+#define MADERA_HPLP2MIX_INPUT_3_VOLUME 0x90D
+#define MADERA_HPLP2MIX_INPUT_4_SOURCE 0x90E
+#define MADERA_HPLP2MIX_INPUT_4_VOLUME 0x90F
+#define MADERA_HPLP3MIX_INPUT_1_SOURCE 0x910
+#define MADERA_HPLP3MIX_INPUT_1_VOLUME 0x911
+#define MADERA_HPLP3MIX_INPUT_2_SOURCE 0x912
+#define MADERA_HPLP3MIX_INPUT_2_VOLUME 0x913
+#define MADERA_HPLP3MIX_INPUT_3_SOURCE 0x914
+#define MADERA_HPLP3MIX_INPUT_3_VOLUME 0x915
+#define MADERA_HPLP3MIX_INPUT_4_SOURCE 0x916
+#define MADERA_HPLP3MIX_INPUT_4_VOLUME 0x917
+#define MADERA_HPLP4MIX_INPUT_1_SOURCE 0x918
+#define MADERA_HPLP4MIX_INPUT_1_VOLUME 0x919
+#define MADERA_HPLP4MIX_INPUT_2_SOURCE 0x91A
+#define MADERA_HPLP4MIX_INPUT_2_VOLUME 0x91B
+#define MADERA_HPLP4MIX_INPUT_3_SOURCE 0x91C
+#define MADERA_HPLP4MIX_INPUT_3_VOLUME 0x91D
+#define MADERA_HPLP4MIX_INPUT_4_SOURCE 0x91E
+#define MADERA_HPLP4MIX_INPUT_4_VOLUME 0x91F
+#define MADERA_DSP1LMIX_INPUT_1_SOURCE 0x940
+#define MADERA_DSP1LMIX_INPUT_1_VOLUME 0x941
+#define MADERA_DSP1LMIX_INPUT_2_SOURCE 0x942
+#define MADERA_DSP1LMIX_INPUT_2_VOLUME 0x943
+#define MADERA_DSP1LMIX_INPUT_3_SOURCE 0x944
+#define MADERA_DSP1LMIX_INPUT_3_VOLUME 0x945
+#define MADERA_DSP1LMIX_INPUT_4_SOURCE 0x946
+#define MADERA_DSP1LMIX_INPUT_4_VOLUME 0x947
+#define MADERA_DSP1RMIX_INPUT_1_SOURCE 0x948
+#define MADERA_DSP1RMIX_INPUT_1_VOLUME 0x949
+#define MADERA_DSP1RMIX_INPUT_2_SOURCE 0x94A
+#define MADERA_DSP1RMIX_INPUT_2_VOLUME 0x94B
+#define MADERA_DSP1RMIX_INPUT_3_SOURCE 0x94C
+#define MADERA_DSP1RMIX_INPUT_3_VOLUME 0x94D
+#define MADERA_DSP1RMIX_INPUT_4_SOURCE 0x94E
+#define MADERA_DSP1RMIX_INPUT_4_VOLUME 0x94F
+#define MADERA_DSP1AUX1MIX_INPUT_1_SOURCE 0x950
+#define MADERA_DSP1AUX2MIX_INPUT_1_SOURCE 0x958
+#define MADERA_DSP1AUX3MIX_INPUT_1_SOURCE 0x960
+#define MADERA_DSP1AUX4MIX_INPUT_1_SOURCE 0x968
+#define MADERA_DSP1AUX5MIX_INPUT_1_SOURCE 0x970
+#define MADERA_DSP1AUX6MIX_INPUT_1_SOURCE 0x978
+#define MADERA_DSP2LMIX_INPUT_1_SOURCE 0x980
+#define MADERA_DSP2LMIX_INPUT_1_VOLUME 0x981
+#define MADERA_DSP2LMIX_INPUT_2_SOURCE 0x982
+#define MADERA_DSP2LMIX_INPUT_2_VOLUME 0x983
+#define MADERA_DSP2LMIX_INPUT_3_SOURCE 0x984
+#define MADERA_DSP2LMIX_INPUT_3_VOLUME 0x985
+#define MADERA_DSP2LMIX_INPUT_4_SOURCE 0x986
+#define MADERA_DSP2LMIX_INPUT_4_VOLUME 0x987
+#define MADERA_DSP2RMIX_INPUT_1_SOURCE 0x988
+#define MADERA_DSP2RMIX_INPUT_1_VOLUME 0x989
+#define MADERA_DSP2RMIX_INPUT_2_SOURCE 0x98A
+#define MADERA_DSP2RMIX_INPUT_2_VOLUME 0x98B
+#define MADERA_DSP2RMIX_INPUT_3_SOURCE 0x98C
+#define MADERA_DSP2RMIX_INPUT_3_VOLUME 0x98D
+#define MADERA_DSP2RMIX_INPUT_4_SOURCE 0x98E
+#define MADERA_DSP2RMIX_INPUT_4_VOLUME 0x98F
+#define MADERA_DSP2AUX1MIX_INPUT_1_SOURCE 0x990
+#define MADERA_DSP2AUX2MIX_INPUT_1_SOURCE 0x998
+#define MADERA_DSP2AUX3MIX_INPUT_1_SOURCE 0x9A0
+#define MADERA_DSP2AUX4MIX_INPUT_1_SOURCE 0x9A8
+#define MADERA_DSP2AUX5MIX_INPUT_1_SOURCE 0x9B0
+#define MADERA_DSP2AUX6MIX_INPUT_1_SOURCE 0x9B8
+#define MADERA_DSP3LMIX_INPUT_1_SOURCE 0x9C0
+#define MADERA_DSP3LMIX_INPUT_1_VOLUME 0x9C1
+#define MADERA_DSP3LMIX_INPUT_2_SOURCE 0x9C2
+#define MADERA_DSP3LMIX_INPUT_2_VOLUME 0x9C3
+#define MADERA_DSP3LMIX_INPUT_3_SOURCE 0x9C4
+#define MADERA_DSP3LMIX_INPUT_3_VOLUME 0x9C5
+#define MADERA_DSP3LMIX_INPUT_4_SOURCE 0x9C6
+#define MADERA_DSP3LMIX_INPUT_4_VOLUME 0x9C7
+#define MADERA_DSP3RMIX_INPUT_1_SOURCE 0x9C8
+#define MADERA_DSP3RMIX_INPUT_1_VOLUME 0x9C9
+#define MADERA_DSP3RMIX_INPUT_2_SOURCE 0x9CA
+#define MADERA_DSP3RMIX_INPUT_2_VOLUME 0x9CB
+#define MADERA_DSP3RMIX_INPUT_3_SOURCE 0x9CC
+#define MADERA_DSP3RMIX_INPUT_3_VOLUME 0x9CD
+#define MADERA_DSP3RMIX_INPUT_4_SOURCE 0x9CE
+#define MADERA_DSP3RMIX_INPUT_4_VOLUME 0x9CF
+#define MADERA_DSP3AUX1MIX_INPUT_1_SOURCE 0x9D0
+#define MADERA_DSP3AUX2MIX_INPUT_1_SOURCE 0x9D8
+#define MADERA_DSP3AUX3MIX_INPUT_1_SOURCE 0x9E0
+#define MADERA_DSP3AUX4MIX_INPUT_1_SOURCE 0x9E8
+#define MADERA_DSP3AUX5MIX_INPUT_1_SOURCE 0x9F0
+#define MADERA_DSP3AUX6MIX_INPUT_1_SOURCE 0x9F8
+#define MADERA_DSP4LMIX_INPUT_1_SOURCE 0xA00
+#define MADERA_DSP4LMIX_INPUT_1_VOLUME 0xA01
+#define MADERA_DSP4LMIX_INPUT_2_SOURCE 0xA02
+#define MADERA_DSP4LMIX_INPUT_2_VOLUME 0xA03
+#define MADERA_DSP4LMIX_INPUT_3_SOURCE 0xA04
+#define MADERA_DSP4LMIX_INPUT_3_VOLUME 0xA05
+#define MADERA_DSP4LMIX_INPUT_4_SOURCE 0xA06
+#define MADERA_DSP4LMIX_INPUT_4_VOLUME 0xA07
+#define MADERA_DSP4RMIX_INPUT_1_SOURCE 0xA08
+#define MADERA_DSP4RMIX_INPUT_1_VOLUME 0xA09
+#define MADERA_DSP4RMIX_INPUT_2_SOURCE 0xA0A
+#define MADERA_DSP4RMIX_INPUT_2_VOLUME 0xA0B
+#define MADERA_DSP4RMIX_INPUT_3_SOURCE 0xA0C
+#define MADERA_DSP4RMIX_INPUT_3_VOLUME 0xA0D
+#define MADERA_DSP4RMIX_INPUT_4_SOURCE 0xA0E
+#define MADERA_DSP4RMIX_INPUT_4_VOLUME 0xA0F
+#define MADERA_DSP4AUX1MIX_INPUT_1_SOURCE 0xA10
+#define MADERA_DSP4AUX2MIX_INPUT_1_SOURCE 0xA18
+#define MADERA_DSP4AUX3MIX_INPUT_1_SOURCE 0xA20
+#define MADERA_DSP4AUX4MIX_INPUT_1_SOURCE 0xA28
+#define MADERA_DSP4AUX5MIX_INPUT_1_SOURCE 0xA30
+#define MADERA_DSP4AUX6MIX_INPUT_1_SOURCE 0xA38
+#define MADERA_DSP5LMIX_INPUT_1_SOURCE 0xA40
+#define MADERA_DSP5LMIX_INPUT_1_VOLUME 0xA41
+#define MADERA_DSP5LMIX_INPUT_2_SOURCE 0xA42
+#define MADERA_DSP5LMIX_INPUT_2_VOLUME 0xA43
+#define MADERA_DSP5LMIX_INPUT_3_SOURCE 0xA44
+#define MADERA_DSP5LMIX_INPUT_3_VOLUME 0xA45
+#define MADERA_DSP5LMIX_INPUT_4_SOURCE 0xA46
+#define MADERA_DSP5LMIX_INPUT_4_VOLUME 0xA47
+#define MADERA_DSP5RMIX_INPUT_1_SOURCE 0xA48
+#define MADERA_DSP5RMIX_INPUT_1_VOLUME 0xA49
+#define MADERA_DSP5RMIX_INPUT_2_SOURCE 0xA4A
+#define MADERA_DSP5RMIX_INPUT_2_VOLUME 0xA4B
+#define MADERA_DSP5RMIX_INPUT_3_SOURCE 0xA4C
+#define MADERA_DSP5RMIX_INPUT_3_VOLUME 0xA4D
+#define MADERA_DSP5RMIX_INPUT_4_SOURCE 0xA4E
+#define MADERA_DSP5RMIX_INPUT_4_VOLUME 0xA4F
+#define MADERA_DSP5AUX1MIX_INPUT_1_SOURCE 0xA50
+#define MADERA_DSP5AUX2MIX_INPUT_1_SOURCE 0xA58
+#define MADERA_DSP5AUX3MIX_INPUT_1_SOURCE 0xA60
+#define MADERA_DSP5AUX4MIX_INPUT_1_SOURCE 0xA68
+#define MADERA_DSP5AUX5MIX_INPUT_1_SOURCE 0xA70
+#define MADERA_DSP5AUX6MIX_INPUT_1_SOURCE 0xA78
+#define MADERA_ASRC1_1LMIX_INPUT_1_SOURCE 0xA80
+#define MADERA_ASRC1_1RMIX_INPUT_1_SOURCE 0xA88
+#define MADERA_ASRC1_2LMIX_INPUT_1_SOURCE 0xA90
+#define MADERA_ASRC1_2RMIX_INPUT_1_SOURCE 0xA98
+#define MADERA_ASRC2_1LMIX_INPUT_1_SOURCE 0xAA0
+#define MADERA_ASRC2_1RMIX_INPUT_1_SOURCE 0xAA8
+#define MADERA_ASRC2_2LMIX_INPUT_1_SOURCE 0xAB0
+#define MADERA_ASRC2_2RMIX_INPUT_1_SOURCE 0xAB8
+#define MADERA_ISRC1DEC1MIX_INPUT_1_SOURCE 0xB00
+#define MADERA_ISRC1DEC2MIX_INPUT_1_SOURCE 0xB08
+#define MADERA_ISRC1DEC3MIX_INPUT_1_SOURCE 0xB10
+#define MADERA_ISRC1DEC4MIX_INPUT_1_SOURCE 0xB18
+#define MADERA_ISRC1INT1MIX_INPUT_1_SOURCE 0xB20
+#define MADERA_ISRC1INT2MIX_INPUT_1_SOURCE 0xB28
+#define MADERA_ISRC1INT3MIX_INPUT_1_SOURCE 0xB30
+#define MADERA_ISRC1INT4MIX_INPUT_1_SOURCE 0xB38
+#define MADERA_ISRC2DEC1MIX_INPUT_1_SOURCE 0xB40
+#define MADERA_ISRC2DEC2MIX_INPUT_1_SOURCE 0xB48
+#define MADERA_ISRC2DEC3MIX_INPUT_1_SOURCE 0xB50
+#define MADERA_ISRC2DEC4MIX_INPUT_1_SOURCE 0xB58
+#define MADERA_ISRC2INT1MIX_INPUT_1_SOURCE 0xB60
+#define MADERA_ISRC2INT2MIX_INPUT_1_SOURCE 0xB68
+#define MADERA_ISRC2INT3MIX_INPUT_1_SOURCE 0xB70
+#define MADERA_ISRC2INT4MIX_INPUT_1_SOURCE 0xB78
+#define MADERA_ISRC3DEC1MIX_INPUT_1_SOURCE 0xB80
+#define MADERA_ISRC3DEC2MIX_INPUT_1_SOURCE 0xB88
+#define MADERA_ISRC3DEC3MIX_INPUT_1_SOURCE 0xB90
+#define MADERA_ISRC3DEC4MIX_INPUT_1_SOURCE 0xB98
+#define MADERA_ISRC3INT1MIX_INPUT_1_SOURCE 0xBA0
+#define MADERA_ISRC3INT2MIX_INPUT_1_SOURCE 0xBA8
+#define MADERA_ISRC3INT3MIX_INPUT_1_SOURCE 0xBB0
+#define MADERA_ISRC3INT4MIX_INPUT_1_SOURCE 0xBB8
+#define MADERA_ISRC4DEC1MIX_INPUT_1_SOURCE 0xBC0
+#define MADERA_ISRC4DEC2MIX_INPUT_1_SOURCE 0xBC8
+#define MADERA_ISRC4INT1MIX_INPUT_1_SOURCE 0xBE0
+#define MADERA_ISRC4INT2MIX_INPUT_1_SOURCE 0xBE8
+#define MADERA_DSP6LMIX_INPUT_1_SOURCE 0xC00
+#define MADERA_DSP6LMIX_INPUT_1_VOLUME 0xC01
+#define MADERA_DSP6LMIX_INPUT_2_SOURCE 0xC02
+#define MADERA_DSP6LMIX_INPUT_2_VOLUME 0xC03
+#define MADERA_DSP6LMIX_INPUT_3_SOURCE 0xC04
+#define MADERA_DSP6LMIX_INPUT_3_VOLUME 0xC05
+#define MADERA_DSP6LMIX_INPUT_4_SOURCE 0xC06
+#define MADERA_DSP6LMIX_INPUT_4_VOLUME 0xC07
+#define MADERA_DSP6RMIX_INPUT_1_SOURCE 0xC08
+#define MADERA_DSP6RMIX_INPUT_1_VOLUME 0xC09
+#define MADERA_DSP6RMIX_INPUT_2_SOURCE 0xC0A
+#define MADERA_DSP6RMIX_INPUT_2_VOLUME 0xC0B
+#define MADERA_DSP6RMIX_INPUT_3_SOURCE 0xC0C
+#define MADERA_DSP6RMIX_INPUT_3_VOLUME 0xC0D
+#define MADERA_DSP6RMIX_INPUT_4_SOURCE 0xC0E
+#define MADERA_DSP6RMIX_INPUT_4_VOLUME 0xC0F
+#define MADERA_DSP6AUX1MIX_INPUT_1_SOURCE 0xC10
+#define MADERA_DSP6AUX2MIX_INPUT_1_SOURCE 0xC18
+#define MADERA_DSP6AUX3MIX_INPUT_1_SOURCE 0xC20
+#define MADERA_DSP6AUX4MIX_INPUT_1_SOURCE 0xC28
+#define MADERA_DSP6AUX5MIX_INPUT_1_SOURCE 0xC30
+#define MADERA_DSP6AUX6MIX_INPUT_1_SOURCE 0xC38
+#define MADERA_DSP7LMIX_INPUT_1_SOURCE 0xC40
+#define MADERA_DSP7LMIX_INPUT_1_VOLUME 0xC41
+#define MADERA_DSP7LMIX_INPUT_2_SOURCE 0xC42
+#define MADERA_DSP7LMIX_INPUT_2_VOLUME 0xC43
+#define MADERA_DSP7LMIX_INPUT_3_SOURCE 0xC44
+#define MADERA_DSP7LMIX_INPUT_3_VOLUME 0xC45
+#define MADERA_DSP7LMIX_INPUT_4_SOURCE 0xC46
+#define MADERA_DSP7LMIX_INPUT_4_VOLUME 0xC47
+#define MADERA_DSP7RMIX_INPUT_1_SOURCE 0xC48
+#define MADERA_DSP7RMIX_INPUT_1_VOLUME 0xC49
+#define MADERA_DSP7RMIX_INPUT_2_SOURCE 0xC4A
+#define MADERA_DSP7RMIX_INPUT_2_VOLUME 0xC4B
+#define MADERA_DSP7RMIX_INPUT_3_SOURCE 0xC4C
+#define MADERA_DSP7RMIX_INPUT_3_VOLUME 0xC4D
+#define MADERA_DSP7RMIX_INPUT_4_SOURCE 0xC4E
+#define MADERA_DSP7RMIX_INPUT_4_VOLUME 0xC4F
+#define MADERA_DSP7AUX1MIX_INPUT_1_SOURCE 0xC50
+#define MADERA_DSP7AUX2MIX_INPUT_1_SOURCE 0xC58
+#define MADERA_DSP7AUX3MIX_INPUT_1_SOURCE 0xC60
+#define MADERA_DSP7AUX4MIX_INPUT_1_SOURCE 0xC68
+#define MADERA_DSP7AUX5MIX_INPUT_1_SOURCE 0xC70
+#define MADERA_DSP7AUX6MIX_INPUT_1_SOURCE 0xC78
+#define MADERA_DFC1MIX_INPUT_1_SOURCE 0xDC0
+#define MADERA_DFC2MIX_INPUT_1_SOURCE 0xDC8
+#define MADERA_DFC3MIX_INPUT_1_SOURCE 0xDD0
+#define MADERA_DFC4MIX_INPUT_1_SOURCE 0xDD8
+#define MADERA_DFC5MIX_INPUT_1_SOURCE 0xDE0
+#define MADERA_DFC6MIX_INPUT_1_SOURCE 0xDE8
+#define MADERA_DFC7MIX_INPUT_1_SOURCE 0xDF0
+#define MADERA_DFC8MIX_INPUT_1_SOURCE 0xDF8
+#define MADERA_FX_CTRL1 0xE00
+#define MADERA_FX_CTRL2 0xE01
+#define MADERA_EQ1_1 0xE10
+#define MADERA_EQ1_2 0xE11
+#define MADERA_EQ1_3 0xE12
+#define MADERA_EQ1_4 0xE13
+#define MADERA_EQ1_5 0xE14
+#define MADERA_EQ1_6 0xE15
+#define MADERA_EQ1_7 0xE16
+#define MADERA_EQ1_8 0xE17
+#define MADERA_EQ1_9 0xE18
+#define MADERA_EQ1_10 0xE19
+#define MADERA_EQ1_11 0xE1A
+#define MADERA_EQ1_12 0xE1B
+#define MADERA_EQ1_13 0xE1C
+#define MADERA_EQ1_14 0xE1D
+#define MADERA_EQ1_15 0xE1E
+#define MADERA_EQ1_16 0xE1F
+#define MADERA_EQ1_17 0xE20
+#define MADERA_EQ1_18 0xE21
+#define MADERA_EQ1_19 0xE22
+#define MADERA_EQ1_20 0xE23
+#define MADERA_EQ1_21 0xE24
+#define MADERA_EQ2_1 0xE26
+#define MADERA_EQ2_2 0xE27
+#define MADERA_EQ2_3 0xE28
+#define MADERA_EQ2_4 0xE29
+#define MADERA_EQ2_5 0xE2A
+#define MADERA_EQ2_6 0xE2B
+#define MADERA_EQ2_7 0xE2C
+#define MADERA_EQ2_8 0xE2D
+#define MADERA_EQ2_9 0xE2E
+#define MADERA_EQ2_10 0xE2F
+#define MADERA_EQ2_11 0xE30
+#define MADERA_EQ2_12 0xE31
+#define MADERA_EQ2_13 0xE32
+#define MADERA_EQ2_14 0xE33
+#define MADERA_EQ2_15 0xE34
+#define MADERA_EQ2_16 0xE35
+#define MADERA_EQ2_17 0xE36
+#define MADERA_EQ2_18 0xE37
+#define MADERA_EQ2_19 0xE38
+#define MADERA_EQ2_20 0xE39
+#define MADERA_EQ2_21 0xE3A
+#define MADERA_EQ3_1 0xE3C
+#define MADERA_EQ3_2 0xE3D
+#define MADERA_EQ3_3 0xE3E
+#define MADERA_EQ3_4 0xE3F
+#define MADERA_EQ3_5 0xE40
+#define MADERA_EQ3_6 0xE41
+#define MADERA_EQ3_7 0xE42
+#define MADERA_EQ3_8 0xE43
+#define MADERA_EQ3_9 0xE44
+#define MADERA_EQ3_10 0xE45
+#define MADERA_EQ3_11 0xE46
+#define MADERA_EQ3_12 0xE47
+#define MADERA_EQ3_13 0xE48
+#define MADERA_EQ3_14 0xE49
+#define MADERA_EQ3_15 0xE4A
+#define MADERA_EQ3_16 0xE4B
+#define MADERA_EQ3_17 0xE4C
+#define MADERA_EQ3_18 0xE4D
+#define MADERA_EQ3_19 0xE4E
+#define MADERA_EQ3_20 0xE4F
+#define MADERA_EQ3_21 0xE50
+#define MADERA_EQ4_1 0xE52
+#define MADERA_EQ4_2 0xE53
+#define MADERA_EQ4_3 0xE54
+#define MADERA_EQ4_4 0xE55
+#define MADERA_EQ4_5 0xE56
+#define MADERA_EQ4_6 0xE57
+#define MADERA_EQ4_7 0xE58
+#define MADERA_EQ4_8 0xE59
+#define MADERA_EQ4_9 0xE5A
+#define MADERA_EQ4_10 0xE5B
+#define MADERA_EQ4_11 0xE5C
+#define MADERA_EQ4_12 0xE5D
+#define MADERA_EQ4_13 0xE5E
+#define MADERA_EQ4_14 0xE5F
+#define MADERA_EQ4_15 0xE60
+#define MADERA_EQ4_16 0xE61
+#define MADERA_EQ4_17 0xE62
+#define MADERA_EQ4_18 0xE63
+#define MADERA_EQ4_19 0xE64
+#define MADERA_EQ4_20 0xE65
+#define MADERA_EQ4_21 0xE66
+#define MADERA_DRC1_CTRL1 0xE80
+#define MADERA_DRC1_CTRL2 0xE81
+#define MADERA_DRC1_CTRL3 0xE82
+#define MADERA_DRC1_CTRL4 0xE83
+#define MADERA_DRC1_CTRL5 0xE84
+#define MADERA_DRC2_CTRL1 0xE88
+#define MADERA_DRC2_CTRL2 0xE89
+#define MADERA_DRC2_CTRL3 0xE8A
+#define MADERA_DRC2_CTRL4 0xE8B
+#define MADERA_DRC2_CTRL5 0xE8C
+#define MADERA_HPLPF1_1 0xEC0
+#define MADERA_HPLPF1_2 0xEC1
+#define MADERA_HPLPF2_1 0xEC4
+#define MADERA_HPLPF2_2 0xEC5
+#define MADERA_HPLPF3_1 0xEC8
+#define MADERA_HPLPF3_2 0xEC9
+#define MADERA_HPLPF4_1 0xECC
+#define MADERA_HPLPF4_2 0xECD
+#define MADERA_ASRC2_ENABLE 0xED0
+#define MADERA_ASRC2_STATUS 0xED1
+#define MADERA_ASRC2_RATE1 0xED2
+#define MADERA_ASRC2_RATE2 0xED3
+#define MADERA_ASRC1_ENABLE 0xEE0
+#define MADERA_ASRC1_STATUS 0xEE1
+#define MADERA_ASRC1_RATE1 0xEE2
+#define MADERA_ASRC1_RATE2 0xEE3
+#define MADERA_ISRC_1_CTRL_1 0xEF0
+#define MADERA_ISRC_1_CTRL_2 0xEF1
+#define MADERA_ISRC_1_CTRL_3 0xEF2
+#define MADERA_ISRC_2_CTRL_1 0xEF3
+#define MADERA_ISRC_2_CTRL_2 0xEF4
+#define MADERA_ISRC_2_CTRL_3 0xEF5
+#define MADERA_ISRC_3_CTRL_1 0xEF6
+#define MADERA_ISRC_3_CTRL_2 0xEF7
+#define MADERA_ISRC_3_CTRL_3 0xEF8
+#define MADERA_ISRC_4_CTRL_1 0xEF9
+#define MADERA_ISRC_4_CTRL_2 0xEFA
+#define MADERA_ISRC_4_CTRL_3 0xEFB
+#define MADERA_CLOCK_CONTROL 0xF00
+#define MADERA_ANC_SRC 0xF01
+#define MADERA_DSP_STATUS 0xF02
+#define MADERA_ANC_COEFF_START 0xF08
+#define MADERA_ANC_COEFF_END 0xF12
+#define MADERA_FCL_FILTER_CONTROL 0xF15
+#define MADERA_FCL_ADC_REFORMATTER_CONTROL 0xF17
+#define MADERA_FCL_COEFF_START 0xF18
+#define MADERA_FCL_COEFF_END 0xF69
+#define MADERA_FCR_FILTER_CONTROL 0xF71
+#define MADERA_FCR_ADC_REFORMATTER_CONTROL 0xF73
+#define MADERA_FCR_COEFF_START 0xF74
+#define MADERA_FCR_COEFF_END 0xFC5
+#define MADERA_DAC_COMP_1 0x1300
+#define MADERA_DAC_COMP_2 0x1302
+#define MADERA_FRF_COEFFICIENT_1L_1 0x1380
+#define MADERA_FRF_COEFFICIENT_1L_2 0x1381
+#define MADERA_FRF_COEFFICIENT_1L_3 0x1382
+#define MADERA_FRF_COEFFICIENT_1L_4 0x1383
+#define MADERA_FRF_COEFFICIENT_1R_1 0x1390
+#define MADERA_FRF_COEFFICIENT_1R_2 0x1391
+#define MADERA_FRF_COEFFICIENT_1R_3 0x1392
+#define MADERA_FRF_COEFFICIENT_1R_4 0x1393
+#define MADERA_FRF_COEFFICIENT_2L_1 0x13A0
+#define MADERA_FRF_COEFFICIENT_2L_2 0x13A1
+#define MADERA_FRF_COEFFICIENT_2L_3 0x13A2
+#define MADERA_FRF_COEFFICIENT_2L_4 0x13A3
+#define MADERA_FRF_COEFFICIENT_2R_1 0x13B0
+#define MADERA_FRF_COEFFICIENT_2R_2 0x13B1
+#define MADERA_FRF_COEFFICIENT_2R_3 0x13B2
+#define MADERA_FRF_COEFFICIENT_2R_4 0x13B3
+#define MADERA_FRF_COEFFICIENT_3L_1 0x13C0
+#define MADERA_FRF_COEFFICIENT_3L_2 0x13C1
+#define MADERA_FRF_COEFFICIENT_3L_3 0x13C2
+#define MADERA_FRF_COEFFICIENT_3L_4 0x13C3
+#define MADERA_FRF_COEFFICIENT_3R_1 0x13D0
+#define MADERA_FRF_COEFFICIENT_3R_2 0x13D1
+#define MADERA_FRF_COEFFICIENT_3R_3 0x13D2
+#define MADERA_FRF_COEFFICIENT_3R_4 0x13D3
+#define MADERA_FRF_COEFFICIENT_4L_1 0x13E0
+#define MADERA_FRF_COEFFICIENT_4L_2 0x13E1
+#define MADERA_FRF_COEFFICIENT_4L_3 0x13E2
+#define MADERA_FRF_COEFFICIENT_4L_4 0x13E3
+#define MADERA_FRF_COEFFICIENT_4R_1 0x13F0
+#define MADERA_FRF_COEFFICIENT_4R_2 0x13F1
+#define MADERA_FRF_COEFFICIENT_4R_3 0x13F2
+#define MADERA_FRF_COEFFICIENT_4R_4 0x13F3
+#define CS47L35_FRF_COEFFICIENT_4L_1 0x13A0
+#define CS47L35_FRF_COEFFICIENT_4L_2 0x13A1
+#define CS47L35_FRF_COEFFICIENT_4L_3 0x13A2
+#define CS47L35_FRF_COEFFICIENT_4L_4 0x13A3
+#define CS47L35_FRF_COEFFICIENT_5L_1 0x13B0
+#define CS47L35_FRF_COEFFICIENT_5L_2 0x13B1
+#define CS47L35_FRF_COEFFICIENT_5L_3 0x13B2
+#define CS47L35_FRF_COEFFICIENT_5L_4 0x13B3
+#define CS47L35_FRF_COEFFICIENT_5R_1 0x13C0
+#define CS47L35_FRF_COEFFICIENT_5R_2 0x13C1
+#define CS47L35_FRF_COEFFICIENT_5R_3 0x13C2
+#define CS47L35_FRF_COEFFICIENT_5R_4 0x13C3
+#define MADERA_FRF_COEFFICIENT_5L_1 0x1400
+#define MADERA_FRF_COEFFICIENT_5L_2 0x1401
+#define MADERA_FRF_COEFFICIENT_5L_3 0x1402
+#define MADERA_FRF_COEFFICIENT_5L_4 0x1403
+#define MADERA_FRF_COEFFICIENT_5R_1 0x1410
+#define MADERA_FRF_COEFFICIENT_5R_2 0x1411
+#define MADERA_FRF_COEFFICIENT_5R_3 0x1412
+#define MADERA_FRF_COEFFICIENT_5R_4 0x1413
+#define MADERA_FRF_COEFFICIENT_6L_1 0x1420
+#define MADERA_FRF_COEFFICIENT_6L_2 0x1421
+#define MADERA_FRF_COEFFICIENT_6L_3 0x1422
+#define MADERA_FRF_COEFFICIENT_6L_4 0x1423
+#define MADERA_FRF_COEFFICIENT_6R_1 0x1430
+#define MADERA_FRF_COEFFICIENT_6R_2 0x1431
+#define MADERA_FRF_COEFFICIENT_6R_3 0x1432
+#define MADERA_FRF_COEFFICIENT_6R_4 0x1433
+#define MADERA_DFC1_CTRL 0x1480
+#define MADERA_DFC1_RX 0x1482
+#define MADERA_DFC1_TX 0x1484
+#define MADERA_DFC2_CTRL 0x1486
+#define MADERA_DFC2_RX 0x1488
+#define MADERA_DFC2_TX 0x148A
+#define MADERA_DFC3_CTRL 0x148C
+#define MADERA_DFC3_RX 0x148E
+#define MADERA_DFC3_TX 0x1490
+#define MADERA_DFC4_CTRL 0x1492
+#define MADERA_DFC4_RX 0x1494
+#define MADERA_DFC4_TX 0x1496
+#define MADERA_DFC5_CTRL 0x1498
+#define MADERA_DFC5_RX 0x149A
+#define MADERA_DFC5_TX 0x149C
+#define MADERA_DFC6_CTRL 0x149E
+#define MADERA_DFC6_RX 0x14A0
+#define MADERA_DFC6_TX 0x14A2
+#define MADERA_DFC7_CTRL 0x14A4
+#define MADERA_DFC7_RX 0x14A6
+#define MADERA_DFC7_TX 0x14A8
+#define MADERA_DFC8_CTRL 0x14AA
+#define MADERA_DFC8_RX 0x14AC
+#define MADERA_DFC8_TX 0x14AE
+#define MADERA_DFC_STATUS 0x14B6
+#define MADERA_ADSP2_IRQ0 0x1600
+#define MADERA_ADSP2_IRQ1 0x1601
+#define MADERA_ADSP2_IRQ2 0x1602
+#define MADERA_ADSP2_IRQ3 0x1603
+#define MADERA_ADSP2_IRQ4 0x1604
+#define MADERA_ADSP2_IRQ5 0x1605
+#define MADERA_ADSP2_IRQ6 0x1606
+#define MADERA_ADSP2_IRQ7 0x1607
+#define MADERA_GPIO1_CTRL_1 0x1700
+#define MADERA_GPIO1_CTRL_2 0x1701
+#define MADERA_GPIO2_CTRL_1 0x1702
+#define MADERA_GPIO2_CTRL_2 0x1703
+#define MADERA_GPIO3_CTRL_1 0x1704
+#define MADERA_GPIO3_CTRL_2 0x1705
+#define MADERA_GPIO4_CTRL_1 0x1706
+#define MADERA_GPIO4_CTRL_2 0x1707
+#define MADERA_GPIO5_CTRL_1 0x1708
+#define MADERA_GPIO5_CTRL_2 0x1709
+#define MADERA_GPIO6_CTRL_1 0x170A
+#define MADERA_GPIO6_CTRL_2 0x170B
+#define MADERA_GPIO7_CTRL_1 0x170C
+#define MADERA_GPIO7_CTRL_2 0x170D
+#define MADERA_GPIO8_CTRL_1 0x170E
+#define MADERA_GPIO8_CTRL_2 0x170F
+#define MADERA_GPIO9_CTRL_1 0x1710
+#define MADERA_GPIO9_CTRL_2 0x1711
+#define MADERA_GPIO10_CTRL_1 0x1712
+#define MADERA_GPIO10_CTRL_2 0x1713
+#define MADERA_GPIO11_CTRL_1 0x1714
+#define MADERA_GPIO11_CTRL_2 0x1715
+#define MADERA_GPIO12_CTRL_1 0x1716
+#define MADERA_GPIO12_CTRL_2 0x1717
+#define MADERA_GPIO13_CTRL_1 0x1718
+#define MADERA_GPIO13_CTRL_2 0x1719
+#define MADERA_GPIO14_CTRL_1 0x171A
+#define MADERA_GPIO14_CTRL_2 0x171B
+#define MADERA_GPIO15_CTRL_1 0x171C
+#define MADERA_GPIO15_CTRL_2 0x171D
+#define MADERA_GPIO16_CTRL_1 0x171E
+#define MADERA_GPIO16_CTRL_2 0x171F
+#define MADERA_GPIO17_CTRL_1 0x1720
+#define MADERA_GPIO17_CTRL_2 0x1721
+#define MADERA_GPIO18_CTRL_1 0x1722
+#define MADERA_GPIO18_CTRL_2 0x1723
+#define MADERA_GPIO19_CTRL_1 0x1724
+#define MADERA_GPIO19_CTRL_2 0x1725
+#define MADERA_GPIO20_CTRL_1 0x1726
+#define MADERA_GPIO20_CTRL_2 0x1727
+#define MADERA_GPIO21_CTRL_1 0x1728
+#define MADERA_GPIO21_CTRL_2 0x1729
+#define MADERA_GPIO22_CTRL_1 0x172A
+#define MADERA_GPIO22_CTRL_2 0x172B
+#define MADERA_GPIO23_CTRL_1 0x172C
+#define MADERA_GPIO23_CTRL_2 0x172D
+#define MADERA_GPIO24_CTRL_1 0x172E
+#define MADERA_GPIO24_CTRL_2 0x172F
+#define MADERA_GPIO25_CTRL_1 0x1730
+#define MADERA_GPIO25_CTRL_2 0x1731
+#define MADERA_GPIO26_CTRL_1 0x1732
+#define MADERA_GPIO26_CTRL_2 0x1733
+#define MADERA_GPIO27_CTRL_1 0x1734
+#define MADERA_GPIO27_CTRL_2 0x1735
+#define MADERA_GPIO28_CTRL_1 0x1736
+#define MADERA_GPIO28_CTRL_2 0x1737
+#define MADERA_GPIO29_CTRL_1 0x1738
+#define MADERA_GPIO29_CTRL_2 0x1739
+#define MADERA_GPIO30_CTRL_1 0x173A
+#define MADERA_GPIO30_CTRL_2 0x173B
+#define MADERA_GPIO31_CTRL_1 0x173C
+#define MADERA_GPIO31_CTRL_2 0x173D
+#define MADERA_GPIO32_CTRL_1 0x173E
+#define MADERA_GPIO32_CTRL_2 0x173F
+#define MADERA_GPIO33_CTRL_1 0x1740
+#define MADERA_GPIO33_CTRL_2 0x1741
+#define MADERA_GPIO34_CTRL_1 0x1742
+#define MADERA_GPIO34_CTRL_2 0x1743
+#define MADERA_GPIO35_CTRL_1 0x1744
+#define MADERA_GPIO35_CTRL_2 0x1745
+#define MADERA_GPIO36_CTRL_1 0x1746
+#define MADERA_GPIO36_CTRL_2 0x1747
+#define MADERA_GPIO37_CTRL_1 0x1748
+#define MADERA_GPIO37_CTRL_2 0x1749
+#define MADERA_GPIO38_CTRL_1 0x174A
+#define MADERA_GPIO38_CTRL_2 0x174B
+#define MADERA_GPIO39_CTRL_1 0x174C
+#define MADERA_GPIO39_CTRL_2 0x174D
+#define MADERA_GPIO40_CTRL_1 0x174E
+#define MADERA_GPIO40_CTRL_2 0x174F
+#define MADERA_IRQ1_STATUS_1 0x1800
+#define MADERA_IRQ1_STATUS_2 0x1801
+#define MADERA_IRQ1_STATUS_3 0x1802
+#define MADERA_IRQ1_STATUS_4 0x1803
+#define MADERA_IRQ1_STATUS_5 0x1804
+#define MADERA_IRQ1_STATUS_6 0x1805
+#define MADERA_IRQ1_STATUS_7 0x1806
+#define MADERA_IRQ1_STATUS_8 0x1807
+#define MADERA_IRQ1_STATUS_9 0x1808
+#define MADERA_IRQ1_STATUS_10 0x1809
+#define MADERA_IRQ1_STATUS_11 0x180A
+#define MADERA_IRQ1_STATUS_12 0x180B
+#define MADERA_IRQ1_STATUS_13 0x180C
+#define MADERA_IRQ1_STATUS_14 0x180D
+#define MADERA_IRQ1_STATUS_15 0x180E
+#define MADERA_IRQ1_STATUS_16 0x180F
+#define MADERA_IRQ1_STATUS_17 0x1810
+#define MADERA_IRQ1_STATUS_18 0x1811
+#define MADERA_IRQ1_STATUS_19 0x1812
+#define MADERA_IRQ1_STATUS_20 0x1813
+#define MADERA_IRQ1_STATUS_21 0x1814
+#define MADERA_IRQ1_STATUS_22 0x1815
+#define MADERA_IRQ1_STATUS_23 0x1816
+#define MADERA_IRQ1_STATUS_24 0x1817
+#define MADERA_IRQ1_STATUS_25 0x1818
+#define MADERA_IRQ1_STATUS_26 0x1819
+#define MADERA_IRQ1_STATUS_27 0x181A
+#define MADERA_IRQ1_STATUS_28 0x181B
+#define MADERA_IRQ1_STATUS_29 0x181C
+#define MADERA_IRQ1_STATUS_30 0x181D
+#define MADERA_IRQ1_STATUS_31 0x181E
+#define MADERA_IRQ1_STATUS_32 0x181F
+#define MADERA_IRQ1_STATUS_33 0x1820
+#define MADERA_IRQ1_MASK_1 0x1840
+#define MADERA_IRQ1_MASK_2 0x1841
+#define MADERA_IRQ1_MASK_3 0x1842
+#define MADERA_IRQ1_MASK_4 0x1843
+#define MADERA_IRQ1_MASK_5 0x1844
+#define MADERA_IRQ1_MASK_6 0x1845
+#define MADERA_IRQ1_MASK_7 0x1846
+#define MADERA_IRQ1_MASK_8 0x1847
+#define MADERA_IRQ1_MASK_9 0x1848
+#define MADERA_IRQ1_MASK_10 0x1849
+#define MADERA_IRQ1_MASK_11 0x184A
+#define MADERA_IRQ1_MASK_12 0x184B
+#define MADERA_IRQ1_MASK_13 0x184C
+#define MADERA_IRQ1_MASK_14 0x184D
+#define MADERA_IRQ1_MASK_15 0x184E
+#define MADERA_IRQ1_MASK_16 0x184F
+#define MADERA_IRQ1_MASK_17 0x1850
+#define MADERA_IRQ1_MASK_18 0x1851
+#define MADERA_IRQ1_MASK_19 0x1852
+#define MADERA_IRQ1_MASK_20 0x1853
+#define MADERA_IRQ1_MASK_21 0x1854
+#define MADERA_IRQ1_MASK_22 0x1855
+#define MADERA_IRQ1_MASK_23 0x1856
+#define MADERA_IRQ1_MASK_24 0x1857
+#define MADERA_IRQ1_MASK_25 0x1858
+#define MADERA_IRQ1_MASK_26 0x1859
+#define MADERA_IRQ1_MASK_27 0x185A
+#define MADERA_IRQ1_MASK_28 0x185B
+#define MADERA_IRQ1_MASK_29 0x185C
+#define MADERA_IRQ1_MASK_30 0x185D
+#define MADERA_IRQ1_MASK_31 0x185E
+#define MADERA_IRQ1_MASK_32 0x185F
+#define MADERA_IRQ1_MASK_33 0x1860
+#define MADERA_IRQ1_RAW_STATUS_1 0x1880
+#define MADERA_IRQ1_RAW_STATUS_2 0x1881
+#define MADERA_IRQ1_RAW_STATUS_3 0x1882
+#define MADERA_IRQ1_RAW_STATUS_4 0x1883
+#define MADERA_IRQ1_RAW_STATUS_5 0x1884
+#define MADERA_IRQ1_RAW_STATUS_6 0x1885
+#define MADERA_IRQ1_RAW_STATUS_7 0x1886
+#define MADERA_IRQ1_RAW_STATUS_8 0x1887
+#define MADERA_IRQ1_RAW_STATUS_9 0x1888
+#define MADERA_IRQ1_RAW_STATUS_10 0x1889
+#define MADERA_IRQ1_RAW_STATUS_11 0x188A
+#define MADERA_IRQ1_RAW_STATUS_12 0x188B
+#define MADERA_IRQ1_RAW_STATUS_13 0x188C
+#define MADERA_IRQ1_RAW_STATUS_14 0x188D
+#define MADERA_IRQ1_RAW_STATUS_15 0x188E
+#define MADERA_IRQ1_RAW_STATUS_16 0x188F
+#define MADERA_IRQ1_RAW_STATUS_17 0x1890
+#define MADERA_IRQ1_RAW_STATUS_18 0x1891
+#define MADERA_IRQ1_RAW_STATUS_19 0x1892
+#define MADERA_IRQ1_RAW_STATUS_20 0x1893
+#define MADERA_IRQ1_RAW_STATUS_21 0x1894
+#define MADERA_IRQ1_RAW_STATUS_22 0x1895
+#define MADERA_IRQ1_RAW_STATUS_23 0x1896
+#define MADERA_IRQ1_RAW_STATUS_24 0x1897
+#define MADERA_IRQ1_RAW_STATUS_25 0x1898
+#define MADERA_IRQ1_RAW_STATUS_26 0x1899
+#define MADERA_IRQ1_RAW_STATUS_27 0x189A
+#define MADERA_IRQ1_RAW_STATUS_28 0x189D
+#define MADERA_IRQ1_RAW_STATUS_29 0x189C
+#define MADERA_IRQ1_RAW_STATUS_30 0x189D
+#define MADERA_IRQ1_RAW_STATUS_31 0x189E
+#define MADERA_IRQ1_RAW_STATUS_32 0x189F
+#define MADERA_IRQ1_RAW_STATUS_33 0x18A0
+#define MADERA_IRQ2_STATUS_1 0x1900
+#define MADERA_IRQ2_STATUS_2 0x1901
+#define MADERA_IRQ2_STATUS_6 0x1905
+#define MADERA_IRQ2_STATUS_7 0x1906
+#define MADERA_IRQ2_STATUS_9 0x1908
+#define MADERA_IRQ2_STATUS_11 0x190A
+#define MADERA_IRQ2_STATUS_12 0x190B
+#define MADERA_IRQ2_STATUS_13 0x190C
+#define MADERA_IRQ2_STATUS_14 0x190D
+#define MADERA_IRQ2_STATUS_15 0x190E
+#define MADERA_IRQ2_STATUS_17 0x1910
+#define MADERA_IRQ2_STATUS_18 0x1911
+#define MADERA_IRQ2_STATUS_19 0x1912
+#define MADERA_IRQ2_STATUS_21 0x1914
+#define MADERA_IRQ2_STATUS_22 0x1915
+#define MADERA_IRQ2_STATUS_23 0x1916
+#define MADERA_IRQ2_STATUS_24 0x1917
+#define MADERA_IRQ2_STATUS_25 0x1918
+#define MADERA_IRQ2_STATUS_27 0x191A
+#define MADERA_IRQ2_STATUS_28 0x191B
+#define MADERA_IRQ2_STATUS_30 0x191D
+#define MADERA_IRQ2_STATUS_31 0x191E
+#define MADERA_IRQ2_STATUS_32 0x191F
+#define MADERA_IRQ2_STATUS_33 0x1920
+#define MADERA_IRQ2_MASK_1 0x1940
+#define MADERA_IRQ2_MASK_2 0x1941
+#define MADERA_IRQ2_MASK_6 0x1945
+#define MADERA_IRQ2_MASK_7 0x1946
+#define MADERA_IRQ2_MASK_9 0x1948
+#define MADERA_IRQ2_MASK_11 0x194A
+#define MADERA_IRQ2_MASK_12 0x194B
+#define MADERA_IRQ2_MASK_13 0x194C
+#define MADERA_IRQ2_MASK_14 0x194D
+#define MADERA_IRQ2_MASK_15 0x194E
+#define MADERA_IRQ2_MASK_17 0x1950
+#define MADERA_IRQ2_MASK_18 0x1951
+#define MADERA_IRQ2_MASK_19 0x1952
+#define MADERA_IRQ2_MASK_21 0x1954
+#define MADERA_IRQ2_MASK_22 0x1955
+#define MADERA_IRQ2_MASK_23 0x1956
+#define MADERA_IRQ2_MASK_24 0x1957
+#define MADERA_IRQ2_MASK_25 0x1958
+#define MADERA_IRQ2_MASK_27 0x195A
+#define MADERA_IRQ2_MASK_28 0x195B
+#define MADERA_IRQ2_MASK_30 0x195D
+#define MADERA_IRQ2_MASK_31 0x195E
+#define MADERA_IRQ2_MASK_32 0x195F
+#define MADERA_IRQ2_MASK_33 0x1960
+#define MADERA_IRQ2_RAW_STATUS_1 0x1980
+#define MADERA_IRQ2_RAW_STATUS_2 0x1981
+#define MADERA_IRQ2_RAW_STATUS_6 0x1985
+#define MADERA_IRQ2_RAW_STATUS_7 0x1986
+#define MADERA_IRQ2_RAW_STATUS_9 0x1988
+#define MADERA_IRQ2_RAW_STATUS_10 0x1989
+#define MADERA_IRQ2_RAW_STATUS_11 0x198A
+#define MADERA_IRQ2_RAW_STATUS_12 0x198B
+#define MADERA_IRQ2_RAW_STATUS_13 0x198C
+#define MADERA_IRQ2_RAW_STATUS_14 0x198D
+#define MADERA_IRQ2_RAW_STATUS_15 0x198E
+#define MADERA_IRQ2_RAW_STATUS_17 0x1990
+#define MADERA_IRQ2_RAW_STATUS_18 0x1991
+#define MADERA_IRQ2_RAW_STATUS_19 0x1992
+#define MADERA_IRQ2_RAW_STATUS_21 0x1994
+#define MADERA_IRQ2_RAW_STATUS_22 0x1995
+#define MADERA_IRQ2_RAW_STATUS_23 0x1996
+#define MADERA_IRQ2_RAW_STATUS_24 0x1997
+#define MADERA_IRQ2_RAW_STATUS_25 0x1998
+#define MADERA_IRQ2_RAW_STATUS_30 0x199D
+#define MADERA_IRQ2_RAW_STATUS_31 0x199E
+#define MADERA_IRQ2_RAW_STATUS_32 0x199F
+#define MADERA_IRQ2_RAW_STATUS_33 0x19A0
+#define MADERA_INTERRUPT_DEBOUNCE_7 0x1A06
+#define MADERA_INTERRUPT_DEBOUNCE_15 0x1A0E
+#define MADERA_IRQ1_CTRL 0x1A80
+#define MADERA_IRQ2_CTRL 0x1A82
+#define MADERA_INTERRUPT_RAW_STATUS_1 0x1AA0
+#define MADERA_WSEQ_SEQUENCE_1 0x3000
+#define MADERA_WSEQ_SEQUENCE_2 0x3002
+#define MADERA_WSEQ_SEQUENCE_3 0x3004
+#define MADERA_WSEQ_SEQUENCE_4 0x3006
+#define MADERA_WSEQ_SEQUENCE_5 0x3008
+#define MADERA_WSEQ_SEQUENCE_6 0x300A
+#define MADERA_WSEQ_SEQUENCE_7 0x300C
+#define MADERA_WSEQ_SEQUENCE_8 0x300E
+#define MADERA_WSEQ_SEQUENCE_9 0x3010
+#define MADERA_WSEQ_SEQUENCE_10 0x3012
+#define MADERA_WSEQ_SEQUENCE_11 0x3014
+#define MADERA_WSEQ_SEQUENCE_12 0x3016
+#define MADERA_WSEQ_SEQUENCE_13 0x3018
+#define MADERA_WSEQ_SEQUENCE_14 0x301A
+#define MADERA_WSEQ_SEQUENCE_15 0x301C
+#define MADERA_WSEQ_SEQUENCE_16 0x301E
+#define MADERA_WSEQ_SEQUENCE_17 0x3020
+#define MADERA_WSEQ_SEQUENCE_18 0x3022
+#define MADERA_WSEQ_SEQUENCE_19 0x3024
+#define MADERA_WSEQ_SEQUENCE_20 0x3026
+#define MADERA_WSEQ_SEQUENCE_21 0x3028
+#define MADERA_WSEQ_SEQUENCE_22 0x302A
+#define MADERA_WSEQ_SEQUENCE_23 0x302C
+#define MADERA_WSEQ_SEQUENCE_24 0x302E
+#define MADERA_WSEQ_SEQUENCE_25 0x3030
+#define MADERA_WSEQ_SEQUENCE_26 0x3032
+#define MADERA_WSEQ_SEQUENCE_27 0x3034
+#define MADERA_WSEQ_SEQUENCE_28 0x3036
+#define MADERA_WSEQ_SEQUENCE_29 0x3038
+#define MADERA_WSEQ_SEQUENCE_30 0x303A
+#define MADERA_WSEQ_SEQUENCE_31 0x303C
+#define MADERA_WSEQ_SEQUENCE_32 0x303E
+#define MADERA_WSEQ_SEQUENCE_33 0x3040
+#define MADERA_WSEQ_SEQUENCE_34 0x3042
+#define MADERA_WSEQ_SEQUENCE_35 0x3044
+#define MADERA_WSEQ_SEQUENCE_36 0x3046
+#define MADERA_WSEQ_SEQUENCE_37 0x3048
+#define MADERA_WSEQ_SEQUENCE_38 0x304A
+#define MADERA_WSEQ_SEQUENCE_39 0x304C
+#define MADERA_WSEQ_SEQUENCE_40 0x304E
+#define MADERA_WSEQ_SEQUENCE_41 0x3050
+#define MADERA_WSEQ_SEQUENCE_42 0x3052
+#define MADERA_WSEQ_SEQUENCE_43 0x3054
+#define MADERA_WSEQ_SEQUENCE_44 0x3056
+#define MADERA_WSEQ_SEQUENCE_45 0x3058
+#define MADERA_WSEQ_SEQUENCE_46 0x305A
+#define MADERA_WSEQ_SEQUENCE_47 0x305C
+#define MADERA_WSEQ_SEQUENCE_48 0x305E
+#define MADERA_WSEQ_SEQUENCE_49 0x3060
+#define MADERA_WSEQ_SEQUENCE_50 0x3062
+#define MADERA_WSEQ_SEQUENCE_51 0x3064
+#define MADERA_WSEQ_SEQUENCE_52 0x3066
+#define MADERA_WSEQ_SEQUENCE_53 0x3068
+#define MADERA_WSEQ_SEQUENCE_54 0x306A
+#define MADERA_WSEQ_SEQUENCE_55 0x306C
+#define MADERA_WSEQ_SEQUENCE_56 0x306E
+#define MADERA_WSEQ_SEQUENCE_57 0x3070
+#define MADERA_WSEQ_SEQUENCE_58 0x3072
+#define MADERA_WSEQ_SEQUENCE_59 0x3074
+#define MADERA_WSEQ_SEQUENCE_60 0x3076
+#define MADERA_WSEQ_SEQUENCE_61 0x3078
+#define MADERA_WSEQ_SEQUENCE_62 0x307A
+#define MADERA_WSEQ_SEQUENCE_63 0x307C
+#define MADERA_WSEQ_SEQUENCE_64 0x307E
+#define MADERA_WSEQ_SEQUENCE_65 0x3080
+#define MADERA_WSEQ_SEQUENCE_66 0x3082
+#define MADERA_WSEQ_SEQUENCE_67 0x3084
+#define MADERA_WSEQ_SEQUENCE_68 0x3086
+#define MADERA_WSEQ_SEQUENCE_69 0x3088
+#define MADERA_WSEQ_SEQUENCE_70 0x308A
+#define MADERA_WSEQ_SEQUENCE_71 0x308C
+#define MADERA_WSEQ_SEQUENCE_72 0x308E
+#define MADERA_WSEQ_SEQUENCE_73 0x3090
+#define MADERA_WSEQ_SEQUENCE_74 0x3092
+#define MADERA_WSEQ_SEQUENCE_75 0x3094
+#define MADERA_WSEQ_SEQUENCE_76 0x3096
+#define MADERA_WSEQ_SEQUENCE_77 0x3098
+#define MADERA_WSEQ_SEQUENCE_78 0x309A
+#define MADERA_WSEQ_SEQUENCE_79 0x309C
+#define MADERA_WSEQ_SEQUENCE_80 0x309E
+#define MADERA_WSEQ_SEQUENCE_81 0x30A0
+#define MADERA_WSEQ_SEQUENCE_82 0x30A2
+#define MADERA_WSEQ_SEQUENCE_83 0x30A4
+#define MADERA_WSEQ_SEQUENCE_84 0x30A6
+#define MADERA_WSEQ_SEQUENCE_85 0x30A8
+#define MADERA_WSEQ_SEQUENCE_86 0x30AA
+#define MADERA_WSEQ_SEQUENCE_87 0x30AC
+#define MADERA_WSEQ_SEQUENCE_88 0x30AE
+#define MADERA_WSEQ_SEQUENCE_89 0x30B0
+#define MADERA_WSEQ_SEQUENCE_90 0x30B2
+#define MADERA_WSEQ_SEQUENCE_91 0x30B4
+#define MADERA_WSEQ_SEQUENCE_92 0x30B6
+#define MADERA_WSEQ_SEQUENCE_93 0x30B8
+#define MADERA_WSEQ_SEQUENCE_94 0x30BA
+#define MADERA_WSEQ_SEQUENCE_95 0x30BC
+#define MADERA_WSEQ_SEQUENCE_96 0x30BE
+#define MADERA_WSEQ_SEQUENCE_97 0x30C0
+#define MADERA_WSEQ_SEQUENCE_98 0x30C2
+#define MADERA_WSEQ_SEQUENCE_99 0x30C4
+#define MADERA_WSEQ_SEQUENCE_100 0x30C6
+#define MADERA_WSEQ_SEQUENCE_101 0x30C8
+#define MADERA_WSEQ_SEQUENCE_102 0x30CA
+#define MADERA_WSEQ_SEQUENCE_103 0x30CC
+#define MADERA_WSEQ_SEQUENCE_104 0x30CE
+#define MADERA_WSEQ_SEQUENCE_105 0x30D0
+#define MADERA_WSEQ_SEQUENCE_106 0x30D2
+#define MADERA_WSEQ_SEQUENCE_107 0x30D4
+#define MADERA_WSEQ_SEQUENCE_108 0x30D6
+#define MADERA_WSEQ_SEQUENCE_109 0x30D8
+#define MADERA_WSEQ_SEQUENCE_110 0x30DA
+#define MADERA_WSEQ_SEQUENCE_111 0x30DC
+#define MADERA_WSEQ_SEQUENCE_112 0x30DE
+#define MADERA_WSEQ_SEQUENCE_113 0x30E0
+#define MADERA_WSEQ_SEQUENCE_114 0x30E2
+#define MADERA_WSEQ_SEQUENCE_115 0x30E4
+#define MADERA_WSEQ_SEQUENCE_116 0x30E6
+#define MADERA_WSEQ_SEQUENCE_117 0x30E8
+#define MADERA_WSEQ_SEQUENCE_118 0x30EA
+#define MADERA_WSEQ_SEQUENCE_119 0x30EC
+#define MADERA_WSEQ_SEQUENCE_120 0x30EE
+#define MADERA_WSEQ_SEQUENCE_121 0x30F0
+#define MADERA_WSEQ_SEQUENCE_122 0x30F2
+#define MADERA_WSEQ_SEQUENCE_123 0x30F4
+#define MADERA_WSEQ_SEQUENCE_124 0x30F6
+#define MADERA_WSEQ_SEQUENCE_125 0x30F8
+#define MADERA_WSEQ_SEQUENCE_126 0x30FA
+#define MADERA_WSEQ_SEQUENCE_127 0x30FC
+#define MADERA_WSEQ_SEQUENCE_128 0x30FE
+#define MADERA_WSEQ_SEQUENCE_129 0x3100
+#define MADERA_WSEQ_SEQUENCE_130 0x3102
+#define MADERA_WSEQ_SEQUENCE_131 0x3104
+#define MADERA_WSEQ_SEQUENCE_132 0x3106
+#define MADERA_WSEQ_SEQUENCE_133 0x3108
+#define MADERA_WSEQ_SEQUENCE_134 0x310A
+#define MADERA_WSEQ_SEQUENCE_135 0x310C
+#define MADERA_WSEQ_SEQUENCE_136 0x310E
+#define MADERA_WSEQ_SEQUENCE_137 0x3110
+#define MADERA_WSEQ_SEQUENCE_138 0x3112
+#define MADERA_WSEQ_SEQUENCE_139 0x3114
+#define MADERA_WSEQ_SEQUENCE_140 0x3116
+#define MADERA_WSEQ_SEQUENCE_141 0x3118
+#define MADERA_WSEQ_SEQUENCE_142 0x311A
+#define MADERA_WSEQ_SEQUENCE_143 0x311C
+#define MADERA_WSEQ_SEQUENCE_144 0x311E
+#define MADERA_WSEQ_SEQUENCE_145 0x3120
+#define MADERA_WSEQ_SEQUENCE_146 0x3122
+#define MADERA_WSEQ_SEQUENCE_147 0x3124
+#define MADERA_WSEQ_SEQUENCE_148 0x3126
+#define MADERA_WSEQ_SEQUENCE_149 0x3128
+#define MADERA_WSEQ_SEQUENCE_150 0x312A
+#define MADERA_WSEQ_SEQUENCE_151 0x312C
+#define MADERA_WSEQ_SEQUENCE_152 0x312E
+#define MADERA_WSEQ_SEQUENCE_153 0x3130
+#define MADERA_WSEQ_SEQUENCE_154 0x3132
+#define MADERA_WSEQ_SEQUENCE_155 0x3134
+#define MADERA_WSEQ_SEQUENCE_156 0x3136
+#define MADERA_WSEQ_SEQUENCE_157 0x3138
+#define MADERA_WSEQ_SEQUENCE_158 0x313A
+#define MADERA_WSEQ_SEQUENCE_159 0x313C
+#define MADERA_WSEQ_SEQUENCE_160 0x313E
+#define MADERA_WSEQ_SEQUENCE_161 0x3140
+#define MADERA_WSEQ_SEQUENCE_162 0x3142
+#define MADERA_WSEQ_SEQUENCE_163 0x3144
+#define MADERA_WSEQ_SEQUENCE_164 0x3146
+#define MADERA_WSEQ_SEQUENCE_165 0x3148
+#define MADERA_WSEQ_SEQUENCE_166 0x314A
+#define MADERA_WSEQ_SEQUENCE_167 0x314C
+#define MADERA_WSEQ_SEQUENCE_168 0x314E
+#define MADERA_WSEQ_SEQUENCE_169 0x3150
+#define MADERA_WSEQ_SEQUENCE_170 0x3152
+#define MADERA_WSEQ_SEQUENCE_171 0x3154
+#define MADERA_WSEQ_SEQUENCE_172 0x3156
+#define MADERA_WSEQ_SEQUENCE_173 0x3158
+#define MADERA_WSEQ_SEQUENCE_174 0x315A
+#define MADERA_WSEQ_SEQUENCE_175 0x315C
+#define MADERA_WSEQ_SEQUENCE_176 0x315E
+#define MADERA_WSEQ_SEQUENCE_177 0x3160
+#define MADERA_WSEQ_SEQUENCE_178 0x3162
+#define MADERA_WSEQ_SEQUENCE_179 0x3164
+#define MADERA_WSEQ_SEQUENCE_180 0x3166
+#define MADERA_WSEQ_SEQUENCE_181 0x3168
+#define MADERA_WSEQ_SEQUENCE_182 0x316A
+#define MADERA_WSEQ_SEQUENCE_183 0x316C
+#define MADERA_WSEQ_SEQUENCE_184 0x316E
+#define MADERA_WSEQ_SEQUENCE_185 0x3170
+#define MADERA_WSEQ_SEQUENCE_186 0x3172
+#define MADERA_WSEQ_SEQUENCE_187 0x3174
+#define MADERA_WSEQ_SEQUENCE_188 0x3176
+#define MADERA_WSEQ_SEQUENCE_189 0x3178
+#define MADERA_WSEQ_SEQUENCE_190 0x317A
+#define MADERA_WSEQ_SEQUENCE_191 0x317C
+#define MADERA_WSEQ_SEQUENCE_192 0x317E
+#define MADERA_WSEQ_SEQUENCE_193 0x3180
+#define MADERA_WSEQ_SEQUENCE_194 0x3182
+#define MADERA_WSEQ_SEQUENCE_195 0x3184
+#define MADERA_WSEQ_SEQUENCE_196 0x3186
+#define MADERA_WSEQ_SEQUENCE_197 0x3188
+#define MADERA_WSEQ_SEQUENCE_198 0x318A
+#define MADERA_WSEQ_SEQUENCE_199 0x318C
+#define MADERA_WSEQ_SEQUENCE_200 0x318E
+#define MADERA_WSEQ_SEQUENCE_201 0x3190
+#define MADERA_WSEQ_SEQUENCE_202 0x3192
+#define MADERA_WSEQ_SEQUENCE_203 0x3194
+#define MADERA_WSEQ_SEQUENCE_204 0x3196
+#define MADERA_WSEQ_SEQUENCE_205 0x3198
+#define MADERA_WSEQ_SEQUENCE_206 0x319A
+#define MADERA_WSEQ_SEQUENCE_207 0x319C
+#define MADERA_WSEQ_SEQUENCE_208 0x319E
+#define MADERA_WSEQ_SEQUENCE_209 0x31A0
+#define MADERA_WSEQ_SEQUENCE_210 0x31A2
+#define MADERA_WSEQ_SEQUENCE_211 0x31A4
+#define MADERA_WSEQ_SEQUENCE_212 0x31A6
+#define MADERA_WSEQ_SEQUENCE_213 0x31A8
+#define MADERA_WSEQ_SEQUENCE_214 0x31AA
+#define MADERA_WSEQ_SEQUENCE_215 0x31AC
+#define MADERA_WSEQ_SEQUENCE_216 0x31AE
+#define MADERA_WSEQ_SEQUENCE_217 0x31B0
+#define MADERA_WSEQ_SEQUENCE_218 0x31B2
+#define MADERA_WSEQ_SEQUENCE_219 0x31B4
+#define MADERA_WSEQ_SEQUENCE_220 0x31B6
+#define MADERA_WSEQ_SEQUENCE_221 0x31B8
+#define MADERA_WSEQ_SEQUENCE_222 0x31BA
+#define MADERA_WSEQ_SEQUENCE_223 0x31BC
+#define MADERA_WSEQ_SEQUENCE_224 0x31BE
+#define MADERA_WSEQ_SEQUENCE_225 0x31C0
+#define MADERA_WSEQ_SEQUENCE_226 0x31C2
+#define MADERA_WSEQ_SEQUENCE_227 0x31C4
+#define MADERA_WSEQ_SEQUENCE_228 0x31C6
+#define MADERA_WSEQ_SEQUENCE_229 0x31C8
+#define MADERA_WSEQ_SEQUENCE_230 0x31CA
+#define MADERA_WSEQ_SEQUENCE_231 0x31CC
+#define MADERA_WSEQ_SEQUENCE_232 0x31CE
+#define MADERA_WSEQ_SEQUENCE_233 0x31D0
+#define MADERA_WSEQ_SEQUENCE_234 0x31D2
+#define MADERA_WSEQ_SEQUENCE_235 0x31D4
+#define MADERA_WSEQ_SEQUENCE_236 0x31D6
+#define MADERA_WSEQ_SEQUENCE_237 0x31D8
+#define MADERA_WSEQ_SEQUENCE_238 0x31DA
+#define MADERA_WSEQ_SEQUENCE_239 0x31DC
+#define MADERA_WSEQ_SEQUENCE_240 0x31DE
+#define MADERA_WSEQ_SEQUENCE_241 0x31E0
+#define MADERA_WSEQ_SEQUENCE_242 0x31E2
+#define MADERA_WSEQ_SEQUENCE_243 0x31E4
+#define MADERA_WSEQ_SEQUENCE_244 0x31E6
+#define MADERA_WSEQ_SEQUENCE_245 0x31E8
+#define MADERA_WSEQ_SEQUENCE_246 0x31EA
+#define MADERA_WSEQ_SEQUENCE_247 0x31EC
+#define MADERA_WSEQ_SEQUENCE_248 0x31EE
+#define MADERA_WSEQ_SEQUENCE_249 0x31F0
+#define MADERA_WSEQ_SEQUENCE_250 0x31F2
+#define MADERA_WSEQ_SEQUENCE_251 0x31F4
+#define MADERA_WSEQ_SEQUENCE_252 0x31F6
+#define MADERA_WSEQ_SEQUENCE_253 0x31F8
+#define CS47L35_OTP_HPDET_CAL_1 0x31F8
+#define CS47L35_OTP_HPDET_CAL_2 0x31FA
+#define MADERA_WSEQ_SEQUENCE_254 0x31FA
+#define MADERA_WSEQ_SEQUENCE_255 0x31FC
+#define MADERA_WSEQ_SEQUENCE_256 0x31FE
+#define MADERA_WSEQ_SEQUENCE_257 0x3200
+#define MADERA_WSEQ_SEQUENCE_258 0x3202
+#define MADERA_WSEQ_SEQUENCE_259 0x3204
+#define MADERA_WSEQ_SEQUENCE_260 0x3206
+#define MADERA_WSEQ_SEQUENCE_261 0x3208
+#define MADERA_WSEQ_SEQUENCE_262 0x320A
+#define MADERA_WSEQ_SEQUENCE_263 0x320C
+#define MADERA_WSEQ_SEQUENCE_264 0x320E
+#define MADERA_WSEQ_SEQUENCE_265 0x3210
+#define MADERA_WSEQ_SEQUENCE_266 0x3212
+#define MADERA_WSEQ_SEQUENCE_267 0x3214
+#define MADERA_WSEQ_SEQUENCE_268 0x3216
+#define MADERA_WSEQ_SEQUENCE_269 0x3218
+#define MADERA_WSEQ_SEQUENCE_270 0x321A
+#define MADERA_WSEQ_SEQUENCE_271 0x321C
+#define MADERA_WSEQ_SEQUENCE_272 0x321E
+#define MADERA_WSEQ_SEQUENCE_273 0x3220
+#define MADERA_WSEQ_SEQUENCE_274 0x3222
+#define MADERA_WSEQ_SEQUENCE_275 0x3224
+#define MADERA_WSEQ_SEQUENCE_276 0x3226
+#define MADERA_WSEQ_SEQUENCE_277 0x3228
+#define MADERA_WSEQ_SEQUENCE_278 0x322A
+#define MADERA_WSEQ_SEQUENCE_279 0x322C
+#define MADERA_WSEQ_SEQUENCE_280 0x322E
+#define MADERA_WSEQ_SEQUENCE_281 0x3230
+#define MADERA_WSEQ_SEQUENCE_282 0x3232
+#define MADERA_WSEQ_SEQUENCE_283 0x3234
+#define MADERA_WSEQ_SEQUENCE_284 0x3236
+#define MADERA_WSEQ_SEQUENCE_285 0x3238
+#define MADERA_WSEQ_SEQUENCE_286 0x323A
+#define MADERA_WSEQ_SEQUENCE_287 0x323C
+#define MADERA_WSEQ_SEQUENCE_288 0x323E
+#define MADERA_WSEQ_SEQUENCE_289 0x3240
+#define MADERA_WSEQ_SEQUENCE_290 0x3242
+#define MADERA_WSEQ_SEQUENCE_291 0x3244
+#define MADERA_WSEQ_SEQUENCE_292 0x3246
+#define MADERA_WSEQ_SEQUENCE_293 0x3248
+#define MADERA_WSEQ_SEQUENCE_294 0x324A
+#define MADERA_WSEQ_SEQUENCE_295 0x324C
+#define MADERA_WSEQ_SEQUENCE_296 0x324E
+#define MADERA_WSEQ_SEQUENCE_297 0x3250
+#define MADERA_WSEQ_SEQUENCE_298 0x3252
+#define MADERA_WSEQ_SEQUENCE_299 0x3254
+#define MADERA_WSEQ_SEQUENCE_300 0x3256
+#define MADERA_WSEQ_SEQUENCE_301 0x3258
+#define MADERA_WSEQ_SEQUENCE_302 0x325A
+#define MADERA_WSEQ_SEQUENCE_303 0x325C
+#define MADERA_WSEQ_SEQUENCE_304 0x325E
+#define MADERA_WSEQ_SEQUENCE_305 0x3260
+#define MADERA_WSEQ_SEQUENCE_306 0x3262
+#define MADERA_WSEQ_SEQUENCE_307 0x3264
+#define MADERA_WSEQ_SEQUENCE_308 0x3266
+#define MADERA_WSEQ_SEQUENCE_309 0x3268
+#define MADERA_WSEQ_SEQUENCE_310 0x326A
+#define MADERA_WSEQ_SEQUENCE_311 0x326C
+#define MADERA_WSEQ_SEQUENCE_312 0x326E
+#define MADERA_WSEQ_SEQUENCE_313 0x3270
+#define MADERA_WSEQ_SEQUENCE_314 0x3272
+#define MADERA_WSEQ_SEQUENCE_315 0x3274
+#define MADERA_WSEQ_SEQUENCE_316 0x3276
+#define MADERA_WSEQ_SEQUENCE_317 0x3278
+#define MADERA_WSEQ_SEQUENCE_318 0x327A
+#define MADERA_WSEQ_SEQUENCE_319 0x327C
+#define MADERA_WSEQ_SEQUENCE_320 0x327E
+#define MADERA_WSEQ_SEQUENCE_321 0x3280
+#define MADERA_WSEQ_SEQUENCE_322 0x3282
+#define MADERA_WSEQ_SEQUENCE_323 0x3284
+#define MADERA_WSEQ_SEQUENCE_324 0x3286
+#define MADERA_WSEQ_SEQUENCE_325 0x3288
+#define MADERA_WSEQ_SEQUENCE_326 0x328A
+#define MADERA_WSEQ_SEQUENCE_327 0x328C
+#define MADERA_WSEQ_SEQUENCE_328 0x328E
+#define MADERA_WSEQ_SEQUENCE_329 0x3290
+#define MADERA_WSEQ_SEQUENCE_330 0x3292
+#define MADERA_WSEQ_SEQUENCE_331 0x3294
+#define MADERA_WSEQ_SEQUENCE_332 0x3296
+#define MADERA_WSEQ_SEQUENCE_333 0x3298
+#define MADERA_WSEQ_SEQUENCE_334 0x329A
+#define MADERA_WSEQ_SEQUENCE_335 0x329C
+#define MADERA_WSEQ_SEQUENCE_336 0x329E
+#define MADERA_WSEQ_SEQUENCE_337 0x32A0
+#define MADERA_WSEQ_SEQUENCE_338 0x32A2
+#define MADERA_WSEQ_SEQUENCE_339 0x32A4
+#define MADERA_WSEQ_SEQUENCE_340 0x32A6
+#define MADERA_WSEQ_SEQUENCE_341 0x32A8
+#define MADERA_WSEQ_SEQUENCE_342 0x32AA
+#define MADERA_WSEQ_SEQUENCE_343 0x32AC
+#define MADERA_WSEQ_SEQUENCE_344 0x32AE
+#define MADERA_WSEQ_SEQUENCE_345 0x32B0
+#define MADERA_WSEQ_SEQUENCE_346 0x32B2
+#define MADERA_WSEQ_SEQUENCE_347 0x32B4
+#define MADERA_WSEQ_SEQUENCE_348 0x32B6
+#define MADERA_WSEQ_SEQUENCE_349 0x32B8
+#define MADERA_WSEQ_SEQUENCE_350 0x32BA
+#define MADERA_WSEQ_SEQUENCE_351 0x32BC
+#define MADERA_WSEQ_SEQUENCE_352 0x32BE
+#define MADERA_WSEQ_SEQUENCE_353 0x32C0
+#define MADERA_WSEQ_SEQUENCE_354 0x32C2
+#define MADERA_WSEQ_SEQUENCE_355 0x32C4
+#define MADERA_WSEQ_SEQUENCE_356 0x32C6
+#define MADERA_WSEQ_SEQUENCE_357 0x32C8
+#define MADERA_WSEQ_SEQUENCE_358 0x32CA
+#define MADERA_WSEQ_SEQUENCE_359 0x32CC
+#define MADERA_WSEQ_SEQUENCE_360 0x32CE
+#define MADERA_WSEQ_SEQUENCE_361 0x32D0
+#define MADERA_WSEQ_SEQUENCE_362 0x32D2
+#define MADERA_WSEQ_SEQUENCE_363 0x32D4
+#define MADERA_WSEQ_SEQUENCE_364 0x32D6
+#define MADERA_WSEQ_SEQUENCE_365 0x32D8
+#define MADERA_WSEQ_SEQUENCE_366 0x32DA
+#define MADERA_WSEQ_SEQUENCE_367 0x32DC
+#define MADERA_WSEQ_SEQUENCE_368 0x32DE
+#define MADERA_WSEQ_SEQUENCE_369 0x32E0
+#define MADERA_WSEQ_SEQUENCE_370 0x32E2
+#define MADERA_WSEQ_SEQUENCE_371 0x32E4
+#define MADERA_WSEQ_SEQUENCE_372 0x32E6
+#define MADERA_WSEQ_SEQUENCE_373 0x32E8
+#define MADERA_WSEQ_SEQUENCE_374 0x32EA
+#define MADERA_WSEQ_SEQUENCE_375 0x32EC
+#define MADERA_WSEQ_SEQUENCE_376 0x32EE
+#define MADERA_WSEQ_SEQUENCE_377 0x32F0
+#define MADERA_WSEQ_SEQUENCE_378 0x32F2
+#define MADERA_WSEQ_SEQUENCE_379 0x32F4
+#define MADERA_WSEQ_SEQUENCE_380 0x32F6
+#define MADERA_WSEQ_SEQUENCE_381 0x32F8
+#define MADERA_WSEQ_SEQUENCE_382 0x32FA
+#define MADERA_WSEQ_SEQUENCE_383 0x32FC
+#define MADERA_WSEQ_SEQUENCE_384 0x32FE
+#define MADERA_WSEQ_SEQUENCE_385 0x3300
+#define MADERA_WSEQ_SEQUENCE_386 0x3302
+#define MADERA_WSEQ_SEQUENCE_387 0x3304
+#define MADERA_WSEQ_SEQUENCE_388 0x3306
+#define MADERA_WSEQ_SEQUENCE_389 0x3308
+#define MADERA_WSEQ_SEQUENCE_390 0x330A
+#define MADERA_WSEQ_SEQUENCE_391 0x330C
+#define MADERA_WSEQ_SEQUENCE_392 0x330E
+#define MADERA_WSEQ_SEQUENCE_393 0x3310
+#define MADERA_WSEQ_SEQUENCE_394 0x3312
+#define MADERA_WSEQ_SEQUENCE_395 0x3314
+#define MADERA_WSEQ_SEQUENCE_396 0x3316
+#define MADERA_WSEQ_SEQUENCE_397 0x3318
+#define MADERA_WSEQ_SEQUENCE_398 0x331A
+#define MADERA_WSEQ_SEQUENCE_399 0x331C
+#define MADERA_WSEQ_SEQUENCE_400 0x331E
+#define MADERA_WSEQ_SEQUENCE_401 0x3320
+#define MADERA_WSEQ_SEQUENCE_402 0x3322
+#define MADERA_WSEQ_SEQUENCE_403 0x3324
+#define MADERA_WSEQ_SEQUENCE_404 0x3326
+#define MADERA_WSEQ_SEQUENCE_405 0x3328
+#define MADERA_WSEQ_SEQUENCE_406 0x332A
+#define MADERA_WSEQ_SEQUENCE_407 0x332C
+#define MADERA_WSEQ_SEQUENCE_408 0x332E
+#define MADERA_WSEQ_SEQUENCE_409 0x3330
+#define MADERA_WSEQ_SEQUENCE_410 0x3332
+#define MADERA_WSEQ_SEQUENCE_411 0x3334
+#define MADERA_WSEQ_SEQUENCE_412 0x3336
+#define MADERA_WSEQ_SEQUENCE_413 0x3338
+#define MADERA_WSEQ_SEQUENCE_414 0x333A
+#define MADERA_WSEQ_SEQUENCE_415 0x333C
+#define MADERA_WSEQ_SEQUENCE_416 0x333E
+#define MADERA_WSEQ_SEQUENCE_417 0x3340
+#define MADERA_WSEQ_SEQUENCE_418 0x3342
+#define MADERA_WSEQ_SEQUENCE_419 0x3344
+#define MADERA_WSEQ_SEQUENCE_420 0x3346
+#define MADERA_WSEQ_SEQUENCE_421 0x3348
+#define MADERA_WSEQ_SEQUENCE_422 0x334A
+#define MADERA_WSEQ_SEQUENCE_423 0x334C
+#define MADERA_WSEQ_SEQUENCE_424 0x334E
+#define MADERA_WSEQ_SEQUENCE_425 0x3350
+#define MADERA_WSEQ_SEQUENCE_426 0x3352
+#define MADERA_WSEQ_SEQUENCE_427 0x3354
+#define MADERA_WSEQ_SEQUENCE_428 0x3356
+#define MADERA_WSEQ_SEQUENCE_429 0x3358
+#define MADERA_WSEQ_SEQUENCE_430 0x335A
+#define MADERA_WSEQ_SEQUENCE_431 0x335C
+#define MADERA_WSEQ_SEQUENCE_432 0x335E
+#define MADERA_WSEQ_SEQUENCE_433 0x3360
+#define MADERA_WSEQ_SEQUENCE_434 0x3362
+#define MADERA_WSEQ_SEQUENCE_435 0x3364
+#define MADERA_WSEQ_SEQUENCE_436 0x3366
+#define MADERA_WSEQ_SEQUENCE_437 0x3368
+#define MADERA_WSEQ_SEQUENCE_438 0x336A
+#define MADERA_WSEQ_SEQUENCE_439 0x336C
+#define MADERA_WSEQ_SEQUENCE_440 0x336E
+#define MADERA_WSEQ_SEQUENCE_441 0x3370
+#define MADERA_WSEQ_SEQUENCE_442 0x3372
+#define MADERA_WSEQ_SEQUENCE_443 0x3374
+#define MADERA_WSEQ_SEQUENCE_444 0x3376
+#define MADERA_WSEQ_SEQUENCE_445 0x3378
+#define MADERA_WSEQ_SEQUENCE_446 0x337A
+#define MADERA_WSEQ_SEQUENCE_447 0x337C
+#define MADERA_WSEQ_SEQUENCE_448 0x337E
+#define MADERA_WSEQ_SEQUENCE_449 0x3380
+#define MADERA_WSEQ_SEQUENCE_450 0x3382
+#define MADERA_WSEQ_SEQUENCE_451 0x3384
+#define MADERA_WSEQ_SEQUENCE_452 0x3386
+#define MADERA_WSEQ_SEQUENCE_453 0x3388
+#define MADERA_WSEQ_SEQUENCE_454 0x338A
+#define MADERA_WSEQ_SEQUENCE_455 0x338C
+#define MADERA_WSEQ_SEQUENCE_456 0x338E
+#define MADERA_WSEQ_SEQUENCE_457 0x3390
+#define MADERA_WSEQ_SEQUENCE_458 0x3392
+#define MADERA_WSEQ_SEQUENCE_459 0x3394
+#define MADERA_WSEQ_SEQUENCE_460 0x3396
+#define MADERA_WSEQ_SEQUENCE_461 0x3398
+#define MADERA_WSEQ_SEQUENCE_462 0x339A
+#define MADERA_WSEQ_SEQUENCE_463 0x339C
+#define MADERA_WSEQ_SEQUENCE_464 0x339E
+#define MADERA_WSEQ_SEQUENCE_465 0x33A0
+#define MADERA_WSEQ_SEQUENCE_466 0x33A2
+#define MADERA_WSEQ_SEQUENCE_467 0x33A4
+#define MADERA_WSEQ_SEQUENCE_468 0x33A6
+#define MADERA_WSEQ_SEQUENCE_469 0x33A8
+#define MADERA_WSEQ_SEQUENCE_470 0x33AA
+#define MADERA_WSEQ_SEQUENCE_471 0x33AC
+#define MADERA_WSEQ_SEQUENCE_472 0x33AE
+#define MADERA_WSEQ_SEQUENCE_473 0x33B0
+#define MADERA_WSEQ_SEQUENCE_474 0x33B2
+#define MADERA_WSEQ_SEQUENCE_475 0x33B4
+#define MADERA_WSEQ_SEQUENCE_476 0x33B6
+#define MADERA_WSEQ_SEQUENCE_477 0x33B8
+#define MADERA_WSEQ_SEQUENCE_478 0x33BA
+#define MADERA_WSEQ_SEQUENCE_479 0x33BC
+#define MADERA_WSEQ_SEQUENCE_480 0x33BE
+#define MADERA_WSEQ_SEQUENCE_481 0x33C0
+#define MADERA_WSEQ_SEQUENCE_482 0x33C2
+#define MADERA_WSEQ_SEQUENCE_483 0x33C4
+#define MADERA_WSEQ_SEQUENCE_484 0x33C6
+#define MADERA_WSEQ_SEQUENCE_485 0x33C8
+#define MADERA_WSEQ_SEQUENCE_486 0x33CA
+#define MADERA_WSEQ_SEQUENCE_487 0x33CC
+#define MADERA_WSEQ_SEQUENCE_488 0x33CE
+#define MADERA_WSEQ_SEQUENCE_489 0x33D0
+#define MADERA_WSEQ_SEQUENCE_490 0x33D2
+#define MADERA_WSEQ_SEQUENCE_491 0x33D4
+#define MADERA_WSEQ_SEQUENCE_492 0x33D6
+#define MADERA_WSEQ_SEQUENCE_493 0x33D8
+#define MADERA_WSEQ_SEQUENCE_494 0x33DA
+#define MADERA_WSEQ_SEQUENCE_495 0x33DC
+#define MADERA_WSEQ_SEQUENCE_496 0x33DE
+#define MADERA_WSEQ_SEQUENCE_497 0x33E0
+#define MADERA_WSEQ_SEQUENCE_498 0x33E2
+#define MADERA_WSEQ_SEQUENCE_499 0x33E4
+#define MADERA_WSEQ_SEQUENCE_500 0x33E6
+#define MADERA_WSEQ_SEQUENCE_501 0x33E8
+#define MADERA_WSEQ_SEQUENCE_502 0x33EA
+#define MADERA_WSEQ_SEQUENCE_503 0x33EC
+#define MADERA_WSEQ_SEQUENCE_504 0x33EE
+#define MADERA_WSEQ_SEQUENCE_505 0x33F0
+#define MADERA_WSEQ_SEQUENCE_506 0x33F2
+#define MADERA_WSEQ_SEQUENCE_507 0x33F4
+#define MADERA_WSEQ_SEQUENCE_508 0x33F6
+#define CS47L85_OTP_HPDET_CAL_1 0x33F8
+#define CS47L85_OTP_HPDET_CAL_2 0x33FA
+#define MADERA_OTP_HPDET_CAL_1 0x20004
+#define MADERA_OTP_HPDET_CAL_2 0x20006
+#define MADERA_DSP1_CONFIG_1 0x0FFE00
+#define MADERA_DSP1_CONFIG_2 0x0FFE02
+#define MADERA_DSP1_STATUS_1 0x0FFE04
+#define MADERA_DSP1_STATUS_2 0x0FFE06
+#define MADERA_DSP1_STATUS_3 0x0FFE08
+#define MADERA_DSP1_WATCHDOG_1 0x0FFE0A
+#define MADERA_DSP1_DMA_CONFIG_1 0x0FFE30
+#define MADERA_DSP1_DMA_CONFIG_2 0x0FFE32
+#define MADERA_DSP1_DMA_CONFIG_3 0x0FFE34
+#define MADERA_DSP1_DMA_CONFIG_4 0x0FFE36
+#define MADERA_DSP1_SCRATCH_1 0x0FFE40
+#define MADERA_DSP1_SCRATCH_2 0x0FFE42
+#define MADERA_DSP1_BUS_ERROR_ADDR 0xFFE52
+#define MADERA_DSP1_REGION_LOCK_STS_0 0xFFE64
+#define MADERA_DSP1_REGION_LOCK_1___DSP1_REGION_LOCK_0 0xFFE66
+#define MADERA_DSP1_REGION_LOCK_3___DSP1_REGION_LOCK_2 0xFFE68
+#define MADERA_DSP1_REGION_LOCK_5___DSP1_REGION_LOCK_4 0xFFE6A
+#define MADERA_DSP1_REGION_LOCK_7___DSP1_REGION_LOCK_6 0xFFE6C
+#define MADERA_DSP1_REGION_LOCK_9___DSP1_REGION_LOCK_8 0xFFE6E
+#define MADERA_DSP1_REGION_LOCK_CTRL_0 0xFFE7A
+#define MADERA_DSP1_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0xFFE7C
+#define MADERA_DSP2_CONFIG_1 0x17FE00
+#define MADERA_DSP2_CONFIG_2 0x17FE02
+#define MADERA_DSP2_STATUS_1 0x17FE04
+#define MADERA_DSP2_STATUS_2 0x17FE06
+#define MADERA_DSP2_STATUS_3 0x17FE08
+#define MADERA_DSP2_WATCHDOG_1 0x17FE0A
+#define MADERA_DSP2_DMA_CONFIG_1 0x17FE30
+#define MADERA_DSP2_DMA_CONFIG_2 0x17FE32
+#define MADERA_DSP2_DMA_CONFIG_3 0x17FE34
+#define MADERA_DSP2_DMA_CONFIG_4 0x17FE36
+#define MADERA_DSP2_SCRATCH_1 0x17FE40
+#define MADERA_DSP2_SCRATCH_2 0x17FE42
+#define MADERA_DSP2_BUS_ERROR_ADDR 0x17FE52
+#define MADERA_DSP2_REGION_LOCK_STS_0 0x17FE64
+#define MADERA_DSP2_REGION_LOCK_1___DSP2_REGION_LOCK_0 0x17FE66
+#define MADERA_DSP2_REGION_LOCK_3___DSP2_REGION_LOCK_2 0x17FE68
+#define MADERA_DSP2_REGION_LOCK_5___DSP2_REGION_LOCK_4 0x17FE6A
+#define MADERA_DSP2_REGION_LOCK_7___DSP2_REGION_LOCK_6 0x17FE6C
+#define MADERA_DSP2_REGION_LOCK_9___DSP2_REGION_LOCK_8 0x17FE6E
+#define MADERA_DSP2_REGION_LOCK_CTRL_0 0x17FE7A
+#define MADERA_DSP2_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0x17FE7C
+#define MADERA_DSP3_CONFIG_1 0x1FFE00
+#define MADERA_DSP3_CONFIG_2 0x1FFE02
+#define MADERA_DSP3_STATUS_1 0x1FFE04
+#define MADERA_DSP3_STATUS_2 0x1FFE06
+#define MADERA_DSP3_STATUS_3 0x1FFE08
+#define MADERA_DSP3_WATCHDOG_1 0x1FFE0A
+#define MADERA_DSP3_DMA_CONFIG_1 0x1FFE30
+#define MADERA_DSP3_DMA_CONFIG_2 0x1FFE32
+#define MADERA_DSP3_DMA_CONFIG_3 0x1FFE34
+#define MADERA_DSP3_DMA_CONFIG_4 0x1FFE36
+#define MADERA_DSP3_SCRATCH_1 0x1FFE40
+#define MADERA_DSP3_SCRATCH_2 0x1FFE42
+#define MADERA_DSP3_BUS_ERROR_ADDR 0x1FFE52
+#define MADERA_DSP3_REGION_LOCK_STS_0 0x1FFE64
+#define MADERA_DSP3_REGION_LOCK_1___DSP3_REGION_LOCK_0 0x1FFE66
+#define MADERA_DSP3_REGION_LOCK_3___DSP3_REGION_LOCK_2 0x1FFE68
+#define MADERA_DSP3_REGION_LOCK_5___DSP3_REGION_LOCK_4 0x1FFE6A
+#define MADERA_DSP3_REGION_LOCK_7___DSP3_REGION_LOCK_6 0x1FFE6C
+#define MADERA_DSP3_REGION_LOCK_9___DSP3_REGION_LOCK_8 0x1FFE6E
+#define MADERA_DSP3_REGION_LOCK_CTRL_0 0x1FFE7A
+#define MADERA_DSP3_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0x1FFE7C
+#define MADERA_DSP4_CONFIG_1 0x27FE00
+#define MADERA_DSP4_CONFIG_2 0x27FE02
+#define MADERA_DSP4_STATUS_1 0x27FE04
+#define MADERA_DSP4_STATUS_2 0x27FE06
+#define MADERA_DSP4_STATUS_3 0x27FE08
+#define MADERA_DSP4_WATCHDOG_1 0x27FE0A
+#define MADERA_DSP4_DMA_CONFIG_1 0x27FE30
+#define MADERA_DSP4_DMA_CONFIG_2 0x27FE32
+#define MADERA_DSP4_DMA_CONFIG_3 0x27FE34
+#define MADERA_DSP4_DMA_CONFIG_4 0x27FE36
+#define MADERA_DSP4_SCRATCH_1 0x27FE40
+#define MADERA_DSP4_SCRATCH_2 0x27FE42
+#define MADERA_DSP4_BUS_ERROR_ADDR 0x27FE52
+#define MADERA_DSP4_REGION_LOCK_STS_0 0x27FE64
+#define MADERA_DSP4_REGION_LOCK_1___DSP4_REGION_LOCK_0 0x27FE66
+#define MADERA_DSP4_REGION_LOCK_3___DSP4_REGION_LOCK_2 0x27FE68
+#define MADERA_DSP4_REGION_LOCK_5___DSP4_REGION_LOCK_4 0x27FE6A
+#define MADERA_DSP4_REGION_LOCK_7___DSP4_REGION_LOCK_6 0x27FE6C
+#define MADERA_DSP4_REGION_LOCK_9___DSP4_REGION_LOCK_8 0x27FE6E
+#define MADERA_DSP4_REGION_LOCK_CTRL_0 0x27FE7A
+#define MADERA_DSP4_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0x27FE7C
+#define MADERA_DSP5_CONFIG_1 0x2FFE00
+#define MADERA_DSP5_CONFIG_2 0x2FFE02
+#define MADERA_DSP5_STATUS_1 0x2FFE04
+#define MADERA_DSP5_STATUS_2 0x2FFE06
+#define MADERA_DSP5_STATUS_3 0x2FFE08
+#define MADERA_DSP5_WATCHDOG_1 0x2FFE0A
+#define MADERA_DSP5_DMA_CONFIG_1 0x2FFE30
+#define MADERA_DSP5_DMA_CONFIG_2 0x2FFE32
+#define MADERA_DSP5_DMA_CONFIG_3 0x2FFE34
+#define MADERA_DSP5_DMA_CONFIG_4 0x2FFE36
+#define MADERA_DSP5_SCRATCH_1 0x2FFE40
+#define MADERA_DSP5_SCRATCH_2 0x2FFE42
+#define MADERA_DSP5_BUS_ERROR_ADDR 0x2FFE52
+#define MADERA_DSP5_REGION_LOCK_STS_0 0x2FFE64
+#define MADERA_DSP5_REGION_LOCK_1___DSP5_REGION_LOCK_0 0x2FFE66
+#define MADERA_DSP5_REGION_LOCK_3___DSP5_REGION_LOCK_2 0x2FFE68
+#define MADERA_DSP5_REGION_LOCK_5___DSP5_REGION_LOCK_4 0x2FFE6A
+#define MADERA_DSP5_REGION_LOCK_7___DSP5_REGION_LOCK_6 0x2FFE6C
+#define MADERA_DSP5_REGION_LOCK_9___DSP5_REGION_LOCK_8 0x2FFE6E
+#define MADERA_DSP5_REGION_LOCK_CTRL_0 0x2FFE7A
+#define MADERA_DSP5_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0x2FFE7C
+#define MADERA_DSP6_CONFIG_1 0x37FE00
+#define MADERA_DSP6_CONFIG_2 0x37FE02
+#define MADERA_DSP6_STATUS_1 0x37FE04
+#define MADERA_DSP6_STATUS_2 0x37FE06
+#define MADERA_DSP6_STATUS_3 0x37FE08
+#define MADERA_DSP6_WATCHDOG_1 0x37FE0A
+#define MADERA_DSP6_DMA_CONFIG_1 0x37FE30
+#define MADERA_DSP6_DMA_CONFIG_2 0x37FE32
+#define MADERA_DSP6_DMA_CONFIG_3 0x37FE34
+#define MADERA_DSP6_DMA_CONFIG_4 0x37FE36
+#define MADERA_DSP6_SCRATCH_1 0x37FE40
+#define MADERA_DSP6_SCRATCH_2 0x37FE42
+#define MADERA_DSP6_BUS_ERROR_ADDR 0x37FE52
+#define MADERA_DSP6_REGION_LOCK_STS_0 0x37FE64
+#define MADERA_DSP6_REGION_LOCK_1___DSP6_REGION_LOCK_0 0x37FE66
+#define MADERA_DSP6_REGION_LOCK_3___DSP6_REGION_LOCK_2 0x37FE68
+#define MADERA_DSP6_REGION_LOCK_5___DSP6_REGION_LOCK_4 0x37FE6A
+#define MADERA_DSP6_REGION_LOCK_7___DSP6_REGION_LOCK_6 0x37FE6C
+#define MADERA_DSP6_REGION_LOCK_9___DSP6_REGION_LOCK_8 0x37FE6E
+#define MADERA_DSP6_REGION_LOCK_CTRL_0 0x37FE7A
+#define MADERA_DSP6_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0x37FE7C
+#define MADERA_DSP7_CONFIG_1 0x3FFE00
+#define MADERA_DSP7_CONFIG_2 0x3FFE02
+#define MADERA_DSP7_STATUS_1 0x3FFE04
+#define MADERA_DSP7_STATUS_2 0x3FFE06
+#define MADERA_DSP7_STATUS_3 0x3FFE08
+#define MADERA_DSP7_WATCHDOG_1 0x3FFE0A
+#define MADERA_DSP7_DMA_CONFIG_1 0x3FFE30
+#define MADERA_DSP7_DMA_CONFIG_2 0x3FFE32
+#define MADERA_DSP7_DMA_CONFIG_3 0x3FFE34
+#define MADERA_DSP7_DMA_CONFIG_4 0x3FFE36
+#define MADERA_DSP7_SCRATCH_1 0x3FFE40
+#define MADERA_DSP7_SCRATCH_2 0x3FFE42
+#define MADERA_DSP7_BUS_ERROR_ADDR 0x3FFE52
+#define MADERA_DSP7_REGION_LOCK_STS_0 0x3FFE64
+#define MADERA_DSP7_REGION_LOCK_1___DSP7_REGION_LOCK_0 0x3FFE66
+#define MADERA_DSP7_REGION_LOCK_3___DSP7_REGION_LOCK_2 0x3FFE68
+#define MADERA_DSP7_REGION_LOCK_5___DSP7_REGION_LOCK_4 0x3FFE6A
+#define MADERA_DSP7_REGION_LOCK_7___DSP7_REGION_LOCK_6 0x3FFE6C
+#define MADERA_DSP7_REGION_LOCK_9___DSP7_REGION_LOCK_8 0x3FFE6E
+#define MADERA_DSP7_REGION_LOCK_CTRL_0 0x3FFE7A
+#define MADERA_DSP7_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0x3FFE7C
+
+/* (0x0000) Software_Reset */
+#define MADERA_SW_RST_DEV_ID1_MASK 0xFFFF
+#define MADERA_SW_RST_DEV_ID1_SHIFT 0
+#define MADERA_SW_RST_DEV_ID1_WIDTH 16
+
+/* (0x0001) Hardware_Revision */
+#define MADERA_HW_REVISION_MASK 0x00FF
+#define MADERA_HW_REVISION_SHIFT 0
+#define MADERA_HW_REVISION_WIDTH 8
+
+/* (0x0016) Write_Sequencer_Ctrl_0 */
+#define MADERA_WSEQ_ABORT 0x0800
+#define MADERA_WSEQ_ABORT_MASK 0x0800
+#define MADERA_WSEQ_ABORT_SHIFT 11
+#define MADERA_WSEQ_ABORT_WIDTH 1
+#define MADERA_WSEQ_START 0x0400
+#define MADERA_WSEQ_START_MASK 0x0400
+#define MADERA_WSEQ_START_SHIFT 10
+#define MADERA_WSEQ_START_WIDTH 1
+#define MADERA_WSEQ_ENA 0x0200
+#define MADERA_WSEQ_ENA_MASK 0x0200
+#define MADERA_WSEQ_ENA_SHIFT 9
+#define MADERA_WSEQ_ENA_WIDTH 1
+#define MADERA_WSEQ_START_INDEX_MASK 0x01FF
+#define MADERA_WSEQ_START_INDEX_SHIFT 0
+#define MADERA_WSEQ_START_INDEX_WIDTH 9
+
+/* (0x0017) Write_Sequencer_Ctrl_1 */
+#define MADERA_WSEQ_BUSY 0x0200
+#define MADERA_WSEQ_BUSY_MASK 0x0200
+#define MADERA_WSEQ_BUSY_SHIFT 9
+#define MADERA_WSEQ_BUSY_WIDTH 1
+#define MADERA_WSEQ_CURRENT_INDEX_MASK 0x01FF
+#define MADERA_WSEQ_CURRENT_INDEX_SHIFT 0
+#define MADERA_WSEQ_CURRENT_INDEX_WIDTH 9
+
+/* (0x0018) Write_Sequencer_Ctrl_2 */
+#define MADERA_LOAD_DEFAULTS 0x0002
+#define MADERA_LOAD_DEFAULTS_MASK 0x0002
+#define MADERA_LOAD_DEFAULTS_SHIFT 1
+#define MADERA_LOAD_DEFAULTS_WIDTH 1
+#define MADERA_WSEQ_LOAD_MEM 0x0001
+#define MADERA_WSEQ_LOAD_MEM_MASK 0x0001
+#define MADERA_WSEQ_LOAD_MEM_SHIFT 0
+#define MADERA_WSEQ_LOAD_MEM_WIDTH 1
+
+/* (0x0020) Tone_Generator_1 */
+#define MADERA_TONE_RATE_MASK 0xF800
+#define MADERA_TONE_RATE_SHIFT 11
+#define MADERA_TONE_RATE_WIDTH 5
+#define MADERA_TONE_OFFSET_MASK 0x0300
+#define MADERA_TONE_OFFSET_SHIFT 8
+#define MADERA_TONE_OFFSET_WIDTH 2
+#define MADERA_TONE2_OVD 0x0020
+#define MADERA_TONE2_OVD_MASK 0x0020
+#define MADERA_TONE2_OVD_SHIFT 5
+#define MADERA_TONE2_OVD_WIDTH 1
+#define MADERA_TONE1_OVD 0x0010
+#define MADERA_TONE1_OVD_MASK 0x0010
+#define MADERA_TONE1_OVD_SHIFT 4
+#define MADERA_TONE1_OVD_WIDTH 1
+#define MADERA_TONE2_ENA 0x0002
+#define MADERA_TONE2_ENA_MASK 0x0002
+#define MADERA_TONE2_ENA_SHIFT 1
+#define MADERA_TONE2_ENA_WIDTH 1
+#define MADERA_TONE1_ENA 0x0001
+#define MADERA_TONE1_ENA_MASK 0x0001
+#define MADERA_TONE1_ENA_SHIFT 0
+#define MADERA_TONE1_ENA_WIDTH 1
+
+/* (0x0021) Tone_Generator_2 */
+#define MADERA_TONE1_LVL_0_MASK 0xFFFF
+#define MADERA_TONE1_LVL_0_SHIFT 0
+#define MADERA_TONE1_LVL_0_WIDTH 16
+
+/* (0x0022) Tone_Generator_3 */
+#define MADERA_TONE1_LVL_MASK 0x00FF
+#define MADERA_TONE1_LVL_SHIFT 0
+#define MADERA_TONE1_LVL_WIDTH 8
+
+/* (0x0023) Tone_Generator_4 */
+#define MADERA_TONE2_LVL_0_MASK 0xFFFF
+#define MADERA_TONE2_LVL_0_SHIFT 0
+#define MADERA_TONE2_LVL_0_WIDTH 16
+
+/* (0x0024) Tone_Generator_5 */
+#define MADERA_TONE2_LVL_MASK 0x00FF
+#define MADERA_TONE2_LVL_SHIFT 0
+#define MADERA_TONE2_LVL_WIDTH 8
+
+/* (0x0030) PWM_Drive_1 */
+#define MADERA_PWM_RATE_MASK 0xF800
+#define MADERA_PWM_RATE_SHIFT 11
+#define MADERA_PWM_RATE_WIDTH 5
+#define MADERA_PWM_CLK_SEL_MASK 0x0700
+#define MADERA_PWM_CLK_SEL_SHIFT 8
+#define MADERA_PWM_CLK_SEL_WIDTH 3
+#define MADERA_PWM2_OVD 0x0020
+#define MADERA_PWM2_OVD_MASK 0x0020
+#define MADERA_PWM2_OVD_SHIFT 5
+#define MADERA_PWM2_OVD_WIDTH 1
+#define MADERA_PWM1_OVD 0x0010
+#define MADERA_PWM1_OVD_MASK 0x0010
+#define MADERA_PWM1_OVD_SHIFT 4
+#define MADERA_PWM1_OVD_WIDTH 1
+#define MADERA_PWM2_ENA 0x0002
+#define MADERA_PWM2_ENA_MASK 0x0002
+#define MADERA_PWM2_ENA_SHIFT 1
+#define MADERA_PWM2_ENA_WIDTH 1
+#define MADERA_PWM1_ENA 0x0001
+#define MADERA_PWM1_ENA_MASK 0x0001
+#define MADERA_PWM1_ENA_SHIFT 0
+#define MADERA_PWM1_ENA_WIDTH 1
+
+/* (0x0031) PWM_Drive_2 */
+#define MADERA_PWM1_LVL_MASK 0x03FF
+#define MADERA_PWM1_LVL_SHIFT 0
+#define MADERA_PWM1_LVL_WIDTH 10
+
+/* (0x0032) PWM_Drive_3 */
+#define MADERA_PWM2_LVL_MASK 0x03FF
+#define MADERA_PWM2_LVL_SHIFT 0
+#define MADERA_PWM2_LVL_WIDTH 10
+
+/* (0x0041) Sequence_control */
+#define MADERA_WSEQ_ENA_MICD_CLAMP_FALL 0x0080
+#define MADERA_WSEQ_ENA_MICD_CLAMP_FALL_MASK 0x0080
+#define MADERA_WSEQ_ENA_MICD_CLAMP_FALL_SHIFT 7
+#define MADERA_WSEQ_ENA_MICD_CLAMP_FALL_WIDTH 1
+#define MADERA_WSEQ_ENA_MICD_CLAMP_RISE 0x0040
+#define MADERA_WSEQ_ENA_MICD_CLAMP_RISE_MASK 0x0040
+#define MADERA_WSEQ_ENA_MICD_CLAMP_RISE_SHIFT 6
+#define MADERA_WSEQ_ENA_MICD_CLAMP_RISE_WIDTH 1
+
+/* (0x0090) Haptics_Control_1 */
+#define MADERA_HAP_RATE_MASK 0xF800
+#define MADERA_HAP_RATE_SHIFT 11
+#define MADERA_HAP_RATE_WIDTH 5
+#define MADERA_ONESHOT_TRIG 0x0010
+#define MADERA_ONESHOT_TRIG_MASK 0x0010
+#define MADERA_ONESHOT_TRIG_SHIFT 4
+#define MADERA_ONESHOT_TRIG_WIDTH 1
+#define MADERA_HAP_CTRL_MASK 0x000C
+#define MADERA_HAP_CTRL_SHIFT 2
+#define MADERA_HAP_CTRL_WIDTH 2
+#define MADERA_HAP_ACT 0x0002
+#define MADERA_HAP_ACT_MASK 0x0002
+#define MADERA_HAP_ACT_SHIFT 1
+#define MADERA_HAP_ACT_WIDTH 1
+
+/* (0x0091) Haptics_Control_2 */
+#define MADERA_LRA_FREQ_MASK 0x7FFF
+#define MADERA_LRA_FREQ_SHIFT 0
+#define MADERA_LRA_FREQ_WIDTH 15
+
+/* (0x0092) Haptics_phase_1_intensity */
+#define MADERA_PHASE1_INTENSITY_MASK 0x00FF
+#define MADERA_PHASE1_INTENSITY_SHIFT 0
+#define MADERA_PHASE1_INTENSITY_WIDTH 8
+
+/* (0x0093) Haptics_phase_1_duration */
+#define MADERA_PHASE1_DURATION_MASK 0x01FF
+#define MADERA_PHASE1_DURATION_SHIFT 0
+#define MADERA_PHASE1_DURATION_WIDTH 9
+
+/* (0x0094) Haptics_phase_2_intensity */
+#define MADERA_PHASE2_INTENSITY_MASK 0x00FF
+#define MADERA_PHASE2_INTENSITY_SHIFT 0
+#define MADERA_PHASE2_INTENSITY_WIDTH 8
+
+/* (0x0095) Haptics_phase_2_duration */
+#define MADERA_PHASE2_DURATION_MASK 0x07FF
+#define MADERA_PHASE2_DURATION_SHIFT 0
+#define MADERA_PHASE2_DURATION_WIDTH 11
+
+/* (0x0096) Haptics_phase_3_intensity */
+#define MADERA_PHASE3_INTENSITY_MASK 0x00FF
+#define MADERA_PHASE3_INTENSITY_SHIFT 0
+#define MADERA_PHASE3_INTENSITY_WIDTH 8
+
+/* (0x0097) Haptics_phase_3_duration */
+#define MADERA_PHASE3_DURATION_MASK 0x01FF
+#define MADERA_PHASE3_DURATION_SHIFT 0
+#define MADERA_PHASE3_DURATION_WIDTH 9
+
+/* (0x0098) Haptics_Status */
+#define MADERA_ONESHOT_STS 0x0001
+#define MADERA_ONESHOT_STS_MASK 0x0001
+#define MADERA_ONESHOT_STS_SHIFT 0
+#define MADERA_ONESHOT_STS_WIDTH 1
+
+/* (0x00A0) Comfort_Noise_Generator */
+#define MADERA_NOISE_GEN_ENA 0x0020
+#define MADERA_NOISE_GEN_ENA_MASK 0x0020
+#define MADERA_NOISE_GEN_ENA_SHIFT 5
+#define MADERA_NOISE_GEN_ENA_WIDTH 1
+#define MADERA_NOISE_GEN_GAIN_MASK 0x001F
+#define MADERA_NOISE_GEN_GAIN_SHIFT 0
+#define MADERA_NOISE_GEN_GAIN_WIDTH 5
+
+/* (0x0100) Clock_32k_1 */
+#define MADERA_CLK_32K_ENA 0x0040
+#define MADERA_CLK_32K_ENA_MASK 0x0040
+#define MADERA_CLK_32K_ENA_SHIFT 6
+#define MADERA_CLK_32K_ENA_WIDTH 1
+#define MADERA_CLK_32K_SRC_MASK 0x0003
+#define MADERA_CLK_32K_SRC_SHIFT 0
+#define MADERA_CLK_32K_SRC_WIDTH 2
+
+/* (0x0101) System_Clock_1 */
+#define MADERA_SYSCLK_FRAC 0x8000
+#define MADERA_SYSCLK_FRAC_MASK 0x8000
+#define MADERA_SYSCLK_FRAC_SHIFT 15
+#define MADERA_SYSCLK_FRAC_WIDTH 1
+#define MADERA_SYSCLK_FREQ_MASK 0x0700
+#define MADERA_SYSCLK_FREQ_SHIFT 8
+#define MADERA_SYSCLK_FREQ_WIDTH 3
+#define MADERA_SYSCLK_ENA 0x0040
+#define MADERA_SYSCLK_ENA_MASK 0x0040
+#define MADERA_SYSCLK_ENA_SHIFT 6
+#define MADERA_SYSCLK_ENA_WIDTH 1
+#define MADERA_SYSCLK_SRC_MASK 0x000F
+#define MADERA_SYSCLK_SRC_SHIFT 0
+#define MADERA_SYSCLK_SRC_WIDTH 4
+
+/* (0x0102) Sample_rate_1 */
+#define MADERA_SAMPLE_RATE_1_MASK 0x001F
+#define MADERA_SAMPLE_RATE_1_SHIFT 0
+#define MADERA_SAMPLE_RATE_1_WIDTH 5
+
+/* (0x0103) Sample_rate_2 */
+#define MADERA_SAMPLE_RATE_2_MASK 0x001F
+#define MADERA_SAMPLE_RATE_2_SHIFT 0
+#define MADERA_SAMPLE_RATE_2_WIDTH 5
+
+/* (0x0104) Sample_rate_3 */
+#define MADERA_SAMPLE_RATE_3_MASK 0x001F
+#define MADERA_SAMPLE_RATE_3_SHIFT 0
+#define MADERA_SAMPLE_RATE_3_WIDTH 5
+
+/* (0x010A) Sample_rate_1_status */
+#define MADERA_SAMPLE_RATE_1_STS_MASK 0x001F
+#define MADERA_SAMPLE_RATE_1_STS_SHIFT 0
+#define MADERA_SAMPLE_RATE_1_STS_WIDTH 5
+
+/* (0x010B) Sample_rate_2_status */
+#define MADERA_SAMPLE_RATE_2_STS_MASK 0x001F
+#define MADERA_SAMPLE_RATE_2_STS_SHIFT 0
+#define MADERA_SAMPLE_RATE_2_STS_WIDTH 5
+
+/* (0x010C) Sample_rate_3_status */
+#define MADERA_SAMPLE_RATE_3_STS_MASK 0x001F
+#define MADERA_SAMPLE_RATE_3_STS_SHIFT 0
+#define MADERA_SAMPLE_RATE_3_STS_WIDTH 5
+
+/* (0x0112) Async_clock_1 */
+#define MADERA_ASYNC_CLK_FREQ_MASK 0x0700
+#define MADERA_ASYNC_CLK_FREQ_SHIFT 8
+#define MADERA_ASYNC_CLK_FREQ_WIDTH 3
+#define MADERA_ASYNC_CLK_ENA 0x0040
+#define MADERA_ASYNC_CLK_ENA_MASK 0x0040
+#define MADERA_ASYNC_CLK_ENA_SHIFT 6
+#define MADERA_ASYNC_CLK_ENA_WIDTH 1
+#define MADERA_ASYNC_CLK_SRC_MASK 0x000F
+#define MADERA_ASYNC_CLK_SRC_SHIFT 0
+#define MADERA_ASYNC_CLK_SRC_WIDTH 4
+
+/* (0x0113) Async_sample_rate_1 */
+#define MADERA_ASYNC_SAMPLE_RATE_1_MASK 0x001F
+#define MADERA_ASYNC_SAMPLE_RATE_1_SHIFT 0
+#define MADERA_ASYNC_SAMPLE_RATE_1_WIDTH 5
+
+/* (0x0114) Async_sample_rate_2 */
+#define MADERA_ASYNC_SAMPLE_RATE_2_MASK 0x001F
+#define MADERA_ASYNC_SAMPLE_RATE_2_SHIFT 0
+#define MADERA_ASYNC_SAMPLE_RATE_2_WIDTH 5
+
+/* (0x011B) Async_sample_rate_1_status */
+#define MADERA_ASYNC_SAMPLE_RATE_1_STS_MASK 0x001F
+#define MADERA_ASYNC_SAMPLE_RATE_1_STS_SHIFT 0
+#define MADERA_ASYNC_SAMPLE_RATE_1_STS_WIDTH 5
+
+/* (0x011C) Async_sample_rate_2_status */
+#define MADERA_ASYNC_SAMPLE_RATE_2_STS_MASK 0x001F
+#define MADERA_ASYNC_SAMPLE_RATE_2_STS_SHIFT 0
+#define MADERA_ASYNC_SAMPLE_RATE_2_STS_WIDTH 5
+
+/* (0x0120) DSP_Clock_1 */
+#define MADERA_DSP_CLK_FREQ_LEGACY 0x0700
+#define MADERA_DSP_CLK_FREQ_LEGACY_MASK 0x0700
+#define MADERA_DSP_CLK_FREQ_LEGACY_SHIFT 8
+#define MADERA_DSP_CLK_FREQ_LEGACY_WIDTH 3
+#define MADERA_DSP_CLK_ENA 0x0040
+#define MADERA_DSP_CLK_ENA_MASK 0x0040
+#define MADERA_DSP_CLK_ENA_SHIFT 6
+#define MADERA_DSP_CLK_ENA_WIDTH 1
+#define MADERA_DSP_CLK_SRC 0x000F
+#define MADERA_DSP_CLK_SRC_MASK 0x000F
+#define MADERA_DSP_CLK_SRC_SHIFT 0
+#define MADERA_DSP_CLK_SRC_WIDTH 4
+
+/* (0x0122) DSP_Clock_2 */
+#define MADERA_DSP_CLK_FREQ_MASK 0x03FF
+#define MADERA_DSP_CLK_FREQ_SHIFT 0
+#define MADERA_DSP_CLK_FREQ_WIDTH 10
+
+/* (0x0149) Output_system_clock */
+#define MADERA_OPCLK_ENA 0x8000
+#define MADERA_OPCLK_ENA_MASK 0x8000
+#define MADERA_OPCLK_ENA_SHIFT 15
+#define MADERA_OPCLK_ENA_WIDTH 1
+#define MADERA_OPCLK_DIV_MASK 0x00F8
+#define MADERA_OPCLK_DIV_SHIFT 3
+#define MADERA_OPCLK_DIV_WIDTH 5
+#define MADERA_OPCLK_SEL_MASK 0x0007
+#define MADERA_OPCLK_SEL_SHIFT 0
+#define MADERA_OPCLK_SEL_WIDTH 3
+
+/* (0x014A) Output_async_clock */
+#define MADERA_OPCLK_ASYNC_ENA 0x8000
+#define MADERA_OPCLK_ASYNC_ENA_MASK 0x8000
+#define MADERA_OPCLK_ASYNC_ENA_SHIFT 15
+#define MADERA_OPCLK_ASYNC_ENA_WIDTH 1
+#define MADERA_OPCLK_ASYNC_DIV_MASK 0x00F8
+#define MADERA_OPCLK_ASYNC_DIV_SHIFT 3
+#define MADERA_OPCLK_ASYNC_DIV_WIDTH 5
+#define MADERA_OPCLK_ASYNC_SEL_MASK 0x0007
+#define MADERA_OPCLK_ASYNC_SEL_SHIFT 0
+#define MADERA_OPCLK_ASYNC_SEL_WIDTH 3
+
+/* (0x0152) Rate_Estimator_1 */
+#define MADERA_TRIG_ON_STARTUP 0x0010
+#define MADERA_TRIG_ON_STARTUP_MASK 0x0010
+#define MADERA_TRIG_ON_STARTUP_SHIFT 4
+#define MADERA_TRIG_ON_STARTUP_WIDTH 1
+#define MADERA_LRCLK_SRC_MASK 0x000E
+#define MADERA_LRCLK_SRC_SHIFT 1
+#define MADERA_LRCLK_SRC_WIDTH 3
+#define MADERA_RATE_EST_ENA 0x0001
+#define MADERA_RATE_EST_ENA_MASK 0x0001
+#define MADERA_RATE_EST_ENA_SHIFT 0
+#define MADERA_RATE_EST_ENA_WIDTH 1
+
+/* (0x0153) Rate_Estimator_2 */
+#define MADERA_SAMPLE_RATE_DETECT_A_MASK 0x001F
+#define MADERA_SAMPLE_RATE_DETECT_A_SHIFT 0
+#define MADERA_SAMPLE_RATE_DETECT_A_WIDTH 5
+
+/* (0x0154) Rate_Estimator_3 */
+#define MADERA_SAMPLE_RATE_DETECT_B_MASK 0x001F
+#define MADERA_SAMPLE_RATE_DETECT_B_SHIFT 0
+#define MADERA_SAMPLE_RATE_DETECT_B_WIDTH 5
+
+/* (0x0155) Rate_Estimator_4 */
+#define MADERA_SAMPLE_RATE_DETECT_C_MASK 0x001F
+#define MADERA_SAMPLE_RATE_DETECT_C_SHIFT 0
+#define MADERA_SAMPLE_RATE_DETECT_C_WIDTH 5
+
+/* (0x0156) Rate_Estimator_5 */
+#define MADERA_SAMPLE_RATE_DETECT_D_MASK 0x001F
+#define MADERA_SAMPLE_RATE_DETECT_D_SHIFT 0
+#define MADERA_SAMPLE_RATE_DETECT_D_WIDTH 5
+
+/* (0x0171) FLL1_Control_1 */
+#define MADERA_FLL1_FREERUN 0x0002
+#define MADERA_FLL1_FREERUN_MASK 0x0002
+#define MADERA_FLL1_FREERUN_SHIFT 1
+#define MADERA_FLL1_FREERUN_WIDTH 1
+#define MADERA_FLL1_ENA 0x0001
+#define MADERA_FLL1_ENA_MASK 0x0001
+#define MADERA_FLL1_ENA_SHIFT 0
+#define MADERA_FLL1_ENA_WIDTH 1
+
+/* (0x0172) FLL1_Control_2 */
+#define MADERA_FLL1_CTRL_UPD 0x8000
+#define MADERA_FLL1_CTRL_UPD_MASK 0x8000
+#define MADERA_FLL1_CTRL_UPD_SHIFT 15
+#define MADERA_FLL1_CTRL_UPD_WIDTH 1
+#define MADERA_FLL1_N_MASK 0x03FF
+#define MADERA_FLL1_N_SHIFT 0
+#define MADERA_FLL1_N_WIDTH 10
+
+/* (0x0173) FLL1_Control_3 */
+#define MADERA_FLL1_THETA_MASK 0xFFFF
+#define MADERA_FLL1_THETA_SHIFT 0
+#define MADERA_FLL1_THETA_WIDTH 16
+
+/* (0x0174) FLL1_Control_4 */
+#define MADERA_FLL1_LAMBDA_MASK 0xFFFF
+#define MADERA_FLL1_LAMBDA_SHIFT 0
+#define MADERA_FLL1_LAMBDA_WIDTH 16
+
+/* (0x0175) FLL1_Control_5 */
+#define MADERA_FLL1_FRATIO_MASK 0x0F00
+#define MADERA_FLL1_FRATIO_SHIFT 8
+#define MADERA_FLL1_FRATIO_WIDTH 4
+
+/* (0x0176) FLL1_Control_6 */
+#define MADERA_FLL1_REFCLK_DIV_MASK 0x00C0
+#define MADERA_FLL1_REFCLK_DIV_SHIFT 6
+#define MADERA_FLL1_REFCLK_DIV_WIDTH 2
+#define MADERA_FLL1_REFCLK_SRC_MASK 0x000F
+#define MADERA_FLL1_REFCLK_SRC_SHIFT 0
+#define MADERA_FLL1_REFCLK_SRC_WIDTH 4
+
+/* (0x0177) FLL1_Loop_Filter_Test_1 */
+#define MADERA_FLL1_FRC_INTEG_UPD 0x8000
+#define MADERA_FLL1_FRC_INTEG_UPD_MASK 0x8000
+#define MADERA_FLL1_FRC_INTEG_UPD_SHIFT 15
+#define MADERA_FLL1_FRC_INTEG_UPD_WIDTH 1
+#define MADERA_FLL1_FRC_INTEG_VAL_MASK 0x0FFF
+#define MADERA_FLL1_FRC_INTEG_VAL_SHIFT 0
+#define MADERA_FLL1_FRC_INTEG_VAL_WIDTH 12
+
+/* (0x0179) FLL1_Control_7 */
+#define MADERA_FLL1_GAIN_MASK 0x003c
+#define MADERA_FLL1_GAIN_SHIFT 2
+#define MADERA_FLL1_GAIN_WIDTH 4
+
+/* (0x017A) FLL1_EFS_2 */
+#define MADERA_FLL1_PHASE_GAIN_MASK 0xF000
+#define MADERA_FLL1_PHASE_GAIN_SHIFT 12
+#define MADERA_FLL1_PHASE_GAIN_WIDTH 4
+#define MADERA_FLL1_PHASE_ENA_MASK 0x0800
+#define MADERA_FLL1_PHASE_ENA_SHIFT 11
+#define MADERA_FLL1_PHASE_ENA_WIDTH 1
+
+/* (0x0181) FLL1_Synchroniser_1 */
+#define MADERA_FLL1_SYNC_ENA 0x0001
+#define MADERA_FLL1_SYNC_ENA_MASK 0x0001
+#define MADERA_FLL1_SYNC_ENA_SHIFT 0
+#define MADERA_FLL1_SYNC_ENA_WIDTH 1
+
+/* (0x0182) FLL1_Synchroniser_2 */
+#define MADERA_FLL1_SYNC_N_MASK 0x03FF
+#define MADERA_FLL1_SYNC_N_SHIFT 0
+#define MADERA_FLL1_SYNC_N_WIDTH 10
+
+/* (0x0183) FLL1_Synchroniser_3 */
+#define MADERA_FLL1_SYNC_THETA_MASK 0xFFFF
+#define MADERA_FLL1_SYNC_THETA_SHIFT 0
+#define MADERA_FLL1_SYNC_THETA_WIDTH 16
+
+/* (0x0184) FLL1_Synchroniser_4 */
+#define MADERA_FLL1_SYNC_LAMBDA_MASK 0xFFFF
+#define MADERA_FLL1_SYNC_LAMBDA_SHIFT 0
+#define MADERA_FLL1_SYNC_LAMBDA_WIDTH 16
+
+/* (0x0185) FLL1_Synchroniser_5 */
+#define MADERA_FLL1_SYNC_FRATIO_MASK 0x0700
+#define MADERA_FLL1_SYNC_FRATIO_SHIFT 8
+#define MADERA_FLL1_SYNC_FRATIO_WIDTH 3
+
+/* (0x0186) FLL1_Synchroniser_6 */
+#define MADERA_FLL1_SYNCCLK_DIV_MASK 0x00C0
+#define MADERA_FLL1_SYNCCLK_DIV_SHIFT 6
+#define MADERA_FLL1_SYNCCLK_DIV_WIDTH 2
+#define MADERA_FLL1_SYNCCLK_SRC_MASK 0x000F
+#define MADERA_FLL1_SYNCCLK_SRC_SHIFT 0
+#define MADERA_FLL1_SYNCCLK_SRC_WIDTH 4
+
+/* (0x0187) FLL1_Synchroniser_7 */
+#define MADERA_FLL1_SYNC_GAIN_MASK 0x003c
+#define MADERA_FLL1_SYNC_GAIN_SHIFT 2
+#define MADERA_FLL1_SYNC_GAIN_WIDTH 4
+#define MADERA_FLL1_SYNC_DFSAT 0x0001
+#define MADERA_FLL1_SYNC_DFSAT_MASK 0x0001
+#define MADERA_FLL1_SYNC_DFSAT_SHIFT 0
+#define MADERA_FLL1_SYNC_DFSAT_WIDTH 1
+
+/* (0x0189) FLL1_Spread_Spectrum */
+#define MADERA_FLL1_SS_AMPL_MASK 0x0030
+#define MADERA_FLL1_SS_AMPL_SHIFT 4
+#define MADERA_FLL1_SS_AMPL_WIDTH 2
+#define MADERA_FLL1_SS_FREQ_MASK 0x000C
+#define MADERA_FLL1_SS_FREQ_SHIFT 2
+#define MADERA_FLL1_SS_FREQ_WIDTH 2
+#define MADERA_FLL1_SS_SEL_MASK 0x0003
+#define MADERA_FLL1_SS_SEL_SHIFT 0
+#define MADERA_FLL1_SS_SEL_WIDTH 2
+
+/* (0x018A) FLL1_GPIO_Clock */
+#define MADERA_FLL1_GPCLK_DIV_MASK 0x00FE
+#define MADERA_FLL1_GPCLK_DIV_SHIFT 1
+#define MADERA_FLL1_GPCLK_DIV_WIDTH 7
+#define MADERA_FLL1_GPCLK_ENA 0x0001
+#define MADERA_FLL1_GPCLK_ENA_MASK 0x0001
+#define MADERA_FLL1_GPCLK_ENA_SHIFT 0
+#define MADERA_FLL1_GPCLK_ENA_WIDTH 1
+
+/* (0x0191) FLL2_Control_1 */
+#define MADERA_FLL2_FREERUN 0x0002
+#define MADERA_FLL2_FREERUN_MASK 0x0002
+#define MADERA_FLL2_FREERUN_SHIFT 1
+#define MADERA_FLL2_FREERUN_WIDTH 1
+#define MADERA_FLL2_ENA 0x0001
+#define MADERA_FLL2_ENA_MASK 0x0001
+#define MADERA_FLL2_ENA_SHIFT 0
+#define MADERA_FLL2_ENA_WIDTH 1
+
+/* (0x0192) FLL2_Control_2 */
+#define MADERA_FLL2_CTRL_UPD 0x8000
+#define MADERA_FLL2_CTRL_UPD_MASK 0x8000
+#define MADERA_FLL2_CTRL_UPD_SHIFT 15
+#define MADERA_FLL2_CTRL_UPD_WIDTH 1
+#define MADERA_FLL2_N_MASK 0x03FF
+#define MADERA_FLL2_N_SHIFT 0
+#define MADERA_FLL2_N_WIDTH 10
+
+/* (0x0193) FLL2_Control_3 */
+#define MADERA_FLL2_THETA_MASK 0xFFFF
+#define MADERA_FLL2_THETA_SHIFT 0
+#define MADERA_FLL2_THETA_WIDTH 16
+
+/* (0x0194) FLL2_Control_4 */
+#define MADERA_FLL2_LAMBDA_MASK 0xFFFF
+#define MADERA_FLL2_LAMBDA_SHIFT 0
+#define MADERA_FLL2_LAMBDA_WIDTH 16
+
+/* (0x0195) FLL2_Control_5 */
+#define MADERA_FLL2_FRATIO_MASK 0x0700
+#define MADERA_FLL2_FRATIO_SHIFT 8
+#define MADERA_FLL2_FRATIO_WIDTH 3
+
+/* (0x0196) FLL2_Control_6 */
+#define MADERA_FLL2_REFCLK_DIV_MASK 0x00C0
+#define MADERA_FLL2_REFCLK_DIV_SHIFT 6
+#define MADERA_FLL2_REFCLK_DIV_WIDTH 2
+#define MADERA_FLL2_REFCLK_SRC_MASK 0x000F
+#define MADERA_FLL2_REFCLK_SRC_SHIFT 0
+#define MADERA_FLL2_REFCLK_SRC_WIDTH 4
+
+/* (0x0197) FLL2_Loop_Filter_Test_1 */
+#define MADERA_FLL2_FRC_INTEG_UPD 0x8000
+#define MADERA_FLL2_FRC_INTEG_UPD_MASK 0x8000
+#define MADERA_FLL2_FRC_INTEG_UPD_SHIFT 15
+#define MADERA_FLL2_FRC_INTEG_UPD_WIDTH 1
+#define MADERA_FLL2_FRC_INTEG_VAL_MASK 0x0FFF
+#define MADERA_FLL2_FRC_INTEG_VAL_SHIFT 0
+#define MADERA_FLL2_FRC_INTEG_VAL_WIDTH 12
+
+/* (0x0199) FLL2_Control_7 */
+#define MADERA_FLL2_GAIN_MASK 0x003c
+#define MADERA_FLL2_GAIN_SHIFT 2
+#define MADERA_FLL2_GAIN_WIDTH 4
+
+/* (0x019A) FLL2_EFS_2 */
+#define MADERA_FLL2_PHASE_GAIN_MASK 0xF000
+#define MADERA_FLL2_PHASE_GAIN_SHIFT 12
+#define MADERA_FLL2_PHASE_GAIN_WIDTH 4
+#define MADERA_FLL2_PHASE_ENA_MASK 0x0800
+#define MADERA_FLL2_PHASE_ENA_SHIFT 11
+#define MADERA_FLL2_PHASE_ENA_WIDTH 1
+
+/* (0x01A1) FLL2_Synchroniser_1 */
+#define MADERA_FLL2_SYNC_ENA 0x0001
+#define MADERA_FLL2_SYNC_ENA_MASK 0x0001
+#define MADERA_FLL2_SYNC_ENA_SHIFT 0
+#define MADERA_FLL2_SYNC_ENA_WIDTH 1
+
+/* (0x01A2) FLL2_Synchroniser_2 */
+#define MADERA_FLL2_SYNC_N_MASK 0x03FF
+#define MADERA_FLL2_SYNC_N_SHIFT 0
+#define MADERA_FLL2_SYNC_N_WIDTH 10
+
+/* (0x01A3) FLL2_Synchroniser_3 */
+#define MADERA_FLL2_SYNC_THETA_MASK 0xFFFF
+#define MADERA_FLL2_SYNC_THETA_SHIFT 0
+#define MADERA_FLL2_SYNC_THETA_WIDTH 16
+
+/* (0x01A4) FLL2_Synchroniser_4 */
+#define MADERA_FLL2_SYNC_LAMBDA_MASK 0xFFFF
+#define MADERA_FLL2_SYNC_LAMBDA_SHIFT 0
+#define MADERA_FLL2_SYNC_LAMBDA_WIDTH 16
+
+/* (0x01A5) FLL2_Synchroniser_5 */
+#define MADERA_FLL2_SYNC_FRATIO_MASK 0x0700
+#define MADERA_FLL2_SYNC_FRATIO_SHIFT 8
+#define MADERA_FLL2_SYNC_FRATIO_WIDTH 3
+
+/* (0x01A6) FLL2_Synchroniser_6 */
+#define MADERA_FLL2_SYNCCLK_DIV_MASK 0x00C0
+#define MADERA_FLL2_SYNCCLK_DIV_SHIFT 6
+#define MADERA_FLL2_SYNCCLK_DIV_WIDTH 2
+#define MADERA_FLL2_SYNCCLK_SRC_MASK 0x000F
+#define MADERA_FLL2_SYNCCLK_SRC_SHIFT 0
+#define MADERA_FLL2_SYNCCLK_SRC_WIDTH 4
+
+/* (0x01A7) FLL2_Synchroniser_7 */
+#define MADERA_FLL2_SYNC_GAIN_MASK 0x003c
+#define MADERA_FLL2_SYNC_GAIN_SHIFT 2
+#define MADERA_FLL2_SYNC_GAIN_WIDTH 4
+#define MADERA_FLL2_SYNC_DFSAT 0x0001
+#define MADERA_FLL2_SYNC_DFSAT_MASK 0x0001
+#define MADERA_FLL2_SYNC_DFSAT_SHIFT 0
+#define MADERA_FLL2_SYNC_DFSAT_WIDTH 1
+
+/* (0x01A9) FLL2_Spread_Spectrum */
+#define MADERA_FLL2_SS_AMPL_MASK 0x0030
+#define MADERA_FLL2_SS_AMPL_SHIFT 4
+#define MADERA_FLL2_SS_AMPL_WIDTH 2
+#define MADERA_FLL2_SS_FREQ_MASK 0x000C
+#define MADERA_FLL2_SS_FREQ_SHIFT 2
+#define MADERA_FLL2_SS_FREQ_WIDTH 2
+#define MADERA_FLL2_SS_SEL_MASK 0x0003
+#define MADERA_FLL2_SS_SEL_SHIFT 0
+#define MADERA_FLL2_SS_SEL_WIDTH 2
+
+/* (0x01AA) FLL2_GPIO_Clock */
+#define MADERA_FLL2_GPCLK_DIV_MASK 0x00FE
+#define MADERA_FLL2_GPCLK_DIV_SHIFT 1
+#define MADERA_FLL2_GPCLK_DIV_WIDTH 7
+#define MADERA_FLL2_GPCLK_ENA 0x0001
+#define MADERA_FLL2_GPCLK_ENA_MASK 0x0001
+#define MADERA_FLL2_GPCLK_ENA_SHIFT 0
+#define MADERA_FLL2_GPCLK_ENA_WIDTH 1
+
+/* (0x01B1) FLL3_Control_1 */
+#define MADERA_FLL3_FREERUN 0x0002
+#define MADERA_FLL3_FREERUN_MASK 0x0002
+#define MADERA_FLL3_FREERUN_SHIFT 1
+#define MADERA_FLL3_FREERUN_WIDTH 1
+#define MADERA_FLL3_ENA 0x0001
+#define MADERA_FLL3_ENA_MASK 0x0001
+#define MADERA_FLL3_ENA_SHIFT 0
+#define MADERA_FLL3_ENA_WIDTH 1
+
+/* (0x01B2) FLL3_Control_2 */
+#define MADERA_FLL3_CTRL_UPD 0x8000
+#define MADERA_FLL3_CTRL_UPD_MASK 0x8000
+#define MADERA_FLL3_CTRL_UPD_SHIFT 15
+#define MADERA_FLL3_CTRL_UPD_WIDTH 1
+#define MADERA_FLL3_N_MASK 0x03FF
+#define MADERA_FLL3_N_SHIFT 0
+#define MADERA_FLL3_N_WIDTH 10
+
+/* (0x01B3) FLL3_Control_3 */
+#define MADERA_FLL3_THETA_MASK 0xFFFF
+#define MADERA_FLL3_THETA_SHIFT 0
+#define MADERA_FLL3_THETA_WIDTH 16
+
+/* (0x01B4) FLL3_Control_4 */
+#define MADERA_FLL3_LAMBDA_MASK 0xFFFF
+#define MADERA_FLL3_LAMBDA_SHIFT 0
+#define MADERA_FLL3_LAMBDA_WIDTH 16
+
+/* (0x01B5) FLL3_Control_5 */
+#define MADERA_FLL3_FRATIO_MASK 0x0700
+#define MADERA_FLL3_FRATIO_SHIFT 8
+#define MADERA_FLL3_FRATIO_WIDTH 3
+
+/* (0x01B6) FLL3_Control_6 */
+#define MADERA_FLL3_REFCLK_DIV_MASK 0x00C0
+#define MADERA_FLL3_REFCLK_DIV_SHIFT 6
+#define MADERA_FLL3_REFCLK_DIV_WIDTH 2
+#define MADERA_FLL3_REFCLK_SRC_MASK 0x000F
+#define MADERA_FLL3_REFCLK_SRC_SHIFT 0
+#define MADERA_FLL3_REFCLK_SRC_WIDTH 4
+
+/* (0x01B7) FLL3_Loop_Filter_Test_1 */
+#define MADERA_FLL3_FRC_INTEG_UPD 0x8000
+#define MADERA_FLL3_FRC_INTEG_UPD_MASK 0x8000
+#define MADERA_FLL3_FRC_INTEG_UPD_SHIFT 15
+#define MADERA_FLL3_FRC_INTEG_UPD_WIDTH 1
+#define MADERA_FLL3_FRC_INTEG_VAL_MASK 0x0FFF
+#define MADERA_FLL3_FRC_INTEG_VAL_SHIFT 0
+#define MADERA_FLL3_FRC_INTEG_VAL_WIDTH 12
+
+/* (0x01B9) FLL3_Control_7 */
+#define MADERA_FLL3_GAIN_MASK 0x003c
+#define MADERA_FLL3_GAIN_SHIFT 2
+#define MADERA_FLL3_GAIN_WIDTH 4
+
+/* (0x01C1) FLL3_Synchroniser_1 */
+#define MADERA_FLL3_SYNC_ENA 0x0001
+#define MADERA_FLL3_SYNC_ENA_MASK 0x0001
+#define MADERA_FLL3_SYNC_ENA_SHIFT 0
+#define MADERA_FLL3_SYNC_ENA_WIDTH 1
+
+/* (0x01C2) FLL3_Synchroniser_2 */
+#define MADERA_FLL3_SYNC_N_MASK 0x03FF
+#define MADERA_FLL3_SYNC_N_SHIFT 0
+#define MADERA_FLL3_SYNC_N_WIDTH 10
+
+/* (0x01C3) FLL3_Synchroniser_3 */
+#define MADERA_FLL3_SYNC_THETA_MASK 0xFFFF
+#define MADERA_FLL3_SYNC_THETA_SHIFT 0
+#define MADERA_FLL3_SYNC_THETA_WIDTH 16
+
+/* (0x01C4) FLL3_Synchroniser_4 */
+#define MADERA_FLL3_SYNC_LAMBDA_MASK 0xFFFF
+#define MADERA_FLL3_SYNC_LAMBDA_SHIFT 0
+#define MADERA_FLL3_SYNC_LAMBDA_WIDTH 16
+
+/* (0x01C5) FLL3_Synchroniser_5 */
+#define MADERA_FLL3_SYNC_FRATIO_MASK 0x0700
+#define MADERA_FLL3_SYNC_FRATIO_SHIFT 8
+#define MADERA_FLL3_SYNC_FRATIO_WIDTH 3
+
+/* (0x01C6) FLL3_Synchroniser_6 */
+#define MADERA_FLL3_SYNCCLK_DIV_MASK 0x00C0
+#define MADERA_FLL3_SYNCCLK_DIV_SHIFT 6
+#define MADERA_FLL3_SYNCCLK_DIV_WIDTH 2
+#define MADERA_FLL3_SYNCCLK_SRC_MASK 0x000F
+#define MADERA_FLL3_SYNCCLK_SRC_SHIFT 0
+#define MADERA_FLL3_SYNCCLK_SRC_WIDTH 4
+
+/* (0x01C7) FLL3_Synchroniser_7 */
+#define MADERA_FLL3_SYNC_GAIN_MASK 0x003c
+#define MADERA_FLL3_SYNC_GAIN_SHIFT 2
+#define MADERA_FLL3_SYNC_GAIN_WIDTH 4
+#define MADERA_FLL3_SYNC_DFSAT 0x0001
+#define MADERA_FLL3_SYNC_DFSAT_MASK 0x0001
+#define MADERA_FLL3_SYNC_DFSAT_SHIFT 0
+#define MADERA_FLL3_SYNC_DFSAT_WIDTH 1
+
+/* (0x01C9) FLL3_Spread_Spectrum */
+#define MADERA_FLL3_SS_AMPL_MASK 0x0030
+#define MADERA_FLL3_SS_AMPL_SHIFT 4
+#define MADERA_FLL3_SS_AMPL_WIDTH 2
+#define MADERA_FLL3_SS_FREQ_MASK 0x000C
+#define MADERA_FLL3_SS_FREQ_SHIFT 2
+#define MADERA_FLL3_SS_FREQ_WIDTH 2
+#define MADERA_FLL3_SS_SEL_MASK 0x0003
+#define MADERA_FLL3_SS_SEL_SHIFT 0
+#define MADERA_FLL3_SS_SEL_WIDTH 2
+
+/* (0x01CA) FLL3_GPIO_Clock */
+#define MADERA_FLL3_GPCLK_DIV_MASK 0x00FE
+#define MADERA_FLL3_GPCLK_DIV_SHIFT 1
+#define MADERA_FLL3_GPCLK_DIV_WIDTH 7
+#define MADERA_FLL3_GPCLK_DIV_ENA 0x0001
+#define MADERA_FLL3_GPCLK_DIV_ENA_MASK 0x0001
+#define MADERA_FLL3_GPCLK_DIV_ENA_SHIFT 0
+#define MADERA_FLL3_GPCLK_DIV_ENA_WIDTH 1
+
+/* (0x01D1) FLL_AO_Control_1 */
+#define MADERA_FLL_AO_HOLD 0x0004
+#define MADERA_FLL_AO_HOLD_MASK 0x0004
+#define MADERA_FLL_AO_HOLD_SHIFT 2
+#define MADERA_FLL_AO_HOLD_WIDTH 1
+#define MADERA_FLL_AO_FREERUN 0x0002
+#define MADERA_FLL_AO_FREERUN_MASK 0x0002
+#define MADERA_FLL_AO_FREERUN_SHIFT 1
+#define MADERA_FLL_AO_FREERUN_WIDTH 1
+#define MADERA_FLL_AO_ENA 0x0001
+#define MADERA_FLL_AO_ENA_MASK 0x0001
+#define MADERA_FLL_AO_ENA_SHIFT 0
+#define MADERA_FLL_AO_ENA_WIDTH 1
+
+/* (0x01D2) FLL_AO_Control_2 */
+#define MADERA_FLL_AO_CTRL_UPD 0x8000
+#define MADERA_FLL_AO_CTRL_UPD_MASK 0x8000
+#define MADERA_FLL_AO_CTRL_UPD_SHIFT 15
+#define MADERA_FLL_AO_CTRL_UPD_WIDTH 1
+#define MADERA_FLL_AO_N_MASK 0x03FF
+#define MADERA_FLL_AO_N_SHIFT 0
+#define MADERA_FLL_AO_N_WIDTH 10
+
+/* (0x01D3) FLL_AO_Control_3 */
+#define MADERA_FLL_AO_THETA_MASK 0x00FF
+#define MADERA_FLL_AO_THETA_SHIFT 0
+#define MADERA_FLL_AO_THETA_WIDTH 8
+
+/* (0x01D4) FLL_AO_Control_4 */
+#define MADERA_FLL_AO_LAMBDA_MASK 0x00FF
+#define MADERA_FLL_AO_LAMBDA_SHIFT 0
+#define MADERA_FLL_AO_LAMBDA_WIDTH 8
+
+/* (0x01D5) FLL_AO_Control_5 */
+#define MADERA_FLL_AO_FB_DIV_MASK 0x00FF
+#define MADERA_FLL_AO_FB_DIV_SHIFT 0
+#define MADERA_FLL_AO_FB_DIV_WIDTH 8
+
+/* (0x01D6) FLL_AO_Control_6 */
+#define MADERA_FLL_AO_REFDET_ENA 0x8000
+#define MADERA_FLL_AO_REFDET_ENA_MASK 0x8000
+#define MADERA_FLL_AO_REFDET_ENA_SHIFT 15
+#define MADERA_FLL_AO_REFDET_ENA_WIDTH 1
+#define MADERA_FLL_AO_REFCLK_DIV_MASK 0x00C0
+#define MADERA_FLL_AO_REFCLK_DIV_SHIFT 6
+#define MADERA_FLL_AO_REFCLK_DIV_WIDTH 2
+#define MADERA_FLL_AO_REFCLK_SRC_MASK 0x000F
+#define MADERA_FLL_AO_REFCLK_SRC_SHIFT 0
+#define MADERA_FLL_AO_REFCLK_SRC_WIDTH 4
+
+/* (0x01D8) FLL_AO_Control_7 */
+#define MADERA_FLL_AO_GAIN_MASK 0x000F
+#define MADERA_FLL_AO_GAIN_SHIFT 0
+#define MADERA_FLL_AO_GAIN_WIDTH 4
+
+/* (0x01DA) FLL_AO_Control_8 */
+#define MADERA_FLL_AO_HS_DITH_TUNE_MASK 0xF000
+#define MADERA_FLL_AO_HS_DITH_TUNE_SHIFT 12
+#define MADERA_FLL_AO_HS_DITH_TUNE_WIDTH 4
+#define MADERA_FLL_AO_LS_DITH_TUNE_SHAPED_MASK 0x00F0
+#define MADERA_FLL_AO_LS_DITH_TUNE_SHAPED_SHIFT 4
+#define MADERA_FLL_AO_LS_DITH_TUNE_SHAPED_WIDTH 4
+#define MADERA_FLL_AO_LS_DITH_TUNE_NONSHAPED_MASK 0x000F
+#define MADERA_FLL_AO_LS_DITH_TUNE_NONSHAPED_SHIFT 0
+#define MADERA_FLL_AO_LS_DITH_TUNE_NONSHAPED_WIDTH 4
+
+/* (0x01DB) FLL_AO_Control_9 */
+#define MADERA_FLL_AO_TR_RATE_MASK 0x000F
+#define MADERA_FLL_AO_TR_RATE_SHIFT 0
+#define MADERA_FLL_AO_TR_RATE_WIDTH 4
+
+/* (0x01DC) FLL_AO_Control_10 */
+#define MADERA_FLL_AO_PHASEDET_ENA 0x1000
+#define MADERA_FLL_AO_PHASEDET_ENA_MASK 0x1000
+#define MADERA_FLL_AO_PHASEDET_ENA_SHIFT 12
+#define MADERA_FLL_AO_PHASEDET_ENA_WIDTH 1
+#define MADERA_FLL_AO_WLR_SDM_FRC_ENA 0x0800
+#define MADERA_FLL_AO_WLR_SDM_FRC_ENA_MASK 0x0800
+#define MADERA_FLL_AO_WLR_SDM_FRC_ENA_SHIFT 11
+#define MADERA_FLL_AO_WLR_SDM_FRC_ENA_WIDTH 1
+#define MADERA_FLL_AO_WLR_SDM_ENA 0x0400
+#define MADERA_FLL_AO_WLR_SDM_ENA_MASK 0x0400
+#define MADERA_FLL_AO_WLR_SDM_ENA_SHIFT 10
+#define MADERA_FLL_AO_WLR_SDM_ENA_WIDTH 1
+#define MADERA_FLL_AO_SYNC_EFS_ENA 0x0200
+#define MADERA_FLL_AO_SYNC_EFS_ENA_MASK 0x0200
+#define MADERA_FLL_AO_SYNC_EFS_ENA_SHIFT 9
+#define MADERA_FLL_AO_SYNC_EFS_ENA_WIDTH 1
+#define MADERA_FLL_AO_LS_DITH_ENA 0x0080
+#define MADERA_FLL_AO_LS_DITH_ENA_MASK 0x0080
+#define MADERA_FLL_AO_LS_DITH_ENA_SHIFT 7
+#define MADERA_FLL_AO_LS_DITH_ENA_WIDTH 1
+#define MADERA_FLL_AO_HS_DITH_ENA 0x0040
+#define MADERA_FLL_AO_HS_DITH_ENA_MASK 0x0040
+#define MADERA_FLL_AO_HS_DITH_ENA_SHIFT 6
+#define MADERA_FLL_AO_HS_DITH_ENA_WIDTH 1
+#define MADERA_FLL_AO_OSF_FRC_ENA 0x0010
+#define MADERA_FLL_AO_OSF_FRC_ENA_MASK 0x0010
+#define MADERA_FLL_AO_OSF_FRC_ENA_SHIFT 4
+#define MADERA_FLL_AO_OSF_FRC_ENA_WIDTH 1
+#define MADERA_FLL_AO_OSF_ENA 0x0008
+#define MADERA_FLL_AO_OSF_ENA_MASK 0x0008
+#define MADERA_FLL_AO_OSF_ENA_SHIFT 3
+#define MADERA_FLL_AO_OSF_ENA_WIDTH 1
+#define MADERA_FLL_AO_AUTO_DFSAT_ENA 0x0002
+#define MADERA_FLL_AO_AUTO_DFSAT_ENA_MASK 0x0002
+#define MADERA_FLL_AO_AUTO_DFSAT_ENA_SHIFT 1
+#define MADERA_FLL_AO_AUTO_DFSAT_ENA_WIDTH 1
+#define MADERA_FLL_AO_DFSAT_ENA 0x0001
+#define MADERA_FLL_AO_DFSAT_ENA_MASK 0x0001
+#define MADERA_FLL_AO_DFSAT_ENA_SHIFT 0
+#define MADERA_FLL_AO_DFSAT_ENA_WIDTH 1
+
+/* (0x01DD) FLL_AO_Control_11 */
+#define MADERA_FLL_AO_LOCKDET_PHASE_MASK 0x0080
+#define MADERA_FLL_AO_LOCKDET_PHASE_MASK_MASK 0x0080
+#define MADERA_FLL_AO_LOCKDET_PHASE_MASK_SHIFT 7
+#define MADERA_FLL_AO_LOCKDET_PHASE_MASK_WIDTH 1
+#define MADERA_FLL_AO_LOCKDET_THR_MASK 0x001E
+#define MADERA_FLL_AO_LOCKDET_THR_SHIFT 1
+#define MADERA_FLL_AO_LOCKDET_THR_WIDTH 4
+#define MADERA_FLL_AO_LOCKDET_ENA 0x0001
+#define MADERA_FLL_AO_LOCKDET_ENA_MASK 0x0001
+#define MADERA_FLL_AO_LOCKDET_ENA_SHIFT 0
+#define MADERA_FLL_AO_LOCKDET_ENA_WIDTH 1
+
+/* (0x0200) Mic_Charge_Pump_1 */
+#define MADERA_CPMIC_DISCH 0x0004
+#define MADERA_CPMIC_DISCH_MASK 0x0004
+#define MADERA_CPMIC_DISCH_SHIFT 2
+#define MADERA_CPMIC_DISCH_WIDTH 1
+#define MADERA_CPMIC_BYPASS 0x0002
+#define MADERA_CPMIC_BYPASS_MASK 0x0002
+#define MADERA_CPMIC_BYPASS_SHIFT 1
+#define MADERA_CPMIC_BYPASS_WIDTH 1
+#define MADERA_CPMIC_ENA 0x0001
+#define MADERA_CPMIC_ENA_MASK 0x0001
+#define MADERA_CPMIC_ENA_SHIFT 0
+#define MADERA_CPMIC_ENA_WIDTH 1
+
+/* (0x0210) LDO1_Control_1 */
+#define MADERA_LDO1_VSEL_MASK 0x07E0
+#define MADERA_LDO1_VSEL_SHIFT 5
+#define MADERA_LDO1_VSEL_WIDTH 6
+#define MADERA_LDO1_FAST 0x0010
+#define MADERA_LDO1_FAST_MASK 0x0010
+#define MADERA_LDO1_FAST_SHIFT 4
+#define MADERA_LDO1_FAST_WIDTH 1
+#define MADERA_LDO1_DISCH 0x0004
+#define MADERA_LDO1_DISCH_MASK 0x0004
+#define MADERA_LDO1_DISCH_SHIFT 2
+#define MADERA_LDO1_DISCH_WIDTH 1
+#define MADERA_LDO1_BYPASS 0x0002
+#define MADERA_LDO1_BYPASS_MASK 0x0002
+#define MADERA_LDO1_BYPASS_SHIFT 1
+#define MADERA_LDO1_BYPASS_WIDTH 1
+#define MADERA_LDO1_ENA 0x0001
+#define MADERA_LDO1_ENA_MASK 0x0001
+#define MADERA_LDO1_ENA_SHIFT 0
+#define MADERA_LDO1_ENA_WIDTH 1
+
+/* (0x0213) LDO2_Control_1 */
+#define MADERA_LDO2_VSEL_MASK 0x07E0
+#define MADERA_LDO2_VSEL_SHIFT 5
+#define MADERA_LDO2_VSEL_WIDTH 6
+#define MADERA_LDO2_FAST 0x0010
+#define MADERA_LDO2_FAST_MASK 0x0010
+#define MADERA_LDO2_FAST_SHIFT 4
+#define MADERA_LDO2_FAST_WIDTH 1
+#define MADERA_LDO2_DISCH 0x0004
+#define MADERA_LDO2_DISCH_MASK 0x0004
+#define MADERA_LDO2_DISCH_SHIFT 2
+#define MADERA_LDO2_DISCH_WIDTH 1
+#define MADERA_LDO2_BYPASS 0x0002
+#define MADERA_LDO2_BYPASS_MASK 0x0002
+#define MADERA_LDO2_BYPASS_SHIFT 1
+#define MADERA_LDO2_BYPASS_WIDTH 1
+#define MADERA_LDO2_ENA 0x0001
+#define MADERA_LDO2_ENA_MASK 0x0001
+#define MADERA_LDO2_ENA_SHIFT 0
+#define MADERA_LDO2_ENA_WIDTH 1
+
+/* (0x0218) Mic_Bias_Ctrl_1 */
+#define MADERA_MICB1_EXT_CAP 0x8000
+#define MADERA_MICB1_EXT_CAP_MASK 0x8000
+#define MADERA_MICB1_EXT_CAP_SHIFT 15
+#define MADERA_MICB1_EXT_CAP_WIDTH 1
+#define MADERA_MICB1_LVL_MASK 0x01E0
+#define MADERA_MICB1_LVL_SHIFT 5
+#define MADERA_MICB1_LVL_WIDTH 4
+#define MADERA_MICB1_FAST 0x0010
+#define MADERA_MICB1_FAST_MASK 0x0010
+#define MADERA_MICB1_FAST_SHIFT 4
+#define MADERA_MICB1_FAST_WIDTH 1
+#define MADERA_MICB1_RATE 0x0008
+#define MADERA_MICB1_RATE_MASK 0x0008
+#define MADERA_MICB1_RATE_SHIFT 3
+#define MADERA_MICB1_RATE_WIDTH 1
+#define MADERA_MICB1_DISCH 0x0004
+#define MADERA_MICB1_DISCH_MASK 0x0004
+#define MADERA_MICB1_DISCH_SHIFT 2
+#define MADERA_MICB1_DISCH_WIDTH 1
+#define MADERA_MICB1_BYPASS 0x0002
+#define MADERA_MICB1_BYPASS_MASK 0x0002
+#define MADERA_MICB1_BYPASS_SHIFT 1
+#define MADERA_MICB1_BYPASS_WIDTH 1
+#define MADERA_MICB1_ENA 0x0001
+#define MADERA_MICB1_ENA_MASK 0x0001
+#define MADERA_MICB1_ENA_SHIFT 0
+#define MADERA_MICB1_ENA_WIDTH 1
+
+/* (0x0219) Mic_Bias_Ctrl_2 */
+#define MADERA_MICB2_EXT_CAP 0x8000
+#define MADERA_MICB2_EXT_CAP_MASK 0x8000
+#define MADERA_MICB2_EXT_CAP_SHIFT 15
+#define MADERA_MICB2_EXT_CAP_WIDTH 1
+#define MADERA_MICB2_LVL_MASK 0x01E0
+#define MADERA_MICB2_LVL_SHIFT 5
+#define MADERA_MICB2_LVL_WIDTH 4
+#define MADERA_MICB2_FAST 0x0010
+#define MADERA_MICB2_FAST_MASK 0x0010
+#define MADERA_MICB2_FAST_SHIFT 4
+#define MADERA_MICB2_FAST_WIDTH 1
+#define MADERA_MICB2_RATE 0x0008
+#define MADERA_MICB2_RATE_MASK 0x0008
+#define MADERA_MICB2_RATE_SHIFT 3
+#define MADERA_MICB2_RATE_WIDTH 1
+#define MADERA_MICB2_DISCH 0x0004
+#define MADERA_MICB2_DISCH_MASK 0x0004
+#define MADERA_MICB2_DISCH_SHIFT 2
+#define MADERA_MICB2_DISCH_WIDTH 1
+#define MADERA_MICB2_BYPASS 0x0002
+#define MADERA_MICB2_BYPASS_MASK 0x0002
+#define MADERA_MICB2_BYPASS_SHIFT 1
+#define MADERA_MICB2_BYPASS_WIDTH 1
+#define MADERA_MICB2_ENA 0x0001
+#define MADERA_MICB2_ENA_MASK 0x0001
+#define MADERA_MICB2_ENA_SHIFT 0
+#define MADERA_MICB2_ENA_WIDTH 1
+
+/* (0x021A) Mic_Bias_Ctrl_3 */
+#define MADERA_MICB3_EXT_CAP 0x8000
+#define MADERA_MICB3_EXT_CAP_MASK 0x8000
+#define MADERA_MICB3_EXT_CAP_SHIFT 15
+#define MADERA_MICB3_EXT_CAP_WIDTH 1
+#define MADERA_MICB3_LVL_MASK 0x01E0
+#define MADERA_MICB3_LVL_SHIFT 5
+#define MADERA_MICB3_LVL_WIDTH 4
+#define MADERA_MICB3_FAST 0x0010
+#define MADERA_MICB3_FAST_MASK 0x0010
+#define MADERA_MICB3_FAST_SHIFT 4
+#define MADERA_MICB3_FAST_WIDTH 1
+#define MADERA_MICB3_RATE 0x0008
+#define MADERA_MICB3_RATE_MASK 0x0008
+#define MADERA_MICB3_RATE_SHIFT 3
+#define MADERA_MICB3_RATE_WIDTH 1
+#define MADERA_MICB3_DISCH 0x0004
+#define MADERA_MICB3_DISCH_MASK 0x0004
+#define MADERA_MICB3_DISCH_SHIFT 2
+#define MADERA_MICB3_DISCH_WIDTH 1
+#define MADERA_MICB3_BYPASS 0x0002
+#define MADERA_MICB3_BYPASS_MASK 0x0002
+#define MADERA_MICB3_BYPASS_SHIFT 1
+#define MADERA_MICB3_BYPASS_WIDTH 1
+#define MADERA_MICB3_ENA 0x0001
+#define MADERA_MICB3_ENA_MASK 0x0001
+#define MADERA_MICB3_ENA_SHIFT 0
+#define MADERA_MICB3_ENA_WIDTH 1
+
+/* (0x021B) Mic_Bias_Ctrl_4 */
+#define MADERA_MICB4_EXT_CAP 0x8000
+#define MADERA_MICB4_EXT_CAP_MASK 0x8000
+#define MADERA_MICB4_EXT_CAP_SHIFT 15
+#define MADERA_MICB4_EXT_CAP_WIDTH 1
+#define MADERA_MICB4_LVL_MASK 0x01E0
+#define MADERA_MICB4_LVL_SHIFT 5
+#define MADERA_MICB4_LVL_WIDTH 4
+#define MADERA_MICB4_FAST 0x0010
+#define MADERA_MICB4_FAST_MASK 0x0010
+#define MADERA_MICB4_FAST_SHIFT 4
+#define MADERA_MICB4_FAST_WIDTH 1
+#define MADERA_MICB4_RATE 0x0008
+#define MADERA_MICB4_RATE_MASK 0x0008
+#define MADERA_MICB4_RATE_SHIFT 3
+#define MADERA_MICB4_RATE_WIDTH 1
+#define MADERA_MICB4_DISCH 0x0004
+#define MADERA_MICB4_DISCH_MASK 0x0004
+#define MADERA_MICB4_DISCH_SHIFT 2
+#define MADERA_MICB4_DISCH_WIDTH 1
+#define MADERA_MICB4_BYPASS 0x0002
+#define MADERA_MICB4_BYPASS_MASK 0x0002
+#define MADERA_MICB4_BYPASS_SHIFT 1
+#define MADERA_MICB4_BYPASS_WIDTH 1
+#define MADERA_MICB4_ENA 0x0001
+#define MADERA_MICB4_ENA_MASK 0x0001
+#define MADERA_MICB4_ENA_SHIFT 0
+#define MADERA_MICB4_ENA_WIDTH 1
+
+/* (0x021C) Mic_Bias_Ctrl_5 */
+#define MADERA_MICB1D_BYP 0x4000
+#define MADERA_MICB1D_BYP_MASK 0x4000
+#define MADERA_MICB1D_BYP_SHIFT 14
+#define MADERA_MICB1D_BYP_WIDTH 1
+#define MADERA_MICB1D_DISCH 0x2000
+#define MADERA_MICB1D_DISCH_MASK 0x2000
+#define MADERA_MICB1D_DISCH_SHIFT 13
+#define MADERA_MICB1D_DISCH_WIDTH 1
+#define MADERA_MICB1D_ENA 0x1000
+#define MADERA_MICB1D_ENA_MASK 0x1000
+#define MADERA_MICB1D_ENA_SHIFT 12
+#define MADERA_MICB1D_ENA_WIDTH 1
+#define MADERA_MICB1C_BYP 0x0400
+#define MADERA_MICB1C_BYP_MASK 0x0400
+#define MADERA_MICB1C_BYP_SHIFT 10
+#define MADERA_MICB1C_BYP_WIDTH 1
+#define MADERA_MICB1C_DISCH 0x0200
+#define MADERA_MICB1C_DISCH_MASK 0x0200
+#define MADERA_MICB1C_DISCH_SHIFT 9
+#define MADERA_MICB1C_DISCH_WIDTH 1
+#define MADERA_MICB1C_ENA 0x0100
+#define MADERA_MICB1C_ENA_MASK 0x0100
+#define MADERA_MICB1C_ENA_SHIFT 8
+#define MADERA_MICB1C_ENA_WIDTH 1
+#define MADERA_MICB1B_BYP 0x0040
+#define MADERA_MICB1B_BYP_MASK 0x0040
+#define MADERA_MICB1B_BYP_SHIFT 6
+#define MADERA_MICB1B_BYP_WIDTH 1
+#define MADERA_MICB1B_DISCH 0x0020
+#define MADERA_MICB1B_DISCH_MASK 0x0020
+#define MADERA_MICB1B_DISCH_SHIFT 5
+#define MADERA_MICB1B_DISCH_WIDTH 1
+#define MADERA_MICB1B_ENA 0x0010
+#define MADERA_MICB1B_ENA_MASK 0x0010
+#define MADERA_MICB1B_ENA_SHIFT 4
+#define MADERA_MICB1B_ENA_WIDTH 1
+#define MADERA_MICB1A_BYP 0x0004
+#define MADERA_MICB1A_BYP_MASK 0x0004
+#define MADERA_MICB1A_BYP_SHIFT 2
+#define MADERA_MICB1A_BYP_WIDTH 1
+#define MADERA_MICB1A_DISCH 0x0002
+#define MADERA_MICB1A_DISCH_MASK 0x0002
+#define MADERA_MICB1A_DISCH_SHIFT 1
+#define MADERA_MICB1A_DISCH_WIDTH 1
+#define MADERA_MICB1A_ENA 0x0001
+#define MADERA_MICB1A_ENA_MASK 0x0001
+#define MADERA_MICB1A_ENA_SHIFT 0
+#define MADERA_MICB1A_ENA_WIDTH 1
+
+/* (0x021E) Mic_Bias_Ctrl_6 */
+#define MADERA_MICB2D_BYP 0x4000
+#define MADERA_MICB2D_BYP_MASK 0x4000
+#define MADERA_MICB2D_BYP_SHIFT 14
+#define MADERA_MICB2D_BYP_WIDTH 1
+#define MADERA_MICB2D_DISCH 0x2000
+#define MADERA_MICB2D_DISCH_MASK 0x2000
+#define MADERA_MICB2D_DISCH_SHIFT 13
+#define MADERA_MICB2D_DISCH_WIDTH 1
+#define MADERA_MICB2D_ENA 0x1000
+#define MADERA_MICB2D_ENA_MASK 0x1000
+#define MADERA_MICB2D_ENA_SHIFT 12
+#define MADERA_MICB2D_ENA_WIDTH 1
+#define MADERA_MICB2C_BYP 0x0400
+#define MADERA_MICB2C_BYP_MASK 0x0400
+#define MADERA_MICB2C_BYP_SHIFT 10
+#define MADERA_MICB2C_BYP_WIDTH 1
+#define MADERA_MICB2C_DISCH 0x0200
+#define MADERA_MICB2C_DISCH_MASK 0x0200
+#define MADERA_MICB2C_DISCH_SHIFT 9
+#define MADERA_MICB2C_DISCH_WIDTH 1
+#define MADERA_MICB2C_ENA 0x0100
+#define MADERA_MICB2C_ENA_MASK 0x0100
+#define MADERA_MICB2C_ENA_SHIFT 8
+#define MADERA_MICB2C_ENA_WIDTH 1
+#define MADERA_MICB2B_BYP 0x0040
+#define MADERA_MICB2B_BYP_MASK 0x0040
+#define MADERA_MICB2B_BYP_SHIFT 6
+#define MADERA_MICB2B_BYP_WIDTH 1
+#define MADERA_MICB2B_DISCH 0x0020
+#define MADERA_MICB2B_DISCH_MASK 0x0020
+#define MADERA_MICB2B_DISCH_SHIFT 5
+#define MADERA_MICB2B_DISCH_WIDTH 1
+#define MADERA_MICB2B_ENA 0x0010
+#define MADERA_MICB2B_ENA_MASK 0x0010
+#define MADERA_MICB2B_ENA_SHIFT 4
+#define MADERA_MICB2B_ENA_WIDTH 1
+#define MADERA_MICB2A_BYP 0x0004
+#define MADERA_MICB2A_BYP_MASK 0x0004
+#define MADERA_MICB2A_BYP_SHIFT 2
+#define MADERA_MICB2A_BYP_WIDTH 1
+#define MADERA_MICB2A_DISCH 0x0002
+#define MADERA_MICB2A_DISCH_MASK 0x0002
+#define MADERA_MICB2A_DISCH_SHIFT 1
+#define MADERA_MICB2A_DISCH_WIDTH 1
+#define MADERA_MICB2A_ENA 0x0001
+#define MADERA_MICB2A_ENA_MASK 0x0001
+#define MADERA_MICB2A_ENA_SHIFT 0
+#define MADERA_MICB2A_ENA_WIDTH 1
+
+/* (0x0225) - HP Ctrl 1L */
+#define MADERA_RMV_SHRT_HP1L 0x4000
+#define MADERA_RMV_SHRT_HP1L_MASK 0x4000
+#define MADERA_RMV_SHRT_HP1L_SHIFT 14
+#define MADERA_RMV_SHRT_HP1L_WIDTH 1
+#define MADERA_HP1L_FLWR 0x0004
+#define MADERA_HP1L_FLWR_MASK 0x0004
+#define MADERA_HP1L_FLWR_SHIFT 2
+#define MADERA_HP1L_FLWR_WIDTH 1
+#define MADERA_HP1L_SHRTI 0x0002
+#define MADERA_HP1L_SHRTI_MASK 0x0002
+#define MADERA_HP1L_SHRTI_SHIFT 1
+#define MADERA_HP1L_SHRTI_WIDTH 1
+#define MADERA_HP1L_SHRTO 0x0001
+#define MADERA_HP1L_SHRTO_MASK 0x0001
+#define MADERA_HP1L_SHRTO_SHIFT 0
+#define MADERA_HP1L_SHRTO_WIDTH 1
+
+/* (0x0226) - HP Ctrl 1R */
+#define MADERA_RMV_SHRT_HP1R 0x4000
+#define MADERA_RMV_SHRT_HP1R_MASK 0x4000
+#define MADERA_RMV_SHRT_HP1R_SHIFT 14
+#define MADERA_RMV_SHRT_HP1R_WIDTH 1
+#define MADERA_HP1R_FLWR 0x0004
+#define MADERA_HP1R_FLWR_MASK 0x0004
+#define MADERA_HP1R_FLWR_SHIFT 2
+#define MADERA_HP1R_FLWR_WIDTH 1
+#define MADERA_HP1R_SHRTI 0x0002
+#define MADERA_HP1R_SHRTI_MASK 0x0002
+#define MADERA_HP1R_SHRTI_SHIFT 1
+#define MADERA_HP1R_SHRTI_WIDTH 1
+#define MADERA_HP1R_SHRTO 0x0001
+#define MADERA_HP1R_SHRTO_MASK 0x0001
+#define MADERA_HP1R_SHRTO_SHIFT 0
+#define MADERA_HP1R_SHRTO_WIDTH 1
+
+/* (0x027E) - EDRE HP stereo control */
+#define MADERA_HP3_EDRE_STEREO 0x0004
+#define MADERA_HP3_EDRE_STEREO_MASK 0x0004
+#define MADERA_HP3_EDRE_STEREO_SHIFT 2
+#define MADERA_HP3_EDRE_STEREO_WIDTH 1
+#define MADERA_HP2_EDRE_STEREO 0x0002
+#define MADERA_HP2_EDRE_STEREO_MASK 0x0002
+#define MADERA_HP2_EDRE_STEREO_SHIFT 1
+#define MADERA_HP2_EDRE_STEREO_WIDTH 1
+#define MADERA_HP1_EDRE_STEREO 0x0001
+#define MADERA_HP1_EDRE_STEREO_MASK 0x0001
+#define MADERA_HP1_EDRE_STEREO_SHIFT 0
+#define MADERA_HP1_EDRE_STEREO_WIDTH 1
+
+/* (0x0293) Accessory_Detect_Mode_1 */
+#define MADERA_ACCDET_SRC 0x2000
+#define MADERA_ACCDET_SRC_MASK 0x2000
+#define MADERA_ACCDET_SRC_SHIFT 13
+#define MADERA_ACCDET_SRC_WIDTH 1
+#define MADERA_ACCDET_POLARITY_INV_ENA 0x0080
+#define MADERA_ACCDET_POLARITY_INV_ENA_MASK 0x0080
+#define MADERA_ACCDET_POLARITY_INV_ENA_SHIFT 7
+#define MADERA_ACCDET_POLARITY_INV_ENA_WIDTH 1
+#define MADERA_ACCDET_MODE_MASK 0x0007
+#define MADERA_ACCDET_MODE_SHIFT 0
+#define MADERA_ACCDET_MODE_WIDTH 3
+
+/* (0x0299) Headphone_Detect_0 */
+#define MADERA_HPD_GND_SEL 0x0007
+#define MADERA_HPD_GND_SEL_MASK 0x0007
+#define MADERA_HPD_GND_SEL_SHIFT 0
+#define MADERA_HPD_GND_SEL_WIDTH 3
+#define MADERA_HPD_SENSE_SEL 0x00F0
+#define MADERA_HPD_SENSE_SEL_MASK 0x00F0
+#define MADERA_HPD_SENSE_SEL_SHIFT 4
+#define MADERA_HPD_SENSE_SEL_WIDTH 4
+#define MADERA_HPD_FRC_SEL 0x0F00
+#define MADERA_HPD_FRC_SEL_MASK 0x0F00
+#define MADERA_HPD_FRC_SEL_SHIFT 8
+#define MADERA_HPD_FRC_SEL_WIDTH 4
+#define MADERA_HPD_OUT_SEL 0x7000
+#define MADERA_HPD_OUT_SEL_MASK 0x7000
+#define MADERA_HPD_OUT_SEL_SHIFT 12
+#define MADERA_HPD_OUT_SEL_WIDTH 3
+#define MADERA_HPD_OVD_ENA_SEL 0x8000
+#define MADERA_HPD_OVD_ENA_SEL_MASK 0x8000
+#define MADERA_HPD_OVD_ENA_SEL_SHIFT 15
+#define MADERA_HPD_OVD_ENA_SEL_WIDTH 1
+
+/* (0x029B) Headphone_Detect_1 */
+#define MADERA_HP_IMPEDANCE_RANGE_MASK 0x0600
+#define MADERA_HP_IMPEDANCE_RANGE_SHIFT 9
+#define MADERA_HP_IMPEDANCE_RANGE_WIDTH 2
+#define MADERA_HP_STEP_SIZE 0x0100
+#define MADERA_HP_STEP_SIZE_MASK 0x0100
+#define MADERA_HP_STEP_SIZE_SHIFT 8
+#define MADERA_HP_STEP_SIZE_WIDTH 1
+#define MADERA_HP_HOLDTIME_MASK 0x00E0
+#define MADERA_HP_HOLDTIME_SHIFT 5
+#define MADERA_HP_HOLDTIME_WIDTH 3
+#define MADERA_HP_CLK_DIV_MASK 0x0018
+#define MADERA_HP_CLK_DIV_SHIFT 3
+#define MADERA_HP_CLK_DIV_WIDTH 2
+#define MADERA_HP_IDAC_STEER 0x0004
+#define MADERA_HP_IDAC_STEER_MASK 0x0004
+#define MADERA_HP_IDAC_STEER_SHIFT 2
+#define MADERA_HP_IDAC_STEER_WIDTH 1
+#define MADERA_HP_RATE_MASK 0x0006
+#define MADERA_HP_RATE_SHIFT 1
+#define MADERA_HP_RATE_WIDTH 2
+#define MADERA_HP_POLL 0x0001
+#define MADERA_HP_POLL_MASK 0x0001
+#define MADERA_HP_POLL_SHIFT 0
+#define MADERA_HP_POLL_WIDTH 1
+
+/* (0x029C) Headphone_Detect_2 */
+#define MADERA_HP_DONE_MASK 0x8000
+#define MADERA_HP_DONE_SHIFT 15
+#define MADERA_HP_DONE_WIDTH 1
+#define MADERA_HP_LVL_MASK 0x7FFF
+#define MADERA_HP_LVL_SHIFT 0
+#define MADERA_HP_LVL_WIDTH 15
+
+/* (0x029D) Headphone_Detect_3 */
+#define MADERA_HP_DACVAL_MASK 0x03FF
+#define MADERA_HP_DACVAL_SHIFT 0
+#define MADERA_HP_DACVAL_WIDTH 10
+
+/* (0x029F) - Headphone Detect 5 */
+#define MADERA_HP_DACVAL_DOWN_MASK 0x03FF
+#define MADERA_HP_DACVAL_DOWN_SHIFT 0
+#define MADERA_HP_DACVAL_DOWN_WIDTH 10
+
+/* (0x02A2) Mic_Detect_1_Control_0 */
+#define MADERA_MICD1_GND_MASK 0x0007
+#define MADERA_MICD1_GND_SHIFT 0
+#define MADERA_MICD1_GND_WIDTH 3
+#define MADERA_MICD1_SENSE_MASK 0x00F0
+#define MADERA_MICD1_SENSE_SHIFT 4
+#define MADERA_MICD1_SENSE_WIDTH 4
+#define MADERA_MICD1_ADC_MODE_MASK 0x8000
+#define MADERA_MICD1_ADC_MODE_SHIFT 15
+#define MADERA_MICD1_ADC_MODE_WIDTH 1
+
+/* (0x02A3) Mic_Detect_1_Control_1 */
+#define MADERA_MICD_BIAS_STARTTIME_MASK 0xF000
+#define MADERA_MICD_BIAS_STARTTIME_SHIFT 12
+#define MADERA_MICD_BIAS_STARTTIME_WIDTH 4
+#define MADERA_MICD_RATE_MASK 0x0F00
+#define MADERA_MICD_RATE_SHIFT 8
+#define MADERA_MICD_RATE_WIDTH 4
+#define MADERA_MICD_BIAS_SRC_MASK 0x00F0
+#define MADERA_MICD_BIAS_SRC_SHIFT 4
+#define MADERA_MICD_BIAS_SRC_WIDTH 4
+#define MADERA_MICD_DBTIME 0x0002
+#define MADERA_MICD_DBTIME_MASK 0x0002
+#define MADERA_MICD_DBTIME_SHIFT 1
+#define MADERA_MICD_DBTIME_WIDTH 1
+#define MADERA_MICD_ENA 0x0001
+#define MADERA_MICD_ENA_MASK 0x0001
+#define MADERA_MICD_ENA_SHIFT 0
+#define MADERA_MICD_ENA_WIDTH 1
+
+/* (0x02A4) Mic_Detect_1_Control_2 */
+#define MADERA_MICD_LVL_SEL_MASK 0x00FF
+#define MADERA_MICD_LVL_SEL_SHIFT 0
+#define MADERA_MICD_LVL_SEL_WIDTH 8
+
+/* (0x02A5) Mic_Detect_1_Control_3 */
+#define MADERA_MICD_LVL_0 0x0004
+#define MADERA_MICD_LVL_1 0x0008
+#define MADERA_MICD_LVL_2 0x0010
+#define MADERA_MICD_LVL_3 0x0020
+#define MADERA_MICD_LVL_4 0x0040
+#define MADERA_MICD_LVL_5 0x0080
+#define MADERA_MICD_LVL_6 0x0100
+#define MADERA_MICD_LVL_7 0x0200
+#define MADERA_MICD_LVL_8 0x0400
+#define MADERA_MICD_LVL_MASK 0x07FC
+#define MADERA_MICD_LVL_SHIFT 2
+#define MADERA_MICD_LVL_WIDTH 9
+#define MADERA_MICD_VALID 0x0002
+#define MADERA_MICD_VALID_MASK 0x0002
+#define MADERA_MICD_VALID_SHIFT 1
+#define MADERA_MICD_VALID_WIDTH 1
+#define MADERA_MICD_STS 0x0001
+#define MADERA_MICD_STS_MASK 0x0001
+#define MADERA_MICD_STS_SHIFT 0
+#define MADERA_MICD_STS_WIDTH 1
+
+/* (0x02AB) Mic_Detect_1_Control_4 */
+#define MADERA_MICDET_ADCVAL_DIFF_MASK 0xFF00
+#define MADERA_MICDET_ADCVAL_DIFF_SHIFT 8
+#define MADERA_MICDET_ADCVAL_DIFF_WIDTH 8
+#define MADERA_MICDET_ADCVAL_MASK 0x007F
+#define MADERA_MICDET_ADCVAL_SHIFT 0
+#define MADERA_MICDET_ADCVAL_WIDTH 7
+
+/* (0x02B2) Mic_Detect_2_Control_0 */
+#define MADERA_MICD2_ADC_MODE 0x8000
+#define MADERA_MICD2_ADC_MODE_MASK 0x8000
+#define MADERA_MICD2_ADC_MODE_SHIFT 15
+#define MADERA_MICD2_ADC_MODE_WIDTH 1
+#define MADERA_MICD2_SENSE_SEL 0x0070
+#define MADERA_MICD2_SENSE_SEL_MASK 0x0070
+#define MADERA_MICD2_SENSE_SEL_SHIFT 4
+#define MADERA_MICD2_SENSE_SEL_WIDTH 3
+#define MADERA_MICD2_GND_SEL 0x0007
+#define MADERA_MICD2_GND_SEL_MASK 0x0007
+#define MADERA_MICD2_GND_SEL_SHIFT 0
+#define MADERA_MICD2_GND_SEL_WIDTH 3
+
+/* (0x02B3) Mic_Detect_2_Control_1 */
+#define MADERA_MICD2_BIAS_STARTTIME 0xF000
+#define MADERA_MICD2_BIAS_STARTTIME_MASK 0xF000
+#define MADERA_MICD2_BIAS_STARTTIME_SHIFT 12
+#define MADERA_MICD2_BIAS_STARTTIME_WIDTH 4
+#define MADERA_MICD2_RATE 0x0F00
+#define MADERA_MICD2_RATE_MASK 0x0F00
+#define MADERA_MICD2_RATE_SHIFT 8
+#define MADERA_MICD2_RATE_WIDTH 4
+#define MADERA_MICD2_BIAS_SRC 0x00F0
+#define MADERA_MICD2_BIAS_SRC_MASK 0x00F0
+#define MADERA_MICD2_BIAS_SRC_SHIFT 4
+#define MADERA_MICD2_BIAS_SRC_WIDTH 4
+#define MADERA_MICD2_DBTIME 0x0002
+#define MADERA_MICD2_DBTIME_MASK 0x0002
+#define MADERA_MICD2_DBTIME_SHIFT 1
+#define MADERA_MICD2_DBTIME_WIDTH 1
+#define MADERA_MICD2_ENA 0x0001
+#define MADERA_MICD2_ENA_MASK 0x0001
+#define MADERA_MICD2_ENA_SHIFT 0
+#define MADERA_MICD2_ENA_WIDTH 1
+
+/* (0x02B4) Mic_Detect_2_Control_2 */
+#define MADERA_MICD2_LVL_SEL_MASK 0x00FF
+#define MADERA_MICD2_LVL_SEL_SHIFT 0
+#define MADERA_MICD2_LVL_SEL_WIDTH 8
+
+/* (0x02B5) Mic_Detect_2_Control_3 */
+#define MADERA_MICD2_LVL 0x07FC
+#define MADERA_MICD2_LVL_MASK 0x07FC
+#define MADERA_MICD2_LVL_SHIFT 2
+#define MADERA_MICD2_LVL_WIDTH 9
+#define MADERA_MICD2_VALID 0x0002
+#define MADERA_MICD2_VALID_MASK 0x0002
+#define MADERA_MICD2_VALID_SHIFT 1
+#define MADERA_MICD2_VALID_WIDTH 1
+#define MADERA_MICD2_STS 0x0001
+#define MADERA_MICD2_STS_MASK 0x0001
+#define MADERA_MICD2_STS_SHIFT 0
+#define MADERA_MICD2_STS_WIDTH 1
+
+/* (0x02BB) Mic_Detect_2_Control_4 */
+#define MADERA_MICD2_ADCVAL_DIFF 0xFF00
+#define MADERA_MICD2_ADCVAL_DIFF_MASK 0xFF00
+#define MADERA_MICD2_ADCVAL_DIFF_SHIFT 8
+#define MADERA_MICD2_ADCVAL_DIFF_WIDTH 8
+#define MADERA_MICD2_ADCVAL 0x007F
+#define MADERA_MICD2_ADCVAL_MASK 0x007F
+#define MADERA_MICD2_ADCVAL_SHIFT 0
+#define MADERA_MICD2_ADCVAL_WIDTH 7
+
+/* (0x02C6) Micd_Clamp_control */
+#define MADERA_MICD_CLAMP_OVD 0x0010
+#define MADERA_MICD_CLAMP_OVD_MASK 0x0010
+#define MADERA_MICD_CLAMP_OVD_SHIFT 4
+#define MADERA_MICD_CLAMP_OVD_WIDTH 1
+#define MADERA_MICD_CLAMP_MODE_MASK 0x000F
+#define MADERA_MICD_CLAMP_MODE_SHIFT 0
+#define MADERA_MICD_CLAMP_MODE_WIDTH 4
+
+/* (0x02C8) GP_Switch_1 */
+#define MADERA_SW2_MODE_MASK 0x000C
+#define MADERA_SW2_MODE_SHIFT 2
+#define MADERA_SW2_MODE_WIDTH 2
+#define MADERA_SW1_MODE_MASK 0x0003
+#define MADERA_SW1_MODE_SHIFT 0
+#define MADERA_SW1_MODE_WIDTH 2
+
+/* (0x02D3) Jack_detect_analogue */
+#define MADERA_JD2_ENA 0x0002
+#define MADERA_JD2_ENA_MASK 0x0002
+#define MADERA_JD2_ENA_SHIFT 1
+#define MADERA_JD2_ENA_WIDTH 1
+#define MADERA_JD1_ENA 0x0001
+#define MADERA_JD1_ENA_MASK 0x0001
+#define MADERA_JD1_ENA_SHIFT 0
+#define MADERA_JD1_ENA_WIDTH 1
+
+/* (0x0300) Input_Enables */
+#define MADERA_IN6L_ENA 0x0800
+#define MADERA_IN6L_ENA_MASK 0x0800
+#define MADERA_IN6L_ENA_SHIFT 11
+#define MADERA_IN6L_ENA_WIDTH 1
+#define MADERA_IN6R_ENA 0x0400
+#define MADERA_IN6R_ENA_MASK 0x0400
+#define MADERA_IN6R_ENA_SHIFT 10
+#define MADERA_IN6R_ENA_WIDTH 1
+#define MADERA_IN5L_ENA 0x0200
+#define MADERA_IN5L_ENA_MASK 0x0200
+#define MADERA_IN5L_ENA_SHIFT 9
+#define MADERA_IN5L_ENA_WIDTH 1
+#define MADERA_IN5R_ENA 0x0100
+#define MADERA_IN5R_ENA_MASK 0x0100
+#define MADERA_IN5R_ENA_SHIFT 8
+#define MADERA_IN5R_ENA_WIDTH 1
+#define MADERA_IN4L_ENA 0x0080
+#define MADERA_IN4L_ENA_MASK 0x0080
+#define MADERA_IN4L_ENA_SHIFT 7
+#define MADERA_IN4L_ENA_WIDTH 1
+#define MADERA_IN4R_ENA 0x0040
+#define MADERA_IN4R_ENA_MASK 0x0040
+#define MADERA_IN4R_ENA_SHIFT 6
+#define MADERA_IN4R_ENA_WIDTH 1
+#define MADERA_IN3L_ENA 0x0020
+#define MADERA_IN3L_ENA_MASK 0x0020
+#define MADERA_IN3L_ENA_SHIFT 5
+#define MADERA_IN3L_ENA_WIDTH 1
+#define MADERA_IN3R_ENA 0x0010
+#define MADERA_IN3R_ENA_MASK 0x0010
+#define MADERA_IN3R_ENA_SHIFT 4
+#define MADERA_IN3R_ENA_WIDTH 1
+#define MADERA_IN2L_ENA 0x0008
+#define MADERA_IN2L_ENA_MASK 0x0008
+#define MADERA_IN2L_ENA_SHIFT 3
+#define MADERA_IN2L_ENA_WIDTH 1
+#define MADERA_IN2R_ENA 0x0004
+#define MADERA_IN2R_ENA_MASK 0x0004
+#define MADERA_IN2R_ENA_SHIFT 2
+#define MADERA_IN2R_ENA_WIDTH 1
+#define MADERA_IN1L_ENA 0x0002
+#define MADERA_IN1L_ENA_MASK 0x0002
+#define MADERA_IN1L_ENA_SHIFT 1
+#define MADERA_IN1L_ENA_WIDTH 1
+#define MADERA_IN1R_ENA 0x0001
+#define MADERA_IN1R_ENA_MASK 0x0001
+#define MADERA_IN1R_ENA_SHIFT 0
+#define MADERA_IN1R_ENA_WIDTH 1
+
+/* (0x0308) Input_Rate */
+#define MADERA_IN_RATE_MASK 0xF800
+#define MADERA_IN_RATE_SHIFT 11
+#define MADERA_IN_RATE_WIDTH 5
+#define MADERA_IN_MODE_MASK 0x0400
+#define MADERA_IN_MODE_SHIFT 10
+#define MADERA_IN_MODE_WIDTH 1
+
+/* (0x0309) Input_Volume_Ramp */
+#define MADERA_IN_VD_RAMP_MASK 0x0070
+#define MADERA_IN_VD_RAMP_SHIFT 4
+#define MADERA_IN_VD_RAMP_WIDTH 3
+#define MADERA_IN_VI_RAMP_MASK 0x0007
+#define MADERA_IN_VI_RAMP_SHIFT 0
+#define MADERA_IN_VI_RAMP_WIDTH 3
+
+/* (0x030C) HPF_Control */
+#define MADERA_IN_HPF_CUT_MASK 0x0007
+#define MADERA_IN_HPF_CUT_SHIFT 0
+#define MADERA_IN_HPF_CUT_WIDTH 3
+
+/* (0x0310) IN1L_Control */
+#define MADERA_IN1L_HPF_MASK 0x8000
+#define MADERA_IN1L_HPF_SHIFT 15
+#define MADERA_IN1L_HPF_WIDTH 1
+#define MADERA_IN1_DMIC_SUP_MASK 0x1800
+#define MADERA_IN1_DMIC_SUP_SHIFT 11
+#define MADERA_IN1_DMIC_SUP_WIDTH 2
+#define MADERA_IN1_MODE_MASK 0x0400
+#define MADERA_IN1_MODE_SHIFT 10
+#define MADERA_IN1_MODE_WIDTH 1
+#define MADERA_IN1_SINGLE_ENDED_MASK 0x0200
+#define MADERA_IN1_SINGLE_ENDED_SHIFT 9
+#define MADERA_IN1_SINGLE_ENDED_WIDTH 1
+#define MADERA_IN1L_PGA_VOL_MASK 0x00FE
+#define MADERA_IN1L_PGA_VOL_SHIFT 1
+#define MADERA_IN1L_PGA_VOL_WIDTH 7
+
+/* (0x0311) ADC_Digital_Volume_1L */
+#define MADERA_IN1L_SRC_MASK 0x4000
+#define MADERA_IN1L_SRC_SHIFT 14
+#define MADERA_IN1L_SRC_WIDTH 1
+#define MADERA_IN1L_SRC_SE_MASK 0x2000
+#define MADERA_IN1L_SRC_SE_SHIFT 13
+#define MADERA_IN1L_SRC_SE_WIDTH 1
+#define MADERA_IN1L_LP_MODE 0x0800
+#define MADERA_IN1L_LP_MODE_MASK 0x0800
+#define MADERA_IN1L_LP_MODE_SHIFT 11
+#define MADERA_IN1L_LP_MODE_WIDTH 1
+#define MADERA_IN_VU 0x0200
+#define MADERA_IN_VU_MASK 0x0200
+#define MADERA_IN_VU_SHIFT 9
+#define MADERA_IN_VU_WIDTH 1
+#define MADERA_IN1L_MUTE 0x0100
+#define MADERA_IN1L_MUTE_MASK 0x0100
+#define MADERA_IN1L_MUTE_SHIFT 8
+#define MADERA_IN1L_MUTE_WIDTH 1
+#define MADERA_IN1L_DIG_VOL_MASK 0x00FF
+#define MADERA_IN1L_DIG_VOL_SHIFT 0
+#define MADERA_IN1L_DIG_VOL_WIDTH 8
+
+/* (0x0312) DMIC1L_Control */
+#define MADERA_IN1_DMICL_DLY_MASK 0x003F
+#define MADERA_IN1_DMICL_DLY_SHIFT 0
+#define MADERA_IN1_DMICL_DLY_WIDTH 6
+#define MADERA_IN1_OSR_MASK 0x0700
+#define MADERA_IN1_OSR_SHIFT 8
+#define MADERA_IN1_OSR_WIDTH 3
+
+/* (0x0313) IN1L_Rate_Control */
+#define MADERA_IN1L_RATE_MASK 0xF800
+#define MADERA_IN1L_RATE_SHIFT 11
+#define MADERA_IN1L_RATE_WIDTH 5
+
+/* (0x0314) IN1R_Control */
+#define MADERA_IN1R_HPF_MASK 0x8000
+#define MADERA_IN1R_HPF_SHIFT 15
+#define MADERA_IN1R_HPF_WIDTH 1
+#define MADERA_IN1R_PGA_VOL_MASK 0x00FE
+#define MADERA_IN1R_PGA_VOL_SHIFT 1
+#define MADERA_IN1R_PGA_VOL_WIDTH 7
+#define MADERA_IN1_DMICCLK_SRC_MASK 0x1800
+#define MADERA_IN1_DMICCLK_SRC_SHIFT 11
+#define MADERA_IN1_DMICCLK_SRC_WIDTH 2
+
+/* (0x0315) ADC_Digital_Volume_1R */
+#define MADERA_IN1R_SRC_MASK 0x4000
+#define MADERA_IN1R_SRC_SHIFT 14
+#define MADERA_IN1R_SRC_WIDTH 1
+#define MADERA_IN1R_SRC_SE_MASK 0x2000
+#define MADERA_IN1R_SRC_SE_SHIFT 13
+#define MADERA_IN1R_SRC_SE_WIDTH 1
+#define MADERA_IN1R_LP_MODE 0x0800
+#define MADERA_IN1R_LP_MODE_MASK 0x0800
+#define MADERA_IN1R_LP_MODE_SHIFT 11
+#define MADERA_IN1R_LP_MODE_WIDTH 1
+#define MADERA_IN_VU 0x0200
+#define MADERA_IN_VU_MASK 0x0200
+#define MADERA_IN_VU_SHIFT 9
+#define MADERA_IN_VU_WIDTH 1
+#define MADERA_IN1R_MUTE 0x0100
+#define MADERA_IN1R_MUTE_MASK 0x0100
+#define MADERA_IN1R_MUTE_SHIFT 8
+#define MADERA_IN1R_MUTE_WIDTH 1
+#define MADERA_IN1R_DIG_VOL_MASK 0x00FF
+#define MADERA_IN1R_DIG_VOL_SHIFT 0
+#define MADERA_IN1R_DIG_VOL_WIDTH 8
+
+/* (0x0316) DMIC1R_Control */
+#define MADERA_IN1_DMICR_DLY_MASK 0x003F
+#define MADERA_IN1_DMICR_DLY_SHIFT 0
+#define MADERA_IN1_DMICR_DLY_WIDTH 6
+
+/* (0x0317) IN1R_Rate_Control */
+#define MADERA_IN1R_RATE_MASK 0xF800
+#define MADERA_IN1R_RATE_SHIFT 11
+#define MADERA_IN1R_RATE_WIDTH 5
+
+/* (0x0318) IN2L_Control */
+#define MADERA_IN2L_HPF_MASK 0x8000
+#define MADERA_IN2L_HPF_SHIFT 15
+#define MADERA_IN2L_HPF_WIDTH 1
+#define MADERA_IN2_DMIC_SUP_MASK 0x1800
+#define MADERA_IN2_DMIC_SUP_SHIFT 11
+#define MADERA_IN2_DMIC_SUP_WIDTH 2
+#define MADERA_IN2_MODE_MASK 0x0400
+#define MADERA_IN2_MODE_SHIFT 10
+#define MADERA_IN2_MODE_WIDTH 1
+#define MADERA_IN2_SINGLE_ENDED_MASK 0x0200
+#define MADERA_IN2_SINGLE_ENDED_SHIFT 9
+#define MADERA_IN2_SINGLE_ENDED_WIDTH 1
+#define MADERA_IN2L_PGA_VOL_MASK 0x00FE
+#define MADERA_IN2L_PGA_VOL_SHIFT 1
+#define MADERA_IN2L_PGA_VOL_WIDTH 7
+
+/* (0x0319) ADC_Digital_Volume_2L */
+#define MADERA_IN2L_SRC_MASK 0x4000
+#define MADERA_IN2L_SRC_SHIFT 14
+#define MADERA_IN2L_SRC_WIDTH 1
+#define MADERA_IN2L_SRC_SE_MASK 0x2000
+#define MADERA_IN2L_SRC_SE_SHIFT 13
+#define MADERA_IN2L_SRC_SE_WIDTH 1
+#define MADERA_IN2L_LP_MODE 0x0800
+#define MADERA_IN2L_LP_MODE_MASK 0x0800
+#define MADERA_IN2L_LP_MODE_SHIFT 11
+#define MADERA_IN2L_LP_MODE_WIDTH 1
+#define MADERA_IN_VU 0x0200
+#define MADERA_IN_VU_MASK 0x0200
+#define MADERA_IN_VU_SHIFT 9
+#define MADERA_IN_VU_WIDTH 1
+#define MADERA_IN2L_MUTE 0x0100
+#define MADERA_IN2L_MUTE_MASK 0x0100
+#define MADERA_IN2L_MUTE_SHIFT 8
+#define MADERA_IN2L_MUTE_WIDTH 1
+#define MADERA_IN2L_DIG_VOL_MASK 0x00FF
+#define MADERA_IN2L_DIG_VOL_SHIFT 0
+#define MADERA_IN2L_DIG_VOL_WIDTH 8
+
+/* (0x031A) DMIC2L_Control */
+#define MADERA_IN2_DMICL_DLY_MASK 0x003F
+#define MADERA_IN2_DMICL_DLY_SHIFT 0
+#define MADERA_IN2_DMICL_DLY_WIDTH 6
+#define MADERA_IN2_OSR_MASK 0x0700
+#define MADERA_IN2_OSR_SHIFT 8
+#define MADERA_IN2_OSR_WIDTH 3
+
+/* (0x031B) IN2L_Rate_Control */
+#define MADERA_IN2L_RATE_MASK 0xF800
+#define MADERA_IN2L_RATE_SHIFT 11
+#define MADERA_IN2L_RATE_WIDTH 5
+
+/* (0x031C) IN2R_Control */
+#define MADERA_IN2R_HPF_MASK 0x8000
+#define MADERA_IN2R_HPF_SHIFT 15
+#define MADERA_IN2R_HPF_WIDTH 1
+#define MADERA_IN2R_PGA_VOL_MASK 0x00FE
+#define MADERA_IN2R_PGA_VOL_SHIFT 1
+#define MADERA_IN2R_PGA_VOL_WIDTH 7
+#define MADERA_IN2_DMICCLK_SRC_MASK 0x1800
+#define MADERA_IN2_DMICCLK_SRC_SHIFT 11
+#define MADERA_IN2_DMICCLK_SRC_WIDTH 2
+
+/* (0x031D) ADC_Digital_Volume_2R */
+#define MADERA_IN2R_SRC_MASK 0x4000
+#define MADERA_IN2R_SRC_SHIFT 14
+#define MADERA_IN2R_SRC_WIDTH 1
+#define MADERA_IN2R_SRC_SE_MASK 0x2000
+#define MADERA_IN2R_SRC_SE_SHIFT 13
+#define MADERA_IN2R_SRC_SE_WIDTH 1
+#define MADERA_IN2R_LP_MODE 0x0800
+#define MADERA_IN2R_LP_MODE_MASK 0x0800
+#define MADERA_IN2R_LP_MODE_SHIFT 11
+#define MADERA_IN2R_LP_MODE_WIDTH 1
+#define MADERA_IN_VU 0x0200
+#define MADERA_IN_VU_MASK 0x0200
+#define MADERA_IN_VU_SHIFT 9
+#define MADERA_IN_VU_WIDTH 1
+#define MADERA_IN2R_MUTE 0x0100
+#define MADERA_IN2R_MUTE_MASK 0x0100
+#define MADERA_IN2R_MUTE_SHIFT 8
+#define MADERA_IN2R_MUTE_WIDTH 1
+#define MADERA_IN2R_DIG_VOL_MASK 0x00FF
+#define MADERA_IN2R_DIG_VOL_SHIFT 0
+#define MADERA_IN2R_DIG_VOL_WIDTH 8
+
+/* (0x031E) DMIC2R_Control */
+#define MADERA_IN2_DMICR_DLY_MASK 0x003F
+#define MADERA_IN2_DMICR_DLY_SHIFT 0
+#define MADERA_IN2_DMICR_DLY_WIDTH 6
+
+/* (0x031F) IN2R_Rate_Control */
+#define MADERA_IN2R_RATE_MASK 0xF800
+#define MADERA_IN2R_RATE_SHIFT 11
+#define MADERA_IN2R_RATE_WIDTH 5
+
+/* (0x0320) IN3L_Control */
+#define MADERA_IN3L_HPF_MASK 0x8000
+#define MADERA_IN3L_HPF_SHIFT 15
+#define MADERA_IN3L_HPF_WIDTH 1
+#define MADERA_IN3_DMIC_SUP_MASK 0x1800
+#define MADERA_IN3_DMIC_SUP_SHIFT 11
+#define MADERA_IN3_DMIC_SUP_WIDTH 2
+#define MADERA_IN3_MODE_MASK 0x0400
+#define MADERA_IN3_MODE_SHIFT 10
+#define MADERA_IN3_MODE_WIDTH 1
+#define MADERA_IN3_SINGLE_ENDED_MASK 0x0200
+#define MADERA_IN3_SINGLE_ENDED_SHIFT 9
+#define MADERA_IN3_SINGLE_ENDED_WIDTH 1
+#define MADERA_IN3L_PGA_VOL_MASK 0x00FE
+#define MADERA_IN3L_PGA_VOL_SHIFT 1
+#define MADERA_IN3L_PGA_VOL_WIDTH 7
+
+/* (0x0321) ADC_Digital_Volume_3L */
+#define MADERA_IN_VU 0x0200
+#define MADERA_IN_VU_MASK 0x0200
+#define MADERA_IN_VU_SHIFT 9
+#define MADERA_IN_VU_WIDTH 1
+#define MADERA_IN3L_MUTE 0x0100
+#define MADERA_IN3L_MUTE_MASK 0x0100
+#define MADERA_IN3L_MUTE_SHIFT 8
+#define MADERA_IN3L_MUTE_WIDTH 1
+#define MADERA_IN3L_DIG_VOL_MASK 0x00FF
+#define MADERA_IN3L_DIG_VOL_SHIFT 0
+#define MADERA_IN3L_DIG_VOL_WIDTH 8
+
+/* (0x0322) DMIC3L_Control */
+#define MADERA_IN3_DMICL_DLY_MASK 0x003F
+#define MADERA_IN3_DMICL_DLY_SHIFT 0
+#define MADERA_IN3_DMICL_DLY_WIDTH 6
+#define MADERA_IN3_OSR_MASK 0x0700
+#define MADERA_IN3_OSR_SHIFT 8
+#define MADERA_IN3_OSR_WIDTH 3
+
+/* (0x0323) IN3L_Rate_Control */
+#define MADERA_IN3L_RATE_MASK 0xF800
+#define MADERA_IN3L_RATE_SHIFT 11
+#define MADERA_IN3L_RATE_WIDTH 5
+
+/* (0x0324) IN3R_Control */
+#define MADERA_IN3R_HPF_MASK 0x8000
+#define MADERA_IN3R_HPF_SHIFT 15
+#define MADERA_IN3R_HPF_WIDTH 1
+#define MADERA_IN3R_PGA_VOL_MASK 0x00FE
+#define MADERA_IN3R_PGA_VOL_SHIFT 1
+#define MADERA_IN3R_PGA_VOL_WIDTH 7
+#define MADERA_IN3_DMICCLK_SRC_MASK 0x1800
+#define MADERA_IN3_DMICCLK_SRC_SHIFT 11
+#define MADERA_IN3_DMICCLK_SRC_WIDTH 2
+
+/* (0x0325) ADC_Digital_Volume_3R */
+#define MADERA_IN_VU 0x0200
+#define MADERA_IN_VU_MASK 0x0200
+#define MADERA_IN_VU_SHIFT 9
+#define MADERA_IN_VU_WIDTH 1
+#define MADERA_IN3R_MUTE 0x0100
+#define MADERA_IN3R_MUTE_MASK 0x0100
+#define MADERA_IN3R_MUTE_SHIFT 8
+#define MADERA_IN3R_MUTE_WIDTH 1
+#define MADERA_IN3R_DIG_VOL_MASK 0x00FF
+#define MADERA_IN3R_DIG_VOL_SHIFT 0
+#define MADERA_IN3R_DIG_VOL_WIDTH 8
+
+/* (0x0326) DMIC3R_Control */
+#define MADERA_IN3_DMICR_DLY_MASK 0x003F
+#define MADERA_IN3_DMICR_DLY_SHIFT 0
+#define MADERA_IN3_DMICR_DLY_WIDTH 6
+
+/* (0x0327) IN3R_Rate_Control */
+#define MADERA_IN3R_RATE_MASK 0xF800
+#define MADERA_IN3R_RATE_SHIFT 11
+#define MADERA_IN3R_RATE_WIDTH 5
+
+/* (0x0328) IN4L_Control */
+#define MADERA_IN4L_HPF_MASK 0x8000
+#define MADERA_IN4L_HPF_SHIFT 15
+#define MADERA_IN4L_HPF_WIDTH 1
+#define MADERA_IN4_DMIC_SUP_MASK 0x1800
+#define MADERA_IN4_DMIC_SUP_SHIFT 11
+#define MADERA_IN4_DMIC_SUP_WIDTH 2
+
+/* (0x0329) ADC_Digital_Volume_4L */
+#define MADERA_IN_VU 0x0200
+#define MADERA_IN_VU_MASK 0x0200
+#define MADERA_IN_VU_SHIFT 9
+#define MADERA_IN_VU_WIDTH 1
+#define MADERA_IN4L_MUTE 0x0100
+#define MADERA_IN4L_MUTE_MASK 0x0100
+#define MADERA_IN4L_MUTE_SHIFT 8
+#define MADERA_IN4L_MUTE_WIDTH 1
+#define MADERA_IN4L_DIG_VOL_MASK 0x00FF
+#define MADERA_IN4L_DIG_VOL_SHIFT 0
+#define MADERA_IN4L_DIG_VOL_WIDTH 8
+
+/* (0x032A) DMIC4L_Control */
+#define MADERA_IN4L_DMIC_DLY_MASK 0x003F
+#define MADERA_IN4L_DMIC_DLY_SHIFT 0
+#define MADERA_IN4L_DMIC_DLY_WIDTH 6
+#define MADERA_IN4_OSR_MASK 0x0700
+#define MADERA_IN4_OSR_SHIFT 8
+#define MADERA_IN4_OSR_WIDTH 3
+
+/* (0x032B) IN4L_Rate_Control */
+#define MADERA_IN4L_RATE_MASK 0xF800
+#define MADERA_IN4L_RATE_SHIFT 11
+#define MADERA_IN4L_RATE_WIDTH 5
+
+/* (0x032C) IN4R_Control */
+#define MADERA_IN4R_HPF_MASK 0x8000
+#define MADERA_IN4R_HPF_SHIFT 15
+#define MADERA_IN4R_HPF_WIDTH 1
+#define MADERA_IN4_DMICCLK_SRC_MASK 0x1800
+#define MADERA_IN4_DMICCLK_SRC_SHIFT 11
+#define MADERA_IN4_DMICCLK_SRC_WIDTH 2
+
+/* (0x032D) ADC_Digital_Volume_4R */
+#define MADERA_IN_VU 0x0200
+#define MADERA_IN_VU_MASK 0x0200
+#define MADERA_IN_VU_SHIFT 9
+#define MADERA_IN_VU_WIDTH 1
+#define MADERA_IN4R_MUTE 0x0100
+#define MADERA_IN4R_MUTE_MASK 0x0100
+#define MADERA_IN4R_MUTE_SHIFT 8
+#define MADERA_IN4R_MUTE_WIDTH 1
+#define MADERA_IN4R_DIG_VOL_MASK 0x00FF
+#define MADERA_IN4R_DIG_VOL_SHIFT 0
+#define MADERA_IN4R_DIG_VOL_WIDTH 8
+
+/* (0x032E) DMIC4R_Control */
+#define MADERA_IN4R_DMIC_DLY_MASK 0x003F
+#define MADERA_IN4R_DMIC_DLY_SHIFT 0
+#define MADERA_IN4R_DMIC_DLY_WIDTH 6
+
+/* (0x032F) IN4R_Rate_Control */
+#define MADERA_IN4R_RATE_MASK 0xF800
+#define MADERA_IN4R_RATE_SHIFT 11
+#define MADERA_IN4R_RATE_WIDTH 5
+
+/* (0x0330) IN5L_Control */
+#define MADERA_IN5L_HPF_MASK 0x8000
+#define MADERA_IN5L_HPF_SHIFT 15
+#define MADERA_IN5L_HPF_WIDTH 1
+#define MADERA_IN5_DMIC_SUP_MASK 0x1800
+#define MADERA_IN5_DMIC_SUP_SHIFT 11
+#define MADERA_IN5_DMIC_SUP_WIDTH 2
+
+/* (0x0331) ADC_Digital_Volume_5L */
+#define MADERA_IN_VU 0x0200
+#define MADERA_IN_VU_MASK 0x0200
+#define MADERA_IN_VU_SHIFT 9
+#define MADERA_IN_VU_WIDTH 1
+#define MADERA_IN5L_MUTE 0x0100
+#define MADERA_IN5L_MUTE_MASK 0x0100
+#define MADERA_IN5L_MUTE_SHIFT 8
+#define MADERA_IN5L_MUTE_WIDTH 1
+#define MADERA_IN5L_DIG_VOL_MASK 0x00FF
+#define MADERA_IN5L_DIG_VOL_SHIFT 0
+#define MADERA_IN5L_DIG_VOL_WIDTH 8
+
+/* (0x0332) DMIC5L_Control */
+#define MADERA_IN5L_DMIC_DLY_MASK 0x003F
+#define MADERA_IN5L_DMIC_DLY_SHIFT 0
+#define MADERA_IN5L_DMIC_DLY_WIDTH 6
+#define MADERA_IN5_OSR_MASK 0x0700
+#define MADERA_IN5_OSR_SHIFT 8
+#define MADERA_IN5_OSR_WIDTH 3
+
+/* (0x0333) IN5L_Rate_Control */
+#define MADERA_IN5L_RATE_MASK 0x7800
+#define MADERA_IN5L_RATE_SHIFT 11
+#define MADERA_IN5L_RATE_WIDTH 4
+
+/* (0x0334) IN5R_Control */
+#define MADERA_IN5R_HPF_MASK 0x8000
+#define MADERA_IN5R_HPF_SHIFT 15
+#define MADERA_IN5R_HPF_WIDTH 1
+#define MADERA_IN5_DMICCLK_SRC_MASK 0x1800
+#define MADERA_IN5_DMICCLK_SRC_SHIFT 11
+#define MADERA_IN5_DMICCLK_SRC_WIDTH 2
+
+/* (0x0335) ADC_Digital_Volume_5R */
+#define MADERA_IN_VU 0x0200
+#define MADERA_IN_VU_MASK 0x0200
+#define MADERA_IN_VU_SHIFT 9
+#define MADERA_IN_VU_WIDTH 1
+#define MADERA_IN5R_MUTE 0x0100
+#define MADERA_IN5R_MUTE_MASK 0x0100
+#define MADERA_IN5R_MUTE_SHIFT 8
+#define MADERA_IN5R_MUTE_WIDTH 1
+#define MADERA_IN5R_DIG_VOL_MASK 0x00FF
+#define MADERA_IN5R_DIG_VOL_SHIFT 0
+#define MADERA_IN5R_DIG_VOL_WIDTH 8
+
+/* (0x0336) DMIC5R_Control */
+#define MADERA_IN5R_DMIC_DLY_MASK 0x003F
+#define MADERA_IN5R_DMIC_DLY_SHIFT 0
+#define MADERA_IN5R_DMIC_DLY_WIDTH 6
+
+/* (0x0337) IN5R_Rate_Control */
+#define MADERA_IN5R_RATE_MASK 0x7800
+#define MADERA_IN5R_RATE_SHIFT 11
+#define MADERA_IN5R_RATE_WIDTH 4
+
+/* (0x0338) IN6L_Control */
+#define MADERA_IN6L_HPF_MASK 0x8000
+#define MADERA_IN6L_HPF_SHIFT 15
+#define MADERA_IN6L_HPF_WIDTH 1
+#define MADERA_IN6_DMIC_SUP_MASK 0x1800
+#define MADERA_IN6_DMIC_SUP_SHIFT 11
+#define MADERA_IN6_DMIC_SUP_WIDTH 2
+
+/* (0x0339) ADC_Digital_Volume_6L */
+#define MADERA_IN_VU 0x0200
+#define MADERA_IN_VU_MASK 0x0200
+#define MADERA_IN_VU_SHIFT 9
+#define MADERA_IN_VU_WIDTH 1
+#define MADERA_IN6L_MUTE 0x0100
+#define MADERA_IN6L_MUTE_MASK 0x0100
+#define MADERA_IN6L_MUTE_SHIFT 8
+#define MADERA_IN6L_MUTE_WIDTH 1
+#define MADERA_IN6L_DIG_VOL_MASK 0x00FF
+#define MADERA_IN6L_DIG_VOL_SHIFT 0
+#define MADERA_IN6L_DIG_VOL_WIDTH 8
+
+/* (0x033A) DMIC6L_Control */
+#define MADERA_IN6L_DMIC_DLY_MASK 0x003F
+#define MADERA_IN6L_DMIC_DLY_SHIFT 0
+#define MADERA_IN6L_DMIC_DLY_WIDTH 6
+#define MADERA_IN6_OSR_MASK 0x0700
+#define MADERA_IN6_OSR_SHIFT 8
+#define MADERA_IN6_OSR_WIDTH 3
+
+/* (0x033C) IN6R_Control */
+#define MADERA_IN6R_HPF_MASK 0x8000
+#define MADERA_IN6R_HPF_SHIFT 15
+#define MADERA_IN6R_HPF_WIDTH 1
+
+/* (0x033D) ADC_Digital_Volume_6R */
+#define MADERA_IN_VU 0x0200
+#define MADERA_IN_VU_MASK 0x0200
+#define MADERA_IN_VU_SHIFT 9
+#define MADERA_IN_VU_WIDTH 1
+#define MADERA_IN6R_MUTE 0x0100
+#define MADERA_IN6R_MUTE_MASK 0x0100
+#define MADERA_IN6R_MUTE_SHIFT 8
+#define MADERA_IN6R_MUTE_WIDTH 1
+#define MADERA_IN6R_DIG_VOL_MASK 0x00FF
+#define MADERA_IN6R_DIG_VOL_SHIFT 0
+#define MADERA_IN6R_DIG_VOL_WIDTH 8
+
+/* (0x033E) DMIC6R_Control */
+#define MADERA_IN6R_DMIC_DLY_MASK 0x003F
+#define MADERA_IN6R_DMIC_DLY_SHIFT 0
+#define MADERA_IN6R_DMIC_DLY_WIDTH 6
+#define MADERA_IN6_DMICCLK_SRC_MASK 0x1800
+#define MADERA_IN6_DMICCLK_SRC_SHIFT 11
+#define MADERA_IN6_DMICCLK_SRC_WIDTH 2
+
+/* (0x0400) Output_Enables_1 */
+#define MADERA_EP_SEL 0x8000
+#define MADERA_EP_SEL_MASK 0x8000
+#define MADERA_EP_SEL_SHIFT 15
+#define MADERA_EP_SEL_WIDTH 1
+#define MADERA_OUT6L_ENA 0x0800
+#define MADERA_OUT6L_ENA_MASK 0x0800
+#define MADERA_OUT6L_ENA_SHIFT 11
+#define MADERA_OUT6L_ENA_WIDTH 1
+#define MADERA_OUT6R_ENA 0x0400
+#define MADERA_OUT6R_ENA_MASK 0x0400
+#define MADERA_OUT6R_ENA_SHIFT 10
+#define MADERA_OUT6R_ENA_WIDTH 1
+#define MADERA_OUT5L_ENA 0x0200
+#define MADERA_OUT5L_ENA_MASK 0x0200
+#define MADERA_OUT5L_ENA_SHIFT 9
+#define MADERA_OUT5L_ENA_WIDTH 1
+#define MADERA_OUT5R_ENA 0x0100
+#define MADERA_OUT5R_ENA_MASK 0x0100
+#define MADERA_OUT5R_ENA_SHIFT 8
+#define MADERA_OUT5R_ENA_WIDTH 1
+#define MADERA_OUT4L_ENA 0x0080
+#define MADERA_OUT4L_ENA_MASK 0x0080
+#define MADERA_OUT4L_ENA_SHIFT 7
+#define MADERA_OUT4L_ENA_WIDTH 1
+#define MADERA_OUT4R_ENA 0x0040
+#define MADERA_OUT4R_ENA_MASK 0x0040
+#define MADERA_OUT4R_ENA_SHIFT 6
+#define MADERA_OUT4R_ENA_WIDTH 1
+#define MADERA_OUT3L_ENA 0x0020
+#define MADERA_OUT3L_ENA_MASK 0x0020
+#define MADERA_OUT3L_ENA_SHIFT 5
+#define MADERA_OUT3L_ENA_WIDTH 1
+#define MADERA_OUT3R_ENA 0x0010
+#define MADERA_OUT3R_ENA_MASK 0x0010
+#define MADERA_OUT3R_ENA_SHIFT 4
+#define MADERA_OUT3R_ENA_WIDTH 1
+#define MADERA_OUT2L_ENA 0x0008
+#define MADERA_OUT2L_ENA_MASK 0x0008
+#define MADERA_OUT2L_ENA_SHIFT 3
+#define MADERA_OUT2L_ENA_WIDTH 1
+#define MADERA_OUT2R_ENA 0x0004
+#define MADERA_OUT2R_ENA_MASK 0x0004
+#define MADERA_OUT2R_ENA_SHIFT 2
+#define MADERA_OUT2R_ENA_WIDTH 1
+#define MADERA_OUT1L_ENA 0x0002
+#define MADERA_OUT1L_ENA_MASK 0x0002
+#define MADERA_OUT1L_ENA_SHIFT 1
+#define MADERA_OUT1L_ENA_WIDTH 1
+#define MADERA_OUT1R_ENA 0x0001
+#define MADERA_OUT1R_ENA_MASK 0x0001
+#define MADERA_OUT1R_ENA_SHIFT 0
+#define MADERA_OUT1R_ENA_WIDTH 1
+
+/* (0x0401) Output_Status_1 */
+#define MADERA_OUT6L_ENA_STS 0x0800
+#define MADERA_OUT6L_ENA_STS_MASK 0x0800
+#define MADERA_OUT6L_ENA_STS_SHIFT 11
+#define MADERA_OUT6L_ENA_STS_WIDTH 1
+#define MADERA_OUT6R_ENA_STS 0x0400
+#define MADERA_OUT6R_ENA_STS_MASK 0x0400
+#define MADERA_OUT6R_ENA_STS_SHIFT 10
+#define MADERA_OUT6R_ENA_STS_WIDTH 1
+#define MADERA_OUT5L_ENA_STS 0x0200
+#define MADERA_OUT5L_ENA_STS_MASK 0x0200
+#define MADERA_OUT5L_ENA_STS_SHIFT 9
+#define MADERA_OUT5L_ENA_STS_WIDTH 1
+#define MADERA_OUT5R_ENA_STS 0x0100
+#define MADERA_OUT5R_ENA_STS_MASK 0x0100
+#define MADERA_OUT5R_ENA_STS_SHIFT 8
+#define MADERA_OUT5R_ENA_STS_WIDTH 1
+#define MADERA_OUT4L_ENA_STS 0x0080
+#define MADERA_OUT4L_ENA_STS_MASK 0x0080
+#define MADERA_OUT4L_ENA_STS_SHIFT 7
+#define MADERA_OUT4L_ENA_STS_WIDTH 1
+#define MADERA_OUT4R_ENA_STS 0x0040
+#define MADERA_OUT4R_ENA_STS_MASK 0x0040
+#define MADERA_OUT4R_ENA_STS_SHIFT 6
+#define MADERA_OUT4R_ENA_STS_WIDTH 1
+
+/* (0x0408) Output_Rate_1 */
+#define MADERA_OUT_RATE_MASK 0xF800
+#define MADERA_OUT_RATE_SHIFT 11
+#define MADERA_OUT_RATE_WIDTH 5
+#define MADERA_CP_DAC_MODE_MASK 0x0040
+#define MADERA_CP_DAC_MODE_SHIFT 6
+#define MADERA_CP_DAC_MODE_WIDTH 1
+
+/* (0x0409) Output_Volume_Ramp */
+#define MADERA_OUT_VD_RAMP_MASK 0x0070
+#define MADERA_OUT_VD_RAMP_SHIFT 4
+#define MADERA_OUT_VD_RAMP_WIDTH 3
+#define MADERA_OUT_VI_RAMP_MASK 0x0007
+#define MADERA_OUT_VI_RAMP_SHIFT 0
+#define MADERA_OUT_VI_RAMP_WIDTH 3
+
+/* (0x0410) Output_Path_Config_1L */
+#define MADERA_OUT1_LP_MODE 0x8000
+#define MADERA_OUT1_LP_MODE_MASK 0x8000
+#define MADERA_OUT1_LP_MODE_SHIFT 15
+#define MADERA_OUT1_LP_MODE_WIDTH 1
+#define MADERA_OUT1_OSR 0x2000
+#define MADERA_OUT1_OSR_MASK 0x2000
+#define MADERA_OUT1_OSR_SHIFT 13
+#define MADERA_OUT1_OSR_WIDTH 1
+#define MADERA_OUT1_MONO 0x1000
+#define MADERA_OUT1_MONO_MASK 0x1000
+#define MADERA_OUT1_MONO_SHIFT 12
+#define MADERA_OUT1_MONO_WIDTH 1
+#define MADERA_OUT1L_ANC_SRC_MASK 0x0C00
+#define MADERA_OUT1L_ANC_SRC_SHIFT 10
+#define MADERA_OUT1L_ANC_SRC_WIDTH 2
+#define MADERA_OUT1L_PGA_VOL_MASK 0x00FE
+#define MADERA_OUT1L_PGA_VOL_SHIFT 1
+#define MADERA_OUT1L_PGA_VOL_WIDTH 7
+
+/* (0x0411) DAC_Digital_Volume_1L */
+#define MADERA_OUT1L_VU 0x0200
+#define MADERA_OUT1L_VU_MASK 0x0200
+#define MADERA_OUT1L_VU_SHIFT 9
+#define MADERA_OUT1L_VU_WIDTH 1
+#define MADERA_OUT1L_MUTE 0x0100
+#define MADERA_OUT1L_MUTE_MASK 0x0100
+#define MADERA_OUT1L_MUTE_SHIFT 8
+#define MADERA_OUT1L_MUTE_WIDTH 1
+#define MADERA_OUT1L_VOL_MASK 0x00FF
+#define MADERA_OUT1L_VOL_SHIFT 0
+#define MADERA_OUT1L_VOL_WIDTH 8
+
+/* (0x0412) Output_Path_Config_1 */
+#define MADERA_HP1_GND_SEL_MASK 0x0007
+#define MADERA_HP1_GND_SEL_SHIFT 0
+#define MADERA_HP1_GND_SEL_WIDTH 3
+
+/* (0x0413) Noise_Gate_Select_1L */
+#define MADERA_OUT1L_NGATE_SRC_MASK 0x0FFF
+#define MADERA_OUT1L_NGATE_SRC_SHIFT 0
+#define MADERA_OUT1L_NGATE_SRC_WIDTH 12
+
+/* (0x0414) Output_Path_Config_1R */
+#define MADERA_OUT1R_ANC_SRC_MASK 0x0C00
+#define MADERA_OUT1R_ANC_SRC_SHIFT 10
+#define MADERA_OUT1R_ANC_SRC_WIDTH 2
+#define MADERA_OUT1R_PGA_VOL_MASK 0x00FE
+#define MADERA_OUT1R_PGA_VOL_SHIFT 1
+#define MADERA_OUT1R_PGA_VOL_WIDTH 7
+
+/* (0x0415) DAC_Digital_Volume_1R */
+#define MADERA_OUT1R_VU 0x0200
+#define MADERA_OUT1R_VU_MASK 0x0200
+#define MADERA_OUT1R_VU_SHIFT 9
+#define MADERA_OUT1R_VU_WIDTH 1
+#define MADERA_OUT1R_MUTE 0x0100
+#define MADERA_OUT1R_MUTE_MASK 0x0100
+#define MADERA_OUT1R_MUTE_SHIFT 8
+#define MADERA_OUT1R_MUTE_WIDTH 1
+#define MADERA_OUT1R_VOL_MASK 0x00FF
+#define MADERA_OUT1R_VOL_SHIFT 0
+#define MADERA_OUT1R_VOL_WIDTH 8
+
+/* (0x0417) Noise_Gate_Select_1R */
+#define MADERA_OUT1R_NGATE_SRC_MASK 0x0FFF
+#define MADERA_OUT1R_NGATE_SRC_SHIFT 0
+#define MADERA_OUT1R_NGATE_SRC_WIDTH 12
+
+/* (0x0418) Output_Path_Config_2L */
+#define MADERA_OUT2_LP_MODE 0x8000
+#define MADERA_OUT2_LP_MODE_MASK 0x8000
+#define MADERA_OUT2_LP_MODE_SHIFT 15
+#define MADERA_OUT2_LP_MODE_WIDTH 1
+#define MADERA_OUT2_OSR 0x2000
+#define MADERA_OUT2_OSR_MASK 0x2000
+#define MADERA_OUT2_OSR_SHIFT 13
+#define MADERA_OUT2_OSR_WIDTH 1
+#define MADERA_OUT2_MONO 0x1000
+#define MADERA_OUT2_MONO_MASK 0x1000
+#define MADERA_OUT2_MONO_SHIFT 12
+#define MADERA_OUT2_MONO_WIDTH 1
+#define MADERA_OUT2L_ANC_SRC_MASK 0x0C00
+#define MADERA_OUT2L_ANC_SRC_SHIFT 10
+#define MADERA_OUT2L_ANC_SRC_WIDTH 2
+#define MADERA_OUT2L_PGA_VOL_MASK 0x00FE
+#define MADERA_OUT2L_PGA_VOL_SHIFT 1
+#define MADERA_OUT2L_PGA_VOL_WIDTH 7
+
+/* (0x0419) DAC_Digital_Volume_2L */
+#define MADERA_OUT2L_VU 0x0200
+#define MADERA_OUT2L_VU_MASK 0x0200
+#define MADERA_OUT2L_VU_SHIFT 9
+#define MADERA_OUT2L_VU_WIDTH 1
+#define MADERA_OUT2L_MUTE 0x0100
+#define MADERA_OUT2L_MUTE_MASK 0x0100
+#define MADERA_OUT2L_MUTE_SHIFT 8
+#define MADERA_OUT2L_MUTE_WIDTH 1
+#define MADERA_OUT2L_VOL_MASK 0x00FF
+#define MADERA_OUT2L_VOL_SHIFT 0
+#define MADERA_OUT2L_VOL_WIDTH 8
+
+/* (0x041A) Output_Path_Config_2 */
+#define MADERA_HP2_GND_SEL_MASK 0x0007
+#define MADERA_HP2_GND_SEL_SHIFT 0
+#define MADERA_HP2_GND_SEL_WIDTH 3
+
+/* (0x041B) Noise_Gate_Select_2L */
+#define MADERA_OUT2L_NGATE_SRC_MASK 0x0FFF
+#define MADERA_OUT2L_NGATE_SRC_SHIFT 0
+#define MADERA_OUT2L_NGATE_SRC_WIDTH 12
+
+/* (0x041C) Output_Path_Config_2R */
+#define MADERA_OUT2R_ANC_SRC_MASK 0x0C00
+#define MADERA_OUT2R_ANC_SRC_SHIFT 10
+#define MADERA_OUT2R_ANC_SRC_WIDTH 2
+#define MADERA_OUT2R_PGA_VOL_MASK 0x00FE
+#define MADERA_OUT2R_PGA_VOL_SHIFT 1
+#define MADERA_OUT2R_PGA_VOL_WIDTH 7
+
+/* (0x041D) DAC_Digital_Volume_2R */
+#define MADERA_OUT2R_VU 0x0200
+#define MADERA_OUT2R_VU_MASK 0x0200
+#define MADERA_OUT2R_VU_SHIFT 9
+#define MADERA_OUT2R_VU_WIDTH 1
+#define MADERA_OUT2R_MUTE 0x0100
+#define MADERA_OUT2R_MUTE_MASK 0x0100
+#define MADERA_OUT2R_MUTE_SHIFT 8
+#define MADERA_OUT2R_MUTE_WIDTH 1
+#define MADERA_OUT2R_VOL_MASK 0x00FF
+#define MADERA_OUT2R_VOL_SHIFT 0
+#define MADERA_OUT2R_VOL_WIDTH 8
+
+/* (0x041F) Noise_Gate_Select_2R */
+#define MADERA_OUT2R_NGATE_SRC_MASK 0x0FFF
+#define MADERA_OUT2R_NGATE_SRC_SHIFT 0
+#define MADERA_OUT2R_NGATE_SRC_WIDTH 12
+
+/* (0x0420) Output_Path_Config_3L */
+#define MADERA_OUT3_LP_MODE 0x8000
+#define MADERA_OUT3_LP_MODE_MASK 0x8000
+#define MADERA_OUT3_LP_MODE_SHIFT 15
+#define MADERA_OUT3_LP_MODE_WIDTH 1
+#define MADERA_OUT3_OSR 0x2000
+#define MADERA_OUT3_OSR_MASK 0x2000
+#define MADERA_OUT3_OSR_SHIFT 13
+#define MADERA_OUT3_OSR_WIDTH 1
+#define MADERA_OUT3_MONO 0x1000
+#define MADERA_OUT3_MONO_MASK 0x1000
+#define MADERA_OUT3_MONO_SHIFT 12
+#define MADERA_OUT3_MONO_WIDTH 1
+#define MADERA_OUT3L_ANC_SRC_MASK 0x0C00
+#define MADERA_OUT3L_ANC_SRC_SHIFT 10
+#define MADERA_OUT3L_ANC_SRC_WIDTH 2
+#define MADERA_OUT3L_PGA_VOL_MASK 0x00FE
+#define MADERA_OUT3L_PGA_VOL_SHIFT 1
+#define MADERA_OUT3L_PGA_VOL_WIDTH 7
+
+/* (0x0421) DAC_Digital_Volume_3L */
+#define MADERA_OUT3L_VU 0x0200
+#define MADERA_OUT3L_VU_MASK 0x0200
+#define MADERA_OUT3L_VU_SHIFT 9
+#define MADERA_OUT3L_VU_WIDTH 1
+#define MADERA_OUT3L_MUTE 0x0100
+#define MADERA_OUT3L_MUTE_MASK 0x0100
+#define MADERA_OUT3L_MUTE_SHIFT 8
+#define MADERA_OUT3L_MUTE_WIDTH 1
+#define MADERA_OUT3L_VOL_MASK 0x00FF
+#define MADERA_OUT3L_VOL_SHIFT 0
+#define MADERA_OUT3L_VOL_WIDTH 8
+
+/* (0x0423) Noise_Gate_Select_3L */
+#define MADERA_OUT3_NGATE_SRC_MASK 0x0FFF
+#define MADERA_OUT3_NGATE_SRC_SHIFT 0
+#define MADERA_OUT3_NGATE_SRC_WIDTH 12
+
+/* (0x0424) Output_Path_Config_3R */
+#define MADERA_OUT3R_ANC_SRC_MASK 0x0C00
+#define MADERA_OUT3R_ANC_SRC_SHIFT 10
+#define MADERA_OUT3R_ANC_SRC_WIDTH 2
+#define MADERA_OUT3R_PGA_VOL_MASK 0x00FE
+#define MADERA_OUT3R_PGA_VOL_SHIFT 1
+#define MADERA_OUT3R_PGA_VOL_WIDTH 7
+
+/* (0x0425) DAC_Digital_Volume_3R */
+#define MADERA_OUT3R_VU 0x0200
+#define MADERA_OUT3R_VU_MASK 0x0200
+#define MADERA_OUT3R_VU_SHIFT 9
+#define MADERA_OUT3R_VU_WIDTH 1
+#define MADERA_OUT3R_MUTE 0x0100
+#define MADERA_OUT3R_MUTE_MASK 0x0100
+#define MADERA_OUT3R_MUTE_SHIFT 8
+#define MADERA_OUT3R_MUTE_WIDTH 1
+#define MADERA_OUT3R_VOL_MASK 0x00FF
+#define MADERA_OUT3R_VOL_SHIFT 0
+#define MADERA_OUT3R_VOL_WIDTH 8
+
+/* (0x0428) Output_Path_Config_4L */
+#define MADERA_OUT4_OSR 0x2000
+#define MADERA_OUT4_OSR_MASK 0x2000
+#define MADERA_OUT4_OSR_SHIFT 13
+#define MADERA_OUT4_OSR_WIDTH 1
+#define MADERA_OUT4L_ANC_SRC_MASK 0x0C00
+#define MADERA_OUT4L_ANC_SRC_SHIFT 10
+#define MADERA_OUT4L_ANC_SRC_WIDTH 2
+
+/* (0x0429) DAC_Digital_Volume_4L */
+#define MADERA_OUT4L_VU 0x0200
+#define MADERA_OUT4L_VU_MASK 0x0200
+#define MADERA_OUT4L_VU_SHIFT 9
+#define MADERA_OUT4L_VU_WIDTH 1
+#define MADERA_OUT4L_MUTE 0x0100
+#define MADERA_OUT4L_MUTE_MASK 0x0100
+#define MADERA_OUT4L_MUTE_SHIFT 8
+#define MADERA_OUT4L_MUTE_WIDTH 1
+#define MADERA_OUT4L_VOL_MASK 0x00FF
+#define MADERA_OUT4L_VOL_SHIFT 0
+#define MADERA_OUT4L_VOL_WIDTH 8
+
+/* (0x042B) Noise_Gate_Select_4L */
+#define MADERA_OUT4L_NGATE_SRC_MASK 0x0FFF
+#define MADERA_OUT4L_NGATE_SRC_SHIFT 0
+#define MADERA_OUT4L_NGATE_SRC_WIDTH 12
+
+/* (0x042C) Output_Path_Config_4R */
+#define MADERA_OUT4R_ANC_SRC_MASK 0x0C00
+#define MADERA_OUT4R_ANC_SRC_SHIFT 10
+#define MADERA_OUT4R_ANC_SRC_WIDTH 2
+
+/* (0x042D) DAC_Digital_Volume_4R */
+#define MADERA_OUT4R_VU 0x0200
+#define MADERA_OUT4R_VU_MASK 0x0200
+#define MADERA_OUT4R_VU_SHIFT 9
+#define MADERA_OUT4R_VU_WIDTH 1
+#define MADERA_OUT4R_MUTE 0x0100
+#define MADERA_OUT4R_MUTE_MASK 0x0100
+#define MADERA_OUT4R_MUTE_SHIFT 8
+#define MADERA_OUT4R_MUTE_WIDTH 1
+#define MADERA_OUT4R_VOL_MASK 0x00FF
+#define MADERA_OUT4R_VOL_SHIFT 0
+#define MADERA_OUT4R_VOL_WIDTH 8
+
+/* (0x042F) Noise_Gate_Select_4R */
+#define MADERA_OUT4R_NGATE_SRC_MASK 0x0FFF
+#define MADERA_OUT4R_NGATE_SRC_SHIFT 0
+#define MADERA_OUT4R_NGATE_SRC_WIDTH 12
+
+/* (0x0430) Output_Path_Config_5L */
+#define MADERA_OUT5_OSR 0x2000
+#define MADERA_OUT5_OSR_MASK 0x2000
+#define MADERA_OUT5_OSR_SHIFT 13
+#define MADERA_OUT5_OSR_WIDTH 1
+#define MADERA_OUT5L_ANC_SRC_MASK 0x0C00
+#define MADERA_OUT5L_ANC_SRC_SHIFT 10
+#define MADERA_OUT5L_ANC_SRC_WIDTH 2
+
+/* (0x0431) DAC_Digital_Volume_5L */
+#define MADERA_OUT5L_VU 0x0200
+#define MADERA_OUT5L_VU_MASK 0x0200
+#define MADERA_OUT5L_VU_SHIFT 9
+#define MADERA_OUT5L_VU_WIDTH 1
+#define MADERA_OUT5L_MUTE 0x0100
+#define MADERA_OUT5L_MUTE_MASK 0x0100
+#define MADERA_OUT5L_MUTE_SHIFT 8
+#define MADERA_OUT5L_MUTE_WIDTH 1
+#define MADERA_OUT5L_VOL_MASK 0x00FF
+#define MADERA_OUT5L_VOL_SHIFT 0
+#define MADERA_OUT5L_VOL_WIDTH 8
+
+/* (0x0433) Noise_Gate_Select_5L */
+#define MADERA_OUT5L_NGATE_SRC_MASK 0x0FFF
+#define MADERA_OUT5L_NGATE_SRC_SHIFT 0
+#define MADERA_OUT5L_NGATE_SRC_WIDTH 12
+
+/* (0x0434) Output_Path_Config_5R */
+#define MADERA_OUT5R_ANC_SRC_MASK 0x0C00
+#define MADERA_OUT5R_ANC_SRC_SHIFT 10
+#define MADERA_OUT5R_ANC_SRC_WIDTH 2
+
+/* (0x0435) DAC_Digital_Volume_5R */
+#define MADERA_OUT5R_VU 0x0200
+#define MADERA_OUT5R_VU_MASK 0x0200
+#define MADERA_OUT5R_VU_SHIFT 9
+#define MADERA_OUT5R_VU_WIDTH 1
+#define MADERA_OUT5R_MUTE 0x0100
+#define MADERA_OUT5R_MUTE_MASK 0x0100
+#define MADERA_OUT5R_MUTE_SHIFT 8
+#define MADERA_OUT5R_MUTE_WIDTH 1
+#define MADERA_OUT5R_VOL_MASK 0x00FF
+#define MADERA_OUT5R_VOL_SHIFT 0
+#define MADERA_OUT5R_VOL_WIDTH 8
+
+/* (0x0437) Noise_Gate_Select_5R */
+#define MADERA_OUT5R_NGATE_SRC_MASK 0x0FFF
+#define MADERA_OUT5R_NGATE_SRC_SHIFT 0
+#define MADERA_OUT5R_NGATE_SRC_WIDTH 12
+
+/* (0x0438) Output_Path_Config_6L */
+#define MADERA_OUT6_OSR 0x2000
+#define MADERA_OUT6_OSR_MASK 0x2000
+#define MADERA_OUT6_OSR_SHIFT 13
+#define MADERA_OUT6_OSR_WIDTH 1
+#define MADERA_OUT6L_ANC_SRC_MASK 0x0C00
+#define MADERA_OUT6L_ANC_SRC_SHIFT 10
+#define MADERA_OUT6L_ANC_SRC_WIDTH 2
+
+/* (0x0439) DAC_Digital_Volume_6L */
+#define MADERA_OUT6L_VU 0x0200
+#define MADERA_OUT6L_VU_MASK 0x0200
+#define MADERA_OUT6L_VU_SHIFT 9
+#define MADERA_OUT6L_VU_WIDTH 1
+#define MADERA_OUT6L_MUTE 0x0100
+#define MADERA_OUT6L_MUTE_MASK 0x0100
+#define MADERA_OUT6L_MUTE_SHIFT 8
+#define MADERA_OUT6L_MUTE_WIDTH 1
+#define MADERA_OUT6L_VOL_MASK 0x00FF
+#define MADERA_OUT6L_VOL_SHIFT 0
+#define MADERA_OUT6L_VOL_WIDTH 8
+
+/* (0x043B) Noise_Gate_Select_6L */
+#define MADERA_OUT6L_NGATE_SRC_MASK 0x0FFF
+#define MADERA_OUT6L_NGATE_SRC_SHIFT 0
+#define MADERA_OUT6L_NGATE_SRC_WIDTH 12
+
+/* (0x043C) Output_Path_Config_6R */
+#define MADERA_OUT6R_ANC_SRC_MASK 0x0C00
+#define MADERA_OUT6R_ANC_SRC_SHIFT 10
+#define MADERA_OUT6R_ANC_SRC_WIDTH 2
+
+/* (0x043D) DAC_Digital_Volume_6R */
+#define MADERA_OUT6R_VU 0x0200
+#define MADERA_OUT6R_VU_MASK 0x0200
+#define MADERA_OUT6R_VU_SHIFT 9
+#define MADERA_OUT6R_VU_WIDTH 1
+#define MADERA_OUT6R_MUTE 0x0100
+#define MADERA_OUT6R_MUTE_MASK 0x0100
+#define MADERA_OUT6R_MUTE_SHIFT 8
+#define MADERA_OUT6R_MUTE_WIDTH 1
+#define MADERA_OUT6R_VOL_MASK 0x00FF
+#define MADERA_OUT6R_VOL_SHIFT 0
+#define MADERA_OUT6R_VOL_WIDTH 8
+
+/* (0x043F) Noise_Gate_Select_6R */
+#define MADERA_OUT6R_NGATE_SRC_MASK 0x0FFF
+#define MADERA_OUT6R_NGATE_SRC_SHIFT 0
+#define MADERA_OUT6R_NGATE_SRC_WIDTH 12
+
+/* (0x0440) - DRE Enable */
+#define MADERA_DRE3R_ENA 0x0020
+#define MADERA_DRE3R_ENA_MASK 0x0020
+#define MADERA_DRE3R_ENA_SHIFT 5
+#define MADERA_DRE3R_ENA_WIDTH 1
+#define MADERA_DRE3L_ENA 0x0010
+#define MADERA_DRE3L_ENA_MASK 0x0010
+#define MADERA_DRE3L_ENA_SHIFT 4
+#define MADERA_DRE3L_ENA_WIDTH 1
+#define MADERA_DRE2R_ENA 0x0008
+#define MADERA_DRE2R_ENA_MASK 0x0008
+#define MADERA_DRE2R_ENA_SHIFT 3
+#define MADERA_DRE2R_ENA_WIDTH 1
+#define MADERA_DRE2L_ENA 0x0004
+#define MADERA_DRE2L_ENA_MASK 0x0004
+#define MADERA_DRE2L_ENA_SHIFT 2
+#define MADERA_DRE2L_ENA_WIDTH 1
+#define MADERA_DRE1R_ENA 0x0002
+#define MADERA_DRE1R_ENA_MASK 0x0002
+#define MADERA_DRE1R_ENA_SHIFT 1
+#define MADERA_DRE1R_ENA_WIDTH 1
+#define MADERA_DRE1L_ENA 0x0001
+#define MADERA_DRE1L_ENA_MASK 0x0001
+#define MADERA_DRE1L_ENA_SHIFT 0
+#define MADERA_DRE1L_ENA_WIDTH 1
+
+/* (0x0448) - EDRE_Enable */
+#define MADERA_EDRE_OUT4L_THR3_ENA 0x0800
+#define MADERA_EDRE_OUT4L_THR3_ENA_MASK 0x0800
+#define MADERA_EDRE_OUT4L_THR3_ENA_SHIFT 11
+#define MADERA_EDRE_OUT4L_THR3_ENA_WIDTH 1
+#define MADERA_EDRE_OUT4R_THR3_ENA 0x0400
+#define MADERA_EDRE_OUT4R_THR3_ENA_MASK 0x0400
+#define MADERA_EDRE_OUT4R_THR3_ENA_SHIFT 10
+#define MADERA_EDRE_OUT4R_THR3_ENA_WIDTH 1
+#define MADERA_EDRE_OUT4L_THR2_ENA 0x0200
+#define MADERA_EDRE_OUT4L_THR2_ENA_MASK 0x0200
+#define MADERA_EDRE_OUT4L_THR2_ENA_SHIFT 9
+#define MADERA_EDRE_OUT4L_THR2_ENA_WIDTH 1
+#define MADERA_EDRE_OUT4R_THR2_ENA 0x0100
+#define MADERA_EDRE_OUT4R_THR2_ENA_MASK 0x0100
+#define MADERA_EDRE_OUT4R_THR2_ENA_SHIFT 8
+#define MADERA_EDRE_OUT4R_THR2_ENA_WIDTH 1
+#define MADERA_EDRE_OUT4L_THR1_ENA 0x0080
+#define MADERA_EDRE_OUT4L_THR1_ENA_MASK 0x0080
+#define MADERA_EDRE_OUT4L_THR1_ENA_SHIFT 7
+#define MADERA_EDRE_OUT4L_THR1_ENA_WIDTH 1
+#define MADERA_EDRE_OUT4R_THR1_ENA 0x0040
+#define MADERA_EDRE_OUT4R_THR1_ENA_MASK 0x0040
+#define MADERA_EDRE_OUT4R_THR1_ENA_SHIFT 6
+#define MADERA_EDRE_OUT4R_THR1_ENA_WIDTH 1
+#define MADERA_EDRE_OUT3L_THR1_ENA 0x0020
+#define MADERA_EDRE_OUT3L_THR1_ENA_MASK 0x0020
+#define MADERA_EDRE_OUT3L_THR1_ENA_SHIFT 5
+#define MADERA_EDRE_OUT3L_THR1_ENA_WIDTH 1
+#define MADERA_EDRE_OUT3R_THR1_ENA 0x0010
+#define MADERA_EDRE_OUT3R_THR1_ENA_MASK 0x0010
+#define MADERA_EDRE_OUT3R_THR1_ENA_SHIFT 4
+#define MADERA_EDRE_OUT3R_THR1_ENA_WIDTH 1
+#define MADERA_EDRE_OUT2L_THR1_ENA 0x0008
+#define MADERA_EDRE_OUT2L_THR1_ENA_MASK 0x0008
+#define MADERA_EDRE_OUT2L_THR1_ENA_SHIFT 3
+#define MADERA_EDRE_OUT2L_THR1_ENA_WIDTH 1
+#define MADERA_EDRE_OUT2R_THR1_ENA 0x0004
+#define MADERA_EDRE_OUT2R_THR1_ENA_MASK 0x0004
+#define MADERA_EDRE_OUT2R_THR1_ENA_SHIFT 2
+#define MADERA_EDRE_OUT2R_THR1_ENA_WIDTH 1
+#define MADERA_EDRE_OUT1L_THR1_ENA 0x0002
+#define MADERA_EDRE_OUT1L_THR1_ENA_MASK 0x0002
+#define MADERA_EDRE_OUT1L_THR1_ENA_SHIFT 1
+#define MADERA_EDRE_OUT1L_THR1_ENA_WIDTH 1
+#define MADERA_EDRE_OUT1R_THR1_ENA 0x0001
+#define MADERA_EDRE_OUT1R_THR1_ENA_MASK 0x0001
+#define MADERA_EDRE_OUT1R_THR1_ENA_SHIFT 0
+#define MADERA_EDRE_OUT1R_THR1_ENA_WIDTH 1
+
+/* (0x044A) - EDRE_Manual */
+#define MADERA_EDRE_OUT3L_MANUAL 0x0020
+#define MADERA_EDRE_OUT3L_MANUAL_MASK 0x0020
+#define MADERA_EDRE_OUT3L_MANUAL_SHIFT 5
+#define MADERA_EDRE_OUT3L_MANUAL_WIDTH 1
+#define MADERA_EDRE_OUT3R_MANUAL 0x0010
+#define MADERA_EDRE_OUT3R_MANUAL_MASK 0x0010
+#define MADERA_EDRE_OUT3R_MANUAL_SHIFT 4
+#define MADERA_EDRE_OUT3R_MANUAL_WIDTH 1
+#define MADERA_EDRE_OUT2L_MANUAL 0x0008
+#define MADERA_EDRE_OUT2L_MANUAL_MASK 0x0008
+#define MADERA_EDRE_OUT2L_MANUAL_SHIFT 3
+#define MADERA_EDRE_OUT2L_MANUAL_WIDTH 1
+#define MADERA_EDRE_OUT2R_MANUAL 0x0004
+#define MADERA_EDRE_OUT2R_MANUAL_MASK 0x0004
+#define MADERA_EDRE_OUT2R_MANUAL_SHIFT 2
+#define MADERA_EDRE_OUT2R_MANUAL_WIDTH 1
+#define MADERA_EDRE_OUT1L_MANUAL 0x0002
+#define MADERA_EDRE_OUT1L_MANUAL_MASK 0x0002
+#define MADERA_EDRE_OUT1L_MANUAL_SHIFT 1
+#define MADERA_EDRE_OUT1L_MANUAL_WIDTH 1
+#define MADERA_EDRE_OUT1R_MANUAL 0x0001
+#define MADERA_EDRE_OUT1R_MANUAL_MASK 0x0001
+#define MADERA_EDRE_OUT1R_MANUAL_SHIFT 0
+#define MADERA_EDRE_OUT1R_MANUAL_WIDTH 1
+
+/* (0x0450) - DAC AEC Control 1 */
+#define MADERA_AEC1_LOOPBACK_SRC_MASK 0x003C
+#define MADERA_AEC1_LOOPBACK_SRC_SHIFT 2
+#define MADERA_AEC1_LOOPBACK_SRC_WIDTH 4
+#define MADERA_AEC1_ENA_STS 0x0002
+#define MADERA_AEC1_ENA_STS_MASK 0x0002
+#define MADERA_AEC1_ENA_STS_SHIFT 1
+#define MADERA_AEC1_ENA_STS_WIDTH 1
+#define MADERA_AEC1_LOOPBACK_ENA 0x0001
+#define MADERA_AEC1_LOOPBACK_ENA_MASK 0x0001
+#define MADERA_AEC1_LOOPBACK_ENA_SHIFT 0
+#define MADERA_AEC1_LOOPBACK_ENA_WIDTH 1
+
+/* (0x0451) DAC_AEC_Control_2 */
+#define MADERA_AEC2_LOOPBACK_SRC_MASK 0x003C
+#define MADERA_AEC2_LOOPBACK_SRC_SHIFT 2
+#define MADERA_AEC2_LOOPBACK_SRC_WIDTH 4
+#define MADERA_AEC2_ENA_STS 0x0002
+#define MADERA_AEC2_ENA_STS_MASK 0x0002
+#define MADERA_AEC2_ENA_STS_SHIFT 1
+#define MADERA_AEC2_ENA_STS_WIDTH 1
+#define MADERA_AEC2_LOOPBACK_ENA 0x0001
+#define MADERA_AEC2_LOOPBACK_ENA_MASK 0x0001
+#define MADERA_AEC2_LOOPBACK_ENA_SHIFT 0
+#define MADERA_AEC2_LOOPBACK_ENA_WIDTH 1
+
+/* (0x0458) Noise_Gate_Control */
+#define MADERA_NGATE_HOLD_MASK 0x0030
+#define MADERA_NGATE_HOLD_SHIFT 4
+#define MADERA_NGATE_HOLD_WIDTH 2
+#define MADERA_NGATE_THR_MASK 0x000E
+#define MADERA_NGATE_THR_SHIFT 1
+#define MADERA_NGATE_THR_WIDTH 3
+#define MADERA_NGATE_ENA 0x0001
+#define MADERA_NGATE_ENA_MASK 0x0001
+#define MADERA_NGATE_ENA_SHIFT 0
+#define MADERA_NGATE_ENA_WIDTH 1
+
+/* (0x0490) PDM_SPK1_CTRL_1 */
+#define MADERA_SPK1R_MUTE 0x2000
+#define MADERA_SPK1R_MUTE_MASK 0x2000
+#define MADERA_SPK1R_MUTE_SHIFT 13
+#define MADERA_SPK1R_MUTE_WIDTH 1
+#define MADERA_SPK1L_MUTE 0x1000
+#define MADERA_SPK1L_MUTE_MASK 0x1000
+#define MADERA_SPK1L_MUTE_SHIFT 12
+#define MADERA_SPK1L_MUTE_WIDTH 1
+#define MADERA_SPK1_MUTE_ENDIAN 0x0100
+#define MADERA_SPK1_MUTE_ENDIAN_MASK 0x0100
+#define MADERA_SPK1_MUTE_ENDIAN_SHIFT 8
+#define MADERA_SPK1_MUTE_ENDIAN_WIDTH 1
+#define MADERA_SPK1_MUTE_SEQ1_MASK 0x00FF
+#define MADERA_SPK1_MUTE_SEQ1_SHIFT 0
+#define MADERA_SPK1_MUTE_SEQ1_WIDTH 8
+
+/* (0x0491) PDM_SPK1_CTRL_2 */
+#define MADERA_SPK1_FMT 0x0001
+#define MADERA_SPK1_FMT_MASK 0x0001
+#define MADERA_SPK1_FMT_SHIFT 0
+#define MADERA_SPK1_FMT_WIDTH 1
+
+/* (0x0492) PDM_SPK2_CTRL_1 */
+#define MADERA_SPK2R_MUTE 0x2000
+#define MADERA_SPK2R_MUTE_MASK 0x2000
+#define MADERA_SPK2R_MUTE_SHIFT 13
+#define MADERA_SPK2R_MUTE_WIDTH 1
+#define MADERA_SPK2L_MUTE 0x1000
+#define MADERA_SPK2L_MUTE_MASK 0x1000
+#define MADERA_SPK2L_MUTE_SHIFT 12
+#define MADERA_SPK2L_MUTE_WIDTH 1
+#define MADERA_SPK2_MUTE_ENDIAN 0x0100
+#define MADERA_SPK2_MUTE_ENDIAN_MASK 0x0100
+#define MADERA_SPK2_MUTE_ENDIAN_SHIFT 8
+#define MADERA_SPK2_MUTE_ENDIAN_WIDTH 1
+#define MADERA_SPK2_MUTE_SEQ_MASK 0x00FF
+#define MADERA_SPK2_MUTE_SEQ_SHIFT 0
+#define MADERA_SPK2_MUTE_SEQ_WIDTH 8
+
+/* (0x0493) PDM_SPK2_CTRL_2 */
+#define MADERA_SPK2_FMT 0x0001
+#define MADERA_SPK2_FMT_MASK 0x0001
+#define MADERA_SPK2_FMT_SHIFT 0
+#define MADERA_SPK2_FMT_WIDTH 1
+
+/* (0x04A0) - HP1 Short Circuit Ctrl */
+#define MADERA_HP1_SC_ENA 0x1000
+#define MADERA_HP1_SC_ENA_MASK 0x1000
+#define MADERA_HP1_SC_ENA_SHIFT 12
+#define MADERA_HP1_SC_ENA_WIDTH 1
+
+/* (0x04A1) - HP2 Short Circuit Ctrl */
+#define MADERA_HP2_SC_ENA 0x1000
+#define MADERA_HP2_SC_ENA_MASK 0x1000
+#define MADERA_HP2_SC_ENA_SHIFT 12
+#define MADERA_HP2_SC_ENA_WIDTH 1
+
+/* (0x04A2) - HP3 Short Circuit Ctrl */
+#define MADERA_HP3_SC_ENA 0x1000
+#define MADERA_HP3_SC_ENA_MASK 0x1000
+#define MADERA_HP3_SC_ENA_SHIFT 12
+#define MADERA_HP3_SC_ENA_WIDTH 1
+
+/* (0x04A4) HP Test Ctrl 1 */
+#define MADERA_HP1_TST_CAP_SEL_MASK 0x0003
+#define MADERA_HP1_TST_CAP_SEL_SHIFT 0
+#define MADERA_HP1_TST_CAP_SEL_WIDTH 2
+
+/* (0x04A8) - HP_Test_Ctrl_5 */
+#define MADERA_HP1L_TST_CINT 0x4000
+#define MADERA_HP1L_TST_CINT_MASK 0x4000
+#define MADERA_HP1L_TST_CINT_SHIFT 14
+#define MADERA_HP1L_TST_CINT_WIDTH 1
+#define MADERA_HP1L_TST_GBW 0x3000
+#define MADERA_HP1L_TST_GBW_MASK 0x3000
+#define MADERA_HP1L_TST_GBW_SHIFT 12
+#define MADERA_HP1L_TST_GBW_WIDTH 2
+#define MADERA_HP1L_TST_PGAS 0x0800
+#define MADERA_HP1L_TST_PGAS_MASK 0x0800
+#define MADERA_HP1L_TST_PGAS_SHIFT 11
+#define MADERA_HP1L_TST_PGAS_WIDTH 1
+#define MADERA_HP1L_TST_DUMP 0x0400
+#define MADERA_HP1L_TST_DUMP_MASK 0x0400
+#define MADERA_HP1L_TST_DUMP_SHIFT 10
+#define MADERA_HP1L_TST_DUMP_WIDTH 1
+#define MADERA_HP1L_TST_RST 0x0200
+#define MADERA_HP1L_TST_RST_MASK 0x0200
+#define MADERA_HP1L_TST_RST_SHIFT 9
+#define MADERA_HP1L_TST_RST_WIDTH 1
+#define MADERA_HP1L_ONEFLT 0x0100
+#define MADERA_HP1L_ONEFLT_MASK 0x0100
+#define MADERA_HP1L_ONEFLT_SHIFT 8
+#define MADERA_HP1L_ONEFLT_WIDTH 1
+#define MADERA_HP1L_TST_THDOFF 0x00C0
+#define MADERA_HP1L_TST_THDOFF_MASK 0x00C0
+#define MADERA_HP1L_TST_THDOFF_SHIFT 6
+#define MADERA_HP1L_TST_THDOFF_WIDTH 2
+#define MADERA_HP1L_CTRL_IOUT 0x0030
+#define MADERA_HP1L_CTRL_IOUT_MASK 0x0030
+#define MADERA_HP1L_CTRL_IOUT_SHIFT 4
+#define MADERA_HP1L_CTRL_IOUT_WIDTH 2
+#define MADERA_HP1L_TST_ILG 0x0008
+#define MADERA_HP1L_TST_ILG_MASK 0x0008
+#define MADERA_HP1L_TST_ILG_SHIFT 3
+#define MADERA_HP1L_TST_ILG_WIDTH 1
+#define MADERA_HP1L_TST_IBIAS 0x0003
+#define MADERA_HP1L_TST_IBIAS_MASK 0x0003
+#define MADERA_HP1L_TST_IBIAS_SHIFT 0
+#define MADERA_HP1L_TST_IBIAS_WIDTH 2
+
+/* (0x04A9) - HP_Test_Ctrl_6 */
+#define MADERA_HP1R_TST_CINT 0x4000
+#define MADERA_HP1R_TST_CINT_MASK 0x4000
+#define MADERA_HP1R_TST_CINT_SHIFT 14
+#define MADERA_HP1R_TST_CINT_WIDTH 1
+#define MADERA_HP1R_TST_GBW 0x3000
+#define MADERA_HP1R_TST_GBW_MASK 0x3000
+#define MADERA_HP1R_TST_GBW_SHIFT 12
+#define MADERA_HP1R_TST_GBW_WIDTH 2
+#define MADERA_HP1R_TST_PGAS 0x0800
+#define MADERA_HP1R_TST_PGAS_MASK 0x0800
+#define MADERA_HP1R_TST_PGAS_SHIFT 11
+#define MADERA_HP1R_TST_PGAS_WIDTH 1
+#define MADERA_HP1R_TST_DUMP 0x0400
+#define MADERA_HP1R_TST_DUMP_MASK 0x0400
+#define MADERA_HP1R_TST_DUMP_SHIFT 10
+#define MADERA_HP1R_TST_DUMP_WIDTH 1
+#define MADERA_HP1R_TST_RST 0x0200
+#define MADERA_HP1R_TST_RST_MASK 0x0200
+#define MADERA_HP1R_TST_RST_SHIFT 9
+#define MADERA_HP1R_TST_RST_WIDTH 1
+#define MADERA_HP1R_ONEFLT 0x0100
+#define MADERA_HP1R_ONEFLT_MASK 0x0100
+#define MADERA_HP1R_ONEFLT_SHIFT 8
+#define MADERA_HP1R_ONEFLT_WIDTH 1
+#define MADERA_HP1R_TST_THDOFF 0x00C0
+#define MADERA_HP1R_TST_THDOFF_MASK 0x00C0
+#define MADERA_HP1R_TST_THDOFF_SHIFT 6
+#define MADERA_HP1R_TST_THDOFF_WIDTH 2
+#define MADERA_HP1R_CTRL_IOUT 0x0030
+#define MADERA_HP1R_CTRL_IOUT_MASK 0x0030
+#define MADERA_HP1R_CTRL_IOUT_SHIFT 4
+#define MADERA_HP1R_CTRL_IOUT_WIDTH 2
+#define MADERA_HP1R_TST_ILG 0x0008
+#define MADERA_HP1R_TST_ILG_MASK 0x0008
+#define MADERA_HP1R_TST_ILG_SHIFT 3
+#define MADERA_HP1R_TST_ILG_WIDTH 1
+#define MADERA_HP1R_TST_IBIAS 0x0003
+#define MADERA_HP1R_TST_IBIAS_MASK 0x0003
+#define MADERA_HP1R_TST_IBIAS_SHIFT 0
+#define MADERA_HP1R_TST_IBIAS_WIDTH 2
+
+/* (0x0500) AIF1_BCLK_Ctrl */
+#define MADERA_AIF1_BCLK_INV 0x0080
+#define MADERA_AIF1_BCLK_INV_MASK 0x0080
+#define MADERA_AIF1_BCLK_INV_SHIFT 7
+#define MADERA_AIF1_BCLK_INV_WIDTH 1
+#define MADERA_AIF1_BCLK_FRC 0x0040
+#define MADERA_AIF1_BCLK_FRC_MASK 0x0040
+#define MADERA_AIF1_BCLK_FRC_SHIFT 6
+#define MADERA_AIF1_BCLK_FRC_WIDTH 1
+#define MADERA_AIF1_BCLK_MSTR 0x0020
+#define MADERA_AIF1_BCLK_MSTR_MASK 0x0020
+#define MADERA_AIF1_BCLK_MSTR_SHIFT 5
+#define MADERA_AIF1_BCLK_MSTR_WIDTH 1
+#define MADERA_AIF1_BCLK_FREQ_MASK 0x001F
+#define MADERA_AIF1_BCLK_FREQ_SHIFT 0
+#define MADERA_AIF1_BCLK_FREQ_WIDTH 5
+
+/* (0x0501) AIF1_Tx_Pin_Ctrl */
+#define MADERA_AIF1TX_DAT_TRI 0x0020
+#define MADERA_AIF1TX_DAT_TRI_MASK 0x0020
+#define MADERA_AIF1TX_DAT_TRI_SHIFT 5
+#define MADERA_AIF1TX_DAT_TRI_WIDTH 1
+#define MADERA_AIF1TX_LRCLK_SRC 0x0008
+#define MADERA_AIF1TX_LRCLK_SRC_MASK 0x0008
+#define MADERA_AIF1TX_LRCLK_SRC_SHIFT 3
+#define MADERA_AIF1TX_LRCLK_SRC_WIDTH 1
+#define MADERA_AIF1TX_LRCLK_INV 0x0004
+#define MADERA_AIF1TX_LRCLK_INV_MASK 0x0004
+#define MADERA_AIF1TX_LRCLK_INV_SHIFT 2
+#define MADERA_AIF1TX_LRCLK_INV_WIDTH 1
+#define MADERA_AIF1TX_LRCLK_FRC 0x0002
+#define MADERA_AIF1TX_LRCLK_FRC_MASK 0x0002
+#define MADERA_AIF1TX_LRCLK_FRC_SHIFT 1
+#define MADERA_AIF1TX_LRCLK_FRC_WIDTH 1
+#define MADERA_AIF1TX_LRCLK_MSTR 0x0001
+#define MADERA_AIF1TX_LRCLK_MSTR_MASK 0x0001
+#define MADERA_AIF1TX_LRCLK_MSTR_SHIFT 0
+#define MADERA_AIF1TX_LRCLK_MSTR_WIDTH 1
+
+/* (0x0502) AIF1_Rx_Pin_Ctrl */
+#define MADERA_AIF1RX_LRCLK_INV 0x0004
+#define MADERA_AIF1RX_LRCLK_INV_MASK 0x0004
+#define MADERA_AIF1RX_LRCLK_INV_SHIFT 2
+#define MADERA_AIF1RX_LRCLK_INV_WIDTH 1
+#define MADERA_AIF1RX_LRCLK_FRC 0x0002
+#define MADERA_AIF1RX_LRCLK_FRC_MASK 0x0002
+#define MADERA_AIF1RX_LRCLK_FRC_SHIFT 1
+#define MADERA_AIF1RX_LRCLK_FRC_WIDTH 1
+#define MADERA_AIF1RX_LRCLK_MSTR 0x0001
+#define MADERA_AIF1RX_LRCLK_MSTR_MASK 0x0001
+#define MADERA_AIF1RX_LRCLK_MSTR_SHIFT 0
+#define MADERA_AIF1RX_LRCLK_MSTR_WIDTH 1
+
+/* (0x0503) AIF1_Rate_Ctrl */
+#define MADERA_AIF1_RATE_MASK 0xF800
+#define MADERA_AIF1_RATE_SHIFT 11
+#define MADERA_AIF1_RATE_WIDTH 5
+#define MADERA_AIF1_TRI 0x0040
+#define MADERA_AIF1_TRI_MASK 0x0040
+#define MADERA_AIF1_TRI_SHIFT 6
+#define MADERA_AIF1_TRI_WIDTH 1
+
+/* (0x0504) AIF1_Format */
+#define MADERA_AIF1_FMT_MASK 0x0007
+#define MADERA_AIF1_FMT_SHIFT 0
+#define MADERA_AIF1_FMT_WIDTH 3
+
+/* (0x0506) AIF1_Rx_BCLK_Rate */
+#define MADERA_AIF1RX_BCPF_MASK 0x1FFF
+#define MADERA_AIF1RX_BCPF_SHIFT 0
+#define MADERA_AIF1RX_BCPF_WIDTH 13
+
+/* (0x0507) AIF1_Frame_Ctrl_1 */
+#define MADERA_AIF1TX_WL_MASK 0x3F00
+#define MADERA_AIF1TX_WL_SHIFT 8
+#define MADERA_AIF1TX_WL_WIDTH 6
+#define MADERA_AIF1TX_SLOT_LEN_MASK 0x00FF
+#define MADERA_AIF1TX_SLOT_LEN_SHIFT 0
+#define MADERA_AIF1TX_SLOT_LEN_WIDTH 8
+
+/* (0x0508) AIF1_Frame_Ctrl_2 */
+#define MADERA_AIF1RX_WL_MASK 0x3F00
+#define MADERA_AIF1RX_WL_SHIFT 8
+#define MADERA_AIF1RX_WL_WIDTH 6
+#define MADERA_AIF1RX_SLOT_LEN_MASK 0x00FF
+#define MADERA_AIF1RX_SLOT_LEN_SHIFT 0
+#define MADERA_AIF1RX_SLOT_LEN_WIDTH 8
+
+/* (0x0509) AIF1_Frame_Ctrl_3 */
+#define MADERA_AIF1TX1_SLOT_MASK 0x003F
+#define MADERA_AIF1TX1_SLOT_SHIFT 0
+#define MADERA_AIF1TX1_SLOT_WIDTH 6
+
+/* (0x050A) AIF1_Frame_Ctrl_4 */
+#define MADERA_AIF1TX2_SLOT_MASK 0x003F
+#define MADERA_AIF1TX2_SLOT_SHIFT 0
+#define MADERA_AIF1TX2_SLOT_WIDTH 6
+
+/* (0x050B) AIF1_Frame_Ctrl_5 */
+#define MADERA_AIF1TX3_SLOT_MASK 0x003F
+#define MADERA_AIF1TX3_SLOT_SHIFT 0
+#define MADERA_AIF1TX3_SLOT_WIDTH 6
+
+/* (0x050C) AIF1_Frame_Ctrl_6 */
+#define MADERA_AIF1TX4_SLOT_MASK 0x003F
+#define MADERA_AIF1TX4_SLOT_SHIFT 0
+#define MADERA_AIF1TX4_SLOT_WIDTH 6
+
+/* (0x050D) AIF1_Frame_Ctrl_7 */
+#define MADERA_AIF1TX5_SLOT_MASK 0x003F
+#define MADERA_AIF1TX5_SLOT_SHIFT 0
+#define MADERA_AIF1TX5_SLOT_WIDTH 6
+
+/* (0x050E) AIF1_Frame_Ctrl_8 */
+#define MADERA_AIF1TX6_SLOT_MASK 0x003F
+#define MADERA_AIF1TX6_SLOT_SHIFT 0
+#define MADERA_AIF1TX6_SLOT_WIDTH 6
+
+/* (0x050F) AIF1_Frame_Ctrl_9 */
+#define MADERA_AIF1TX7_SLOT_MASK 0x003F
+#define MADERA_AIF1TX7_SLOT_SHIFT 0
+#define MADERA_AIF1TX7_SLOT_WIDTH 6
+
+/* (0x0510) AIF1_Frame_Ctrl_10 */
+#define MADERA_AIF1TX8_SLOT_MASK 0x003F
+#define MADERA_AIF1TX8_SLOT_SHIFT 0
+#define MADERA_AIF1TX8_SLOT_WIDTH 6
+
+/* (0x0511) AIF1_Frame_Ctrl_11 */
+#define MADERA_AIF1RX1_SLOT_MASK 0x003F
+#define MADERA_AIF1RX1_SLOT_SHIFT 0
+#define MADERA_AIF1RX1_SLOT_WIDTH 6
+
+/* (0x0512) AIF1_Frame_Ctrl_12 */
+#define MADERA_AIF1RX2_SLOT_MASK 0x003F
+#define MADERA_AIF1RX2_SLOT_SHIFT 0
+#define MADERA_AIF1RX2_SLOT_WIDTH 6
+
+/* (0x0513) AIF1_Frame_Ctrl_13 */
+#define MADERA_AIF1RX3_SLOT_MASK 0x003F
+#define MADERA_AIF1RX3_SLOT_SHIFT 0
+#define MADERA_AIF1RX3_SLOT_WIDTH 6
+
+/* (0x0514) AIF1_Frame_Ctrl_14 */
+#define MADERA_AIF1RX4_SLOT_MASK 0x003F
+#define MADERA_AIF1RX4_SLOT_SHIFT 0
+#define MADERA_AIF1RX4_SLOT_WIDTH 6
+
+/* (0x0515) AIF1_Frame_Ctrl_15 */
+#define MADERA_AIF1RX5_SLOT_MASK 0x003F
+#define MADERA_AIF1RX5_SLOT_SHIFT 0
+#define MADERA_AIF1RX5_SLOT_WIDTH 6
+
+/* (0x0516) AIF1_Frame_Ctrl_16 */
+#define MADERA_AIF1RX6_SLOT_MASK 0x003F
+#define MADERA_AIF1RX6_SLOT_SHIFT 0
+#define MADERA_AIF1RX6_SLOT_WIDTH 6
+
+/* (0x0517) AIF1_Frame_Ctrl_17 */
+#define MADERA_AIF1RX7_SLOT_MASK 0x003F
+#define MADERA_AIF1RX7_SLOT_SHIFT 0
+#define MADERA_AIF1RX7_SLOT_WIDTH 6
+
+/* (0x0518) AIF1_Frame_Ctrl_18 */
+#define MADERA_AIF1RX8_SLOT_MASK 0x003F
+#define MADERA_AIF1RX8_SLOT_SHIFT 0
+#define MADERA_AIF1RX8_SLOT_WIDTH 6
+
+/* (0x0519) AIF1_Tx_Enables */
+#define MADERA_AIF1TX8_ENA 0x0080
+#define MADERA_AIF1TX8_ENA_MASK 0x0080
+#define MADERA_AIF1TX8_ENA_SHIFT 7
+#define MADERA_AIF1TX8_ENA_WIDTH 1
+#define MADERA_AIF1TX7_ENA 0x0040
+#define MADERA_AIF1TX7_ENA_MASK 0x0040
+#define MADERA_AIF1TX7_ENA_SHIFT 6
+#define MADERA_AIF1TX7_ENA_WIDTH 1
+#define MADERA_AIF1TX6_ENA 0x0020
+#define MADERA_AIF1TX6_ENA_MASK 0x0020
+#define MADERA_AIF1TX6_ENA_SHIFT 5
+#define MADERA_AIF1TX6_ENA_WIDTH 1
+#define MADERA_AIF1TX5_ENA 0x0010
+#define MADERA_AIF1TX5_ENA_MASK 0x0010
+#define MADERA_AIF1TX5_ENA_SHIFT 4
+#define MADERA_AIF1TX5_ENA_WIDTH 1
+#define MADERA_AIF1TX4_ENA 0x0008
+#define MADERA_AIF1TX4_ENA_MASK 0x0008
+#define MADERA_AIF1TX4_ENA_SHIFT 3
+#define MADERA_AIF1TX4_ENA_WIDTH 1
+#define MADERA_AIF1TX3_ENA 0x0004
+#define MADERA_AIF1TX3_ENA_MASK 0x0004
+#define MADERA_AIF1TX3_ENA_SHIFT 2
+#define MADERA_AIF1TX3_ENA_WIDTH 1
+#define MADERA_AIF1TX2_ENA 0x0002
+#define MADERA_AIF1TX2_ENA_MASK 0x0002
+#define MADERA_AIF1TX2_ENA_SHIFT 1
+#define MADERA_AIF1TX2_ENA_WIDTH 1
+#define MADERA_AIF1TX1_ENA 0x0001
+#define MADERA_AIF1TX1_ENA_MASK 0x0001
+#define MADERA_AIF1TX1_ENA_SHIFT 0
+#define MADERA_AIF1TX1_ENA_WIDTH 1
+
+/* (0x051A) AIF1_Rx_Enables */
+#define MADERA_AIF1RX8_ENA 0x0080
+#define MADERA_AIF1RX8_ENA_MASK 0x0080
+#define MADERA_AIF1RX8_ENA_SHIFT 7
+#define MADERA_AIF1RX8_ENA_WIDTH 1
+#define MADERA_AIF1RX7_ENA 0x0040
+#define MADERA_AIF1RX7_ENA_MASK 0x0040
+#define MADERA_AIF1RX7_ENA_SHIFT 6
+#define MADERA_AIF1RX7_ENA_WIDTH 1
+#define MADERA_AIF1RX6_ENA 0x0020
+#define MADERA_AIF1RX6_ENA_MASK 0x0020
+#define MADERA_AIF1RX6_ENA_SHIFT 5
+#define MADERA_AIF1RX6_ENA_WIDTH 1
+#define MADERA_AIF1RX5_ENA 0x0010
+#define MADERA_AIF1RX5_ENA_MASK 0x0010
+#define MADERA_AIF1RX5_ENA_SHIFT 4
+#define MADERA_AIF1RX5_ENA_WIDTH 1
+#define MADERA_AIF1RX4_ENA 0x0008
+#define MADERA_AIF1RX4_ENA_MASK 0x0008
+#define MADERA_AIF1RX4_ENA_SHIFT 3
+#define MADERA_AIF1RX4_ENA_WIDTH 1
+#define MADERA_AIF1RX3_ENA 0x0004
+#define MADERA_AIF1RX3_ENA_MASK 0x0004
+#define MADERA_AIF1RX3_ENA_SHIFT 2
+#define MADERA_AIF1RX3_ENA_WIDTH 1
+#define MADERA_AIF1RX2_ENA 0x0002
+#define MADERA_AIF1RX2_ENA_MASK 0x0002
+#define MADERA_AIF1RX2_ENA_SHIFT 1
+#define MADERA_AIF1RX2_ENA_WIDTH 1
+#define MADERA_AIF1RX1_ENA 0x0001
+#define MADERA_AIF1RX1_ENA_MASK 0x0001
+#define MADERA_AIF1RX1_ENA_SHIFT 0
+#define MADERA_AIF1RX1_ENA_WIDTH 1
+
+/* (0x051B) - AIF1 Force Write */
+#define MADERA_AIF1_FRC_WR 0x0001
+#define MADERA_AIF1_FRC_WR_MASK 0x0001
+#define MADERA_AIF1_FRC_WR_SHIFT 0
+#define MADERA_AIF1_FRC_WR_WIDTH 1
+
+/* (0x0540) AIF2_BCLK_Ctrl */
+#define MADERA_AIF2_BCLK_INV 0x0080
+#define MADERA_AIF2_BCLK_INV_MASK 0x0080
+#define MADERA_AIF2_BCLK_INV_SHIFT 7
+#define MADERA_AIF2_BCLK_INV_WIDTH 1
+#define MADERA_AIF2_BCLK_FRC 0x0040
+#define MADERA_AIF2_BCLK_FRC_MASK 0x0040
+#define MADERA_AIF2_BCLK_FRC_SHIFT 6
+#define MADERA_AIF2_BCLK_FRC_WIDTH 1
+#define MADERA_AIF2_BCLK_MSTR 0x0020
+#define MADERA_AIF2_BCLK_MSTR_MASK 0x0020
+#define MADERA_AIF2_BCLK_MSTR_SHIFT 5
+#define MADERA_AIF2_BCLK_MSTR_WIDTH 1
+#define MADERA_AIF2_BCLK_FREQ_MASK 0x001F
+#define MADERA_AIF2_BCLK_FREQ_SHIFT 0
+#define MADERA_AIF2_BCLK_FREQ_WIDTH 5
+
+/* (0x0541) AIF2_Tx_Pin_Ctrl */
+#define MADERA_AIF2TX_DAT_TRI 0x0020
+#define MADERA_AIF2TX_DAT_TRI_MASK 0x0020
+#define MADERA_AIF2TX_DAT_TRI_SHIFT 5
+#define MADERA_AIF2TX_DAT_TRI_WIDTH 1
+#define MADERA_AIF2TX_LRCLK_SRC 0x0008
+#define MADERA_AIF2TX_LRCLK_SRC_MASK 0x0008
+#define MADERA_AIF2TX_LRCLK_SRC_SHIFT 3
+#define MADERA_AIF2TX_LRCLK_SRC_WIDTH 1
+#define MADERA_AIF2TX_LRCLK_INV 0x0004
+#define MADERA_AIF2TX_LRCLK_INV_MASK 0x0004
+#define MADERA_AIF2TX_LRCLK_INV_SHIFT 2
+#define MADERA_AIF2TX_LRCLK_INV_WIDTH 1
+#define MADERA_AIF2TX_LRCLK_FRC 0x0002
+#define MADERA_AIF2TX_LRCLK_FRC_MASK 0x0002
+#define MADERA_AIF2TX_LRCLK_FRC_SHIFT 1
+#define MADERA_AIF2TX_LRCLK_FRC_WIDTH 1
+#define MADERA_AIF2TX_LRCLK_MSTR 0x0001
+#define MADERA_AIF2TX_LRCLK_MSTR_MASK 0x0001
+#define MADERA_AIF2TX_LRCLK_MSTR_SHIFT 0
+#define MADERA_AIF2TX_LRCLK_MSTR_WIDTH 1
+
+/* (0x0542) AIF2_Rx_Pin_Ctrl */
+#define MADERA_AIF2RX_LRCLK_INV 0x0004
+#define MADERA_AIF2RX_LRCLK_INV_MASK 0x0004
+#define MADERA_AIF2RX_LRCLK_INV_SHIFT 2
+#define MADERA_AIF2RX_LRCLK_INV_WIDTH 1
+#define MADERA_AIF2RX_LRCLK_FRC 0x0002
+#define MADERA_AIF2RX_LRCLK_FRC_MASK 0x0002
+#define MADERA_AIF2RX_LRCLK_FRC_SHIFT 1
+#define MADERA_AIF2RX_LRCLK_FRC_WIDTH 1
+#define MADERA_AIF2RX_LRCLK_MSTR 0x0001
+#define MADERA_AIF2RX_LRCLK_MSTR_MASK 0x0001
+#define MADERA_AIF2RX_LRCLK_MSTR_SHIFT 0
+#define MADERA_AIF2RX_LRCLK_MSTR_WIDTH 1
+
+/* (0x0543) AIF2_Rate_Ctrl */
+#define MADERA_AIF2_RATE_MASK 0xF800
+#define MADERA_AIF2_RATE_SHIFT 11
+#define MADERA_AIF2_RATE_WIDTH 5
+#define MADERA_AIF2_TRI 0x0040
+#define MADERA_AIF2_TRI_MASK 0x0040
+#define MADERA_AIF2_TRI_SHIFT 6
+#define MADERA_AIF2_TRI_WIDTH 1
+
+/* (0x0544) AIF2_Format */
+#define MADERA_AIF2_FMT_MASK 0x0007
+#define MADERA_AIF2_FMT_SHIFT 0
+#define MADERA_AIF2_FMT_WIDTH 3
+
+/* (0x0546) AIF2_Rx_BCLK_Rate */
+#define MADERA_AIF2RX_BCPF_MASK 0x1FFF
+#define MADERA_AIF2RX_BCPF_SHIFT 0
+#define MADERA_AIF2RX_BCPF_WIDTH 13
+
+/* (0x0547) AIF2_Frame_Ctrl_1 */
+#define MADERA_AIF2TX_WL_MASK 0x3F00
+#define MADERA_AIF2TX_WL_SHIFT 8
+#define MADERA_AIF2TX_WL_WIDTH 6
+#define MADERA_AIF2TX_SLOT_LEN_MASK 0x00FF
+#define MADERA_AIF2TX_SLOT_LEN_SHIFT 0
+#define MADERA_AIF2TX_SLOT_LEN_WIDTH 8
+
+/* (0x0548) AIF2_Frame_Ctrl_2 */
+#define MADERA_AIF2RX_WL_MASK 0x3F00
+#define MADERA_AIF2RX_WL_SHIFT 8
+#define MADERA_AIF2RX_WL_WIDTH 6
+#define MADERA_AIF2RX_SLOT_LEN_MASK 0x00FF
+#define MADERA_AIF2RX_SLOT_LEN_SHIFT 0
+#define MADERA_AIF2RX_SLOT_LEN_WIDTH 8
+
+/* (0x0549) AIF2_Frame_Ctrl_3 */
+#define MADERA_AIF2TX1_SLOT_MASK 0x003F
+#define MADERA_AIF2TX1_SLOT_SHIFT 0
+#define MADERA_AIF2TX1_SLOT_WIDTH 6
+
+/* (0x054A) AIF2_Frame_Ctrl_4 */
+#define MADERA_AIF2TX2_SLOT_MASK 0x003F
+#define MADERA_AIF2TX2_SLOT_SHIFT 0
+#define MADERA_AIF2TX2_SLOT_WIDTH 6
+
+/* (0x054B) AIF2_Frame_Ctrl_5 */
+#define MADERA_AIF2TX3_SLOT_MASK 0x003F
+#define MADERA_AIF2TX3_SLOT_SHIFT 0
+#define MADERA_AIF2TX3_SLOT_WIDTH 6
+
+/* (0x054C) AIF2_Frame_Ctrl_6 */
+#define MADERA_AIF2TX4_SLOT_MASK 0x003F
+#define MADERA_AIF2TX4_SLOT_SHIFT 0
+#define MADERA_AIF2TX4_SLOT_WIDTH 6
+
+
+/* (0x054D) AIF2_Frame_Ctrl_7 */
+#define MADERA_AIF2TX5_SLOT_MASK 0x003F
+#define MADERA_AIF2TX5_SLOT_SHIFT 0
+#define MADERA_AIF2TX5_SLOT_WIDTH 6
+
+/* (0x054E) AIF2_Frame_Ctrl_8 */
+#define MADERA_AIF2TX6_SLOT_MASK 0x003F
+#define MADERA_AIF2TX6_SLOT_SHIFT 0
+#define MADERA_AIF2TX6_SLOT_WIDTH 6
+
+/* (0x054F) AIF2_Frame_Ctrl_9 */
+#define MADERA_AIF2TX7_SLOT_MASK 0x003F
+#define MADERA_AIF2TX7_SLOT_SHIFT 0
+#define MADERA_AIF2TX7_SLOT_WIDTH 6
+/* (0x0550) AIF2_Frame_Ctrl_10 */
+#define MADERA_AIF2TX8_SLOT_MASK 0x003F
+#define MADERA_AIF2TX8_SLOT_SHIFT 0
+#define MADERA_AIF2TX8_SLOT_WIDTH 6
+
+/* (0x0551) AIF2_Frame_Ctrl_11 */
+#define MADERA_AIF2RX1_SLOT_MASK 0x003F
+#define MADERA_AIF2RX1_SLOT_SHIFT 0
+#define MADERA_AIF2RX1_SLOT_WIDTH 6
+
+/* (0x0552) AIF2_Frame_Ctrl_12 */
+#define MADERA_AIF2RX2_SLOT_MASK 0x003F
+#define MADERA_AIF2RX2_SLOT_SHIFT 0
+#define MADERA_AIF2RX2_SLOT_WIDTH 6
+
+/* (0x0553) AIF2_Frame_Ctrl_13 */
+#define MADERA_AIF2RX3_SLOT_MASK 0x003F
+#define MADERA_AIF2RX3_SLOT_SHIFT 0
+#define MADERA_AIF2RX3_SLOT_WIDTH 6
+
+/* (0x0554) AIF2_Frame_Ctrl_14 */
+#define MADERA_AIF2RX4_SLOT_MASK 0x003F
+#define MADERA_AIF2RX4_SLOT_SHIFT 0
+#define MADERA_AIF2RX4_SLOT_WIDTH 6
+
+/* (0x0555) AIF2_Frame_Ctrl_15 */
+#define MADERA_AIF2RX5_SLOT_MASK 0x003F
+#define MADERA_AIF2RX5_SLOT_SHIFT 0
+#define MADERA_AIF2RX5_SLOT_WIDTH 6
+
+/* (0x0556) AIF2_Frame_Ctrl_16 */
+#define MADERA_AIF2RX6_SLOT_MASK 0x003F
+#define MADERA_AIF2RX6_SLOT_SHIFT 0
+#define MADERA_AIF2RX6_SLOT_WIDTH 6
+
+/* (0x0557) AIF2_Frame_Ctrl_17 */
+#define MADERA_AIF2RX7_SLOT_MASK 0x003F
+#define MADERA_AIF2RX7_SLOT_SHIFT 0
+#define MADERA_AIF2RX7_SLOT_WIDTH 6
+
+/* (0x0558) AIF2_Frame_Ctrl_18 */
+#define MADERA_AIF2RX8_SLOT_MASK 0x003F
+#define MADERA_AIF2RX8_SLOT_SHIFT 0
+#define MADERA_AIF2RX8_SLOT_WIDTH 6
+
+/* (0x0559) AIF2_Tx_Enables */
+#define MADERA_AIF2TX8_ENA 0x0080
+#define MADERA_AIF2TX8_ENA_MASK 0x0080
+#define MADERA_AIF2TX8_ENA_SHIFT 7
+#define MADERA_AIF2TX8_ENA_WIDTH 1
+#define MADERA_AIF2TX7_ENA 0x0040
+#define MADERA_AIF2TX7_ENA_MASK 0x0040
+#define MADERA_AIF2TX7_ENA_SHIFT 6
+#define MADERA_AIF2TX7_ENA_WIDTH 1
+#define MADERA_AIF2TX6_ENA 0x0020
+#define MADERA_AIF2TX6_ENA_MASK 0x0020
+#define MADERA_AIF2TX6_ENA_SHIFT 5
+#define MADERA_AIF2TX6_ENA_WIDTH 1
+#define MADERA_AIF2TX5_ENA 0x0010
+#define MADERA_AIF2TX5_ENA_MASK 0x0010
+#define MADERA_AIF2TX5_ENA_SHIFT 4
+#define MADERA_AIF2TX5_ENA_WIDTH 1
+#define MADERA_AIF2TX4_ENA 0x0008
+#define MADERA_AIF2TX4_ENA_MASK 0x0008
+#define MADERA_AIF2TX4_ENA_SHIFT 3
+#define MADERA_AIF2TX4_ENA_WIDTH 1
+#define MADERA_AIF2TX3_ENA 0x0004
+#define MADERA_AIF2TX3_ENA_MASK 0x0004
+#define MADERA_AIF2TX3_ENA_SHIFT 2
+#define MADERA_AIF2TX3_ENA_WIDTH 1
+#define MADERA_AIF2TX2_ENA 0x0002
+#define MADERA_AIF2TX2_ENA_MASK 0x0002
+#define MADERA_AIF2TX2_ENA_SHIFT 1
+#define MADERA_AIF2TX2_ENA_WIDTH 1
+#define MADERA_AIF2TX1_ENA 0x0001
+#define MADERA_AIF2TX1_ENA_MASK 0x0001
+#define MADERA_AIF2TX1_ENA_SHIFT 0
+#define MADERA_AIF2TX1_ENA_WIDTH 1
+
+/* (0x055A) AIF2_Rx_Enables */
+#define MADERA_AIF2RX8_ENA 0x0080
+#define MADERA_AIF2RX8_ENA_MASK 0x0080
+#define MADERA_AIF2RX8_ENA_SHIFT 7
+#define MADERA_AIF2RX8_ENA_WIDTH 1
+#define MADERA_AIF2RX7_ENA 0x0040
+#define MADERA_AIF2RX7_ENA_MASK 0x0040
+#define MADERA_AIF2RX7_ENA_SHIFT 6
+#define MADERA_AIF2RX7_ENA_WIDTH 1
+#define MADERA_AIF2RX6_ENA 0x0020
+#define MADERA_AIF2RX6_ENA_MASK 0x0020
+#define MADERA_AIF2RX6_ENA_SHIFT 5
+#define MADERA_AIF2RX6_ENA_WIDTH 1
+#define MADERA_AIF2RX5_ENA 0x0010
+#define MADERA_AIF2RX5_ENA_MASK 0x0010
+#define MADERA_AIF2RX5_ENA_SHIFT 4
+#define MADERA_AIF2RX5_ENA_WIDTH 1
+#define MADERA_AIF2RX4_ENA 0x0008
+#define MADERA_AIF2RX4_ENA_MASK 0x0008
+#define MADERA_AIF2RX4_ENA_SHIFT 3
+#define MADERA_AIF2RX4_ENA_WIDTH 1
+#define MADERA_AIF2RX3_ENA 0x0004
+#define MADERA_AIF2RX3_ENA_MASK 0x0004
+#define MADERA_AIF2RX3_ENA_SHIFT 2
+#define MADERA_AIF2RX3_ENA_WIDTH 1
+#define MADERA_AIF2RX2_ENA 0x0002
+#define MADERA_AIF2RX2_ENA_MASK 0x0002
+#define MADERA_AIF2RX2_ENA_SHIFT 1
+#define MADERA_AIF2RX2_ENA_WIDTH 1
+#define MADERA_AIF2RX1_ENA 0x0001
+#define MADERA_AIF2RX1_ENA_MASK 0x0001
+#define MADERA_AIF2RX1_ENA_SHIFT 0
+#define MADERA_AIF2RX1_ENA_WIDTH 1
+
+/* (0x055B) - AIF2 Force Write */
+#define MADERA_AIF2_FRC_WR 0x0001
+#define MADERA_AIF2_FRC_WR_MASK 0x0001
+#define MADERA_AIF2_FRC_WR_SHIFT 0
+#define MADERA_AIF2_FRC_WR_WIDTH 1
+
+/* (0x0580) AIF3_BCLK_Ctrl */
+#define MADERA_AIF3_BCLK_INV 0x0080
+#define MADERA_AIF3_BCLK_INV_MASK 0x0080
+#define MADERA_AIF3_BCLK_INV_SHIFT 7
+#define MADERA_AIF3_BCLK_INV_WIDTH 1
+#define MADERA_AIF3_BCLK_FRC 0x0040
+#define MADERA_AIF3_BCLK_FRC_MASK 0x0040
+#define MADERA_AIF3_BCLK_FRC_SHIFT 6
+#define MADERA_AIF3_BCLK_FRC_WIDTH 1
+#define MADERA_AIF3_BCLK_MSTR 0x0020
+#define MADERA_AIF3_BCLK_MSTR_MASK 0x0020
+#define MADERA_AIF3_BCLK_MSTR_SHIFT 5
+#define MADERA_AIF3_BCLK_MSTR_WIDTH 1
+#define MADERA_AIF3_BCLK_FREQ_MASK 0x001F
+#define MADERA_AIF3_BCLK_FREQ_SHIFT 0
+#define MADERA_AIF3_BCLK_FREQ_WIDTH 5
+
+/* (0x0581) AIF3_Tx_Pin_Ctrl */
+#define MADERA_AIF3TX_DAT_TRI 0x0020
+#define MADERA_AIF3TX_DAT_TRI_MASK 0x0020
+#define MADERA_AIF3TX_DAT_TRI_SHIFT 5
+#define MADERA_AIF3TX_DAT_TRI_WIDTH 1
+#define MADERA_AIF3TX_LRCLK_SRC 0x0008
+#define MADERA_AIF3TX_LRCLK_SRC_MASK 0x0008
+#define MADERA_AIF3TX_LRCLK_SRC_SHIFT 3
+#define MADERA_AIF3TX_LRCLK_SRC_WIDTH 1
+#define MADERA_AIF3TX_LRCLK_INV 0x0004
+#define MADERA_AIF3TX_LRCLK_INV_MASK 0x0004
+#define MADERA_AIF3TX_LRCLK_INV_SHIFT 2
+#define MADERA_AIF3TX_LRCLK_INV_WIDTH 1
+#define MADERA_AIF3TX_LRCLK_FRC 0x0002
+#define MADERA_AIF3TX_LRCLK_FRC_MASK 0x0002
+#define MADERA_AIF3TX_LRCLK_FRC_SHIFT 1
+#define MADERA_AIF3TX_LRCLK_FRC_WIDTH 1
+#define MADERA_AIF3TX_LRCLK_MSTR 0x0001
+#define MADERA_AIF3TX_LRCLK_MSTR_MASK 0x0001
+#define MADERA_AIF3TX_LRCLK_MSTR_SHIFT 0
+#define MADERA_AIF3TX_LRCLK_MSTR_WIDTH 1
+
+/* (0x0582) AIF3_Rx_Pin_Ctrl */
+#define MADERA_AIF3RX_LRCLK_INV 0x0004
+#define MADERA_AIF3RX_LRCLK_INV_MASK 0x0004
+#define MADERA_AIF3RX_LRCLK_INV_SHIFT 2
+#define MADERA_AIF3RX_LRCLK_INV_WIDTH 1
+#define MADERA_AIF3RX_LRCLK_FRC 0x0002
+#define MADERA_AIF3RX_LRCLK_FRC_MASK 0x0002
+#define MADERA_AIF3RX_LRCLK_FRC_SHIFT 1
+#define MADERA_AIF3RX_LRCLK_FRC_WIDTH 1
+#define MADERA_AIF3RX_LRCLK_MSTR 0x0001
+#define MADERA_AIF3RX_LRCLK_MSTR_MASK 0x0001
+#define MADERA_AIF3RX_LRCLK_MSTR_SHIFT 0
+#define MADERA_AIF3RX_LRCLK_MSTR_WIDTH 1
+
+/* (0x0583) AIF3_Rate_Ctrl */
+#define MADERA_AIF3_RATE_MASK 0xF800
+#define MADERA_AIF3_RATE_SHIFT 11
+#define MADERA_AIF3_RATE_WIDTH 5
+#define MADERA_AIF3_TRI 0x0040
+#define MADERA_AIF3_TRI_MASK 0x0040
+#define MADERA_AIF3_TRI_SHIFT 6
+#define MADERA_AIF3_TRI_WIDTH 1
+
+/* (0x0584) AIF3_Format */
+#define MADERA_AIF3_FMT_MASK 0x0007
+#define MADERA_AIF3_FMT_SHIFT 0
+#define MADERA_AIF3_FMT_WIDTH 3
+
+/* (0x0586) AIF3_Rx_BCLK_Rate */
+#define MADERA_AIF3RX_BCPF_MASK 0x1FFF
+#define MADERA_AIF3RX_BCPF_SHIFT 0
+#define MADERA_AIF3RX_BCPF_WIDTH 13
+
+/* (0x0587) AIF3_Frame_Ctrl_1 */
+#define MADERA_AIF3TX_WL_MASK 0x3F00
+#define MADERA_AIF3TX_WL_SHIFT 8
+#define MADERA_AIF3TX_WL_WIDTH 6
+#define MADERA_AIF3TX_SLOT_LEN_MASK 0x00FF
+#define MADERA_AIF3TX_SLOT_LEN_SHIFT 0
+#define MADERA_AIF3TX_SLOT_LEN_WIDTH 8
+
+/* (0x0588) AIF3_Frame_Ctrl_2 */
+#define MADERA_AIF3RX_WL_MASK 0x3F00
+#define MADERA_AIF3RX_WL_SHIFT 8
+#define MADERA_AIF3RX_WL_WIDTH 6
+#define MADERA_AIF3RX_SLOT_LEN_MASK 0x00FF
+#define MADERA_AIF3RX_SLOT_LEN_SHIFT 0
+#define MADERA_AIF3RX_SLOT_LEN_WIDTH 8
+
+/* (0x0589) AIF3_Frame_Ctrl_3 */
+#define MADERA_AIF3TX1_SLOT_MASK 0x003F
+#define MADERA_AIF3TX1_SLOT_SHIFT 0
+#define MADERA_AIF3TX1_SLOT_WIDTH 6
+
+/* (0x058A) AIF3_Frame_Ctrl_4 */
+#define MADERA_AIF3TX2_SLOT_MASK 0x003F
+#define MADERA_AIF3TX2_SLOT_SHIFT 0
+#define MADERA_AIF3TX2_SLOT_WIDTH 6
+
+/* (0x0591) AIF3_Frame_Ctrl_11 */
+#define MADERA_AIF3RX1_SLOT_MASK 0x003F
+#define MADERA_AIF3RX1_SLOT_SHIFT 0
+#define MADERA_AIF3RX1_SLOT_WIDTH 6
+
+/* (0x0592) AIF3_Frame_Ctrl_12 */
+#define MADERA_AIF3RX2_SLOT_MASK 0x003F
+#define MADERA_AIF3RX2_SLOT_SHIFT 0
+#define MADERA_AIF3RX2_SLOT_WIDTH 6
+
+/* (0x0599) AIF3_Tx_Enables */
+#define MADERA_AIF3TX2_ENA 0x0002
+#define MADERA_AIF3TX2_ENA_MASK 0x0002
+#define MADERA_AIF3TX2_ENA_SHIFT 1
+#define MADERA_AIF3TX2_ENA_WIDTH 1
+#define MADERA_AIF3TX1_ENA 0x0001
+#define MADERA_AIF3TX1_ENA_MASK 0x0001
+#define MADERA_AIF3TX1_ENA_SHIFT 0
+#define MADERA_AIF3TX1_ENA_WIDTH 1
+
+/* (0x059A) AIF3_Rx_Enables */
+#define MADERA_AIF3RX2_ENA 0x0002
+#define MADERA_AIF3RX2_ENA_MASK 0x0002
+#define MADERA_AIF3RX2_ENA_SHIFT 1
+#define MADERA_AIF3RX2_ENA_WIDTH 1
+#define MADERA_AIF3RX1_ENA 0x0001
+#define MADERA_AIF3RX1_ENA_MASK 0x0001
+#define MADERA_AIF3RX1_ENA_SHIFT 0
+#define MADERA_AIF3RX1_ENA_WIDTH 1
+
+/* (0x059B) - AIF3 Force Write */
+#define MADERA_AIF3_FRC_WR 0x0001
+#define MADERA_AIF3_FRC_WR_MASK 0x0001
+#define MADERA_AIF3_FRC_WR_SHIFT 0
+#define MADERA_AIF3_FRC_WR_WIDTH 1
+
+/* (0x05A0) AIF4_BCLK_Ctrl */
+#define MADERA_AIF4_BCLK_INV 0x0080
+#define MADERA_AIF4_BCLK_INV_MASK 0x0080
+#define MADERA_AIF4_BCLK_INV_SHIFT 7
+#define MADERA_AIF4_BCLK_INV_WIDTH 1
+#define MADERA_AIF4_BCLK_FRC 0x0040
+#define MADERA_AIF4_BCLK_FRC_MASK 0x0040
+#define MADERA_AIF4_BCLK_FRC_SHIFT 6
+#define MADERA_AIF4_BCLK_FRC_WIDTH 1
+#define MADERA_AIF4_BCLK_MSTR 0x0020
+#define MADERA_AIF4_BCLK_MSTR_MASK 0x0020
+#define MADERA_AIF4_BCLK_MSTR_SHIFT 5
+#define MADERA_AIF4_BCLK_MSTR_WIDTH 1
+#define MADERA_AIF4_BCLK_FREQ_MASK 0x001F
+#define MADERA_AIF4_BCLK_FREQ_SHIFT 0
+#define MADERA_AIF4_BCLK_FREQ_WIDTH 5
+
+/* (0x05A1) AIF4_Tx_Pin_Ctrl */
+#define MADERA_AIF4TX_DAT_TRI 0x0020
+#define MADERA_AIF4TX_DAT_TRI_MASK 0x0020
+#define MADERA_AIF4TX_DAT_TRI_SHIFT 5
+#define MADERA_AIF4TX_DAT_TRI_WIDTH 1
+#define MADERA_AIF4TX_LRCLK_SRC 0x0008
+#define MADERA_AIF4TX_LRCLK_SRC_MASK 0x0008
+#define MADERA_AIF4TX_LRCLK_SRC_SHIFT 3
+#define MADERA_AIF4TX_LRCLK_SRC_WIDTH 1
+#define MADERA_AIF4TX_LRCLK_INV 0x0004
+#define MADERA_AIF4TX_LRCLK_INV_MASK 0x0004
+#define MADERA_AIF4TX_LRCLK_INV_SHIFT 2
+#define MADERA_AIF4TX_LRCLK_INV_WIDTH 1
+#define MADERA_AIF4TX_LRCLK_FRC 0x0002
+#define MADERA_AIF4TX_LRCLK_FRC_MASK 0x0002
+#define MADERA_AIF4TX_LRCLK_FRC_SHIFT 1
+#define MADERA_AIF4TX_LRCLK_FRC_WIDTH 1
+#define MADERA_AIF4TX_LRCLK_MSTR 0x0001
+#define MADERA_AIF4TX_LRCLK_MSTR_MASK 0x0001
+#define MADERA_AIF4TX_LRCLK_MSTR_SHIFT 0
+#define MADERA_AIF4TX_LRCLK_MSTR_WIDTH 1
+
+/* (0x05A2) AIF4_Rx_Pin_Ctrl */
+#define MADERA_AIF4RX_LRCLK_INV 0x0004
+#define MADERA_AIF4RX_LRCLK_INV_MASK 0x0004
+#define MADERA_AIF4RX_LRCLK_INV_SHIFT 2
+#define MADERA_AIF4RX_LRCLK_INV_WIDTH 1
+#define MADERA_AIF4RX_LRCLK_FRC 0x0002
+#define MADERA_AIF4RX_LRCLK_FRC_MASK 0x0002
+#define MADERA_AIF4RX_LRCLK_FRC_SHIFT 1
+#define MADERA_AIF4RX_LRCLK_FRC_WIDTH 1
+#define MADERA_AIF4RX_LRCLK_MSTR 0x0001
+#define MADERA_AIF4RX_LRCLK_MSTR_MASK 0x0001
+#define MADERA_AIF4RX_LRCLK_MSTR_SHIFT 0
+#define MADERA_AIF4RX_LRCLK_MSTR_WIDTH 1
+
+/* (0x05A3) AIF4_Rate_Ctrl */
+#define MADERA_AIF4_RATE_MASK 0x7800
+#define MADERA_AIF4_RATE_SHIFT 11
+#define MADERA_AIF4_RATE_WIDTH 4
+#define MADERA_AIF4_TRI 0x0040
+#define MADERA_AIF4_TRI_MASK 0x0040
+#define MADERA_AIF4_TRI_SHIFT 6
+#define MADERA_AIF4_TRI_WIDTH 1
+
+/* (0x05A4) AIF4_Format */
+#define MADERA_AIF4_FMT_MASK 0x0007
+#define MADERA_AIF4_FMT_SHIFT 0
+#define MADERA_AIF4_FMT_WIDTH 3
+
+/* (0x05A6) AIF4_Rx_BCLK_Rate */
+#define MADERA_AIF4RX_BCPF_MASK 0x1FFF
+#define MADERA_AIF4RX_BCPF_SHIFT 0
+#define MADERA_AIF4RX_BCPF_WIDTH 13
+
+/* (0x05A7) AIF4_Frame_Ctrl_1 */
+#define MADERA_AIF4TX_WL_MASK 0x3F00
+#define MADERA_AIF4TX_WL_SHIFT 8
+#define MADERA_AIF4TX_WL_WIDTH 6
+#define MADERA_AIF4TX_SLOT_LEN_MASK 0x00FF
+#define MADERA_AIF4TX_SLOT_LEN_SHIFT 0
+#define MADERA_AIF4TX_SLOT_LEN_WIDTH 8
+
+/* (0x05A8) AIF4_Frame_Ctrl_2 */
+#define MADERA_AIF4RX_WL_MASK 0x3F00
+#define MADERA_AIF4RX_WL_SHIFT 8
+#define MADERA_AIF4RX_WL_WIDTH 6
+#define MADERA_AIF4RX_SLOT_LEN_MASK 0x00FF
+#define MADERA_AIF4RX_SLOT_LEN_SHIFT 0
+#define MADERA_AIF4RX_SLOT_LEN_WIDTH 8
+
+/* (0x05A9) AIF4_Frame_Ctrl_3 */
+#define MADERA_AIF4TX1_SLOT_MASK 0x003F
+#define MADERA_AIF4TX1_SLOT_SHIFT 0
+#define MADERA_AIF4TX1_SLOT_WIDTH 6
+
+/* (0x05AA) AIF4_Frame_Ctrl_4 */
+#define MADERA_AIF4TX2_SLOT_MASK 0x003F
+#define MADERA_AIF4TX2_SLOT_SHIFT 0
+#define MADERA_AIF4TX2_SLOT_WIDTH 6
+
+/* (0x05B1) AIF4_Frame_Ctrl_11 */
+#define MADERA_AIF4RX1_SLOT_MASK 0x003F
+#define MADERA_AIF4RX1_SLOT_SHIFT 0
+#define MADERA_AIF4RX1_SLOT_WIDTH 6
+
+/* (0x05B2) AIF4_Frame_Ctrl_12 */
+#define MADERA_AIF4RX2_SLOT_MASK 0x003F
+#define MADERA_AIF4RX2_SLOT_SHIFT 0
+#define MADERA_AIF4RX2_SLOT_WIDTH 6
+
+/* (0x05B9) AIF4_Tx_Enables */
+#define MADERA_AIF4TX2_ENA 0x0002
+#define MADERA_AIF4TX2_ENA_MASK 0x0002
+#define MADERA_AIF4TX2_ENA_SHIFT 1
+#define MADERA_AIF4TX2_ENA_WIDTH 1
+#define MADERA_AIF4TX1_ENA 0x0001
+#define MADERA_AIF4TX1_ENA_MASK 0x0001
+#define MADERA_AIF4TX1_ENA_SHIFT 0
+#define MADERA_AIF4TX1_ENA_WIDTH 1
+
+/* (0x05BA) AIF4_Rx_Enables */
+#define MADERA_AIF4RX2_ENA 0x0002
+#define MADERA_AIF4RX2_ENA_MASK 0x0002
+#define MADERA_AIF4RX2_ENA_SHIFT 1
+#define MADERA_AIF4RX2_ENA_WIDTH 1
+#define MADERA_AIF4RX1_ENA 0x0001
+#define MADERA_AIF4RX1_ENA_MASK 0x0001
+#define MADERA_AIF4RX1_ENA_SHIFT 0
+#define MADERA_AIF4RX1_ENA_WIDTH 1
+
+/* (0x05BB) - AIF4 Force Write */
+#define MADERA_AIF4_FRC_WR 0x0001
+#define MADERA_AIF4_FRC_WR_MASK 0x0001
+#define MADERA_AIF4_FRC_WR_SHIFT 0
+#define MADERA_AIF4_FRC_WR_WIDTH 1
+
+/* (0x05C2) SPD1_TX_Control */
+#define MADERA_SPD1_VAL2 0x2000
+#define MADERA_SPD1_VAL2_MASK 0x2000
+#define MADERA_SPD1_VAL2_SHIFT 13
+#define MADERA_SPD1_VAL2_WIDTH 1
+#define MADERA_SPD1_VAL1 0x1000
+#define MADERA_SPD1_VAL1_MASK 0x1000
+#define MADERA_SPD1_VAL1_SHIFT 12
+#define MADERA_SPD1_VAL1_WIDTH 1
+#define MADERA_SPD1_RATE_MASK 0x00F0
+#define MADERA_SPD1_RATE_SHIFT 4
+#define MADERA_SPD1_RATE_WIDTH 4
+#define MADERA_SPD1_ENA 0x0001
+#define MADERA_SPD1_ENA_MASK 0x0001
+#define MADERA_SPD1_ENA_SHIFT 0
+#define MADERA_SPD1_ENA_WIDTH 1
+
+/* (0x05C3) SPD1_TX_Channel_Status_1 */
+#define MADERA_SPD1_CATCODE_MASK 0xFF00
+#define MADERA_SPD1_CATCODE_SHIFT 8
+#define MADERA_SPD1_CATCODE_WIDTH 8
+#define MADERA_SPD1_CHSTMODE_MASK 0x00C0
+#define MADERA_SPD1_CHSTMODE_SHIFT 6
+#define MADERA_SPD1_CHSTMODE_WIDTH 2
+#define MADERA_SPD1_PREEMPH_MASK 0x0038
+#define MADERA_SPD1_PREEMPH_SHIFT 3
+#define MADERA_SPD1_PREEMPH_WIDTH 3
+#define MADERA_SPD1_NOCOPY 0x0004
+#define MADERA_SPD1_NOCOPY_MASK 0x0004
+#define MADERA_SPD1_NOCOPY_SHIFT 2
+#define MADERA_SPD1_NOCOPY_WIDTH 1
+#define MADERA_SPD1_NOAUDIO 0x0002
+#define MADERA_SPD1_NOAUDIO_MASK 0x0002
+#define MADERA_SPD1_NOAUDIO_SHIFT 1
+#define MADERA_SPD1_NOAUDIO_WIDTH 1
+#define MADERA_SPD1_PRO 0x0001
+#define MADERA_SPD1_PRO_MASK 0x0001
+#define MADERA_SPD1_PRO_SHIFT 0
+#define MADERA_SPD1_PRO_WIDTH 1
+
+/* (0x05C4) SPD1_TX_Channel_Status_2 */
+#define MADERA_SPD1_FREQ_MASK 0xF000
+#define MADERA_SPD1_FREQ_SHIFT 12
+#define MADERA_SPD1_FREQ_WIDTH 4
+#define MADERA_SPD1_CHNUM2_MASK 0x0F00
+#define MADERA_SPD1_CHNUM2_SHIFT 8
+#define MADERA_SPD1_CHNUM2_WIDTH 4
+#define MADERA_SPD1_CHNUM1_MASK 0x00F0
+#define MADERA_SPD1_CHNUM1_SHIFT 4
+#define MADERA_SPD1_CHNUM1_WIDTH 4
+#define MADERA_SPD1_SRCNUM_MASK 0x000F
+#define MADERA_SPD1_SRCNUM_SHIFT 0
+#define MADERA_SPD1_SRCNUM_WIDTH 4
+
+/* (0x05C5) SPD1_TX_Channel_Status_3 */
+#define MADERA_SPD1_ORGSAMP_MASK 0x0F00
+#define MADERA_SPD1_ORGSAMP_SHIFT 8
+#define MADERA_SPD1_ORGSAMP_WIDTH 4
+#define MADERA_SPD1_TXWL_MASK 0x00E0
+#define MADERA_SPD1_TXWL_SHIFT 5
+#define MADERA_SPD1_TXWL_WIDTH 3
+#define MADERA_SPD1_MAXWL 0x0010
+#define MADERA_SPD1_MAXWL_MASK 0x0010
+#define MADERA_SPD1_MAXWL_SHIFT 4
+#define MADERA_SPD1_MAXWL_WIDTH 1
+#define MADERA_SPD1_CS31_30_MASK 0x000C
+#define MADERA_SPD1_CS31_30_SHIFT 2
+#define MADERA_SPD1_CS31_30_WIDTH 2
+#define MADERA_SPD1_CLKACU_MASK 0x0003
+#define MADERA_SPD1_CLKACU_SHIFT 2
+#define MADERA_SPD1_CLKACU_WIDTH 0
+
+/* (0x05E3) SLIMbus_Framer_Ref_Gear */
+#define MADERA_SLIMCLK_SRC 0x0010
+#define MADERA_SLIMCLK_SRC_MASK 0x0010
+#define MADERA_SLIMCLK_SRC_SHIFT 4
+#define MADERA_SLIMCLK_SRC_WIDTH 1
+#define MADERA_FRAMER_REF_GEAR_MASK 0x000F
+#define MADERA_FRAMER_REF_GEAR_SHIFT 0
+#define MADERA_FRAMER_REF_GEAR_WIDTH 4
+
+/* (0x05E5) SLIMbus_Rates_1 */
+#define MADERA_SLIMRX2_RATE_MASK 0xF800
+#define MADERA_SLIMRX2_RATE_SHIFT 11
+#define MADERA_SLIMRX2_RATE_WIDTH 5
+#define MADERA_SLIMRX1_RATE_MASK 0x00F8
+#define MADERA_SLIMRX1_RATE_SHIFT 3
+#define MADERA_SLIMRX1_RATE_WIDTH 5
+
+/* (0x05E6) SLIMbus_Rates_2 */
+#define MADERA_SLIMRX4_RATE_MASK 0xF800
+#define MADERA_SLIMRX4_RATE_SHIFT 11
+#define MADERA_SLIMRX4_RATE_WIDTH 5
+#define MADERA_SLIMRX3_RATE_MASK 0x00F8
+#define MADERA_SLIMRX3_RATE_SHIFT 3
+#define MADERA_SLIMRX3_RATE_WIDTH 5
+
+/* (0x05E7) SLIMbus_Rates_3 */
+#define MADERA_SLIMRX6_RATE_MASK 0xF800
+#define MADERA_SLIMRX6_RATE_SHIFT 11
+#define MADERA_SLIMRX6_RATE_WIDTH 5
+#define MADERA_SLIMRX5_RATE_MASK 0x00F8
+#define MADERA_SLIMRX5_RATE_SHIFT 3
+#define MADERA_SLIMRX5_RATE_WIDTH 5
+
+/* (0x05E8) SLIMbus_Rates_4 */
+#define MADERA_SLIMRX8_RATE_MASK 0xF800
+#define MADERA_SLIMRX8_RATE_SHIFT 11
+#define MADERA_SLIMRX8_RATE_WIDTH 5
+#define MADERA_SLIMRX7_RATE_MASK 0x00F8
+#define MADERA_SLIMRX7_RATE_SHIFT 3
+#define MADERA_SLIMRX7_RATE_WIDTH 5
+
+/* (0x05E9) SLIMbus_Rates_5 */
+#define MADERA_SLIMTX2_RATE_MASK 0xF800
+#define MADERA_SLIMTX2_RATE_SHIFT 11
+#define MADERA_SLIMTX2_RATE_WIDTH 5
+#define MADERA_SLIMTX1_RATE_MASK 0x00F8
+#define MADERA_SLIMTX1_RATE_SHIFT 3
+#define MADERA_SLIMTX1_RATE_WIDTH 5
+
+/* (0x05EA) SLIMbus_Rates_6 */
+#define MADERA_SLIMTX4_RATE_MASK 0xF800
+#define MADERA_SLIMTX4_RATE_SHIFT 11
+#define MADERA_SLIMTX4_RATE_WIDTH 5
+#define MADERA_SLIMTX3_RATE_MASK 0x00F8
+#define MADERA_SLIMTX3_RATE_SHIFT 3
+#define MADERA_SLIMTX3_RATE_WIDTH 5
+
+/* (0x05EB) SLIMbus_Rates_7 */
+#define MADERA_SLIMTX6_RATE_MASK 0xF800
+#define MADERA_SLIMTX6_RATE_SHIFT 11
+#define MADERA_SLIMTX6_RATE_WIDTH 5
+#define MADERA_SLIMTX5_RATE_MASK 0x00F8
+#define MADERA_SLIMTX5_RATE_SHIFT 3
+#define MADERA_SLIMTX5_RATE_WIDTH 5
+
+/* (0x05EC) SLIMbus_Rates_8 */
+#define MADERA_SLIMTX8_RATE_MASK 0xF800
+#define MADERA_SLIMTX8_RATE_SHIFT 11
+#define MADERA_SLIMTX8_RATE_WIDTH 5
+#define MADERA_SLIMTX7_RATE_MASK 0x00F8
+#define MADERA_SLIMTX7_RATE_SHIFT 3
+#define MADERA_SLIMTX7_RATE_WIDTH 5
+
+/* (0x05F5) SLIMbus_RX_Channel_Enable */
+#define MADERA_SLIMRX8_ENA 0x0080
+#define MADERA_SLIMRX8_ENA_MASK 0x0080
+#define MADERA_SLIMRX8_ENA_SHIFT 7
+#define MADERA_SLIMRX8_ENA_WIDTH 1
+#define MADERA_SLIMRX7_ENA 0x0040
+#define MADERA_SLIMRX7_ENA_MASK 0x0040
+#define MADERA_SLIMRX7_ENA_SHIFT 6
+#define MADERA_SLIMRX7_ENA_WIDTH 1
+#define MADERA_SLIMRX6_ENA 0x0020
+#define MADERA_SLIMRX6_ENA_MASK 0x0020
+#define MADERA_SLIMRX6_ENA_SHIFT 5
+#define MADERA_SLIMRX6_ENA_WIDTH 1
+#define MADERA_SLIMRX5_ENA 0x0010
+#define MADERA_SLIMRX5_ENA_MASK 0x0010
+#define MADERA_SLIMRX5_ENA_SHIFT 4
+#define MADERA_SLIMRX5_ENA_WIDTH 1
+#define MADERA_SLIMRX4_ENA 0x0008
+#define MADERA_SLIMRX4_ENA_MASK 0x0008
+#define MADERA_SLIMRX4_ENA_SHIFT 3
+#define MADERA_SLIMRX4_ENA_WIDTH 1
+#define MADERA_SLIMRX3_ENA 0x0004
+#define MADERA_SLIMRX3_ENA_MASK 0x0004
+#define MADERA_SLIMRX3_ENA_SHIFT 2
+#define MADERA_SLIMRX3_ENA_WIDTH 1
+#define MADERA_SLIMRX2_ENA 0x0002
+#define MADERA_SLIMRX2_ENA_MASK 0x0002
+#define MADERA_SLIMRX2_ENA_SHIFT 1
+#define MADERA_SLIMRX2_ENA_WIDTH 1
+#define MADERA_SLIMRX1_ENA 0x0001
+#define MADERA_SLIMRX1_ENA_MASK 0x0001
+#define MADERA_SLIMRX1_ENA_SHIFT 0
+#define MADERA_SLIMRX1_ENA_WIDTH 1
+
+/* (0x05F6) SLIMbus_TX_Channel_Enable */
+#define MADERA_SLIMTX8_ENA 0x0080
+#define MADERA_SLIMTX8_ENA_MASK 0x0080
+#define MADERA_SLIMTX8_ENA_SHIFT 7
+#define MADERA_SLIMTX8_ENA_WIDTH 1
+#define MADERA_SLIMTX7_ENA 0x0040
+#define MADERA_SLIMTX7_ENA_MASK 0x0040
+#define MADERA_SLIMTX7_ENA_SHIFT 6
+#define MADERA_SLIMTX7_ENA_WIDTH 1
+#define MADERA_SLIMTX6_ENA 0x0020
+#define MADERA_SLIMTX6_ENA_MASK 0x0020
+#define MADERA_SLIMTX6_ENA_SHIFT 5
+#define MADERA_SLIMTX6_ENA_WIDTH 1
+#define MADERA_SLIMTX5_ENA 0x0010
+#define MADERA_SLIMTX5_ENA_MASK 0x0010
+#define MADERA_SLIMTX5_ENA_SHIFT 4
+#define MADERA_SLIMTX5_ENA_WIDTH 1
+#define MADERA_SLIMTX4_ENA 0x0008
+#define MADERA_SLIMTX4_ENA_MASK 0x0008
+#define MADERA_SLIMTX4_ENA_SHIFT 3
+#define MADERA_SLIMTX4_ENA_WIDTH 1
+#define MADERA_SLIMTX3_ENA 0x0004
+#define MADERA_SLIMTX3_ENA_MASK 0x0004
+#define MADERA_SLIMTX3_ENA_SHIFT 2
+#define MADERA_SLIMTX3_ENA_WIDTH 1
+#define MADERA_SLIMTX2_ENA 0x0002
+#define MADERA_SLIMTX2_ENA_MASK 0x0002
+#define MADERA_SLIMTX2_ENA_SHIFT 1
+#define MADERA_SLIMTX2_ENA_WIDTH 1
+#define MADERA_SLIMTX1_ENA 0x0001
+#define MADERA_SLIMTX1_ENA_MASK 0x0001
+#define MADERA_SLIMTX1_ENA_SHIFT 0
+#define MADERA_SLIMTX1_ENA_WIDTH 1
+
+/* (0x05F7) SLIMbus_RX_Port_Status */
+#define MADERA_SLIMRX8_PORT_STS 0x0080
+#define MADERA_SLIMRX8_PORT_STS_MASK 0x0080
+#define MADERA_SLIMRX8_PORT_STS_SHIFT 7
+#define MADERA_SLIMRX8_PORT_STS_WIDTH 1
+#define MADERA_SLIMRX7_PORT_STS 0x0040
+#define MADERA_SLIMRX7_PORT_STS_MASK 0x0040
+#define MADERA_SLIMRX7_PORT_STS_SHIFT 6
+#define MADERA_SLIMRX7_PORT_STS_WIDTH 1
+#define MADERA_SLIMRX6_PORT_STS 0x0020
+#define MADERA_SLIMRX6_PORT_STS_MASK 0x0020
+#define MADERA_SLIMRX6_PORT_STS_SHIFT 5
+#define MADERA_SLIMRX6_PORT_STS_WIDTH 1
+#define MADERA_SLIMRX5_PORT_STS 0x0010
+#define MADERA_SLIMRX5_PORT_STS_MASK 0x0010
+#define MADERA_SLIMRX5_PORT_STS_SHIFT 4
+#define MADERA_SLIMRX5_PORT_STS_WIDTH 1
+#define MADERA_SLIMRX4_PORT_STS 0x0008
+#define MADERA_SLIMRX4_PORT_STS_MASK 0x0008
+#define MADERA_SLIMRX4_PORT_STS_SHIFT 3
+#define MADERA_SLIMRX4_PORT_STS_WIDTH 1
+#define MADERA_SLIMRX3_PORT_STS 0x0004
+#define MADERA_SLIMRX3_PORT_STS_MASK 0x0004
+#define MADERA_SLIMRX3_PORT_STS_SHIFT 2
+#define MADERA_SLIMRX3_PORT_STS_WIDTH 1
+#define MADERA_SLIMRX2_PORT_STS 0x0002
+#define MADERA_SLIMRX2_PORT_STS_MASK 0x0002
+#define MADERA_SLIMRX2_PORT_STS_SHIFT 1
+#define MADERA_SLIMRX2_PORT_STS_WIDTH 1
+#define MADERA_SLIMRX1_PORT_STS 0x0001
+#define MADERA_SLIMRX1_PORT_STS_MASK 0x0001
+#define MADERA_SLIMRX1_PORT_STS_SHIFT 0
+#define MADERA_SLIMRX1_PORT_STS_WIDTH 1
+
+/* (0x05F8) SLIMbus_TX_Port_Status */
+#define MADERA_SLIMTX8_PORT_STS 0x0080
+#define MADERA_SLIMTX8_PORT_STS_MASK 0x0080
+#define MADERA_SLIMTX8_PORT_STS_SHIFT 7
+#define MADERA_SLIMTX8_PORT_STS_WIDTH 1
+#define MADERA_SLIMTX7_PORT_STS 0x0040
+#define MADERA_SLIMTX7_PORT_STS_MASK 0x0040
+#define MADERA_SLIMTX7_PORT_STS_SHIFT 6
+#define MADERA_SLIMTX7_PORT_STS_WIDTH 1
+#define MADERA_SLIMTX6_PORT_STS 0x0020
+#define MADERA_SLIMTX6_PORT_STS_MASK 0x0020
+#define MADERA_SLIMTX6_PORT_STS_SHIFT 5
+#define MADERA_SLIMTX6_PORT_STS_WIDTH 1
+#define MADERA_SLIMTX5_PORT_STS 0x0010
+#define MADERA_SLIMTX5_PORT_STS_MASK 0x0010
+#define MADERA_SLIMTX5_PORT_STS_SHIFT 4
+#define MADERA_SLIMTX5_PORT_STS_WIDTH 1
+#define MADERA_SLIMTX4_PORT_STS 0x0008
+#define MADERA_SLIMTX4_PORT_STS_MASK 0x0008
+#define MADERA_SLIMTX4_PORT_STS_SHIFT 3
+#define MADERA_SLIMTX4_PORT_STS_WIDTH 1
+#define MADERA_SLIMTX3_PORT_STS 0x0004
+#define MADERA_SLIMTX3_PORT_STS_MASK 0x0004
+#define MADERA_SLIMTX3_PORT_STS_SHIFT 2
+#define MADERA_SLIMTX3_PORT_STS_WIDTH 1
+#define MADERA_SLIMTX2_PORT_STS 0x0002
+#define MADERA_SLIMTX2_PORT_STS_MASK 0x0002
+#define MADERA_SLIMTX2_PORT_STS_SHIFT 1
+#define MADERA_SLIMTX2_PORT_STS_WIDTH 1
+#define MADERA_SLIMTX1_PORT_STS 0x0001
+#define MADERA_SLIMTX1_PORT_STS_MASK 0x0001
+#define MADERA_SLIMTX1_PORT_STS_SHIFT 0
+#define MADERA_SLIMTX1_PORT_STS_WIDTH 1
+
+/* (0x0E00) FX_Ctrl1 */
+#define MADERA_FX_RATE_MASK 0xF800
+#define MADERA_FX_RATE_SHIFT 11
+#define MADERA_FX_RATE_WIDTH 5
+
+/* (0x0E01) FX_Ctrl2 */
+#define MADERA_FX_STS_MASK 0xFFF0
+#define MADERA_FX_STS_SHIFT 4
+#define MADERA_FX_STS_WIDTH 12
+
+/* (0x0E10) EQ1_1 */
+#define MADERA_EQ1_B1_GAIN_MASK 0xF800
+#define MADERA_EQ1_B1_GAIN_SHIFT 11
+#define MADERA_EQ1_B1_GAIN_WIDTH 5
+#define MADERA_EQ1_B2_GAIN_MASK 0x07C0
+#define MADERA_EQ1_B2_GAIN_SHIFT 6
+#define MADERA_EQ1_B2_GAIN_WIDTH 5
+#define MADERA_EQ1_B3_GAIN_MASK 0x003E
+#define MADERA_EQ1_B3_GAIN_SHIFT 1
+#define MADERA_EQ1_B3_GAIN_WIDTH 5
+#define MADERA_EQ1_ENA 0x0001
+#define MADERA_EQ1_ENA_MASK 0x0001
+#define MADERA_EQ1_ENA_SHIFT 0
+#define MADERA_EQ1_ENA_WIDTH 1
+
+/* (0x0E11) EQ1_2 */
+#define MADERA_EQ1_B4_GAIN_MASK 0xF800
+#define MADERA_EQ1_B4_GAIN_SHIFT 11
+#define MADERA_EQ1_B4_GAIN_WIDTH 5
+#define MADERA_EQ1_B5_GAIN_MASK 0x07C0
+#define MADERA_EQ1_B5_GAIN_SHIFT 6
+#define MADERA_EQ1_B5_GAIN_WIDTH 5
+#define MADERA_EQ1_B1_MODE 0x0001
+#define MADERA_EQ1_B1_MODE_MASK 0x0001
+#define MADERA_EQ1_B1_MODE_SHIFT 0
+#define MADERA_EQ1_B1_MODE_WIDTH 1
+
+/* (0x0E12) EQ1_3 */
+#define MADERA_EQ1_B1_A_MASK 0xFFFF
+#define MADERA_EQ1_B1_A_SHIFT 0
+#define MADERA_EQ1_B1_A_WIDTH 16
+
+/* (0x0E13) EQ1_4 */
+#define MADERA_EQ1_B1_B_MASK 0xFFFF
+#define MADERA_EQ1_B1_B_SHIFT 0
+#define MADERA_EQ1_B1_B_WIDTH 16
+
+/* (0x0E14) EQ1_5 */
+#define MADERA_EQ1_B1_PG_MASK 0xFFFF
+#define MADERA_EQ1_B1_PG_SHIFT 0
+#define MADERA_EQ1_B1_PG_WIDTH 16
+
+/* (0x0E15) EQ1_6 */
+#define MADERA_EQ1_B2_A_MASK 0xFFFF
+#define MADERA_EQ1_B2_A_SHIFT 0
+#define MADERA_EQ1_B2_A_WIDTH 16
+
+/* (0x0E16) EQ1_7 */
+#define MADERA_EQ1_B2_B_MASK 0xFFFF
+#define MADERA_EQ1_B2_B_SHIFT 0
+#define MADERA_EQ1_B2_B_WIDTH 16
+
+/* (0x0E17) EQ1_8 */
+#define MADERA_EQ1_B2_C_MASK 0xFFFF
+#define MADERA_EQ1_B2_C_SHIFT 0
+#define MADERA_EQ1_B2_C_WIDTH 16
+
+/* (0x0E18) EQ1_9 */
+#define MADERA_EQ1_B2_PG_MASK 0xFFFF
+#define MADERA_EQ1_B2_PG_SHIFT 0
+#define MADERA_EQ1_B2_PG_WIDTH 16
+
+/* (0x0E19) EQ1_10 */
+#define MADERA_EQ1_B3_A_MASK 0xFFFF
+#define MADERA_EQ1_B3_A_SHIFT 0
+#define MADERA_EQ1_B3_A_WIDTH 16
+
+/* (0x0E1A) EQ1_11 */
+#define MADERA_EQ1_B3_B_MASK 0xFFFF
+#define MADERA_EQ1_B3_B_SHIFT 0
+#define MADERA_EQ1_B3_B_WIDTH 16
+
+/* (0x0E1B) EQ1_12 */
+#define MADERA_EQ1_B3_C_MASK 0xFFFF
+#define MADERA_EQ1_B3_C_SHIFT 0
+#define MADERA_EQ1_B3_C_WIDTH 16
+
+/* (0x0E1C) EQ1_13 */
+#define MADERA_EQ1_B3_PG_MASK 0xFFFF
+#define MADERA_EQ1_B3_PG_SHIFT 0
+#define MADERA_EQ1_B3_PG_WIDTH 16
+
+/* (0x0E1D) EQ1_14 */
+#define MADERA_EQ1_B4_A_MASK 0xFFFF
+#define MADERA_EQ1_B4_A_SHIFT 0
+#define MADERA_EQ1_B4_A_WIDTH 16
+
+/* (0x0E1E) EQ1_15 */
+#define MADERA_EQ1_B4_B_MASK 0xFFFF
+#define MADERA_EQ1_B4_B_SHIFT 0
+#define MADERA_EQ1_B4_B_WIDTH 16
+
+/* (0x0E1F) EQ1_16 */
+#define MADERA_EQ1_B4_C_MASK 0xFFFF
+#define MADERA_EQ1_B4_C_SHIFT 0
+#define MADERA_EQ1_B4_C_WIDTH 16
+
+/* (0x0E20) EQ1_17 */
+#define MADERA_EQ1_B4_PG_MASK 0xFFFF
+#define MADERA_EQ1_B4_PG_SHIFT 0
+#define MADERA_EQ1_B4_PG_WIDTH 16
+
+/* (0x0E21) EQ1_18 */
+#define MADERA_EQ1_B5_A_MASK 0xFFFF
+#define MADERA_EQ1_B5_A_SHIFT 0
+#define MADERA_EQ1_B5_A_WIDTH 16
+
+/* (0x0E22) EQ1_19 */
+#define MADERA_EQ1_B5_B_MASK 0xFFFF
+#define MADERA_EQ1_B5_B_SHIFT 0
+#define MADERA_EQ1_B5_B_WIDTH 16
+
+/* (0x0E23) EQ1_20 */
+#define MADERA_EQ1_B5_PG_MASK 0xFFFF
+#define MADERA_EQ1_B5_PG_SHIFT 0
+#define MADERA_EQ1_B5_PG_WIDTH 16
+
+/* (0x0E24) EQ1_21 */
+#define MADERA_EQ1_B1_C_MASK 0xFFFF
+#define MADERA_EQ1_B1_C_SHIFT 0
+#define MADERA_EQ1_B1_C_WIDTH 16
+
+/* (0x0E26) EQ2_1 */
+#define MADERA_EQ2_B1_GAIN_MASK 0xF800
+#define MADERA_EQ2_B1_GAIN_SHIFT 11
+#define MADERA_EQ2_B1_GAIN_WIDTH 5
+#define MADERA_EQ2_B2_GAIN_MASK 0x07C0
+#define MADERA_EQ2_B2_GAIN_SHIFT 6
+#define MADERA_EQ2_B2_GAIN_WIDTH 5
+#define MADERA_EQ2_B3_GAIN_MASK 0x003E
+#define MADERA_EQ2_B3_GAIN_SHIFT 1
+#define MADERA_EQ2_B3_GAIN_WIDTH 5
+#define MADERA_EQ2_ENA 0x0001
+#define MADERA_EQ2_ENA_MASK 0x0001
+#define MADERA_EQ2_ENA_SHIFT 0
+#define MADERA_EQ2_ENA_WIDTH 1
+
+/* (0x0E27) EQ2_2 */
+#define MADERA_EQ2_B4_GAIN_MASK 0xF800
+#define MADERA_EQ2_B4_GAIN_SHIFT 11
+#define MADERA_EQ2_B4_GAIN_WIDTH 5
+#define MADERA_EQ2_B5_GAIN_MASK 0x07C0
+#define MADERA_EQ2_B5_GAIN_SHIFT 6
+#define MADERA_EQ2_B5_GAIN_WIDTH 5
+#define MADERA_EQ2_B1_MODE 0x0001
+#define MADERA_EQ2_B1_MODE_MASK 0x0001
+#define MADERA_EQ2_B1_MODE_SHIFT 0
+#define MADERA_EQ2_B1_MODE_WIDTH 1
+
+/* (0x0E28) EQ2_3 */
+#define MADERA_EQ2_B1_A_MASK 0xFFFF
+#define MADERA_EQ2_B1_A_SHIFT 0
+#define MADERA_EQ2_B1_A_WIDTH 16
+
+/* (0x0E29) EQ2_4 */
+#define MADERA_EQ2_B1_B_MASK 0xFFFF
+#define MADERA_EQ2_B1_B_SHIFT 0
+#define MADERA_EQ2_B1_B_WIDTH 16
+
+/* (0x0E2A) EQ2_5 */
+#define MADERA_EQ2_B1_PG_MASK 0xFFFF
+#define MADERA_EQ2_B1_PG_SHIFT 0
+#define MADERA_EQ2_B1_PG_WIDTH 16
+
+/* (0x0E2B) EQ2_6 */
+#define MADERA_EQ2_B2_A_MASK 0xFFFF
+#define MADERA_EQ2_B2_A_SHIFT 0
+#define MADERA_EQ2_B2_A_WIDTH 16
+
+/* (0x0E2C) EQ2_7 */
+#define MADERA_EQ2_B2_B_MASK 0xFFFF
+#define MADERA_EQ2_B2_B_SHIFT 0
+#define MADERA_EQ2_B2_B_WIDTH 16
+
+/* (0x0E2D) EQ2_8 */
+#define MADERA_EQ2_B2_C_MASK 0xFFFF
+#define MADERA_EQ2_B2_C_SHIFT 0
+#define MADERA_EQ2_B2_C_WIDTH 16
+
+/* (0x0E2E) EQ2_9 */
+#define MADERA_EQ2_B2_PG_MASK 0xFFFF
+#define MADERA_EQ2_B2_PG_SHIFT 0
+#define MADERA_EQ2_B2_PG_WIDTH 16
+
+/* (0x0E2F) EQ2_10 */
+#define MADERA_EQ2_B3_A_MASK 0xFFFF
+#define MADERA_EQ2_B3_A_SHIFT 0
+#define MADERA_EQ2_B3_A_WIDTH 16
+
+/* (0x0E30) EQ2_11 */
+#define MADERA_EQ2_B3_B_MASK 0xFFFF
+#define MADERA_EQ2_B3_B_SHIFT 0
+#define MADERA_EQ2_B3_B_WIDTH 16
+
+/* (0x0E31) EQ2_12 */
+#define MADERA_EQ2_B3_C_MASK 0xFFFF
+#define MADERA_EQ2_B3_C_SHIFT 0
+#define MADERA_EQ2_B3_C_WIDTH 16
+
+/* (0x0E32) EQ2_13 */
+#define MADERA_EQ2_B3_PG_MASK 0xFFFF
+#define MADERA_EQ2_B3_PG_SHIFT 0
+#define MADERA_EQ2_B3_PG_WIDTH 16
+
+/* (0x0E33) EQ2_14 */
+#define MADERA_EQ2_B4_A_MASK 0xFFFF
+#define MADERA_EQ2_B4_A_SHIFT 0
+#define MADERA_EQ2_B4_A_WIDTH 16
+
+/* (0x0E34) EQ2_15 */
+#define MADERA_EQ2_B4_B_MASK 0xFFFF
+#define MADERA_EQ2_B4_B_SHIFT 0
+#define MADERA_EQ2_B4_B_WIDTH 16
+
+/* (0x0E35) EQ2_16 */
+#define MADERA_EQ2_B4_C_MASK 0xFFFF
+#define MADERA_EQ2_B4_C_SHIFT 0
+#define MADERA_EQ2_B4_C_WIDTH 16
+
+/* (0x0E36) EQ2_17 */
+#define MADERA_EQ2_B4_PG_MASK 0xFFFF
+#define MADERA_EQ2_B4_PG_SHIFT 0
+#define MADERA_EQ2_B4_PG_WIDTH 16
+
+/* (0x0E37) EQ2_18 */
+#define MADERA_EQ2_B5_A_MASK 0xFFFF
+#define MADERA_EQ2_B5_A_SHIFT 0
+#define MADERA_EQ2_B5_A_WIDTH 16
+
+/* (0x0E38) EQ2_19 */
+#define MADERA_EQ2_B5_B_MASK 0xFFFF
+#define MADERA_EQ2_B5_B_SHIFT 0
+#define MADERA_EQ2_B5_B_WIDTH 16
+
+/* (0x0E39) EQ2_20 */
+#define MADERA_EQ2_B5_PG_MASK 0xFFFF
+#define MADERA_EQ2_B5_PG_SHIFT 0
+#define MADERA_EQ2_B5_PG_WIDTH 16
+
+/* (0x0E3A) EQ2_21 */
+#define MADERA_EQ2_B1_C_MASK 0xFFFF
+#define MADERA_EQ2_B1_C_SHIFT 0
+#define MADERA_EQ2_B1_C_WIDTH 16
+
+/* (0x0E3C) EQ3_1 */
+#define MADERA_EQ3_B1_GAIN_MASK 0xF800
+#define MADERA_EQ3_B1_GAIN_SHIFT 11
+#define MADERA_EQ3_B1_GAIN_WIDTH 5
+#define MADERA_EQ3_B2_GAIN_MASK 0x07C0
+#define MADERA_EQ3_B2_GAIN_SHIFT 6
+#define MADERA_EQ3_B2_GAIN_WIDTH 5
+#define MADERA_EQ3_B3_GAIN_MASK 0x003E
+#define MADERA_EQ3_B3_GAIN_SHIFT 1
+#define MADERA_EQ3_B3_GAIN_WIDTH 5
+#define MADERA_EQ3_ENA 0x0001
+#define MADERA_EQ3_ENA_MASK 0x0001
+#define MADERA_EQ3_ENA_SHIFT 0
+#define MADERA_EQ3_ENA_WIDTH 1
+
+/* (0x0E3D) EQ3_2 */
+#define MADERA_EQ3_B4_GAIN_MASK 0xF800
+#define MADERA_EQ3_B4_GAIN_SHIFT 11
+#define MADERA_EQ3_B4_GAIN_WIDTH 5
+#define MADERA_EQ3_B5_GAIN_MASK 0x07C0
+#define MADERA_EQ3_B5_GAIN_SHIFT 6
+#define MADERA_EQ3_B5_GAIN_WIDTH 5
+#define MADERA_EQ3_B1_MODE 0x0001
+#define MADERA_EQ3_B1_MODE_MASK 0x0001
+#define MADERA_EQ3_B1_MODE_SHIFT 0
+#define MADERA_EQ3_B1_MODE_WIDTH 1
+
+/* (0x0E3E) EQ3_3 */
+#define MADERA_EQ3_B1_A_MASK 0xFFFF
+#define MADERA_EQ3_B1_A_SHIFT 0
+#define MADERA_EQ3_B1_A_WIDTH 16
+
+/* (0x0E3F) EQ3_4 */
+#define MADERA_EQ3_B1_B_MASK 0xFFFF
+#define MADERA_EQ3_B1_B_SHIFT 0
+#define MADERA_EQ3_B1_B_WIDTH 16
+
+/* (0x0E40) EQ3_5 */
+#define MADERA_EQ3_B1_PG_MASK 0xFFFF
+#define MADERA_EQ3_B1_PG_SHIFT 0
+#define MADERA_EQ3_B1_PG_WIDTH 16
+
+/* (0x0E41) EQ3_6 */
+#define MADERA_EQ3_B2_A_MASK 0xFFFF
+#define MADERA_EQ3_B2_A_SHIFT 0
+#define MADERA_EQ3_B2_A_WIDTH 16
+
+/* (0x0E42) EQ3_7 */
+#define MADERA_EQ3_B2_B_MASK 0xFFFF
+#define MADERA_EQ3_B2_B_SHIFT 0
+#define MADERA_EQ3_B2_B_WIDTH 16
+
+/* (0x0E43) EQ3_8 */
+#define MADERA_EQ3_B2_C_MASK 0xFFFF
+#define MADERA_EQ3_B2_C_SHIFT 0
+#define MADERA_EQ3_B2_C_WIDTH 16
+
+/* (0x0E44) EQ3_9 */
+#define MADERA_EQ3_B2_PG_MASK 0xFFFF
+#define MADERA_EQ3_B2_PG_SHIFT 0
+#define MADERA_EQ3_B2_PG_WIDTH 16
+
+/* (0x0E45) EQ3_10 */
+#define MADERA_EQ3_B3_A_MASK 0xFFFF
+#define MADERA_EQ3_B3_A_SHIFT 0
+#define MADERA_EQ3_B3_A_WIDTH 16
+
+/* (0x0E46) EQ3_11 */
+#define MADERA_EQ3_B3_B_MASK 0xFFFF
+#define MADERA_EQ3_B3_B_SHIFT 0
+#define MADERA_EQ3_B3_B_WIDTH 16
+
+/* (0x0E47) EQ3_12 */
+#define MADERA_EQ3_B3_C_MASK 0xFFFF
+#define MADERA_EQ3_B3_C_SHIFT 0
+#define MADERA_EQ3_B3_C_WIDTH 16
+
+/* (0x0E48) EQ3_13 */
+#define MADERA_EQ3_B3_PG_MASK 0xFFFF
+#define MADERA_EQ3_B3_PG_SHIFT 0
+#define MADERA_EQ3_B3_PG_WIDTH 16
+
+/* (0x0E49) EQ3_14 */
+#define MADERA_EQ3_B4_A_MASK 0xFFFF
+#define MADERA_EQ3_B4_A_SHIFT 0
+#define MADERA_EQ3_B4_A_WIDTH 16
+
+/* (0x0E4A) EQ3_15 */
+#define MADERA_EQ3_B4_B_MASK 0xFFFF
+#define MADERA_EQ3_B4_B_SHIFT 0
+#define MADERA_EQ3_B4_B_WIDTH 16
+
+/* (0x0E4B) EQ3_16 */
+#define MADERA_EQ3_B4_C_MASK 0xFFFF
+#define MADERA_EQ3_B4_C_SHIFT 0
+#define MADERA_EQ3_B4_C_WIDTH 16
+
+/* (0x0E4C) EQ3_17 */
+#define MADERA_EQ3_B4_PG_MASK 0xFFFF
+#define MADERA_EQ3_B4_PG_SHIFT 0
+#define MADERA_EQ3_B4_PG_WIDTH 16
+
+/* (0x0E4D) EQ3_18 */
+#define MADERA_EQ3_B5_A_MASK 0xFFFF
+#define MADERA_EQ3_B5_A_SHIFT 0
+#define MADERA_EQ3_B5_A_WIDTH 16
+
+/* (0x0E4E) EQ3_19 */
+#define MADERA_EQ3_B5_B_MASK 0xFFFF
+#define MADERA_EQ3_B5_B_SHIFT 0
+#define MADERA_EQ3_B5_B_WIDTH 16
+
+/* (0x0E4F) EQ3_20 */
+#define MADERA_EQ3_B5_PG_MASK 0xFFFF
+#define MADERA_EQ3_B5_PG_SHIFT 0
+#define MADERA_EQ3_B5_PG_WIDTH 16
+
+/* (0x0E50) EQ3_21 */
+#define MADERA_EQ3_B1_C_MASK 0xFFFF
+#define MADERA_EQ3_B1_C_SHIFT 0
+#define MADERA_EQ3_B1_C_WIDTH 16
+
+/* (0x0E52) EQ4_1 */
+#define MADERA_EQ4_B1_GAIN_MASK 0xF800
+#define MADERA_EQ4_B1_GAIN_SHIFT 11
+#define MADERA_EQ4_B1_GAIN_WIDTH 5
+#define MADERA_EQ4_B2_GAIN_MASK 0x07C0
+#define MADERA_EQ4_B2_GAIN_SHIFT 6
+#define MADERA_EQ4_B2_GAIN_WIDTH 5
+#define MADERA_EQ4_B3_GAIN_MASK 0x003E
+#define MADERA_EQ4_B3_GAIN_SHIFT 1
+#define MADERA_EQ4_B3_GAIN_WIDTH 5
+#define MADERA_EQ4_ENA 0x0001
+#define MADERA_EQ4_ENA_MASK 0x0001
+#define MADERA_EQ4_ENA_SHIFT 0
+#define MADERA_EQ4_ENA_WIDTH 1
+
+/* (0x0E53) EQ4_2 */
+#define MADERA_EQ4_B4_GAIN_MASK 0xF800
+#define MADERA_EQ4_B4_GAIN_SHIFT 11
+#define MADERA_EQ4_B4_GAIN_WIDTH 5
+#define MADERA_EQ4_B5_GAIN_MASK 0x07C0
+#define MADERA_EQ4_B5_GAIN_SHIFT 6
+#define MADERA_EQ4_B5_GAIN_WIDTH 5
+#define MADERA_EQ4_B1_MODE 0x0001
+#define MADERA_EQ4_B1_MODE_MASK 0x0001
+#define MADERA_EQ4_B1_MODE_SHIFT 0
+#define MADERA_EQ4_B1_MODE_WIDTH 1
+
+/* (0x0E54) EQ4_3 */
+#define MADERA_EQ4_B1_A_MASK 0xFFFF
+#define MADERA_EQ4_B1_A_SHIFT 0
+#define MADERA_EQ4_B1_A_WIDTH 16
+
+/* (0x0E55) EQ4_4 */
+#define MADERA_EQ4_B1_B_MASK 0xFFFF
+#define MADERA_EQ4_B1_B_SHIFT 0
+#define MADERA_EQ4_B1_B_WIDTH 16
+
+/* (0x0E56) EQ4_5 */
+#define MADERA_EQ4_B1_PG_MASK 0xFFFF
+#define MADERA_EQ4_B1_PG_SHIFT 0
+#define MADERA_EQ4_B1_PG_WIDTH 16
+
+/* (0x0E57) EQ4_6 */
+#define MADERA_EQ4_B2_A_MASK 0xFFFF
+#define MADERA_EQ4_B2_A_SHIFT 0
+#define MADERA_EQ4_B2_A_WIDTH 16
+
+/* (0x0E58) EQ4_7 */
+#define MADERA_EQ4_B2_B_MASK 0xFFFF
+#define MADERA_EQ4_B2_B_SHIFT 0
+#define MADERA_EQ4_B2_B_WIDTH 16
+
+/* (0x0E59) EQ4_8 */
+#define MADERA_EQ4_B2_C_MASK 0xFFFF
+#define MADERA_EQ4_B2_C_SHIFT 0
+#define MADERA_EQ4_B2_C_WIDTH 16
+
+/* (0x0E5A) EQ4_9 */
+#define MADERA_EQ4_B2_PG_MASK 0xFFFF
+#define MADERA_EQ4_B2_PG_SHIFT 0
+#define MADERA_EQ4_B2_PG_WIDTH 16
+
+/* (0x0E5B) EQ4_10 */
+#define MADERA_EQ4_B3_A_MASK 0xFFFF
+#define MADERA_EQ4_B3_A_SHIFT 0
+#define MADERA_EQ4_B3_A_WIDTH 16
+
+/* (0x0E5C) EQ4_11 */
+#define MADERA_EQ4_B3_B_MASK 0xFFFF
+#define MADERA_EQ4_B3_B_SHIFT 0
+#define MADERA_EQ4_B3_B_WIDTH 16
+
+/* (0x0E5D) EQ4_12 */
+#define MADERA_EQ4_B3_C_MASK 0xFFFF
+#define MADERA_EQ4_B3_C_SHIFT 0
+#define MADERA_EQ4_B3_C_WIDTH 16
+
+/* (0x0E5E) EQ4_13 */
+#define MADERA_EQ4_B3_PG_MASK 0xFFFF
+#define MADERA_EQ4_B3_PG_SHIFT 0
+#define MADERA_EQ4_B3_PG_WIDTH 16
+
+/* (0x0E5F) EQ4_14 */
+#define MADERA_EQ4_B4_A_MASK 0xFFFF
+#define MADERA_EQ4_B4_A_SHIFT 0
+#define MADERA_EQ4_B4_A_WIDTH 16
+
+/* (0x0E60) EQ4_15 */
+#define MADERA_EQ4_B4_B_MASK 0xFFFF
+#define MADERA_EQ4_B4_B_SHIFT 0
+#define MADERA_EQ4_B4_B_WIDTH 16
+
+/* (0x0E61) EQ4_16 */
+#define MADERA_EQ4_B4_C_MASK 0xFFFF
+#define MADERA_EQ4_B4_C_SHIFT 0
+#define MADERA_EQ4_B4_C_WIDTH 16
+
+/* (0x0E62) EQ4_17 */
+#define MADERA_EQ4_B4_PG_MASK 0xFFFF
+#define MADERA_EQ4_B4_PG_SHIFT 0
+#define MADERA_EQ4_B4_PG_WIDTH 16
+
+/* (0x0E63) EQ4_18 */
+#define MADERA_EQ4_B5_A_MASK 0xFFFF
+#define MADERA_EQ4_B5_A_SHIFT 0
+#define MADERA_EQ4_B5_A_WIDTH 16
+
+/* (0x0E64) EQ4_19 */
+#define MADERA_EQ4_B5_B_MASK 0xFFFF
+#define MADERA_EQ4_B5_B_SHIFT 0
+#define MADERA_EQ4_B5_B_WIDTH 16
+
+/* (0x0E65) EQ4_20 */
+#define MADERA_EQ4_B5_PG_MASK 0xFFFF
+#define MADERA_EQ4_B5_PG_SHIFT 0
+#define MADERA_EQ4_B5_PG_WIDTH 16
+
+/* (0x0E66) EQ4_21 */
+#define MADERA_EQ4_B1_C_MASK 0xFFFF
+#define MADERA_EQ4_B1_C_SHIFT 0
+#define MADERA_EQ4_B1_C_WIDTH 16
+
+/* (0x0E80) DRC1_ctrl1 */
+#define MADERA_DRC1_SIG_DET_RMS_MASK 0xF800
+#define MADERA_DRC1_SIG_DET_RMS_SHIFT 11
+#define MADERA_DRC1_SIG_DET_RMS_WIDTH 5
+#define MADERA_DRC1_SIG_DET_PK_MASK 0x0600
+#define MADERA_DRC1_SIG_DET_PK_SHIFT 9
+#define MADERA_DRC1_SIG_DET_PK_WIDTH 2
+#define MADERA_DRC1_NG_ENA 0x0100
+#define MADERA_DRC1_NG_ENA_MASK 0x0100
+#define MADERA_DRC1_NG_ENA_SHIFT 8
+#define MADERA_DRC1_NG_ENA_WIDTH 1
+#define MADERA_DRC1_SIG_DET_MODE 0x0080
+#define MADERA_DRC1_SIG_DET_MODE_MASK 0x0080
+#define MADERA_DRC1_SIG_DET_MODE_SHIFT 7
+#define MADERA_DRC1_SIG_DET_MODE_WIDTH 1
+#define MADERA_DRC1_SIG_DET 0x0040
+#define MADERA_DRC1_SIG_DET_MASK 0x0040
+#define MADERA_DRC1_SIG_DET_SHIFT 6
+#define MADERA_DRC1_SIG_DET_WIDTH 1
+#define MADERA_DRC1_KNEE2_OP_ENA 0x0020
+#define MADERA_DRC1_KNEE2_OP_ENA_MASK 0x0020
+#define MADERA_DRC1_KNEE2_OP_ENA_SHIFT 5
+#define MADERA_DRC1_KNEE2_OP_ENA_WIDTH 1
+#define MADERA_DRC1_QR 0x0010
+#define MADERA_DRC1_QR_MASK 0x0010
+#define MADERA_DRC1_QR_SHIFT 4
+#define MADERA_DRC1_QR_WIDTH 1
+#define MADERA_DRC1_ANTICLIP 0x0008
+#define MADERA_DRC1_ANTICLIP_MASK 0x0008
+#define MADERA_DRC1_ANTICLIP_SHIFT 3
+#define MADERA_DRC1_ANTICLIP_WIDTH 1
+#define MADERA_DRC1L_ENA 0x0002
+#define MADERA_DRC1L_ENA_MASK 0x0002
+#define MADERA_DRC1L_ENA_SHIFT 1
+#define MADERA_DRC1L_ENA_WIDTH 1
+#define MADERA_DRC1R_ENA 0x0001
+#define MADERA_DRC1R_ENA_MASK 0x0001
+#define MADERA_DRC1R_ENA_SHIFT 0
+#define MADERA_DRC1R_ENA_WIDTH 1
+
+/* (0x0E81) DRC1_ctrl2 */
+#define MADERA_DRC1_ATK_MASK 0x1E00
+#define MADERA_DRC1_ATK_SHIFT 9
+#define MADERA_DRC1_ATK_WIDTH 4
+#define MADERA_DRC1_DCY_MASK 0x01E0
+#define MADERA_DRC1_DCY_SHIFT 5
+#define MADERA_DRC1_DCY_WIDTH 4
+#define MADERA_DRC1_MINGAIN_MASK 0x001C
+#define MADERA_DRC1_MINGAIN_SHIFT 2
+#define MADERA_DRC1_MINGAIN_WIDTH 3
+#define MADERA_DRC1_MAXGAIN_MASK 0x0003
+#define MADERA_DRC1_MAXGAIN_SHIFT 0
+#define MADERA_DRC1_MAXGAIN_WIDTH 2
+
+/* (0x0E82) DRC1_ctrl3 */
+#define MADERA_DRC1_NG_MINGAIN_MASK 0xF000
+#define MADERA_DRC1_NG_MINGAIN_SHIFT 12
+#define MADERA_DRC1_NG_MINGAIN_WIDTH 4
+#define MADERA_DRC1_NG_EXP_MASK 0x0C00
+#define MADERA_DRC1_NG_EXP_SHIFT 10
+#define MADERA_DRC1_NG_EXP_WIDTH 2
+#define MADERA_DRC1_QR_THR_MASK 0x0300
+#define MADERA_DRC1_QR_THR_SHIFT 8
+#define MADERA_DRC1_QR_THR_WIDTH 2
+#define MADERA_DRC1_QR_DCY_MASK 0x00C0
+#define MADERA_DRC1_QR_DCY_SHIFT 6
+#define MADERA_DRC1_QR_DCY_WIDTH 2
+#define MADERA_DRC1_HI_COMP_MASK 0x0038
+#define MADERA_DRC1_HI_COMP_SHIFT 3
+#define MADERA_DRC1_HI_COMP_WIDTH 3
+#define MADERA_DRC1_LO_COMP_MASK 0x0007
+#define MADERA_DRC1_LO_COMP_SHIFT 0
+#define MADERA_DRC1_LO_COMP_WIDTH 3
+
+/* (0x0E83) DRC1_ctrl4 */
+#define MADERA_DRC1_KNEE_IP_MASK 0x07E0
+#define MADERA_DRC1_KNEE_IP_SHIFT 5
+#define MADERA_DRC1_KNEE_IP_WIDTH 6
+#define MADERA_DRC1_KNEE_OP_MASK 0x001F
+#define MADERA_DRC1_KNEE_OP_SHIFT 0
+#define MADERA_DRC1_KNEE_OP_WIDTH 5
+
+/* (0x0E84) DRC1_ctrl5 */
+#define MADERA_DRC1_KNEE2_IP_MASK 0x03E0
+#define MADERA_DRC1_KNEE2_IP_SHIFT 5
+#define MADERA_DRC1_KNEE2_IP_WIDTH 5
+#define MADERA_DRC1_KNEE2_OP_MASK 0x001F
+#define MADERA_DRC1_KNEE2_OP_SHIFT 0
+#define MADERA_DRC1_KNEE2_OP_WIDTH 5
+
+/* (0x0E88) DRC2_ctrl1 */
+#define MADERA_DRC2_SIG_DET_RMS_MASK 0xF800
+#define MADERA_DRC2_SIG_DET_RMS_SHIFT 11
+#define MADERA_DRC2_SIG_DET_RMS_WIDTH 5
+#define MADERA_DRC2_SIG_DET_PK_MASK 0x0600
+#define MADERA_DRC2_SIG_DET_PK_SHIFT 9
+#define MADERA_DRC2_SIG_DET_PK_WIDTH 2
+#define MADERA_DRC2_NG_ENA 0x0100
+#define MADERA_DRC2_NG_ENA_MASK 0x0100
+#define MADERA_DRC2_NG_ENA_SHIFT 8
+#define MADERA_DRC2_NG_ENA_WIDTH 1
+#define MADERA_DRC2_SIG_DET_MODE 0x0080
+#define MADERA_DRC2_SIG_DET_MODE_MASK 0x0080
+#define MADERA_DRC2_SIG_DET_MODE_SHIFT 7
+#define MADERA_DRC2_SIG_DET_MODE_WIDTH 1
+#define MADERA_DRC2_SIG_DET 0x0040
+#define MADERA_DRC2_SIG_DET_MASK 0x0040
+#define MADERA_DRC2_SIG_DET_SHIFT 6
+#define MADERA_DRC2_SIG_DET_WIDTH 1
+#define MADERA_DRC2_KNEE2_OP_ENA 0x0020
+#define MADERA_DRC2_KNEE2_OP_ENA_MASK 0x0020
+#define MADERA_DRC2_KNEE2_OP_ENA_SHIFT 5
+#define MADERA_DRC2_KNEE2_OP_ENA_WIDTH 1
+#define MADERA_DRC2_QR 0x0010
+#define MADERA_DRC2_QR_MASK 0x0010
+#define MADERA_DRC2_QR_SHIFT 4
+#define MADERA_DRC2_QR_WIDTH 1
+#define MADERA_DRC2_ANTICLIP 0x0008
+#define MADERA_DRC2_ANTICLIP_MASK 0x0008
+#define MADERA_DRC2_ANTICLIP_SHIFT 3
+#define MADERA_DRC2_ANTICLIP_WIDTH 1
+#define MADERA_DRC2L_ENA 0x0002
+#define MADERA_DRC2L_ENA_MASK 0x0002
+#define MADERA_DRC2L_ENA_SHIFT 1
+#define MADERA_DRC2L_ENA_WIDTH 1
+#define MADERA_DRC2R_ENA 0x0001
+#define MADERA_DRC2R_ENA_MASK 0x0001
+#define MADERA_DRC2R_ENA_SHIFT 0
+#define MADERA_DRC2R_ENA_WIDTH 1
+
+/* (0x0E89) DRC2_ctrl2 */
+#define MADERA_DRC2_ATK_MASK 0x1E00
+#define MADERA_DRC2_ATK_SHIFT 9
+#define MADERA_DRC2_ATK_WIDTH 4
+#define MADERA_DRC2_DCY_MASK 0x01E0
+#define MADERA_DRC2_DCY_SHIFT 5
+#define MADERA_DRC2_DCY_WIDTH 4
+#define MADERA_DRC2_MINGAIN_MASK 0x001C
+#define MADERA_DRC2_MINGAIN_SHIFT 2
+#define MADERA_DRC2_MINGAIN_WIDTH 3
+#define MADERA_DRC2_MAXGAIN_MASK 0x0003
+#define MADERA_DRC2_MAXGAIN_SHIFT 0
+#define MADERA_DRC2_MAXGAIN_WIDTH 2
+
+/* (0x0E8A) DRC2_ctrl3 */
+#define MADERA_DRC2_NG_MINGAIN_MASK 0xF000
+#define MADERA_DRC2_NG_MINGAIN_SHIFT 12
+#define MADERA_DRC2_NG_MINGAIN_WIDTH 4
+#define MADERA_DRC2_NG_EXP_MASK 0x0C00
+#define MADERA_DRC2_NG_EXP_SHIFT 10
+#define MADERA_DRC2_NG_EXP_WIDTH 2
+#define MADERA_DRC2_QR_THR_MASK 0x0300
+#define MADERA_DRC2_QR_THR_SHIFT 8
+#define MADERA_DRC2_QR_THR_WIDTH 2
+#define MADERA_DRC2_QR_DCY_MASK 0x00C0
+#define MADERA_DRC2_QR_DCY_SHIFT 6
+#define MADERA_DRC2_QR_DCY_WIDTH 2
+#define MADERA_DRC2_HI_COMP_MASK 0x0038
+#define MADERA_DRC2_HI_COMP_SHIFT 3
+#define MADERA_DRC2_HI_COMP_WIDTH 3
+#define MADERA_DRC2_LO_COMP_MASK 0x0007
+#define MADERA_DRC2_LO_COMP_SHIFT 0
+#define MADERA_DRC2_LO_COMP_WIDTH 3
+
+/* (0x0E8B) DRC2_ctrl4 */
+#define MADERA_DRC2_KNEE_IP_MASK 0x07E0
+#define MADERA_DRC2_KNEE_IP_SHIFT 5
+#define MADERA_DRC2_KNEE_IP_WIDTH 6
+#define MADERA_DRC2_KNEE_OP_MASK 0x001F
+#define MADERA_DRC2_KNEE_OP_SHIFT 0
+#define MADERA_DRC2_KNEE_OP_WIDTH 5
+
+/* (0x0E8C) DRC2_ctrl5 */
+#define MADERA_DRC2_KNEE2_IP_MASK 0x03E0
+#define MADERA_DRC2_KNEE2_IP_SHIFT 5
+#define MADERA_DRC2_KNEE2_IP_WIDTH 5
+#define MADERA_DRC2_KNEE2_OP_MASK 0x001F
+#define MADERA_DRC2_KNEE2_OP_SHIFT 0
+#define MADERA_DRC2_KNEE2_OP_WIDTH 5
+
+/* (0x0EC0) HPLPF1_1 */
+#define MADERA_LHPF1_MODE 0x0002
+#define MADERA_LHPF1_MODE_MASK 0x0002
+#define MADERA_LHPF1_MODE_SHIFT 1
+#define MADERA_LHPF1_MODE_WIDTH 1
+#define MADERA_LHPF1_ENA 0x0001
+#define MADERA_LHPF1_ENA_MASK 0x0001
+#define MADERA_LHPF1_ENA_SHIFT 0
+#define MADERA_LHPF1_ENA_WIDTH 1
+
+/* (0x0EC1) HPLPF1_2 */
+#define MADERA_LHPF1_COEFF_MASK 0xFFFF
+#define MADERA_LHPF1_COEFF_SHIFT 0
+#define MADERA_LHPF1_COEFF_WIDTH 16
+
+/* (0x0EC4) HPLPF2_1 */
+#define MADERA_LHPF2_MODE 0x0002
+#define MADERA_LHPF2_MODE_MASK 0x0002
+#define MADERA_LHPF2_MODE_SHIFT 1
+#define MADERA_LHPF2_MODE_WIDTH 1
+#define MADERA_LHPF2_ENA 0x0001
+#define MADERA_LHPF2_ENA_MASK 0x0001
+#define MADERA_LHPF2_ENA_SHIFT 0
+#define MADERA_LHPF2_ENA_WIDTH 1
+
+/* (0x0EC5) HPLPF2_2 */
+#define MADERA_LHPF2_COEFF_MASK 0xFFFF
+#define MADERA_LHPF2_COEFF_SHIFT 0
+#define MADERA_LHPF2_COEFF_WIDTH 16
+
+/* (0x0EC8) HPLPF3_1 */
+#define MADERA_LHPF3_MODE 0x0002
+#define MADERA_LHPF3_MODE_MASK 0x0002
+#define MADERA_LHPF3_MODE_SHIFT 1
+#define MADERA_LHPF3_MODE_WIDTH 1
+#define MADERA_LHPF3_ENA 0x0001
+#define MADERA_LHPF3_ENA_MASK 0x0001
+#define MADERA_LHPF3_ENA_SHIFT 0
+#define MADERA_LHPF3_ENA_WIDTH 1
+
+/* (0x0EC9) HPLPF3_2 */
+#define MADERA_LHPF3_COEFF_MASK 0xFFFF
+#define MADERA_LHPF3_COEFF_SHIFT 0
+#define MADERA_LHPF3_COEFF_WIDTH 16
+
+/* (0x0ECC) HPLPF4_1 */
+#define MADERA_LHPF4_MODE 0x0002
+#define MADERA_LHPF4_MODE_MASK 0x0002
+#define MADERA_LHPF4_MODE_SHIFT 1
+#define MADERA_LHPF4_MODE_WIDTH 1
+#define MADERA_LHPF4_ENA 0x0001
+#define MADERA_LHPF4_ENA_MASK 0x0001
+#define MADERA_LHPF4_ENA_SHIFT 0
+#define MADERA_LHPF4_ENA_WIDTH 1
+
+/* (0x0ECD) HPLPF4_2 */
+#define MADERA_LHPF4_COEFF_MASK 0xFFFF
+#define MADERA_LHPF4_COEFF_SHIFT 0
+#define MADERA_LHPF4_COEFF_WIDTH 16
+
+/* (0x0ED0) ASRC2_ENABLE */
+#define MADERA_ASRC2_IN2L_ENA 0x0008
+#define MADERA_ASRC2_IN2L_ENA_MASK 0x0008
+#define MADERA_ASRC2_IN2L_ENA_SHIFT 3
+#define MADERA_ASRC2_IN2L_ENA_WIDTH 1
+#define MADERA_ASRC2_IN2R_ENA 0x0004
+#define MADERA_ASRC2_IN2R_ENA_MASK 0x0004
+#define MADERA_ASRC2_IN2R_ENA_SHIFT 2
+#define MADERA_ASRC2_IN2R_ENA_WIDTH 1
+#define MADERA_ASRC2_IN1L_ENA 0x0002
+#define MADERA_ASRC2_IN1L_ENA_MASK 0x0002
+#define MADERA_ASRC2_IN1L_ENA_SHIFT 1
+#define MADERA_ASRC2_IN1L_ENA_WIDTH 1
+#define MADERA_ASRC2_IN1R_ENA 0x0001
+#define MADERA_ASRC2_IN1R_ENA_MASK 0x0001
+#define MADERA_ASRC2_IN1R_ENA_SHIFT 0
+#define MADERA_ASRC2_IN1R_ENA_WIDTH 1
+
+/* (0x0ED2) ASRC2_RATE1 */
+#define MADERA_ASRC2_RATE1_MASK 0xF800
+#define MADERA_ASRC2_RATE1_SHIFT 11
+#define MADERA_ASRC2_RATE1_WIDTH 5
+
+/* (0x0ED3) ASRC2_RATE2 */
+#define MADERA_ASRC2_RATE2_MASK 0xF800
+#define MADERA_ASRC2_RATE2_SHIFT 11
+#define MADERA_ASRC2_RATE2_WIDTH 5
+
+/* (0x0EE0) ASRC1_ENABLE */
+#define MADERA_ASRC1_IN2L_ENA 0x0008
+#define MADERA_ASRC1_IN2L_ENA_MASK 0x0008
+#define MADERA_ASRC1_IN2L_ENA_SHIFT 3
+#define MADERA_ASRC1_IN2L_ENA_WIDTH 1
+#define MADERA_ASRC1_IN2R_ENA 0x0004
+#define MADERA_ASRC1_IN2R_ENA_MASK 0x0004
+#define MADERA_ASRC1_IN2R_ENA_SHIFT 2
+#define MADERA_ASRC1_IN2R_ENA_WIDTH 1
+#define MADERA_ASRC1_IN1L_ENA 0x0002
+#define MADERA_ASRC1_IN1L_ENA_MASK 0x0002
+#define MADERA_ASRC1_IN1L_ENA_SHIFT 1
+#define MADERA_ASRC1_IN1L_ENA_WIDTH 1
+#define MADERA_ASRC1_IN1R_ENA 0x0001
+#define MADERA_ASRC1_IN1R_ENA_MASK 0x0001
+#define MADERA_ASRC1_IN1R_ENA_SHIFT 0
+#define MADERA_ASRC1_IN1R_ENA_WIDTH 1
+
+/* (0x0EE2) ASRC1_RATE1 */
+#define MADERA_ASRC1_RATE1_MASK 0xF800
+#define MADERA_ASRC1_RATE1_SHIFT 11
+#define MADERA_ASRC1_RATE1_WIDTH 5
+
+/* (0x0EE3) ASRC1_RATE2 */
+#define MADERA_ASRC1_RATE2_MASK 0xF800
+#define MADERA_ASRC1_RATE2_SHIFT 11
+#define MADERA_ASRC1_RATE2_WIDTH 5
+
+/* (0x0EF0) - ISRC1 CTRL 1 */
+#define MADERA_ISRC1_FSH_MASK 0xF800
+#define MADERA_ISRC1_FSH_SHIFT 11
+#define MADERA_ISRC1_FSH_WIDTH 5
+#define MADERA_ISRC1_CLK_SEL_MASK 0x0700
+#define MADERA_ISRC1_CLK_SEL_SHIFT 8
+#define MADERA_ISRC1_CLK_SEL_WIDTH 3
+
+/* (0x0EF1) ISRC1_CTRL_2 */
+#define MADERA_ISRC1_FSL_MASK 0xF800
+#define MADERA_ISRC1_FSL_SHIFT 11
+#define MADERA_ISRC1_FSL_WIDTH 5
+
+/* (0x0EF2) ISRC1_CTRL_3 */
+#define MADERA_ISRC1_INT1_ENA 0x8000
+#define MADERA_ISRC1_INT1_ENA_MASK 0x8000
+#define MADERA_ISRC1_INT1_ENA_SHIFT 15
+#define MADERA_ISRC1_INT1_ENA_WIDTH 1
+#define MADERA_ISRC1_INT2_ENA 0x4000
+#define MADERA_ISRC1_INT2_ENA_MASK 0x4000
+#define MADERA_ISRC1_INT2_ENA_SHIFT 14
+#define MADERA_ISRC1_INT2_ENA_WIDTH 1
+#define MADERA_ISRC1_INT3_ENA 0x2000
+#define MADERA_ISRC1_INT3_ENA_MASK 0x2000
+#define MADERA_ISRC1_INT3_ENA_SHIFT 13
+#define MADERA_ISRC1_INT3_ENA_WIDTH 1
+#define MADERA_ISRC1_INT4_ENA 0x1000
+#define MADERA_ISRC1_INT4_ENA_MASK 0x1000
+#define MADERA_ISRC1_INT4_ENA_SHIFT 12
+#define MADERA_ISRC1_INT4_ENA_WIDTH 1
+#define MADERA_ISRC1_DEC1_ENA 0x0200
+#define MADERA_ISRC1_DEC1_ENA_MASK 0x0200
+#define MADERA_ISRC1_DEC1_ENA_SHIFT 9
+#define MADERA_ISRC1_DEC1_ENA_WIDTH 1
+#define MADERA_ISRC1_DEC2_ENA 0x0100
+#define MADERA_ISRC1_DEC2_ENA_MASK 0x0100
+#define MADERA_ISRC1_DEC2_ENA_SHIFT 8
+#define MADERA_ISRC1_DEC2_ENA_WIDTH 1
+#define MADERA_ISRC1_DEC3_ENA 0x0080
+#define MADERA_ISRC1_DEC3_ENA_MASK 0x0080
+#define MADERA_ISRC1_DEC3_ENA_SHIFT 7
+#define MADERA_ISRC1_DEC3_ENA_WIDTH 1
+#define MADERA_ISRC1_DEC4_ENA 0x0040
+#define MADERA_ISRC1_DEC4_ENA_MASK 0x0040
+#define MADERA_ISRC1_DEC4_ENA_SHIFT 6
+#define MADERA_ISRC1_DEC4_ENA_WIDTH 1
+#define MADERA_ISRC1_NOTCH_ENA 0x0001
+#define MADERA_ISRC1_NOTCH_ENA_MASK 0x0001
+#define MADERA_ISRC1_NOTCH_ENA_SHIFT 0
+#define MADERA_ISRC1_NOTCH_ENA_WIDTH 1
+
+/* (0x0EF3) ISRC2_CTRL_1 */
+#define MADERA_ISRC2_FSH_MASK 0xF800
+#define MADERA_ISRC2_FSH_SHIFT 11
+#define MADERA_ISRC2_FSH_WIDTH 5
+#define MADERA_ISRC2_CLK_SEL_MASK 0x0700
+#define MADERA_ISRC2_CLK_SEL_SHIFT 8
+#define MADERA_ISRC2_CLK_SEL_WIDTH 3
+
+/* (0x0EF4) ISRC2_CTRL_2 */
+#define MADERA_ISRC2_FSL_MASK 0xF800
+#define MADERA_ISRC2_FSL_SHIFT 11
+#define MADERA_ISRC2_FSL_WIDTH 5
+
+/* (0x0EF5) ISRC2_CTRL_3 */
+#define MADERA_ISRC2_INT1_ENA 0x8000
+#define MADERA_ISRC2_INT1_ENA_MASK 0x8000
+#define MADERA_ISRC2_INT1_ENA_SHIFT 15
+#define MADERA_ISRC2_INT1_ENA_WIDTH 1
+#define MADERA_ISRC2_INT2_ENA 0x4000
+#define MADERA_ISRC2_INT2_ENA_MASK 0x4000
+#define MADERA_ISRC2_INT2_ENA_SHIFT 14
+#define MADERA_ISRC2_INT2_ENA_WIDTH 1
+#define MADERA_ISRC2_INT3_ENA 0x2000
+#define MADERA_ISRC2_INT3_ENA_MASK 0x2000
+#define MADERA_ISRC2_INT3_ENA_SHIFT 13
+#define MADERA_ISRC2_INT3_ENA_WIDTH 1
+#define MADERA_ISRC2_INT4_ENA 0x1000
+#define MADERA_ISRC2_INT4_ENA_MASK 0x1000
+#define MADERA_ISRC2_INT4_ENA_SHIFT 12
+#define MADERA_ISRC2_INT4_ENA_WIDTH 1
+#define MADERA_ISRC2_DEC1_ENA 0x0200
+#define MADERA_ISRC2_DEC1_ENA_MASK 0x0200
+#define MADERA_ISRC2_DEC1_ENA_SHIFT 9
+#define MADERA_ISRC2_DEC1_ENA_WIDTH 1
+#define MADERA_ISRC2_DEC2_ENA 0x0100
+#define MADERA_ISRC2_DEC2_ENA_MASK 0x0100
+#define MADERA_ISRC2_DEC2_ENA_SHIFT 8
+#define MADERA_ISRC2_DEC2_ENA_WIDTH 1
+#define MADERA_ISRC2_DEC3_ENA 0x0080
+#define MADERA_ISRC2_DEC3_ENA_MASK 0x0080
+#define MADERA_ISRC2_DEC3_ENA_SHIFT 7
+#define MADERA_ISRC2_DEC3_ENA_WIDTH 1
+#define MADERA_ISRC2_DEC4_ENA 0x0040
+#define MADERA_ISRC2_DEC4_ENA_MASK 0x0040
+#define MADERA_ISRC2_DEC4_ENA_SHIFT 6
+#define MADERA_ISRC2_DEC4_ENA_WIDTH 1
+#define MADERA_ISRC2_NOTCH_ENA 0x0001
+#define MADERA_ISRC2_NOTCH_ENA_MASK 0x0001
+#define MADERA_ISRC2_NOTCH_ENA_SHIFT 0
+#define MADERA_ISRC2_NOTCH_ENA_WIDTH 1
+
+/* (0x0EF6) ISRC3_CTRL_1 */
+#define MADERA_ISRC3_FSH_MASK 0xF800
+#define MADERA_ISRC3_FSH_SHIFT 11
+#define MADERA_ISRC3_FSH_WIDTH 5
+#define MADERA_ISRC3_CLK_SEL_MASK 0x0700
+#define MADERA_ISRC3_CLK_SEL_SHIFT 8
+#define MADERA_ISRC3_CLK_SEL_WIDTH 3
+
+/* (0x0EF7) ISRC3_CTRL_2 */
+#define MADERA_ISRC3_FSL_MASK 0xF800
+#define MADERA_ISRC3_FSL_SHIFT 11
+#define MADERA_ISRC3_FSL_WIDTH 5
+
+/* (0x0EF8) ISRC3_CTRL_3 */
+#define MADERA_ISRC3_INT1_ENA 0x8000
+#define MADERA_ISRC3_INT1_ENA_MASK 0x8000
+#define MADERA_ISRC3_INT1_ENA_SHIFT 15
+#define MADERA_ISRC3_INT1_ENA_WIDTH 1
+#define MADERA_ISRC3_INT2_ENA 0x4000
+#define MADERA_ISRC3_INT2_ENA_MASK 0x4000
+#define MADERA_ISRC3_INT2_ENA_SHIFT 14
+#define MADERA_ISRC3_INT2_ENA_WIDTH 1
+#define MADERA_ISRC3_INT3_ENA 0x2000
+#define MADERA_ISRC3_INT3_ENA_MASK 0x2000
+#define MADERA_ISRC3_INT3_ENA_SHIFT 13
+#define MADERA_ISRC3_INT3_ENA_WIDTH 1
+#define MADERA_ISRC3_INT4_ENA 0x1000
+#define MADERA_ISRC3_INT4_ENA_MASK 0x1000
+#define MADERA_ISRC3_INT4_ENA_SHIFT 12
+#define MADERA_ISRC3_INT4_ENA_WIDTH 1
+#define MADERA_ISRC3_DEC1_ENA 0x0200
+#define MADERA_ISRC3_DEC1_ENA_MASK 0x0200
+#define MADERA_ISRC3_DEC1_ENA_SHIFT 9
+#define MADERA_ISRC3_DEC1_ENA_WIDTH 1
+#define MADERA_ISRC3_DEC2_ENA 0x0100
+#define MADERA_ISRC3_DEC2_ENA_MASK 0x0100
+#define MADERA_ISRC3_DEC2_ENA_SHIFT 8
+#define MADERA_ISRC3_DEC2_ENA_WIDTH 1
+#define MADERA_ISRC3_DEC3_ENA 0x0080
+#define MADERA_ISRC3_DEC3_ENA_MASK 0x0080
+#define MADERA_ISRC3_DEC3_ENA_SHIFT 7
+#define MADERA_ISRC3_DEC3_ENA_WIDTH 1
+#define MADERA_ISRC3_DEC4_ENA 0x0040
+#define MADERA_ISRC3_DEC4_ENA_MASK 0x0040
+#define MADERA_ISRC3_DEC4_ENA_SHIFT 6
+#define MADERA_ISRC3_DEC4_ENA_WIDTH 1
+#define MADERA_ISRC3_NOTCH_ENA 0x0001
+#define MADERA_ISRC3_NOTCH_ENA_MASK 0x0001
+#define MADERA_ISRC3_NOTCH_ENA_SHIFT 0
+#define MADERA_ISRC3_NOTCH_ENA_WIDTH 1
+
+/* (0x0EF9) ISRC4_CTRL_1 */
+#define MADERA_ISRC4_FSH_MASK 0xF800
+#define MADERA_ISRC4_FSH_SHIFT 11
+#define MADERA_ISRC4_FSH_WIDTH 5
+#define MADERA_ISRC4_CLK_SEL_MASK 0x0700
+#define MADERA_ISRC4_CLK_SEL_SHIFT 8
+#define MADERA_ISRC4_CLK_SEL_WIDTH 3
+
+/* (0x0EFA) ISRC4_CTRL_2 */
+#define MADERA_ISRC4_FSL_MASK 0xF800
+#define MADERA_ISRC4_FSL_SHIFT 11
+#define MADERA_ISRC4_FSL_WIDTH 5
+
+/* (0x0EFB) ISRC4_CTRL_3 */
+#define MADERA_ISRC4_INT1_ENA 0x8000
+#define MADERA_ISRC4_INT1_ENA_MASK 0x8000
+#define MADERA_ISRC4_INT1_ENA_SHIFT 15
+#define MADERA_ISRC4_INT1_ENA_WIDTH 1
+#define MADERA_ISRC4_INT2_ENA 0x4000
+#define MADERA_ISRC4_INT2_ENA_MASK 0x4000
+#define MADERA_ISRC4_INT2_ENA_SHIFT 14
+#define MADERA_ISRC4_INT2_ENA_WIDTH 1
+#define MADERA_ISRC4_INT3_ENA 0x2000
+#define MADERA_ISRC4_INT3_ENA_MASK 0x2000
+#define MADERA_ISRC4_INT3_ENA_SHIFT 13
+#define MADERA_ISRC4_INT3_ENA_WIDTH 1
+#define MADERA_ISRC4_INT4_ENA 0x1000
+#define MADERA_ISRC4_INT4_ENA_MASK 0x1000
+#define MADERA_ISRC4_INT4_ENA_SHIFT 12
+#define MADERA_ISRC4_INT4_ENA_WIDTH 1
+#define MADERA_ISRC4_DEC1_ENA 0x0200
+#define MADERA_ISRC4_DEC1_ENA_MASK 0x0200
+#define MADERA_ISRC4_DEC1_ENA_SHIFT 9
+#define MADERA_ISRC4_DEC1_ENA_WIDTH 1
+#define MADERA_ISRC4_DEC2_ENA 0x0100
+#define MADERA_ISRC4_DEC2_ENA_MASK 0x0100
+#define MADERA_ISRC4_DEC2_ENA_SHIFT 8
+#define MADERA_ISRC4_DEC2_ENA_WIDTH 1
+#define MADERA_ISRC4_DEC3_ENA 0x0080
+#define MADERA_ISRC4_DEC3_ENA_MASK 0x0080
+#define MADERA_ISRC4_DEC3_ENA_SHIFT 7
+#define MADERA_ISRC4_DEC3_ENA_WIDTH 1
+#define MADERA_ISRC4_DEC4_ENA 0x0040
+#define MADERA_ISRC4_DEC4_ENA_MASK 0x0040
+#define MADERA_ISRC4_DEC4_ENA_SHIFT 6
+#define MADERA_ISRC4_DEC4_ENA_WIDTH 1
+#define MADERA_ISRC4_NOTCH_ENA 0x0001
+#define MADERA_ISRC4_NOTCH_ENA_MASK 0x0001
+#define MADERA_ISRC4_NOTCH_ENA_SHIFT 0
+#define MADERA_ISRC4_NOTCH_ENA_WIDTH 1
+
+/* (0x0F00) Clock_Control */
+#define MADERA_EXT_NG_SEL_CLR 0x0080
+#define MADERA_EXT_NG_SEL_CLR_MASK 0x0080
+#define MADERA_EXT_NG_SEL_CLR_SHIFT 7
+#define MADERA_EXT_NG_SEL_CLR_WIDTH 1
+#define MADERA_EXT_NG_SEL_SET 0x0040
+#define MADERA_EXT_NG_SEL_SET_MASK 0x0040
+#define MADERA_EXT_NG_SEL_SET_SHIFT 6
+#define MADERA_EXT_NG_SEL_SET_WIDTH 1
+#define MADERA_CLK_R_ENA_CLR 0x0020
+#define MADERA_CLK_R_ENA_CLR_MASK 0x0020
+#define MADERA_CLK_R_ENA_CLR_SHIFT 5
+#define MADERA_CLK_R_ENA_CLR_WIDTH 1
+#define MADERA_CLK_R_ENA_SET 0x0010
+#define MADERA_CLK_R_ENA_SET_MASK 0x0010
+#define MADERA_CLK_R_ENA_SET_SHIFT 4
+#define MADERA_CLK_R_ENA_SET_WIDTH 1
+#define MADERA_CLK_NG_ENA_CLR 0x0008
+#define MADERA_CLK_NG_ENA_CLR_MASK 0x0008
+#define MADERA_CLK_NG_ENA_CLR_SHIFT 3
+#define MADERA_CLK_NG_ENA_CLR_WIDTH 1
+#define MADERA_CLK_NG_ENA_SET 0x0004
+#define MADERA_CLK_NG_ENA_SET_MASK 0x0004
+#define MADERA_CLK_NG_ENA_SET_SHIFT 2
+#define MADERA_CLK_NG_ENA_SET_WIDTH 1
+#define MADERA_CLK_L_ENA_CLR 0x0002
+#define MADERA_CLK_L_ENA_CLR_MASK 0x0002
+#define MADERA_CLK_L_ENA_CLR_SHIFT 1
+#define MADERA_CLK_L_ENA_CLR_WIDTH 1
+#define MADERA_CLK_L_ENA_SET 0x0001
+#define MADERA_CLK_L_ENA_SET_MASK 0x0001
+#define MADERA_CLK_L_ENA_SET_SHIFT 0
+#define MADERA_CLK_L_ENA_SET_WIDTH 1
+
+/* (0x0F01) ANC_SRC */
+#define MADERA_IN_RXANCR_SEL_MASK 0x0070
+#define MADERA_IN_RXANCR_SEL_SHIFT 4
+#define MADERA_IN_RXANCR_SEL_WIDTH 3
+#define MADERA_IN_RXANCL_SEL_MASK 0x0007
+#define MADERA_IN_RXANCL_SEL_SHIFT 0
+#define MADERA_IN_RXANCL_SEL_WIDTH 3
+
+/* (0x0F17) FCL_ADC_reformatter_control */
+#define MADERA_FCL_MIC_MODE_SEL 0x000C
+#define MADERA_FCL_MIC_MODE_SEL_SHIFT 2
+#define MADERA_FCL_MIC_MODE_SEL_WIDTH 2
+
+/* (0x0F73) FCR_ADC_reformatter_control */
+#define MADERA_FCR_MIC_MODE_SEL 0x000C
+#define MADERA_FCR_MIC_MODE_SEL_SHIFT 2
+#define MADERA_FCR_MIC_MODE_SEL_WIDTH 2
+
+/* (0x1480) DFC1_CTRL_W0 */
+#define MADERA_DFC1_RATE_MASK 0x007C
+#define MADERA_DFC1_RATE_SHIFT 2
+#define MADERA_DFC1_RATE_WIDTH 5
+#define MADERA_DFC1_DITH_ENA 0x0002
+#define MADERA_DFC1_DITH_ENA_MASK 0x0002
+#define MADERA_DFC1_DITH_ENA_SHIFT 1
+#define MADERA_DFC1_DITH_ENA_WIDTH 1
+#define MADERA_DFC1_ENA 0x0001
+#define MADERA_DFC1_ENA_MASK 0x0001
+#define MADERA_DFC1_ENA_SHIFT 0
+#define MADERA_DFC1_ENA_WIDTH 1
+
+/* (0x1482) DFC1_RX_W0 */
+#define MADERA_DFC1_RX_DATA_WIDTH_MASK 0x1F00
+#define MADERA_DFC1_RX_DATA_WIDTH_SHIFT 8
+#define MADERA_DFC1_RX_DATA_WIDTH_WIDTH 5
+
+#define MADERA_DFC1_RX_DATA_TYPE_MASK 0x0007
+#define MADERA_DFC1_RX_DATA_TYPE_SHIFT 0
+#define MADERA_DFC1_RX_DATA_TYPE_WIDTH 3
+
+/* (0x1484) DFC1_TX_W0 */
+#define MADERA_DFC1_TX_DATA_WIDTH_MASK 0x1F00
+#define MADERA_DFC1_TX_DATA_WIDTH_SHIFT 8
+#define MADERA_DFC1_TX_DATA_WIDTH_WIDTH 5
+
+#define MADERA_DFC1_TX_DATA_TYPE_MASK 0x0007
+#define MADERA_DFC1_TX_DATA_TYPE_SHIFT 0
+#define MADERA_DFC1_TX_DATA_TYPE_WIDTH 3
+
+/* (0x1600) ADSP2_IRQ0 */
+#define MADERA_DSP_IRQ2 0x0002
+#define MADERA_DSP_IRQ1 0x0001
+
+/* (0x1601) ADSP2_IRQ1 */
+#define MADERA_DSP_IRQ4 0x0002
+#define MADERA_DSP_IRQ3 0x0001
+
+/* (0x1602) ADSP2_IRQ2 */
+#define MADERA_DSP_IRQ6 0x0002
+#define MADERA_DSP_IRQ5 0x0001
+
+/* (0x1603) ADSP2_IRQ3 */
+#define MADERA_DSP_IRQ8 0x0002
+#define MADERA_DSP_IRQ7 0x0001
+
+/* (0x1604) ADSP2_IRQ4 */
+#define MADERA_DSP_IRQ10 0x0002
+#define MADERA_DSP_IRQ9 0x0001
+
+/* (0x1605) ADSP2_IRQ5 */
+#define MADERA_DSP_IRQ12 0x0002
+#define MADERA_DSP_IRQ11 0x0001
+
+/* (0x1606) ADSP2_IRQ6 */
+#define MADERA_DSP_IRQ14 0x0002
+#define MADERA_DSP_IRQ13 0x0001
+
+/* (0x1607) ADSP2_IRQ7 */
+#define MADERA_DSP_IRQ16 0x0002
+#define MADERA_DSP_IRQ15 0x0001
+
+/* (0x1700) GPIO1_CTRL_1 */
+#define MADERA_GP1_LVL 0x8000
+#define MADERA_GP1_LVL_MASK 0x8000
+#define MADERA_GP1_LVL_SHIFT 15
+#define MADERA_GP1_LVL_WIDTH 1
+#define MADERA_GP1_OP_CFG 0x4000
+#define MADERA_GP1_OP_CFG_MASK 0x4000
+#define MADERA_GP1_OP_CFG_SHIFT 14
+#define MADERA_GP1_OP_CFG_WIDTH 1
+#define MADERA_GP1_DB 0x2000
+#define MADERA_GP1_DB_MASK 0x2000
+#define MADERA_GP1_DB_SHIFT 13
+#define MADERA_GP1_DB_WIDTH 1
+#define MADERA_GP1_POL 0x1000
+#define MADERA_GP1_POL_MASK 0x1000
+#define MADERA_GP1_POL_SHIFT 12
+#define MADERA_GP1_POL_WIDTH 1
+#define MADERA_GP1_IP_CFG 0x0800
+#define MADERA_GP1_IP_CFG_MASK 0x0800
+#define MADERA_GP1_IP_CFG_SHIFT 11
+#define MADERA_GP1_IP_CFG_WIDTH 1
+#define MADERA_GP1_FN_MASK 0x03FF
+#define MADERA_GP1_FN_SHIFT 0
+#define MADERA_GP1_FN_WIDTH 10
+
+/* (0x1701) GPIO1_CTRL_2 */
+#define MADERA_GP1_DIR 0x8000
+#define MADERA_GP1_DIR_MASK 0x8000
+#define MADERA_GP1_DIR_SHIFT 15
+#define MADERA_GP1_DIR_WIDTH 1
+#define MADERA_GP1_PU 0x4000
+#define MADERA_GP1_PU_MASK 0x4000
+#define MADERA_GP1_PU_SHIFT 14
+#define MADERA_GP1_PU_WIDTH 1
+#define MADERA_GP1_PD 0x2000
+#define MADERA_GP1_PD_MASK 0x2000
+#define MADERA_GP1_PD_SHIFT 13
+#define MADERA_GP1_PD_WIDTH 1
+#define MADERA_GP1_DRV_STR_MASK 0x1800
+#define MADERA_GP1_DRV_STR_SHIFT 11
+#define MADERA_GP1_DRV_STR_WIDTH 2
+
+/* (0x1800) IRQ1_Status_1 */
+#define MADERA_DSP_SHARED_WR_COLL_EINT1 0x8000
+#define MADERA_DSP_SHARED_WR_COLL_EINT1_MASK 0x8000
+#define MADERA_DSP_SHARED_WR_COLL_EINT1_SHIFT 15
+#define MADERA_DSP_SHARED_WR_COLL_EINT1_WIDTH 1
+#define MADERA_CTRLIF_ERR_EINT1 0x1000
+#define MADERA_CTRLIF_ERR_EINT1_MASK 0x1000
+#define MADERA_CTRLIF_ERR_EINT1_SHIFT 12
+#define MADERA_CTRLIF_ERR_EINT1_WIDTH 1
+#define MADERA_SYSCLK_FAIL_EINT1 0x0200
+#define MADERA_SYSCLK_FAIL_EINT1_MASK 0x0200
+#define MADERA_SYSCLK_FAIL_EINT1_SHIFT 9
+#define MADERA_SYSCLK_FAIL_EINT1_WIDTH 1
+#define MADERA_CLOCK_DETECT_EINT1 0x0100
+#define MADERA_CLOCK_DETECT_EINT1_MASK 0x0100
+#define MADERA_CLOCK_DETECT_EINT1_SHIFT 8
+#define MADERA_CLOCK_DETECT_EINT1_WIDTH 1
+#define MADERA_BOOT_DONE_EINT1 0x0080
+#define MADERA_BOOT_DONE_EINT1_MASK 0x0080
+#define MADERA_BOOT_DONE_EINT1_SHIFT 7
+#define MADERA_BOOT_DONE_EINT1_WIDTH 1
+
+/* (0x1801) IRQ1_Status_2 */
+#define MADERA_FLLAO_LOCK_EINT1 0x0800
+#define MADERA_FLLAO_LOCK_EINT1_MASK 0x0800
+#define MADERA_FLLAO_LOCK_EINT1_SHIFT 11
+#define MADERA_FLLAO_LOCK_EINT1_WIDTH 1
+#define MADERA_FLL3_LOCK_EINT1 0x0400
+#define MADERA_FLL3_LOCK_EINT1_MASK 0x0400
+#define MADERA_FLL3_LOCK_EINT1_SHIFT 10
+#define MADERA_FLL3_LOCK_EINT1_WIDTH 1
+#define MADERA_FLL2_LOCK_EINT1 0x0200
+#define MADERA_FLL2_LOCK_EINT1_MASK 0x0200
+#define MADERA_FLL2_LOCK_EINT1_SHIFT 9
+#define MADERA_FLL2_LOCK_EINT1_WIDTH 1
+#define MADERA_FLL1_LOCK_EINT1 0x0100
+#define MADERA_FLL1_LOCK_EINT1_MASK 0x0100
+#define MADERA_FLL1_LOCK_EINT1_SHIFT 8
+#define MADERA_FLL1_LOCK_EINT1_WIDTH 1
+
+/* (0x1805) IRQ1_Status_6 */
+#define MADERA_MICDET2_EINT1 0x0200
+#define MADERA_MICDET2_EINT1_MASK 0x0200
+#define MADERA_MICDET2_EINT1_SHIFT 9
+#define MADERA_MICDET2_EINT1_WIDTH 1
+#define MADERA_MICDET1_EINT1 0x0100
+#define MADERA_MICDET1_EINT1_MASK 0x0100
+#define MADERA_MICDET1_EINT1_SHIFT 8
+#define MADERA_MICDET1_EINT1_WIDTH 1
+#define MADERA_HPDET_EINT1 0x0001
+#define MADERA_HPDET_EINT1_MASK 0x0001
+#define MADERA_HPDET_EINT1_SHIFT 0
+#define MADERA_HPDET_EINT1_WIDTH 1
+
+/* (0x1806) IRQ1_Status_7 */
+#define MADERA_MICD_CLAMP_FALL_EINT1 0x0020
+#define MADERA_MICD_CLAMP_FALL_EINT1_MASK 0x0020
+#define MADERA_MICD_CLAMP_FALL_EINT1_SHIFT 5
+#define MADERA_MICD_CLAMP_FALL_EINT1_WIDTH 1
+#define MADERA_MICD_CLAMP_RISE_EINT1 0x0010
+#define MADERA_MICD_CLAMP_RISE_EINT1_MASK 0x0010
+#define MADERA_MICD_CLAMP_RISE_EINT1_SHIFT 4
+#define MADERA_MICD_CLAMP_RISE_EINT1_WIDTH 1
+#define MADERA_JD2_FALL_EINT1 0x0008
+#define MADERA_JD2_FALL_EINT1_MASK 0x0008
+#define MADERA_JD2_FALL_EINT1_SHIFT 3
+#define MADERA_JD2_FALL_EINT1_WIDTH 1
+#define MADERA_JD2_RISE_EINT1 0x0004
+#define MADERA_JD2_RISE_EINT1_MASK 0x0004
+#define MADERA_JD2_RISE_EINT1_SHIFT 2
+#define MADERA_JD2_RISE_EINT1_WIDTH 1
+#define MADERA_JD1_FALL_EINT1 0x0002
+#define MADERA_JD1_FALL_EINT1_MASK 0x0002
+#define MADERA_JD1_FALL_EINT1_SHIFT 1
+#define MADERA_JD1_FALL_EINT1_WIDTH 1
+#define MADERA_JD1_RISE_EINT1 0x0001
+#define MADERA_JD1_RISE_EINT1_MASK 0x0001
+#define MADERA_JD1_RISE_EINT1_SHIFT 0
+#define MADERA_JD1_RISE_EINT1_WIDTH 1
+
+/* (0x1808) IRQ1_Status_9 */
+#define MADERA_ASRC2_IN2_LOCK_EINT1 0x0800
+#define MADERA_ASRC2_IN2_LOCK_EINT1_MASK 0x0800
+#define MADERA_ASRC2_IN2_LOCK_EINT1_SHIFT 11
+#define MADERA_ASRC2_IN2_LOCK_EINT1_WIDTH 1
+#define MADERA_ASRC2_IN1_LOCK_EINT1 0x0400
+#define MADERA_ASRC2_IN1_LOCK_EINT1_MASK 0x0400
+#define MADERA_ASRC2_IN1_LOCK_EINT1_SHIFT 10
+#define MADERA_ASRC2_IN1_LOCK_EINT1_WIDTH 1
+#define MADERA_ASRC1_IN2_LOCK_EINT1 0x0200
+#define MADERA_ASRC1_IN2_LOCK_EINT1_MASK 0x0200
+#define MADERA_ASRC1_IN2_LOCK_EINT1_SHIFT 9
+#define MADERA_ASRC1_IN2_LOCK_EINT1_WIDTH 1
+#define MADERA_ASRC1_IN1_LOCK_EINT1 0x0100
+#define MADERA_ASRC1_IN1_LOCK_EINT1_MASK 0x0100
+#define MADERA_ASRC1_IN1_LOCK_EINT1_SHIFT 8
+#define MADERA_ASRC1_IN1_LOCK_EINT1_WIDTH 1
+#define MADERA_DRC2_SIG_DET_EINT1 0x0002
+#define MADERA_DRC2_SIG_DET_EINT1_MASK 0x0002
+#define MADERA_DRC2_SIG_DET_EINT1_SHIFT 1
+#define MADERA_DRC2_SIG_DET_EINT1_WIDTH 1
+#define MADERA_DRC1_SIG_DET_EINT1 0x0001
+#define MADERA_DRC1_SIG_DET_EINT1_MASK 0x0001
+#define MADERA_DRC1_SIG_DET_EINT1_SHIFT 0
+#define MADERA_DRC1_SIG_DET_EINT1_WIDTH 1
+
+/* (0x180A) IRQ1_Status_11 */
+#define MADERA_DSP_IRQ16_EINT1 0x8000
+#define MADERA_DSP_IRQ16_EINT1_MASK 0x8000
+#define MADERA_DSP_IRQ16_EINT1_SHIFT 15
+#define MADERA_DSP_IRQ16_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ15_EINT1 0x4000
+#define MADERA_DSP_IRQ15_EINT1_MASK 0x4000
+#define MADERA_DSP_IRQ15_EINT1_SHIFT 14
+#define MADERA_DSP_IRQ15_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ14_EINT1 0x2000
+#define MADERA_DSP_IRQ14_EINT1_MASK 0x2000
+#define MADERA_DSP_IRQ14_EINT1_SHIFT 13
+#define MADERA_DSP_IRQ14_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ13_EINT1 0x1000
+#define MADERA_DSP_IRQ13_EINT1_MASK 0x1000
+#define MADERA_DSP_IRQ13_EINT1_SHIFT 12
+#define MADERA_DSP_IRQ13_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ12_EINT1 0x0800
+#define MADERA_DSP_IRQ12_EINT1_MASK 0x0800
+#define MADERA_DSP_IRQ12_EINT1_SHIFT 11
+#define MADERA_DSP_IRQ12_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ11_EINT1 0x0400
+#define MADERA_DSP_IRQ11_EINT1_MASK 0x0400
+#define MADERA_DSP_IRQ11_EINT1_SHIFT 10
+#define MADERA_DSP_IRQ11_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ10_EINT1 0x0200
+#define MADERA_DSP_IRQ10_EINT1_MASK 0x0200
+#define MADERA_DSP_IRQ10_EINT1_SHIFT 9
+#define MADERA_DSP_IRQ10_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ9_EINT1 0x0100
+#define MADERA_DSP_IRQ9_EINT1_MASK 0x0100
+#define MADERA_DSP_IRQ9_EINT1_SHIFT 8
+#define MADERA_DSP_IRQ9_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ8_EINT1 0x0080
+#define MADERA_DSP_IRQ8_EINT1_MASK 0x0080
+#define MADERA_DSP_IRQ8_EINT1_SHIFT 7
+#define MADERA_DSP_IRQ8_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ7_EINT1 0x0040
+#define MADERA_DSP_IRQ7_EINT1_MASK 0x0040
+#define MADERA_DSP_IRQ7_EINT1_SHIFT 6
+#define MADERA_DSP_IRQ7_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ6_EINT1 0x0020
+#define MADERA_DSP_IRQ6_EINT1_MASK 0x0020
+#define MADERA_DSP_IRQ6_EINT1_SHIFT 5
+#define MADERA_DSP_IRQ6_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ5_EINT1 0x0010
+#define MADERA_DSP_IRQ5_EINT1_MASK 0x0010
+#define MADERA_DSP_IRQ5_EINT1_SHIFT 4
+#define MADERA_DSP_IRQ5_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ4_EINT1 0x0008
+#define MADERA_DSP_IRQ4_EINT1_MASK 0x0008
+#define MADERA_DSP_IRQ4_EINT1_SHIFT 3
+#define MADERA_DSP_IRQ4_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ3_EINT1 0x0004
+#define MADERA_DSP_IRQ3_EINT1_MASK 0x0004
+#define MADERA_DSP_IRQ3_EINT1_SHIFT 2
+#define MADERA_DSP_IRQ3_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ2_EINT1 0x0002
+#define MADERA_DSP_IRQ2_EINT1_MASK 0x0002
+#define MADERA_DSP_IRQ2_EINT1_SHIFT 1
+#define MADERA_DSP_IRQ2_EINT1_WIDTH 1
+#define MADERA_DSP_IRQ1_EINT1 0x0001
+#define MADERA_DSP_IRQ1_EINT1_MASK 0x0001
+#define MADERA_DSP_IRQ1_EINT1_SHIFT 0
+#define MADERA_DSP_IRQ1_EINT1_WIDTH 1
+
+/* (0x180B) IRQ1_Status_12 */
+#define MADERA_SPKOUTR_SC_EINT1 0x0080
+#define MADERA_SPKOUTR_SC_EINT1_MASK 0x0080
+#define MADERA_SPKOUTR_SC_EINT1_SHIFT 7
+#define MADERA_SPKOUTR_SC_EINT1_WIDTH 1
+#define MADERA_SPKOUTL_SC_EINT1 0x0040
+#define MADERA_SPKOUTL_SC_EINT1_MASK 0x0040
+#define MADERA_SPKOUTL_SC_EINT1_SHIFT 6
+#define MADERA_SPKOUTL_SC_EINT1_WIDTH 1
+#define MADERA_HP3R_SC_EINT1 0x0020
+#define MADERA_HP3R_SC_EINT1_MASK 0x0020
+#define MADERA_HP3R_SC_EINT1_SHIFT 5
+#define MADERA_HP3R_SC_EINT1_WIDTH 1
+#define MADERA_HP3L_SC_EINT1 0x0010
+#define MADERA_HP3L_SC_EINT1_MASK 0x0010
+#define MADERA_HP3L_SC_EINT1_SHIFT 4
+#define MADERA_HP3L_SC_EINT1_WIDTH 1
+#define MADERA_HP2R_SC_EINT1 0x0008
+#define MADERA_HP2R_SC_EINT1_MASK 0x0008
+#define MADERA_HP2R_SC_EINT1_SHIFT 3
+#define MADERA_HP2R_SC_EINT1_WIDTH 1
+#define MADERA_HP2L_SC_EINT1 0x0004
+#define MADERA_HP2L_SC_EINT1_MASK 0x0004
+#define MADERA_HP2L_SC_EINT1_SHIFT 2
+#define MADERA_HP2L_SC_EINT1_WIDTH 1
+#define MADERA_HP1R_SC_EINT1 0x0002
+#define MADERA_HP1R_SC_EINT1_MASK 0x0002
+#define MADERA_HP1R_SC_EINT1_SHIFT 1
+#define MADERA_HP1R_SC_EINT1_WIDTH 1
+#define MADERA_HP1L_SC_EINT1 0x0001
+#define MADERA_HP1L_SC_EINT1_MASK 0x0001
+#define MADERA_HP1L_SC_EINT1_SHIFT 0
+#define MADERA_HP1L_SC_EINT1_WIDTH 1
+
+/* (0x180C) IRQ1_Status_13 */
+#define MADERA_SPKOUTR_ENABLE_DONE_EINT1 0x0080
+#define MADERA_SPKOUTR_ENABLE_DONE_EINT1_MASK 0x0080
+#define MADERA_SPKOUTR_ENABLE_DONE_EINT1_SHIFT 7
+#define MADERA_SPKOUTR_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_SPKOUTL_ENABLE_DONE_EINT1 0x0040
+#define MADERA_SPKOUTL_ENABLE_DONE_EINT1_MASK 0x0040
+#define MADERA_SPKOUTL_ENABLE_DONE_EINT1_SHIFT 6
+#define MADERA_SPKOUTL_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_HP3R_ENABLE_DONE_EINT1 0x0020
+#define MADERA_HP3R_ENABLE_DONE_EINT1_MASK 0x0020
+#define MADERA_HP3R_ENABLE_DONE_EINT1_SHIFT 5
+#define MADERA_HP3R_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_HP3L_ENABLE_DONE_EINT1 0x0010
+#define MADERA_HP3L_ENABLE_DONE_EINT1_MASK 0x0010
+#define MADERA_HP3L_ENABLE_DONE_EINT1_SHIFT 4
+#define MADERA_HP3L_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_HP2R_ENABLE_DONE_EINT1 0x0008
+#define MADERA_HP2R_ENABLE_DONE_EINT1_MASK 0x0008
+#define MADERA_HP2R_ENABLE_DONE_EINT1_SHIFT 3
+#define MADERA_HP2R_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_HP2L_ENABLE_DONE_EINT1 0x0004
+#define MADERA_HP2L_ENABLE_DONE_EINT1_MASK 0x0004
+#define MADERA_HP2L_ENABLE_DONE_EINT1_SHIFT 2
+#define MADERA_HP2L_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_HP1R_ENABLE_DONE_EINT1 0x0002
+#define MADERA_HP1R_ENABLE_DONE_EINT1_MASK 0x0002
+#define MADERA_HP1R_ENABLE_DONE_EINT1_SHIFT 1
+#define MADERA_HP1R_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_HP1L_ENABLE_DONE_EINT1 0x0001
+#define MADERA_HP1L_ENABLE_DONE_EINT1_MASK 0x0001
+#define MADERA_HP1L_ENABLE_DONE_EINT1_SHIFT 0
+#define MADERA_HP1L_ENABLE_DONE_EINT1_WIDTH 1
+
+/* (0x180D) IRQ1_Status_14 */
+#define MADERA_SPKOUTR_DISABLE_DONE_EINT1 0x0080
+#define MADERA_SPKOUTR_DISABLE_DONE_EINT1_MASK 0x0080
+#define MADERA_SPKOUTR_DISABLE_DONE_EINT1_SHIFT 7
+#define MADERA_SPKOUTR_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_SPKOUTL_DISABLE_DONE_EINT1 0x0040
+#define MADERA_SPKOUTL_DISABLE_DONE_EINT1_MASK 0x0040
+#define MADERA_SPKOUTL_DISABLE_DONE_EINT1_SHIFT 6
+#define MADERA_SPKOUTL_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_HP3R_DISABLE_DONE_EINT1 0x0020
+#define MADERA_HP3R_DISABLE_DONE_EINT1_MASK 0x0020
+#define MADERA_HP3R_DISABLE_DONE_EINT1_SHIFT 5
+#define MADERA_HP3R_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_HP3L_DISABLE_DONE_EINT1 0x0010
+#define MADERA_HP3L_DISABLE_DONE_EINT1_MASK 0x0010
+#define MADERA_HP3L_DISABLE_DONE_EINT1_SHIFT 4
+#define MADERA_HP3L_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_HP2R_DISABLE_DONE_EINT1 0x0008
+#define MADERA_HP2R_DISABLE_DONE_EINT1_MASK 0x0008
+#define MADERA_HP2R_DISABLE_DONE_EINT1_SHIFT 3
+#define MADERA_HP2R_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_HP2L_DISABLE_DONE_EINT1 0x0004
+#define MADERA_HP2L_DISABLE_DONE_EINT1_MASK 0x0004
+#define MADERA_HP2L_DISABLE_DONE_EINT1_SHIFT 2
+#define MADERA_HP2L_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_HP1R_DISABLE_DONE_EINT1 0x0002
+#define MADERA_HP1R_DISABLE_DONE_EINT1_MASK 0x0002
+#define MADERA_HP1R_DISABLE_DONE_EINT1_SHIFT 1
+#define MADERA_HP1R_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_HP1L_DISABLE_DONE_EINT1 0x0001
+#define MADERA_HP1L_DISABLE_DONE_EINT1_MASK 0x0001
+#define MADERA_HP1L_DISABLE_DONE_EINT1_SHIFT 0
+#define MADERA_HP1L_DISABLE_DONE_EINT1_WIDTH 1
+
+/* (0x180E) IRQ1_Status_15 */
+#define MADERA_SPK_OVERHEAT_WARN_EINT1 0x0004
+#define MADERA_SPK_OVERHEAT_WARN_EINT1_MASK 0x0004
+#define MADERA_SPK_OVERHEAT_WARN_EINT1_SHIFT 2
+#define MADERA_SPK_OVERHEAT_WARN_EINT1_WIDTH 1
+#define MADERA_SPK_OVERHEAT_EINT1 0x0002
+#define MADERA_SPK_OVERHEAT_EINT1_MASK 0x0002
+#define MADERA_SPK_OVERHEAT_EINT1_SHIFT 1
+#define MADERA_SPK_OVERHEAT_EINT1_WIDTH 1
+#define MADERA_SPK_SHUTDOWN_EINT1 0x0001
+#define MADERA_SPK_SHUTDOWN_EINT1_MASK 0x0001
+#define MADERA_SPK_SHUTDOWN_EINT1_SHIFT 0
+#define MADERA_SPK_SHUTDOWN_EINT1_WIDTH 1
+
+/* (0x1820) - IRQ1 Status 33 */
+#define MADERA_ADSP_ERROR_STATUS_DSP7 0x0040
+#define MADERA_ADSP_ERROR_STATUS_DSP7_MASK 0x0040
+#define MADERA_ADSP_ERROR_STATUS_DSP7_SHIFT 6
+#define MADERA_ADSP_ERROR_STATUS_DSP7_WIDTH 1
+#define MADERA_ADSP_ERROR_STATUS_DSP6 0x0020
+#define MADERA_ADSP_ERROR_STATUS_DSP6_MASK 0x0020
+#define MADERA_ADSP_ERROR_STATUS_DSP6_SHIFT 5
+#define MADERA_ADSP_ERROR_STATUS_DSP6_WIDTH 1
+#define MADERA_ADSP_ERROR_STATUS_DSP5 0x0010
+#define MADERA_ADSP_ERROR_STATUS_DSP5_MASK 0x0010
+#define MADERA_ADSP_ERROR_STATUS_DSP5_SHIFT 4
+#define MADERA_ADSP_ERROR_STATUS_DSP5_WIDTH 1
+#define MADERA_ADSP_ERROR_STATUS_DSP4 0x0008
+#define MADERA_ADSP_ERROR_STATUS_DSP4_MASK 0x0008
+#define MADERA_ADSP_ERROR_STATUS_DSP4_SHIFT 3
+#define MADERA_ADSP_ERROR_STATUS_DSP4_WIDTH 1
+#define MADERA_ADSP_ERROR_STATUS_DSP3 0x0004
+#define MADERA_ADSP_ERROR_STATUS_DSP3_MASK 0x0004
+#define MADERA_ADSP_ERROR_STATUS_DSP3_SHIFT 2
+#define MADERA_ADSP_ERROR_STATUS_DSP3_WIDTH 1
+#define MADERA_ADSP_ERROR_STATUS_DSP2 0x0002
+#define MADERA_ADSP_ERROR_STATUS_DSP2_MASK 0x0002
+#define MADERA_ADSP_ERROR_STATUS_DSP2_SHIFT 1
+#define MADERA_ADSP_ERROR_STATUS_DSP2_WIDTH 1
+#define MADERA_ADSP_ERROR_STATUS_DSP1 0x0001
+#define MADERA_ADSP_ERROR_STATUS_DSP1_MASK 0x0001
+#define MADERA_ADSP_ERROR_STATUS_DSP1_SHIFT 0
+#define MADERA_ADSP_ERROR_STATUS_DSP1_WIDTH 1
+
+/* (0x1840) IRQ1_Mask_1 */
+#define MADERA_IM_DSP_SHARED_WR_COLL_EINT1 0x8000
+#define MADERA_IM_DSP_SHARED_WR_COLL_EINT1_MASK 0x8000
+#define MADERA_IM_DSP_SHARED_WR_COLL_EINT1_SHIFT 15
+#define MADERA_IM_DSP_SHARED_WR_COLL_EINT1_WIDTH 1
+#define MADERA_IM_CTRLIF_ERR_EINT1 0x1000
+#define MADERA_IM_CTRLIF_ERR_EINT1_MASK 0x1000
+#define MADERA_IM_CTRLIF_ERR_EINT1_SHIFT 12
+#define MADERA_IM_CTRLIF_ERR_EINT1_WIDTH 1
+#define MADERA_IM_SYSCLK_FAIL_EINT1 0x0200
+#define MADERA_IM_SYSCLK_FAIL_EINT1_MASK 0x0200
+#define MADERA_IM_SYSCLK_FAIL_EINT1_SHIFT 9
+#define MADERA_IM_SYSCLK_FAIL_EINT1_WIDTH 1
+#define MADERA_IM_CLOCK_DETECT_EINT1 0x0100
+#define MADERA_IM_CLOCK_DETECT_EINT1_MASK 0x0100
+#define MADERA_IM_CLOCK_DETECT_EINT1_SHIFT 8
+#define MADERA_IM_CLOCK_DETECT_EINT1_WIDTH 1
+#define MADERA_IM_BOOT_DONE_EINT1 0x0080
+#define MADERA_IM_BOOT_DONE_EINT1_MASK 0x0080
+#define MADERA_IM_BOOT_DONE_EINT1_SHIFT 7
+#define MADERA_IM_BOOT_DONE_EINT1_WIDTH 1
+
+/* (0x1841) IRQ1_Mask_2 */
+#define MADERA_IM_FLL3_LOCK_EINT1 0x0400
+#define MADERA_IM_FLL3_LOCK_EINT1_MASK 0x0400
+#define MADERA_IM_FLL3_LOCK_EINT1_SHIFT 10
+#define MADERA_IM_FLL3_LOCK_EINT1_WIDTH 1
+#define MADERA_IM_FLL2_LOCK_EINT1 0x0200
+#define MADERA_IM_FLL2_LOCK_EINT1_MASK 0x0200
+#define MADERA_IM_FLL2_LOCK_EINT1_SHIFT 9
+#define MADERA_IM_FLL2_LOCK_EINT1_WIDTH 1
+#define MADERA_IM_FLL1_LOCK_EINT1 0x0100
+#define MADERA_IM_FLL1_LOCK_EINT1_MASK 0x0100
+#define MADERA_IM_FLL1_LOCK_EINT1_SHIFT 8
+#define MADERA_IM_FLL1_LOCK_EINT1_WIDTH 1
+
+/* (0x1845) IRQ1_Mask_6 */
+#define MADERA_IM_MICDET2_EINT1 0x0200
+#define MADERA_IM_MICDET2_EINT1_MASK 0x0200
+#define MADERA_IM_MICDET2_EINT1_SHIFT 9
+#define MADERA_IM_MICDET2_EINT1_WIDTH 1
+#define MADERA_IM_MICDET1_EINT1 0x0100
+#define MADERA_IM_MICDET1_EINT1_MASK 0x0100
+#define MADERA_IM_MICDET1_EINT1_SHIFT 8
+#define MADERA_IM_MICDET1_EINT1_WIDTH 1
+#define MADERA_IM_HPDET_EINT1 0x0001
+#define MADERA_IM_HPDET_EINT1_MASK 0x0001
+#define MADERA_IM_HPDET_EINT1_SHIFT 0
+#define MADERA_IM_HPDET_EINT1_WIDTH 1
+
+/* (0x1846) IRQ1_Mask_7 */
+#define MADERA_IM_MICD_CLAMP_FALL_EINT1 0x0020
+#define MADERA_IM_MICD_CLAMP_FALL_EINT1_MASK 0x0020
+#define MADERA_IM_MICD_CLAMP_FALL_EINT1_SHIFT 5
+#define MADERA_IM_MICD_CLAMP_FALL_EINT1_WIDTH 1
+#define MADERA_IM_MICD_CLAMP_RISE_EINT1 0x0010
+#define MADERA_IM_MICD_CLAMP_RISE_EINT1_MASK 0x0010
+#define MADERA_IM_MICD_CLAMP_RISE_EINT1_SHIFT 4
+#define MADERA_IM_MICD_CLAMP_RISE_EINT1_WIDTH 1
+#define MADERA_IM_JD2_FALL_EINT1 0x0008
+#define MADERA_IM_JD2_FALL_EINT1_MASK 0x0008
+#define MADERA_IM_JD2_FALL_EINT1_SHIFT 3
+#define MADERA_IM_JD2_FALL_EINT1_WIDTH 1
+#define MADERA_IM_JD2_RISE_EINT1 0x0004
+#define MADERA_IM_JD2_RISE_EINT1_MASK 0x0004
+#define MADERA_IM_JD2_RISE_EINT1_SHIFT 2
+#define MADERA_IM_JD2_RISE_EINT1_WIDTH 1
+#define MADERA_IM_JD1_FALL_EINT1 0x0002
+#define MADERA_IM_JD1_FALL_EINT1_MASK 0x0002
+#define MADERA_IM_JD1_FALL_EINT1_SHIFT 1
+#define MADERA_IM_JD1_FALL_EINT1_WIDTH 1
+#define MADERA_IM_JD1_RISE_EINT1 0x0001
+#define MADERA_IM_JD1_RISE_EINT1_MASK 0x0001
+#define MADERA_IM_JD1_RISE_EINT1_SHIFT 0
+#define MADERA_IM_JD1_RISE_EINT1_WIDTH 1
+
+/* (0x1848) IRQ1_Mask_9 */
+#define MADERA_IM_ASRC2_IN2_LOCK_EINT1 0x0800
+#define MADERA_IM_ASRC2_IN2_LOCK_EINT1_MASK 0x0800
+#define MADERA_IM_ASRC2_IN2_LOCK_EINT1_SHIFT 11
+#define MADERA_IM_ASRC2_IN2_LOCK_EINT1_WIDTH 1
+#define MADERA_IM_ASRC2_IN1_LOCK_EINT1 0x0400
+#define MADERA_IM_ASRC2_IN1_LOCK_EINT1_MASK 0x0400
+#define MADERA_IM_ASRC2_IN1_LOCK_EINT1_SHIFT 10
+#define MADERA_IM_ASRC2_IN1_LOCK_EINT1_WIDTH 1
+#define MADERA_IM_ASRC1_IN2_LOCK_EINT1 0x0200
+#define MADERA_IM_ASRC1_IN2_LOCK_EINT1_MASK 0x0200
+#define MADERA_IM_ASRC1_IN2_LOCK_EINT1_SHIFT 9
+#define MADERA_IM_ASRC1_IN2_LOCK_EINT1_WIDTH 1
+#define MADERA_IM_ASRC1_IN1_LOCK_EINT1 0x0100
+#define MADERA_IM_ASRC1_IN1_LOCK_EINT1_MASK 0x0100
+#define MADERA_IM_ASRC1_IN1_LOCK_EINT1_SHIFT 8
+#define MADERA_IM_ASRC1_IN1_LOCK_EINT1_WIDTH 1
+#define MADERA_IM_DRC2_SIG_DET_EINT1 0x0002
+#define MADERA_IM_DRC2_SIG_DET_EINT1_MASK 0x0002
+#define MADERA_IM_DRC2_SIG_DET_EINT1_SHIFT 1
+#define MADERA_IM_DRC2_SIG_DET_EINT1_WIDTH 1
+#define MADERA_IM_DRC1_SIG_DET_EINT1 0x0001
+#define MADERA_IM_DRC1_SIG_DET_EINT1_MASK 0x0001
+#define MADERA_IM_DRC1_SIG_DET_EINT1_SHIFT 0
+#define MADERA_IM_DRC1_SIG_DET_EINT1_WIDTH 1
+
+/* (0x184A) IRQ1_Mask_11 */
+#define MADERA_IM_DSP_IRQ16_EINT1 0x8000
+#define MADERA_IM_DSP_IRQ16_EINT1_MASK 0x8000
+#define MADERA_IM_DSP_IRQ16_EINT1_SHIFT 15
+#define MADERA_IM_DSP_IRQ16_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ15_EINT1 0x4000
+#define MADERA_IM_DSP_IRQ15_EINT1_MASK 0x4000
+#define MADERA_IM_DSP_IRQ15_EINT1_SHIFT 14
+#define MADERA_IM_DSP_IRQ15_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ14_EINT1 0x2000
+#define MADERA_IM_DSP_IRQ14_EINT1_MASK 0x2000
+#define MADERA_IM_DSP_IRQ14_EINT1_SHIFT 13
+#define MADERA_IM_DSP_IRQ14_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ13_EINT1 0x1000
+#define MADERA_IM_DSP_IRQ13_EINT1_MASK 0x1000
+#define MADERA_IM_DSP_IRQ13_EINT1_SHIFT 12
+#define MADERA_IM_DSP_IRQ13_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ12_EINT1 0x0800
+#define MADERA_IM_DSP_IRQ12_EINT1_MASK 0x0800
+#define MADERA_IM_DSP_IRQ12_EINT1_SHIFT 11
+#define MADERA_IM_DSP_IRQ12_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ11_EINT1 0x0400
+#define MADERA_IM_DSP_IRQ11_EINT1_MASK 0x0400
+#define MADERA_IM_DSP_IRQ11_EINT1_SHIFT 10
+#define MADERA_IM_DSP_IRQ11_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ10_EINT1 0x0200
+#define MADERA_IM_DSP_IRQ10_EINT1_MASK 0x0200
+#define MADERA_IM_DSP_IRQ10_EINT1_SHIFT 9
+#define MADERA_IM_DSP_IRQ10_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ9_EINT1 0x0100
+#define MADERA_IM_DSP_IRQ9_EINT1_MASK 0x0100
+#define MADERA_IM_DSP_IRQ9_EINT1_SHIFT 8
+#define MADERA_IM_DSP_IRQ9_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ8_EINT1 0x0080
+#define MADERA_IM_DSP_IRQ8_EINT1_MASK 0x0080
+#define MADERA_IM_DSP_IRQ8_EINT1_SHIFT 7
+#define MADERA_IM_DSP_IRQ8_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ7_EINT1 0x0040
+#define MADERA_IM_DSP_IRQ7_EINT1_MASK 0x0040
+#define MADERA_IM_DSP_IRQ7_EINT1_SHIFT 6
+#define MADERA_IM_DSP_IRQ7_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ6_EINT1 0x0020
+#define MADERA_IM_DSP_IRQ6_EINT1_MASK 0x0020
+#define MADERA_IM_DSP_IRQ6_EINT1_SHIFT 5
+#define MADERA_IM_DSP_IRQ6_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ5_EINT1 0x0010
+#define MADERA_IM_DSP_IRQ5_EINT1_MASK 0x0010
+#define MADERA_IM_DSP_IRQ5_EINT1_SHIFT 4
+#define MADERA_IM_DSP_IRQ5_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ4_EINT1 0x0008
+#define MADERA_IM_DSP_IRQ4_EINT1_MASK 0x0008
+#define MADERA_IM_DSP_IRQ4_EINT1_SHIFT 3
+#define MADERA_IM_DSP_IRQ4_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ3_EINT1 0x0004
+#define MADERA_IM_DSP_IRQ3_EINT1_MASK 0x0004
+#define MADERA_IM_DSP_IRQ3_EINT1_SHIFT 2
+#define MADERA_IM_DSP_IRQ3_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ2_EINT1 0x0002
+#define MADERA_IM_DSP_IRQ2_EINT1_MASK 0x0002
+#define MADERA_IM_DSP_IRQ2_EINT1_SHIFT 1
+#define MADERA_IM_DSP_IRQ2_EINT1_WIDTH 1
+#define MADERA_IM_DSP_IRQ1_EINT1 0x0001
+#define MADERA_IM_DSP_IRQ1_EINT1_MASK 0x0001
+#define MADERA_IM_DSP_IRQ1_EINT1_SHIFT 0
+#define MADERA_IM_DSP_IRQ1_EINT1_WIDTH 1
+
+/* (0x184B) IRQ1_Mask_12 */
+#define MADERA_IM_SPKOUTR_SC_EINT1 0x0080
+#define MADERA_IM_SPKOUTR_SC_EINT1_MASK 0x0080
+#define MADERA_IM_SPKOUTR_SC_EINT1_SHIFT 7
+#define MADERA_IM_SPKOUTR_SC_EINT1_WIDTH 1
+#define MADERA_IM_SPKOUTL_SC_EINT1 0x0040
+#define MADERA_IM_SPKOUTL_SC_EINT1_MASK 0x0040
+#define MADERA_IM_SPKOUTL_SC_EINT1_SHIFT 6
+#define MADERA_IM_SPKOUTL_SC_EINT1_WIDTH 1
+#define MADERA_IM_HP3R_SC_EINT1 0x0020
+#define MADERA_IM_HP3R_SC_EINT1_MASK 0x0020
+#define MADERA_IM_HP3R_SC_EINT1_SHIFT 5
+#define MADERA_IM_HP3R_SC_EINT1_WIDTH 1
+#define MADERA_IM_HP3L_SC_EINT1 0x0010
+#define MADERA_IM_HP3L_SC_EINT1_MASK 0x0010
+#define MADERA_IM_HP3L_SC_EINT1_SHIFT 4
+#define MADERA_IM_HP3L_SC_EINT1_WIDTH 1
+#define MADERA_IM_HP2R_SC_EINT1 0x0008
+#define MADERA_IM_HP2R_SC_EINT1_MASK 0x0008
+#define MADERA_IM_HP2R_SC_EINT1_SHIFT 3
+#define MADERA_IM_HP2R_SC_EINT1_WIDTH 1
+#define MADERA_IM_HP2L_SC_EINT1 0x0004
+#define MADERA_IM_HP2L_SC_EINT1_MASK 0x0004
+#define MADERA_IM_HP2L_SC_EINT1_SHIFT 2
+#define MADERA_IM_HP2L_SC_EINT1_WIDTH 1
+#define MADERA_IM_HP1R_SC_EINT1 0x0002
+#define MADERA_IM_HP1R_SC_EINT1_MASK 0x0002
+#define MADERA_IM_HP1R_SC_EINT1_SHIFT 1
+#define MADERA_IM_HP1R_SC_EINT1_WIDTH 1
+#define MADERA_IM_HP1L_SC_EINT1 0x0001
+#define MADERA_IM_HP1L_SC_EINT1_MASK 0x0001
+#define MADERA_IM_HP1L_SC_EINT1_SHIFT 0
+#define MADERA_IM_HP1L_SC_EINT1_WIDTH 1
+
+/* (0x184C) IRQ1_Mask_13 */
+#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT1 0x0080
+#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT1_MASK 0x0080
+#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT1_SHIFT 7
+#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT1 0x0040
+#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT1_MASK 0x0040
+#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT1_SHIFT 6
+#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_HP3R_ENABLE_DONE_EINT1 0x0020
+#define MADERA_IM_HP3R_ENABLE_DONE_EINT1_MASK 0x0020
+#define MADERA_IM_HP3R_ENABLE_DONE_EINT1_SHIFT 5
+#define MADERA_IM_HP3R_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_HP3L_ENABLE_DONE_EINT1 0x0010
+#define MADERA_IM_HP3L_ENABLE_DONE_EINT1_MASK 0x0010
+#define MADERA_IM_HP3L_ENABLE_DONE_EINT1_SHIFT 4
+#define MADERA_IM_HP3L_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_HP2R_ENABLE_DONE_EINT1 0x0008
+#define MADERA_IM_HP2R_ENABLE_DONE_EINT1_MASK 0x0008
+#define MADERA_IM_HP2R_ENABLE_DONE_EINT1_SHIFT 3
+#define MADERA_IM_HP2R_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_HP2L_ENABLE_DONE_EINT1 0x0004
+#define MADERA_IM_HP2L_ENABLE_DONE_EINT1_MASK 0x0004
+#define MADERA_IM_HP2L_ENABLE_DONE_EINT1_SHIFT 2
+#define MADERA_IM_HP2L_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_HP1R_ENABLE_DONE_EINT1 0x0002
+#define MADERA_IM_HP1R_ENABLE_DONE_EINT1_MASK 0x0002
+#define MADERA_IM_HP1R_ENABLE_DONE_EINT1_SHIFT 1
+#define MADERA_IM_HP1R_ENABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_HP1L_ENABLE_DONE_EINT1 0x0001
+#define MADERA_IM_HP1L_ENABLE_DONE_EINT1_MASK 0x0001
+#define MADERA_IM_HP1L_ENABLE_DONE_EINT1_SHIFT 0
+#define MADERA_IM_HP1L_ENABLE_DONE_EINT1_WIDTH 1
+
+/* (0x184D) IRQ1_Mask_14 */
+#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT1 0x0080
+#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT1_MASK 0x0080
+#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT1_SHIFT 7
+#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT1 0x0040
+#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT1_MASK 0x0040
+#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT1_SHIFT 6
+#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_HP3R_DISABLE_DONE_EINT1 0x0020
+#define MADERA_IM_HP3R_DISABLE_DONE_EINT1_MASK 0x0020
+#define MADERA_IM_HP3R_DISABLE_DONE_EINT1_SHIFT 5
+#define MADERA_IM_HP3R_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_HP3L_DISABLE_DONE_EINT1 0x0010
+#define MADERA_IM_HP3L_DISABLE_DONE_EINT1_MASK 0x0010
+#define MADERA_IM_HP3L_DISABLE_DONE_EINT1_SHIFT 4
+#define MADERA_IM_HP3L_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_HP2R_DISABLE_DONE_EINT1 0x0008
+#define MADERA_IM_HP2R_DISABLE_DONE_EINT1_MASK 0x0008
+#define MADERA_IM_HP2R_DISABLE_DONE_EINT1_SHIFT 3
+#define MADERA_IM_HP2R_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_HP2L_DISABLE_DONE_EINT1 0x0004
+#define MADERA_IM_HP2L_DISABLE_DONE_EINT1_MASK 0x0004
+#define MADERA_IM_HP2L_DISABLE_DONE_EINT1_SHIFT 2
+#define MADERA_IM_HP2L_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_HP1R_DISABLE_DONE_EINT1 0x0002
+#define MADERA_IM_HP1R_DISABLE_DONE_EINT1_MASK 0x0002
+#define MADERA_IM_HP1R_DISABLE_DONE_EINT1_SHIFT 1
+#define MADERA_IM_HP1R_DISABLE_DONE_EINT1_WIDTH 1
+#define MADERA_IM_HP1L_DISABLE_DONE_EINT1 0x0001
+#define MADERA_IM_HP1L_DISABLE_DONE_EINT1_MASK 0x0001
+#define MADERA_IM_HP1L_DISABLE_DONE_EINT1_SHIFT 0
+#define MADERA_IM_HP1L_DISABLE_DONE_EINT1_WIDTH 1
+
+/* (0x184E) IRQ1_Mask_15 */
+#define MADERA_IM_SPK_OVERHEAT_WARN_EINT1 0x0004
+#define MADERA_IM_SPK_OVERHEAT_WARN_EINT1_MASK 0x0004
+#define MADERA_IM_SPK_OVERHEAT_WARN_EINT1_SHIFT 2
+#define MADERA_IM_SPK_OVERHEAT_WARN_EINT1_WIDTH 1
+#define MADERA_IM_SPK_OVERHEAT_EINT1 0x0002
+#define MADERA_IM_SPK_OVERHEAT_EINT1_MASK 0x0002
+#define MADERA_IM_SPK_OVERHEAT_EINT1_SHIFT 1
+#define MADERA_IM_SPK_OVERHEAT_EINT1_WIDTH 1
+#define MADERA_IM_SPK_SHUTDOWN_EINT1 0x0001
+#define MADERA_IM_SPK_SHUTDOWN_EINT1_MASK 0x0001
+#define MADERA_IM_SPK_SHUTDOWN_EINT1_SHIFT 0
+#define MADERA_IM_SPK_SHUTDOWN_EINT1_WIDTH 1
+
+/* (0x1880) - IRQ1 Raw Status 1 */
+#define MADERA_DSP_SHARED_WR_COLL_STS1 0x8000
+#define MADERA_DSP_SHARED_WR_COLL_STS1_MASK 0x8000
+#define MADERA_DSP_SHARED_WR_COLL_STS1_SHIFT 15
+#define MADERA_DSP_SHARED_WR_COLL_STS1_WIDTH 1
+#define MADERA_CTRLIF_ERR_STS1 0x1000
+#define MADERA_CTRLIF_ERR_STS1_MASK 0x1000
+#define MADERA_CTRLIF_ERR_STS1_SHIFT 12
+#define MADERA_CTRLIF_ERR_STS1_WIDTH 1
+#define MADERA_SYSCLK_FAIL_STS1 0x0200
+#define MADERA_SYSCLK_FAIL_STS1_MASK 0x0200
+#define MADERA_SYSCLK_FAIL_STS1_SHIFT 9
+#define MADERA_SYSCLK_FAIL_STS1_WIDTH 1
+#define MADERA_CLOCK_DETECT_STS1 0x0100
+#define MADERA_CLOCK_DETECT_STS1_MASK 0x0100
+#define MADERA_CLOCK_DETECT_STS1_SHIFT 8
+#define MADERA_CLOCK_DETECT_STS1_WIDTH 1
+#define MADERA_BOOT_DONE_STS1 0x0080
+#define MADERA_BOOT_DONE_STS1_MASK 0x0080
+#define MADERA_BOOT_DONE_STS1_SHIFT 7
+#define MADERA_BOOT_DONE_STS1_WIDTH 1
+
+/* (0x1881) - IRQ1 Raw Status 2 */
+#define MADERA_FLL3_LOCK_STS1 0x0400
+#define MADERA_FLL3_LOCK_STS1_MASK 0x0400
+#define MADERA_FLL3_LOCK_STS1_SHIFT 10
+#define MADERA_FLL3_LOCK_STS1_WIDTH 1
+#define MADERA_FLL2_LOCK_STS1 0x0200
+#define MADERA_FLL2_LOCK_STS1_MASK 0x0200
+#define MADERA_FLL2_LOCK_STS1_SHIFT 9
+#define MADERA_FLL2_LOCK_STS1_WIDTH 1
+#define MADERA_FLL1_LOCK_STS1 0x0100
+#define MADERA_FLL1_LOCK_STS1_MASK 0x0100
+#define MADERA_FLL1_LOCK_STS1_SHIFT 8
+#define MADERA_FLL1_LOCK_STS1_WIDTH 1
+
+/* (0x1886) - IRQ1 Raw Status 7 */
+#define MADERA_MICD_CLAMP_FALL_STS1 0x0020
+#define MADERA_MICD_CLAMP_FALL_STS1_MASK 0x0020
+#define MADERA_MICD_CLAMP_FALL_STS1_SHIFT 5
+#define MADERA_MICD_CLAMP_FALL_STS1_WIDTH 1
+#define MADERA_MICD_CLAMP_RISE_STS1 0x0010
+#define MADERA_MICD_CLAMP_RISE_STS1_MASK 0x0010
+#define MADERA_MICD_CLAMP_RISE_STS1_SHIFT 4
+#define MADERA_MICD_CLAMP_RISE_STS1_WIDTH 1
+#define MADERA_JD2_FALL_STS1 0x0008
+#define MADERA_JD2_FALL_STS1_MASK 0x0008
+#define MADERA_JD2_FALL_STS1_SHIFT 3
+#define MADERA_JD2_FALL_STS1_WIDTH 1
+#define MADERA_JD2_RISE_STS1 0x0004
+#define MADERA_JD2_RISE_STS1_MASK 0x0004
+#define MADERA_JD2_RISE_STS1_SHIFT 2
+#define MADERA_JD2_RISE_STS1_WIDTH 1
+#define MADERA_JD1_FALL_STS1 0x0002
+#define MADERA_JD1_FALL_STS1_MASK 0x0002
+#define MADERA_JD1_FALL_STS1_SHIFT 1
+#define MADERA_JD1_FALL_STS1_WIDTH 1
+#define MADERA_JD1_RISE_STS1 0x0001
+#define MADERA_JD1_RISE_STS1_MASK 0x0001
+#define MADERA_JD1_RISE_STS1_SHIFT 0
+#define MADERA_JD1_RISE_STS1_WIDTH 1
+
+/* (0x1888) - IRQ1 Raw Status 9 */
+#define MADERA_ASRC2_IN2_LOCK_STS1 0x0800
+#define MADERA_ASRC2_IN2_LOCK_STS1_MASK 0x0800
+#define MADERA_ASRC2_IN2_LOCK_STS1_SHIFT 11
+#define MADERA_ASRC2_IN2_LOCK_STS1_WIDTH 1
+#define MADERA_ASRC2_IN1_LOCK_STS1 0x0400
+#define MADERA_ASRC2_IN1_LOCK_STS1_MASK 0x0400
+#define MADERA_ASRC2_IN1_LOCK_STS1_SHIFT 10
+#define MADERA_ASRC2_IN1_LOCK_STS1_WIDTH 1
+#define MADERA_ASRC1_IN2_LOCK_STS1 0x0200
+#define MADERA_ASRC1_IN2_LOCK_STS1_MASK 0x0200
+#define MADERA_ASRC1_IN2_LOCK_STS1_SHIFT 9
+#define MADERA_ASRC1_IN2_LOCK_STS1_WIDTH 1
+#define MADERA_ASRC1_IN1_LOCK_STS1 0x0100
+#define MADERA_ASRC1_IN1_LOCK_STS1_MASK 0x0100
+#define MADERA_ASRC1_IN1_LOCK_STS1_SHIFT 8
+#define MADERA_ASRC1_IN1_LOCK_STS1_WIDTH 1
+#define MADERA_DRC2_SIG_DET_STS1 0x0002
+#define MADERA_DRC2_SIG_DET_STS1_MASK 0x0002
+#define MADERA_DRC2_SIG_DET_STS1_SHIFT 1
+#define MADERA_DRC2_SIG_DET_STS1_WIDTH 1
+#define MADERA_DRC1_SIG_DET_STS1 0x0001
+#define MADERA_DRC1_SIG_DET_STS1_MASK 0x0001
+#define MADERA_DRC1_SIG_DET_STS1_SHIFT 0
+#define MADERA_DRC1_SIG_DET_STS1_WIDTH 1
+
+/* (0x188A) - IRQ1 Raw Status 11 */
+#define MADERA_DSP_IRQ16_STS1 0x8000
+#define MADERA_DSP_IRQ16_STS1_MASK 0x8000
+#define MADERA_DSP_IRQ16_STS1_SHIFT 15
+#define MADERA_DSP_IRQ16_STS1_WIDTH 1
+#define MADERA_DSP_IRQ15_STS1 0x4000
+#define MADERA_DSP_IRQ15_STS1_MASK 0x4000
+#define MADERA_DSP_IRQ15_STS1_SHIFT 14
+#define MADERA_DSP_IRQ15_STS1_WIDTH 1
+#define MADERA_DSP_IRQ14_STS1 0x2000
+#define MADERA_DSP_IRQ14_STS1_MASK 0x2000
+#define MADERA_DSP_IRQ14_STS1_SHIFT 13
+#define MADERA_DSP_IRQ14_STS1_WIDTH 1
+#define MADERA_DSP_IRQ13_STS1 0x1000
+#define MADERA_DSP_IRQ13_STS1_MASK 0x1000
+#define MADERA_DSP_IRQ13_STS1_SHIFT 12
+#define MADERA_DSP_IRQ13_STS1_WIDTH 1
+#define MADERA_DSP_IRQ12_STS1 0x0800
+#define MADERA_DSP_IRQ12_STS1_MASK 0x0800
+#define MADERA_DSP_IRQ12_STS1_SHIFT 11
+#define MADERA_DSP_IRQ12_STS1_WIDTH 1
+#define MADERA_DSP_IRQ11_STS1 0x0400
+#define MADERA_DSP_IRQ11_STS1_MASK 0x0400
+#define MADERA_DSP_IRQ11_STS1_SHIFT 10
+#define MADERA_DSP_IRQ11_STS1_WIDTH 1
+#define MADERA_DSP_IRQ10_STS1 0x0200
+#define MADERA_DSP_IRQ10_STS1_MASK 0x0200
+#define MADERA_DSP_IRQ10_STS1_SHIFT 9
+#define MADERA_DSP_IRQ10_STS1_WIDTH 1
+#define MADERA_DSP_IRQ9_STS1 0x0100
+#define MADERA_DSP_IRQ9_STS1_MASK 0x0100
+#define MADERA_DSP_IRQ9_STS1_SHIFT 8
+#define MADERA_DSP_IRQ9_STS1_WIDTH 1
+#define MADERA_DSP_IRQ8_STS1 0x0080
+#define MADERA_DSP_IRQ8_STS1_MASK 0x0080
+#define MADERA_DSP_IRQ8_STS1_SHIFT 7
+#define MADERA_DSP_IRQ8_STS1_WIDTH 1
+#define MADERA_DSP_IRQ7_STS1 0x0040
+#define MADERA_DSP_IRQ7_STS1_MASK 0x0040
+#define MADERA_DSP_IRQ7_STS1_SHIFT 6
+#define MADERA_DSP_IRQ7_STS1_WIDTH 1
+#define MADERA_DSP_IRQ6_STS1 0x0020
+#define MADERA_DSP_IRQ6_STS1_MASK 0x0020
+#define MADERA_DSP_IRQ6_STS1_SHIFT 5
+#define MADERA_DSP_IRQ6_STS1_WIDTH 1
+#define MADERA_DSP_IRQ5_STS1 0x0010
+#define MADERA_DSP_IRQ5_STS1_MASK 0x0010
+#define MADERA_DSP_IRQ5_STS1_SHIFT 4
+#define MADERA_DSP_IRQ5_STS1_WIDTH 1
+#define MADERA_DSP_IRQ4_STS1 0x0008
+#define MADERA_DSP_IRQ4_STS1_MASK 0x0008
+#define MADERA_DSP_IRQ4_STS1_SHIFT 3
+#define MADERA_DSP_IRQ4_STS1_WIDTH 1
+#define MADERA_DSP_IRQ3_STS1 0x0004
+#define MADERA_DSP_IRQ3_STS1_MASK 0x0004
+#define MADERA_DSP_IRQ3_STS1_SHIFT 2
+#define MADERA_DSP_IRQ3_STS1_WIDTH 1
+#define MADERA_DSP_IRQ2_STS1 0x0002
+#define MADERA_DSP_IRQ2_STS1_MASK 0x0002
+#define MADERA_DSP_IRQ2_STS1_SHIFT 1
+#define MADERA_DSP_IRQ2_STS1_WIDTH 1
+#define MADERA_DSP_IRQ1_STS1 0x0001
+#define MADERA_DSP_IRQ1_STS1_MASK 0x0001
+#define MADERA_DSP_IRQ1_STS1_SHIFT 0
+#define MADERA_DSP_IRQ1_STS1_WIDTH 1
+
+/* (0x188B) - IRQ1 Raw Status 12 */
+#define MADERA_SPKOUTR_SC_STS1 0x0080
+#define MADERA_SPKOUTR_SC_STS1_MASK 0x0080
+#define MADERA_SPKOUTR_SC_STS1_SHIFT 7
+#define MADERA_SPKOUTR_SC_STS1_WIDTH 1
+#define MADERA_SPKOUTL_SC_STS1 0x0040
+#define MADERA_SPKOUTL_SC_STS1_MASK 0x0040
+#define MADERA_SPKOUTL_SC_STS1_SHIFT 6
+#define MADERA_SPKOUTL_SC_STS1_WIDTH 1
+#define MADERA_HP3R_SC_STS1 0x0020
+#define MADERA_HP3R_SC_STS1_MASK 0x0020
+#define MADERA_HP3R_SC_STS1_SHIFT 5
+#define MADERA_HP3R_SC_STS1_WIDTH 1
+#define MADERA_HP3L_SC_STS1 0x0010
+#define MADERA_HP3L_SC_STS1_MASK 0x0010
+#define MADERA_HP3L_SC_STS1_SHIFT 4
+#define MADERA_HP3L_SC_STS1_WIDTH 1
+#define MADERA_HP2R_SC_STS1 0x0008
+#define MADERA_HP2R_SC_STS1_MASK 0x0008
+#define MADERA_HP2R_SC_STS1_SHIFT 3
+#define MADERA_HP2R_SC_STS1_WIDTH 1
+#define MADERA_HP2L_SC_STS1 0x0004
+#define MADERA_HP2L_SC_STS1_MASK 0x0004
+#define MADERA_HP2L_SC_STS1_SHIFT 2
+#define MADERA_HP2L_SC_STS1_WIDTH 1
+#define MADERA_HP1R_SC_STS1 0x0002
+#define MADERA_HP1R_SC_STS1_MASK 0x0002
+#define MADERA_HP1R_SC_STS1_SHIFT 1
+#define MADERA_HP1R_SC_STS1_WIDTH 1
+#define MADERA_HP1L_SC_STS1 0x0001
+#define MADERA_HP1L_SC_STS1_MASK 0x0001
+#define MADERA_HP1L_SC_STS1_SHIFT 0
+#define MADERA_HP1L_SC_STS1_WIDTH 1
+
+/* (0x188C) - IRQ1 Raw Status 13 */
+#define MADERA_SPKOUTR_ENABLE_DONE_STS1 0x0080
+#define MADERA_SPKOUTR_ENABLE_DONE_STS1_MASK 0x0080
+#define MADERA_SPKOUTR_ENABLE_DONE_STS1_SHIFT 7
+#define MADERA_SPKOUTR_ENABLE_DONE_STS1_WIDTH 1
+#define MADERA_SPKOUTL_ENABLE_DONE_STS1 0x0040
+#define MADERA_SPKOUTL_ENABLE_DONE_STS1_MASK 0x0040
+#define MADERA_SPKOUTL_ENABLE_DONE_STS1_SHIFT 6
+#define MADERA_SPKOUTL_ENABLE_DONE_STS1_WIDTH 1
+#define MADERA_HP3R_ENABLE_DONE_STS1 0x0020
+#define MADERA_HP3R_ENABLE_DONE_STS1_MASK 0x0020
+#define MADERA_HP3R_ENABLE_DONE_STS1_SHIFT 5
+#define MADERA_HP3R_ENABLE_DONE_STS1_WIDTH 1
+#define MADERA_HP3L_ENABLE_DONE_STS1 0x0010
+#define MADERA_HP3L_ENABLE_DONE_STS1_MASK 0x0010
+#define MADERA_HP3L_ENABLE_DONE_STS1_SHIFT 4
+#define MADERA_HP3L_ENABLE_DONE_STS1_WIDTH 1
+#define MADERA_HP2R_ENABLE_DONE_STS1 0x0008
+#define MADERA_HP2R_ENABLE_DONE_STS1_MASK 0x0008
+#define MADERA_HP2R_ENABLE_DONE_STS1_SHIFT 3
+#define MADERA_HP2R_ENABLE_DONE_STS1_WIDTH 1
+#define MADERA_HP2L_ENABLE_DONE_STS1 0x0004
+#define MADERA_HP2L_ENABLE_DONE_STS1_MASK 0x0004
+#define MADERA_HP2L_ENABLE_DONE_STS1_SHIFT 2
+#define MADERA_HP2L_ENABLE_DONE_STS1_WIDTH 1
+#define MADERA_HP1R_ENABLE_DONE_STS1 0x0002
+#define MADERA_HP1R_ENABLE_DONE_STS1_MASK 0x0002
+#define MADERA_HP1R_ENABLE_DONE_STS1_SHIFT 1
+#define MADERA_HP1R_ENABLE_DONE_STS1_WIDTH 1
+#define MADERA_HP1L_ENABLE_DONE_STS1 0x0001
+#define MADERA_HP1L_ENABLE_DONE_STS1_MASK 0x0001
+#define MADERA_HP1L_ENABLE_DONE_STS1_SHIFT 0
+#define MADERA_HP1L_ENABLE_DONE_STS1_WIDTH 1
+
+/* (0x188D) - IRQ1 Raw Status 14 */
+#define MADERA_SPKOUTR_DISABLE_DONE_STS1 0x0080
+#define MADERA_SPKOUTR_DISABLE_DONE_STS1_MASK 0x0080
+#define MADERA_SPKOUTR_DISABLE_DONE_STS1_SHIFT 7
+#define MADERA_SPKOUTR_DISABLE_DONE_STS1_WIDTH 1
+#define MADERA_SPKOUTL_DISABLE_DONE_STS1 0x0040
+#define MADERA_SPKOUTL_DISABLE_DONE_STS1_MASK 0x0040
+#define MADERA_SPKOUTL_DISABLE_DONE_STS1_SHIFT 6
+#define MADERA_SPKOUTL_DISABLE_DONE_STS1_WIDTH 1
+#define MADERA_HP3R_DISABLE_DONE_STS1 0x0020
+#define MADERA_HP3R_DISABLE_DONE_STS1_MASK 0x0020
+#define MADERA_HP3R_DISABLE_DONE_STS1_SHIFT 5
+#define MADERA_HP3R_DISABLE_DONE_STS1_WIDTH 1
+#define MADERA_HP3L_DISABLE_DONE_STS1 0x0010
+#define MADERA_HP3L_DISABLE_DONE_STS1_MASK 0x0010
+#define MADERA_HP3L_DISABLE_DONE_STS1_SHIFT 4
+#define MADERA_HP3L_DISABLE_DONE_STS1_WIDTH 1
+#define MADERA_HP2R_DISABLE_DONE_STS1 0x0008
+#define MADERA_HP2R_DISABLE_DONE_STS1_MASK 0x0008
+#define MADERA_HP2R_DISABLE_DONE_STS1_SHIFT 3
+#define MADERA_HP2R_DISABLE_DONE_STS1_WIDTH 1
+#define MADERA_HP2L_DISABLE_DONE_STS1 0x0004
+#define MADERA_HP2L_DISABLE_DONE_STS1_MASK 0x0004
+#define MADERA_HP2L_DISABLE_DONE_STS1_SHIFT 2
+#define MADERA_HP2L_DISABLE_DONE_STS1_WIDTH 1
+#define MADERA_HP1R_DISABLE_DONE_STS1 0x0002
+#define MADERA_HP1R_DISABLE_DONE_STS1_MASK 0x0002
+#define MADERA_HP1R_DISABLE_DONE_STS1_SHIFT 1
+#define MADERA_HP1R_DISABLE_DONE_STS1_WIDTH 1
+#define MADERA_HP1L_DISABLE_DONE_STS1 0x0001
+#define MADERA_HP1L_DISABLE_DONE_STS1_MASK 0x0001
+#define MADERA_HP1L_DISABLE_DONE_STS1_SHIFT 0
+#define MADERA_HP1L_DISABLE_DONE_STS1_WIDTH 1
+
+/* (0x188E) - IRQ1 Raw Status 15 */
+#define MADERA_SPK_OVERHEAT_WARN_STS1 0x0004
+#define MADERA_SPK_OVERHEAT_WARN_STS1_MASK 0x0004
+#define MADERA_SPK_OVERHEAT_WARN_STS1_SHIFT 2
+#define MADERA_SPK_OVERHEAT_WARN_STS1_WIDTH 1
+#define MADERA_SPK_OVERHEAT_STS1 0x0002
+#define MADERA_SPK_OVERHEAT_STS1_MASK 0x0002
+#define MADERA_SPK_OVERHEAT_STS1_SHIFT 1
+#define MADERA_SPK_OVERHEAT_STS1_WIDTH 1
+#define MADERA_SPK_SHUTDOWN_STS1 0x0001
+#define MADERA_SPK_SHUTDOWN_STS1_MASK 0x0001
+#define MADERA_SPK_SHUTDOWN_STS1_SHIFT 0
+#define MADERA_SPK_SHUTDOWN_STS1_WIDTH 1
+
+/* (0x1900) IRQ2_Status_1 */
+#define MADERA_DSP_SHARED_WR_COLL_EINT2 0x8000
+#define MADERA_DSP_SHARED_WR_COLL_EINT2_MASK 0x8000
+#define MADERA_DSP_SHARED_WR_COLL_EINT2_SHIFT 15
+#define MADERA_DSP_SHARED_WR_COLL_EINT2_WIDTH 1
+#define MADERA_CTRLIF_ERR_EINT2 0x1000
+#define MADERA_CTRLIF_ERR_EINT2_MASK 0x1000
+#define MADERA_CTRLIF_ERR_EINT2_SHIFT 12
+#define MADERA_CTRLIF_ERR_EINT2_WIDTH 1
+#define MADERA_SYSCLK_FAIL_EINT2 0x0200
+#define MADERA_SYSCLK_FAIL_EINT2_MASK 0x0200
+#define MADERA_SYSCLK_FAIL_EINT2_SHIFT 9
+#define MADERA_SYSCLK_FAIL_EINT2_WIDTH 1
+#define MADERA_CLOCK_DETECT_EINT2 0x0100
+#define MADERA_CLOCK_DETECT_EINT2_MASK 0x0100
+#define MADERA_CLOCK_DETECT_EINT2_SHIFT 8
+#define MADERA_CLOCK_DETECT_EINT2_WIDTH 1
+#define MADERA_BOOT_DONE_EINT2 0x0080
+#define MADERA_BOOT_DONE_EINT2_MASK 0x0080
+#define MADERA_BOOT_DONE_EINT2_SHIFT 7
+#define MADERA_BOOT_DONE_EINT2_WIDTH 1
+
+/* (0x1901) IRQ2_Status_2 */
+#define MADERA_FLL3_LOCK_EINT2 0x0400
+#define MADERA_FLL3_LOCK_EINT2_MASK 0x0400
+#define MADERA_FLL3_LOCK_EINT2_SHIFT 10
+#define MADERA_FLL3_LOCK_EINT2_WIDTH 1
+#define MADERA_FLL2_LOCK_EINT2 0x0200
+#define MADERA_FLL2_LOCK_EINT2_MASK 0x0200
+#define MADERA_FLL2_LOCK_EINT2_SHIFT 9
+#define MADERA_FLL2_LOCK_EINT2_WIDTH 1
+#define MADERA_FLL1_LOCK_EINT2 0x0100
+#define MADERA_FLL1_LOCK_EINT2_MASK 0x0100
+#define MADERA_FLL1_LOCK_EINT2_SHIFT 8
+#define MADERA_FLL1_LOCK_EINT2_WIDTH 1
+
+/* (0x1905) IRQ2_Status_6 */
+#define MADERA_MICDET2_EINT2 0x0200
+#define MADERA_MICDET2_EINT2_MASK 0x0200
+#define MADERA_MICDET2_EINT2_SHIFT 9
+#define MADERA_MICDET2_EINT2_WIDTH 1
+#define MADERA_MICDET1_EINT2 0x0100
+#define MADERA_MICDET1_EINT2_MASK 0x0100
+#define MADERA_MICDET1_EINT2_SHIFT 8
+#define MADERA_MICDET1_EINT2_WIDTH 1
+#define MADERA_HPDET_EINT2 0x0001
+#define MADERA_HPDET_EINT2_MASK 0x0001
+#define MADERA_HPDET_EINT2_SHIFT 0
+#define MADERA_HPDET_EINT2_WIDTH 1
+
+/* (0x1906) IRQ2_Status_7 */
+#define MADERA_MICD_CLAMP_FALL_EINT2 0x0020
+#define MADERA_MICD_CLAMP_FALL_EINT2_MASK 0x0020
+#define MADERA_MICD_CLAMP_FALL_EINT2_SHIFT 5
+#define MADERA_MICD_CLAMP_FALL_EINT2_WIDTH 1
+#define MADERA_MICD_CLAMP_RISE_EINT2 0x0010
+#define MADERA_MICD_CLAMP_RISE_EINT2_MASK 0x0010
+#define MADERA_MICD_CLAMP_RISE_EINT2_SHIFT 4
+#define MADERA_MICD_CLAMP_RISE_EINT2_WIDTH 1
+#define MADERA_JD2_FALL_EINT2 0x0008
+#define MADERA_JD2_FALL_EINT2_MASK 0x0008
+#define MADERA_JD2_FALL_EINT2_SHIFT 3
+#define MADERA_JD2_FALL_EINT2_WIDTH 1
+#define MADERA_JD2_RISE_EINT2 0x0004
+#define MADERA_JD2_RISE_EINT2_MASK 0x0004
+#define MADERA_JD2_RISE_EINT2_SHIFT 2
+#define MADERA_JD2_RISE_EINT2_WIDTH 1
+#define MADERA_JD1_FALL_EINT2 0x0002
+#define MADERA_JD1_FALL_EINT2_MASK 0x0002
+#define MADERA_JD1_FALL_EINT2_SHIFT 1
+#define MADERA_JD1_FALL_EINT2_WIDTH 1
+#define MADERA_JD1_RISE_EINT2 0x0001
+#define MADERA_JD1_RISE_EINT2_MASK 0x0001
+#define MADERA_JD1_RISE_EINT2_SHIFT 0
+#define MADERA_JD1_RISE_EINT2_WIDTH 1
+
+/* (0x1908) IRQ2_Status_9 */
+#define MADERA_ASRC2_IN2_LOCK_EINT2 0x0800
+#define MADERA_ASRC2_IN2_LOCK_EINT2_MASK 0x0800
+#define MADERA_ASRC2_IN2_LOCK_EINT2_SHIFT 11
+#define MADERA_ASRC2_IN2_LOCK_EINT2_WIDTH 1
+#define MADERA_ASRC2_IN1_LOCK_EINT2 0x0400
+#define MADERA_ASRC2_IN1_LOCK_EINT2_MASK 0x0400
+#define MADERA_ASRC2_IN1_LOCK_EINT2_SHIFT 10
+#define MADERA_ASRC2_IN1_LOCK_EINT2_WIDTH 1
+#define MADERA_ASRC1_IN2_LOCK_EINT2 0x0200
+#define MADERA_ASRC1_IN2_LOCK_EINT2_MASK 0x0200
+#define MADERA_ASRC1_IN2_LOCK_EINT2_SHIFT 9
+#define MADERA_ASRC1_IN2_LOCK_EINT2_WIDTH 1
+#define MADERA_ASRC1_IN1_LOCK_EINT2 0x0100
+#define MADERA_ASRC1_IN1_LOCK_EINT2_MASK 0x0100
+#define MADERA_ASRC1_IN1_LOCK_EINT2_SHIFT 8
+#define MADERA_ASRC1_IN1_LOCK_EINT2_WIDTH 1
+#define MADERA_DRC2_SIG_DET_EINT2 0x0002
+#define MADERA_DRC2_SIG_DET_EINT2_MASK 0x0002
+#define MADERA_DRC2_SIG_DET_EINT2_SHIFT 1
+#define MADERA_DRC2_SIG_DET_EINT2_WIDTH 1
+#define MADERA_DRC1_SIG_DET_EINT2 0x0001
+#define MADERA_DRC1_SIG_DET_EINT2_MASK 0x0001
+#define MADERA_DRC1_SIG_DET_EINT2_SHIFT 0
+#define MADERA_DRC1_SIG_DET_EINT2_WIDTH 1
+
+/* (0x190A) IRQ2_Status_11 */
+#define MADERA_DSP_IRQ16_EINT2 0x8000
+#define MADERA_DSP_IRQ16_EINT2_MASK 0x8000
+#define MADERA_DSP_IRQ16_EINT2_SHIFT 15
+#define MADERA_DSP_IRQ16_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ15_EINT2 0x4000
+#define MADERA_DSP_IRQ15_EINT2_MASK 0x4000
+#define MADERA_DSP_IRQ15_EINT2_SHIFT 14
+#define MADERA_DSP_IRQ15_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ14_EINT2 0x2000
+#define MADERA_DSP_IRQ14_EINT2_MASK 0x2000
+#define MADERA_DSP_IRQ14_EINT2_SHIFT 13
+#define MADERA_DSP_IRQ14_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ13_EINT2 0x1000
+#define MADERA_DSP_IRQ13_EINT2_MASK 0x1000
+#define MADERA_DSP_IRQ13_EINT2_SHIFT 12
+#define MADERA_DSP_IRQ13_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ12_EINT2 0x0800
+#define MADERA_DSP_IRQ12_EINT2_MASK 0x0800
+#define MADERA_DSP_IRQ12_EINT2_SHIFT 11
+#define MADERA_DSP_IRQ12_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ11_EINT2 0x0400
+#define MADERA_DSP_IRQ11_EINT2_MASK 0x0400
+#define MADERA_DSP_IRQ11_EINT2_SHIFT 10
+#define MADERA_DSP_IRQ11_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ10_EINT2 0x0200
+#define MADERA_DSP_IRQ10_EINT2_MASK 0x0200
+#define MADERA_DSP_IRQ10_EINT2_SHIFT 9
+#define MADERA_DSP_IRQ10_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ9_EINT2 0x0100
+#define MADERA_DSP_IRQ9_EINT2_MASK 0x0100
+#define MADERA_DSP_IRQ9_EINT2_SHIFT 8
+#define MADERA_DSP_IRQ9_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ8_EINT2 0x0080
+#define MADERA_DSP_IRQ8_EINT2_MASK 0x0080
+#define MADERA_DSP_IRQ8_EINT2_SHIFT 7
+#define MADERA_DSP_IRQ8_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ7_EINT2 0x0040
+#define MADERA_DSP_IRQ7_EINT2_MASK 0x0040
+#define MADERA_DSP_IRQ7_EINT2_SHIFT 6
+#define MADERA_DSP_IRQ7_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ6_EINT2 0x0020
+#define MADERA_DSP_IRQ6_EINT2_MASK 0x0020
+#define MADERA_DSP_IRQ6_EINT2_SHIFT 5
+#define MADERA_DSP_IRQ6_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ5_EINT2 0x0010
+#define MADERA_DSP_IRQ5_EINT2_MASK 0x0010
+#define MADERA_DSP_IRQ5_EINT2_SHIFT 4
+#define MADERA_DSP_IRQ5_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ4_EINT2 0x0008
+#define MADERA_DSP_IRQ4_EINT2_MASK 0x0008
+#define MADERA_DSP_IRQ4_EINT2_SHIFT 3
+#define MADERA_DSP_IRQ4_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ3_EINT2 0x0004
+#define MADERA_DSP_IRQ3_EINT2_MASK 0x0004
+#define MADERA_DSP_IRQ3_EINT2_SHIFT 2
+#define MADERA_DSP_IRQ3_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ2_EINT2 0x0002
+#define MADERA_DSP_IRQ2_EINT2_MASK 0x0002
+#define MADERA_DSP_IRQ2_EINT2_SHIFT 1
+#define MADERA_DSP_IRQ2_EINT2_WIDTH 1
+#define MADERA_DSP_IRQ1_EINT2 0x0001
+#define MADERA_DSP_IRQ1_EINT2_MASK 0x0001
+#define MADERA_DSP_IRQ1_EINT2_SHIFT 0
+#define MADERA_DSP_IRQ1_EINT2_WIDTH 1
+
+/* (0x190B) IRQ2_Status_12 */
+#define MADERA_SPKOUTR_SC_EINT2 0x0080
+#define MADERA_SPKOUTR_SC_EINT2_MASK 0x0080
+#define MADERA_SPKOUTR_SC_EINT2_SHIFT 7
+#define MADERA_SPKOUTR_SC_EINT2_WIDTH 1
+#define MADERA_SPKOUTL_SC_EINT2 0x0040
+#define MADERA_SPKOUTL_SC_EINT2_MASK 0x0040
+#define MADERA_SPKOUTL_SC_EINT2_SHIFT 6
+#define MADERA_SPKOUTL_SC_EINT2_WIDTH 1
+#define MADERA_HP3R_SC_EINT2 0x0020
+#define MADERA_HP3R_SC_EINT2_MASK 0x0020
+#define MADERA_HP3R_SC_EINT2_SHIFT 5
+#define MADERA_HP3R_SC_EINT2_WIDTH 1
+#define MADERA_HP3L_SC_EINT2 0x0010
+#define MADERA_HP3L_SC_EINT2_MASK 0x0010
+#define MADERA_HP3L_SC_EINT2_SHIFT 4
+#define MADERA_HP3L_SC_EINT2_WIDTH 1
+#define MADERA_HP2R_SC_EINT2 0x0008
+#define MADERA_HP2R_SC_EINT2_MASK 0x0008
+#define MADERA_HP2R_SC_EINT2_SHIFT 3
+#define MADERA_HP2R_SC_EINT2_WIDTH 1
+#define MADERA_HP2L_SC_EINT2 0x0004
+#define MADERA_HP2L_SC_EINT2_MASK 0x0004
+#define MADERA_HP2L_SC_EINT2_SHIFT 2
+#define MADERA_HP2L_SC_EINT2_WIDTH 1
+#define MADERA_HP1R_SC_EINT2 0x0002
+#define MADERA_HP1R_SC_EINT2_MASK 0x0002
+#define MADERA_HP1R_SC_EINT2_SHIFT 1
+#define MADERA_HP1R_SC_EINT2_WIDTH 1
+#define MADERA_HP1L_SC_EINT2 0x0001
+#define MADERA_HP1L_SC_EINT2_MASK 0x0001
+#define MADERA_HP1L_SC_EINT2_SHIFT 0
+#define MADERA_HP1L_SC_EINT2_WIDTH 1
+
+/* (0x190C) IRQ2_Status_13 */
+#define MADERA_SPKOUTR_ENABLE_DONE_EINT2 0x0080
+#define MADERA_SPKOUTR_ENABLE_DONE_EINT2_MASK 0x0080
+#define MADERA_SPKOUTR_ENABLE_DONE_EINT2_SHIFT 7
+#define MADERA_SPKOUTR_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_SPKOUTL_ENABLE_DONE_EINT2 0x0040
+#define MADERA_SPKOUTL_ENABLE_DONE_EINT2_MASK 0x0040
+#define MADERA_SPKOUTL_ENABLE_DONE_EINT2_SHIFT 6
+#define MADERA_SPKOUTL_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_HP3R_ENABLE_DONE_EINT2 0x0020
+#define MADERA_HP3R_ENABLE_DONE_EINT2_MASK 0x0020
+#define MADERA_HP3R_ENABLE_DONE_EINT2_SHIFT 5
+#define MADERA_HP3R_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_HP3L_ENABLE_DONE_EINT2 0x0010
+#define MADERA_HP3L_ENABLE_DONE_EINT2_MASK 0x0010
+#define MADERA_HP3L_ENABLE_DONE_EINT2_SHIFT 4
+#define MADERA_HP3L_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_HP2R_ENABLE_DONE_EINT2 0x0008
+#define MADERA_HP2R_ENABLE_DONE_EINT2_MASK 0x0008
+#define MADERA_HP2R_ENABLE_DONE_EINT2_SHIFT 3
+#define MADERA_HP2R_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_HP2L_ENABLE_DONE_EINT2 0x0004
+#define MADERA_HP2L_ENABLE_DONE_EINT2_MASK 0x0004
+#define MADERA_HP2L_ENABLE_DONE_EINT2_SHIFT 2
+#define MADERA_HP2L_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_HP1R_ENABLE_DONE_EINT2 0x0002
+#define MADERA_HP1R_ENABLE_DONE_EINT2_MASK 0x0002
+#define MADERA_HP1R_ENABLE_DONE_EINT2_SHIFT 1
+#define MADERA_HP1R_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_HP1L_ENABLE_DONE_EINT2 0x0001
+#define MADERA_HP1L_ENABLE_DONE_EINT2_MASK 0x0001
+#define MADERA_HP1L_ENABLE_DONE_EINT2_SHIFT 0
+#define MADERA_HP1L_ENABLE_DONE_EINT2_WIDTH 1
+
+/* (0x190D) IRQ2_Status_14 */
+#define MADERA_SPKOUTR_DISABLE_DONE_EINT2 0x0080
+#define MADERA_SPKOUTR_DISABLE_DONE_EINT2_MASK 0x0080
+#define MADERA_SPKOUTR_DISABLE_DONE_EINT2_SHIFT 7
+#define MADERA_SPKOUTR_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_SPKOUTL_DISABLE_DONE_EINT2 0x0040
+#define MADERA_SPKOUTL_DISABLE_DONE_EINT2_MASK 0x0040
+#define MADERA_SPKOUTL_DISABLE_DONE_EINT2_SHIFT 6
+#define MADERA_SPKOUTL_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_HP3R_DISABLE_DONE_EINT2 0x0020
+#define MADERA_HP3R_DISABLE_DONE_EINT2_MASK 0x0020
+#define MADERA_HP3R_DISABLE_DONE_EINT2_SHIFT 5
+#define MADERA_HP3R_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_HP3L_DISABLE_DONE_EINT2 0x0010
+#define MADERA_HP3L_DISABLE_DONE_EINT2_MASK 0x0010
+#define MADERA_HP3L_DISABLE_DONE_EINT2_SHIFT 4
+#define MADERA_HP3L_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_HP2R_DISABLE_DONE_EINT2 0x0008
+#define MADERA_HP2R_DISABLE_DONE_EINT2_MASK 0x0008
+#define MADERA_HP2R_DISABLE_DONE_EINT2_SHIFT 3
+#define MADERA_HP2R_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_HP2L_DISABLE_DONE_EINT2 0x0004
+#define MADERA_HP2L_DISABLE_DONE_EINT2_MASK 0x0004
+#define MADERA_HP2L_DISABLE_DONE_EINT2_SHIFT 2
+#define MADERA_HP2L_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_HP1R_DISABLE_DONE_EINT2 0x0002
+#define MADERA_HP1R_DISABLE_DONE_EINT2_MASK 0x0002
+#define MADERA_HP1R_DISABLE_DONE_EINT2_SHIFT 1
+#define MADERA_HP1R_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_HP1L_DISABLE_DONE_EINT2 0x0001
+#define MADERA_HP1L_DISABLE_DONE_EINT2_MASK 0x0001
+#define MADERA_HP1L_DISABLE_DONE_EINT2_SHIFT 0
+#define MADERA_HP1L_DISABLE_DONE_EINT2_WIDTH 1
+
+/* (0x190E) IRQ2_Status_15 */
+#define MADERA_SPK_OVERHEAT_WARN_EINT2 0x0004
+#define MADERA_SPK_OVERHEAT_WARN_EINT2_MASK 0x0004
+#define MADERA_SPK_OVERHEAT_WARN_EINT2_SHIFT 2
+#define MADERA_SPK_OVERHEAT_WARN_EINT2_WIDTH 1
+#define MADERA_SPK_OVERHEAT_EINT2 0x0002
+#define MADERA_SPK_OVERHEAT_EINT2_MASK 0x0002
+#define MADERA_SPK_OVERHEAT_EINT2_SHIFT 1
+#define MADERA_SPK_OVERHEAT_EINT2_WIDTH 1
+#define MADERA_SPK_SHUTDOWN_EINT2 0x0001
+#define MADERA_SPK_SHUTDOWN_EINT2_MASK 0x0001
+#define MADERA_SPK_SHUTDOWN_EINT2_SHIFT 0
+#define MADERA_SPK_SHUTDOWN_EINT2_WIDTH 1
+
+/* (0x1940) IRQ2_Mask_1 */
+#define MADERA_IM_DSP_SHARED_WR_COLL_EINT2 0x8000
+#define MADERA_IM_DSP_SHARED_WR_COLL_EINT2_MASK 0x8000
+#define MADERA_IM_DSP_SHARED_WR_COLL_EINT2_SHIFT 15
+#define MADERA_IM_DSP_SHARED_WR_COLL_EINT2_WIDTH 1
+#define MADERA_IM_CTRLIF_ERR_EINT2 0x1000
+#define MADERA_IM_CTRLIF_ERR_EINT2_MASK 0x1000
+#define MADERA_IM_CTRLIF_ERR_EINT2_SHIFT 12
+#define MADERA_IM_CTRLIF_ERR_EINT2_WIDTH 1
+#define MADERA_IM_SYSCLK_FAIL_EINT2 0x0200
+#define MADERA_IM_SYSCLK_FAIL_EINT2_MASK 0x0200
+#define MADERA_IM_SYSCLK_FAIL_EINT2_SHIFT 9
+#define MADERA_IM_SYSCLK_FAIL_EINT2_WIDTH 1
+#define MADERA_IM_CLOCK_DETECT_EINT2 0x0100
+#define MADERA_IM_CLOCK_DETECT_EINT2_MASK 0x0100
+#define MADERA_IM_CLOCK_DETECT_EINT2_SHIFT 8
+#define MADERA_IM_CLOCK_DETECT_EINT2_WIDTH 1
+#define MADERA_IM_BOOT_DONE_EINT2 0x0080
+#define MADERA_IM_BOOT_DONE_EINT2_MASK 0x0080
+#define MADERA_IM_BOOT_DONE_EINT2_SHIFT 7
+#define MADERA_IM_BOOT_DONE_EINT2_WIDTH 1
+
+/* (0x1941) IRQ2_Mask_2 */
+#define MADERA_IM_FLL3_LOCK_EINT2 0x0400
+#define MADERA_IM_FLL3_LOCK_EINT2_MASK 0x0400
+#define MADERA_IM_FLL3_LOCK_EINT2_SHIFT 10
+#define MADERA_IM_FLL3_LOCK_EINT2_WIDTH 1
+#define MADERA_IM_FLL2_LOCK_EINT2 0x0200
+#define MADERA_IM_FLL2_LOCK_EINT2_MASK 0x0200
+#define MADERA_IM_FLL2_LOCK_EINT2_SHIFT 9
+#define MADERA_IM_FLL2_LOCK_EINT2_WIDTH 1
+#define MADERA_IM_FLL1_LOCK_EINT2 0x0100
+#define MADERA_IM_FLL1_LOCK_EINT2_MASK 0x0100
+#define MADERA_IM_FLL1_LOCK_EINT2_SHIFT 8
+#define MADERA_IM_FLL1_LOCK_EINT2_WIDTH 1
+
+/* (0x1945) IRQ2_Mask_6 */
+#define MADERA_IM_MICDET2_EINT2 0x0200
+#define MADERA_IM_MICDET2_EINT2_MASK 0x0200
+#define MADERA_IM_MICDET2_EINT2_SHIFT 9
+#define MADERA_IM_MICDET2_EINT2_WIDTH 1
+#define MADERA_IM_MICDET1_EINT2 0x0100
+#define MADERA_IM_MICDET1_EINT2_MASK 0x0100
+#define MADERA_IM_MICDET1_EINT2_SHIFT 8
+#define MADERA_IM_MICDET1_EINT2_WIDTH 1
+#define MADERA_IM_HPDET_EINT2 0x0001
+#define MADERA_IM_HPDET_EINT2_MASK 0x0001
+#define MADERA_IM_HPDET_EINT2_SHIFT 0
+#define MADERA_IM_HPDET_EINT2_WIDTH 1
+
+/* (0x1946) IRQ2_Mask_7 */
+#define MADERA_IM_MICD_CLAMP_FALL_EINT2 0x0020
+#define MADERA_IM_MICD_CLAMP_FALL_EINT2_MASK 0x0020
+#define MADERA_IM_MICD_CLAMP_FALL_EINT2_SHIFT 5
+#define MADERA_IM_MICD_CLAMP_FALL_EINT2_WIDTH 1
+#define MADERA_IM_MICD_CLAMP_RISE_EINT2 0x0010
+#define MADERA_IM_MICD_CLAMP_RISE_EINT2_MASK 0x0010
+#define MADERA_IM_MICD_CLAMP_RISE_EINT2_SHIFT 4
+#define MADERA_IM_MICD_CLAMP_RISE_EINT2_WIDTH 1
+#define MADERA_IM_JD2_FALL_EINT2 0x0008
+#define MADERA_IM_JD2_FALL_EINT2_MASK 0x0008
+#define MADERA_IM_JD2_FALL_EINT2_SHIFT 3
+#define MADERA_IM_JD2_FALL_EINT2_WIDTH 1
+#define MADERA_IM_JD2_RISE_EINT2 0x0004
+#define MADERA_IM_JD2_RISE_EINT2_MASK 0x0004
+#define MADERA_IM_JD2_RISE_EINT2_SHIFT 2
+#define MADERA_IM_JD2_RISE_EINT2_WIDTH 1
+#define MADERA_IM_JD1_FALL_EINT2 0x0002
+#define MADERA_IM_JD1_FALL_EINT2_MASK 0x0002
+#define MADERA_IM_JD1_FALL_EINT2_SHIFT 1
+#define MADERA_IM_JD1_FALL_EINT2_WIDTH 1
+#define MADERA_IM_JD1_RISE_EINT2 0x0001
+#define MADERA_IM_JD1_RISE_EINT2_MASK 0x0001
+#define MADERA_IM_JD1_RISE_EINT2_SHIFT 0
+#define MADERA_IM_JD1_RISE_EINT2_WIDTH 1
+
+/* (0x1948) IRQ2_Mask_9 */
+#define MADERA_IM_ASRC2_IN2_LOCK_EINT2 0x0800
+#define MADERA_IM_ASRC2_IN2_LOCK_EINT2_MASK 0x0800
+#define MADERA_IM_ASRC2_IN2_LOCK_EINT2_SHIFT 11
+#define MADERA_IM_ASRC2_IN2_LOCK_EINT2_WIDTH 1
+#define MADERA_IM_ASRC2_IN1_LOCK_EINT2 0x0400
+#define MADERA_IM_ASRC2_IN1_LOCK_EINT2_MASK 0x0400
+#define MADERA_IM_ASRC2_IN1_LOCK_EINT2_SHIFT 10
+#define MADERA_IM_ASRC2_IN1_LOCK_EINT2_WIDTH 1
+#define MADERA_IM_ASRC1_IN2_LOCK_EINT2 0x0200
+#define MADERA_IM_ASRC1_IN2_LOCK_EINT2_MASK 0x0200
+#define MADERA_IM_ASRC1_IN2_LOCK_EINT2_SHIFT 9
+#define MADERA_IM_ASRC1_IN2_LOCK_EINT2_WIDTH 1
+#define MADERA_IM_ASRC1_IN1_LOCK_EINT2 0x0100
+#define MADERA_IM_ASRC1_IN1_LOCK_EINT2_MASK 0x0100
+#define MADERA_IM_ASRC1_IN1_LOCK_EINT2_SHIFT 8
+#define MADERA_IM_ASRC1_IN1_LOCK_EINT2_WIDTH 1
+#define MADERA_IM_DRC2_SIG_DET_EINT2 0x0002
+#define MADERA_IM_DRC2_SIG_DET_EINT2_MASK 0x0002
+#define MADERA_IM_DRC2_SIG_DET_EINT2_SHIFT 1
+#define MADERA_IM_DRC2_SIG_DET_EINT2_WIDTH 1
+#define MADERA_IM_DRC1_SIG_DET_EINT2 0x0001
+#define MADERA_IM_DRC1_SIG_DET_EINT2_MASK 0x0001
+#define MADERA_IM_DRC1_SIG_DET_EINT2_SHIFT 0
+#define MADERA_IM_DRC1_SIG_DET_EINT2_WIDTH 1
+
+/* (0x194A) IRQ2_Mask_11 */
+#define MADERA_IM_DSP_IRQ16_EINT2 0x8000
+#define MADERA_IM_DSP_IRQ16_EINT2_MASK 0x8000
+#define MADERA_IM_DSP_IRQ16_EINT2_SHIFT 15
+#define MADERA_IM_DSP_IRQ16_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ15_EINT2 0x4000
+#define MADERA_IM_DSP_IRQ15_EINT2_MASK 0x4000
+#define MADERA_IM_DSP_IRQ15_EINT2_SHIFT 14
+#define MADERA_IM_DSP_IRQ15_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ14_EINT2 0x2000
+#define MADERA_IM_DSP_IRQ14_EINT2_MASK 0x2000
+#define MADERA_IM_DSP_IRQ14_EINT2_SHIFT 13
+#define MADERA_IM_DSP_IRQ14_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ13_EINT2 0x1000
+#define MADERA_IM_DSP_IRQ13_EINT2_MASK 0x1000
+#define MADERA_IM_DSP_IRQ13_EINT2_SHIFT 12
+#define MADERA_IM_DSP_IRQ13_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ12_EINT2 0x0800
+#define MADERA_IM_DSP_IRQ12_EINT2_MASK 0x0800
+#define MADERA_IM_DSP_IRQ12_EINT2_SHIFT 11
+#define MADERA_IM_DSP_IRQ12_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ11_EINT2 0x0400
+#define MADERA_IM_DSP_IRQ11_EINT2_MASK 0x0400
+#define MADERA_IM_DSP_IRQ11_EINT2_SHIFT 10
+#define MADERA_IM_DSP_IRQ11_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ10_EINT2 0x0200
+#define MADERA_IM_DSP_IRQ10_EINT2_MASK 0x0200
+#define MADERA_IM_DSP_IRQ10_EINT2_SHIFT 9
+#define MADERA_IM_DSP_IRQ10_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ9_EINT2 0x0100
+#define MADERA_IM_DSP_IRQ9_EINT2_MASK 0x0100
+#define MADERA_IM_DSP_IRQ9_EINT2_SHIFT 8
+#define MADERA_IM_DSP_IRQ9_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ8_EINT2 0x0080
+#define MADERA_IM_DSP_IRQ8_EINT2_MASK 0x0080
+#define MADERA_IM_DSP_IRQ8_EINT2_SHIFT 7
+#define MADERA_IM_DSP_IRQ8_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ7_EINT2 0x0040
+#define MADERA_IM_DSP_IRQ7_EINT2_MASK 0x0040
+#define MADERA_IM_DSP_IRQ7_EINT2_SHIFT 6
+#define MADERA_IM_DSP_IRQ7_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ6_EINT2 0x0020
+#define MADERA_IM_DSP_IRQ6_EINT2_MASK 0x0020
+#define MADERA_IM_DSP_IRQ6_EINT2_SHIFT 5
+#define MADERA_IM_DSP_IRQ6_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ5_EINT2 0x0010
+#define MADERA_IM_DSP_IRQ5_EINT2_MASK 0x0010
+#define MADERA_IM_DSP_IRQ5_EINT2_SHIFT 4
+#define MADERA_IM_DSP_IRQ5_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ4_EINT2 0x0008
+#define MADERA_IM_DSP_IRQ4_EINT2_MASK 0x0008
+#define MADERA_IM_DSP_IRQ4_EINT2_SHIFT 3
+#define MADERA_IM_DSP_IRQ4_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ3_EINT2 0x0004
+#define MADERA_IM_DSP_IRQ3_EINT2_MASK 0x0004
+#define MADERA_IM_DSP_IRQ3_EINT2_SHIFT 2
+#define MADERA_IM_DSP_IRQ3_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ2_EINT2 0x0002
+#define MADERA_IM_DSP_IRQ2_EINT2_MASK 0x0002
+#define MADERA_IM_DSP_IRQ2_EINT2_SHIFT 1
+#define MADERA_IM_DSP_IRQ2_EINT2_WIDTH 1
+#define MADERA_IM_DSP_IRQ1_EINT2 0x0001
+#define MADERA_IM_DSP_IRQ1_EINT2_MASK 0x0001
+#define MADERA_IM_DSP_IRQ1_EINT2_SHIFT 0
+#define MADERA_IM_DSP_IRQ1_EINT2_WIDTH 1
+
+/* (0x194B) IRQ2_Mask_12 */
+#define MADERA_IM_SPKOUTR_SC_EINT2 0x0080
+#define MADERA_IM_SPKOUTR_SC_EINT2_MASK 0x0080
+#define MADERA_IM_SPKOUTR_SC_EINT2_SHIFT 7
+#define MADERA_IM_SPKOUTR_SC_EINT2_WIDTH 1
+#define MADERA_IM_SPKOUTL_SC_EINT2 0x0040
+#define MADERA_IM_SPKOUTL_SC_EINT2_MASK 0x0040
+#define MADERA_IM_SPKOUTL_SC_EINT2_SHIFT 6
+#define MADERA_IM_SPKOUTL_SC_EINT2_WIDTH 1
+#define MADERA_IM_HP3R_SC_EINT2 0x0020
+#define MADERA_IM_HP3R_SC_EINT2_MASK 0x0020
+#define MADERA_IM_HP3R_SC_EINT2_SHIFT 5
+#define MADERA_IM_HP3R_SC_EINT2_WIDTH 1
+#define MADERA_IM_HP3L_SC_EINT2 0x0010
+#define MADERA_IM_HP3L_SC_EINT2_MASK 0x0010
+#define MADERA_IM_HP3L_SC_EINT2_SHIFT 4
+#define MADERA_IM_HP3L_SC_EINT2_WIDTH 1
+#define MADERA_IM_HP2R_SC_EINT2 0x0008
+#define MADERA_IM_HP2R_SC_EINT2_MASK 0x0008
+#define MADERA_IM_HP2R_SC_EINT2_SHIFT 3
+#define MADERA_IM_HP2R_SC_EINT2_WIDTH 1
+#define MADERA_IM_HP2L_SC_EINT2 0x0004
+#define MADERA_IM_HP2L_SC_EINT2_MASK 0x0004
+#define MADERA_IM_HP2L_SC_EINT2_SHIFT 2
+#define MADERA_IM_HP2L_SC_EINT2_WIDTH 1
+#define MADERA_IM_HP1R_SC_EINT2 0x0002
+#define MADERA_IM_HP1R_SC_EINT2_MASK 0x0002
+#define MADERA_IM_HP1R_SC_EINT2_SHIFT 1
+#define MADERA_IM_HP1R_SC_EINT2_WIDTH 1
+#define MADERA_IM_HP1L_SC_EINT2 0x0001
+#define MADERA_IM_HP1L_SC_EINT2_MASK 0x0001
+#define MADERA_IM_HP1L_SC_EINT2_SHIFT 0
+#define MADERA_IM_HP1L_SC_EINT2_WIDTH 1
+
+/* (0x194C) IRQ2_Mask_13 */
+#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT2 0x0080
+#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT2_MASK 0x0080
+#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT2_SHIFT 7
+#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT2 0x0040
+#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT2_MASK 0x0040
+#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT2_SHIFT 6
+#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_HP3R_ENABLE_DONE_EINT2 0x0020
+#define MADERA_IM_HP3R_ENABLE_DONE_EINT2_MASK 0x0020
+#define MADERA_IM_HP3R_ENABLE_DONE_EINT2_SHIFT 5
+#define MADERA_IM_HP3R_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_HP3L_ENABLE_DONE_EINT2 0x0010
+#define MADERA_IM_HP3L_ENABLE_DONE_EINT2_MASK 0x0010
+#define MADERA_IM_HP3L_ENABLE_DONE_EINT2_SHIFT 4
+#define MADERA_IM_HP3L_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_HP2R_ENABLE_DONE_EINT2 0x0008
+#define MADERA_IM_HP2R_ENABLE_DONE_EINT2_MASK 0x0008
+#define MADERA_IM_HP2R_ENABLE_DONE_EINT2_SHIFT 3
+#define MADERA_IM_HP2R_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_HP2L_ENABLE_DONE_EINT2 0x0004
+#define MADERA_IM_HP2L_ENABLE_DONE_EINT2_MASK 0x0004
+#define MADERA_IM_HP2L_ENABLE_DONE_EINT2_SHIFT 2
+#define MADERA_IM_HP2L_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_HP1R_ENABLE_DONE_EINT2 0x0002
+#define MADERA_IM_HP1R_ENABLE_DONE_EINT2_MASK 0x0002
+#define MADERA_IM_HP1R_ENABLE_DONE_EINT2_SHIFT 1
+#define MADERA_IM_HP1R_ENABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_HP1L_ENABLE_DONE_EINT2 0x0001
+#define MADERA_IM_HP1L_ENABLE_DONE_EINT2_MASK 0x0001
+#define MADERA_IM_HP1L_ENABLE_DONE_EINT2_SHIFT 0
+#define MADERA_IM_HP1L_ENABLE_DONE_EINT2_WIDTH 1
+
+/* (0x194D) IRQ2_Mask_14 */
+#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT2 0x0080
+#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT2_MASK 0x0080
+#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT2_SHIFT 7
+#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT2 0x0040
+#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT2_MASK 0x0040
+#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT2_SHIFT 6
+#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_HP3R_DISABLE_DONE_EINT2 0x0020
+#define MADERA_IM_HP3R_DISABLE_DONE_EINT2_MASK 0x0020
+#define MADERA_IM_HP3R_DISABLE_DONE_EINT2_SHIFT 5
+#define MADERA_IM_HP3R_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_HP3L_DISABLE_DONE_EINT2 0x0010
+#define MADERA_IM_HP3L_DISABLE_DONE_EINT2_MASK 0x0010
+#define MADERA_IM_HP3L_DISABLE_DONE_EINT2_SHIFT 4
+#define MADERA_IM_HP3L_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_HP2R_DISABLE_DONE_EINT2 0x0008
+#define MADERA_IM_HP2R_DISABLE_DONE_EINT2_MASK 0x0008
+#define MADERA_IM_HP2R_DISABLE_DONE_EINT2_SHIFT 3
+#define MADERA_IM_HP2R_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_HP2L_DISABLE_DONE_EINT2 0x0004
+#define MADERA_IM_HP2L_DISABLE_DONE_EINT2_MASK 0x0004
+#define MADERA_IM_HP2L_DISABLE_DONE_EINT2_SHIFT 2
+#define MADERA_IM_HP2L_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_HP1R_DISABLE_DONE_EINT2 0x0002
+#define MADERA_IM_HP1R_DISABLE_DONE_EINT2_MASK 0x0002
+#define MADERA_IM_HP1R_DISABLE_DONE_EINT2_SHIFT 1
+#define MADERA_IM_HP1R_DISABLE_DONE_EINT2_WIDTH 1
+#define MADERA_IM_HP1L_DISABLE_DONE_EINT2 0x0001
+#define MADERA_IM_HP1L_DISABLE_DONE_EINT2_MASK 0x0001
+#define MADERA_IM_HP1L_DISABLE_DONE_EINT2_SHIFT 0
+#define MADERA_IM_HP1L_DISABLE_DONE_EINT2_WIDTH 1
+
+/* (0x194E) IRQ2_Mask_15 */
+#define MADERA_IM_SPK_OVERHEAT_WARN_EINT2 0x0004
+#define MADERA_IM_SPK_OVERHEAT_WARN_EINT2_MASK 0x0004
+#define MADERA_IM_SPK_OVERHEAT_WARN_EINT2_SHIFT 2
+#define MADERA_IM_SPK_OVERHEAT_WARN_EINT2_WIDTH 1
+#define MADERA_IM_SPK_OVERHEAT_EINT2 0x0002
+#define MADERA_IM_SPK_OVERHEAT_EINT2_MASK 0x0002
+#define MADERA_IM_SPK_OVERHEAT_EINT2_SHIFT 1
+#define MADERA_IM_SPK_OVERHEAT_EINT2_WIDTH 1
+#define MADERA_IM_SPK_SHUTDOWN_EINT2 0x0001
+#define MADERA_IM_SPK_SHUTDOWN_EINT2_MASK 0x0001
+#define MADERA_IM_SPK_SHUTDOWN_EINT2_SHIFT 0
+#define MADERA_IM_SPK_SHUTDOWN_EINT2_WIDTH 1
+
+/* (0x1980) IRQ2_Raw_Status_1 */
+#define MADERA_DSP_SHARED_WR_COLL_STS2 0x8000
+#define MADERA_DSP_SHARED_WR_COLL_STS2_MASK 0x8000
+#define MADERA_DSP_SHARED_WR_COLL_STS2_SHIFT 15
+#define MADERA_DSP_SHARED_WR_COLL_STS2_WIDTH 1
+#define MADERA_CTRLIF_ERR_STS2 0x1000
+#define MADERA_CTRLIF_ERR_STS2_MASK 0x1000
+#define MADERA_CTRLIF_ERR_STS2_SHIFT 12
+#define MADERA_CTRLIF_ERR_STS2_WIDTH 1
+#define MADERA_SYSCLK_FAIL_STS2 0x0200
+#define MADERA_SYSCLK_FAIL_STS2_MASK 0x0200
+#define MADERA_SYSCLK_FAIL_STS2_SHIFT 9
+#define MADERA_SYSCLK_FAIL_STS2_WIDTH 1
+#define MADERA_CLOCK_DETECT_STS2 0x0100
+#define MADERA_CLOCK_DETECT_STS2_MASK 0x0100
+#define MADERA_CLOCK_DETECT_STS2_SHIFT 8
+#define MADERA_CLOCK_DETECT_STS2_WIDTH 1
+#define MADERA_BOOT_DONE_STS2 0x0080
+#define MADERA_BOOT_DONE_STS2_MASK 0x0080
+#define MADERA_BOOT_DONE_STS2_SHIFT 7
+#define MADERA_BOOT_DONE_STS2_WIDTH 1
+
+/* (0x1981) IRQ2_Raw_Status_2 */
+#define MADERA_FLL3_LOCK_STS2 0x0400
+#define MADERA_FLL3_LOCK_STS2_MASK 0x0400
+#define MADERA_FLL3_LOCK_STS2_SHIFT 10
+#define MADERA_FLL3_LOCK_STS2_WIDTH 1
+#define MADERA_FLL2_LOCK_STS2 0x0200
+#define MADERA_FLL2_LOCK_STS2_MASK 0x0200
+#define MADERA_FLL2_LOCK_STS2_SHIFT 9
+#define MADERA_FLL2_LOCK_STS2_WIDTH 1
+#define MADERA_FLL1_LOCK_STS2 0x0100
+#define MADERA_FLL1_LOCK_STS2_MASK 0x0100
+#define MADERA_FLL1_LOCK_STS2_SHIFT 8
+#define MADERA_FLL1_LOCK_STS2_WIDTH 1
+
+/* (0x1986) IRQ2_Raw_Status_7 */
+#define MADERA_MICD_CLAMP_FALL_STS2 0x0020
+#define MADERA_MICD_CLAMP_FALL_STS2_MASK 0x0020
+#define MADERA_MICD_CLAMP_FALL_STS2_SHIFT 5
+#define MADERA_MICD_CLAMP_FALL_STS2_WIDTH 1
+#define MADERA_MICD_CLAMP_RISE_STS2 0x0010
+#define MADERA_MICD_CLAMP_RISE_STS2_MASK 0x0010
+#define MADERA_MICD_CLAMP_RISE_STS2_SHIFT 4
+#define MADERA_MICD_CLAMP_RISE_STS2_WIDTH 1
+#define MADERA_JD2_FALL_STS2 0x0008
+#define MADERA_JD2_FALL_STS2_MASK 0x0008
+#define MADERA_JD2_FALL_STS2_SHIFT 3
+#define MADERA_JD2_FALL_STS2_WIDTH 1
+#define MADERA_JD2_RISE_STS2 0x0004
+#define MADERA_JD2_RISE_STS2_MASK 0x0004
+#define MADERA_JD2_RISE_STS2_SHIFT 2
+#define MADERA_JD2_RISE_STS2_WIDTH 1
+#define MADERA_JD1_FALL_STS2 0x0002
+#define MADERA_JD1_FALL_STS2_MASK 0x0002
+#define MADERA_JD1_FALL_STS2_SHIFT 1
+#define MADERA_JD1_FALL_STS2_WIDTH 1
+#define MADERA_JD1_RISE_STS2 0x0001
+#define MADERA_JD1_RISE_STS2_MASK 0x0001
+#define MADERA_JD1_RISE_STS2_SHIFT 0
+#define MADERA_JD1_RISE_STS2_WIDTH 1
+
+/* (0x1988) IRQ2_Raw_Status_9 */
+#define MADERA_ASRC2_IN2_LOCK_STS2 0x0800
+#define MADERA_ASRC2_IN2_LOCK_STS2_MASK 0x0800
+#define MADERA_ASRC2_IN2_LOCK_STS2_SHIFT 11
+#define MADERA_ASRC2_IN2_LOCK_STS2_WIDTH 1
+#define MADERA_ASRC2_IN1_LOCK_STS2 0x0400
+#define MADERA_ASRC2_IN1_LOCK_STS2_MASK 0x0400
+#define MADERA_ASRC2_IN1_LOCK_STS2_SHIFT 10
+#define MADERA_ASRC2_IN1_LOCK_STS2_WIDTH 1
+#define MADERA_ASRC1_IN2_LOCK_STS2 0x0200
+#define MADERA_ASRC1_IN2_LOCK_STS2_MASK 0x0200
+#define MADERA_ASRC1_IN2_LOCK_STS2_SHIFT 9
+#define MADERA_ASRC1_IN2_LOCK_STS2_WIDTH 1
+#define MADERA_ASRC1_IN1_LOCK_STS2 0x0100
+#define MADERA_ASRC1_IN1_LOCK_STS2_MASK 0x0100
+#define MADERA_ASRC1_IN1_LOCK_STS2_SHIFT 8
+#define MADERA_ASRC1_IN1_LOCK_STS2_WIDTH 1
+#define MADERA_DRC2_SIG_DET_STS2 0x0002
+#define MADERA_DRC2_SIG_DET_STS2_MASK 0x0002
+#define MADERA_DRC2_SIG_DET_STS2_SHIFT 1
+#define MADERA_DRC2_SIG_DET_STS2_WIDTH 1
+#define MADERA_DRC1_SIG_DET_STS2 0x0001
+#define MADERA_DRC1_SIG_DET_STS2_MASK 0x0001
+#define MADERA_DRC1_SIG_DET_STS2_SHIFT 0
+#define MADERA_DRC1_SIG_DET_STS2_WIDTH 1
+
+/* (0x198A) - IRQ2 Raw Status 11 */
+#define MADERA_DSP_IRQ26_STS2 0x8000
+#define MADERA_DSP_IRQ26_STS2_MASK 0x8000
+#define MADERA_DSP_IRQ26_STS2_SHIFT 15
+#define MADERA_DSP_IRQ26_STS2_WIDTH 1
+#define MADERA_DSP_IRQ25_STS2 0x4000
+#define MADERA_DSP_IRQ25_STS2_MASK 0x4000
+#define MADERA_DSP_IRQ25_STS2_SHIFT 14
+#define MADERA_DSP_IRQ25_STS2_WIDTH 1
+#define MADERA_DSP_IRQ24_STS2 0x2000
+#define MADERA_DSP_IRQ24_STS2_MASK 0x2000
+#define MADERA_DSP_IRQ24_STS2_SHIFT 13
+#define MADERA_DSP_IRQ24_STS2_WIDTH 1
+#define MADERA_DSP_IRQ23_STS2 0x1000
+#define MADERA_DSP_IRQ23_STS2_MASK 0x1000
+#define MADERA_DSP_IRQ23_STS2_SHIFT 12
+#define MADERA_DSP_IRQ23_STS2_WIDTH 1
+#define MADERA_DSP_IRQ22_STS2 0x0800
+#define MADERA_DSP_IRQ22_STS2_MASK 0x0800
+#define MADERA_DSP_IRQ22_STS2_SHIFT 11
+#define MADERA_DSP_IRQ22_STS2_WIDTH 1
+#define MADERA_DSP_IRQ21_STS2 0x0400
+#define MADERA_DSP_IRQ21_STS2_MASK 0x0400
+#define MADERA_DSP_IRQ21_STS2_SHIFT 10
+#define MADERA_DSP_IRQ21_STS2_WIDTH 1
+#define MADERA_DSP_IRQ20_STS2 0x0200
+#define MADERA_DSP_IRQ20_STS2_MASK 0x0200
+#define MADERA_DSP_IRQ20_STS2_SHIFT 9
+#define MADERA_DSP_IRQ20_STS2_WIDTH 1
+#define MADERA_DSP_IRQ9_STS2 0x0100
+#define MADERA_DSP_IRQ9_STS2_MASK 0x0100
+#define MADERA_DSP_IRQ9_STS2_SHIFT 8
+#define MADERA_DSP_IRQ9_STS2_WIDTH 1
+#define MADERA_DSP_IRQ8_STS2 0x0080
+#define MADERA_DSP_IRQ8_STS2_MASK 0x0080
+#define MADERA_DSP_IRQ8_STS2_SHIFT 7
+#define MADERA_DSP_IRQ8_STS2_WIDTH 1
+#define MADERA_DSP_IRQ7_STS2 0x0040
+#define MADERA_DSP_IRQ7_STS2_MASK 0x0040
+#define MADERA_DSP_IRQ7_STS2_SHIFT 6
+#define MADERA_DSP_IRQ7_STS2_WIDTH 1
+#define MADERA_DSP_IRQ6_STS2 0x0020
+#define MADERA_DSP_IRQ6_STS2_MASK 0x0020
+#define MADERA_DSP_IRQ6_STS2_SHIFT 5
+#define MADERA_DSP_IRQ6_STS2_WIDTH 1
+#define MADERA_DSP_IRQ5_STS2 0x0010
+#define MADERA_DSP_IRQ5_STS2_MASK 0x0010
+#define MADERA_DSP_IRQ5_STS2_SHIFT 4
+#define MADERA_DSP_IRQ5_STS2_WIDTH 1
+#define MADERA_DSP_IRQ4_STS2 0x0008
+#define MADERA_DSP_IRQ4_STS2_MASK 0x0008
+#define MADERA_DSP_IRQ4_STS2_SHIFT 3
+#define MADERA_DSP_IRQ4_STS2_WIDTH 1
+#define MADERA_DSP_IRQ3_STS2 0x0004
+#define MADERA_DSP_IRQ3_STS2_MASK 0x0004
+#define MADERA_DSP_IRQ3_STS2_SHIFT 2
+#define MADERA_DSP_IRQ3_STS2_WIDTH 1
+#define MADERA_DSP_IRQ2_STS2 0x0002
+#define MADERA_DSP_IRQ2_STS2_MASK 0x0002
+#define MADERA_DSP_IRQ2_STS2_SHIFT 1
+#define MADERA_DSP_IRQ2_STS2_WIDTH 1
+#define MADERA_DSP_IRQ1_STS2 0x0001
+#define MADERA_DSP_IRQ1_STS2_MASK 0x0001
+#define MADERA_DSP_IRQ1_STS2_SHIFT 0
+#define MADERA_DSP_IRQ1_STS2_WIDTH 1
+
+/* (0x198B) IRQ2_Raw_Status_12 */
+#define MADERA_SPKOUTR_SC_STS2 0x0080
+#define MADERA_SPKOUTR_SC_STS2_MASK 0x0080
+#define MADERA_SPKOUTR_SC_STS2_SHIFT 7
+#define MADERA_SPKOUTR_SC_STS2_WIDTH 1
+#define MADERA_SPKOUTL_SC_STS2 0x0040
+#define MADERA_SPKOUTL_SC_STS2_MASK 0x0040
+#define MADERA_SPKOUTL_SC_STS2_SHIFT 6
+#define MADERA_SPKOUTL_SC_STS2_WIDTH 1
+#define MADERA_HP3R_SC_STS2 0x0020
+#define MADERA_HP3R_SC_STS2_MASK 0x0020
+#define MADERA_HP3R_SC_STS2_SHIFT 5
+#define MADERA_HP3R_SC_STS2_WIDTH 1
+#define MADERA_HP3L_SC_STS2 0x0010
+#define MADERA_HP3L_SC_STS2_MASK 0x0010
+#define MADERA_HP3L_SC_STS2_SHIFT 4
+#define MADERA_HP3L_SC_STS2_WIDTH 1
+#define MADERA_HP2R_SC_STS2 0x0008
+#define MADERA_HP2R_SC_STS2_MASK 0x0008
+#define MADERA_HP2R_SC_STS2_SHIFT 3
+#define MADERA_HP2R_SC_STS2_WIDTH 1
+#define MADERA_HP2L_SC_STS2 0x0004
+#define MADERA_HP2L_SC_STS2_MASK 0x0004
+#define MADERA_HP2L_SC_STS2_SHIFT 2
+#define MADERA_HP2L_SC_STS2_WIDTH 1
+#define MADERA_HP1R_SC_STS2 0x0002
+#define MADERA_HP1R_SC_STS2_MASK 0x0002
+#define MADERA_HP1R_SC_STS2_SHIFT 1
+#define MADERA_HP1R_SC_STS2_WIDTH 1
+#define MADERA_HP1L_SC_STS2 0x0001
+#define MADERA_HP1L_SC_STS2_MASK 0x0001
+#define MADERA_HP1L_SC_STS2_SHIFT 0
+#define MADERA_HP1L_SC_STS2_WIDTH 1
+
+/* (0x198C) IRQ2_Raw_Status_13 */
+#define MADERA_SPKOUTR_ENABLE_DONE_STS2 0x0080
+#define MADERA_SPKOUTR_ENABLE_DONE_STS2_MASK 0x0080
+#define MADERA_SPKOUTR_ENABLE_DONE_STS2_SHIFT 7
+#define MADERA_SPKOUTR_ENABLE_DONE_STS2_WIDTH 1
+#define MADERA_SPKOUTL_ENABLE_DONE_STS2 0x0040
+#define MADERA_SPKOUTL_ENABLE_DONE_STS2_MASK 0x0040
+#define MADERA_SPKOUTL_ENABLE_DONE_STS2_SHIFT 6
+#define MADERA_SPKOUTL_ENABLE_DONE_STS2_WIDTH 1
+#define MADERA_HP3R_ENABLE_DONE_STS2 0x0020
+#define MADERA_HP3R_ENABLE_DONE_STS2_MASK 0x0020
+#define MADERA_HP3R_ENABLE_DONE_STS2_SHIFT 5
+#define MADERA_HP3R_ENABLE_DONE_STS2_WIDTH 1
+#define MADERA_HP3L_ENABLE_DONE_STS2 0x0010
+#define MADERA_HP3L_ENABLE_DONE_STS2_MASK 0x0010
+#define MADERA_HP3L_ENABLE_DONE_STS2_SHIFT 4
+#define MADERA_HP3L_ENABLE_DONE_STS2_WIDTH 1
+#define MADERA_HP2R_ENABLE_DONE_STS2 0x0008
+#define MADERA_HP2R_ENABLE_DONE_STS2_MASK 0x0008
+#define MADERA_HP2R_ENABLE_DONE_STS2_SHIFT 3
+#define MADERA_HP2R_ENABLE_DONE_STS2_WIDTH 1
+#define MADERA_HP2L_ENABLE_DONE_STS2 0x0004
+#define MADERA_HP2L_ENABLE_DONE_STS2_MASK 0x0004
+#define MADERA_HP2L_ENABLE_DONE_STS2_SHIFT 2
+#define MADERA_HP2L_ENABLE_DONE_STS2_WIDTH 1
+#define MADERA_HP1R_ENABLE_DONE_STS2 0x0002
+#define MADERA_HP1R_ENABLE_DONE_STS2_MASK 0x0002
+#define MADERA_HP1R_ENABLE_DONE_STS2_SHIFT 1
+#define MADERA_HP1R_ENABLE_DONE_STS2_WIDTH 1
+#define MADERA_HP1L_ENABLE_DONE_STS2 0x0001
+#define MADERA_HP1L_ENABLE_DONE_STS2_MASK 0x0001
+#define MADERA_HP1L_ENABLE_DONE_STS2_SHIFT 0
+#define MADERA_HP1L_ENABLE_DONE_STS2_WIDTH 1
+
+/* (0x198D) IRQ2_Raw_Status_14 */
+#define MADERA_SPKOUTR_DISABLE_DONE_STS2 0x0080
+#define MADERA_SPKOUTR_DISABLE_DONE_STS2_MASK 0x0080
+#define MADERA_SPKOUTR_DISABLE_DONE_STS2_SHIFT 7
+#define MADERA_SPKOUTR_DISABLE_DONE_STS2_WIDTH 1
+#define MADERA_SPKOUTL_DISABLE_DONE_STS2 0x0040
+#define MADERA_SPKOUTL_DISABLE_DONE_STS2_MASK 0x0040
+#define MADERA_SPKOUTL_DISABLE_DONE_STS2_SHIFT 6
+#define MADERA_SPKOUTL_DISABLE_DONE_STS2_WIDTH 1
+#define MADERA_HP3R_DISABLE_DONE_STS2 0x0020
+#define MADERA_HP3R_DISABLE_DONE_STS2_MASK 0x0020
+#define MADERA_HP3R_DISABLE_DONE_STS2_SHIFT 5
+#define MADERA_HP3R_DISABLE_DONE_STS2_WIDTH 1
+#define MADERA_HP3L_DISABLE_DONE_STS2 0x0010
+#define MADERA_HP3L_DISABLE_DONE_STS2_MASK 0x0010
+#define MADERA_HP3L_DISABLE_DONE_STS2_SHIFT 4
+#define MADERA_HP3L_DISABLE_DONE_STS2_WIDTH 1
+#define MADERA_HP2R_DISABLE_DONE_STS2 0x0008
+#define MADERA_HP2R_DISABLE_DONE_STS2_MASK 0x0008
+#define MADERA_HP2R_DISABLE_DONE_STS2_SHIFT 3
+#define MADERA_HP2R_DISABLE_DONE_STS2_WIDTH 1
+#define MADERA_HP2L_DISABLE_DONE_STS2 0x0004
+#define MADERA_HP2L_DISABLE_DONE_STS2_MASK 0x0004
+#define MADERA_HP2L_DISABLE_DONE_STS2_SHIFT 2
+#define MADERA_HP2L_DISABLE_DONE_STS2_WIDTH 1
+#define MADERA_HP1R_DISABLE_DONE_STS2 0x0002
+#define MADERA_HP1R_DISABLE_DONE_STS2_MASK 0x0002
+#define MADERA_HP1R_DISABLE_DONE_STS2_SHIFT 1
+#define MADERA_HP1R_DISABLE_DONE_STS2_WIDTH 1
+#define MADERA_HP1L_DISABLE_DONE_STS2 0x0001
+#define MADERA_HP1L_DISABLE_DONE_STS2_MASK 0x0001
+#define MADERA_HP1L_DISABLE_DONE_STS2_SHIFT 0
+#define MADERA_HP1L_DISABLE_DONE_STS2_WIDTH 1
+
+/* (0x198E) IRQ2_Raw_Status_15 */
+#define MADERA_SPK_OVERHEAT_WARN_STS2 0x0004
+#define MADERA_SPK_OVERHEAT_WARN_STS2_MASK 0x0004
+#define MADERA_SPK_OVERHEAT_WARN_STS2_SHIFT 2
+#define MADERA_SPK_OVERHEAT_WARN_STS2_WIDTH 1
+#define MADERA_SPK_OVERHEAT_STS2 0x0002
+#define MADERA_SPK_OVERHEAT_STS2_MASK 0x0002
+#define MADERA_SPK_OVERHEAT_STS2_SHIFT 1
+#define MADERA_SPK_OVERHEAT_STS2_WIDTH 1
+#define MADERA_SPK_SHUTDOWN_STS2 0x0001
+#define MADERA_SPK_SHUTDOWN_STS2_MASK 0x0001
+#define MADERA_SPK_SHUTDOWN_STS2_SHIFT 0
+#define MADERA_SPK_SHUTDOWN_STS2_WIDTH 1
+
+/* (0x1A06) Interrupt_Debounce_7 */
+#define MADERA_MICD_CLAMP_DB 0x0010
+#define MADERA_MICD_CLAMP_DB_MASK 0x0010
+#define MADERA_MICD_CLAMP_DB_SHIFT 4
+#define MADERA_MICD_CLAMP_DB_WIDTH 1
+#define MADERA_JD2_DB 0x0004
+#define MADERA_JD2_DB_MASK 0x0004
+#define MADERA_JD2_DB_SHIFT 2
+#define MADERA_JD2_DB_WIDTH 1
+#define MADERA_JD1_DB 0x0001
+#define MADERA_JD1_DB_MASK 0x0001
+#define MADERA_JD1_DB_SHIFT 0
+#define MADERA_JD1_DB_WIDTH 1
+
+/* (0x1A0E) Interrupt_Debounce_15 */
+#define MADERA_SPK_OVERHEAT_WARN_DB 0x0004
+#define MADERA_SPK_OVERHEAT_WARN_DB_MASK 0x0004
+#define MADERA_SPK_OVERHEAT_WARN_DB_SHIFT 2
+#define MADERA_SPK_OVERHEAT_WARN_DB_WIDTH 1
+#define MADERA_SPK_OVERHEAT_DB 0x0002
+#define MADERA_SPK_OVERHEAT_DB_MASK 0x0002
+#define MADERA_SPK_OVERHEAT_DB_SHIFT 1
+#define MADERA_SPK_OVERHEAT_DB_WIDTH 1
+
+/* (0x1A80) IRQ1_CTRL */
+#define MADERA_IM_IRQ1 0x0800
+#define MADERA_IM_IRQ1_MASK 0x0800
+#define MADERA_IM_IRQ1_SHIFT 11
+#define MADERA_IM_IRQ1_WIDTH 1
+#define MADERA_IRQ_POL 0x0400
+#define MADERA_IRQ_POL_MASK 0x0400
+#define MADERA_IRQ_POL_SHIFT 10
+#define MADERA_IRQ_POL_WIDTH 1
+
+/* (0x20004) OTP_HPDET_Cal_1 */
+#define MADERA_OTP_HPDET_CALIB_OFFSET_11 0xFF000000
+#define MADERA_OTP_HPDET_CALIB_OFFSET_11_MASK 0xFF000000
+#define MADERA_OTP_HPDET_CALIB_OFFSET_11_SHIFT 24
+#define MADERA_OTP_HPDET_CALIB_OFFSET_11_WIDTH 8
+#define MADERA_OTP_HPDET_CALIB_OFFSET_10 0x00FF0000
+#define MADERA_OTP_HPDET_CALIB_OFFSET_10_MASK 0x00FF0000
+#define MADERA_OTP_HPDET_CALIB_OFFSET_10_SHIFT 16
+#define MADERA_OTP_HPDET_CALIB_OFFSET_10_WIDTH 8
+#define MADERA_OTP_HPDET_CALIB_OFFSET_01 0x0000FF00
+#define MADERA_OTP_HPDET_CALIB_OFFSET_01_MASK 0x0000FF00
+#define MADERA_OTP_HPDET_CALIB_OFFSET_01_SHIFT 8
+#define MADERA_OTP_HPDET_CALIB_OFFSET_01_WIDTH 8
+#define MADERA_OTP_HPDET_CALIB_OFFSET_00 0x000000FF
+#define MADERA_OTP_HPDET_CALIB_OFFSET_00_MASK 0x000000FF
+#define MADERA_OTP_HPDET_CALIB_OFFSET_00_SHIFT 0
+#define MADERA_OTP_HPDET_CALIB_OFFSET_00_WIDTH 8
+
+/* (0x20006) OTP_HPDET_Cal_2 */
+#define MADERA_OTP_HPDET_GRADIENT_1X 0x0000FF00
+#define MADERA_OTP_HPDET_GRADIENT_1X_MASK 0x0000FF00
+#define MADERA_OTP_HPDET_GRADIENT_1X_SHIFT 8
+#define MADERA_OTP_HPDET_GRADIENT_1X_WIDTH 8
+#define MADERA_OTP_HPDET_GRADIENT_0X 0x000000FF
+#define MADERA_OTP_HPDET_GRADIENT_0X_MASK 0x000000FF
+#define MADERA_OTP_HPDET_GRADIENT_0X_SHIFT 0
+#define MADERA_OTP_HPDET_GRADIENT_0X_WIDTH 8
+
+#endif
--
1.9.1
Adds the codec driver for the CS47L85 SmartCodec. This is a
multi-functional codec based on the Cirrus Logic Madera platform.
Signed-off-by: Nariman Poushin <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
Signed-off-by: Richard Fitzgerald <[email protected]>
---
sound/soc/codecs/Kconfig | 6 +
sound/soc/codecs/Makefile | 2 +
sound/soc/codecs/cs47l85.c | 2706 ++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 2714 insertions(+)
create mode 100644 sound/soc/codecs/cs47l85.c
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index aad4a7e..45fb885 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -63,6 +63,7 @@ config SND_SOC_ALL_CODECS
select SND_SOC_CS4349 if I2C
select SND_SOC_CS47L24 if MFD_CS47L24
select SND_SOC_CS47L35 if MFD_CS47L35
+ select SND_SOC_CS47L85 if MFD_CS47L85
select SND_SOC_CS53L30 if I2C
select SND_SOC_CX20442 if TTY
select SND_SOC_DA7210 if SND_SOC_I2C_AND_SPI
@@ -497,6 +498,9 @@ config SND_SOC_CS47L24
config SND_SOC_CS47L35
tristate
+config SND_SOC_CS47L85
+ tristate
+
# Cirrus Logic Quad-Channel ADC
config SND_SOC_CS53L30
tristate "Cirrus Logic CS53L30 CODEC"
@@ -585,7 +589,9 @@ config SND_SOC_LM49453
config SND_SOC_MADERA
tristate
default y if SND_SOC_CS47L35=y
+ default y if SND_SOC_CS47L85=y
default m if SND_SOC_CS47L35=m
+ default m if SND_SOC_CS47L85=m
config SND_SOC_MAX98088
tristate
diff --git a/sound/soc/codecs/Makefile b/sound/soc/codecs/Makefile
index 1b26ecb..7a07241 100644
--- a/sound/soc/codecs/Makefile
+++ b/sound/soc/codecs/Makefile
@@ -56,6 +56,7 @@ snd-soc-cs42xx8-i2c-objs := cs42xx8-i2c.o
snd-soc-cs4349-objs := cs4349.o
snd-soc-cs47l24-objs := cs47l24.o
snd-soc-cs47l35-objs := cs47l35.o
+snd-soc-cs47l85-objs := cs47l85.o
snd-soc-cs53l30-objs := cs53l30.o
snd-soc-cx20442-objs := cx20442.o
snd-soc-da7210-objs := da7210.o
@@ -291,6 +292,7 @@ obj-$(CONFIG_SND_SOC_CS42XX8_I2C) += snd-soc-cs42xx8-i2c.o
obj-$(CONFIG_SND_SOC_CS4349) += snd-soc-cs4349.o
obj-$(CONFIG_SND_SOC_CS47L24) += snd-soc-cs47l24.o
obj-$(CONFIG_SND_SOC_CS47L35) += snd-soc-cs47l35.o
+obj-$(CONFIG_SND_SOC_CS47L85) += snd-soc-cs47l85.o
obj-$(CONFIG_SND_SOC_CS53L30) += snd-soc-cs53l30.o
obj-$(CONFIG_SND_SOC_CX20442) += snd-soc-cx20442.o
obj-$(CONFIG_SND_SOC_DA7210) += snd-soc-da7210.o
diff --git a/sound/soc/codecs/cs47l85.c b/sound/soc/codecs/cs47l85.c
new file mode 100644
index 0000000..9fe76ec
--- /dev/null
+++ b/sound/soc/codecs/cs47l85.c
@@ -0,0 +1,2706 @@
+/*
+ * cs47l85.c -- ALSA SoC Audio driver for CS47L85 codecs
+ *
+ * Copyright 2015-2017 Cirrus Logic Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/module.h>
+#include <linux/moduleparam.h>
+#include <linux/device.h>
+#include <linux/delay.h>
+#include <linux/init.h>
+#include <linux/pm.h>
+#include <linux/pm_runtime.h>
+#include <linux/regmap.h>
+#include <sound/core.h>
+#include <sound/pcm.h>
+#include <sound/pcm_params.h>
+#include <sound/soc.h>
+#include <sound/tlv.h>
+
+#include <linux/mfd/madera/core.h>
+#include <linux/mfd/madera/registers.h>
+
+#include "madera.h"
+#include "wm_adsp.h"
+
+#define CS47L85_NUM_ADSP 7
+#define CS47L85_MONO_OUTPUTS 4
+
+struct cs47l85 {
+ struct madera_priv core;
+ struct madera_fll fll[3];
+};
+
+static const struct wm_adsp_region cs47l85_dsp1_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x080000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x0e0000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x0a0000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x0c0000 },
+};
+
+static const struct wm_adsp_region cs47l85_dsp2_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x100000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x160000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x120000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x140000 },
+};
+
+static const struct wm_adsp_region cs47l85_dsp3_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x180000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x1e0000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x1a0000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x1c0000 },
+};
+
+static const struct wm_adsp_region cs47l85_dsp4_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x200000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x260000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x220000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x240000 },
+};
+
+static const struct wm_adsp_region cs47l85_dsp5_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x280000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x2e0000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x2a0000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x2c0000 },
+};
+
+static const struct wm_adsp_region cs47l85_dsp6_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x300000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x360000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x320000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x340000 },
+};
+
+static const struct wm_adsp_region cs47l85_dsp7_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x380000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x3e0000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x3a0000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x3c0000 },
+};
+
+static const struct wm_adsp_region *cs47l85_dsp_regions[] = {
+ cs47l85_dsp1_regions,
+ cs47l85_dsp2_regions,
+ cs47l85_dsp3_regions,
+ cs47l85_dsp4_regions,
+ cs47l85_dsp5_regions,
+ cs47l85_dsp6_regions,
+ cs47l85_dsp7_regions,
+};
+
+static const unsigned int wm_adsp2_control_bases[] = {
+ MADERA_DSP1_CONFIG_1,
+ MADERA_DSP2_CONFIG_1,
+ MADERA_DSP3_CONFIG_1,
+ MADERA_DSP4_CONFIG_1,
+ MADERA_DSP5_CONFIG_1,
+ MADERA_DSP6_CONFIG_1,
+ MADERA_DSP7_CONFIG_1,
+};
+
+static int cs47l85_adsp_power_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol,
+ int event)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+ struct cs47l85 *cs47l85 = snd_soc_codec_get_drvdata(codec);
+ struct madera_priv *priv = &cs47l85->core;
+ struct madera *madera = priv->madera;
+ unsigned int freq;
+ int ret;
+
+ ret = regmap_read(madera->regmap, MADERA_DSP_CLOCK_1, &freq);
+ if (ret != 0) {
+ dev_err(madera->dev,
+ "Failed to read MADERA_DSP_CLOCK_1: %d\n", ret);
+ return ret;
+ }
+
+ freq &= MADERA_DSP_CLK_FREQ_LEGACY_MASK;
+ freq >>= MADERA_DSP_CLK_FREQ_LEGACY_SHIFT;
+
+ switch (event) {
+ case SND_SOC_DAPM_PRE_PMU:
+ ret = madera_set_adsp_clk(&cs47l85->core, w->shift, freq);
+ if (ret)
+ return ret;
+ break;
+ default:
+ break;
+ }
+
+ return wm_adsp2_early_event(w, kcontrol, event, freq);
+}
+
+#define CS47L85_NG_SRC(name, base) \
+ SOC_SINGLE(name " NG HPOUT1L Switch", base, 0, 1, 0), \
+ SOC_SINGLE(name " NG HPOUT1R Switch", base, 1, 1, 0), \
+ SOC_SINGLE(name " NG HPOUT2L Switch", base, 2, 1, 0), \
+ SOC_SINGLE(name " NG HPOUT2R Switch", base, 3, 1, 0), \
+ SOC_SINGLE(name " NG HPOUT3L Switch", base, 4, 1, 0), \
+ SOC_SINGLE(name " NG HPOUT3R Switch", base, 5, 1, 0), \
+ SOC_SINGLE(name " NG SPKOUTL Switch", base, 6, 1, 0), \
+ SOC_SINGLE(name " NG SPKOUTR Switch", base, 7, 1, 0), \
+ SOC_SINGLE(name " NG SPKDAT1L Switch", base, 8, 1, 0), \
+ SOC_SINGLE(name " NG SPKDAT1R Switch", base, 9, 1, 0), \
+ SOC_SINGLE(name " NG SPKDAT2L Switch", base, 10, 1, 0), \
+ SOC_SINGLE(name " NG SPKDAT2R Switch", base, 11, 1, 0)
+
+#define CS47L85_RXANC_INPUT_ROUTES(widget, name) \
+ { widget, NULL, name " NG Mux" }, \
+ { name " NG Internal", NULL, "RXANC NG Clock" }, \
+ { name " NG Internal", NULL, name " Channel" }, \
+ { name " NG External", NULL, "RXANC NG External Clock" }, \
+ { name " NG External", NULL, name " Channel" }, \
+ { name " NG Mux", "None", name " Channel" }, \
+ { name " NG Mux", "Internal", name " NG Internal" }, \
+ { name " NG Mux", "External", name " NG External" }, \
+ { name " Channel", "Left", name " Left Input" }, \
+ { name " Channel", "Combine", name " Left Input" }, \
+ { name " Channel", "Right", name " Right Input" }, \
+ { name " Channel", "Combine", name " Right Input" }, \
+ { name " Left Input", "IN1", "IN1L PGA" }, \
+ { name " Right Input", "IN1", "IN1R PGA" }, \
+ { name " Left Input", "IN2", "IN2L PGA" }, \
+ { name " Right Input", "IN2", "IN2R PGA" }, \
+ { name " Left Input", "IN3", "IN3L PGA" }, \
+ { name " Right Input", "IN3", "IN3R PGA" }, \
+ { name " Left Input", "IN4", "IN4L PGA" }, \
+ { name " Right Input", "IN4", "IN4R PGA" }, \
+ { name " Left Input", "IN5", "IN5L PGA" }, \
+ { name " Right Input", "IN5", "IN5R PGA" }, \
+ { name " Left Input", "IN6", "IN6L PGA" }, \
+ { name " Right Input", "IN6", "IN6R PGA" }
+
+#define CS47L85_RXANC_OUTPUT_ROUTES(widget, name) \
+ { widget, NULL, name " ANC Source" }, \
+ { name " ANC Source", "RXANCL", "RXANCL" }, \
+ { name " ANC Source", "RXANCR", "RXANCR" }
+
+static void cs47l85_hp_post_enable(struct snd_soc_dapm_widget *w)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+ unsigned int val;
+
+ switch (w->shift) {
+ case MADERA_OUT1L_ENA_SHIFT:
+ case MADERA_OUT1R_ENA_SHIFT:
+ val = snd_soc_read(codec, MADERA_OUTPUT_ENABLES_1);
+ val &= (MADERA_OUT1L_ENA | MADERA_OUT1R_ENA);
+
+ if (val == (MADERA_OUT1L_ENA | MADERA_OUT1R_ENA))
+ snd_soc_update_bits(codec,
+ MADERA_EDRE_HP_STEREO_CONTROL,
+ MADERA_HP1_EDRE_STEREO_MASK,
+ MADERA_HP1_EDRE_STEREO);
+ break;
+
+ default:
+ break;
+ }
+}
+
+static void cs47l85_hp_post_disable(struct snd_soc_dapm_widget *w)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+
+ switch (w->shift) {
+ case MADERA_OUT1L_ENA_SHIFT:
+ snd_soc_write(codec, MADERA_DCS_HP1L_CONTROL, 0x2006);
+ break;
+ case MADERA_OUT1R_ENA_SHIFT:
+ snd_soc_write(codec, MADERA_DCS_HP1R_CONTROL, 0x2006);
+ break;
+ default:
+ return;
+ }
+
+ /* Only get to here for OUT1L and OUT1R */
+ snd_soc_update_bits(codec,
+ MADERA_EDRE_HP_STEREO_CONTROL,
+ MADERA_HP1_EDRE_STEREO_MASK,
+ 0);
+}
+
+static int cs47l85_hp_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event)
+{
+ int ret;
+
+ switch (event) {
+ case SND_SOC_DAPM_PRE_PMU:
+ case SND_SOC_DAPM_PRE_PMD:
+ return madera_hp_ev(w, kcontrol, event);
+ case SND_SOC_DAPM_POST_PMU:
+ ret = madera_hp_ev(w, kcontrol, event);
+ if (ret < 0)
+ return ret;
+
+ cs47l85_hp_post_enable(w);
+ return 0;
+ case SND_SOC_DAPM_POST_PMD:
+ ret = madera_hp_ev(w, kcontrol, event);
+ cs47l85_hp_post_disable(w);
+ return ret;
+ default:
+ return -EINVAL;
+ }
+}
+
+static const struct snd_kcontrol_new cs47l85_snd_controls[] = {
+SOC_ENUM("IN1 OSR", madera_in_dmic_osr[0]),
+SOC_ENUM("IN2 OSR", madera_in_dmic_osr[1]),
+SOC_ENUM("IN3 OSR", madera_in_dmic_osr[2]),
+SOC_ENUM("IN4 OSR", madera_in_dmic_osr[3]),
+SOC_ENUM("IN5 OSR", madera_in_dmic_osr[4]),
+SOC_ENUM("IN6 OSR", madera_in_dmic_osr[5]),
+
+SOC_SINGLE_RANGE_TLV("IN1L Volume", MADERA_IN1L_CONTROL,
+ MADERA_IN1L_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+SOC_SINGLE_RANGE_TLV("IN1R Volume", MADERA_IN1R_CONTROL,
+ MADERA_IN1R_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+SOC_SINGLE_RANGE_TLV("IN2L Volume", MADERA_IN2L_CONTROL,
+ MADERA_IN2L_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+SOC_SINGLE_RANGE_TLV("IN2R Volume", MADERA_IN2R_CONTROL,
+ MADERA_IN2R_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+SOC_SINGLE_RANGE_TLV("IN3L Volume", MADERA_IN3L_CONTROL,
+ MADERA_IN3L_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+SOC_SINGLE_RANGE_TLV("IN3R Volume", MADERA_IN3R_CONTROL,
+ MADERA_IN3R_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+
+SOC_ENUM("IN HPF Cutoff Frequency", madera_in_hpf_cut_enum),
+
+SOC_SINGLE("IN1L HPF Switch", MADERA_IN1L_CONTROL,
+ MADERA_IN1L_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN1R HPF Switch", MADERA_IN1R_CONTROL,
+ MADERA_IN1R_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN2L HPF Switch", MADERA_IN2L_CONTROL,
+ MADERA_IN2L_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN2R HPF Switch", MADERA_IN2R_CONTROL,
+ MADERA_IN2R_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN3L HPF Switch", MADERA_IN3L_CONTROL,
+ MADERA_IN3L_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN3R HPF Switch", MADERA_IN3R_CONTROL,
+ MADERA_IN3R_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN4L HPF Switch", MADERA_IN4L_CONTROL,
+ MADERA_IN4L_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN4R HPF Switch", MADERA_IN4R_CONTROL,
+ MADERA_IN4R_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN5L HPF Switch", MADERA_IN5L_CONTROL,
+ MADERA_IN5L_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN5R HPF Switch", MADERA_IN5R_CONTROL,
+ MADERA_IN5R_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN6L HPF Switch", MADERA_IN6L_CONTROL,
+ MADERA_IN6L_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN6R HPF Switch", MADERA_IN6R_CONTROL,
+ MADERA_IN6R_HPF_SHIFT, 1, 0),
+
+SOC_SINGLE_TLV("IN1L Digital Volume", MADERA_ADC_DIGITAL_VOLUME_1L,
+ MADERA_IN1L_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN1R Digital Volume", MADERA_ADC_DIGITAL_VOLUME_1R,
+ MADERA_IN1R_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN2L Digital Volume", MADERA_ADC_DIGITAL_VOLUME_2L,
+ MADERA_IN2L_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN2R Digital Volume", MADERA_ADC_DIGITAL_VOLUME_2R,
+ MADERA_IN2R_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN3L Digital Volume", MADERA_ADC_DIGITAL_VOLUME_3L,
+ MADERA_IN3L_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN3R Digital Volume", MADERA_ADC_DIGITAL_VOLUME_3R,
+ MADERA_IN3R_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN4L Digital Volume", MADERA_ADC_DIGITAL_VOLUME_4L,
+ MADERA_IN4L_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN4R Digital Volume", MADERA_ADC_DIGITAL_VOLUME_4R,
+ MADERA_IN4R_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN5L Digital Volume", MADERA_ADC_DIGITAL_VOLUME_5L,
+ MADERA_IN5L_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN5R Digital Volume", MADERA_ADC_DIGITAL_VOLUME_5R,
+ MADERA_IN5R_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN6L Digital Volume", MADERA_ADC_DIGITAL_VOLUME_6L,
+ MADERA_IN6L_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN6R Digital Volume", MADERA_ADC_DIGITAL_VOLUME_6R,
+ MADERA_IN6R_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+
+SOC_ENUM("Input Ramp Up", madera_in_vi_ramp),
+SOC_ENUM("Input Ramp Down", madera_in_vd_ramp),
+
+SND_SOC_BYTES("RXANC Coefficients", MADERA_ANC_COEFF_START,
+ MADERA_ANC_COEFF_END - MADERA_ANC_COEFF_START + 1),
+SND_SOC_BYTES("RXANCL Config", MADERA_FCL_FILTER_CONTROL, 1),
+SND_SOC_BYTES("RXANCL Coefficients", MADERA_FCL_COEFF_START,
+ MADERA_FCL_COEFF_END - MADERA_FCL_COEFF_START + 1),
+SND_SOC_BYTES("RXANCR Config", MADERA_FCR_FILTER_CONTROL, 1),
+SND_SOC_BYTES("RXANCR Coefficients", MADERA_FCR_COEFF_START,
+ MADERA_FCR_COEFF_END - MADERA_FCR_COEFF_START + 1),
+
+MADERA_MIXER_CONTROLS("EQ1", MADERA_EQ1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("EQ2", MADERA_EQ2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("EQ3", MADERA_EQ3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("EQ4", MADERA_EQ4MIX_INPUT_1_SOURCE),
+
+MADERA_EQ_CONTROL("EQ1 Coefficients", MADERA_EQ1_2),
+SOC_SINGLE_TLV("EQ1 B1 Volume", MADERA_EQ1_1, MADERA_EQ1_B1_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ1 B2 Volume", MADERA_EQ1_1, MADERA_EQ1_B2_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ1 B3 Volume", MADERA_EQ1_1, MADERA_EQ1_B3_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ1 B4 Volume", MADERA_EQ1_2, MADERA_EQ1_B4_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ1 B5 Volume", MADERA_EQ1_2, MADERA_EQ1_B5_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+
+MADERA_EQ_CONTROL("EQ2 Coefficients", MADERA_EQ2_2),
+SOC_SINGLE_TLV("EQ2 B1 Volume", MADERA_EQ2_1, MADERA_EQ2_B1_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ2 B2 Volume", MADERA_EQ2_1, MADERA_EQ2_B2_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ2 B3 Volume", MADERA_EQ2_1, MADERA_EQ2_B3_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ2 B4 Volume", MADERA_EQ2_2, MADERA_EQ2_B4_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ2 B5 Volume", MADERA_EQ2_2, MADERA_EQ2_B5_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+
+MADERA_EQ_CONTROL("EQ3 Coefficients", MADERA_EQ3_2),
+SOC_SINGLE_TLV("EQ3 B1 Volume", MADERA_EQ3_1, MADERA_EQ3_B1_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ3 B2 Volume", MADERA_EQ3_1, MADERA_EQ3_B2_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ3 B3 Volume", MADERA_EQ3_1, MADERA_EQ3_B3_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ3 B4 Volume", MADERA_EQ3_2, MADERA_EQ3_B4_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ3 B5 Volume", MADERA_EQ3_2, MADERA_EQ3_B5_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+
+MADERA_EQ_CONTROL("EQ4 Coefficients", MADERA_EQ4_2),
+SOC_SINGLE_TLV("EQ4 B1 Volume", MADERA_EQ4_1, MADERA_EQ4_B1_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ4 B2 Volume", MADERA_EQ4_1, MADERA_EQ4_B2_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ4 B3 Volume", MADERA_EQ4_1, MADERA_EQ4_B3_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ4 B4 Volume", MADERA_EQ4_2, MADERA_EQ4_B4_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ4 B5 Volume", MADERA_EQ4_2, MADERA_EQ4_B5_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+
+MADERA_MIXER_CONTROLS("DRC1L", MADERA_DRC1LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DRC1R", MADERA_DRC1RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DRC2L", MADERA_DRC2LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DRC2R", MADERA_DRC2RMIX_INPUT_1_SOURCE),
+
+SND_SOC_BYTES_MASK("DRC1", MADERA_DRC1_CTRL1, 5,
+ MADERA_DRC1R_ENA | MADERA_DRC1L_ENA),
+SND_SOC_BYTES_MASK("DRC2", MADERA_DRC2_CTRL1, 5,
+ MADERA_DRC2R_ENA | MADERA_DRC2L_ENA),
+
+MADERA_MIXER_CONTROLS("LHPF1", MADERA_HPLP1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("LHPF2", MADERA_HPLP2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("LHPF3", MADERA_HPLP3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("LHPF4", MADERA_HPLP4MIX_INPUT_1_SOURCE),
+
+MADERA_LHPF_CONTROL("LHPF1 Coefficients", MADERA_HPLPF1_2),
+MADERA_LHPF_CONTROL("LHPF2 Coefficients", MADERA_HPLPF2_2),
+MADERA_LHPF_CONTROL("LHPF3 Coefficients", MADERA_HPLPF3_2),
+MADERA_LHPF_CONTROL("LHPF4 Coefficients", MADERA_HPLPF4_2),
+
+SOC_ENUM("LHPF1 Mode", madera_lhpf1_mode),
+SOC_ENUM("LHPF2 Mode", madera_lhpf2_mode),
+SOC_ENUM("LHPF3 Mode", madera_lhpf3_mode),
+SOC_ENUM("LHPF4 Mode", madera_lhpf4_mode),
+
+SOC_ENUM("Sample Rate 2", madera_sample_rate[0]),
+SOC_ENUM("Sample Rate 3", madera_sample_rate[1]),
+SOC_ENUM("ASYNC Sample Rate 2", madera_sample_rate[2]),
+
+MADERA_RATE_ENUM("ISRC1 FSL", madera_isrc_fsl[0]),
+MADERA_RATE_ENUM("ISRC2 FSL", madera_isrc_fsl[1]),
+MADERA_RATE_ENUM("ISRC3 FSL", madera_isrc_fsl[2]),
+MADERA_RATE_ENUM("ISRC4 FSL", madera_isrc_fsl[3]),
+MADERA_RATE_ENUM("ISRC1 FSH", madera_isrc_fsh[0]),
+MADERA_RATE_ENUM("ISRC2 FSH", madera_isrc_fsh[1]),
+MADERA_RATE_ENUM("ISRC3 FSH", madera_isrc_fsh[2]),
+MADERA_RATE_ENUM("ISRC4 FSH", madera_isrc_fsh[3]),
+MADERA_RATE_ENUM("ASRC1 Rate 1", madera_asrc1_rate[0]),
+MADERA_RATE_ENUM("ASRC1 Rate 2", madera_asrc1_rate[1]),
+MADERA_RATE_ENUM("ASRC2 Rate 1", madera_asrc2_rate[0]),
+MADERA_RATE_ENUM("ASRC2 Rate 2", madera_asrc2_rate[1]),
+
+MADERA_MIXER_CONTROLS("DSP1L", MADERA_DSP1LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP1R", MADERA_DSP1RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP2L", MADERA_DSP2LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP2R", MADERA_DSP2RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP3L", MADERA_DSP3LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP3R", MADERA_DSP3RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP4L", MADERA_DSP4LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP4R", MADERA_DSP4RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP5L", MADERA_DSP5LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP5R", MADERA_DSP5RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP6L", MADERA_DSP6LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP6R", MADERA_DSP6RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP7L", MADERA_DSP7LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP7R", MADERA_DSP7RMIX_INPUT_1_SOURCE),
+
+SOC_SINGLE_TLV("Noise Generator Volume", MADERA_COMFORT_NOISE_GENERATOR,
+ MADERA_NOISE_GEN_GAIN_SHIFT, 0x16, 0, madera_noise_tlv),
+
+MADERA_MIXER_CONTROLS("HPOUT1L", MADERA_OUT1LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("HPOUT1R", MADERA_OUT1RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("HPOUT2L", MADERA_OUT2LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("HPOUT2R", MADERA_OUT2RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("HPOUT3L", MADERA_OUT3LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("HPOUT3R", MADERA_OUT3RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SPKOUTL", MADERA_OUT4LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SPKOUTR", MADERA_OUT4RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SPKDAT1L", MADERA_OUT5LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SPKDAT1R", MADERA_OUT5RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SPKDAT2L", MADERA_OUT6LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SPKDAT2R", MADERA_OUT6RMIX_INPUT_1_SOURCE),
+
+SOC_SINGLE("HPOUT1 SC Protect Switch", MADERA_HP1_SHORT_CIRCUIT_CTRL,
+ MADERA_HP1_SC_ENA_SHIFT, 1, 0),
+SOC_SINGLE("HPOUT2 SC Protect Switch", MADERA_HP2_SHORT_CIRCUIT_CTRL,
+ MADERA_HP2_SC_ENA_SHIFT, 1, 0),
+SOC_SINGLE("HPOUT3 SC Protect Switch", MADERA_HP3_SHORT_CIRCUIT_CTRL,
+ MADERA_HP3_SC_ENA_SHIFT, 1, 0),
+
+SOC_SINGLE("HPOUT1L ONEFLT Switch", MADERA_HP_TEST_CTRL_5,
+ MADERA_HP1L_ONEFLT_SHIFT, 1, 0),
+SOC_SINGLE("HPOUT1R ONEFLT Switch", MADERA_HP_TEST_CTRL_6,
+ MADERA_HP1R_ONEFLT_SHIFT, 1, 0),
+
+SOC_SINGLE("SPKDAT1 High Performance Switch", MADERA_OUTPUT_PATH_CONFIG_5L,
+ MADERA_OUT5_OSR_SHIFT, 1, 0),
+SOC_SINGLE("SPKDAT2 High Performance Switch", MADERA_OUTPUT_PATH_CONFIG_6L,
+ MADERA_OUT6_OSR_SHIFT, 1, 0),
+
+SOC_DOUBLE_R("HPOUT1 Digital Switch", MADERA_DAC_DIGITAL_VOLUME_1L,
+ MADERA_DAC_DIGITAL_VOLUME_1R, MADERA_OUT1L_MUTE_SHIFT, 1, 1),
+SOC_DOUBLE_R("HPOUT2 Digital Switch", MADERA_DAC_DIGITAL_VOLUME_2L,
+ MADERA_DAC_DIGITAL_VOLUME_2R, MADERA_OUT2L_MUTE_SHIFT, 1, 1),
+SOC_DOUBLE_R("HPOUT3 Digital Switch", MADERA_DAC_DIGITAL_VOLUME_3L,
+ MADERA_DAC_DIGITAL_VOLUME_3R, MADERA_OUT3L_MUTE_SHIFT, 1, 1),
+SOC_DOUBLE_R("Speaker Digital Switch", MADERA_DAC_DIGITAL_VOLUME_4L,
+ MADERA_DAC_DIGITAL_VOLUME_4R, MADERA_OUT4L_MUTE_SHIFT, 1, 1),
+SOC_DOUBLE_R("SPKDAT1 Digital Switch", MADERA_DAC_DIGITAL_VOLUME_5L,
+ MADERA_DAC_DIGITAL_VOLUME_5R, MADERA_OUT5L_MUTE_SHIFT, 1, 1),
+SOC_DOUBLE_R("SPKDAT2 Digital Switch", MADERA_DAC_DIGITAL_VOLUME_6L,
+ MADERA_DAC_DIGITAL_VOLUME_6R, MADERA_OUT6L_MUTE_SHIFT, 1, 1),
+
+SOC_DOUBLE_R_TLV("HPOUT1 Digital Volume", MADERA_DAC_DIGITAL_VOLUME_1L,
+ MADERA_DAC_DIGITAL_VOLUME_1R, MADERA_OUT1L_VOL_SHIFT,
+ 0xbf, 0, madera_digital_tlv),
+SOC_DOUBLE_R_TLV("HPOUT2 Digital Volume", MADERA_DAC_DIGITAL_VOLUME_2L,
+ MADERA_DAC_DIGITAL_VOLUME_2R, MADERA_OUT2L_VOL_SHIFT,
+ 0xbf, 0, madera_digital_tlv),
+SOC_DOUBLE_R_TLV("HPOUT3 Digital Volume", MADERA_DAC_DIGITAL_VOLUME_3L,
+ MADERA_DAC_DIGITAL_VOLUME_3R, MADERA_OUT3L_VOL_SHIFT,
+ 0xbf, 0, madera_digital_tlv),
+SOC_DOUBLE_R_TLV("Speaker Digital Volume", MADERA_DAC_DIGITAL_VOLUME_4L,
+ MADERA_DAC_DIGITAL_VOLUME_4R, MADERA_OUT4L_VOL_SHIFT,
+ 0xbf, 0, madera_digital_tlv),
+SOC_DOUBLE_R_TLV("SPKDAT1 Digital Volume", MADERA_DAC_DIGITAL_VOLUME_5L,
+ MADERA_DAC_DIGITAL_VOLUME_5R, MADERA_OUT5L_VOL_SHIFT,
+ 0xbf, 0, madera_digital_tlv),
+SOC_DOUBLE_R_TLV("SPKDAT2 Digital Volume", MADERA_DAC_DIGITAL_VOLUME_6L,
+ MADERA_DAC_DIGITAL_VOLUME_6R, MADERA_OUT6L_VOL_SHIFT,
+ 0xbf, 0, madera_digital_tlv),
+
+SOC_DOUBLE("SPKDAT1 Switch", MADERA_PDM_SPK1_CTRL_1, MADERA_SPK1L_MUTE_SHIFT,
+ MADERA_SPK1R_MUTE_SHIFT, 1, 1),
+SOC_DOUBLE("SPKDAT2 Switch", MADERA_PDM_SPK2_CTRL_1, MADERA_SPK2L_MUTE_SHIFT,
+ MADERA_SPK2R_MUTE_SHIFT, 1, 1),
+
+SOC_DOUBLE("HPOUT1 EDRE Switch", MADERA_EDRE_ENABLE,
+ MADERA_EDRE_OUT1L_THR1_ENA_SHIFT,
+ MADERA_EDRE_OUT1R_THR1_ENA_SHIFT, 1, 0),
+SOC_DOUBLE("HPOUT2 EDRE Switch", MADERA_EDRE_ENABLE,
+ MADERA_EDRE_OUT2L_THR1_ENA_SHIFT,
+ MADERA_EDRE_OUT2R_THR1_ENA_SHIFT, 1, 0),
+SOC_DOUBLE("HPOUT3 EDRE Switch", MADERA_EDRE_ENABLE,
+ MADERA_EDRE_OUT3L_THR1_ENA_SHIFT,
+ MADERA_EDRE_OUT3R_THR1_ENA_SHIFT, 1, 0),
+
+SOC_ENUM("Output Ramp Up", madera_out_vi_ramp),
+SOC_ENUM("Output Ramp Down", madera_out_vd_ramp),
+
+SOC_SINGLE("Noise Gate Switch", MADERA_NOISE_GATE_CONTROL,
+ MADERA_NGATE_ENA_SHIFT, 1, 0),
+SOC_SINGLE_TLV("Noise Gate Threshold Volume", MADERA_NOISE_GATE_CONTROL,
+ MADERA_NGATE_THR_SHIFT, 7, 1, madera_ng_tlv),
+SOC_ENUM("Noise Gate Hold", madera_ng_hold),
+
+CS47L85_NG_SRC("HPOUT1L", MADERA_NOISE_GATE_SELECT_1L),
+CS47L85_NG_SRC("HPOUT1R", MADERA_NOISE_GATE_SELECT_1R),
+CS47L85_NG_SRC("HPOUT2L", MADERA_NOISE_GATE_SELECT_2L),
+CS47L85_NG_SRC("HPOUT2R", MADERA_NOISE_GATE_SELECT_2R),
+CS47L85_NG_SRC("HPOUT3L", MADERA_NOISE_GATE_SELECT_3L),
+CS47L85_NG_SRC("HPOUT3R", MADERA_NOISE_GATE_SELECT_3R),
+CS47L85_NG_SRC("SPKOUTL", MADERA_NOISE_GATE_SELECT_4L),
+CS47L85_NG_SRC("SPKOUTR", MADERA_NOISE_GATE_SELECT_4R),
+CS47L85_NG_SRC("SPKDAT1L", MADERA_NOISE_GATE_SELECT_5L),
+CS47L85_NG_SRC("SPKDAT1R", MADERA_NOISE_GATE_SELECT_5R),
+CS47L85_NG_SRC("SPKDAT2L", MADERA_NOISE_GATE_SELECT_6L),
+CS47L85_NG_SRC("SPKDAT2R", MADERA_NOISE_GATE_SELECT_6R),
+
+MADERA_MIXER_CONTROLS("AIF1TX1", MADERA_AIF1TX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX2", MADERA_AIF1TX2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX3", MADERA_AIF1TX3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX4", MADERA_AIF1TX4MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX5", MADERA_AIF1TX5MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX6", MADERA_AIF1TX6MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX7", MADERA_AIF1TX7MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX8", MADERA_AIF1TX8MIX_INPUT_1_SOURCE),
+
+MADERA_MIXER_CONTROLS("AIF2TX1", MADERA_AIF2TX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX2", MADERA_AIF2TX2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX3", MADERA_AIF2TX3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX4", MADERA_AIF2TX4MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX5", MADERA_AIF2TX5MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX6", MADERA_AIF2TX6MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX7", MADERA_AIF2TX7MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX8", MADERA_AIF2TX8MIX_INPUT_1_SOURCE),
+
+MADERA_MIXER_CONTROLS("AIF3TX1", MADERA_AIF3TX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF3TX2", MADERA_AIF3TX2MIX_INPUT_1_SOURCE),
+
+MADERA_MIXER_CONTROLS("AIF4TX1", MADERA_AIF4TX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF4TX2", MADERA_AIF4TX2MIX_INPUT_1_SOURCE),
+
+MADERA_MIXER_CONTROLS("SLIMTX1", MADERA_SLIMTX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX2", MADERA_SLIMTX2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX3", MADERA_SLIMTX3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX4", MADERA_SLIMTX4MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX5", MADERA_SLIMTX5MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX6", MADERA_SLIMTX6MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX7", MADERA_SLIMTX7MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX8", MADERA_SLIMTX8MIX_INPUT_1_SOURCE),
+
+MADERA_GAINMUX_CONTROLS("SPDIF1TX1", MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE),
+MADERA_GAINMUX_CONTROLS("SPDIF1TX2", MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE),
+};
+
+MADERA_MIXER_ENUMS(EQ1, MADERA_EQ1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(EQ2, MADERA_EQ2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(EQ3, MADERA_EQ3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(EQ4, MADERA_EQ4MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DRC1L, MADERA_DRC1LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DRC1R, MADERA_DRC1RMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DRC2L, MADERA_DRC2LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DRC2R, MADERA_DRC2RMIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(LHPF1, MADERA_HPLP1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(LHPF2, MADERA_HPLP2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(LHPF3, MADERA_HPLP3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(LHPF4, MADERA_HPLP4MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP1L, MADERA_DSP1LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP1R, MADERA_DSP1RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP1, MADERA_DSP1AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP2L, MADERA_DSP2LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP2R, MADERA_DSP2RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP2, MADERA_DSP2AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP3L, MADERA_DSP3LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP3R, MADERA_DSP3RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP3, MADERA_DSP3AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP4L, MADERA_DSP4LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP4R, MADERA_DSP4RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP4, MADERA_DSP4AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP5L, MADERA_DSP5LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP5R, MADERA_DSP5RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP5, MADERA_DSP5AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP6L, MADERA_DSP6LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP6R, MADERA_DSP6RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP6, MADERA_DSP6AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP7L, MADERA_DSP7LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP7R, MADERA_DSP7RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP7, MADERA_DSP7AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(PWM1, MADERA_PWM1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(PWM2, MADERA_PWM2MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(OUT1L, MADERA_OUT1LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(OUT1R, MADERA_OUT1RMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(OUT2L, MADERA_OUT2LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(OUT2R, MADERA_OUT2RMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(OUT3L, MADERA_OUT3LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(OUT3R, MADERA_OUT3RMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SPKOUTL, MADERA_OUT4LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SPKOUTR, MADERA_OUT4RMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SPKDAT1L, MADERA_OUT5LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SPKDAT1R, MADERA_OUT5RMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SPKDAT2L, MADERA_OUT6LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SPKDAT2R, MADERA_OUT6RMIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(AIF1TX1, MADERA_AIF1TX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX2, MADERA_AIF1TX2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX3, MADERA_AIF1TX3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX4, MADERA_AIF1TX4MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX5, MADERA_AIF1TX5MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX6, MADERA_AIF1TX6MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX7, MADERA_AIF1TX7MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX8, MADERA_AIF1TX8MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(AIF2TX1, MADERA_AIF2TX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX2, MADERA_AIF2TX2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX3, MADERA_AIF2TX3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX4, MADERA_AIF2TX4MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX5, MADERA_AIF2TX5MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX6, MADERA_AIF2TX6MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX7, MADERA_AIF2TX7MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX8, MADERA_AIF2TX8MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(AIF3TX1, MADERA_AIF3TX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF3TX2, MADERA_AIF3TX2MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(AIF4TX1, MADERA_AIF4TX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF4TX2, MADERA_AIF4TX2MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(SLIMTX1, MADERA_SLIMTX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX2, MADERA_SLIMTX2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX3, MADERA_SLIMTX3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX4, MADERA_SLIMTX4MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX5, MADERA_SLIMTX5MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX6, MADERA_SLIMTX6MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX7, MADERA_SLIMTX7MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX8, MADERA_SLIMTX8MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(SPD1TX1, MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(SPD1TX2, MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ASRC1IN1L, MADERA_ASRC1_1LMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC1IN1R, MADERA_ASRC1_1RMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC1IN2L, MADERA_ASRC1_2LMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC1IN2R, MADERA_ASRC1_2RMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC2IN1L, MADERA_ASRC2_1LMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC2IN1R, MADERA_ASRC2_1RMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC2IN2L, MADERA_ASRC2_2LMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC2IN2R, MADERA_ASRC2_2RMIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC1INT1, MADERA_ISRC1INT1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1INT2, MADERA_ISRC1INT2MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1INT3, MADERA_ISRC1INT3MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1INT4, MADERA_ISRC1INT4MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC1DEC1, MADERA_ISRC1DEC1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1DEC2, MADERA_ISRC1DEC2MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1DEC3, MADERA_ISRC1DEC3MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1DEC4, MADERA_ISRC1DEC4MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC2INT1, MADERA_ISRC2INT1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2INT2, MADERA_ISRC2INT2MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2INT3, MADERA_ISRC2INT3MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2INT4, MADERA_ISRC2INT4MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC2DEC1, MADERA_ISRC2DEC1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2DEC2, MADERA_ISRC2DEC2MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2DEC3, MADERA_ISRC2DEC3MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2DEC4, MADERA_ISRC2DEC4MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC3INT1, MADERA_ISRC3INT1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC3INT2, MADERA_ISRC3INT2MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC3DEC1, MADERA_ISRC3DEC1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC3DEC2, MADERA_ISRC3DEC2MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC4INT1, MADERA_ISRC4INT1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC4INT2, MADERA_ISRC4INT2MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC4DEC1, MADERA_ISRC4DEC1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC4DEC2, MADERA_ISRC4DEC2MIX_INPUT_1_SOURCE);
+
+static const char * const cs47l85_aec_loopback_texts[] = {
+ "HPOUT1L", "HPOUT1R", "HPOUT2L", "HPOUT2R", "HPOUT3L", "HPOUT3R",
+ "SPKOUTL", "SPKOUTR", "SPKDAT1L", "SPKDAT1R", "SPKDAT2L", "SPKDAT2R",
+};
+
+static const unsigned int cs47l85_aec_loopback_values[] = {
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
+};
+
+static const struct soc_enum cs47l85_aec1_loopback =
+ SOC_VALUE_ENUM_SINGLE(MADERA_DAC_AEC_CONTROL_1,
+ MADERA_AEC1_LOOPBACK_SRC_SHIFT, 0xf,
+ ARRAY_SIZE(cs47l85_aec_loopback_texts),
+ cs47l85_aec_loopback_texts,
+ cs47l85_aec_loopback_values);
+
+static const struct soc_enum cs47l85_aec2_loopback =
+ SOC_VALUE_ENUM_SINGLE(MADERA_DAC_AEC_CONTROL_2,
+ MADERA_AEC2_LOOPBACK_SRC_SHIFT, 0xf,
+ ARRAY_SIZE(cs47l85_aec_loopback_texts),
+ cs47l85_aec_loopback_texts,
+ cs47l85_aec_loopback_values);
+
+static const struct snd_kcontrol_new cs47l85_aec_loopback_mux[] = {
+ SOC_DAPM_ENUM("AEC1 Loopback", cs47l85_aec1_loopback),
+ SOC_DAPM_ENUM("AEC2 Loopback", cs47l85_aec2_loopback),
+};
+
+static const struct snd_kcontrol_new cs47l85_anc_input_mux[] = {
+ SOC_DAPM_ENUM("RXANCL Input", madera_anc_input_src[0]),
+ SOC_DAPM_ENUM("RXANCL Channel", madera_anc_input_src[1]),
+ SOC_DAPM_ENUM("RXANCR Input", madera_anc_input_src[2]),
+ SOC_DAPM_ENUM("RXANCR Channel", madera_anc_input_src[3]),
+};
+
+static const struct snd_kcontrol_new cs47l85_anc_ng_mux =
+ SOC_DAPM_ENUM("RXANC NG Source", madera_anc_ng_enum);
+
+static const struct snd_kcontrol_new cs47l85_output_anc_src[] = {
+ SOC_DAPM_ENUM("HPOUT1L ANC Source", madera_output_anc_src[0]),
+ SOC_DAPM_ENUM("HPOUT1R ANC Source", madera_output_anc_src[1]),
+ SOC_DAPM_ENUM("HPOUT2L ANC Source", madera_output_anc_src[2]),
+ SOC_DAPM_ENUM("HPOUT2R ANC Source", madera_output_anc_src[3]),
+ SOC_DAPM_ENUM("HPOUT3L ANC Source", madera_output_anc_src[4]),
+ SOC_DAPM_ENUM("HPOUT3R ANC Source", madera_output_anc_src[5]),
+ SOC_DAPM_ENUM("SPKOUTL ANC Source", madera_output_anc_src[6]),
+ SOC_DAPM_ENUM("SPKOUTR ANC Source", madera_output_anc_src[7]),
+ SOC_DAPM_ENUM("SPKDAT1L ANC Source", madera_output_anc_src[8]),
+ SOC_DAPM_ENUM("SPKDAT1R ANC Source", madera_output_anc_src[9]),
+ SOC_DAPM_ENUM("SPKDAT2L ANC Source", madera_output_anc_src[10]),
+ SOC_DAPM_ENUM("SPKDAT2R ANC Source", madera_output_anc_src[11]),
+};
+
+static const struct snd_soc_dapm_widget cs47l85_dapm_widgets[] = {
+SND_SOC_DAPM_SUPPLY("SYSCLK", MADERA_SYSTEM_CLOCK_1, MADERA_SYSCLK_ENA_SHIFT,
+ 0, madera_sysclk_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+SND_SOC_DAPM_SUPPLY("ASYNCCLK", MADERA_ASYNC_CLOCK_1,
+ MADERA_ASYNC_CLK_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("OPCLK", MADERA_OUTPUT_SYSTEM_CLOCK,
+ MADERA_OPCLK_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("ASYNCOPCLK", MADERA_OUTPUT_ASYNC_CLOCK,
+ MADERA_OPCLK_ASYNC_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("DSPCLK", MADERA_DSP_CLOCK_1,
+ MADERA_DSP_CLK_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_REGULATOR_SUPPLY("DBVDD2", 0, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("DBVDD3", 0, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("DBVDD4", 0, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("CPVDD1", 20, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("CPVDD2", 20, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("MICVDD", 0, SND_SOC_DAPM_REGULATOR_BYPASS),
+SND_SOC_DAPM_REGULATOR_SUPPLY("SPKVDDL", 0, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("SPKVDDR", 0, 0),
+
+SND_SOC_DAPM_SUPPLY("MICBIAS1", MADERA_MIC_BIAS_CTRL_1,
+ MADERA_MICB1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS2", MADERA_MIC_BIAS_CTRL_2,
+ MADERA_MICB1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS3", MADERA_MIC_BIAS_CTRL_3,
+ MADERA_MICB1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS4", MADERA_MIC_BIAS_CTRL_4,
+ MADERA_MICB1_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_SUPPLY("FXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_FX, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ASRC1R1CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ASRC1_RATE_1, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ASRC1R2CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ASRC1_RATE_2, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ASRC2R1CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ASRC2_RATE_1, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ASRC2R2CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ASRC2_RATE_2, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ISRC1DECCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ISRC1_DEC, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ISRC1INTCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ISRC1_INT, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ISRC2DECCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ISRC2_DEC, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ISRC2INTCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ISRC2_INT, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("OUTCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_OUT, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("SPDCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_SPD, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP1CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP1, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP2CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP2, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP3CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP3, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP4CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP4, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP5CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP5, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP6CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP6, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP7CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP7, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("AIF1TXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_AIF1, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("AIF2TXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_AIF2, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("AIF3TXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_AIF3, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("AIF4TXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_AIF4, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("SLIMBUSCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_SLIMBUS, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("PWMCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_PWM, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+
+SND_SOC_DAPM_SUPPLY("RXANC NG External Clock", SND_SOC_NOPM,
+ MADERA_EXT_NG_SEL_SET_SHIFT, 0, madera_anc_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+
+SND_SOC_DAPM_SUPPLY("RXANC NG Clock", SND_SOC_NOPM,
+ MADERA_CLK_NG_ENA_SET_SHIFT, 0, madera_anc_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+
+SND_SOC_DAPM_SIGGEN("TONE"),
+SND_SOC_DAPM_SIGGEN("NOISE"),
+
+SND_SOC_DAPM_INPUT("IN1AL"),
+SND_SOC_DAPM_INPUT("IN1B"),
+SND_SOC_DAPM_INPUT("IN1R"),
+SND_SOC_DAPM_INPUT("IN2AL"),
+SND_SOC_DAPM_INPUT("IN2AR"),
+SND_SOC_DAPM_INPUT("IN2BL"),
+SND_SOC_DAPM_INPUT("IN2BR"),
+SND_SOC_DAPM_INPUT("IN3L"),
+SND_SOC_DAPM_INPUT("IN3R"),
+SND_SOC_DAPM_INPUT("IN4L"),
+SND_SOC_DAPM_INPUT("IN4R"),
+SND_SOC_DAPM_INPUT("IN5L"),
+SND_SOC_DAPM_INPUT("IN5R"),
+SND_SOC_DAPM_INPUT("IN6L"),
+SND_SOC_DAPM_INPUT("IN6R"),
+
+SND_SOC_DAPM_OUTPUT("DRC1 Signal Activity"),
+SND_SOC_DAPM_OUTPUT("DRC2 Signal Activity"),
+
+SND_SOC_DAPM_OUTPUT("DSP Trigger Out"),
+
+SND_SOC_DAPM_MUX("IN1L Mux", SND_SOC_NOPM, 0, 0, &madera_inmux[0]),
+SND_SOC_DAPM_MUX("IN2L Mux", SND_SOC_NOPM, 0, 0, &madera_inmux[2]),
+SND_SOC_DAPM_MUX("IN2R Mux", SND_SOC_NOPM, 0, 0, &madera_inmux[3]),
+
+SND_SOC_DAPM_PGA("PWM1 Driver", MADERA_PWM_DRIVE_1, MADERA_PWM1_ENA_SHIFT,
+ 0, NULL, 0),
+SND_SOC_DAPM_PGA("PWM2 Driver", MADERA_PWM_DRIVE_1, MADERA_PWM2_ENA_SHIFT,
+ 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("RXANCL NG External", SND_SOC_NOPM, 0, 0, NULL, 0),
+SND_SOC_DAPM_PGA("RXANCR NG External", SND_SOC_NOPM, 0, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("RXANCL NG Internal", SND_SOC_NOPM, 0, 0, NULL, 0),
+SND_SOC_DAPM_PGA("RXANCR NG Internal", SND_SOC_NOPM, 0, 0, NULL, 0),
+
+SND_SOC_DAPM_MUX("RXANCL Left Input", SND_SOC_NOPM, 0, 0,
+ &cs47l85_anc_input_mux[0]),
+SND_SOC_DAPM_MUX("RXANCL Right Input", SND_SOC_NOPM, 0, 0,
+ &cs47l85_anc_input_mux[0]),
+SND_SOC_DAPM_MUX("RXANCL Channel", SND_SOC_NOPM, 0, 0,
+ &cs47l85_anc_input_mux[1]),
+SND_SOC_DAPM_MUX("RXANCL NG Mux", SND_SOC_NOPM, 0, 0, &cs47l85_anc_ng_mux),
+SND_SOC_DAPM_MUX("RXANCR Left Input", SND_SOC_NOPM, 0, 0,
+ &cs47l85_anc_input_mux[2]),
+SND_SOC_DAPM_MUX("RXANCR Right Input", SND_SOC_NOPM, 0, 0,
+ &cs47l85_anc_input_mux[2]),
+SND_SOC_DAPM_MUX("RXANCR Channel", SND_SOC_NOPM, 0, 0,
+ &cs47l85_anc_input_mux[3]),
+SND_SOC_DAPM_MUX("RXANCR NG Mux", SND_SOC_NOPM, 0, 0, &cs47l85_anc_ng_mux),
+
+SND_SOC_DAPM_PGA_E("RXANCL", SND_SOC_NOPM, MADERA_CLK_L_ENA_SET_SHIFT,
+ 0, NULL, 0, madera_anc_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+SND_SOC_DAPM_PGA_E("RXANCR", SND_SOC_NOPM, MADERA_CLK_R_ENA_SET_SHIFT,
+ 0, NULL, 0, madera_anc_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+
+SND_SOC_DAPM_MUX("HPOUT1L ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l85_output_anc_src[0]),
+SND_SOC_DAPM_MUX("HPOUT1R ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l85_output_anc_src[1]),
+SND_SOC_DAPM_MUX("HPOUT2L ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l85_output_anc_src[2]),
+SND_SOC_DAPM_MUX("HPOUT2R ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l85_output_anc_src[3]),
+SND_SOC_DAPM_MUX("HPOUT3L ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l85_output_anc_src[4]),
+SND_SOC_DAPM_MUX("HPOUT3R ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l85_output_anc_src[5]),
+SND_SOC_DAPM_MUX("SPKOUTL ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l85_output_anc_src[6]),
+SND_SOC_DAPM_MUX("SPKOUTR ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l85_output_anc_src[7]),
+SND_SOC_DAPM_MUX("SPKDAT1L ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l85_output_anc_src[8]),
+SND_SOC_DAPM_MUX("SPKDAT1R ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l85_output_anc_src[9]),
+SND_SOC_DAPM_MUX("SPKDAT2L ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l85_output_anc_src[10]),
+SND_SOC_DAPM_MUX("SPKDAT2R ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l85_output_anc_src[11]),
+
+SND_SOC_DAPM_AIF_OUT("AIF1TX1", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX2", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX3", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX4", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX5", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX6", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX6_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX7", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX7_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX8", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX8_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_OUT("AIF2TX1", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX2", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX3", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX4", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX5", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX6", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX6_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX7", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX7_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX8", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX8_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_OUT("SLIMTX1", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX2", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX3", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX4", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX5", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX6", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX6_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX7", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX7_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX8", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX8_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_OUT("AIF3TX1", NULL, 0,
+ MADERA_AIF3_TX_ENABLES, MADERA_AIF3TX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF3TX2", NULL, 0,
+ MADERA_AIF3_TX_ENABLES, MADERA_AIF3TX2_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_OUT("AIF4TX1", NULL, 0,
+ MADERA_AIF4_TX_ENABLES, MADERA_AIF4TX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF4TX2", NULL, 0,
+ MADERA_AIF4_TX_ENABLES, MADERA_AIF4TX2_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_PGA_E("OUT1L", SND_SOC_NOPM,
+ MADERA_OUT1L_ENA_SHIFT, 0, NULL, 0, cs47l85_hp_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT1R", SND_SOC_NOPM,
+ MADERA_OUT1R_ENA_SHIFT, 0, NULL, 0, cs47l85_hp_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT2L", MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT2L_ENA_SHIFT, 0, NULL, 0, madera_out_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT2R", MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT2R_ENA_SHIFT, 0, NULL, 0, madera_out_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT3L", MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT3L_ENA_SHIFT, 0, NULL, 0, madera_out_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT3R", MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT3R_ENA_SHIFT, 0, NULL, 0, madera_out_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT4L", SND_SOC_NOPM,
+ MADERA_OUT4L_ENA_SHIFT, 0, NULL, 0, madera_spk_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+SND_SOC_DAPM_PGA_E("OUT4R", SND_SOC_NOPM,
+ MADERA_OUT4R_ENA_SHIFT, 0, NULL, 0, madera_spk_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+SND_SOC_DAPM_PGA_E("OUT5L", MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT5L_ENA_SHIFT, 0, NULL, 0, madera_out_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT5R", MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT5R_ENA_SHIFT, 0, NULL, 0, madera_out_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT6L", MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT6L_ENA_SHIFT, 0, NULL, 0, madera_out_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT6R", MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT6R_ENA_SHIFT, 0, NULL, 0, madera_out_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMU),
+
+SND_SOC_DAPM_PGA("SPD1TX1", MADERA_SPD1_TX_CONTROL,
+ MADERA_SPD1_VAL1_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("SPD1TX2", MADERA_SPD1_TX_CONTROL,
+ MADERA_SPD1_VAL2_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_OUT_DRV("SPD1", MADERA_SPD1_TX_CONTROL,
+ MADERA_SPD1_ENA_SHIFT, 0, NULL, 0),
+
+/*
+ * Input mux widgets arranged in order of sources in MADERA_MIXER_INPUT_ROUTES
+ * to take advantage of cache lookup in DAPM
+ */
+SND_SOC_DAPM_PGA("Noise Generator", MADERA_COMFORT_NOISE_GENERATOR,
+ MADERA_NOISE_GEN_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("Tone Generator 1", MADERA_TONE_GENERATOR_1,
+ MADERA_TONE1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("Tone Generator 2", MADERA_TONE_GENERATOR_1,
+ MADERA_TONE2_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_SIGGEN("HAPTICS"),
+
+SND_SOC_DAPM_MUX("AEC1 Loopback", MADERA_DAC_AEC_CONTROL_1,
+ MADERA_AEC1_LOOPBACK_ENA_SHIFT, 0,
+ &cs47l85_aec_loopback_mux[0]),
+SND_SOC_DAPM_MUX("AEC2 Loopback", MADERA_DAC_AEC_CONTROL_2,
+ MADERA_AEC2_LOOPBACK_ENA_SHIFT, 0,
+ &cs47l85_aec_loopback_mux[1]),
+
+SND_SOC_DAPM_PGA_E("IN1L PGA", MADERA_INPUT_ENABLES, MADERA_IN1L_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN1R PGA", MADERA_INPUT_ENABLES, MADERA_IN1R_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN2L PGA", MADERA_INPUT_ENABLES, MADERA_IN2L_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN2R PGA", MADERA_INPUT_ENABLES, MADERA_IN2R_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN3L PGA", MADERA_INPUT_ENABLES, MADERA_IN3L_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN3R PGA", MADERA_INPUT_ENABLES, MADERA_IN3R_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN4L PGA", MADERA_INPUT_ENABLES, MADERA_IN4L_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN4R PGA", MADERA_INPUT_ENABLES, MADERA_IN4R_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN5L PGA", MADERA_INPUT_ENABLES, MADERA_IN5L_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN5R PGA", MADERA_INPUT_ENABLES, MADERA_IN5R_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN6L PGA", MADERA_INPUT_ENABLES, MADERA_IN6L_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN6R PGA", MADERA_INPUT_ENABLES, MADERA_IN6R_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+
+SND_SOC_DAPM_AIF_IN("AIF1RX1", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX2", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX3", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX4", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX5", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX6", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX6_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX7", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX7_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX8", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX8_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_IN("AIF2RX1", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX2", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX3", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX4", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX5", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX6", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX6_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX7", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX7_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX8", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX8_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_IN("AIF3RX1", NULL, 0,
+ MADERA_AIF3_RX_ENABLES, MADERA_AIF3RX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF3RX2", NULL, 0,
+ MADERA_AIF3_RX_ENABLES, MADERA_AIF3RX2_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_IN("AIF4RX1", NULL, 0,
+ MADERA_AIF4_RX_ENABLES, MADERA_AIF4RX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF4RX2", NULL, 0,
+ MADERA_AIF4_RX_ENABLES, MADERA_AIF4RX2_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_IN("SLIMRX1", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX2", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX3", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX4", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX5", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX6", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX6_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX7", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX7_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX8", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX8_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_PGA("EQ1", MADERA_EQ1_1, MADERA_EQ1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("EQ2", MADERA_EQ2_1, MADERA_EQ2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("EQ3", MADERA_EQ3_1, MADERA_EQ3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("EQ4", MADERA_EQ4_1, MADERA_EQ4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("DRC1L", MADERA_DRC1_CTRL1, MADERA_DRC1L_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("DRC1R", MADERA_DRC1_CTRL1, MADERA_DRC1R_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("DRC2L", MADERA_DRC2_CTRL1, MADERA_DRC2L_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("DRC2R", MADERA_DRC2_CTRL1, MADERA_DRC2R_ENA_SHIFT, 0,
+ NULL, 0),
+
+SND_SOC_DAPM_PGA("LHPF1", MADERA_HPLPF1_1, MADERA_LHPF1_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("LHPF2", MADERA_HPLPF2_1, MADERA_LHPF2_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("LHPF3", MADERA_HPLPF3_1, MADERA_LHPF3_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("LHPF4", MADERA_HPLPF4_1, MADERA_LHPF4_ENA_SHIFT, 0,
+ NULL, 0),
+
+SND_SOC_DAPM_PGA("ASRC1IN1L", MADERA_ASRC1_ENABLE, MADERA_ASRC1_IN1L_ENA_SHIFT,
+ 0, NULL, 0),
+SND_SOC_DAPM_PGA("ASRC1IN1R", MADERA_ASRC1_ENABLE, MADERA_ASRC1_IN1R_ENA_SHIFT,
+ 0, NULL, 0),
+SND_SOC_DAPM_PGA("ASRC1IN2L", MADERA_ASRC1_ENABLE, MADERA_ASRC1_IN2L_ENA_SHIFT,
+ 0, NULL, 0),
+SND_SOC_DAPM_PGA("ASRC1IN2R", MADERA_ASRC1_ENABLE, MADERA_ASRC1_IN2R_ENA_SHIFT,
+ 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ASRC2IN1L", MADERA_ASRC2_ENABLE, MADERA_ASRC2_IN1L_ENA_SHIFT,
+ 0, NULL, 0),
+SND_SOC_DAPM_PGA("ASRC2IN1R", MADERA_ASRC2_ENABLE, MADERA_ASRC2_IN1R_ENA_SHIFT,
+ 0, NULL, 0),
+SND_SOC_DAPM_PGA("ASRC2IN2L", MADERA_ASRC2_ENABLE, MADERA_ASRC2_IN2L_ENA_SHIFT,
+ 0, NULL, 0),
+SND_SOC_DAPM_PGA("ASRC2IN2R", MADERA_ASRC2_ENABLE, MADERA_ASRC2_IN2R_ENA_SHIFT,
+ 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC1DEC1", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_DEC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1DEC2", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_DEC2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1DEC3", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_DEC3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1DEC4", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_DEC4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC1INT1", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_INT1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1INT2", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_INT2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1INT3", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_INT3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1INT4", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_INT4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC2DEC1", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_DEC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2DEC2", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_DEC2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2DEC3", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_DEC3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2DEC4", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_DEC4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC2INT1", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_INT1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2INT2", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_INT2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2INT3", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_INT3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2INT4", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_INT4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC3DEC1", MADERA_ISRC_3_CTRL_3,
+ MADERA_ISRC3_DEC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC3DEC2", MADERA_ISRC_3_CTRL_3,
+ MADERA_ISRC3_DEC2_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC3INT1", MADERA_ISRC_3_CTRL_3,
+ MADERA_ISRC3_INT1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC3INT2", MADERA_ISRC_3_CTRL_3,
+ MADERA_ISRC3_INT2_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC4DEC1", MADERA_ISRC_4_CTRL_3,
+ MADERA_ISRC4_DEC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC4DEC2", MADERA_ISRC_4_CTRL_3,
+ MADERA_ISRC4_DEC2_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC4INT1", MADERA_ISRC_4_CTRL_3,
+ MADERA_ISRC4_INT1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC4INT2", MADERA_ISRC_4_CTRL_3,
+ MADERA_ISRC4_INT2_ENA_SHIFT, 0, NULL, 0),
+
+WM_ADSP2("DSP1", 0, cs47l85_adsp_power_ev),
+WM_ADSP2("DSP2", 1, cs47l85_adsp_power_ev),
+WM_ADSP2("DSP3", 2, cs47l85_adsp_power_ev),
+WM_ADSP2("DSP4", 3, cs47l85_adsp_power_ev),
+WM_ADSP2("DSP5", 4, cs47l85_adsp_power_ev),
+WM_ADSP2("DSP6", 5, cs47l85_adsp_power_ev),
+WM_ADSP2("DSP7", 6, cs47l85_adsp_power_ev),
+
+/* End of ordered input mux widgets */
+
+MADERA_MIXER_WIDGETS(EQ1, "EQ1"),
+MADERA_MIXER_WIDGETS(EQ2, "EQ2"),
+MADERA_MIXER_WIDGETS(EQ3, "EQ3"),
+MADERA_MIXER_WIDGETS(EQ4, "EQ4"),
+
+MADERA_MIXER_WIDGETS(DRC1L, "DRC1L"),
+MADERA_MIXER_WIDGETS(DRC1R, "DRC1R"),
+MADERA_MIXER_WIDGETS(DRC2L, "DRC2L"),
+MADERA_MIXER_WIDGETS(DRC2R, "DRC2R"),
+
+SND_SOC_DAPM_SWITCH("DRC1 Activity Output", SND_SOC_NOPM, 0, 0,
+ &madera_drc_activity_output_mux[0]),
+SND_SOC_DAPM_SWITCH("DRC2 Activity Output", SND_SOC_NOPM, 0, 0,
+ &madera_drc_activity_output_mux[1]),
+
+MADERA_MIXER_WIDGETS(LHPF1, "LHPF1"),
+MADERA_MIXER_WIDGETS(LHPF2, "LHPF2"),
+MADERA_MIXER_WIDGETS(LHPF3, "LHPF3"),
+MADERA_MIXER_WIDGETS(LHPF4, "LHPF4"),
+
+MADERA_MIXER_WIDGETS(PWM1, "PWM1"),
+MADERA_MIXER_WIDGETS(PWM2, "PWM2"),
+
+MADERA_MIXER_WIDGETS(OUT1L, "HPOUT1L"),
+MADERA_MIXER_WIDGETS(OUT1R, "HPOUT1R"),
+MADERA_MIXER_WIDGETS(OUT2L, "HPOUT2L"),
+MADERA_MIXER_WIDGETS(OUT2R, "HPOUT2R"),
+MADERA_MIXER_WIDGETS(OUT3L, "HPOUT3L"),
+MADERA_MIXER_WIDGETS(OUT3R, "HPOUT3R"),
+MADERA_MIXER_WIDGETS(SPKOUTL, "SPKOUTL"),
+MADERA_MIXER_WIDGETS(SPKOUTR, "SPKOUTR"),
+MADERA_MIXER_WIDGETS(SPKDAT1L, "SPKDAT1L"),
+MADERA_MIXER_WIDGETS(SPKDAT1R, "SPKDAT1R"),
+MADERA_MIXER_WIDGETS(SPKDAT2L, "SPKDAT2L"),
+MADERA_MIXER_WIDGETS(SPKDAT2R, "SPKDAT2R"),
+
+MADERA_MIXER_WIDGETS(AIF1TX1, "AIF1TX1"),
+MADERA_MIXER_WIDGETS(AIF1TX2, "AIF1TX2"),
+MADERA_MIXER_WIDGETS(AIF1TX3, "AIF1TX3"),
+MADERA_MIXER_WIDGETS(AIF1TX4, "AIF1TX4"),
+MADERA_MIXER_WIDGETS(AIF1TX5, "AIF1TX5"),
+MADERA_MIXER_WIDGETS(AIF1TX6, "AIF1TX6"),
+MADERA_MIXER_WIDGETS(AIF1TX7, "AIF1TX7"),
+MADERA_MIXER_WIDGETS(AIF1TX8, "AIF1TX8"),
+
+MADERA_MIXER_WIDGETS(AIF2TX1, "AIF2TX1"),
+MADERA_MIXER_WIDGETS(AIF2TX2, "AIF2TX2"),
+MADERA_MIXER_WIDGETS(AIF2TX3, "AIF2TX3"),
+MADERA_MIXER_WIDGETS(AIF2TX4, "AIF2TX4"),
+MADERA_MIXER_WIDGETS(AIF2TX5, "AIF2TX5"),
+MADERA_MIXER_WIDGETS(AIF2TX6, "AIF2TX6"),
+MADERA_MIXER_WIDGETS(AIF2TX7, "AIF2TX7"),
+MADERA_MIXER_WIDGETS(AIF2TX8, "AIF2TX8"),
+
+MADERA_MIXER_WIDGETS(AIF3TX1, "AIF3TX1"),
+MADERA_MIXER_WIDGETS(AIF3TX2, "AIF3TX2"),
+
+MADERA_MIXER_WIDGETS(AIF4TX1, "AIF4TX1"),
+MADERA_MIXER_WIDGETS(AIF4TX2, "AIF4TX2"),
+
+MADERA_MIXER_WIDGETS(SLIMTX1, "SLIMTX1"),
+MADERA_MIXER_WIDGETS(SLIMTX2, "SLIMTX2"),
+MADERA_MIXER_WIDGETS(SLIMTX3, "SLIMTX3"),
+MADERA_MIXER_WIDGETS(SLIMTX4, "SLIMTX4"),
+MADERA_MIXER_WIDGETS(SLIMTX5, "SLIMTX5"),
+MADERA_MIXER_WIDGETS(SLIMTX6, "SLIMTX6"),
+MADERA_MIXER_WIDGETS(SLIMTX7, "SLIMTX7"),
+MADERA_MIXER_WIDGETS(SLIMTX8, "SLIMTX8"),
+
+MADERA_MUX_WIDGETS(SPD1TX1, "SPDIF1TX1"),
+MADERA_MUX_WIDGETS(SPD1TX2, "SPDIF1TX2"),
+
+MADERA_MUX_WIDGETS(ASRC1IN1L, "ASRC1IN1L"),
+MADERA_MUX_WIDGETS(ASRC1IN1R, "ASRC1IN1R"),
+MADERA_MUX_WIDGETS(ASRC1IN2L, "ASRC1IN2L"),
+MADERA_MUX_WIDGETS(ASRC1IN2R, "ASRC1IN2R"),
+MADERA_MUX_WIDGETS(ASRC2IN1L, "ASRC2IN1L"),
+MADERA_MUX_WIDGETS(ASRC2IN1R, "ASRC2IN1R"),
+MADERA_MUX_WIDGETS(ASRC2IN2L, "ASRC2IN2L"),
+MADERA_MUX_WIDGETS(ASRC2IN2R, "ASRC2IN2R"),
+
+MADERA_DSP_WIDGETS(DSP1, "DSP1"),
+MADERA_DSP_WIDGETS(DSP2, "DSP2"),
+MADERA_DSP_WIDGETS(DSP3, "DSP3"),
+MADERA_DSP_WIDGETS(DSP4, "DSP4"),
+MADERA_DSP_WIDGETS(DSP5, "DSP5"),
+MADERA_DSP_WIDGETS(DSP6, "DSP6"),
+MADERA_DSP_WIDGETS(DSP7, "DSP7"),
+
+SND_SOC_DAPM_SWITCH("DSP1 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[0]),
+SND_SOC_DAPM_SWITCH("DSP2 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[1]),
+SND_SOC_DAPM_SWITCH("DSP3 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[2]),
+SND_SOC_DAPM_SWITCH("DSP4 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[3]),
+SND_SOC_DAPM_SWITCH("DSP5 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[4]),
+SND_SOC_DAPM_SWITCH("DSP6 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[5]),
+SND_SOC_DAPM_SWITCH("DSP7 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[6]),
+
+MADERA_MUX_WIDGETS(ISRC1DEC1, "ISRC1DEC1"),
+MADERA_MUX_WIDGETS(ISRC1DEC2, "ISRC1DEC2"),
+MADERA_MUX_WIDGETS(ISRC1DEC3, "ISRC1DEC3"),
+MADERA_MUX_WIDGETS(ISRC1DEC4, "ISRC1DEC4"),
+
+MADERA_MUX_WIDGETS(ISRC1INT1, "ISRC1INT1"),
+MADERA_MUX_WIDGETS(ISRC1INT2, "ISRC1INT2"),
+MADERA_MUX_WIDGETS(ISRC1INT3, "ISRC1INT3"),
+MADERA_MUX_WIDGETS(ISRC1INT4, "ISRC1INT4"),
+
+MADERA_MUX_WIDGETS(ISRC2DEC1, "ISRC2DEC1"),
+MADERA_MUX_WIDGETS(ISRC2DEC2, "ISRC2DEC2"),
+MADERA_MUX_WIDGETS(ISRC2DEC3, "ISRC2DEC3"),
+MADERA_MUX_WIDGETS(ISRC2DEC4, "ISRC2DEC4"),
+
+MADERA_MUX_WIDGETS(ISRC2INT1, "ISRC2INT1"),
+MADERA_MUX_WIDGETS(ISRC2INT2, "ISRC2INT2"),
+MADERA_MUX_WIDGETS(ISRC2INT3, "ISRC2INT3"),
+MADERA_MUX_WIDGETS(ISRC2INT4, "ISRC2INT4"),
+
+MADERA_MUX_WIDGETS(ISRC3DEC1, "ISRC3DEC1"),
+MADERA_MUX_WIDGETS(ISRC3DEC2, "ISRC3DEC2"),
+
+MADERA_MUX_WIDGETS(ISRC3INT1, "ISRC3INT1"),
+MADERA_MUX_WIDGETS(ISRC3INT2, "ISRC3INT2"),
+
+MADERA_MUX_WIDGETS(ISRC4DEC1, "ISRC4DEC1"),
+MADERA_MUX_WIDGETS(ISRC4DEC2, "ISRC4DEC2"),
+
+MADERA_MUX_WIDGETS(ISRC4INT1, "ISRC4INT1"),
+MADERA_MUX_WIDGETS(ISRC4INT2, "ISRC4INT2"),
+
+SND_SOC_DAPM_OUTPUT("HPOUT1L"),
+SND_SOC_DAPM_OUTPUT("HPOUT1R"),
+SND_SOC_DAPM_OUTPUT("HPOUT2L"),
+SND_SOC_DAPM_OUTPUT("HPOUT2R"),
+SND_SOC_DAPM_OUTPUT("HPOUT3L"),
+SND_SOC_DAPM_OUTPUT("HPOUT3R"),
+SND_SOC_DAPM_OUTPUT("SPKOUTLN"),
+SND_SOC_DAPM_OUTPUT("SPKOUTLP"),
+SND_SOC_DAPM_OUTPUT("SPKOUTRN"),
+SND_SOC_DAPM_OUTPUT("SPKOUTRP"),
+SND_SOC_DAPM_OUTPUT("SPKDAT1L"),
+SND_SOC_DAPM_OUTPUT("SPKDAT1R"),
+SND_SOC_DAPM_OUTPUT("SPKDAT2L"),
+SND_SOC_DAPM_OUTPUT("SPKDAT2R"),
+SND_SOC_DAPM_OUTPUT("SPDIF1"),
+
+SND_SOC_DAPM_OUTPUT("MICSUPP"),
+};
+
+#define MADERA_MIXER_INPUT_ROUTES(name) \
+ { name, "Noise Generator", "Noise Generator" }, \
+ { name, "Tone Generator 1", "Tone Generator 1" }, \
+ { name, "Tone Generator 2", "Tone Generator 2" }, \
+ { name, "Haptics", "HAPTICS" }, \
+ { name, "AEC1", "AEC1 Loopback" }, \
+ { name, "AEC2", "AEC2 Loopback" }, \
+ { name, "IN1L", "IN1L PGA" }, \
+ { name, "IN1R", "IN1R PGA" }, \
+ { name, "IN2L", "IN2L PGA" }, \
+ { name, "IN2R", "IN2R PGA" }, \
+ { name, "IN3L", "IN3L PGA" }, \
+ { name, "IN3R", "IN3R PGA" }, \
+ { name, "IN4L", "IN4L PGA" }, \
+ { name, "IN4R", "IN4R PGA" }, \
+ { name, "IN5L", "IN5L PGA" }, \
+ { name, "IN5R", "IN5R PGA" }, \
+ { name, "IN6L", "IN6L PGA" }, \
+ { name, "IN6R", "IN6R PGA" }, \
+ { name, "AIF1RX1", "AIF1RX1" }, \
+ { name, "AIF1RX2", "AIF1RX2" }, \
+ { name, "AIF1RX3", "AIF1RX3" }, \
+ { name, "AIF1RX4", "AIF1RX4" }, \
+ { name, "AIF1RX5", "AIF1RX5" }, \
+ { name, "AIF1RX6", "AIF1RX6" }, \
+ { name, "AIF1RX7", "AIF1RX7" }, \
+ { name, "AIF1RX8", "AIF1RX8" }, \
+ { name, "AIF2RX1", "AIF2RX1" }, \
+ { name, "AIF2RX2", "AIF2RX2" }, \
+ { name, "AIF2RX3", "AIF2RX3" }, \
+ { name, "AIF2RX4", "AIF2RX4" }, \
+ { name, "AIF2RX5", "AIF2RX5" }, \
+ { name, "AIF2RX6", "AIF2RX6" }, \
+ { name, "AIF2RX7", "AIF2RX7" }, \
+ { name, "AIF2RX8", "AIF2RX8" }, \
+ { name, "AIF3RX1", "AIF3RX1" }, \
+ { name, "AIF3RX2", "AIF3RX2" }, \
+ { name, "AIF4RX1", "AIF4RX1" }, \
+ { name, "AIF4RX2", "AIF4RX2" }, \
+ { name, "SLIMRX1", "SLIMRX1" }, \
+ { name, "SLIMRX2", "SLIMRX2" }, \
+ { name, "SLIMRX3", "SLIMRX3" }, \
+ { name, "SLIMRX4", "SLIMRX4" }, \
+ { name, "SLIMRX5", "SLIMRX5" }, \
+ { name, "SLIMRX6", "SLIMRX6" }, \
+ { name, "SLIMRX7", "SLIMRX7" }, \
+ { name, "SLIMRX8", "SLIMRX8" }, \
+ { name, "EQ1", "EQ1" }, \
+ { name, "EQ2", "EQ2" }, \
+ { name, "EQ3", "EQ3" }, \
+ { name, "EQ4", "EQ4" }, \
+ { name, "DRC1L", "DRC1L" }, \
+ { name, "DRC1R", "DRC1R" }, \
+ { name, "DRC2L", "DRC2L" }, \
+ { name, "DRC2R", "DRC2R" }, \
+ { name, "LHPF1", "LHPF1" }, \
+ { name, "LHPF2", "LHPF2" }, \
+ { name, "LHPF3", "LHPF3" }, \
+ { name, "LHPF4", "LHPF4" }, \
+ { name, "ASRC1IN1L", "ASRC1IN1L" }, \
+ { name, "ASRC1IN1R", "ASRC1IN1R" }, \
+ { name, "ASRC1IN2L", "ASRC1IN2L" }, \
+ { name, "ASRC1IN2R", "ASRC1IN2R" }, \
+ { name, "ASRC2IN1L", "ASRC2IN1L" }, \
+ { name, "ASRC2IN1R", "ASRC2IN1R" }, \
+ { name, "ASRC2IN2L", "ASRC2IN2L" }, \
+ { name, "ASRC2IN2R", "ASRC2IN2R" }, \
+ { name, "ISRC1DEC1", "ISRC1DEC1" }, \
+ { name, "ISRC1DEC2", "ISRC1DEC2" }, \
+ { name, "ISRC1DEC3", "ISRC1DEC3" }, \
+ { name, "ISRC1DEC4", "ISRC1DEC4" }, \
+ { name, "ISRC1INT1", "ISRC1INT1" }, \
+ { name, "ISRC1INT2", "ISRC1INT2" }, \
+ { name, "ISRC1INT3", "ISRC1INT3" }, \
+ { name, "ISRC1INT4", "ISRC1INT4" }, \
+ { name, "ISRC2DEC1", "ISRC2DEC1" }, \
+ { name, "ISRC2DEC2", "ISRC2DEC2" }, \
+ { name, "ISRC2DEC3", "ISRC2DEC3" }, \
+ { name, "ISRC2DEC4", "ISRC2DEC4" }, \
+ { name, "ISRC2INT1", "ISRC2INT1" }, \
+ { name, "ISRC2INT2", "ISRC2INT2" }, \
+ { name, "ISRC2INT3", "ISRC2INT3" }, \
+ { name, "ISRC2INT4", "ISRC2INT4" }, \
+ { name, "ISRC3DEC1", "ISRC3DEC1" }, \
+ { name, "ISRC3DEC2", "ISRC3DEC2" }, \
+ { name, "ISRC3INT1", "ISRC3INT1" }, \
+ { name, "ISRC3INT2", "ISRC3INT2" }, \
+ { name, "ISRC4DEC1", "ISRC4DEC1" }, \
+ { name, "ISRC4DEC2", "ISRC4DEC2" }, \
+ { name, "ISRC4INT1", "ISRC4INT1" }, \
+ { name, "ISRC4INT2", "ISRC4INT2" }, \
+ { name, "DSP1.1", "DSP1" }, \
+ { name, "DSP1.2", "DSP1" }, \
+ { name, "DSP1.3", "DSP1" }, \
+ { name, "DSP1.4", "DSP1" }, \
+ { name, "DSP1.5", "DSP1" }, \
+ { name, "DSP1.6", "DSP1" }, \
+ { name, "DSP2.1", "DSP2" }, \
+ { name, "DSP2.2", "DSP2" }, \
+ { name, "DSP2.3", "DSP2" }, \
+ { name, "DSP2.4", "DSP2" }, \
+ { name, "DSP2.5", "DSP2" }, \
+ { name, "DSP2.6", "DSP2" }, \
+ { name, "DSP3.1", "DSP3" }, \
+ { name, "DSP3.2", "DSP3" }, \
+ { name, "DSP3.3", "DSP3" }, \
+ { name, "DSP3.4", "DSP3" }, \
+ { name, "DSP3.5", "DSP3" }, \
+ { name, "DSP3.6", "DSP3" }, \
+ { name, "DSP4.1", "DSP4" }, \
+ { name, "DSP4.2", "DSP4" }, \
+ { name, "DSP4.3", "DSP4" }, \
+ { name, "DSP4.4", "DSP4" }, \
+ { name, "DSP4.5", "DSP4" }, \
+ { name, "DSP4.6", "DSP4" }, \
+ { name, "DSP5.1", "DSP5" }, \
+ { name, "DSP5.2", "DSP5" }, \
+ { name, "DSP5.3", "DSP5" }, \
+ { name, "DSP5.4", "DSP5" }, \
+ { name, "DSP5.5", "DSP5" }, \
+ { name, "DSP5.6", "DSP5" }, \
+ { name, "DSP6.1", "DSP6" }, \
+ { name, "DSP6.2", "DSP6" }, \
+ { name, "DSP6.3", "DSP6" }, \
+ { name, "DSP6.4", "DSP6" }, \
+ { name, "DSP6.5", "DSP6" }, \
+ { name, "DSP6.6", "DSP6" }, \
+ { name, "DSP7.1", "DSP7" }, \
+ { name, "DSP7.2", "DSP7" }, \
+ { name, "DSP7.3", "DSP7" }, \
+ { name, "DSP7.4", "DSP7" }, \
+ { name, "DSP7.5", "DSP7" }, \
+ { name, "DSP7.6", "DSP7" }
+
+static const struct snd_soc_dapm_route cs47l85_dapm_routes[] = {
+ /* Internal clock domains */
+ { "EQ1", NULL, "FXCLK" },
+ { "EQ2", NULL, "FXCLK" },
+ { "EQ3", NULL, "FXCLK" },
+ { "EQ4", NULL, "FXCLK" },
+ { "DRC1L", NULL, "FXCLK" },
+ { "DRC1R", NULL, "FXCLK" },
+ { "DRC2L", NULL, "FXCLK" },
+ { "DRC2R", NULL, "FXCLK" },
+ { "LHPF1", NULL, "FXCLK" },
+ { "LHPF2", NULL, "FXCLK" },
+ { "LHPF3", NULL, "FXCLK" },
+ { "LHPF4", NULL, "FXCLK" },
+ { "PWM1 Mixer", NULL, "PWMCLK" },
+ { "PWM2 Mixer", NULL, "PWMCLK" },
+ { "OUT1L", NULL, "OUTCLK" },
+ { "OUT1R", NULL, "OUTCLK" },
+ { "OUT2L", NULL, "OUTCLK" },
+ { "OUT2R", NULL, "OUTCLK" },
+ { "OUT3L", NULL, "OUTCLK" },
+ { "OUT3R", NULL, "OUTCLK" },
+ { "OUT4L", NULL, "OUTCLK" },
+ { "OUT4R", NULL, "OUTCLK" },
+ { "OUT5L", NULL, "OUTCLK" },
+ { "OUT5R", NULL, "OUTCLK" },
+ { "OUT6L", NULL, "OUTCLK" },
+ { "OUT6R", NULL, "OUTCLK" },
+ { "AIF1TX1", NULL, "AIF1TXCLK" },
+ { "AIF1TX2", NULL, "AIF1TXCLK" },
+ { "AIF1TX3", NULL, "AIF1TXCLK" },
+ { "AIF1TX4", NULL, "AIF1TXCLK" },
+ { "AIF1TX5", NULL, "AIF1TXCLK" },
+ { "AIF1TX6", NULL, "AIF1TXCLK" },
+ { "AIF1TX7", NULL, "AIF1TXCLK" },
+ { "AIF1TX8", NULL, "AIF1TXCLK" },
+ { "AIF2TX1", NULL, "AIF2TXCLK" },
+ { "AIF2TX2", NULL, "AIF2TXCLK" },
+ { "AIF2TX3", NULL, "AIF2TXCLK" },
+ { "AIF2TX4", NULL, "AIF2TXCLK" },
+ { "AIF2TX5", NULL, "AIF2TXCLK" },
+ { "AIF2TX6", NULL, "AIF2TXCLK" },
+ { "AIF2TX7", NULL, "AIF2TXCLK" },
+ { "AIF2TX8", NULL, "AIF2TXCLK" },
+ { "AIF3TX1", NULL, "AIF3TXCLK" },
+ { "AIF3TX2", NULL, "AIF3TXCLK" },
+ { "AIF4TX1", NULL, "AIF3TXCLK" },
+ { "AIF4TX2", NULL, "AIF3TXCLK" },
+ { "SLIMTX1", NULL, "SLIMBUSCLK" },
+ { "SLIMTX2", NULL, "SLIMBUSCLK" },
+ { "SLIMTX3", NULL, "SLIMBUSCLK" },
+ { "SLIMTX4", NULL, "SLIMBUSCLK" },
+ { "SLIMTX5", NULL, "SLIMBUSCLK" },
+ { "SLIMTX6", NULL, "SLIMBUSCLK" },
+ { "SLIMTX7", NULL, "SLIMBUSCLK" },
+ { "SLIMTX8", NULL, "SLIMBUSCLK" },
+ { "SPD1TX1", NULL, "SPDCLK" },
+ { "SPD1TX2", NULL, "SPDCLK" },
+ { "DSP1", NULL, "DSP1CLK" },
+ { "DSP2", NULL, "DSP2CLK" },
+ { "DSP3", NULL, "DSP3CLK" },
+ { "DSP4", NULL, "DSP4CLK" },
+ { "DSP5", NULL, "DSP5CLK" },
+ { "DSP6", NULL, "DSP6CLK" },
+ { "DSP7", NULL, "DSP7CLK" },
+ { "ISRC1DEC1", NULL, "ISRC1DECCLK" },
+ { "ISRC1DEC2", NULL, "ISRC1DECCLK" },
+ { "ISRC1DEC3", NULL, "ISRC1DECCLK" },
+ { "ISRC1DEC4", NULL, "ISRC1DECCLK" },
+ { "ISRC1INT1", NULL, "ISRC1INTCLK" },
+ { "ISRC1INT2", NULL, "ISRC1INTCLK" },
+ { "ISRC1INT3", NULL, "ISRC1INTCLK" },
+ { "ISRC1INT4", NULL, "ISRC1INTCLK" },
+ { "ISRC2DEC1", NULL, "ISRC2DECCLK" },
+ { "ISRC2DEC2", NULL, "ISRC2DECCLK" },
+ { "ISRC2DEC3", NULL, "ISRC2DECCLK" },
+ { "ISRC2DEC4", NULL, "ISRC2DECCLK" },
+ { "ISRC2INT1", NULL, "ISRC2INTCLK" },
+ { "ISRC2INT2", NULL, "ISRC2INTCLK" },
+ { "ISRC2INT3", NULL, "ISRC2INTCLK" },
+ { "ISRC2INT4", NULL, "ISRC2INTCLK" },
+ { "ISRC3DEC1", NULL, "ISRC1DECCLK" },
+ { "ISRC3DEC2", NULL, "ISRC1DECCLK" },
+ { "ISRC3INT1", NULL, "ISRC1INTCLK" },
+ { "ISRC3INT2", NULL, "ISRC1INTCLK" },
+ { "ISRC4DEC1", NULL, "ISRC1DECCLK" },
+ { "ISRC4DEC2", NULL, "ISRC1DECCLK" },
+ { "ISRC4INT1", NULL, "ISRC1INTCLK" },
+ { "ISRC4INT2", NULL, "ISRC1INTCLK" },
+ { "ASRC1IN1L", NULL, "ASRC1R1CLK" },
+ { "ASRC1IN1R", NULL, "ASRC1R1CLK" },
+ { "ASRC1IN2L", NULL, "ASRC1R2CLK" },
+ { "ASRC1IN2L", NULL, "ASRC1R2CLK" },
+ { "ASRC2IN1L", NULL, "ASRC2R1CLK" },
+ { "ASRC2IN1R", NULL, "ASRC2R1CLK" },
+ { "ASRC2IN2L", NULL, "ASRC2R2CLK" },
+ { "ASRC2IN2L", NULL, "ASRC2R2CLK" },
+
+ { "AIF2 Capture", NULL, "DBVDD2" },
+ { "AIF2 Playback", NULL, "DBVDD2" },
+
+ { "AIF3 Capture", NULL, "DBVDD3" },
+ { "AIF3 Playback", NULL, "DBVDD3" },
+
+ { "AIF4 Capture", NULL, "DBVDD3" },
+ { "AIF4 Playback", NULL, "DBVDD3" },
+
+ { "OUT1L", NULL, "CPVDD1" },
+ { "OUT1L", NULL, "CPVDD2" },
+ { "OUT1R", NULL, "CPVDD1" },
+ { "OUT1R", NULL, "CPVDD2" },
+ { "OUT2L", NULL, "CPVDD1" },
+ { "OUT2L", NULL, "CPVDD2" },
+ { "OUT2R", NULL, "CPVDD1" },
+ { "OUT2R", NULL, "CPVDD2" },
+ { "OUT3L", NULL, "CPVDD1" },
+ { "OUT3L", NULL, "CPVDD2" },
+ { "OUT3R", NULL, "CPVDD1" },
+ { "OUT3R", NULL, "CPVDD2" },
+
+ { "OUT4L", NULL, "SPKVDDL" },
+ { "OUT4R", NULL, "SPKVDDR" },
+
+ { "OUT1L", NULL, "SYSCLK" },
+ { "OUT1R", NULL, "SYSCLK" },
+ { "OUT2L", NULL, "SYSCLK" },
+ { "OUT2R", NULL, "SYSCLK" },
+ { "OUT3L", NULL, "SYSCLK" },
+ { "OUT3R", NULL, "SYSCLK" },
+ { "OUT4L", NULL, "SYSCLK" },
+ { "OUT4R", NULL, "SYSCLK" },
+ { "OUT5L", NULL, "SYSCLK" },
+ { "OUT5R", NULL, "SYSCLK" },
+ { "OUT6L", NULL, "SYSCLK" },
+ { "OUT6R", NULL, "SYSCLK" },
+
+ { "SPD1", NULL, "SYSCLK" },
+ { "SPD1", NULL, "SPD1TX1" },
+ { "SPD1", NULL, "SPD1TX2" },
+
+ { "IN1AL", NULL, "SYSCLK" },
+ { "IN1B", NULL, "SYSCLK" },
+ { "IN1R", NULL, "SYSCLK" },
+ { "IN2AL", NULL, "SYSCLK" },
+ { "IN2AR", NULL, "SYSCLK" },
+ { "IN2BL", NULL, "SYSCLK" },
+ { "IN2BR", NULL, "SYSCLK" },
+ { "IN3L", NULL, "SYSCLK" },
+ { "IN3R", NULL, "SYSCLK" },
+ { "IN4L", NULL, "SYSCLK" },
+ { "IN4R", NULL, "SYSCLK" },
+ { "IN5L", NULL, "SYSCLK" },
+ { "IN5R", NULL, "SYSCLK" },
+ { "IN6L", NULL, "SYSCLK" },
+ { "IN6R", NULL, "SYSCLK" },
+
+ { "IN4L", NULL, "DBVDD4" },
+ { "IN4R", NULL, "DBVDD4" },
+ { "IN5L", NULL, "DBVDD4" },
+ { "IN5R", NULL, "DBVDD4" },
+ { "IN6L", NULL, "DBVDD4" },
+ { "IN6R", NULL, "DBVDD4" },
+
+ { "ASRC1IN1L", NULL, "SYSCLK" },
+ { "ASRC1IN1R", NULL, "SYSCLK" },
+ { "ASRC1IN2L", NULL, "SYSCLK" },
+ { "ASRC1IN2R", NULL, "SYSCLK" },
+ { "ASRC2IN1L", NULL, "SYSCLK" },
+ { "ASRC2IN1R", NULL, "SYSCLK" },
+ { "ASRC2IN2L", NULL, "SYSCLK" },
+ { "ASRC2IN2R", NULL, "SYSCLK" },
+
+ { "ASRC1IN1L", NULL, "ASYNCCLK" },
+ { "ASRC1IN1R", NULL, "ASYNCCLK" },
+ { "ASRC1IN2L", NULL, "ASYNCCLK" },
+ { "ASRC1IN2R", NULL, "ASYNCCLK" },
+ { "ASRC2IN1L", NULL, "ASYNCCLK" },
+ { "ASRC2IN1R", NULL, "ASYNCCLK" },
+ { "ASRC2IN2L", NULL, "ASYNCCLK" },
+ { "ASRC2IN2R", NULL, "ASYNCCLK" },
+
+ { "MICBIAS1", NULL, "MICVDD" },
+ { "MICBIAS2", NULL, "MICVDD" },
+ { "MICBIAS3", NULL, "MICVDD" },
+ { "MICBIAS4", NULL, "MICVDD" },
+
+ { "Noise Generator", NULL, "SYSCLK" },
+ { "Tone Generator 1", NULL, "SYSCLK" },
+ { "Tone Generator 2", NULL, "SYSCLK" },
+
+ { "Noise Generator", NULL, "NOISE" },
+ { "Tone Generator 1", NULL, "TONE" },
+ { "Tone Generator 2", NULL, "TONE" },
+
+ { "AIF1 Capture", NULL, "AIF1TX1" },
+ { "AIF1 Capture", NULL, "AIF1TX2" },
+ { "AIF1 Capture", NULL, "AIF1TX3" },
+ { "AIF1 Capture", NULL, "AIF1TX4" },
+ { "AIF1 Capture", NULL, "AIF1TX5" },
+ { "AIF1 Capture", NULL, "AIF1TX6" },
+ { "AIF1 Capture", NULL, "AIF1TX7" },
+ { "AIF1 Capture", NULL, "AIF1TX8" },
+
+ { "AIF1RX1", NULL, "AIF1 Playback" },
+ { "AIF1RX2", NULL, "AIF1 Playback" },
+ { "AIF1RX3", NULL, "AIF1 Playback" },
+ { "AIF1RX4", NULL, "AIF1 Playback" },
+ { "AIF1RX5", NULL, "AIF1 Playback" },
+ { "AIF1RX6", NULL, "AIF1 Playback" },
+ { "AIF1RX7", NULL, "AIF1 Playback" },
+ { "AIF1RX8", NULL, "AIF1 Playback" },
+
+ { "AIF2 Capture", NULL, "AIF2TX1" },
+ { "AIF2 Capture", NULL, "AIF2TX2" },
+ { "AIF2 Capture", NULL, "AIF2TX3" },
+ { "AIF2 Capture", NULL, "AIF2TX4" },
+ { "AIF2 Capture", NULL, "AIF2TX5" },
+ { "AIF2 Capture", NULL, "AIF2TX6" },
+ { "AIF2 Capture", NULL, "AIF2TX7" },
+ { "AIF2 Capture", NULL, "AIF2TX8" },
+
+ { "AIF2RX1", NULL, "AIF2 Playback" },
+ { "AIF2RX2", NULL, "AIF2 Playback" },
+ { "AIF2RX3", NULL, "AIF2 Playback" },
+ { "AIF2RX4", NULL, "AIF2 Playback" },
+ { "AIF2RX5", NULL, "AIF2 Playback" },
+ { "AIF2RX6", NULL, "AIF2 Playback" },
+ { "AIF2RX7", NULL, "AIF2 Playback" },
+ { "AIF2RX8", NULL, "AIF2 Playback" },
+
+ { "AIF3 Capture", NULL, "AIF3TX1" },
+ { "AIF3 Capture", NULL, "AIF3TX2" },
+
+ { "AIF3RX1", NULL, "AIF3 Playback" },
+ { "AIF3RX2", NULL, "AIF3 Playback" },
+
+ { "AIF4 Capture", NULL, "AIF4TX1" },
+ { "AIF4 Capture", NULL, "AIF4TX2" },
+
+ { "AIF4RX1", NULL, "AIF4 Playback" },
+ { "AIF4RX2", NULL, "AIF4 Playback" },
+
+ { "Slim1 Capture", NULL, "SLIMTX1" },
+ { "Slim1 Capture", NULL, "SLIMTX2" },
+ { "Slim1 Capture", NULL, "SLIMTX3" },
+ { "Slim1 Capture", NULL, "SLIMTX4" },
+
+ { "SLIMRX1", NULL, "Slim1 Playback" },
+ { "SLIMRX2", NULL, "Slim1 Playback" },
+ { "SLIMRX3", NULL, "Slim1 Playback" },
+ { "SLIMRX4", NULL, "Slim1 Playback" },
+
+ { "Slim2 Capture", NULL, "SLIMTX5" },
+ { "Slim2 Capture", NULL, "SLIMTX6" },
+
+ { "SLIMRX5", NULL, "Slim2 Playback" },
+ { "SLIMRX6", NULL, "Slim2 Playback" },
+
+ { "Slim3 Capture", NULL, "SLIMTX7" },
+ { "Slim3 Capture", NULL, "SLIMTX8" },
+
+ { "SLIMRX7", NULL, "Slim3 Playback" },
+ { "SLIMRX8", NULL, "Slim3 Playback" },
+
+ { "AIF1 Playback", NULL, "SYSCLK" },
+ { "AIF2 Playback", NULL, "SYSCLK" },
+ { "AIF3 Playback", NULL, "SYSCLK" },
+ { "AIF4 Playback", NULL, "SYSCLK" },
+ { "Slim1 Playback", NULL, "SYSCLK" },
+ { "Slim2 Playback", NULL, "SYSCLK" },
+ { "Slim3 Playback", NULL, "SYSCLK" },
+
+ { "AIF1 Capture", NULL, "SYSCLK" },
+ { "AIF2 Capture", NULL, "SYSCLK" },
+ { "AIF3 Capture", NULL, "SYSCLK" },
+ { "AIF4 Capture", NULL, "SYSCLK" },
+ { "Slim1 Capture", NULL, "SYSCLK" },
+ { "Slim2 Capture", NULL, "SYSCLK" },
+ { "Slim3 Capture", NULL, "SYSCLK" },
+
+ { "Voice Control DSP", NULL, "DSP6" },
+
+ { "Audio Trace DSP", NULL, "DSP1" },
+
+ { "IN1L Mux", "A", "IN1AL" },
+ { "IN1L Mux", "B", "IN1B" },
+
+ { "IN2L Mux", "A", "IN2AL" },
+ { "IN2L Mux", "B", "IN2BL" },
+ { "IN2R Mux", "A", "IN2AR" },
+ { "IN2R Mux", "B", "IN2BR" },
+
+ { "IN1L PGA", NULL, "IN1L Mux" },
+ { "IN1R PGA", NULL, "IN1R" },
+
+ { "IN2L PGA", NULL, "IN2L Mux" },
+ { "IN2R PGA", NULL, "IN2R Mux" },
+
+ { "IN3L PGA", NULL, "IN3L" },
+ { "IN3R PGA", NULL, "IN3R" },
+
+ { "IN4L PGA", NULL, "IN4L" },
+ { "IN4R PGA", NULL, "IN4R" },
+
+ { "IN5L PGA", NULL, "IN5L" },
+ { "IN5R PGA", NULL, "IN5R" },
+
+ { "IN6L PGA", NULL, "IN6L" },
+ { "IN6R PGA", NULL, "IN6R" },
+
+ MADERA_MIXER_ROUTES("OUT1L", "HPOUT1L"),
+ MADERA_MIXER_ROUTES("OUT1R", "HPOUT1R"),
+ MADERA_MIXER_ROUTES("OUT2L", "HPOUT2L"),
+ MADERA_MIXER_ROUTES("OUT2R", "HPOUT2R"),
+ MADERA_MIXER_ROUTES("OUT3L", "HPOUT3L"),
+ MADERA_MIXER_ROUTES("OUT3R", "HPOUT3R"),
+
+ MADERA_MIXER_ROUTES("OUT4L", "SPKOUTL"),
+ MADERA_MIXER_ROUTES("OUT4R", "SPKOUTR"),
+ MADERA_MIXER_ROUTES("OUT5L", "SPKDAT1L"),
+ MADERA_MIXER_ROUTES("OUT5R", "SPKDAT1R"),
+ MADERA_MIXER_ROUTES("OUT6L", "SPKDAT2L"),
+ MADERA_MIXER_ROUTES("OUT6R", "SPKDAT2R"),
+
+ MADERA_MIXER_ROUTES("PWM1 Driver", "PWM1"),
+ MADERA_MIXER_ROUTES("PWM2 Driver", "PWM2"),
+
+ MADERA_MIXER_ROUTES("AIF1TX1", "AIF1TX1"),
+ MADERA_MIXER_ROUTES("AIF1TX2", "AIF1TX2"),
+ MADERA_MIXER_ROUTES("AIF1TX3", "AIF1TX3"),
+ MADERA_MIXER_ROUTES("AIF1TX4", "AIF1TX4"),
+ MADERA_MIXER_ROUTES("AIF1TX5", "AIF1TX5"),
+ MADERA_MIXER_ROUTES("AIF1TX6", "AIF1TX6"),
+ MADERA_MIXER_ROUTES("AIF1TX7", "AIF1TX7"),
+ MADERA_MIXER_ROUTES("AIF1TX8", "AIF1TX8"),
+
+ MADERA_MIXER_ROUTES("AIF2TX1", "AIF2TX1"),
+ MADERA_MIXER_ROUTES("AIF2TX2", "AIF2TX2"),
+ MADERA_MIXER_ROUTES("AIF2TX3", "AIF2TX3"),
+ MADERA_MIXER_ROUTES("AIF2TX4", "AIF2TX4"),
+ MADERA_MIXER_ROUTES("AIF2TX5", "AIF2TX5"),
+ MADERA_MIXER_ROUTES("AIF2TX6", "AIF2TX6"),
+ MADERA_MIXER_ROUTES("AIF2TX7", "AIF2TX7"),
+ MADERA_MIXER_ROUTES("AIF2TX8", "AIF2TX8"),
+
+ MADERA_MIXER_ROUTES("AIF3TX1", "AIF3TX1"),
+ MADERA_MIXER_ROUTES("AIF3TX2", "AIF3TX2"),
+
+ MADERA_MIXER_ROUTES("AIF4TX1", "AIF4TX1"),
+ MADERA_MIXER_ROUTES("AIF4TX2", "AIF4TX2"),
+
+ MADERA_MIXER_ROUTES("SLIMTX1", "SLIMTX1"),
+ MADERA_MIXER_ROUTES("SLIMTX2", "SLIMTX2"),
+ MADERA_MIXER_ROUTES("SLIMTX3", "SLIMTX3"),
+ MADERA_MIXER_ROUTES("SLIMTX4", "SLIMTX4"),
+ MADERA_MIXER_ROUTES("SLIMTX5", "SLIMTX5"),
+ MADERA_MIXER_ROUTES("SLIMTX6", "SLIMTX6"),
+ MADERA_MIXER_ROUTES("SLIMTX7", "SLIMTX7"),
+ MADERA_MIXER_ROUTES("SLIMTX8", "SLIMTX8"),
+
+ MADERA_MUX_ROUTES("SPD1TX1", "SPDIF1TX1"),
+ MADERA_MUX_ROUTES("SPD1TX2", "SPDIF1TX2"),
+
+ MADERA_MIXER_ROUTES("EQ1", "EQ1"),
+ MADERA_MIXER_ROUTES("EQ2", "EQ2"),
+ MADERA_MIXER_ROUTES("EQ3", "EQ3"),
+ MADERA_MIXER_ROUTES("EQ4", "EQ4"),
+
+ MADERA_MIXER_ROUTES("DRC1L", "DRC1L"),
+ MADERA_MIXER_ROUTES("DRC1R", "DRC1R"),
+ MADERA_MIXER_ROUTES("DRC2L", "DRC2L"),
+ MADERA_MIXER_ROUTES("DRC2R", "DRC2R"),
+
+ MADERA_MIXER_ROUTES("LHPF1", "LHPF1"),
+ MADERA_MIXER_ROUTES("LHPF2", "LHPF2"),
+ MADERA_MIXER_ROUTES("LHPF3", "LHPF3"),
+ MADERA_MIXER_ROUTES("LHPF4", "LHPF4"),
+
+ MADERA_MUX_ROUTES("ASRC1IN1L", "ASRC1IN1L"),
+ MADERA_MUX_ROUTES("ASRC1IN1R", "ASRC1IN1R"),
+ MADERA_MUX_ROUTES("ASRC1IN2L", "ASRC1IN2L"),
+ MADERA_MUX_ROUTES("ASRC1IN2R", "ASRC1IN2R"),
+ MADERA_MUX_ROUTES("ASRC2IN1L", "ASRC2IN1L"),
+ MADERA_MUX_ROUTES("ASRC2IN1R", "ASRC2IN1R"),
+ MADERA_MUX_ROUTES("ASRC2IN2L", "ASRC2IN2L"),
+ MADERA_MUX_ROUTES("ASRC2IN2R", "ASRC2IN2R"),
+
+ MADERA_DSP_ROUTES("DSP1"),
+ MADERA_DSP_ROUTES("DSP2"),
+ MADERA_DSP_ROUTES("DSP3"),
+ MADERA_DSP_ROUTES("DSP4"),
+ MADERA_DSP_ROUTES("DSP5"),
+ MADERA_DSP_ROUTES("DSP6"),
+ MADERA_DSP_ROUTES("DSP7"),
+
+ { "DSP Trigger Out", NULL, "DSP1 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP2 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP3 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP4 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP5 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP6 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP7 Trigger Output" },
+
+ { "DSP1 Trigger Output", "Switch", "DSP1" },
+ { "DSP2 Trigger Output", "Switch", "DSP2" },
+ { "DSP3 Trigger Output", "Switch", "DSP3" },
+ { "DSP4 Trigger Output", "Switch", "DSP4" },
+ { "DSP5 Trigger Output", "Switch", "DSP5" },
+ { "DSP6 Trigger Output", "Switch", "DSP6" },
+ { "DSP7 Trigger Output", "Switch", "DSP7" },
+
+ MADERA_MUX_ROUTES("ISRC1INT1", "ISRC1INT1"),
+ MADERA_MUX_ROUTES("ISRC1INT2", "ISRC1INT2"),
+ MADERA_MUX_ROUTES("ISRC1INT3", "ISRC1INT3"),
+ MADERA_MUX_ROUTES("ISRC1INT4", "ISRC1INT4"),
+
+ MADERA_MUX_ROUTES("ISRC1DEC1", "ISRC1DEC1"),
+ MADERA_MUX_ROUTES("ISRC1DEC2", "ISRC1DEC2"),
+ MADERA_MUX_ROUTES("ISRC1DEC3", "ISRC1DEC3"),
+ MADERA_MUX_ROUTES("ISRC1DEC4", "ISRC1DEC4"),
+
+ MADERA_MUX_ROUTES("ISRC2INT1", "ISRC2INT1"),
+ MADERA_MUX_ROUTES("ISRC2INT2", "ISRC2INT2"),
+ MADERA_MUX_ROUTES("ISRC2INT3", "ISRC2INT3"),
+ MADERA_MUX_ROUTES("ISRC2INT4", "ISRC2INT4"),
+
+ MADERA_MUX_ROUTES("ISRC2DEC1", "ISRC2DEC1"),
+ MADERA_MUX_ROUTES("ISRC2DEC2", "ISRC2DEC2"),
+ MADERA_MUX_ROUTES("ISRC2DEC3", "ISRC2DEC3"),
+ MADERA_MUX_ROUTES("ISRC2DEC4", "ISRC2DEC4"),
+
+ MADERA_MUX_ROUTES("ISRC3INT1", "ISRC3INT1"),
+ MADERA_MUX_ROUTES("ISRC3INT2", "ISRC3INT2"),
+
+ MADERA_MUX_ROUTES("ISRC3DEC1", "ISRC3DEC1"),
+ MADERA_MUX_ROUTES("ISRC3DEC2", "ISRC3DEC2"),
+
+ MADERA_MUX_ROUTES("ISRC4INT1", "ISRC4INT1"),
+ MADERA_MUX_ROUTES("ISRC4INT2", "ISRC4INT2"),
+
+ MADERA_MUX_ROUTES("ISRC4DEC1", "ISRC4DEC1"),
+ MADERA_MUX_ROUTES("ISRC4DEC2", "ISRC4DEC2"),
+
+ { "AEC1 Loopback", "HPOUT1L", "OUT1L" },
+ { "AEC1 Loopback", "HPOUT1R", "OUT1R" },
+ { "AEC2 Loopback", "HPOUT1L", "OUT1L" },
+ { "AEC2 Loopback", "HPOUT1R", "OUT1R" },
+ { "HPOUT1L", NULL, "OUT1L" },
+ { "HPOUT1R", NULL, "OUT1R" },
+
+ { "AEC1 Loopback", "HPOUT2L", "OUT2L" },
+ { "AEC1 Loopback", "HPOUT2R", "OUT2R" },
+ { "AEC2 Loopback", "HPOUT2L", "OUT2L" },
+ { "AEC2 Loopback", "HPOUT2R", "OUT2R" },
+ { "HPOUT2L", NULL, "OUT2L" },
+ { "HPOUT2R", NULL, "OUT2R" },
+
+ { "AEC1 Loopback", "HPOUT3L", "OUT3L" },
+ { "AEC1 Loopback", "HPOUT3R", "OUT3R" },
+ { "AEC2 Loopback", "HPOUT3L", "OUT3L" },
+ { "AEC2 Loopback", "HPOUT3R", "OUT3R" },
+ { "HPOUT3L", NULL, "OUT3L" },
+ { "HPOUT3R", NULL, "OUT3R" },
+
+ { "AEC1 Loopback", "SPKOUTL", "OUT4L" },
+ { "AEC2 Loopback", "SPKOUTL", "OUT4L" },
+ { "SPKOUTLN", NULL, "OUT4L" },
+ { "SPKOUTLP", NULL, "OUT4L" },
+
+ { "AEC1 Loopback", "SPKOUTR", "OUT4R" },
+ { "AEC2 Loopback", "SPKOUTR", "OUT4R" },
+ { "SPKOUTRN", NULL, "OUT4R" },
+ { "SPKOUTRP", NULL, "OUT4R" },
+
+ { "AEC1 Loopback", "SPKDAT1L", "OUT5L" },
+ { "AEC1 Loopback", "SPKDAT1R", "OUT5R" },
+ { "AEC2 Loopback", "SPKDAT1L", "OUT5L" },
+ { "AEC2 Loopback", "SPKDAT1R", "OUT5R" },
+ { "SPKDAT1L", NULL, "OUT5L" },
+ { "SPKDAT1R", NULL, "OUT5R" },
+
+ { "AEC1 Loopback", "SPKDAT2L", "OUT6L" },
+ { "AEC1 Loopback", "SPKDAT2R", "OUT6R" },
+ { "AEC2 Loopback", "SPKDAT2L", "OUT6L" },
+ { "AEC2 Loopback", "SPKDAT2R", "OUT6R" },
+ { "SPKDAT2L", NULL, "OUT6L" },
+ { "SPKDAT2R", NULL, "OUT6R" },
+
+ CS47L85_RXANC_INPUT_ROUTES("RXANCL", "RXANCL"),
+ CS47L85_RXANC_INPUT_ROUTES("RXANCR", "RXANCR"),
+
+ CS47L85_RXANC_OUTPUT_ROUTES("OUT1L", "HPOUT1L"),
+ CS47L85_RXANC_OUTPUT_ROUTES("OUT1R", "HPOUT1R"),
+ CS47L85_RXANC_OUTPUT_ROUTES("OUT2L", "HPOUT2L"),
+ CS47L85_RXANC_OUTPUT_ROUTES("OUT2R", "HPOUT2R"),
+ CS47L85_RXANC_OUTPUT_ROUTES("OUT3L", "HPOUT3L"),
+ CS47L85_RXANC_OUTPUT_ROUTES("OUT3R", "HPOUT3R"),
+ CS47L85_RXANC_OUTPUT_ROUTES("OUT4L", "SPKOUTL"),
+ CS47L85_RXANC_OUTPUT_ROUTES("OUT4R", "SPKOUTR"),
+ CS47L85_RXANC_OUTPUT_ROUTES("OUT5L", "SPKDAT1L"),
+ CS47L85_RXANC_OUTPUT_ROUTES("OUT5R", "SPKDAT1R"),
+ CS47L85_RXANC_OUTPUT_ROUTES("OUT6L", "SPKDAT2L"),
+ CS47L85_RXANC_OUTPUT_ROUTES("OUT6R", "SPKDAT2R"),
+
+ { "SPDIF1", NULL, "SPD1" },
+
+ { "MICSUPP", NULL, "SYSCLK" },
+
+ { "DRC1 Signal Activity", NULL, "DRC1 Activity Output" },
+ { "DRC2 Signal Activity", NULL, "DRC2 Activity Output" },
+ { "DRC1 Activity Output", "Switch", "DRC1L" },
+ { "DRC1 Activity Output", "Switch", "DRC1R" },
+ { "DRC2 Activity Output", "Switch", "DRC2L" },
+ { "DRC2 Activity Output", "Switch", "DRC2R" },
+};
+
+static int cs47l85_set_fll(struct snd_soc_codec *codec, int fll_id, int source,
+ unsigned int Fref, unsigned int Fout)
+{
+ struct cs47l85 *cs47l85 = snd_soc_codec_get_drvdata(codec);
+
+ switch (fll_id) {
+ case MADERA_FLL1_REFCLK:
+ return madera_set_fll_refclk(&cs47l85->fll[0], source, Fref,
+ Fout);
+ case MADERA_FLL2_REFCLK:
+ return madera_set_fll_refclk(&cs47l85->fll[1], source, Fref,
+ Fout);
+ case MADERA_FLL3_REFCLK:
+ return madera_set_fll_refclk(&cs47l85->fll[2], source, Fref,
+ Fout);
+ case MADERA_FLL1_SYNCCLK:
+ return madera_set_fll_syncclk(&cs47l85->fll[0], source, Fref,
+ Fout);
+ case MADERA_FLL2_SYNCCLK:
+ return madera_set_fll_syncclk(&cs47l85->fll[1], source, Fref,
+ Fout);
+ case MADERA_FLL3_SYNCCLK:
+ return madera_set_fll_syncclk(&cs47l85->fll[2], source, Fref,
+ Fout);
+ default:
+ return -EINVAL;
+ }
+}
+
+static struct snd_soc_dai_driver cs47l85_dai[] = {
+ {
+ .name = "cs47l85-aif1",
+ .id = 1,
+ .base = MADERA_AIF1_BCLK_CTRL,
+ .playback = {
+ .stream_name = "AIF1 Playback",
+ .channels_min = 1,
+ .channels_max = 8,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "AIF1 Capture",
+ .channels_min = 1,
+ .channels_max = 8,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_dai_ops,
+ .symmetric_rates = 1,
+ .symmetric_samplebits = 1,
+ },
+ {
+ .name = "cs47l85-aif2",
+ .id = 2,
+ .base = MADERA_AIF2_BCLK_CTRL,
+ .playback = {
+ .stream_name = "AIF2 Playback",
+ .channels_min = 1,
+ .channels_max = 8,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "AIF2 Capture",
+ .channels_min = 1,
+ .channels_max = 8,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_dai_ops,
+ .symmetric_rates = 1,
+ .symmetric_samplebits = 1,
+ },
+ {
+ .name = "cs47l85-aif3",
+ .id = 3,
+ .base = MADERA_AIF3_BCLK_CTRL,
+ .playback = {
+ .stream_name = "AIF3 Playback",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "AIF3 Capture",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_dai_ops,
+ .symmetric_rates = 1,
+ .symmetric_samplebits = 1,
+ },
+ {
+ .name = "cs47l85-aif4",
+ .id = 4,
+ .base = MADERA_AIF4_BCLK_CTRL,
+ .playback = {
+ .stream_name = "AIF4 Playback",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "AIF4 Capture",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_dai_ops,
+ .symmetric_rates = 1,
+ .symmetric_samplebits = 1,
+ },
+ {
+ .name = "cs47l85-slim1",
+ .id = 5,
+ .playback = {
+ .stream_name = "Slim1 Playback",
+ .channels_min = 1,
+ .channels_max = 4,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "Slim1 Capture",
+ .channels_min = 1,
+ .channels_max = 4,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_simple_dai_ops,
+ },
+ {
+ .name = "cs47l85-slim2",
+ .id = 6,
+ .playback = {
+ .stream_name = "Slim2 Playback",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "Slim2 Capture",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_simple_dai_ops,
+ },
+ {
+ .name = "cs47l85-slim3",
+ .id = 7,
+ .playback = {
+ .stream_name = "Slim3 Playback",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "Slim3 Capture",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_simple_dai_ops,
+ },
+ {
+ .name = "cs47l85-cpu-voicectrl",
+ .capture = {
+ .stream_name = "Voice Control CPU",
+ .channels_min = 1,
+ .channels_max = 1,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .compress_new = snd_soc_new_compress,
+ },
+ {
+ .name = "cs47l85-dsp-voicectrl",
+ .capture = {
+ .stream_name = "Voice Control DSP",
+ .channels_min = 1,
+ .channels_max = 1,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ },
+ {
+ .name = "cs47l85-cpu-trace",
+ .capture = {
+ .stream_name = "Audio Trace CPU",
+ .channels_min = 1,
+ .channels_max = 6,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .compress_new = snd_soc_new_compress,
+ },
+ {
+ .name = "cs47l85-dsp-trace",
+ .capture = {
+ .stream_name = "Audio Trace DSP",
+ .channels_min = 1,
+ .channels_max = 6,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ },
+};
+
+static int cs47l85_open(struct snd_compr_stream *stream)
+{
+ struct snd_soc_pcm_runtime *rtd = stream->private_data;
+ struct cs47l85 *cs47l85 = snd_soc_platform_get_drvdata(rtd->platform);
+ struct madera_priv *priv = &cs47l85->core;
+ struct madera *madera = priv->madera;
+ int n_adsp;
+
+ if (strcmp(rtd->codec_dai->name, "cs47l85-dsp-voicectrl") == 0) {
+ n_adsp = 5;
+ } else if (strcmp(rtd->codec_dai->name, "cs47l85-dsp-trace") == 0) {
+ n_adsp = 0;
+ } else {
+ dev_err(madera->dev,
+ "No suitable compressed stream for DAI '%s'\n",
+ rtd->codec_dai->name);
+ return -EINVAL;
+ }
+
+ return wm_adsp_compr_open(&priv->adsp[n_adsp], stream);
+}
+
+static irqreturn_t cs47l85_adsp2_irq(int irq, void *data)
+{
+ struct cs47l85 *cs47l85 = data;
+ struct madera_priv *priv = &cs47l85->core;
+ struct madera *madera = priv->madera;
+ struct madera_voice_trigger_info trig_info;
+ int serviced = 0;
+ int i, ret;
+
+ for (i = 0; i < CS47L85_NUM_ADSP; ++i) {
+ ret = wm_adsp_compr_handle_irq(&priv->adsp[i]);
+ if (ret != -ENODEV)
+ serviced++;
+ if (ret == WM_ADSP_COMPR_VOICE_TRIGGER) {
+ trig_info.core_num = i + 1;
+ madera_call_notifiers(madera,
+ MADERA_NOTIFY_VOICE_TRIGGER,
+ &trig_info);
+ }
+ }
+
+ if (!serviced) {
+ dev_err(madera->dev, "Spurious compressed data IRQ\n");
+ return IRQ_NONE;
+ }
+
+ return IRQ_HANDLED;
+}
+
+static const char * const cs47l85_dmic_refs[] = {
+ "MICVDD",
+ "MICBIAS1",
+ "MICBIAS2",
+ "MICBIAS3",
+};
+
+static const char * const cs47l85_dmic_inputs[] = {
+ "IN1L Mux",
+ "IN1R",
+ "IN2L Mux",
+ "IN2R Mux",
+ "IN3L",
+ "IN3R",
+ "IN4L",
+ "IN4R",
+ "IN5L",
+ "IN5R",
+ "IN6L",
+ "IN6R",
+};
+
+static int cs47l85_codec_probe(struct snd_soc_codec *codec)
+{
+ struct cs47l85 *cs47l85 = snd_soc_codec_get_drvdata(codec);
+ struct madera *madera = cs47l85->core.madera;
+ int i, ret;
+
+ madera->dapm = snd_soc_codec_get_dapm(codec);
+
+ ret = madera_init_inputs(codec,
+ cs47l85_dmic_inputs,
+ ARRAY_SIZE(cs47l85_dmic_inputs),
+ cs47l85_dmic_refs,
+ ARRAY_SIZE(cs47l85_dmic_refs));
+ if (ret)
+ return ret;
+
+ ret = madera_init_outputs(codec, CS47L85_MONO_OUTPUTS);
+ if (ret)
+ return ret;
+
+ snd_soc_component_disable_pin(snd_soc_dapm_to_component(madera->dapm),
+ "HAPTICS");
+
+ ret = snd_soc_add_codec_controls(codec, madera_adsp_rate_controls,
+ CS47L85_NUM_ADSP);
+ if (ret)
+ return ret;
+
+ for (i = 0; i < CS47L85_NUM_ADSP; i++)
+ wm_adsp2_codec_probe(&cs47l85->core.adsp[i], codec);
+
+ return 0;
+}
+
+static int cs47l85_codec_remove(struct snd_soc_codec *codec)
+{
+ struct cs47l85 *cs47l85 = snd_soc_codec_get_drvdata(codec);
+ int i;
+
+ for (i = 0; i < CS47L85_NUM_ADSP; i++)
+ wm_adsp2_codec_remove(&cs47l85->core.adsp[i], codec);
+
+ cs47l85->core.madera->dapm = NULL;
+
+ return 0;
+}
+
+#define MADERA_DIG_VU 0x0200
+
+static const unsigned int cs47l85_digital_vu[] = {
+ MADERA_DAC_DIGITAL_VOLUME_1L,
+ MADERA_DAC_DIGITAL_VOLUME_1R,
+ MADERA_DAC_DIGITAL_VOLUME_2L,
+ MADERA_DAC_DIGITAL_VOLUME_2R,
+ MADERA_DAC_DIGITAL_VOLUME_3L,
+ MADERA_DAC_DIGITAL_VOLUME_3R,
+ MADERA_DAC_DIGITAL_VOLUME_4L,
+ MADERA_DAC_DIGITAL_VOLUME_4R,
+ MADERA_DAC_DIGITAL_VOLUME_5L,
+ MADERA_DAC_DIGITAL_VOLUME_5R,
+ MADERA_DAC_DIGITAL_VOLUME_6L,
+ MADERA_DAC_DIGITAL_VOLUME_6R,
+};
+
+static struct regmap *cs47l85_get_regmap(struct device *dev)
+{
+ struct cs47l85 *cs47l85 = dev_get_drvdata(dev);
+
+ return cs47l85->core.madera->regmap;
+}
+
+static struct snd_soc_codec_driver soc_codec_dev_cs47l85 = {
+ .probe = cs47l85_codec_probe,
+ .remove = cs47l85_codec_remove,
+ .get_regmap = cs47l85_get_regmap,
+
+ .idle_bias_off = true,
+
+ .set_sysclk = madera_set_sysclk,
+ .set_pll = cs47l85_set_fll,
+
+ .component_driver = {
+ .controls = cs47l85_snd_controls,
+ .num_controls = ARRAY_SIZE(cs47l85_snd_controls),
+ .dapm_widgets = cs47l85_dapm_widgets,
+ .num_dapm_widgets = ARRAY_SIZE(cs47l85_dapm_widgets),
+ .dapm_routes = cs47l85_dapm_routes,
+ .num_dapm_routes = ARRAY_SIZE(cs47l85_dapm_routes),
+ },
+};
+
+static struct snd_compr_ops cs47l85_compr_ops = {
+ .open = cs47l85_open,
+ .free = wm_adsp_compr_free,
+ .set_params = wm_adsp_compr_set_params,
+ .get_caps = wm_adsp_compr_get_caps,
+ .trigger = wm_adsp_compr_trigger,
+ .pointer = wm_adsp_compr_pointer,
+ .copy = wm_adsp_compr_copy,
+};
+
+static struct snd_soc_platform_driver cs47l85_compr_platform = {
+ .compr_ops = &cs47l85_compr_ops,
+};
+
+static int cs47l85_probe(struct platform_device *pdev)
+{
+ struct madera *madera = dev_get_drvdata(pdev->dev.parent);
+ struct cs47l85 *cs47l85;
+ int i, ret;
+
+ BUILD_BUG_ON(ARRAY_SIZE(cs47l85_dai) > MADERA_MAX_DAI);
+
+ /* quick exit if Madera irqchip driver hasn't completed probe */
+ if (!madera->irq_dev) {
+ dev_dbg(&pdev->dev, "irqchip driver not ready\n");
+ return -EPROBE_DEFER;
+ }
+
+ cs47l85 = devm_kzalloc(&pdev->dev, sizeof(struct cs47l85),
+ GFP_KERNEL);
+ if (!cs47l85)
+ return -ENOMEM;
+
+ platform_set_drvdata(pdev, cs47l85);
+
+ cs47l85->core.madera = madera;
+ cs47l85->core.dev = &pdev->dev;
+ cs47l85->core.num_inputs = 12;
+
+ ret = madera_core_init(&cs47l85->core);
+ if (ret)
+ return ret;
+
+ ret = madera_init_overheat(&cs47l85->core);
+ if (ret)
+ return ret;
+
+ ret = madera_request_irq(madera, MADERA_IRQ_DSP_IRQ1,
+ "ADSP2 Compressed IRQ", cs47l85_adsp2_irq,
+ cs47l85);
+ if (ret != 0) {
+ dev_err(&pdev->dev, "Failed to request DSP IRQ: %d\n", ret);
+ return ret;
+ }
+
+ for (i = 0; i < CS47L85_NUM_ADSP; i++) {
+ cs47l85->core.adsp[i].part = "cs47l85";
+ cs47l85->core.adsp[i].num = i + 1;
+ cs47l85->core.adsp[i].type = WMFW_ADSP2;
+ cs47l85->core.adsp[i].rev = 1;
+ cs47l85->core.adsp[i].dev = madera->dev;
+ cs47l85->core.adsp[i].regmap = madera->regmap_32bit;
+
+ cs47l85->core.adsp[i].base = wm_adsp2_control_bases[i];
+ cs47l85->core.adsp[i].mem = cs47l85_dsp_regions[i];
+ cs47l85->core.adsp[i].num_mems
+ = ARRAY_SIZE(cs47l85_dsp1_regions);
+
+ ret = wm_adsp2_init(&cs47l85->core.adsp[i]);
+ if (ret) {
+ for (--i; i >= 0; --i)
+ wm_adsp2_remove(&cs47l85->core.adsp[i]);
+ goto error_core;
+ }
+ }
+
+ madera_init_fll(madera, 1, MADERA_FLL1_CONTROL_1 - 1,
+ &cs47l85->fll[0]);
+ madera_init_fll(madera, 2, MADERA_FLL2_CONTROL_1 - 1,
+ &cs47l85->fll[1]);
+ madera_init_fll(madera, 3, MADERA_FLL3_CONTROL_1 - 1,
+ &cs47l85->fll[2]);
+
+ for (i = 0; i < ARRAY_SIZE(cs47l85_dai); i++)
+ madera_init_dai(&cs47l85->core, i);
+
+ /* Latch volume update bits */
+ for (i = 0; i < ARRAY_SIZE(cs47l85_digital_vu); i++)
+ regmap_update_bits(madera->regmap, cs47l85_digital_vu[i],
+ MADERA_DIG_VU, MADERA_DIG_VU);
+
+ pm_runtime_enable(&pdev->dev);
+ pm_runtime_idle(&pdev->dev);
+
+ ret = snd_soc_register_platform(&pdev->dev, &cs47l85_compr_platform);
+ if (ret < 0) {
+ dev_err(&pdev->dev, "Failed to register platform: %d\n", ret);
+ goto error;
+ }
+
+ ret = snd_soc_register_codec(&pdev->dev, &soc_codec_dev_cs47l85,
+ cs47l85_dai, ARRAY_SIZE(cs47l85_dai));
+ if (ret < 0) {
+ dev_err(&pdev->dev, "Failed to register codec: %d\n", ret);
+ snd_soc_unregister_platform(&pdev->dev);
+ goto error;
+ }
+
+ return ret;
+
+error:
+ for (i = 0; i < CS47L85_NUM_ADSP; i++)
+ wm_adsp2_remove(&cs47l85->core.adsp[i]);
+error_core:
+ madera_core_destroy(&cs47l85->core);
+
+ return ret;
+}
+
+static int cs47l85_remove(struct platform_device *pdev)
+{
+ struct cs47l85 *cs47l85 = platform_get_drvdata(pdev);
+ int i;
+
+ snd_soc_unregister_platform(&pdev->dev);
+ snd_soc_unregister_codec(&pdev->dev);
+ pm_runtime_disable(&pdev->dev);
+
+ for (i = 0; i < CS47L85_NUM_ADSP; i++)
+ wm_adsp2_remove(&cs47l85->core.adsp[i]);
+
+ madera_free_irq(cs47l85->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l85);
+ madera_free_overheat(&cs47l85->core);
+ madera_core_destroy(&cs47l85->core);
+
+ return 0;
+}
+
+static struct platform_driver cs47l85_codec_driver = {
+ .driver = {
+ .name = "cs47l85-codec",
+ },
+ .probe = cs47l85_probe,
+ .remove = cs47l85_remove,
+};
+
+module_platform_driver(cs47l85_codec_driver);
+
+MODULE_DESCRIPTION("ASoC CS47L85 driver");
+MODULE_AUTHOR("Nariman Poushin <[email protected]>");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:cs47l85-codec");
--
1.9.1
Adds the codec driver for the CS47L90 SmartCodec. This is a
multi-functional codec based on the Cirrus Logic Madera platform.
Signed-off-by: Nikesh Oswal <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
Signed-off-by: Richard Fitzgerald <[email protected]>
---
sound/soc/codecs/Kconfig | 6 +
sound/soc/codecs/Makefile | 2 +
sound/soc/codecs/cs47l90.c | 2645 ++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 2653 insertions(+)
create mode 100644 sound/soc/codecs/cs47l90.c
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index 45fb885..65e2bbd 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -64,6 +64,7 @@ config SND_SOC_ALL_CODECS
select SND_SOC_CS47L24 if MFD_CS47L24
select SND_SOC_CS47L35 if MFD_CS47L35
select SND_SOC_CS47L85 if MFD_CS47L85
+ select SND_SOC_CS47L90 if MFD_CS47L90
select SND_SOC_CS53L30 if I2C
select SND_SOC_CX20442 if TTY
select SND_SOC_DA7210 if SND_SOC_I2C_AND_SPI
@@ -501,6 +502,9 @@ config SND_SOC_CS47L35
config SND_SOC_CS47L85
tristate
+config SND_SOC_CS47L90
+ tristate
+
# Cirrus Logic Quad-Channel ADC
config SND_SOC_CS53L30
tristate "Cirrus Logic CS53L30 CODEC"
@@ -590,8 +594,10 @@ config SND_SOC_MADERA
tristate
default y if SND_SOC_CS47L35=y
default y if SND_SOC_CS47L85=y
+ default y if SND_SOC_CS47L90=y
default m if SND_SOC_CS47L35=m
default m if SND_SOC_CS47L85=m
+ default m if SND_SOC_CS47L90=m
config SND_SOC_MAX98088
tristate
diff --git a/sound/soc/codecs/Makefile b/sound/soc/codecs/Makefile
index 7a07241..51a37c5 100644
--- a/sound/soc/codecs/Makefile
+++ b/sound/soc/codecs/Makefile
@@ -57,6 +57,7 @@ snd-soc-cs4349-objs := cs4349.o
snd-soc-cs47l24-objs := cs47l24.o
snd-soc-cs47l35-objs := cs47l35.o
snd-soc-cs47l85-objs := cs47l85.o
+snd-soc-cs47l90-objs := cs47l90.o
snd-soc-cs53l30-objs := cs53l30.o
snd-soc-cx20442-objs := cx20442.o
snd-soc-da7210-objs := da7210.o
@@ -293,6 +294,7 @@ obj-$(CONFIG_SND_SOC_CS4349) += snd-soc-cs4349.o
obj-$(CONFIG_SND_SOC_CS47L24) += snd-soc-cs47l24.o
obj-$(CONFIG_SND_SOC_CS47L35) += snd-soc-cs47l35.o
obj-$(CONFIG_SND_SOC_CS47L85) += snd-soc-cs47l85.o
+obj-$(CONFIG_SND_SOC_CS47L90) += snd-soc-cs47l90.o
obj-$(CONFIG_SND_SOC_CS53L30) += snd-soc-cs53l30.o
obj-$(CONFIG_SND_SOC_CX20442) += snd-soc-cx20442.o
obj-$(CONFIG_SND_SOC_DA7210) += snd-soc-da7210.o
diff --git a/sound/soc/codecs/cs47l90.c b/sound/soc/codecs/cs47l90.c
new file mode 100644
index 0000000..e772274
--- /dev/null
+++ b/sound/soc/codecs/cs47l90.c
@@ -0,0 +1,2645 @@
+/*
+ * cs47l90.c -- ALSA SoC Audio driver for CS47L90 codecs
+ *
+ * Copyright 2015-2017 Cirrus Logic
+ *
+ * Author: Nikesh Oswal <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/module.h>
+#include <linux/moduleparam.h>
+#include <linux/device.h>
+#include <linux/delay.h>
+#include <linux/init.h>
+#include <linux/pm.h>
+#include <linux/pm_runtime.h>
+#include <linux/regmap.h>
+#include <sound/core.h>
+#include <sound/pcm.h>
+#include <sound/pcm_params.h>
+#include <sound/soc.h>
+#include <sound/tlv.h>
+
+#include <linux/mfd/madera/core.h>
+#include <linux/mfd/madera/registers.h>
+
+#include "madera.h"
+#include "wm_adsp.h"
+
+#define CS47L90_NUM_ADSP 7
+#define CS47L90_MONO_OUTPUTS 3
+
+struct cs47l90 {
+ struct madera_priv core;
+ struct madera_fll fll[3];
+};
+
+static const struct wm_adsp_region cs47l90_dsp1_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x080000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x0e0000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x0a0000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x0c0000 },
+};
+
+static const struct wm_adsp_region cs47l90_dsp2_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x100000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x160000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x120000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x140000 },
+};
+
+static const struct wm_adsp_region cs47l90_dsp3_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x180000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x1e0000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x1a0000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x1c0000 },
+};
+
+static const struct wm_adsp_region cs47l90_dsp4_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x200000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x260000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x220000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x240000 },
+};
+
+static const struct wm_adsp_region cs47l90_dsp5_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x280000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x2e0000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x2a0000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x2c0000 },
+};
+
+static const struct wm_adsp_region cs47l90_dsp6_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x300000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x360000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x320000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x340000 },
+};
+
+static const struct wm_adsp_region cs47l90_dsp7_regions[] = {
+ { .type = WMFW_ADSP2_PM, .base = 0x380000 },
+ { .type = WMFW_ADSP2_ZM, .base = 0x3e0000 },
+ { .type = WMFW_ADSP2_XM, .base = 0x3a0000 },
+ { .type = WMFW_ADSP2_YM, .base = 0x3c0000 },
+};
+
+static const struct wm_adsp_region *cs47l90_dsp_regions[] = {
+ cs47l90_dsp1_regions,
+ cs47l90_dsp2_regions,
+ cs47l90_dsp3_regions,
+ cs47l90_dsp4_regions,
+ cs47l90_dsp5_regions,
+ cs47l90_dsp6_regions,
+ cs47l90_dsp7_regions,
+};
+
+static const int cs47l90_dsp_control_bases[] = {
+ MADERA_DSP1_CONFIG_1,
+ MADERA_DSP2_CONFIG_1,
+ MADERA_DSP3_CONFIG_1,
+ MADERA_DSP4_CONFIG_1,
+ MADERA_DSP5_CONFIG_1,
+ MADERA_DSP6_CONFIG_1,
+ MADERA_DSP7_CONFIG_1,
+};
+
+static int cs47l90_adsp_power_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol,
+ int event)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+ struct cs47l90 *cs47l90 = snd_soc_codec_get_drvdata(codec);
+ struct madera_priv *priv = &cs47l90->core;
+ struct madera *madera = priv->madera;
+ unsigned int freq;
+ int ret;
+
+ ret = regmap_read(madera->regmap, MADERA_DSP_CLOCK_2, &freq);
+ if (ret != 0) {
+ dev_err(madera->dev,
+ "Failed to read MADERA_DSP_CLOCK_2: %d\n", ret);
+ return ret;
+ }
+
+ switch (event) {
+ case SND_SOC_DAPM_PRE_PMU:
+ ret = madera_set_adsp_clk(&cs47l90->core, w->shift, freq);
+ if (ret)
+ return ret;
+ break;
+ default:
+ break;
+ }
+
+ return wm_adsp2_early_event(w, kcontrol, event, freq);
+}
+
+#define CS47L90_NG_SRC(name, base) \
+ SOC_SINGLE(name " NG HPOUT1L Switch", base, 0, 1, 0), \
+ SOC_SINGLE(name " NG HPOUT1R Switch", base, 1, 1, 0), \
+ SOC_SINGLE(name " NG HPOUT2L Switch", base, 2, 1, 0), \
+ SOC_SINGLE(name " NG HPOUT2R Switch", base, 3, 1, 0), \
+ SOC_SINGLE(name " NG HPOUT3L Switch", base, 4, 1, 0), \
+ SOC_SINGLE(name " NG HPOUT3R Switch", base, 5, 1, 0), \
+ SOC_SINGLE(name " NG SPKDAT1L Switch", base, 8, 1, 0), \
+ SOC_SINGLE(name " NG SPKDAT1R Switch", base, 9, 1, 0)
+
+#define CS47L90_RXANC_INPUT_ROUTES(widget, name) \
+ { widget, NULL, name " NG Mux" }, \
+ { name " NG Internal", NULL, "RXANC NG Clock" }, \
+ { name " NG Internal", NULL, name " Channel" }, \
+ { name " NG External", NULL, "RXANC NG External Clock" }, \
+ { name " NG External", NULL, name " Channel" }, \
+ { name " NG Mux", "None", name " Channel" }, \
+ { name " NG Mux", "Internal", name " NG Internal" }, \
+ { name " NG Mux", "External", name " NG External" }, \
+ { name " Channel", "Left", name " Left Input" }, \
+ { name " Channel", "Combine", name " Left Input" }, \
+ { name " Channel", "Right", name " Right Input" }, \
+ { name " Channel", "Combine", name " Right Input" }, \
+ { name " Left Input", "IN1", "IN1L PGA" }, \
+ { name " Right Input", "IN1", "IN1R PGA" }, \
+ { name " Left Input", "IN2", "IN2L PGA" }, \
+ { name " Right Input", "IN2", "IN2R PGA" }, \
+ { name " Left Input", "IN3", "IN3L PGA" }, \
+ { name " Right Input", "IN3", "IN3R PGA" }, \
+ { name " Left Input", "IN4", "IN4L PGA" }, \
+ { name " Right Input", "IN4", "IN4R PGA" }, \
+ { name " Left Input", "IN5", "IN5L PGA" }, \
+ { name " Right Input", "IN5", "IN5R PGA" }
+
+#define CS47L90_RXANC_OUTPUT_ROUTES(widget, name) \
+ { widget, NULL, name " ANC Source" }, \
+ { name " ANC Source", "RXANCL", "RXANCL" }, \
+ { name " ANC Source", "RXANCR", "RXANCR" }
+
+static const struct snd_kcontrol_new cs47l90_snd_controls[] = {
+SOC_ENUM("IN1 OSR", madera_in_dmic_osr[0]),
+SOC_ENUM("IN2 OSR", madera_in_dmic_osr[1]),
+SOC_ENUM("IN3 OSR", madera_in_dmic_osr[2]),
+SOC_ENUM("IN4 OSR", madera_in_dmic_osr[3]),
+SOC_ENUM("IN5 OSR", madera_in_dmic_osr[4]),
+
+SOC_SINGLE_RANGE_TLV("IN1L Volume", MADERA_IN1L_CONTROL,
+ MADERA_IN1L_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+SOC_SINGLE_RANGE_TLV("IN1R Volume", MADERA_IN1R_CONTROL,
+ MADERA_IN1R_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+SOC_SINGLE_RANGE_TLV("IN2L Volume", MADERA_IN2L_CONTROL,
+ MADERA_IN2L_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+SOC_SINGLE_RANGE_TLV("IN2R Volume", MADERA_IN2R_CONTROL,
+ MADERA_IN2R_PGA_VOL_SHIFT, 0x40, 0x5f, 0, madera_ana_tlv),
+
+SOC_ENUM("IN HPF Cutoff Frequency", madera_in_hpf_cut_enum),
+
+SOC_SINGLE_EXT("IN1L LP Switch", MADERA_ADC_DIGITAL_VOLUME_1L,
+ MADERA_IN1L_LP_MODE_SHIFT, 1, 0,
+ snd_soc_get_volsw, madera_lp_mode_put),
+SOC_SINGLE_EXT("IN1R LP Switch", MADERA_ADC_DIGITAL_VOLUME_1R,
+ MADERA_IN1R_LP_MODE_SHIFT, 1, 0,
+ snd_soc_get_volsw, madera_lp_mode_put),
+SOC_SINGLE_EXT("IN2L LP Switch", MADERA_ADC_DIGITAL_VOLUME_2L,
+ MADERA_IN2L_LP_MODE_SHIFT, 1, 0,
+ snd_soc_get_volsw, madera_lp_mode_put),
+SOC_SINGLE_EXT("IN2R LP Switch", MADERA_ADC_DIGITAL_VOLUME_2R,
+ MADERA_IN2R_LP_MODE_SHIFT, 1, 0,
+ snd_soc_get_volsw, madera_lp_mode_put),
+
+SOC_SINGLE("IN1L HPF Switch", MADERA_IN1L_CONTROL,
+ MADERA_IN1L_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN1R HPF Switch", MADERA_IN1R_CONTROL,
+ MADERA_IN1R_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN2L HPF Switch", MADERA_IN2L_CONTROL,
+ MADERA_IN2L_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN2R HPF Switch", MADERA_IN2R_CONTROL,
+ MADERA_IN2R_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN3L HPF Switch", MADERA_IN3L_CONTROL,
+ MADERA_IN3L_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN3R HPF Switch", MADERA_IN3R_CONTROL,
+ MADERA_IN3R_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN4L HPF Switch", MADERA_IN4L_CONTROL,
+ MADERA_IN4L_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN4R HPF Switch", MADERA_IN4R_CONTROL,
+ MADERA_IN4R_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN5L HPF Switch", MADERA_IN5L_CONTROL,
+ MADERA_IN5L_HPF_SHIFT, 1, 0),
+SOC_SINGLE("IN5R HPF Switch", MADERA_IN5R_CONTROL,
+ MADERA_IN5R_HPF_SHIFT, 1, 0),
+
+SOC_SINGLE_TLV("IN1L Digital Volume", MADERA_ADC_DIGITAL_VOLUME_1L,
+ MADERA_IN1L_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN1R Digital Volume", MADERA_ADC_DIGITAL_VOLUME_1R,
+ MADERA_IN1R_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN2L Digital Volume", MADERA_ADC_DIGITAL_VOLUME_2L,
+ MADERA_IN2L_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN2R Digital Volume", MADERA_ADC_DIGITAL_VOLUME_2R,
+ MADERA_IN2R_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN3L Digital Volume", MADERA_ADC_DIGITAL_VOLUME_3L,
+ MADERA_IN3L_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN3R Digital Volume", MADERA_ADC_DIGITAL_VOLUME_3R,
+ MADERA_IN3R_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN4L Digital Volume", MADERA_ADC_DIGITAL_VOLUME_4L,
+ MADERA_IN4L_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN4R Digital Volume", MADERA_ADC_DIGITAL_VOLUME_4R,
+ MADERA_IN4R_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN5L Digital Volume", MADERA_ADC_DIGITAL_VOLUME_5L,
+ MADERA_IN5L_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+SOC_SINGLE_TLV("IN5R Digital Volume", MADERA_ADC_DIGITAL_VOLUME_5R,
+ MADERA_IN5R_DIG_VOL_SHIFT, 0xbf, 0, madera_digital_tlv),
+
+SOC_ENUM("Input Ramp Up", madera_in_vi_ramp),
+SOC_ENUM("Input Ramp Down", madera_in_vd_ramp),
+
+SND_SOC_BYTES("RXANC Coefficients", MADERA_ANC_COEFF_START,
+ MADERA_ANC_COEFF_END - MADERA_ANC_COEFF_START + 1),
+SND_SOC_BYTES("RXANCL Config", MADERA_FCL_FILTER_CONTROL, 1),
+SND_SOC_BYTES("RXANCL Coefficients", MADERA_FCL_COEFF_START,
+ MADERA_FCL_COEFF_END - MADERA_FCL_COEFF_START + 1),
+SND_SOC_BYTES("RXANCR Config", MADERA_FCR_FILTER_CONTROL, 1),
+SND_SOC_BYTES("RXANCR Coefficients", MADERA_FCR_COEFF_START,
+ MADERA_FCR_COEFF_END - MADERA_FCR_COEFF_START + 1),
+
+MADERA_MIXER_CONTROLS("EQ1", MADERA_EQ1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("EQ2", MADERA_EQ2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("EQ3", MADERA_EQ3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("EQ4", MADERA_EQ4MIX_INPUT_1_SOURCE),
+
+MADERA_EQ_CONTROL("EQ1 Coefficients", MADERA_EQ1_2),
+SOC_SINGLE_TLV("EQ1 B1 Volume", MADERA_EQ1_1, MADERA_EQ1_B1_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ1 B2 Volume", MADERA_EQ1_1, MADERA_EQ1_B2_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ1 B3 Volume", MADERA_EQ1_1, MADERA_EQ1_B3_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ1 B4 Volume", MADERA_EQ1_2, MADERA_EQ1_B4_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ1 B5 Volume", MADERA_EQ1_2, MADERA_EQ1_B5_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+
+MADERA_EQ_CONTROL("EQ2 Coefficients", MADERA_EQ2_2),
+SOC_SINGLE_TLV("EQ2 B1 Volume", MADERA_EQ2_1, MADERA_EQ2_B1_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ2 B2 Volume", MADERA_EQ2_1, MADERA_EQ2_B2_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ2 B3 Volume", MADERA_EQ2_1, MADERA_EQ2_B3_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ2 B4 Volume", MADERA_EQ2_2, MADERA_EQ2_B4_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ2 B5 Volume", MADERA_EQ2_2, MADERA_EQ2_B5_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+
+MADERA_EQ_CONTROL("EQ3 Coefficients", MADERA_EQ3_2),
+SOC_SINGLE_TLV("EQ3 B1 Volume", MADERA_EQ3_1, MADERA_EQ3_B1_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ3 B2 Volume", MADERA_EQ3_1, MADERA_EQ3_B2_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ3 B3 Volume", MADERA_EQ3_1, MADERA_EQ3_B3_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ3 B4 Volume", MADERA_EQ3_2, MADERA_EQ3_B4_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ3 B5 Volume", MADERA_EQ3_2, MADERA_EQ3_B5_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+
+MADERA_EQ_CONTROL("EQ4 Coefficients", MADERA_EQ4_2),
+SOC_SINGLE_TLV("EQ4 B1 Volume", MADERA_EQ4_1, MADERA_EQ4_B1_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ4 B2 Volume", MADERA_EQ4_1, MADERA_EQ4_B2_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ4 B3 Volume", MADERA_EQ4_1, MADERA_EQ4_B3_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ4 B4 Volume", MADERA_EQ4_2, MADERA_EQ4_B4_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+SOC_SINGLE_TLV("EQ4 B5 Volume", MADERA_EQ4_2, MADERA_EQ4_B5_GAIN_SHIFT,
+ 24, 0, madera_eq_tlv),
+
+MADERA_MIXER_CONTROLS("DRC1L", MADERA_DRC1LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DRC1R", MADERA_DRC1RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DRC2L", MADERA_DRC2LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DRC2R", MADERA_DRC2RMIX_INPUT_1_SOURCE),
+
+SND_SOC_BYTES_MASK("DRC1", MADERA_DRC1_CTRL1, 5,
+ MADERA_DRC1R_ENA | MADERA_DRC1L_ENA),
+SND_SOC_BYTES_MASK("DRC2", MADERA_DRC2_CTRL1, 5,
+ MADERA_DRC2R_ENA | MADERA_DRC2L_ENA),
+
+MADERA_MIXER_CONTROLS("LHPF1", MADERA_HPLP1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("LHPF2", MADERA_HPLP2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("LHPF3", MADERA_HPLP3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("LHPF4", MADERA_HPLP4MIX_INPUT_1_SOURCE),
+
+MADERA_LHPF_CONTROL("LHPF1 Coefficients", MADERA_HPLPF1_2),
+MADERA_LHPF_CONTROL("LHPF2 Coefficients", MADERA_HPLPF2_2),
+MADERA_LHPF_CONTROL("LHPF3 Coefficients", MADERA_HPLPF3_2),
+MADERA_LHPF_CONTROL("LHPF4 Coefficients", MADERA_HPLPF4_2),
+
+SOC_ENUM("LHPF1 Mode", madera_lhpf1_mode),
+SOC_ENUM("LHPF2 Mode", madera_lhpf2_mode),
+SOC_ENUM("LHPF3 Mode", madera_lhpf3_mode),
+SOC_ENUM("LHPF4 Mode", madera_lhpf4_mode),
+
+SOC_ENUM("Sample Rate 2", madera_sample_rate[0]),
+SOC_ENUM("Sample Rate 3", madera_sample_rate[1]),
+SOC_ENUM("ASYNC Sample Rate 2", madera_sample_rate[2]),
+
+MADERA_RATE_ENUM("ISRC1 FSL", madera_isrc_fsl[0]),
+MADERA_RATE_ENUM("ISRC2 FSL", madera_isrc_fsl[1]),
+MADERA_RATE_ENUM("ISRC3 FSL", madera_isrc_fsl[2]),
+MADERA_RATE_ENUM("ISRC4 FSL", madera_isrc_fsl[3]),
+MADERA_RATE_ENUM("ISRC1 FSH", madera_isrc_fsh[0]),
+MADERA_RATE_ENUM("ISRC2 FSH", madera_isrc_fsh[1]),
+MADERA_RATE_ENUM("ISRC3 FSH", madera_isrc_fsh[2]),
+MADERA_RATE_ENUM("ISRC4 FSH", madera_isrc_fsh[3]),
+MADERA_RATE_ENUM("ASRC1 Rate 1", madera_asrc1_rate[0]),
+MADERA_RATE_ENUM("ASRC1 Rate 2", madera_asrc1_rate[1]),
+MADERA_RATE_ENUM("ASRC2 Rate 1", madera_asrc2_rate[0]),
+MADERA_RATE_ENUM("ASRC2 Rate 2", madera_asrc2_rate[1]),
+
+MADERA_MIXER_CONTROLS("DSP1L", MADERA_DSP1LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP1R", MADERA_DSP1RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP2L", MADERA_DSP2LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP2R", MADERA_DSP2RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP3L", MADERA_DSP3LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP3R", MADERA_DSP3RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP4L", MADERA_DSP4LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP4R", MADERA_DSP4RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP5L", MADERA_DSP5LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP5R", MADERA_DSP5RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP6L", MADERA_DSP6LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP6R", MADERA_DSP6RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP7L", MADERA_DSP7LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("DSP7R", MADERA_DSP7RMIX_INPUT_1_SOURCE),
+
+SOC_SINGLE_TLV("Noise Generator Volume", MADERA_COMFORT_NOISE_GENERATOR,
+ MADERA_NOISE_GEN_GAIN_SHIFT, 0x16, 0, madera_noise_tlv),
+
+MADERA_MIXER_CONTROLS("HPOUT1L", MADERA_OUT1LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("HPOUT1R", MADERA_OUT1RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("HPOUT2L", MADERA_OUT2LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("HPOUT2R", MADERA_OUT2RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("HPOUT3L", MADERA_OUT3LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("HPOUT3R", MADERA_OUT3RMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SPKDAT1L", MADERA_OUT5LMIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SPKDAT1R", MADERA_OUT5RMIX_INPUT_1_SOURCE),
+
+SOC_SINGLE("HPOUT1 SC Protect Switch", MADERA_HP1_SHORT_CIRCUIT_CTRL,
+ MADERA_HP1_SC_ENA_SHIFT, 1, 0),
+SOC_SINGLE("HPOUT2 SC Protect Switch", MADERA_HP2_SHORT_CIRCUIT_CTRL,
+ MADERA_HP2_SC_ENA_SHIFT, 1, 0),
+SOC_SINGLE("HPOUT3 SC Protect Switch", MADERA_HP3_SHORT_CIRCUIT_CTRL,
+ MADERA_HP3_SC_ENA_SHIFT, 1, 0),
+
+SOC_SINGLE("SPKDAT1 High Performance Switch", MADERA_OUTPUT_PATH_CONFIG_5L,
+ MADERA_OUT5_OSR_SHIFT, 1, 0),
+
+SOC_DOUBLE_R("HPOUT1 Digital Switch", MADERA_DAC_DIGITAL_VOLUME_1L,
+ MADERA_DAC_DIGITAL_VOLUME_1R, MADERA_OUT1L_MUTE_SHIFT, 1, 1),
+SOC_DOUBLE_R("HPOUT2 Digital Switch", MADERA_DAC_DIGITAL_VOLUME_2L,
+ MADERA_DAC_DIGITAL_VOLUME_2R, MADERA_OUT2L_MUTE_SHIFT, 1, 1),
+SOC_DOUBLE_R("HPOUT3 Digital Switch", MADERA_DAC_DIGITAL_VOLUME_3L,
+ MADERA_DAC_DIGITAL_VOLUME_3R, MADERA_OUT3L_MUTE_SHIFT, 1, 1),
+SOC_DOUBLE_R("SPKDAT1 Digital Switch", MADERA_DAC_DIGITAL_VOLUME_5L,
+ MADERA_DAC_DIGITAL_VOLUME_5R, MADERA_OUT5L_MUTE_SHIFT, 1, 1),
+
+SOC_DOUBLE_R_TLV("HPOUT1 Digital Volume", MADERA_DAC_DIGITAL_VOLUME_1L,
+ MADERA_DAC_DIGITAL_VOLUME_1R, MADERA_OUT1L_VOL_SHIFT,
+ 0xbf, 0, madera_digital_tlv),
+SOC_DOUBLE_R_TLV("HPOUT2 Digital Volume", MADERA_DAC_DIGITAL_VOLUME_2L,
+ MADERA_DAC_DIGITAL_VOLUME_2R, MADERA_OUT2L_VOL_SHIFT,
+ 0xbf, 0, madera_digital_tlv),
+SOC_DOUBLE_R_TLV("HPOUT3 Digital Volume", MADERA_DAC_DIGITAL_VOLUME_3L,
+ MADERA_DAC_DIGITAL_VOLUME_3R, MADERA_OUT3L_VOL_SHIFT,
+ 0xbf, 0, madera_digital_tlv),
+SOC_DOUBLE_R_TLV("SPKDAT1 Digital Volume", MADERA_DAC_DIGITAL_VOLUME_5L,
+ MADERA_DAC_DIGITAL_VOLUME_5R, MADERA_OUT5L_VOL_SHIFT,
+ 0xbf, 0, madera_digital_tlv),
+
+SOC_DOUBLE("SPKDAT1 Switch", MADERA_PDM_SPK1_CTRL_1, MADERA_SPK1L_MUTE_SHIFT,
+ MADERA_SPK1R_MUTE_SHIFT, 1, 1),
+
+SOC_DOUBLE("HPOUT1 EDRE Switch", MADERA_EDRE_ENABLE,
+ MADERA_EDRE_OUT1L_THR1_ENA_SHIFT,
+ MADERA_EDRE_OUT1R_THR1_ENA_SHIFT, 1, 0),
+SOC_DOUBLE("HPOUT2 EDRE Switch", MADERA_EDRE_ENABLE,
+ MADERA_EDRE_OUT2L_THR1_ENA_SHIFT,
+ MADERA_EDRE_OUT2R_THR1_ENA_SHIFT, 1, 0),
+SOC_DOUBLE("HPOUT3 EDRE Switch", MADERA_EDRE_ENABLE,
+ MADERA_EDRE_OUT3L_THR1_ENA_SHIFT,
+ MADERA_EDRE_OUT3R_THR1_ENA_SHIFT, 1, 0),
+
+SOC_ENUM("Output Ramp Up", madera_out_vi_ramp),
+SOC_ENUM("Output Ramp Down", madera_out_vd_ramp),
+
+SOC_SINGLE("Noise Gate Switch", MADERA_NOISE_GATE_CONTROL,
+ MADERA_NGATE_ENA_SHIFT, 1, 0),
+SOC_SINGLE_TLV("Noise Gate Threshold Volume", MADERA_NOISE_GATE_CONTROL,
+ MADERA_NGATE_THR_SHIFT, 7, 1, madera_ng_tlv),
+SOC_ENUM("Noise Gate Hold", madera_ng_hold),
+
+SOC_ENUM_EXT("DFC1RX Width", madera_dfc_width[0],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC1RX Type", madera_dfc_type[0],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC1TX Width", madera_dfc_width[1],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC1TX Type", madera_dfc_type[1],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC2RX Width", madera_dfc_width[2],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC2RX Type", madera_dfc_type[2],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC2TX Width", madera_dfc_width[3],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC2TX Type", madera_dfc_type[3],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC3RX Width", madera_dfc_width[4],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC3RX Type", madera_dfc_type[4],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC3TX Width", madera_dfc_width[5],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC3TX Type", madera_dfc_type[5],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC4RX Width", madera_dfc_width[6],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC4RX Type", madera_dfc_type[6],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC4TX Width", madera_dfc_width[7],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC4TX Type", madera_dfc_type[7],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC5RX Width", madera_dfc_width[8],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC5RX Type", madera_dfc_type[8],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC5TX Width", madera_dfc_width[9],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC5TX Type", madera_dfc_type[9],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC6RX Width", madera_dfc_width[10],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC6RX Type", madera_dfc_type[10],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC6TX Width", madera_dfc_width[11],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC6TX Type", madera_dfc_type[11],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC7RX Width", madera_dfc_width[12],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC7RX Type", madera_dfc_type[12],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC7TX Width", madera_dfc_width[13],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC7TX Type", madera_dfc_type[13],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC8RX Width", madera_dfc_width[14],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC8RX Type", madera_dfc_type[14],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC8TX Width", madera_dfc_width[15],
+ snd_soc_get_enum_double, madera_dfc_put),
+SOC_ENUM_EXT("DFC8TX Type", madera_dfc_type[15],
+ snd_soc_get_enum_double, madera_dfc_put),
+
+CS47L90_NG_SRC("HPOUT1L", MADERA_NOISE_GATE_SELECT_1L),
+CS47L90_NG_SRC("HPOUT1R", MADERA_NOISE_GATE_SELECT_1R),
+CS47L90_NG_SRC("HPOUT2L", MADERA_NOISE_GATE_SELECT_2L),
+CS47L90_NG_SRC("HPOUT2R", MADERA_NOISE_GATE_SELECT_2R),
+CS47L90_NG_SRC("HPOUT3L", MADERA_NOISE_GATE_SELECT_3L),
+CS47L90_NG_SRC("HPOUT3R", MADERA_NOISE_GATE_SELECT_3R),
+CS47L90_NG_SRC("SPKDAT1L", MADERA_NOISE_GATE_SELECT_5L),
+CS47L90_NG_SRC("SPKDAT1R", MADERA_NOISE_GATE_SELECT_5R),
+
+MADERA_MIXER_CONTROLS("AIF1TX1", MADERA_AIF1TX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX2", MADERA_AIF1TX2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX3", MADERA_AIF1TX3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX4", MADERA_AIF1TX4MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX5", MADERA_AIF1TX5MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX6", MADERA_AIF1TX6MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX7", MADERA_AIF1TX7MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF1TX8", MADERA_AIF1TX8MIX_INPUT_1_SOURCE),
+
+MADERA_MIXER_CONTROLS("AIF2TX1", MADERA_AIF2TX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX2", MADERA_AIF2TX2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX3", MADERA_AIF2TX3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX4", MADERA_AIF2TX4MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX5", MADERA_AIF2TX5MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX6", MADERA_AIF2TX6MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX7", MADERA_AIF2TX7MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF2TX8", MADERA_AIF2TX8MIX_INPUT_1_SOURCE),
+
+MADERA_MIXER_CONTROLS("AIF3TX1", MADERA_AIF3TX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF3TX2", MADERA_AIF3TX2MIX_INPUT_1_SOURCE),
+
+MADERA_MIXER_CONTROLS("AIF4TX1", MADERA_AIF4TX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("AIF4TX2", MADERA_AIF4TX2MIX_INPUT_1_SOURCE),
+
+MADERA_MIXER_CONTROLS("SLIMTX1", MADERA_SLIMTX1MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX2", MADERA_SLIMTX2MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX3", MADERA_SLIMTX3MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX4", MADERA_SLIMTX4MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX5", MADERA_SLIMTX5MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX6", MADERA_SLIMTX6MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX7", MADERA_SLIMTX7MIX_INPUT_1_SOURCE),
+MADERA_MIXER_CONTROLS("SLIMTX8", MADERA_SLIMTX8MIX_INPUT_1_SOURCE),
+
+MADERA_GAINMUX_CONTROLS("SPDIF1TX1", MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE),
+MADERA_GAINMUX_CONTROLS("SPDIF1TX2", MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE),
+};
+
+MADERA_MIXER_ENUMS(EQ1, MADERA_EQ1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(EQ2, MADERA_EQ2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(EQ3, MADERA_EQ3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(EQ4, MADERA_EQ4MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DRC1L, MADERA_DRC1LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DRC1R, MADERA_DRC1RMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DRC2L, MADERA_DRC2LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DRC2R, MADERA_DRC2RMIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(LHPF1, MADERA_HPLP1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(LHPF2, MADERA_HPLP2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(LHPF3, MADERA_HPLP3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(LHPF4, MADERA_HPLP4MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP1L, MADERA_DSP1LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP1R, MADERA_DSP1RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP1, MADERA_DSP1AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP2L, MADERA_DSP2LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP2R, MADERA_DSP2RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP2, MADERA_DSP2AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP3L, MADERA_DSP3LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP3R, MADERA_DSP3RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP3, MADERA_DSP3AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP4L, MADERA_DSP4LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP4R, MADERA_DSP4RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP4, MADERA_DSP4AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP5L, MADERA_DSP5LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP5R, MADERA_DSP5RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP5, MADERA_DSP5AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP6L, MADERA_DSP6LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP6R, MADERA_DSP6RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP6, MADERA_DSP6AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(DSP7L, MADERA_DSP7LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(DSP7R, MADERA_DSP7RMIX_INPUT_1_SOURCE);
+MADERA_DSP_AUX_ENUMS(DSP7, MADERA_DSP7AUX1MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(PWM1, MADERA_PWM1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(PWM2, MADERA_PWM2MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(OUT1L, MADERA_OUT1LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(OUT1R, MADERA_OUT1RMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(OUT2L, MADERA_OUT2LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(OUT2R, MADERA_OUT2RMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(OUT3L, MADERA_OUT3LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(OUT3R, MADERA_OUT3RMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SPKDAT1L, MADERA_OUT5LMIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SPKDAT1R, MADERA_OUT5RMIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(AIF1TX1, MADERA_AIF1TX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX2, MADERA_AIF1TX2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX3, MADERA_AIF1TX3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX4, MADERA_AIF1TX4MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX5, MADERA_AIF1TX5MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX6, MADERA_AIF1TX6MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX7, MADERA_AIF1TX7MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF1TX8, MADERA_AIF1TX8MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(AIF2TX1, MADERA_AIF2TX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX2, MADERA_AIF2TX2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX3, MADERA_AIF2TX3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX4, MADERA_AIF2TX4MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX5, MADERA_AIF2TX5MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX6, MADERA_AIF2TX6MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX7, MADERA_AIF2TX7MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF2TX8, MADERA_AIF2TX8MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(AIF3TX1, MADERA_AIF3TX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF3TX2, MADERA_AIF3TX2MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(AIF4TX1, MADERA_AIF4TX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(AIF4TX2, MADERA_AIF4TX2MIX_INPUT_1_SOURCE);
+
+MADERA_MIXER_ENUMS(SLIMTX1, MADERA_SLIMTX1MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX2, MADERA_SLIMTX2MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX3, MADERA_SLIMTX3MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX4, MADERA_SLIMTX4MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX5, MADERA_SLIMTX5MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX6, MADERA_SLIMTX6MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX7, MADERA_SLIMTX7MIX_INPUT_1_SOURCE);
+MADERA_MIXER_ENUMS(SLIMTX8, MADERA_SLIMTX8MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(SPD1TX1, MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(SPD1TX2, MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ASRC1IN1L, MADERA_ASRC1_1LMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC1IN1R, MADERA_ASRC1_1RMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC1IN2L, MADERA_ASRC1_2LMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC1IN2R, MADERA_ASRC1_2RMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC2IN1L, MADERA_ASRC2_1LMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC2IN1R, MADERA_ASRC2_1RMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC2IN2L, MADERA_ASRC2_2LMIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ASRC2IN2R, MADERA_ASRC2_2RMIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC1INT1, MADERA_ISRC1INT1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1INT2, MADERA_ISRC1INT2MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1INT3, MADERA_ISRC1INT3MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1INT4, MADERA_ISRC1INT4MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC1DEC1, MADERA_ISRC1DEC1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1DEC2, MADERA_ISRC1DEC2MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1DEC3, MADERA_ISRC1DEC3MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC1DEC4, MADERA_ISRC1DEC4MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC2INT1, MADERA_ISRC2INT1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2INT2, MADERA_ISRC2INT2MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2INT3, MADERA_ISRC2INT3MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2INT4, MADERA_ISRC2INT4MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC2DEC1, MADERA_ISRC2DEC1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2DEC2, MADERA_ISRC2DEC2MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2DEC3, MADERA_ISRC2DEC3MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC2DEC4, MADERA_ISRC2DEC4MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC3INT1, MADERA_ISRC3INT1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC3INT2, MADERA_ISRC3INT2MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC3DEC1, MADERA_ISRC3DEC1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC3DEC2, MADERA_ISRC3DEC2MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC4INT1, MADERA_ISRC4INT1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC4INT2, MADERA_ISRC4INT2MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(ISRC4DEC1, MADERA_ISRC4DEC1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(ISRC4DEC2, MADERA_ISRC4DEC2MIX_INPUT_1_SOURCE);
+
+MADERA_MUX_ENUMS(DFC1, MADERA_DFC1MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(DFC2, MADERA_DFC2MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(DFC3, MADERA_DFC3MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(DFC4, MADERA_DFC4MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(DFC5, MADERA_DFC5MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(DFC6, MADERA_DFC6MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(DFC7, MADERA_DFC7MIX_INPUT_1_SOURCE);
+MADERA_MUX_ENUMS(DFC8, MADERA_DFC8MIX_INPUT_1_SOURCE);
+
+static const char * const cs47l90_aec_loopback_texts[] = {
+ "HPOUT1L", "HPOUT1R", "HPOUT2L", "HPOUT2R", "HPOUT3L", "HPOUT3R",
+ "SPKDAT1L", "SPKDAT1R",
+};
+
+static const unsigned int cs47l90_aec_loopback_values[] = {
+ 0, 1, 2, 3, 4, 5, 8, 9,
+};
+
+static const struct soc_enum cs47l90_aec_loopback =
+ SOC_VALUE_ENUM_SINGLE(MADERA_DAC_AEC_CONTROL_1,
+ MADERA_AEC1_LOOPBACK_SRC_SHIFT, 0xf,
+ ARRAY_SIZE(cs47l90_aec_loopback_texts),
+ cs47l90_aec_loopback_texts,
+ cs47l90_aec_loopback_values);
+
+static const struct snd_kcontrol_new cs47l90_aec_loopback_mux =
+ SOC_DAPM_ENUM("AEC1 Loopback", cs47l90_aec_loopback);
+
+static const struct snd_kcontrol_new cs47l90_anc_input_mux[] = {
+ SOC_DAPM_ENUM("RXANCL Input", madera_anc_input_src[0]),
+ SOC_DAPM_ENUM("RXANCL Channel", madera_anc_input_src[1]),
+ SOC_DAPM_ENUM("RXANCR Input", madera_anc_input_src[2]),
+ SOC_DAPM_ENUM("RXANCR Channel", madera_anc_input_src[3]),
+};
+
+static const struct snd_kcontrol_new cs47l90_anc_ng_mux =
+ SOC_DAPM_ENUM("RXANC NG Source", madera_anc_ng_enum);
+
+static const struct snd_kcontrol_new cs47l90_output_anc_src[] = {
+ SOC_DAPM_ENUM("HPOUT1L ANC Source", madera_output_anc_src[0]),
+ SOC_DAPM_ENUM("HPOUT1R ANC Source", madera_output_anc_src[1]),
+ SOC_DAPM_ENUM("HPOUT2L ANC Source", madera_output_anc_src[2]),
+ SOC_DAPM_ENUM("HPOUT2R ANC Source", madera_output_anc_src[3]),
+ SOC_DAPM_ENUM("HPOUT3L ANC Source", madera_output_anc_src[4]),
+ SOC_DAPM_ENUM("HPOUT3R ANC Source", madera_output_anc_src[0]),
+ SOC_DAPM_ENUM("SPKDAT1L ANC Source", madera_output_anc_src[8]),
+ SOC_DAPM_ENUM("SPKDAT1R ANC Source", madera_output_anc_src[9]),
+};
+
+static const struct snd_soc_dapm_widget cs47l90_dapm_widgets[] = {
+SND_SOC_DAPM_SUPPLY("SYSCLK", MADERA_SYSTEM_CLOCK_1, MADERA_SYSCLK_ENA_SHIFT,
+ 0, madera_sysclk_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+SND_SOC_DAPM_SUPPLY("ASYNCCLK", MADERA_ASYNC_CLOCK_1,
+ MADERA_ASYNC_CLK_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("OPCLK", MADERA_OUTPUT_SYSTEM_CLOCK,
+ MADERA_OPCLK_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("ASYNCOPCLK", MADERA_OUTPUT_ASYNC_CLOCK,
+ MADERA_OPCLK_ASYNC_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("DSPCLK", MADERA_DSP_CLOCK_1,
+ MADERA_DSP_CLK_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_REGULATOR_SUPPLY("DBVDD2", 0, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("DBVDD3", 0, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("DBVDD4", 0, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("CPVDD1", 20, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("CPVDD2", 20, 0),
+SND_SOC_DAPM_REGULATOR_SUPPLY("MICVDD", 0, SND_SOC_DAPM_REGULATOR_BYPASS),
+
+SND_SOC_DAPM_SUPPLY("MICBIAS1", MADERA_MIC_BIAS_CTRL_1,
+ MADERA_MICB1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS2", MADERA_MIC_BIAS_CTRL_2,
+ MADERA_MICB1_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_SUPPLY("MICBIAS1A", MADERA_MIC_BIAS_CTRL_5,
+ MADERA_MICB1A_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS1B", MADERA_MIC_BIAS_CTRL_5,
+ MADERA_MICB1B_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS1C", MADERA_MIC_BIAS_CTRL_5,
+ MADERA_MICB1C_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS1D", MADERA_MIC_BIAS_CTRL_5,
+ MADERA_MICB1D_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_SUPPLY("MICBIAS2A", MADERA_MIC_BIAS_CTRL_6,
+ MADERA_MICB2A_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS2B", MADERA_MIC_BIAS_CTRL_6,
+ MADERA_MICB2B_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS2C", MADERA_MIC_BIAS_CTRL_6,
+ MADERA_MICB2C_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_SUPPLY("MICBIAS2D", MADERA_MIC_BIAS_CTRL_6,
+ MADERA_MICB2D_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_SUPPLY("FXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_FX, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ASRC1R1CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ASRC1_RATE_1, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ASRC1R2CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ASRC1_RATE_2, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ASRC2R1CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ASRC2_RATE_1, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ASRC2R2CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ASRC2_RATE_2, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ISRC1DECCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ISRC1_DEC, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ISRC1INTCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ISRC1_INT, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ISRC2DECCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ISRC2_DEC, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("ISRC2INTCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_ISRC2_INT, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("OUTCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_OUT, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("SPDCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_SPD, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP1CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP1, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP2CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP2, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP3CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP3, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP4CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP4, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP5CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP5, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP6CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP6, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DSP7CLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DSP7, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("AIF1TXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_AIF1, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("AIF2TXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_AIF2, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("AIF3TXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_AIF3, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("AIF4TXCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_AIF4, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("SLIMBUSCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_SLIMBUS, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("PWMCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_PWM, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+SND_SOC_DAPM_SUPPLY("DFCCLK", SND_SOC_NOPM,
+ MADERA_DOM_GRP_DFC, 0,
+ madera_domain_clk_ev,
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMD),
+
+SND_SOC_DAPM_SIGGEN("TONE"),
+SND_SOC_DAPM_SIGGEN("NOISE"),
+
+SND_SOC_DAPM_INPUT("IN1AL"),
+SND_SOC_DAPM_INPUT("IN1BL"),
+SND_SOC_DAPM_INPUT("IN1AR"),
+SND_SOC_DAPM_INPUT("IN1BR"),
+SND_SOC_DAPM_INPUT("IN2AL"),
+SND_SOC_DAPM_INPUT("IN2BL"),
+SND_SOC_DAPM_INPUT("IN2R"),
+SND_SOC_DAPM_INPUT("IN3L"),
+SND_SOC_DAPM_INPUT("IN3R"),
+SND_SOC_DAPM_INPUT("IN4L"),
+SND_SOC_DAPM_INPUT("IN4R"),
+SND_SOC_DAPM_INPUT("IN5L"),
+SND_SOC_DAPM_INPUT("IN5R"),
+
+SND_SOC_DAPM_OUTPUT("DRC1 Signal Activity"),
+SND_SOC_DAPM_OUTPUT("DRC2 Signal Activity"),
+
+SND_SOC_DAPM_OUTPUT("DSP Trigger Out"),
+
+SND_SOC_DAPM_MUX("IN1L Mux", SND_SOC_NOPM, 0, 0, &madera_inmux[0]),
+SND_SOC_DAPM_MUX("IN1R Mux", SND_SOC_NOPM, 0, 0, &madera_inmux[1]),
+SND_SOC_DAPM_MUX("IN2L Mux", SND_SOC_NOPM, 0, 0, &madera_inmux[2]),
+
+SND_SOC_DAPM_PGA("PWM1 Driver", MADERA_PWM_DRIVE_1, MADERA_PWM1_ENA_SHIFT,
+ 0, NULL, 0),
+SND_SOC_DAPM_PGA("PWM2 Driver", MADERA_PWM_DRIVE_1, MADERA_PWM2_ENA_SHIFT,
+ 0, NULL, 0),
+
+SND_SOC_DAPM_SUPPLY("RXANC NG External Clock", SND_SOC_NOPM,
+ MADERA_EXT_NG_SEL_SET_SHIFT, 0, madera_anc_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+SND_SOC_DAPM_PGA("RXANCL NG External", SND_SOC_NOPM, 0, 0, NULL, 0),
+SND_SOC_DAPM_PGA("RXANCR NG External", SND_SOC_NOPM, 0, 0, NULL, 0),
+
+SND_SOC_DAPM_SUPPLY("RXANC NG Clock", SND_SOC_NOPM,
+ MADERA_CLK_NG_ENA_SET_SHIFT, 0, madera_anc_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+SND_SOC_DAPM_PGA("RXANCL NG Internal", SND_SOC_NOPM, 0, 0, NULL, 0),
+SND_SOC_DAPM_PGA("RXANCR NG Internal", SND_SOC_NOPM, 0, 0, NULL, 0),
+
+SND_SOC_DAPM_MUX("RXANCL Left Input", SND_SOC_NOPM, 0, 0,
+ &cs47l90_anc_input_mux[0]),
+SND_SOC_DAPM_MUX("RXANCL Right Input", SND_SOC_NOPM, 0, 0,
+ &cs47l90_anc_input_mux[0]),
+SND_SOC_DAPM_MUX("RXANCL Channel", SND_SOC_NOPM, 0, 0,
+ &cs47l90_anc_input_mux[1]),
+SND_SOC_DAPM_MUX("RXANCL NG Mux", SND_SOC_NOPM, 0, 0, &cs47l90_anc_ng_mux),
+SND_SOC_DAPM_MUX("RXANCR Left Input", SND_SOC_NOPM, 0, 0,
+ &cs47l90_anc_input_mux[2]),
+SND_SOC_DAPM_MUX("RXANCR Right Input", SND_SOC_NOPM, 0, 0,
+ &cs47l90_anc_input_mux[2]),
+SND_SOC_DAPM_MUX("RXANCR Channel", SND_SOC_NOPM, 0, 0,
+ &cs47l90_anc_input_mux[3]),
+SND_SOC_DAPM_MUX("RXANCR NG Mux", SND_SOC_NOPM, 0, 0, &cs47l90_anc_ng_mux),
+
+SND_SOC_DAPM_PGA_E("RXANCL", SND_SOC_NOPM, MADERA_CLK_L_ENA_SET_SHIFT,
+ 0, NULL, 0, madera_anc_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+SND_SOC_DAPM_PGA_E("RXANCR", SND_SOC_NOPM, MADERA_CLK_R_ENA_SET_SHIFT,
+ 0, NULL, 0, madera_anc_ev,
+ SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_PRE_PMD),
+
+SND_SOC_DAPM_MUX("HPOUT1L ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l90_output_anc_src[0]),
+SND_SOC_DAPM_MUX("HPOUT1R ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l90_output_anc_src[1]),
+SND_SOC_DAPM_MUX("HPOUT2L ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l90_output_anc_src[2]),
+SND_SOC_DAPM_MUX("HPOUT2R ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l90_output_anc_src[3]),
+SND_SOC_DAPM_MUX("HPOUT3L ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l90_output_anc_src[4]),
+SND_SOC_DAPM_MUX("HPOUT3R ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l90_output_anc_src[5]),
+SND_SOC_DAPM_MUX("SPKDAT1L ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l90_output_anc_src[6]),
+SND_SOC_DAPM_MUX("SPKDAT1R ANC Source", SND_SOC_NOPM, 0, 0,
+ &cs47l90_output_anc_src[7]),
+
+SND_SOC_DAPM_AIF_OUT("AIF1TX1", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX2", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX3", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX4", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX5", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX6", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX6_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX7", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX7_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF1TX8", NULL, 0,
+ MADERA_AIF1_TX_ENABLES, MADERA_AIF1TX8_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_OUT("AIF2TX1", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX2", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX3", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX4", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX5", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX6", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX6_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX7", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX7_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF2TX8", NULL, 0,
+ MADERA_AIF2_TX_ENABLES, MADERA_AIF2TX8_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_OUT("SLIMTX1", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX2", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX3", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX4", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX5", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX6", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX6_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX7", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX7_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("SLIMTX8", NULL, 0,
+ MADERA_SLIMBUS_TX_CHANNEL_ENABLE,
+ MADERA_SLIMTX8_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_OUT("AIF3TX1", NULL, 0,
+ MADERA_AIF3_TX_ENABLES, MADERA_AIF3TX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF3TX2", NULL, 0,
+ MADERA_AIF3_TX_ENABLES, MADERA_AIF3TX2_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_OUT("AIF4TX1", NULL, 0,
+ MADERA_AIF4_TX_ENABLES, MADERA_AIF4TX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_OUT("AIF4TX2", NULL, 0,
+ MADERA_AIF4_TX_ENABLES, MADERA_AIF4TX2_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_PGA_E("OUT1L", SND_SOC_NOPM,
+ MADERA_OUT1L_ENA_SHIFT, 0, NULL, 0, madera_hp_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT1R", SND_SOC_NOPM,
+ MADERA_OUT1R_ENA_SHIFT, 0, NULL, 0, madera_hp_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT2L", SND_SOC_NOPM,
+ MADERA_OUT2L_ENA_SHIFT, 0, NULL, 0, madera_hp_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT2R", SND_SOC_NOPM,
+ MADERA_OUT2R_ENA_SHIFT, 0, NULL, 0, madera_hp_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT3L", SND_SOC_NOPM,
+ MADERA_OUT3L_ENA_SHIFT, 0, NULL, 0, madera_hp_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT3R", SND_SOC_NOPM,
+ MADERA_OUT3R_ENA_SHIFT, 0, NULL, 0, madera_hp_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT5L", MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT5L_ENA_SHIFT, 0, NULL, 0, madera_out_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("OUT5R", MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT5R_ENA_SHIFT, 0, NULL, 0, madera_out_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMU),
+
+SND_SOC_DAPM_PGA("SPD1TX1", MADERA_SPD1_TX_CONTROL,
+ MADERA_SPD1_VAL1_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("SPD1TX2", MADERA_SPD1_TX_CONTROL,
+ MADERA_SPD1_VAL2_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_OUT_DRV("SPD1", MADERA_SPD1_TX_CONTROL,
+ MADERA_SPD1_ENA_SHIFT, 0, NULL, 0),
+
+/*
+ * mux_in widgets : arranged in the order of sources
+ * specified in MADERA_MIXER_INPUT_ROUTES
+ */
+
+SND_SOC_DAPM_PGA("Noise Generator", MADERA_COMFORT_NOISE_GENERATOR,
+ MADERA_NOISE_GEN_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("Tone Generator 1", MADERA_TONE_GENERATOR_1,
+ MADERA_TONE1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("Tone Generator 2", MADERA_TONE_GENERATOR_1,
+ MADERA_TONE2_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_SIGGEN("HAPTICS"),
+
+SND_SOC_DAPM_MUX("AEC1 Loopback", MADERA_DAC_AEC_CONTROL_1,
+ MADERA_AEC1_LOOPBACK_ENA_SHIFT, 0,
+ &cs47l90_aec_loopback_mux),
+
+SND_SOC_DAPM_PGA_E("IN1L PGA", MADERA_INPUT_ENABLES, MADERA_IN1L_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN1R PGA", MADERA_INPUT_ENABLES, MADERA_IN1R_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN2L PGA", MADERA_INPUT_ENABLES, MADERA_IN2L_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN2R PGA", MADERA_INPUT_ENABLES, MADERA_IN2R_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN3L PGA", MADERA_INPUT_ENABLES, MADERA_IN3L_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN3R PGA", MADERA_INPUT_ENABLES, MADERA_IN3R_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN4L PGA", MADERA_INPUT_ENABLES, MADERA_IN4L_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN4R PGA", MADERA_INPUT_ENABLES, MADERA_IN4R_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN5L PGA", MADERA_INPUT_ENABLES, MADERA_IN5L_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+SND_SOC_DAPM_PGA_E("IN5R PGA", MADERA_INPUT_ENABLES, MADERA_IN5R_ENA_SHIFT,
+ 0, NULL, 0, madera_in_ev,
+ SND_SOC_DAPM_PRE_PMD | SND_SOC_DAPM_POST_PMD |
+ SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_POST_PMU),
+
+SND_SOC_DAPM_AIF_IN("AIF1RX1", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX2", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX3", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX4", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX5", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX6", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX6_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX7", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX7_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF1RX8", NULL, 0,
+ MADERA_AIF1_RX_ENABLES, MADERA_AIF1RX8_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_IN("AIF2RX1", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX2", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX3", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX4", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX5", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX6", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX6_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX7", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX7_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF2RX8", NULL, 0,
+ MADERA_AIF2_RX_ENABLES, MADERA_AIF2RX8_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_IN("AIF3RX1", NULL, 0,
+ MADERA_AIF3_RX_ENABLES, MADERA_AIF3RX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF3RX2", NULL, 0,
+ MADERA_AIF3_RX_ENABLES, MADERA_AIF3RX2_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_IN("AIF4RX1", NULL, 0,
+ MADERA_AIF4_RX_ENABLES, MADERA_AIF4RX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("AIF4RX2", NULL, 0,
+ MADERA_AIF4_RX_ENABLES, MADERA_AIF4RX2_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_AIF_IN("SLIMRX1", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX1_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX2", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX2_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX3", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX3_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX4", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX4_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX5", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX5_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX6", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX6_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX7", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX7_ENA_SHIFT, 0),
+SND_SOC_DAPM_AIF_IN("SLIMRX8", NULL, 0,
+ MADERA_SLIMBUS_RX_CHANNEL_ENABLE,
+ MADERA_SLIMRX8_ENA_SHIFT, 0),
+
+SND_SOC_DAPM_PGA("EQ1", MADERA_EQ1_1, MADERA_EQ1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("EQ2", MADERA_EQ2_1, MADERA_EQ2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("EQ3", MADERA_EQ3_1, MADERA_EQ3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("EQ4", MADERA_EQ4_1, MADERA_EQ4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("DRC1L", MADERA_DRC1_CTRL1, MADERA_DRC1L_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("DRC1R", MADERA_DRC1_CTRL1, MADERA_DRC1R_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("DRC2L", MADERA_DRC2_CTRL1, MADERA_DRC2L_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("DRC2R", MADERA_DRC2_CTRL1, MADERA_DRC2R_ENA_SHIFT, 0,
+ NULL, 0),
+
+SND_SOC_DAPM_PGA("LHPF1", MADERA_HPLPF1_1, MADERA_LHPF1_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("LHPF2", MADERA_HPLPF2_1, MADERA_LHPF2_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("LHPF3", MADERA_HPLPF3_1, MADERA_LHPF3_ENA_SHIFT, 0,
+ NULL, 0),
+SND_SOC_DAPM_PGA("LHPF4", MADERA_HPLPF4_1, MADERA_LHPF4_ENA_SHIFT, 0,
+ NULL, 0),
+
+SND_SOC_DAPM_PGA("ASRC1IN1L", MADERA_ASRC1_ENABLE,
+ MADERA_ASRC1_IN1L_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ASRC1IN1R", MADERA_ASRC1_ENABLE,
+ MADERA_ASRC1_IN1R_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ASRC1IN2L", MADERA_ASRC1_ENABLE,
+ MADERA_ASRC1_IN2L_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ASRC1IN2R", MADERA_ASRC1_ENABLE,
+ MADERA_ASRC1_IN2R_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ASRC2IN1L", MADERA_ASRC2_ENABLE,
+ MADERA_ASRC2_IN1L_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ASRC2IN1R", MADERA_ASRC2_ENABLE,
+ MADERA_ASRC2_IN1R_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ASRC2IN2L", MADERA_ASRC2_ENABLE,
+ MADERA_ASRC2_IN2L_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ASRC2IN2R", MADERA_ASRC2_ENABLE,
+ MADERA_ASRC2_IN2R_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC1DEC1", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_DEC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1DEC2", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_DEC2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1DEC3", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_DEC3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1DEC4", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_DEC4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC1INT1", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_INT1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1INT2", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_INT2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1INT3", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_INT3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC1INT4", MADERA_ISRC_1_CTRL_3,
+ MADERA_ISRC1_INT4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC2DEC1", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_DEC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2DEC2", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_DEC2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2DEC3", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_DEC3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2DEC4", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_DEC4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC2INT1", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_INT1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2INT2", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_INT2_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2INT3", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_INT3_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC2INT4", MADERA_ISRC_2_CTRL_3,
+ MADERA_ISRC2_INT4_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC3DEC1", MADERA_ISRC_3_CTRL_3,
+ MADERA_ISRC3_DEC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC3DEC2", MADERA_ISRC_3_CTRL_3,
+ MADERA_ISRC3_DEC2_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC3INT1", MADERA_ISRC_3_CTRL_3,
+ MADERA_ISRC3_INT1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC3INT2", MADERA_ISRC_3_CTRL_3,
+ MADERA_ISRC3_INT2_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC4DEC1", MADERA_ISRC_4_CTRL_3,
+ MADERA_ISRC4_DEC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC4DEC2", MADERA_ISRC_4_CTRL_3,
+ MADERA_ISRC4_DEC2_ENA_SHIFT, 0, NULL, 0),
+
+SND_SOC_DAPM_PGA("ISRC4INT1", MADERA_ISRC_4_CTRL_3,
+ MADERA_ISRC4_INT1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("ISRC4INT2", MADERA_ISRC_4_CTRL_3,
+ MADERA_ISRC4_INT2_ENA_SHIFT, 0, NULL, 0),
+
+WM_ADSP2("DSP1", 0, cs47l90_adsp_power_ev),
+WM_ADSP2("DSP2", 1, cs47l90_adsp_power_ev),
+WM_ADSP2("DSP3", 2, cs47l90_adsp_power_ev),
+WM_ADSP2("DSP4", 3, cs47l90_adsp_power_ev),
+WM_ADSP2("DSP5", 4, cs47l90_adsp_power_ev),
+WM_ADSP2("DSP6", 5, cs47l90_adsp_power_ev),
+WM_ADSP2("DSP7", 6, cs47l90_adsp_power_ev),
+
+/* end of ordered widget list */
+
+SND_SOC_DAPM_PGA("DFC1", MADERA_DFC1_CTRL, MADERA_DFC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("DFC2", MADERA_DFC2_CTRL, MADERA_DFC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("DFC3", MADERA_DFC3_CTRL, MADERA_DFC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("DFC4", MADERA_DFC4_CTRL, MADERA_DFC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("DFC5", MADERA_DFC5_CTRL, MADERA_DFC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("DFC6", MADERA_DFC6_CTRL, MADERA_DFC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("DFC7", MADERA_DFC7_CTRL, MADERA_DFC1_ENA_SHIFT, 0, NULL, 0),
+SND_SOC_DAPM_PGA("DFC8", MADERA_DFC8_CTRL, MADERA_DFC1_ENA_SHIFT, 0, NULL, 0),
+
+MADERA_MIXER_WIDGETS(EQ1, "EQ1"),
+MADERA_MIXER_WIDGETS(EQ2, "EQ2"),
+MADERA_MIXER_WIDGETS(EQ3, "EQ3"),
+MADERA_MIXER_WIDGETS(EQ4, "EQ4"),
+
+MADERA_MIXER_WIDGETS(DRC1L, "DRC1L"),
+MADERA_MIXER_WIDGETS(DRC1R, "DRC1R"),
+MADERA_MIXER_WIDGETS(DRC2L, "DRC2L"),
+MADERA_MIXER_WIDGETS(DRC2R, "DRC2R"),
+
+SND_SOC_DAPM_SWITCH("DRC1 Activity Output", SND_SOC_NOPM, 0, 0,
+ &madera_drc_activity_output_mux[0]),
+SND_SOC_DAPM_SWITCH("DRC2 Activity Output", SND_SOC_NOPM, 0, 0,
+ &madera_drc_activity_output_mux[1]),
+
+MADERA_MIXER_WIDGETS(LHPF1, "LHPF1"),
+MADERA_MIXER_WIDGETS(LHPF2, "LHPF2"),
+MADERA_MIXER_WIDGETS(LHPF3, "LHPF3"),
+MADERA_MIXER_WIDGETS(LHPF4, "LHPF4"),
+
+MADERA_MIXER_WIDGETS(PWM1, "PWM1"),
+MADERA_MIXER_WIDGETS(PWM2, "PWM2"),
+
+MADERA_MIXER_WIDGETS(OUT1L, "HPOUT1L"),
+MADERA_MIXER_WIDGETS(OUT1R, "HPOUT1R"),
+MADERA_MIXER_WIDGETS(OUT2L, "HPOUT2L"),
+MADERA_MIXER_WIDGETS(OUT2R, "HPOUT2R"),
+MADERA_MIXER_WIDGETS(OUT3L, "HPOUT3L"),
+MADERA_MIXER_WIDGETS(OUT3R, "HPOUT3R"),
+MADERA_MIXER_WIDGETS(SPKDAT1L, "SPKDAT1L"),
+MADERA_MIXER_WIDGETS(SPKDAT1R, "SPKDAT1R"),
+
+MADERA_MIXER_WIDGETS(AIF1TX1, "AIF1TX1"),
+MADERA_MIXER_WIDGETS(AIF1TX2, "AIF1TX2"),
+MADERA_MIXER_WIDGETS(AIF1TX3, "AIF1TX3"),
+MADERA_MIXER_WIDGETS(AIF1TX4, "AIF1TX4"),
+MADERA_MIXER_WIDGETS(AIF1TX5, "AIF1TX5"),
+MADERA_MIXER_WIDGETS(AIF1TX6, "AIF1TX6"),
+MADERA_MIXER_WIDGETS(AIF1TX7, "AIF1TX7"),
+MADERA_MIXER_WIDGETS(AIF1TX8, "AIF1TX8"),
+
+MADERA_MIXER_WIDGETS(AIF2TX1, "AIF2TX1"),
+MADERA_MIXER_WIDGETS(AIF2TX2, "AIF2TX2"),
+MADERA_MIXER_WIDGETS(AIF2TX3, "AIF2TX3"),
+MADERA_MIXER_WIDGETS(AIF2TX4, "AIF2TX4"),
+MADERA_MIXER_WIDGETS(AIF2TX5, "AIF2TX5"),
+MADERA_MIXER_WIDGETS(AIF2TX6, "AIF2TX6"),
+MADERA_MIXER_WIDGETS(AIF2TX7, "AIF2TX7"),
+MADERA_MIXER_WIDGETS(AIF2TX8, "AIF2TX8"),
+
+MADERA_MIXER_WIDGETS(AIF3TX1, "AIF3TX1"),
+MADERA_MIXER_WIDGETS(AIF3TX2, "AIF3TX2"),
+
+MADERA_MIXER_WIDGETS(AIF4TX1, "AIF4TX1"),
+MADERA_MIXER_WIDGETS(AIF4TX2, "AIF4TX2"),
+
+MADERA_MIXER_WIDGETS(SLIMTX1, "SLIMTX1"),
+MADERA_MIXER_WIDGETS(SLIMTX2, "SLIMTX2"),
+MADERA_MIXER_WIDGETS(SLIMTX3, "SLIMTX3"),
+MADERA_MIXER_WIDGETS(SLIMTX4, "SLIMTX4"),
+MADERA_MIXER_WIDGETS(SLIMTX5, "SLIMTX5"),
+MADERA_MIXER_WIDGETS(SLIMTX6, "SLIMTX6"),
+MADERA_MIXER_WIDGETS(SLIMTX7, "SLIMTX7"),
+MADERA_MIXER_WIDGETS(SLIMTX8, "SLIMTX8"),
+
+MADERA_MUX_WIDGETS(SPD1TX1, "SPDIF1TX1"),
+MADERA_MUX_WIDGETS(SPD1TX2, "SPDIF1TX2"),
+
+MADERA_MUX_WIDGETS(ASRC1IN1L, "ASRC1IN1L"),
+MADERA_MUX_WIDGETS(ASRC1IN1R, "ASRC1IN1R"),
+MADERA_MUX_WIDGETS(ASRC1IN2L, "ASRC1IN2L"),
+MADERA_MUX_WIDGETS(ASRC1IN2R, "ASRC1IN2R"),
+MADERA_MUX_WIDGETS(ASRC2IN1L, "ASRC2IN1L"),
+MADERA_MUX_WIDGETS(ASRC2IN1R, "ASRC2IN1R"),
+MADERA_MUX_WIDGETS(ASRC2IN2L, "ASRC2IN2L"),
+MADERA_MUX_WIDGETS(ASRC2IN2R, "ASRC2IN2R"),
+
+MADERA_DSP_WIDGETS(DSP1, "DSP1"),
+MADERA_DSP_WIDGETS(DSP2, "DSP2"),
+MADERA_DSP_WIDGETS(DSP3, "DSP3"),
+MADERA_DSP_WIDGETS(DSP4, "DSP4"),
+MADERA_DSP_WIDGETS(DSP5, "DSP5"),
+MADERA_DSP_WIDGETS(DSP6, "DSP6"),
+MADERA_DSP_WIDGETS(DSP7, "DSP7"),
+
+SND_SOC_DAPM_SWITCH("DSP1 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[0]),
+SND_SOC_DAPM_SWITCH("DSP2 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[1]),
+SND_SOC_DAPM_SWITCH("DSP3 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[2]),
+SND_SOC_DAPM_SWITCH("DSP4 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[3]),
+SND_SOC_DAPM_SWITCH("DSP5 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[4]),
+SND_SOC_DAPM_SWITCH("DSP6 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[5]),
+SND_SOC_DAPM_SWITCH("DSP7 Trigger Output", SND_SOC_NOPM, 0, 0,
+ &madera_dsp_trigger_output_mux[6]),
+
+MADERA_MUX_WIDGETS(ISRC1DEC1, "ISRC1DEC1"),
+MADERA_MUX_WIDGETS(ISRC1DEC2, "ISRC1DEC2"),
+MADERA_MUX_WIDGETS(ISRC1DEC3, "ISRC1DEC3"),
+MADERA_MUX_WIDGETS(ISRC1DEC4, "ISRC1DEC4"),
+
+MADERA_MUX_WIDGETS(ISRC1INT1, "ISRC1INT1"),
+MADERA_MUX_WIDGETS(ISRC1INT2, "ISRC1INT2"),
+MADERA_MUX_WIDGETS(ISRC1INT3, "ISRC1INT3"),
+MADERA_MUX_WIDGETS(ISRC1INT4, "ISRC1INT4"),
+
+MADERA_MUX_WIDGETS(ISRC2DEC1, "ISRC2DEC1"),
+MADERA_MUX_WIDGETS(ISRC2DEC2, "ISRC2DEC2"),
+MADERA_MUX_WIDGETS(ISRC2DEC3, "ISRC2DEC3"),
+MADERA_MUX_WIDGETS(ISRC2DEC4, "ISRC2DEC4"),
+
+MADERA_MUX_WIDGETS(ISRC2INT1, "ISRC2INT1"),
+MADERA_MUX_WIDGETS(ISRC2INT2, "ISRC2INT2"),
+MADERA_MUX_WIDGETS(ISRC2INT3, "ISRC2INT3"),
+MADERA_MUX_WIDGETS(ISRC2INT4, "ISRC2INT4"),
+
+MADERA_MUX_WIDGETS(ISRC3DEC1, "ISRC3DEC1"),
+MADERA_MUX_WIDGETS(ISRC3DEC2, "ISRC3DEC2"),
+
+MADERA_MUX_WIDGETS(ISRC3INT1, "ISRC3INT1"),
+MADERA_MUX_WIDGETS(ISRC3INT2, "ISRC3INT2"),
+
+MADERA_MUX_WIDGETS(ISRC4DEC1, "ISRC4DEC1"),
+MADERA_MUX_WIDGETS(ISRC4DEC2, "ISRC4DEC2"),
+
+MADERA_MUX_WIDGETS(ISRC4INT1, "ISRC4INT1"),
+MADERA_MUX_WIDGETS(ISRC4INT2, "ISRC4INT2"),
+
+MADERA_MUX_WIDGETS(DFC1, "DFC1"),
+MADERA_MUX_WIDGETS(DFC2, "DFC2"),
+MADERA_MUX_WIDGETS(DFC3, "DFC3"),
+MADERA_MUX_WIDGETS(DFC4, "DFC4"),
+MADERA_MUX_WIDGETS(DFC5, "DFC5"),
+MADERA_MUX_WIDGETS(DFC6, "DFC6"),
+MADERA_MUX_WIDGETS(DFC7, "DFC7"),
+MADERA_MUX_WIDGETS(DFC8, "DFC8"),
+
+SND_SOC_DAPM_OUTPUT("HPOUT1L"),
+SND_SOC_DAPM_OUTPUT("HPOUT1R"),
+SND_SOC_DAPM_OUTPUT("HPOUT2L"),
+SND_SOC_DAPM_OUTPUT("HPOUT2R"),
+SND_SOC_DAPM_OUTPUT("HPOUT3L"),
+SND_SOC_DAPM_OUTPUT("HPOUT3R"),
+SND_SOC_DAPM_OUTPUT("SPKDAT1L"),
+SND_SOC_DAPM_OUTPUT("SPKDAT1R"),
+SND_SOC_DAPM_OUTPUT("SPDIF1"),
+
+SND_SOC_DAPM_OUTPUT("MICSUPP"),
+};
+
+#define MADERA_MIXER_INPUT_ROUTES(name) \
+ { name, "Noise Generator", "Noise Generator" }, \
+ { name, "Tone Generator 1", "Tone Generator 1" }, \
+ { name, "Tone Generator 2", "Tone Generator 2" }, \
+ { name, "Haptics", "HAPTICS" }, \
+ { name, "AEC1", "AEC1 Loopback" }, \
+ { name, "IN1L", "IN1L PGA" }, \
+ { name, "IN1R", "IN1R PGA" }, \
+ { name, "IN2L", "IN2L PGA" }, \
+ { name, "IN2R", "IN2R PGA" }, \
+ { name, "IN3L", "IN3L PGA" }, \
+ { name, "IN3R", "IN3R PGA" }, \
+ { name, "IN4L", "IN4L PGA" }, \
+ { name, "IN4R", "IN4R PGA" }, \
+ { name, "IN5L", "IN5L PGA" }, \
+ { name, "IN5R", "IN5R PGA" }, \
+ { name, "AIF1RX1", "AIF1RX1" }, \
+ { name, "AIF1RX2", "AIF1RX2" }, \
+ { name, "AIF1RX3", "AIF1RX3" }, \
+ { name, "AIF1RX4", "AIF1RX4" }, \
+ { name, "AIF1RX5", "AIF1RX5" }, \
+ { name, "AIF1RX6", "AIF1RX6" }, \
+ { name, "AIF1RX7", "AIF1RX7" }, \
+ { name, "AIF1RX8", "AIF1RX8" }, \
+ { name, "AIF2RX1", "AIF2RX1" }, \
+ { name, "AIF2RX2", "AIF2RX2" }, \
+ { name, "AIF2RX3", "AIF2RX3" }, \
+ { name, "AIF2RX4", "AIF2RX4" }, \
+ { name, "AIF2RX5", "AIF2RX5" }, \
+ { name, "AIF2RX6", "AIF2RX6" }, \
+ { name, "AIF2RX7", "AIF2RX7" }, \
+ { name, "AIF2RX8", "AIF2RX8" }, \
+ { name, "AIF3RX1", "AIF3RX1" }, \
+ { name, "AIF3RX2", "AIF3RX2" }, \
+ { name, "AIF4RX1", "AIF4RX1" }, \
+ { name, "AIF4RX2", "AIF4RX2" }, \
+ { name, "SLIMRX1", "SLIMRX1" }, \
+ { name, "SLIMRX2", "SLIMRX2" }, \
+ { name, "SLIMRX3", "SLIMRX3" }, \
+ { name, "SLIMRX4", "SLIMRX4" }, \
+ { name, "SLIMRX5", "SLIMRX5" }, \
+ { name, "SLIMRX6", "SLIMRX6" }, \
+ { name, "SLIMRX7", "SLIMRX7" }, \
+ { name, "SLIMRX8", "SLIMRX8" }, \
+ { name, "EQ1", "EQ1" }, \
+ { name, "EQ2", "EQ2" }, \
+ { name, "EQ3", "EQ3" }, \
+ { name, "EQ4", "EQ4" }, \
+ { name, "DRC1L", "DRC1L" }, \
+ { name, "DRC1R", "DRC1R" }, \
+ { name, "DRC2L", "DRC2L" }, \
+ { name, "DRC2R", "DRC2R" }, \
+ { name, "LHPF1", "LHPF1" }, \
+ { name, "LHPF2", "LHPF2" }, \
+ { name, "LHPF3", "LHPF3" }, \
+ { name, "LHPF4", "LHPF4" }, \
+ { name, "ASRC1IN1L", "ASRC1IN1L" }, \
+ { name, "ASRC1IN1R", "ASRC1IN1R" }, \
+ { name, "ASRC1IN2L", "ASRC1IN2L" }, \
+ { name, "ASRC1IN2R", "ASRC1IN2R" }, \
+ { name, "ASRC2IN1L", "ASRC2IN1L" }, \
+ { name, "ASRC2IN1R", "ASRC2IN1R" }, \
+ { name, "ASRC2IN2L", "ASRC2IN2L" }, \
+ { name, "ASRC2IN2R", "ASRC2IN2R" }, \
+ { name, "ISRC1DEC1", "ISRC1DEC1" }, \
+ { name, "ISRC1DEC2", "ISRC1DEC2" }, \
+ { name, "ISRC1DEC3", "ISRC1DEC3" }, \
+ { name, "ISRC1DEC4", "ISRC1DEC4" }, \
+ { name, "ISRC1INT1", "ISRC1INT1" }, \
+ { name, "ISRC1INT2", "ISRC1INT2" }, \
+ { name, "ISRC1INT3", "ISRC1INT3" }, \
+ { name, "ISRC1INT4", "ISRC1INT4" }, \
+ { name, "ISRC2DEC1", "ISRC2DEC1" }, \
+ { name, "ISRC2DEC2", "ISRC2DEC2" }, \
+ { name, "ISRC2DEC3", "ISRC2DEC3" }, \
+ { name, "ISRC2DEC4", "ISRC2DEC4" }, \
+ { name, "ISRC2INT1", "ISRC2INT1" }, \
+ { name, "ISRC2INT2", "ISRC2INT2" }, \
+ { name, "ISRC2INT3", "ISRC2INT3" }, \
+ { name, "ISRC2INT4", "ISRC2INT4" }, \
+ { name, "ISRC3DEC1", "ISRC3DEC1" }, \
+ { name, "ISRC3DEC2", "ISRC3DEC2" }, \
+ { name, "ISRC3INT1", "ISRC3INT1" }, \
+ { name, "ISRC3INT2", "ISRC3INT2" }, \
+ { name, "ISRC4DEC1", "ISRC4DEC1" }, \
+ { name, "ISRC4DEC2", "ISRC4DEC2" }, \
+ { name, "ISRC4INT1", "ISRC4INT1" }, \
+ { name, "ISRC4INT2", "ISRC4INT2" }, \
+ { name, "DSP1.1", "DSP1" }, \
+ { name, "DSP1.2", "DSP1" }, \
+ { name, "DSP1.3", "DSP1" }, \
+ { name, "DSP1.4", "DSP1" }, \
+ { name, "DSP1.5", "DSP1" }, \
+ { name, "DSP1.6", "DSP1" }, \
+ { name, "DSP2.1", "DSP2" }, \
+ { name, "DSP2.2", "DSP2" }, \
+ { name, "DSP2.3", "DSP2" }, \
+ { name, "DSP2.4", "DSP2" }, \
+ { name, "DSP2.5", "DSP2" }, \
+ { name, "DSP2.6", "DSP2" }, \
+ { name, "DSP3.1", "DSP3" }, \
+ { name, "DSP3.2", "DSP3" }, \
+ { name, "DSP3.3", "DSP3" }, \
+ { name, "DSP3.4", "DSP3" }, \
+ { name, "DSP3.5", "DSP3" }, \
+ { name, "DSP3.6", "DSP3" }, \
+ { name, "DSP4.1", "DSP4" }, \
+ { name, "DSP4.2", "DSP4" }, \
+ { name, "DSP4.3", "DSP4" }, \
+ { name, "DSP4.4", "DSP4" }, \
+ { name, "DSP4.5", "DSP4" }, \
+ { name, "DSP4.6", "DSP4" }, \
+ { name, "DSP5.1", "DSP5" }, \
+ { name, "DSP5.2", "DSP5" }, \
+ { name, "DSP5.3", "DSP5" }, \
+ { name, "DSP5.4", "DSP5" }, \
+ { name, "DSP5.5", "DSP5" }, \
+ { name, "DSP5.6", "DSP5" }, \
+ { name, "DSP6.1", "DSP6" }, \
+ { name, "DSP6.2", "DSP6" }, \
+ { name, "DSP6.3", "DSP6" }, \
+ { name, "DSP6.4", "DSP6" }, \
+ { name, "DSP6.5", "DSP6" }, \
+ { name, "DSP6.6", "DSP6" }, \
+ { name, "DSP7.1", "DSP7" }, \
+ { name, "DSP7.2", "DSP7" }, \
+ { name, "DSP7.3", "DSP7" }, \
+ { name, "DSP7.4", "DSP7" }, \
+ { name, "DSP7.5", "DSP7" }, \
+ { name, "DSP7.6", "DSP7" }, \
+ { name, "DFC1", "DFC1" }, \
+ { name, "DFC2", "DFC2" }, \
+ { name, "DFC3", "DFC3" }, \
+ { name, "DFC4", "DFC4" }, \
+ { name, "DFC5", "DFC5" }, \
+ { name, "DFC6", "DFC6" }, \
+ { name, "DFC7", "DFC7" }, \
+ { name, "DFC8", "DFC8" }
+
+static const struct snd_soc_dapm_route cs47l90_dapm_routes[] = {
+ /* Internal clock domains */
+ { "EQ1", NULL, "FXCLK" },
+ { "EQ2", NULL, "FXCLK" },
+ { "EQ3", NULL, "FXCLK" },
+ { "EQ4", NULL, "FXCLK" },
+ { "DRC1L", NULL, "FXCLK" },
+ { "DRC1R", NULL, "FXCLK" },
+ { "DRC2L", NULL, "FXCLK" },
+ { "DRC2R", NULL, "FXCLK" },
+ { "LHPF1", NULL, "FXCLK" },
+ { "LHPF2", NULL, "FXCLK" },
+ { "LHPF3", NULL, "FXCLK" },
+ { "LHPF4", NULL, "FXCLK" },
+ { "PWM1 Mixer", NULL, "PWMCLK" },
+ { "PWM2 Mixer", NULL, "PWMCLK" },
+ { "OUT1L", NULL, "OUTCLK" },
+ { "OUT1R", NULL, "OUTCLK" },
+ { "OUT2L", NULL, "OUTCLK" },
+ { "OUT2R", NULL, "OUTCLK" },
+ { "OUT3L", NULL, "OUTCLK" },
+ { "OUT3R", NULL, "OUTCLK" },
+ { "OUT5L", NULL, "OUTCLK" },
+ { "OUT5R", NULL, "OUTCLK" },
+ { "AIF1TX1", NULL, "AIF1TXCLK" },
+ { "AIF1TX2", NULL, "AIF1TXCLK" },
+ { "AIF1TX3", NULL, "AIF1TXCLK" },
+ { "AIF1TX4", NULL, "AIF1TXCLK" },
+ { "AIF1TX5", NULL, "AIF1TXCLK" },
+ { "AIF1TX6", NULL, "AIF1TXCLK" },
+ { "AIF1TX7", NULL, "AIF1TXCLK" },
+ { "AIF1TX8", NULL, "AIF1TXCLK" },
+ { "AIF2TX1", NULL, "AIF2TXCLK" },
+ { "AIF2TX2", NULL, "AIF2TXCLK" },
+ { "AIF2TX3", NULL, "AIF2TXCLK" },
+ { "AIF2TX4", NULL, "AIF2TXCLK" },
+ { "AIF2TX5", NULL, "AIF2TXCLK" },
+ { "AIF2TX6", NULL, "AIF2TXCLK" },
+ { "AIF2TX7", NULL, "AIF2TXCLK" },
+ { "AIF2TX8", NULL, "AIF2TXCLK" },
+ { "AIF3TX1", NULL, "AIF3TXCLK" },
+ { "AIF3TX2", NULL, "AIF3TXCLK" },
+ { "AIF4TX1", NULL, "AIF4TXCLK" },
+ { "AIF4TX2", NULL, "AIF4TXCLK" },
+ { "SLIMTX1", NULL, "SLIMBUSCLK" },
+ { "SLIMTX2", NULL, "SLIMBUSCLK" },
+ { "SLIMTX3", NULL, "SLIMBUSCLK" },
+ { "SLIMTX4", NULL, "SLIMBUSCLK" },
+ { "SLIMTX5", NULL, "SLIMBUSCLK" },
+ { "SLIMTX6", NULL, "SLIMBUSCLK" },
+ { "SLIMTX7", NULL, "SLIMBUSCLK" },
+ { "SLIMTX8", NULL, "SLIMBUSCLK" },
+ { "SPD1TX1", NULL, "SPDCLK" },
+ { "SPD1TX2", NULL, "SPDCLK" },
+ { "DSP1", NULL, "DSP1CLK" },
+ { "DSP2", NULL, "DSP2CLK" },
+ { "DSP3", NULL, "DSP3CLK" },
+ { "DSP4", NULL, "DSP4CLK" },
+ { "DSP5", NULL, "DSP5CLK" },
+ { "DSP6", NULL, "DSP6CLK" },
+ { "DSP7", NULL, "DSP7CLK" },
+ { "ISRC1DEC1", NULL, "ISRC1DECCLK" },
+ { "ISRC1DEC2", NULL, "ISRC1DECCLK" },
+ { "ISRC1DEC3", NULL, "ISRC1DECCLK" },
+ { "ISRC1DEC4", NULL, "ISRC1DECCLK" },
+ { "ISRC1INT1", NULL, "ISRC1INTCLK" },
+ { "ISRC1INT2", NULL, "ISRC1INTCLK" },
+ { "ISRC1INT3", NULL, "ISRC1INTCLK" },
+ { "ISRC1INT4", NULL, "ISRC1INTCLK" },
+ { "ISRC2DEC1", NULL, "ISRC2DECCLK" },
+ { "ISRC2DEC2", NULL, "ISRC2DECCLK" },
+ { "ISRC2DEC3", NULL, "ISRC2DECCLK" },
+ { "ISRC2DEC4", NULL, "ISRC2DECCLK" },
+ { "ISRC2INT1", NULL, "ISRC2INTCLK" },
+ { "ISRC2INT2", NULL, "ISRC2INTCLK" },
+ { "ISRC2INT3", NULL, "ISRC2INTCLK" },
+ { "ISRC2INT4", NULL, "ISRC2INTCLK" },
+ { "ISRC3DEC1", NULL, "ISRC1DECCLK" },
+ { "ISRC3DEC2", NULL, "ISRC1DECCLK" },
+ { "ISRC3INT1", NULL, "ISRC1INTCLK" },
+ { "ISRC3INT2", NULL, "ISRC1INTCLK" },
+ { "ISRC4DEC1", NULL, "ISRC1DECCLK" },
+ { "ISRC4DEC2", NULL, "ISRC1DECCLK" },
+ { "ISRC4INT1", NULL, "ISRC1INTCLK" },
+ { "ISRC4INT2", NULL, "ISRC1INTCLK" },
+ { "ASRC1IN1L", NULL, "ASRC1R1CLK" },
+ { "ASRC1IN1R", NULL, "ASRC1R1CLK" },
+ { "ASRC1IN2L", NULL, "ASRC1R2CLK" },
+ { "ASRC1IN2L", NULL, "ASRC1R2CLK" },
+ { "ASRC2IN1L", NULL, "ASRC2R1CLK" },
+ { "ASRC2IN1R", NULL, "ASRC2R1CLK" },
+ { "ASRC2IN2L", NULL, "ASRC2R2CLK" },
+ { "ASRC2IN2L", NULL, "ASRC2R2CLK" },
+ { "DFC1", NULL, "DFCCLK" },
+ { "DFC2", NULL, "DFCCLK" },
+ { "DFC3", NULL, "DFCCLK" },
+ { "DFC4", NULL, "DFCCLK" },
+ { "DFC5", NULL, "DFCCLK" },
+ { "DFC6", NULL, "DFCCLK" },
+ { "DFC7", NULL, "DFCCLK" },
+ { "DFC8", NULL, "DFCCLK" },
+
+ { "AIF2 Capture", NULL, "DBVDD2" },
+ { "AIF2 Playback", NULL, "DBVDD2" },
+
+ { "AIF3 Capture", NULL, "DBVDD3" },
+ { "AIF3 Playback", NULL, "DBVDD3" },
+
+ { "AIF4 Capture", NULL, "DBVDD3" },
+ { "AIF4 Playback", NULL, "DBVDD3" },
+
+ { "OUT1L", NULL, "CPVDD1" },
+ { "OUT1L", NULL, "CPVDD2" },
+ { "OUT1R", NULL, "CPVDD1" },
+ { "OUT1R", NULL, "CPVDD2" },
+ { "OUT2L", NULL, "CPVDD1" },
+ { "OUT2L", NULL, "CPVDD2" },
+ { "OUT2R", NULL, "CPVDD1" },
+ { "OUT2R", NULL, "CPVDD2" },
+ { "OUT3L", NULL, "CPVDD1" },
+ { "OUT3L", NULL, "CPVDD2" },
+ { "OUT3R", NULL, "CPVDD1" },
+ { "OUT3R", NULL, "CPVDD2" },
+
+ { "OUT1L", NULL, "SYSCLK" },
+ { "OUT1R", NULL, "SYSCLK" },
+ { "OUT2L", NULL, "SYSCLK" },
+ { "OUT2R", NULL, "SYSCLK" },
+ { "OUT3L", NULL, "SYSCLK" },
+ { "OUT3R", NULL, "SYSCLK" },
+ { "OUT5L", NULL, "SYSCLK" },
+ { "OUT5R", NULL, "SYSCLK" },
+
+ { "SPD1", NULL, "SYSCLK" },
+ { "SPD1", NULL, "SPD1TX1" },
+ { "SPD1", NULL, "SPD1TX2" },
+
+ { "IN1AL", NULL, "SYSCLK" },
+ { "IN1BL", NULL, "SYSCLK" },
+ { "IN1AR", NULL, "SYSCLK" },
+ { "IN1BR", NULL, "SYSCLK" },
+ { "IN2AL", NULL, "SYSCLK" },
+ { "IN2BL", NULL, "SYSCLK" },
+ { "IN2R", NULL, "SYSCLK" },
+ { "IN3L", NULL, "SYSCLK" },
+ { "IN3R", NULL, "SYSCLK" },
+ { "IN4L", NULL, "SYSCLK" },
+ { "IN4R", NULL, "SYSCLK" },
+ { "IN5L", NULL, "SYSCLK" },
+ { "IN5R", NULL, "SYSCLK" },
+
+ { "IN3L", NULL, "DBVDD4" },
+ { "IN3R", NULL, "DBVDD4" },
+ { "IN4L", NULL, "DBVDD4" },
+ { "IN4R", NULL, "DBVDD4" },
+ { "IN5L", NULL, "DBVDD4" },
+ { "IN5R", NULL, "DBVDD4" },
+
+ { "ASRC1IN1L", NULL, "SYSCLK" },
+ { "ASRC1IN1R", NULL, "SYSCLK" },
+ { "ASRC1IN2L", NULL, "SYSCLK" },
+ { "ASRC1IN2R", NULL, "SYSCLK" },
+ { "ASRC2IN1L", NULL, "SYSCLK" },
+ { "ASRC2IN1R", NULL, "SYSCLK" },
+ { "ASRC2IN2L", NULL, "SYSCLK" },
+ { "ASRC2IN2R", NULL, "SYSCLK" },
+
+ { "ASRC1IN1L", NULL, "ASYNCCLK" },
+ { "ASRC1IN1R", NULL, "ASYNCCLK" },
+ { "ASRC1IN2L", NULL, "ASYNCCLK" },
+ { "ASRC1IN2R", NULL, "ASYNCCLK" },
+ { "ASRC2IN1L", NULL, "ASYNCCLK" },
+ { "ASRC2IN1R", NULL, "ASYNCCLK" },
+ { "ASRC2IN2L", NULL, "ASYNCCLK" },
+ { "ASRC2IN2R", NULL, "ASYNCCLK" },
+
+ { "MICBIAS1", NULL, "MICVDD" },
+ { "MICBIAS2", NULL, "MICVDD" },
+
+ { "MICBIAS1A", NULL, "MICBIAS1" },
+ { "MICBIAS1B", NULL, "MICBIAS1" },
+ { "MICBIAS1C", NULL, "MICBIAS1" },
+ { "MICBIAS1D", NULL, "MICBIAS1" },
+
+ { "MICBIAS2A", NULL, "MICBIAS2" },
+ { "MICBIAS2B", NULL, "MICBIAS2" },
+ { "MICBIAS2C", NULL, "MICBIAS2" },
+ { "MICBIAS2D", NULL, "MICBIAS2" },
+
+ { "Noise Generator", NULL, "SYSCLK" },
+ { "Tone Generator 1", NULL, "SYSCLK" },
+ { "Tone Generator 2", NULL, "SYSCLK" },
+
+ { "Noise Generator", NULL, "NOISE" },
+ { "Tone Generator 1", NULL, "TONE" },
+ { "Tone Generator 2", NULL, "TONE" },
+
+ { "AIF1 Capture", NULL, "AIF1TX1" },
+ { "AIF1 Capture", NULL, "AIF1TX2" },
+ { "AIF1 Capture", NULL, "AIF1TX3" },
+ { "AIF1 Capture", NULL, "AIF1TX4" },
+ { "AIF1 Capture", NULL, "AIF1TX5" },
+ { "AIF1 Capture", NULL, "AIF1TX6" },
+ { "AIF1 Capture", NULL, "AIF1TX7" },
+ { "AIF1 Capture", NULL, "AIF1TX8" },
+
+ { "AIF1RX1", NULL, "AIF1 Playback" },
+ { "AIF1RX2", NULL, "AIF1 Playback" },
+ { "AIF1RX3", NULL, "AIF1 Playback" },
+ { "AIF1RX4", NULL, "AIF1 Playback" },
+ { "AIF1RX5", NULL, "AIF1 Playback" },
+ { "AIF1RX6", NULL, "AIF1 Playback" },
+ { "AIF1RX7", NULL, "AIF1 Playback" },
+ { "AIF1RX8", NULL, "AIF1 Playback" },
+
+ { "AIF2 Capture", NULL, "AIF2TX1" },
+ { "AIF2 Capture", NULL, "AIF2TX2" },
+ { "AIF2 Capture", NULL, "AIF2TX3" },
+ { "AIF2 Capture", NULL, "AIF2TX4" },
+ { "AIF2 Capture", NULL, "AIF2TX5" },
+ { "AIF2 Capture", NULL, "AIF2TX6" },
+ { "AIF2 Capture", NULL, "AIF2TX7" },
+ { "AIF2 Capture", NULL, "AIF2TX8" },
+
+ { "AIF2RX1", NULL, "AIF2 Playback" },
+ { "AIF2RX2", NULL, "AIF2 Playback" },
+ { "AIF2RX3", NULL, "AIF2 Playback" },
+ { "AIF2RX4", NULL, "AIF2 Playback" },
+ { "AIF2RX5", NULL, "AIF2 Playback" },
+ { "AIF2RX6", NULL, "AIF2 Playback" },
+ { "AIF2RX7", NULL, "AIF2 Playback" },
+ { "AIF2RX8", NULL, "AIF2 Playback" },
+
+ { "AIF3 Capture", NULL, "AIF3TX1" },
+ { "AIF3 Capture", NULL, "AIF3TX2" },
+
+ { "AIF3RX1", NULL, "AIF3 Playback" },
+ { "AIF3RX2", NULL, "AIF3 Playback" },
+
+ { "AIF4 Capture", NULL, "AIF4TX1" },
+ { "AIF4 Capture", NULL, "AIF4TX2" },
+
+ { "AIF4RX1", NULL, "AIF4 Playback" },
+ { "AIF4RX2", NULL, "AIF4 Playback" },
+
+ { "Slim1 Capture", NULL, "SLIMTX1" },
+ { "Slim1 Capture", NULL, "SLIMTX2" },
+ { "Slim1 Capture", NULL, "SLIMTX3" },
+ { "Slim1 Capture", NULL, "SLIMTX4" },
+
+ { "SLIMRX1", NULL, "Slim1 Playback" },
+ { "SLIMRX2", NULL, "Slim1 Playback" },
+ { "SLIMRX3", NULL, "Slim1 Playback" },
+ { "SLIMRX4", NULL, "Slim1 Playback" },
+
+ { "Slim2 Capture", NULL, "SLIMTX5" },
+ { "Slim2 Capture", NULL, "SLIMTX6" },
+
+ { "SLIMRX5", NULL, "Slim2 Playback" },
+ { "SLIMRX6", NULL, "Slim2 Playback" },
+
+ { "Slim3 Capture", NULL, "SLIMTX7" },
+ { "Slim3 Capture", NULL, "SLIMTX8" },
+
+ { "SLIMRX7", NULL, "Slim3 Playback" },
+ { "SLIMRX8", NULL, "Slim3 Playback" },
+
+ { "AIF1 Playback", NULL, "SYSCLK" },
+ { "AIF2 Playback", NULL, "SYSCLK" },
+ { "AIF3 Playback", NULL, "SYSCLK" },
+ { "AIF4 Playback", NULL, "SYSCLK" },
+ { "Slim1 Playback", NULL, "SYSCLK" },
+ { "Slim2 Playback", NULL, "SYSCLK" },
+ { "Slim3 Playback", NULL, "SYSCLK" },
+
+ { "AIF1 Capture", NULL, "SYSCLK" },
+ { "AIF2 Capture", NULL, "SYSCLK" },
+ { "AIF3 Capture", NULL, "SYSCLK" },
+ { "AIF4 Capture", NULL, "SYSCLK" },
+ { "Slim1 Capture", NULL, "SYSCLK" },
+ { "Slim2 Capture", NULL, "SYSCLK" },
+ { "Slim3 Capture", NULL, "SYSCLK" },
+
+ { "Voice Control DSP", NULL, "DSP6" },
+
+ { "Audio Trace DSP", NULL, "DSP1" },
+
+ { "IN1L Mux", "A", "IN1AL" },
+ { "IN1L Mux", "B", "IN1BL" },
+ { "IN1R Mux", "A", "IN1AR" },
+ { "IN1R Mux", "B", "IN1BR" },
+
+ { "IN2L Mux", "A", "IN2AL" },
+ { "IN2L Mux", "B", "IN2BL" },
+
+ { "IN1L PGA", NULL, "IN1L Mux" },
+ { "IN1R PGA", NULL, "IN1R Mux" },
+
+ { "IN2L PGA", NULL, "IN2L Mux" },
+ { "IN2R PGA", NULL, "IN2R" },
+
+ { "IN3L PGA", NULL, "IN3L" },
+ { "IN3R PGA", NULL, "IN3R" },
+
+ { "IN4L PGA", NULL, "IN4L" },
+ { "IN4R PGA", NULL, "IN4R" },
+
+ { "IN5L PGA", NULL, "IN5L" },
+ { "IN5R PGA", NULL, "IN5R" },
+
+ MADERA_MIXER_ROUTES("OUT1L", "HPOUT1L"),
+ MADERA_MIXER_ROUTES("OUT1R", "HPOUT1R"),
+ MADERA_MIXER_ROUTES("OUT2L", "HPOUT2L"),
+ MADERA_MIXER_ROUTES("OUT2R", "HPOUT2R"),
+ MADERA_MIXER_ROUTES("OUT3L", "HPOUT3L"),
+ MADERA_MIXER_ROUTES("OUT3R", "HPOUT3R"),
+
+ MADERA_MIXER_ROUTES("OUT5L", "SPKDAT1L"),
+ MADERA_MIXER_ROUTES("OUT5R", "SPKDAT1R"),
+
+ MADERA_MIXER_ROUTES("PWM1 Driver", "PWM1"),
+ MADERA_MIXER_ROUTES("PWM2 Driver", "PWM2"),
+
+ MADERA_MIXER_ROUTES("AIF1TX1", "AIF1TX1"),
+ MADERA_MIXER_ROUTES("AIF1TX2", "AIF1TX2"),
+ MADERA_MIXER_ROUTES("AIF1TX3", "AIF1TX3"),
+ MADERA_MIXER_ROUTES("AIF1TX4", "AIF1TX4"),
+ MADERA_MIXER_ROUTES("AIF1TX5", "AIF1TX5"),
+ MADERA_MIXER_ROUTES("AIF1TX6", "AIF1TX6"),
+ MADERA_MIXER_ROUTES("AIF1TX7", "AIF1TX7"),
+ MADERA_MIXER_ROUTES("AIF1TX8", "AIF1TX8"),
+
+ MADERA_MIXER_ROUTES("AIF2TX1", "AIF2TX1"),
+ MADERA_MIXER_ROUTES("AIF2TX2", "AIF2TX2"),
+ MADERA_MIXER_ROUTES("AIF2TX3", "AIF2TX3"),
+ MADERA_MIXER_ROUTES("AIF2TX4", "AIF2TX4"),
+ MADERA_MIXER_ROUTES("AIF2TX5", "AIF2TX5"),
+ MADERA_MIXER_ROUTES("AIF2TX6", "AIF2TX6"),
+ MADERA_MIXER_ROUTES("AIF2TX7", "AIF2TX7"),
+ MADERA_MIXER_ROUTES("AIF2TX8", "AIF2TX8"),
+
+ MADERA_MIXER_ROUTES("AIF3TX1", "AIF3TX1"),
+ MADERA_MIXER_ROUTES("AIF3TX2", "AIF3TX2"),
+
+ MADERA_MIXER_ROUTES("AIF4TX1", "AIF4TX1"),
+ MADERA_MIXER_ROUTES("AIF4TX2", "AIF4TX2"),
+
+ MADERA_MIXER_ROUTES("SLIMTX1", "SLIMTX1"),
+ MADERA_MIXER_ROUTES("SLIMTX2", "SLIMTX2"),
+ MADERA_MIXER_ROUTES("SLIMTX3", "SLIMTX3"),
+ MADERA_MIXER_ROUTES("SLIMTX4", "SLIMTX4"),
+ MADERA_MIXER_ROUTES("SLIMTX5", "SLIMTX5"),
+ MADERA_MIXER_ROUTES("SLIMTX6", "SLIMTX6"),
+ MADERA_MIXER_ROUTES("SLIMTX7", "SLIMTX7"),
+ MADERA_MIXER_ROUTES("SLIMTX8", "SLIMTX8"),
+
+ MADERA_MUX_ROUTES("SPD1TX1", "SPDIF1TX1"),
+ MADERA_MUX_ROUTES("SPD1TX2", "SPDIF1TX2"),
+
+ MADERA_MIXER_ROUTES("EQ1", "EQ1"),
+ MADERA_MIXER_ROUTES("EQ2", "EQ2"),
+ MADERA_MIXER_ROUTES("EQ3", "EQ3"),
+ MADERA_MIXER_ROUTES("EQ4", "EQ4"),
+
+ MADERA_MIXER_ROUTES("DRC1L", "DRC1L"),
+ MADERA_MIXER_ROUTES("DRC1R", "DRC1R"),
+ MADERA_MIXER_ROUTES("DRC2L", "DRC2L"),
+ MADERA_MIXER_ROUTES("DRC2R", "DRC2R"),
+
+ MADERA_MIXER_ROUTES("LHPF1", "LHPF1"),
+ MADERA_MIXER_ROUTES("LHPF2", "LHPF2"),
+ MADERA_MIXER_ROUTES("LHPF3", "LHPF3"),
+ MADERA_MIXER_ROUTES("LHPF4", "LHPF4"),
+
+ MADERA_MUX_ROUTES("ASRC1IN1L", "ASRC1IN1L"),
+ MADERA_MUX_ROUTES("ASRC1IN1R", "ASRC1IN1R"),
+ MADERA_MUX_ROUTES("ASRC1IN2L", "ASRC1IN2L"),
+ MADERA_MUX_ROUTES("ASRC1IN2R", "ASRC1IN2R"),
+ MADERA_MUX_ROUTES("ASRC2IN1L", "ASRC2IN1L"),
+ MADERA_MUX_ROUTES("ASRC2IN1R", "ASRC2IN1R"),
+ MADERA_MUX_ROUTES("ASRC2IN2L", "ASRC2IN2L"),
+ MADERA_MUX_ROUTES("ASRC2IN2R", "ASRC2IN2R"),
+
+ MADERA_DSP_ROUTES("DSP1"),
+ MADERA_DSP_ROUTES("DSP2"),
+ MADERA_DSP_ROUTES("DSP3"),
+ MADERA_DSP_ROUTES("DSP4"),
+ MADERA_DSP_ROUTES("DSP5"),
+ MADERA_DSP_ROUTES("DSP6"),
+ MADERA_DSP_ROUTES("DSP7"),
+
+ { "DSP Trigger Out", NULL, "DSP1 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP2 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP3 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP4 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP5 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP6 Trigger Output" },
+ { "DSP Trigger Out", NULL, "DSP7 Trigger Output" },
+
+ { "DSP1 Trigger Output", "Switch", "DSP1" },
+ { "DSP2 Trigger Output", "Switch", "DSP2" },
+ { "DSP3 Trigger Output", "Switch", "DSP3" },
+ { "DSP4 Trigger Output", "Switch", "DSP4" },
+ { "DSP5 Trigger Output", "Switch", "DSP5" },
+ { "DSP6 Trigger Output", "Switch", "DSP6" },
+ { "DSP7 Trigger Output", "Switch", "DSP7" },
+
+ MADERA_MUX_ROUTES("ISRC1INT1", "ISRC1INT1"),
+ MADERA_MUX_ROUTES("ISRC1INT2", "ISRC1INT2"),
+ MADERA_MUX_ROUTES("ISRC1INT3", "ISRC1INT3"),
+ MADERA_MUX_ROUTES("ISRC1INT4", "ISRC1INT4"),
+
+ MADERA_MUX_ROUTES("ISRC1DEC1", "ISRC1DEC1"),
+ MADERA_MUX_ROUTES("ISRC1DEC2", "ISRC1DEC2"),
+ MADERA_MUX_ROUTES("ISRC1DEC3", "ISRC1DEC3"),
+ MADERA_MUX_ROUTES("ISRC1DEC4", "ISRC1DEC4"),
+
+ MADERA_MUX_ROUTES("ISRC2INT1", "ISRC2INT1"),
+ MADERA_MUX_ROUTES("ISRC2INT2", "ISRC2INT2"),
+ MADERA_MUX_ROUTES("ISRC2INT3", "ISRC2INT3"),
+ MADERA_MUX_ROUTES("ISRC2INT4", "ISRC2INT4"),
+
+ MADERA_MUX_ROUTES("ISRC2DEC1", "ISRC2DEC1"),
+ MADERA_MUX_ROUTES("ISRC2DEC2", "ISRC2DEC2"),
+ MADERA_MUX_ROUTES("ISRC2DEC3", "ISRC2DEC3"),
+ MADERA_MUX_ROUTES("ISRC2DEC4", "ISRC2DEC4"),
+
+ MADERA_MUX_ROUTES("ISRC3INT1", "ISRC3INT1"),
+ MADERA_MUX_ROUTES("ISRC3INT2", "ISRC3INT2"),
+
+ MADERA_MUX_ROUTES("ISRC3DEC1", "ISRC3DEC1"),
+ MADERA_MUX_ROUTES("ISRC3DEC2", "ISRC3DEC2"),
+
+ MADERA_MUX_ROUTES("ISRC4INT1", "ISRC4INT1"),
+ MADERA_MUX_ROUTES("ISRC4INT2", "ISRC4INT2"),
+
+ MADERA_MUX_ROUTES("ISRC4DEC1", "ISRC4DEC1"),
+ MADERA_MUX_ROUTES("ISRC4DEC2", "ISRC4DEC2"),
+
+ { "AEC1 Loopback", "HPOUT1L", "OUT1L" },
+ { "AEC1 Loopback", "HPOUT1R", "OUT1R" },
+ { "HPOUT1L", NULL, "OUT1L" },
+ { "HPOUT1R", NULL, "OUT1R" },
+
+ { "AEC1 Loopback", "HPOUT2L", "OUT2L" },
+ { "AEC1 Loopback", "HPOUT2R", "OUT2R" },
+ { "HPOUT2L", NULL, "OUT2L" },
+ { "HPOUT2R", NULL, "OUT2R" },
+
+ { "AEC1 Loopback", "HPOUT3L", "OUT3L" },
+ { "AEC1 Loopback", "HPOUT3R", "OUT3R" },
+ { "HPOUT3L", NULL, "OUT3L" },
+ { "HPOUT3R", NULL, "OUT3R" },
+
+ { "AEC1 Loopback", "SPKDAT1L", "OUT5L" },
+ { "AEC1 Loopback", "SPKDAT1R", "OUT5R" },
+ { "SPKDAT1L", NULL, "OUT5L" },
+ { "SPKDAT1R", NULL, "OUT5R" },
+
+ CS47L90_RXANC_INPUT_ROUTES("RXANCL", "RXANCL"),
+ CS47L90_RXANC_INPUT_ROUTES("RXANCR", "RXANCR"),
+
+ CS47L90_RXANC_OUTPUT_ROUTES("OUT1L", "HPOUT1L"),
+ CS47L90_RXANC_OUTPUT_ROUTES("OUT1R", "HPOUT1R"),
+ CS47L90_RXANC_OUTPUT_ROUTES("OUT2L", "HPOUT2L"),
+ CS47L90_RXANC_OUTPUT_ROUTES("OUT2R", "HPOUT2R"),
+ CS47L90_RXANC_OUTPUT_ROUTES("OUT3L", "HPOUT3L"),
+ CS47L90_RXANC_OUTPUT_ROUTES("OUT3R", "HPOUT3R"),
+ CS47L90_RXANC_OUTPUT_ROUTES("OUT5L", "SPKDAT1L"),
+ CS47L90_RXANC_OUTPUT_ROUTES("OUT5R", "SPKDAT1R"),
+
+ { "SPDIF1", NULL, "SPD1" },
+
+ { "MICSUPP", NULL, "SYSCLK" },
+
+ { "DRC1 Signal Activity", NULL, "DRC1 Activity Output" },
+ { "DRC2 Signal Activity", NULL, "DRC2 Activity Output" },
+ { "DRC1 Activity Output", "Switch", "DRC1L" },
+ { "DRC1 Activity Output", "Switch", "DRC1R" },
+ { "DRC2 Activity Output", "Switch", "DRC2L" },
+ { "DRC2 Activity Output", "Switch", "DRC2R" },
+
+ MADERA_MUX_ROUTES("DFC1", "DFC1"),
+ MADERA_MUX_ROUTES("DFC2", "DFC2"),
+ MADERA_MUX_ROUTES("DFC3", "DFC3"),
+ MADERA_MUX_ROUTES("DFC4", "DFC4"),
+ MADERA_MUX_ROUTES("DFC5", "DFC5"),
+ MADERA_MUX_ROUTES("DFC6", "DFC6"),
+ MADERA_MUX_ROUTES("DFC7", "DFC7"),
+ MADERA_MUX_ROUTES("DFC8", "DFC8"),
+};
+
+static int cs47l90_set_fll(struct snd_soc_codec *codec, int fll_id, int source,
+ unsigned int Fref, unsigned int Fout)
+{
+ struct cs47l90 *cs47l90 = snd_soc_codec_get_drvdata(codec);
+
+ switch (fll_id) {
+ case MADERA_FLL1_REFCLK:
+ return madera_set_fll_refclk(&cs47l90->fll[0], source, Fref,
+ Fout);
+ case MADERA_FLL2_REFCLK:
+ return madera_set_fll_refclk(&cs47l90->fll[1], source, Fref,
+ Fout);
+ case MADERA_FLLAO_REFCLK:
+ return madera_set_fll_ao_refclk(&cs47l90->fll[2], source, Fref,
+ Fout);
+ case MADERA_FLL1_SYNCCLK:
+ return madera_set_fll_syncclk(&cs47l90->fll[0], source, Fref,
+ Fout);
+ case MADERA_FLL2_SYNCCLK:
+ return madera_set_fll_syncclk(&cs47l90->fll[1], source, Fref,
+ Fout);
+ default:
+ return -EINVAL;
+ }
+}
+
+static struct snd_soc_dai_driver cs47l90_dai[] = {
+ {
+ .name = "cs47l90-aif1",
+ .id = 1,
+ .base = MADERA_AIF1_BCLK_CTRL,
+ .playback = {
+ .stream_name = "AIF1 Playback",
+ .channels_min = 1,
+ .channels_max = 8,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "AIF1 Capture",
+ .channels_min = 1,
+ .channels_max = 8,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_dai_ops,
+ .symmetric_rates = 1,
+ .symmetric_samplebits = 1,
+ },
+ {
+ .name = "cs47l90-aif2",
+ .id = 2,
+ .base = MADERA_AIF2_BCLK_CTRL,
+ .playback = {
+ .stream_name = "AIF2 Playback",
+ .channels_min = 1,
+ .channels_max = 8,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "AIF2 Capture",
+ .channels_min = 1,
+ .channels_max = 8,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_dai_ops,
+ .symmetric_rates = 1,
+ .symmetric_samplebits = 1,
+ },
+ {
+ .name = "cs47l90-aif3",
+ .id = 3,
+ .base = MADERA_AIF3_BCLK_CTRL,
+ .playback = {
+ .stream_name = "AIF3 Playback",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "AIF3 Capture",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_dai_ops,
+ .symmetric_rates = 1,
+ .symmetric_samplebits = 1,
+ },
+ {
+ .name = "cs47l90-aif4",
+ .id = 4,
+ .base = MADERA_AIF4_BCLK_CTRL,
+ .playback = {
+ .stream_name = "AIF4 Playback",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "AIF4 Capture",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_dai_ops,
+ .symmetric_rates = 1,
+ .symmetric_samplebits = 1,
+ },
+ {
+ .name = "cs47l90-slim1",
+ .id = 5,
+ .playback = {
+ .stream_name = "Slim1 Playback",
+ .channels_min = 1,
+ .channels_max = 4,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "Slim1 Capture",
+ .channels_min = 1,
+ .channels_max = 4,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_simple_dai_ops,
+ },
+ {
+ .name = "cs47l90-slim2",
+ .id = 6,
+ .playback = {
+ .stream_name = "Slim2 Playback",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "Slim2 Capture",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_simple_dai_ops,
+ },
+ {
+ .name = "cs47l90-slim3",
+ .id = 7,
+ .playback = {
+ .stream_name = "Slim3 Playback",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .capture = {
+ .stream_name = "Slim3 Capture",
+ .channels_min = 1,
+ .channels_max = 2,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .ops = &madera_simple_dai_ops,
+ },
+ {
+ .name = "cs47l90-cpu-voicectrl",
+ .capture = {
+ .stream_name = "Voice Control CPU",
+ .channels_min = 1,
+ .channels_max = 1,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .compress_new = snd_soc_new_compress,
+ },
+ {
+ .name = "cs47l90-dsp-voicectrl",
+ .capture = {
+ .stream_name = "Voice Control DSP",
+ .channels_min = 1,
+ .channels_max = 1,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ },
+ {
+ .name = "cs47l90-cpu-trace",
+ .capture = {
+ .stream_name = "Audio Trace CPU",
+ .channels_min = 1,
+ .channels_max = 6,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ .compress_new = snd_soc_new_compress,
+ },
+ {
+ .name = "cs47l90-dsp-trace",
+ .capture = {
+ .stream_name = "Audio Trace DSP",
+ .channels_min = 1,
+ .channels_max = 6,
+ .rates = MADERA_RATES,
+ .formats = MADERA_FORMATS,
+ },
+ },
+};
+
+static int cs47l90_open(struct snd_compr_stream *stream)
+{
+ struct snd_soc_pcm_runtime *rtd = stream->private_data;
+ struct cs47l90 *cs47l90 = snd_soc_platform_get_drvdata(rtd->platform);
+ struct madera_priv *priv = &cs47l90->core;
+ struct madera *madera = priv->madera;
+ int n_adsp;
+
+ if (strcmp(rtd->codec_dai->name, "cs47l90-dsp-voicectrl") == 0) {
+ n_adsp = 5;
+ } else if (strcmp(rtd->codec_dai->name, "cs47l90-dsp-trace") == 0) {
+ n_adsp = 0;
+ } else {
+ dev_err(madera->dev,
+ "No suitable compressed stream for DAI '%s'\n",
+ rtd->codec_dai->name);
+ return -EINVAL;
+ }
+
+ return wm_adsp_compr_open(&priv->adsp[n_adsp], stream);
+}
+
+static irqreturn_t cs47l90_adsp2_irq(int irq, void *data)
+{
+ struct cs47l90 *cs47l90 = data;
+ struct madera_priv *priv = &cs47l90->core;
+ struct madera *madera = priv->madera;
+ struct madera_voice_trigger_info trig_info;
+ int serviced = 0;
+ int i, ret;
+
+ for (i = 0; i < CS47L90_NUM_ADSP; ++i) {
+ ret = wm_adsp_compr_handle_irq(&priv->adsp[i]);
+ if (ret != -ENODEV)
+ serviced++;
+ if (ret == WM_ADSP_COMPR_VOICE_TRIGGER) {
+ trig_info.core_num = i + 1;
+ madera_call_notifiers(madera,
+ MADERA_NOTIFY_VOICE_TRIGGER,
+ &trig_info);
+ }
+ }
+
+ if (!serviced) {
+ dev_err(madera->dev, "Spurious compressed data IRQ\n");
+ return IRQ_NONE;
+ }
+
+ return IRQ_HANDLED;
+}
+
+static irqreturn_t cs47l90_dsp_bus_error(int irq, void *data)
+{
+ struct wm_adsp *dsp = (struct wm_adsp *)data;
+
+ return wm_adsp2_bus_error(dsp);
+}
+
+static const char * const cs47l90_dmic_refs[] = {
+ "MICVDD",
+ "MICBIAS1",
+ "MICBIAS2",
+ "MICBIAS3",
+};
+
+static const char * const cs47l90_dmic_inputs[] = {
+ "IN1L Mux",
+ "IN1R Mux",
+ "IN2L Mux",
+ "IN2R",
+ "IN3L",
+ "IN3R",
+ "IN4L",
+ "IN4R",
+ "IN5L",
+ "IN5R",
+};
+
+static int cs47l90_codec_probe(struct snd_soc_codec *codec)
+{
+ struct cs47l90 *cs47l90 = snd_soc_codec_get_drvdata(codec);
+ struct madera *madera = cs47l90->core.madera;
+ int ret, i;
+
+ madera->dapm = snd_soc_codec_get_dapm(codec);
+
+ ret = madera_init_inputs(codec,
+ cs47l90_dmic_inputs,
+ ARRAY_SIZE(cs47l90_dmic_inputs),
+ cs47l90_dmic_refs,
+ ARRAY_SIZE(cs47l90_dmic_refs));
+ if (ret)
+ return ret;
+
+ ret = madera_init_outputs(codec, CS47L90_MONO_OUTPUTS);
+ if (ret)
+ return ret;
+
+ snd_soc_component_disable_pin(snd_soc_dapm_to_component(madera->dapm),
+ "HAPTICS");
+
+ ret = snd_soc_add_codec_controls(codec, madera_adsp_rate_controls,
+ CS47L90_NUM_ADSP);
+ if (ret)
+ return ret;
+
+ for (i = 0; i < CS47L90_NUM_ADSP; i++)
+ wm_adsp2_codec_probe(&cs47l90->core.adsp[i], codec);
+
+ return 0;
+}
+
+static int cs47l90_codec_remove(struct snd_soc_codec *codec)
+{
+ int i;
+ struct cs47l90 *cs47l90 = snd_soc_codec_get_drvdata(codec);
+
+ for (i = 0; i < CS47L90_NUM_ADSP; i++) {
+ wm_adsp2_codec_remove(&cs47l90->core.adsp[i], codec);
+ madera_destroy_bus_error_irq(&cs47l90->core, i);
+ }
+
+ cs47l90->core.madera->dapm = NULL;
+
+ return 0;
+}
+
+#define CS47L90_DIG_VU 0x0200
+
+static unsigned int cs47l90_digital_vu[] = {
+ MADERA_DAC_DIGITAL_VOLUME_1L,
+ MADERA_DAC_DIGITAL_VOLUME_1R,
+ MADERA_DAC_DIGITAL_VOLUME_2L,
+ MADERA_DAC_DIGITAL_VOLUME_2R,
+ MADERA_DAC_DIGITAL_VOLUME_3L,
+ MADERA_DAC_DIGITAL_VOLUME_3R,
+ MADERA_DAC_DIGITAL_VOLUME_5L,
+ MADERA_DAC_DIGITAL_VOLUME_5R,
+};
+
+static struct regmap *cs47l90_get_regmap(struct device *dev)
+{
+ struct cs47l90 *cs47l90 = dev_get_drvdata(dev);
+
+ return cs47l90->core.madera->regmap;
+}
+
+static struct snd_soc_codec_driver soc_codec_dev_cs47l90 = {
+ .probe = cs47l90_codec_probe,
+ .remove = cs47l90_codec_remove,
+ .get_regmap = cs47l90_get_regmap,
+
+ .idle_bias_off = true,
+
+ .set_sysclk = madera_set_sysclk,
+ .set_pll = cs47l90_set_fll,
+
+ .component_driver = {
+ .controls = cs47l90_snd_controls,
+ .num_controls = ARRAY_SIZE(cs47l90_snd_controls),
+ .dapm_widgets = cs47l90_dapm_widgets,
+ .num_dapm_widgets = ARRAY_SIZE(cs47l90_dapm_widgets),
+ .dapm_routes = cs47l90_dapm_routes,
+ .num_dapm_routes = ARRAY_SIZE(cs47l90_dapm_routes),
+ },
+};
+
+static struct snd_compr_ops cs47l90_compr_ops = {
+ .open = cs47l90_open,
+ .free = wm_adsp_compr_free,
+ .set_params = wm_adsp_compr_set_params,
+ .get_caps = wm_adsp_compr_get_caps,
+ .trigger = wm_adsp_compr_trigger,
+ .pointer = wm_adsp_compr_pointer,
+ .copy = wm_adsp_compr_copy,
+};
+
+static struct snd_soc_platform_driver cs47l90_compr_platform = {
+ .compr_ops = &cs47l90_compr_ops,
+};
+
+static int cs47l90_probe(struct platform_device *pdev)
+{
+ struct madera *madera = dev_get_drvdata(pdev->dev.parent);
+ struct cs47l90 *cs47l90;
+ int i, ret;
+
+ BUILD_BUG_ON(ARRAY_SIZE(cs47l90_dai) > MADERA_MAX_DAI);
+
+ /* quick exit if Madera irqchip driver hasn't completed probe */
+ if (!madera->irq_dev) {
+ dev_dbg(&pdev->dev, "irqchip driver not ready\n");
+ return -EPROBE_DEFER;
+ }
+
+ cs47l90 = devm_kzalloc(&pdev->dev, sizeof(struct cs47l90),
+ GFP_KERNEL);
+ if (!cs47l90)
+ return -ENOMEM;
+
+ platform_set_drvdata(pdev, cs47l90);
+
+ cs47l90->core.madera = madera;
+ cs47l90->core.dev = &pdev->dev;
+ cs47l90->core.num_inputs = 10;
+
+ ret = madera_core_init(&cs47l90->core);
+ if (ret)
+ return ret;
+
+ ret = madera_request_irq(madera, MADERA_IRQ_DSP_IRQ1,
+ "ADSP2 Compressed IRQ", cs47l90_adsp2_irq,
+ cs47l90);
+ if (ret != 0) {
+ dev_err(&pdev->dev, "Failed to request DSP IRQ: %d\n", ret);
+ return ret;
+ }
+
+ for (i = 0; i < CS47L90_NUM_ADSP; i++) {
+ cs47l90->core.adsp[i].part = "cs47l90";
+ cs47l90->core.adsp[i].num = i + 1;
+ cs47l90->core.adsp[i].type = WMFW_ADSP2;
+ cs47l90->core.adsp[i].rev = 2;
+ cs47l90->core.adsp[i].dev = madera->dev;
+ cs47l90->core.adsp[i].regmap = madera->regmap_32bit;
+
+ cs47l90->core.adsp[i].base = cs47l90_dsp_control_bases[i];
+ cs47l90->core.adsp[i].mem = cs47l90_dsp_regions[i];
+ cs47l90->core.adsp[i].num_mems
+ = ARRAY_SIZE(cs47l90_dsp1_regions);
+
+ cs47l90->core.adsp[i].lock_regions = WM_ADSP2_REGION_1_9;
+
+ ret = wm_adsp2_init(&cs47l90->core.adsp[i]);
+
+ if (ret == 0) {
+ ret = madera_init_bus_error_irq(&cs47l90->core,
+ i,
+ cs47l90_dsp_bus_error);
+ if (ret != 0)
+ wm_adsp2_remove(&cs47l90->core.adsp[i]);
+ }
+
+ if (ret != 0) {
+ for (--i; i >= 0; --i) {
+ madera_destroy_bus_error_irq(&cs47l90->core, i);
+ wm_adsp2_remove(&cs47l90->core.adsp[i]);
+ }
+ goto error_core;
+ }
+ }
+
+ madera_init_fll(madera, 1, MADERA_FLL1_CONTROL_1 - 1,
+ &cs47l90->fll[0]);
+ madera_init_fll(madera, 2, MADERA_FLL2_CONTROL_1 - 1,
+ &cs47l90->fll[1]);
+ madera_init_fll(madera, 4, MADERA_FLLAO_CONTROL_1 - 1,
+ &cs47l90->fll[2]);
+
+ for (i = 0; i < ARRAY_SIZE(cs47l90_dai); i++)
+ madera_init_dai(&cs47l90->core, i);
+
+ /* Latch volume update bits */
+ for (i = 0; i < ARRAY_SIZE(cs47l90_digital_vu); i++)
+ regmap_update_bits(madera->regmap, cs47l90_digital_vu[i],
+ CS47L90_DIG_VU, CS47L90_DIG_VU);
+
+ pm_runtime_enable(&pdev->dev);
+ pm_runtime_idle(&pdev->dev);
+
+ ret = snd_soc_register_platform(&pdev->dev, &cs47l90_compr_platform);
+ if (ret < 0) {
+ dev_err(&pdev->dev, "Failed to register platform: %d\n", ret);
+ goto error;
+ }
+
+ ret = snd_soc_register_codec(&pdev->dev, &soc_codec_dev_cs47l90,
+ cs47l90_dai, ARRAY_SIZE(cs47l90_dai));
+ if (ret < 0) {
+ dev_err(&pdev->dev,
+ "Failed to register codec: %d\n", ret);
+ snd_soc_unregister_platform(&pdev->dev);
+ goto error;
+ }
+
+ return ret;
+
+error:
+ for (i = 0; i < CS47L90_NUM_ADSP; i++) {
+ madera_destroy_bus_error_irq(&cs47l90->core, i);
+ wm_adsp2_remove(&cs47l90->core.adsp[i]);
+ }
+
+error_core:
+ madera_free_irq(madera, MADERA_IRQ_DSP_IRQ1, cs47l90);
+ madera_core_destroy(&cs47l90->core);
+
+ return ret;
+}
+
+static int cs47l90_remove(struct platform_device *pdev)
+{
+ struct cs47l90 *cs47l90 = platform_get_drvdata(pdev);
+ int i;
+
+ snd_soc_unregister_platform(&pdev->dev);
+ snd_soc_unregister_codec(&pdev->dev);
+ pm_runtime_disable(&pdev->dev);
+
+ for (i = 0; i < CS47L90_NUM_ADSP; i++) {
+ madera_destroy_bus_error_irq(&cs47l90->core, i);
+ wm_adsp2_remove(&cs47l90->core.adsp[i]);
+ }
+
+ madera_free_irq(cs47l90->core.madera, MADERA_IRQ_DSP_IRQ1, cs47l90);
+ madera_core_destroy(&cs47l90->core);
+
+ return 0;
+}
+
+static struct platform_driver cs47l90_codec_driver = {
+ .driver = {
+ .name = "cs47l90-codec",
+ },
+ .probe = cs47l90_probe,
+ .remove = cs47l90_remove,
+};
+
+module_platform_driver(cs47l90_codec_driver);
+
+MODULE_DESCRIPTION("ASoC CS47L90 driver");
+MODULE_AUTHOR("Nikesh Oswal <[email protected]>");
+MODULE_LICENSE("GPL v2");
+MODULE_ALIAS("platform:cs47l90-codec");
--
1.9.1
Regmap configuration tables for Cirrus Logic CS47L90 and CS47L91 codecs.
Signed-off-by: Nikesh Oswal <[email protected]>
Signed-off-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
---
drivers/mfd/Kconfig | 6 +
drivers/mfd/Makefile | 3 +
drivers/mfd/cs47l90-tables.c | 2830 ++++++++++++++++++++++++++++++++++++++++++
3 files changed, 2839 insertions(+)
create mode 100644 drivers/mfd/cs47l90-tables.c
diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
index 6618972..f7cb99c 100644
--- a/drivers/mfd/Kconfig
+++ b/drivers/mfd/Kconfig
@@ -238,6 +238,12 @@ config MFD_CS47L85
help
Support for Cirrus Logic CS47L85 Smart Codec
+config MFD_CS47L90
+ bool "Cirrus Logic CS47L90/91"
+ depends on MFD_MADERA
+ help
+ Support for Cirrus Logic CS47L90 and CS47L91 Smart Codecs
+
config MFD_ASIC3
bool "Compaq ASIC3"
depends on GPIOLIB && ARM
diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
index 9fdca9a..542da6d 100644
--- a/drivers/mfd/Makefile
+++ b/drivers/mfd/Makefile
@@ -79,6 +79,9 @@ endif
ifeq ($(CONFIG_MFD_CS47L85),y)
obj-$(CONFIG_MFD_MADERA) += cs47l85-tables.o
endif
+ifeq ($(CONFIG_MFD_CS47L90),y)
+obj-$(CONFIG_MFD_MADERA) += cs47l90-tables.o
+endif
obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o
obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
diff --git a/drivers/mfd/cs47l90-tables.c b/drivers/mfd/cs47l90-tables.c
new file mode 100644
index 0000000..52ce50f
--- /dev/null
+++ b/drivers/mfd/cs47l90-tables.c
@@ -0,0 +1,2830 @@
+/*
+ * Regmap tables for CS47L90 codec
+ *
+ * Copyright 2015-2016 Cirrus Logic
+ *
+ * Author: Nikesh Oswal <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/device.h>
+#include <linux/module.h>
+#include <linux/regmap.h>
+
+#include <linux/mfd/madera/core.h>
+#include <linux/mfd/madera/registers.h>
+
+#include "madera.h"
+
+static const struct reg_sequence cs47l90_reva_16_patch[] = {
+ { 0x8A, 0x5555 },
+ { 0x8A, 0xAAAA },
+ { 0x4CF, 0x0700 },
+ { 0x171, 0x0003 },
+ { 0x101, 0x0444 },
+ { 0x159, 0x0002 },
+ { 0x120, 0x0444 },
+ { 0x1D1, 0x0004 },
+ { 0x1E0, 0xC084 },
+ { 0x159, 0x0000 },
+ { 0x120, 0x0404 },
+ { 0x101, 0x0404 },
+ { 0x171, 0x0002 },
+ { 0x17A, 0x2906 },
+ { 0x19A, 0x2906 },
+ { 0x441, 0xC750 },
+ { 0x340, 0x0001 },
+ { 0x112, 0x0405 },
+ { 0x124, 0x0C49 },
+ { 0x1300, 0x050E },
+ { 0x1302, 0x0101 },
+ { 0x1380, 0x0425 },
+ { 0x1381, 0xF6D8 },
+ { 0x1382, 0x0632 },
+ { 0x1383, 0xFEC8 },
+ { 0x1390, 0x042F },
+ { 0x1391, 0xF6CA },
+ { 0x1392, 0x0637 },
+ { 0x1393, 0xFEC8 },
+ { 0x281, 0x0000 },
+ { 0x282, 0x0000 },
+ { 0x4EA, 0x0100 },
+ { 0x8A, 0xCCCC },
+ { 0x8A, 0x3333 },
+};
+
+int cs47l90_patch(struct madera *madera)
+{
+ int ret;
+
+ ret = regmap_register_patch(madera->regmap,
+ cs47l90_reva_16_patch,
+ ARRAY_SIZE(cs47l90_reva_16_patch));
+ if (ret < 0) {
+ dev_err(madera->dev,
+ "Error in applying 16-bit patch: %d\n", ret);
+ return ret;
+ }
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(cs47l90_patch);
+
+static const struct reg_default cs47l90_reg_default[] = {
+ { 0x00000020, 0x0000 }, /* R32 (0x20) - Tone Generator 1 */
+ { 0x00000021, 0x1000 }, /* R33 (0x21) - Tone Generator 2 */
+ { 0x00000022, 0x0000 }, /* R34 (0x22) - Tone Generator 3 */
+ { 0x00000023, 0x1000 }, /* R35 (0x23) - Tone Generator 4 */
+ { 0x00000024, 0x0000 }, /* R36 (0x24) - Tone Generator 5 */
+ { 0x00000030, 0x0000 }, /* R48 (0x30) - PWM Drive 1 */
+ { 0x00000031, 0x0100 }, /* R49 (0x31) - PWM Drive 2 */
+ { 0x00000032, 0x0100 }, /* R50 (0x32) - PWM Drive 3 */
+ { 0x00000061, 0x01ff }, /* R97 (0x61) - Sample Rate Sequence Select 1 */
+ { 0x00000062, 0x01ff }, /* R98 (0x62) - Sample Rate Sequence Select 2 */
+ { 0x00000063, 0x01ff }, /* R99 (0x63) - Sample Rate Sequence Select 3 */
+ { 0x00000064, 0x01ff }, /* R100 (0x64) - Sample Rate Sequence Select 4 */
+ { 0x00000066, 0x01ff }, /* R102 (0x66) - Always On Triggers Sequence Select 1 */
+ { 0x00000067, 0x01ff }, /* R103 (0x67) - Always On Triggers Sequence Select 2 */
+ { 0x00000090, 0x0000 }, /* R144 (0x90) - Haptics Control 1 */
+ { 0x00000091, 0x7fff }, /* R145 (0x91) - Haptics Control 2 */
+ { 0x00000092, 0x0000 }, /* R146 (0x92) - Haptics phase 1 intensity */
+ { 0x00000093, 0x0000 }, /* R147 (0x93) - Haptics phase 1 duration */
+ { 0x00000094, 0x0000 }, /* R148 (0x94) - Haptics phase 2 intensity */
+ { 0x00000095, 0x0000 }, /* R149 (0x95) - Haptics phase 2 duration */
+ { 0x00000096, 0x0000 }, /* R150 (0x96) - Haptics phase 3 intensity */
+ { 0x00000097, 0x0000 }, /* R151 (0x97) - Haptics phase 3 duration */
+ { 0x000000a0, 0x0000 }, /* R160 (0xa0) - Comfort Noise Generator */
+ { 0x00000100, 0x0002 }, /* R256 (0x100) - Clock 32k 1 */
+ { 0x00000101, 0x0404 }, /* R257 (0x101) - System Clock 1 */
+ { 0x00000102, 0x0011 }, /* R258 (0x102) - Sample rate 1 */
+ { 0x00000103, 0x0011 }, /* R259 (0x103) - Sample rate 2 */
+ { 0x00000104, 0x0011 }, /* R260 (0x104) - Sample rate 3 */
+ { 0x00000112, 0x0405 }, /* R274 (0x112) - Async clock 1 */
+ { 0x00000113, 0x0011 }, /* R275 (0x113) - Async sample rate 1 */
+ { 0x00000114, 0x0011 }, /* R276 (0x114) - Async sample rate 2 */
+ { 0x00000120, 0x0404 }, /* R288 (0x120) - DSP Clock 1 */
+ { 0x00000122, 0x0000 }, /* R290 (0x122) - DSP Clock 2 */
+ { 0x00000149, 0x0000 }, /* R329 (0x149) - Output system clock */
+ { 0x0000014a, 0x0000 }, /* R330 (0x14a) - Output async clock */
+ { 0x00000152, 0x0000 }, /* R338 (0x152) - Rate Estimator 1 */
+ { 0x00000153, 0x0000 }, /* R339 (0x153) - Rate Estimator 2 */
+ { 0x00000154, 0x0000 }, /* R340 (0x154) - Rate Estimator 3 */
+ { 0x00000155, 0x0000 }, /* R341 (0x155) - Rate Estimator 4 */
+ { 0x00000156, 0x0000 }, /* R342 (0x156) - Rate Estimator 5 */
+ { 0x00000171, 0x0002 }, /* R369 (0x171) - FLL1 Control 1 */
+ { 0x00000172, 0x0008 }, /* R370 (0x172) - FLL1 Control 2 */
+ { 0x00000173, 0x0018 }, /* R371 (0x173) - FLL1 Control 3 */
+ { 0x00000174, 0x007d }, /* R372 (0x174) - FLL1 Control 4 */
+ { 0x00000175, 0x0000 }, /* R373 (0x175) - FLL1 Control 5 */
+ { 0x00000176, 0x0000 }, /* R374 (0x176) - FLL1 Control 6 */
+ { 0x00000177, 0x0281 }, /* R375 (0x177) - FLL1 Loop Filter Test 1 */
+ { 0x00000179, 0x0000 }, /* R377 (0x179) - FLL1 Control 7 */
+ { 0x0000017a, 0x2906 }, /* R377 (0x17a) - FLL1 Efs 2 */
+ { 0x00000181, 0x0000 }, /* R385 (0x181) - FLL1 Synchroniser 1 */
+ { 0x00000182, 0x0000 }, /* R386 (0x182) - FLL1 Synchroniser 2 */
+ { 0x00000183, 0x0000 }, /* R387 (0x183) - FLL1 Synchroniser 3 */
+ { 0x00000184, 0x0000 }, /* R388 (0x184) - FLL1 Synchroniser 4 */
+ { 0x00000185, 0x0000 }, /* R389 (0x185) - FLL1 Synchroniser 5 */
+ { 0x00000186, 0x0000 }, /* R390 (0x186) - FLL1 Synchroniser 6 */
+ { 0x00000187, 0x0001 }, /* R391 (0x187) - FLL1 Synchroniser 7 */
+ { 0x00000189, 0x0000 }, /* R393 (0x189) - FLL1 Spread Spectrum */
+ { 0x0000018a, 0x0004 }, /* R394 (0x18a) - FLL1 GPIO Clock */
+ { 0x00000191, 0x0002 }, /* R401 (0x191) - FLL2 Control 1 */
+ { 0x00000192, 0x0008 }, /* R402 (0x192) - FLL2 Control 2 */
+ { 0x00000193, 0x0018 }, /* R403 (0x193) - FLL2 Control 3 */
+ { 0x00000194, 0x007d }, /* R404 (0x194) - FLL2 Control 4 */
+ { 0x00000195, 0x0000 }, /* R405 (0x195) - FLL2 Control 5 */
+ { 0x00000196, 0x0000 }, /* R406 (0x196) - FLL2 Control 6 */
+ { 0x00000197, 0x0281 }, /* R407 (0x197) - FLL2 Loop Filter Test 1 */
+ { 0x00000199, 0x0000 }, /* R409 (0x199) - FLL2 Control 7 */
+ { 0x0000019a, 0x2906 }, /* R410 (0x19a) - FLL2 Efs 2 */
+ { 0x000001a1, 0x0000 }, /* R417 (0x1a1) - FLL2 Synchroniser 1 */
+ { 0x000001a2, 0x0000 }, /* R418 (0x1a2) - FLL2 Synchroniser 2 */
+ { 0x000001a3, 0x0000 }, /* R419 (0x1a3) - FLL2 Synchroniser 3 */
+ { 0x000001a4, 0x0000 }, /* R420 (0x1a4) - FLL2 Synchroniser 4 */
+ { 0x000001a5, 0x0000 }, /* R421 (0x1a5) - FLL2 Synchroniser 5 */
+ { 0x000001a6, 0x0000 }, /* R422 (0x1a6) - FLL2 Synchroniser 6 */
+ { 0x000001a7, 0x0001 }, /* R423 (0x1a7) - FLL2 Synchroniser 7 */
+ { 0x000001a9, 0x0000 }, /* R425 (0x1a9) - FLL2 Spread Spectrum */
+ { 0x000001aa, 0x0004 }, /* R426 (0x1aa) - FLL2 GPIO Clock */
+ { 0x000001d1, 0x0004 }, /* R465 (0x1d1) - FLLAO_CONTROL_1 */
+ { 0x000001d2, 0x0004 }, /* R466 (0x1d2) - FLLAO_CONTROL_2 */
+ { 0x000001d3, 0x0000 }, /* R467 (0x1d3) - FLLAO_CONTROL_3 */
+ { 0x000001d4, 0x0000 }, /* R468 (0x1d4) - FLLAO_CONTROL_4 */
+ { 0x000001d5, 0x0001 }, /* R469 (0x1d5) - FLLAO_CONTROL_5 */
+ { 0x000001d6, 0x8004 }, /* R470 (0x1d6) - FLLAO_CONTROL_6 */
+ { 0x000001d8, 0x0000 }, /* R472 (0x1d8) - FLLAO_CONTROL_7 */
+ { 0x000001da, 0x0070 }, /* R474 (0x1da) - FLLAO_CONTROL_8 */
+ { 0x000001db, 0x0000 }, /* R475 (0x1db) - FLLAO_CONTROL_9 */
+ { 0x000001dc, 0x06da }, /* R476 (0x1dc) - FLLAO_CONTROL_10 */
+ { 0x000001dd, 0x0011 }, /* R477 (0x1dd) - FLLAO_CONTROL_11 */
+ { 0x00000200, 0x0006 }, /* R512 (0x200) - Mic Charge Pump 1 */
+ { 0x00000213, 0x03e4 }, /* R531 (0x213) - LDO2 Control 1 */
+ { 0x00000218, 0x00e6 }, /* R536 (0x218) - Mic Bias Ctrl 1 */
+ { 0x00000219, 0x00e6 }, /* R537 (0x219) - Mic Bias Ctrl 2 */
+ { 0x0000021c, 0x2222 }, /* R540 (0x21c) - Mic Bias Ctrl 5 */
+ { 0x0000021e, 0x2222 }, /* R542 (0x21e) - Mic Bias Ctrl 6 */
+ { 0x0000027e, 0x0000 }, /* R638 (0x27e) - EDRE HP stereo control */
+ { 0x00000293, 0x0080 }, /* R659 (0x293) - Accessory Detect Mode 1 */
+ { 0x00000299, 0x0000 }, /* R665 (0x299) - Headphone Detect 0 */
+ { 0x0000029b, 0x0000 }, /* R667 (0x29b) - Headphone Detect 1 */
+ { 0x000002a2, 0x0010 }, /* R674 (0x2a2) - Mic Detect 1 Control 0 */
+ { 0x000002a3, 0x1102 }, /* R675 (0x2a3) - Mic Detect 1 Control 1 */
+ { 0x000002a4, 0x009f }, /* R676 (0x2a4) - Mic Detect 1 Control 2 */
+ { 0x000002a6, 0x3d3d }, /* R678 (0x2a6) - Mic Detect 1 Level 1 */
+ { 0x000002a7, 0x3d3d }, /* R679 (0x2a7) - Mic Detect 1 Level 2 */
+ { 0x000002a8, 0x333d }, /* R680 (0x2a8) - Mic Detect 1 Level 3 */
+ { 0x000002a9, 0x202d }, /* R681 (0x2a9) - Mic Detect 1 Level 4 */
+ { 0x000002b2, 0x0010 }, /* R690 (0x2b2) - Mic Detect 2 Control 0 */
+ { 0x000002b3, 0x1102 }, /* R691 (0x2b3) - Mic Detect 2 Control 1 */
+ { 0x000002b4, 0x009f }, /* R692 (0x2b4) - Mic Detect 2 Control 2 */
+ { 0x000002b6, 0x3d3d }, /* R694 (0x2b6) - Mic Detect 2 Level 1 */
+ { 0x000002b7, 0x3d3d }, /* R695 (0x2b7) - Mic Detect 2 Level 2 */
+ { 0x000002b8, 0x333d }, /* R696 (0x2b8) - Mic Detect 2 Level 3 */
+ { 0x000002b9, 0x202d }, /* R697 (0x2b9) - Mic Detect 2 Level 4 */
+ { 0x000002c6, 0x0010 }, /* R710 (0x2c6) - Mic Clamp control */
+ { 0x000002c8, 0x0000 }, /* R712 (0x2c8) - GP switch 1 */
+ { 0x000002d3, 0x0000 }, /* R723 (0x2d3) - Jack detect analogue */
+ { 0x00000300, 0x0000 }, /* R768 (0x300) - Input Enables */
+ { 0x00000308, 0x0400 }, /* R776 (0x308) - Input Rate */
+ { 0x00000309, 0x0022 }, /* R777 (0x309) - Input Volume Ramp */
+ { 0x0000030c, 0x0002 }, /* R780 (0x30C) - HPF Control */
+ { 0x00000310, 0x0080 }, /* R784 (0x310) - IN1L Control */
+ { 0x00000311, 0x0180 }, /* R785 (0x311) - ADC Digital Volume 1L */
+ { 0x00000312, 0x0500 }, /* R786 (0x312) - DMIC1L Control */
+ { 0x00000313, 0x0000 }, /* R787 (0x313) - IN1L Rate Control */
+ { 0x00000314, 0x0080 }, /* R788 (0x314) - IN1R Control */
+ { 0x00000315, 0x0180 }, /* R789 (0x315) - ADC Digital Volume 1R */
+ { 0x00000316, 0x0000 }, /* R790 (0x316) - DMIC1R Control */
+ { 0x00000317, 0x0000 }, /* R791 (0x317) - IN1R Rate Control */
+ { 0x00000318, 0x0080 }, /* R792 (0x318) - IN2L Control */
+ { 0x00000319, 0x0180 }, /* R793 (0x319) - ADC Digital Volume 2L */
+ { 0x0000031a, 0x0500 }, /* R794 (0x31a) - DMIC2L Control */
+ { 0x0000031b, 0x0000 }, /* R795 (0x31b) - IN2L Rate Control */
+ { 0x0000031c, 0x0080 }, /* R796 (0x31c) - IN2R Control */
+ { 0x0000031d, 0x0180 }, /* R797 (0x31d) - ADC Digital Volume 2R */
+ { 0x0000031e, 0x0000 }, /* R798 (0x31e) - DMIC2R Control */
+ { 0x0000031f, 0x0000 }, /* R799 (0x31f) - IN2R Rate Control */
+ { 0x00000320, 0x0000 }, /* R800 (0x320) - IN3L Control */
+ { 0x00000321, 0x0180 }, /* R801 (0x321) - ADC Digital Volume 3L */
+ { 0x00000322, 0x0500 }, /* R802 (0x322) - DMIC3L Control */
+ { 0x00000323, 0x0000 }, /* R803 (0x323) - IN3L Rate Control */
+ { 0x00000324, 0x0000 }, /* R804 (0x324) - IN3R Control */
+ { 0x00000325, 0x0180 }, /* R805 (0x325) - ADC Digital Volume 3R */
+ { 0x00000326, 0x0000 }, /* R806 (0x326) - DMIC3R Control */
+ { 0x00000327, 0x0000 }, /* R807 (0x327) - IN3R Rate Control */
+ { 0x00000328, 0x0000 }, /* R808 (0x328) - IN4 Control */
+ { 0x00000329, 0x0180 }, /* R809 (0x329) - ADC Digital Volume 4L */
+ { 0x0000032a, 0x0500 }, /* R810 (0x32a) - DMIC4L Control */
+ { 0x0000032b, 0x0000 }, /* R811 (0x32b) - IN4L Rate Control */
+ { 0x0000032c, 0x0000 }, /* R812 (0x32c) - IN4R Control */
+ { 0x0000032d, 0x0180 }, /* R813 (0x32d) - ADC Digital Volume 4R */
+ { 0x0000032e, 0x0000 }, /* R814 (0x32e) - DMIC4R Control */
+ { 0x0000032f, 0x0000 }, /* R815 (0x32f) - IN4R Rate Control */
+ { 0x00000330, 0x0000 }, /* R816 (0x330) - IN5L Control */
+ { 0x00000331, 0x0180 }, /* R817 (0x331) - ADC Digital Volume 5L */
+ { 0x00000332, 0x0500 }, /* R818 (0x332) - DMIC5L Control */
+ { 0x00000333, 0x0000 }, /* R819 (0x333) - IN5L Rate Control */
+ { 0x00000334, 0x0000 }, /* R820 (0x334) - IN5R Control */
+ { 0x00000335, 0x0180 }, /* R821 (0x335) - ADC Digital Volume 5R */
+ { 0x00000336, 0x0000 }, /* R822 (0x336) - DMIC5R Control */
+ { 0x00000337, 0x0000 }, /* R823 (0x337) - IN5R Rate Control */
+ { 0x00000400, 0x0000 }, /* R1024 (0x400) - Output Enables 1 */
+ { 0x00000408, 0x0000 }, /* R1032 (0x408) - Output Rate 1 */
+ { 0x00000409, 0x0022 }, /* R1033 (0x409) - Output Volume Ramp */
+ { 0x00000410, 0x0080 }, /* R1040 (0x410) - Output Path Config 1L */
+ { 0x00000411, 0x0180 }, /* R1041 (0x411) - DAC Digital Volume 1L */
+ { 0x00000412, 0x0000 }, /* R1042 (0x412) - Output Path Config 1 */
+ { 0x00000413, 0x0001 }, /* R1043 (0x413) - Noise Gate Select 1L */
+ { 0x00000414, 0x0080 }, /* R1044 (0x414) - Output Path Config 1R */
+ { 0x00000415, 0x0180 }, /* R1045 (0x415) - DAC Digital Volume 1R */
+ { 0x00000417, 0x0002 }, /* R1047 (0x417) - Noise Gate Select 1R */
+ { 0x00000418, 0x0080 }, /* R1048 (0x418) - Output Path Config 2L */
+ { 0x00000419, 0x0180 }, /* R1049 (0x419) - DAC Digital Volume 2L */
+ { 0x0000041a, 0x0002 }, /* R1050 (0x41a) - Output Path Config 2 */
+ { 0x0000041b, 0x0004 }, /* R1051 (0x41b) - Noise Gate Select 2L */
+ { 0x0000041c, 0x0080 }, /* R1052 (0x41c) - Output Path Config 2R */
+ { 0x0000041d, 0x0180 }, /* R1053 (0x41d) - DAC Digital Volume 2R */
+ { 0x0000041f, 0x0008 }, /* R1055 (0x41f) - Noise Gate Select 2R */
+ { 0x00000420, 0x0080 }, /* R1056 (0x420) - Output Path Config 3L */
+ { 0x00000421, 0x0180 }, /* R1057 (0x421) - DAC Digital Volume 3L */
+ { 0x00000423, 0x0010 }, /* R1059 (0x423) - Noise Gate Select 3L */
+ { 0x00000424, 0x0080 }, /* R1060 (0x424) - Output Path Config 3R */
+ { 0x00000425, 0x0180 }, /* R1061 (0x425) - DAC Digital Volume 3R */
+ { 0x00000427, 0x0020 }, /* R1063 (0x427) - Noise Gate Select 3R */
+ { 0x00000430, 0x0000 }, /* R1072 (0x430) - Output Path Config 5L */
+ { 0x00000431, 0x0180 }, /* R1073 (0x431) - DAC Digital Volume 5L */
+ { 0x00000433, 0x0100 }, /* R1075 (0x433) - Noise Gate Select 5L */
+ { 0x00000434, 0x0000 }, /* R1076 (0x434) - Output Path Config 5R */
+ { 0x00000435, 0x0180 }, /* R1077 (0x435) - DAC Digital Volume 5R */
+ { 0x00000437, 0x0200 }, /* R1079 (0x437) - Noise Gate Select 5R */
+ { 0x00000440, 0x003f }, /* R1088 (0x440) - DRE Enable */
+ { 0x00000448, 0x003f }, /* R1096 (0x448) - eDRE Enable */
+ { 0x00000450, 0x0000 }, /* R1104 (0x450) - DAC AEC Control 1 */
+ { 0x00000458, 0x0000 }, /* R1112 (0x458) - Noise Gate Control */
+ { 0x00000490, 0x0069 }, /* R1168 (0x490) - PDM SPK1 CTRL 1 */
+ { 0x00000491, 0x0000 }, /* R1169 (0x491) - PDM SPK1 CTRL 2 */
+ { 0x000004a0, 0x3080 }, /* R1184 (0x4a0) - HP1 Short Circuit Ctrl */
+ { 0x000004a1, 0x3000 }, /* R1185 (0x4a1) - HP2 Short Circuit Ctrl */
+ { 0x000004a2, 0x3000 }, /* R1186 (0x4a2) - HP3 Short Circuit Ctrl */
+ { 0x00000500, 0x000c }, /* R1280 (0x500) - AIF1 BCLK Ctrl */
+ { 0x00000501, 0x0000 }, /* R1281 (0x501) - AIF1 Tx Pin Ctrl */
+ { 0x00000502, 0x0000 }, /* R1282 (0x502) - AIF1 Rx Pin Ctrl */
+ { 0x00000503, 0x0000 }, /* R1283 (0x503) - AIF1 Rate Ctrl */
+ { 0x00000504, 0x0000 }, /* R1284 (0x504) - AIF1 Format */
+ { 0x00000506, 0x0040 }, /* R1286 (0x506) - AIF1 Rx BCLK Rate */
+ { 0x00000507, 0x1818 }, /* R1287 (0x507) - AIF1 Frame Ctrl 1 */
+ { 0x00000508, 0x1818 }, /* R1288 (0x508) - AIF1 Frame Ctrl 2 */
+ { 0x00000509, 0x0000 }, /* R1289 (0x509) - AIF1 Frame Ctrl 3 */
+ { 0x0000050a, 0x0001 }, /* R1290 (0x50a) - AIF1 Frame Ctrl 4 */
+ { 0x0000050b, 0x0002 }, /* R1291 (0x50b) - AIF1 Frame Ctrl 5 */
+ { 0x0000050c, 0x0003 }, /* R1292 (0x50c) - AIF1 Frame Ctrl 6 */
+ { 0x0000050d, 0x0004 }, /* R1293 (0x50d) - AIF1 Frame Ctrl 7 */
+ { 0x0000050e, 0x0005 }, /* R1294 (0x50e) - AIF1 Frame Ctrl 8 */
+ { 0x0000050f, 0x0006 }, /* R1295 (0x50f) - AIF1 Frame Ctrl 9 */
+ { 0x00000510, 0x0007 }, /* R1296 (0x510) - AIF1 Frame Ctrl 10 */
+ { 0x00000511, 0x0000 }, /* R1297 (0x511) - AIF1 Frame Ctrl 11 */
+ { 0x00000512, 0x0001 }, /* R1298 (0x512) - AIF1 Frame Ctrl 12 */
+ { 0x00000513, 0x0002 }, /* R1299 (0x513) - AIF1 Frame Ctrl 13 */
+ { 0x00000514, 0x0003 }, /* R1300 (0x514) - AIF1 Frame Ctrl 14 */
+ { 0x00000515, 0x0004 }, /* R1301 (0x515) - AIF1 Frame Ctrl 15 */
+ { 0x00000516, 0x0005 }, /* R1302 (0x516) - AIF1 Frame Ctrl 16 */
+ { 0x00000517, 0x0006 }, /* R1303 (0x517) - AIF1 Frame Ctrl 17 */
+ { 0x00000518, 0x0007 }, /* R1304 (0x518) - AIF1 Frame Ctrl 18 */
+ { 0x00000519, 0x0000 }, /* R1305 (0x519) - AIF1 Tx Enables */
+ { 0x0000051a, 0x0000 }, /* R1306 (0x51a) - AIF1 Rx Enables */
+ { 0x00000540, 0x000c }, /* R1344 (0x540) - AIF2 BCLK Ctrl */
+ { 0x00000541, 0x0000 }, /* R1345 (0x541) - AIF2 Tx Pin Ctrl */
+ { 0x00000542, 0x0000 }, /* R1346 (0x542) - AIF2 Rx Pin Ctrl */
+ { 0x00000543, 0x0000 }, /* R1347 (0x543) - AIF2 Rate Ctrl */
+ { 0x00000544, 0x0000 }, /* R1348 (0x544) - AIF2 Format */
+ { 0x00000546, 0x0040 }, /* R1350 (0x546) - AIF2 Rx BCLK Rate */
+ { 0x00000547, 0x1818 }, /* R1351 (0x547) - AIF2 Frame Ctrl 1 */
+ { 0x00000548, 0x1818 }, /* R1352 (0x548) - AIF2 Frame Ctrl 2 */
+ { 0x00000549, 0x0000 }, /* R1353 (0x549) - AIF2 Frame Ctrl 3 */
+ { 0x0000054a, 0x0001 }, /* R1354 (0x54a) - AIF2 Frame Ctrl 4 */
+ { 0x0000054b, 0x0002 }, /* R1355 (0x54b) - AIF2 Frame Ctrl 5 */
+ { 0x0000054c, 0x0003 }, /* R1356 (0x54c) - AIF2 Frame Ctrl 6 */
+ { 0x0000054d, 0x0004 }, /* R1357 (0x54d) - AIF2 Frame Ctrl 7 */
+ { 0x0000054e, 0x0005 }, /* R1358 (0x54e) - AIF2 Frame Ctrl 8 */
+ { 0x0000054f, 0x0006 }, /* R1359 (0x54f) - AIF2 Frame Ctrl 9 */
+ { 0x00000550, 0x0007 }, /* R1360 (0x550) - AIF2 Frame Ctrl 10 */
+ { 0x00000551, 0x0000 }, /* R1361 (0x551) - AIF2 Frame Ctrl 11 */
+ { 0x00000552, 0x0001 }, /* R1362 (0x552) - AIF2 Frame Ctrl 12 */
+ { 0x00000553, 0x0002 }, /* R1363 (0x553) - AIF2 Frame Ctrl 13 */
+ { 0x00000554, 0x0003 }, /* R1364 (0x554) - AIF2 Frame Ctrl 14 */
+ { 0x00000555, 0x0004 }, /* R1365 (0x555) - AIF2 Frame Ctrl 15 */
+ { 0x00000556, 0x0005 }, /* R1366 (0x556) - AIF2 Frame Ctrl 16 */
+ { 0x00000557, 0x0006 }, /* R1367 (0x557) - AIF2 Frame Ctrl 17 */
+ { 0x00000558, 0x0007 }, /* R1368 (0x558) - AIF2 Frame Ctrl 18 */
+ { 0x00000559, 0x0000 }, /* R1369 (0x559) - AIF2 Tx Enables */
+ { 0x0000055a, 0x0000 }, /* R1370 (0x55a) - AIF2 Rx Enables */
+ { 0x00000580, 0x000c }, /* R1408 (0x580) - AIF3 BCLK Ctrl */
+ { 0x00000581, 0x0000 }, /* R1409 (0x581) - AIF3 Tx Pin Ctrl */
+ { 0x00000582, 0x0000 }, /* R1410 (0x582) - AIF3 Rx Pin Ctrl */
+ { 0x00000583, 0x0000 }, /* R1411 (0x583) - AIF3 Rate Ctrl */
+ { 0x00000584, 0x0000 }, /* R1412 (0x584) - AIF3 Format */
+ { 0x00000586, 0x0040 }, /* R1414 (0x586) - AIF3 Rx BCLK Rate */
+ { 0x00000587, 0x1818 }, /* R1415 (0x587) - AIF3 Frame Ctrl 1 */
+ { 0x00000588, 0x1818 }, /* R1416 (0x588) - AIF3 Frame Ctrl 2 */
+ { 0x00000589, 0x0000 }, /* R1417 (0x589) - AIF3 Frame Ctrl 3 */
+ { 0x0000058a, 0x0001 }, /* R1418 (0x58a) - AIF3 Frame Ctrl 4 */
+ { 0x00000591, 0x0000 }, /* R1425 (0x591) - AIF3 Frame Ctrl 11 */
+ { 0x00000592, 0x0001 }, /* R1426 (0x592) - AIF3 Frame Ctrl 12 */
+ { 0x00000599, 0x0000 }, /* R1433 (0x599) - AIF3 Tx Enables */
+ { 0x0000059a, 0x0000 }, /* R1434 (0x59a) - AIF3 Rx Enables */
+ { 0x000005a0, 0x000c }, /* R1440 (0x5a0) - AIF4 BCLK Ctrl */
+ { 0x000005a1, 0x0000 }, /* R1441 (0x5a1) - AIF4 Tx Pin Ctrl */
+ { 0x000005a2, 0x0000 }, /* R1442 (0x5a2) - AIF4 Rx Pin Ctrl */
+ { 0x000005a3, 0x0000 }, /* R1443 (0x5a3) - AIF4 Rate Ctrl */
+ { 0x000005a4, 0x0000 }, /* R1444 (0x5a4) - AIF4 Format */
+ { 0x000005a6, 0x0040 }, /* R1446 (0x5a6) - AIF4 Rx BCLK Rate */
+ { 0x000005a7, 0x1818 }, /* R1447 (0x5a7) - AIF4 Frame Ctrl 1 */
+ { 0x000005a8, 0x1818 }, /* R1448 (0x5a8) - AIF4 Frame Ctrl 2 */
+ { 0x000005a9, 0x0000 }, /* R1449 (0x5a9) - AIF4 Frame Ctrl 3 */
+ { 0x000005aa, 0x0001 }, /* R1450 (0x5aa) - AIF4 Frame Ctrl 4 */
+ { 0x000005b1, 0x0000 }, /* R1457 (0x5b1) - AIF4 Frame Ctrl 11 */
+ { 0x000005b2, 0x0001 }, /* R1458 (0x5b2) - AIF4 Frame Ctrl 12 */
+ { 0x000005b9, 0x0000 }, /* R1465 (0x5b9) - AIF4 Tx Enables */
+ { 0x000005ba, 0x0000 }, /* R1466 (0x5ba) - AIF4 Rx Enables */
+ { 0x000005c2, 0x0000 }, /* R1474 (0x5c2) - SPD1 TX Control */
+ { 0x000005e3, 0x0000 }, /* R1507 (0x5e3) - SLIMbus Framer Ref Gear */
+ { 0x000005e5, 0x0000 }, /* R1509 (0x5e5) - SLIMbus Rates 1 */
+ { 0x000005e6, 0x0000 }, /* R1510 (0x5e6) - SLIMbus Rates 2 */
+ { 0x000005e7, 0x0000 }, /* R1511 (0x5e7) - SLIMbus Rates 3 */
+ { 0x000005e8, 0x0000 }, /* R1512 (0x5e8) - SLIMbus Rates 4 */
+ { 0x000005e9, 0x0000 }, /* R1513 (0x5e9) - SLIMbus Rates 5 */
+ { 0x000005ea, 0x0000 }, /* R1514 (0x5ea) - SLIMbus Rates 6 */
+ { 0x000005eb, 0x0000 }, /* R1515 (0x5eb) - SLIMbus Rates 7 */
+ { 0x000005ec, 0x0000 }, /* R1516 (0x5ec) - SLIMbus Rates 8 */
+ { 0x000005f5, 0x0000 }, /* R1525 (0x5f5) - SLIMbus RX Channel Enable */
+ { 0x000005f6, 0x0000 }, /* R1526 (0x5F6) - SLIMbus TX Channel Enable */
+ { 0x00000640, 0x0000 }, /* R1600 (0x640) - PWM1MIX Input 1 Source */
+ { 0x00000641, 0x0080 }, /* R1601 (0x641) - PWM1MIX Input 1 Volume */
+ { 0x00000642, 0x0000 }, /* R1602 (0x642) - PWM1MIX Input 2 Source */
+ { 0x00000643, 0x0080 }, /* R1603 (0x643) - PWM1MIX Input 2 Volume */
+ { 0x00000644, 0x0000 }, /* R1604 (0x644) - PWM1MIX Input 3 Source */
+ { 0x00000645, 0x0080 }, /* R1605 (0x645) - PWM1MIX Input 3 Volume */
+ { 0x00000646, 0x0000 }, /* R1606 (0x646) - PWM1MIX Input 4 Source */
+ { 0x00000647, 0x0080 }, /* R1607 (0x647) - PWM1MIX Input 4 Volume */
+ { 0x00000648, 0x0000 }, /* R1608 (0x648) - PWM2MIX Input 1 Source */
+ { 0x00000649, 0x0080 }, /* R1609 (0x649) - PWM2MIX Input 1 Volume */
+ { 0x0000064a, 0x0000 }, /* R1610 (0x64a) - PWM2MIX Input 2 Source */
+ { 0x0000064b, 0x0080 }, /* R1611 (0x64b) - PWM2MIX Input 2 Volume */
+ { 0x0000064c, 0x0000 }, /* R1612 (0x64c) - PWM2MIX Input 3 Source */
+ { 0x0000064d, 0x0080 }, /* R1613 (0x64d) - PWM2MIX Input 3 Volume */
+ { 0x0000064e, 0x0000 }, /* R1614 (0x64e) - PWM2MIX Input 4 Source */
+ { 0x0000064f, 0x0080 }, /* R1615 (0x64f) - PWM2MIX Input 4 Volume */
+ { 0x00000680, 0x0000 }, /* R1664 (0x680) - OUT1LMIX Input 1 Source */
+ { 0x00000681, 0x0080 }, /* R1665 (0x681) - OUT1LMIX Input 1 Volume */
+ { 0x00000682, 0x0000 }, /* R1666 (0x682) - OUT1LMIX Input 2 Source */
+ { 0x00000683, 0x0080 }, /* R1667 (0x683) - OUT1LMIX Input 2 Volume */
+ { 0x00000684, 0x0000 }, /* R1668 (0x684) - OUT1LMIX Input 3 Source */
+ { 0x00000685, 0x0080 }, /* R1669 (0x685) - OUT1LMIX Input 3 Volume */
+ { 0x00000686, 0x0000 }, /* R1670 (0x686) - OUT1LMIX Input 4 Source */
+ { 0x00000687, 0x0080 }, /* R1671 (0x687) - OUT1LMIX Input 4 Volume */
+ { 0x00000688, 0x0000 }, /* R1672 (0x688) - OUT1RMIX Input 1 Source */
+ { 0x00000689, 0x0080 }, /* R1673 (0x689) - OUT1RMIX Input 1 Volume */
+ { 0x0000068a, 0x0000 }, /* R1674 (0x68a) - OUT1RMIX Input 2 Source */
+ { 0x0000068b, 0x0080 }, /* R1675 (0x68b) - OUT1RMIX Input 2 Volume */
+ { 0x0000068c, 0x0000 }, /* R1672 (0x68c) - OUT1RMIX Input 3 Source */
+ { 0x0000068d, 0x0080 }, /* R1673 (0x68d) - OUT1RMIX Input 3 Volume */
+ { 0x0000068e, 0x0000 }, /* R1674 (0x68e) - OUT1RMIX Input 4 Source */
+ { 0x0000068f, 0x0080 }, /* R1675 (0x68f) - OUT1RMIX Input 4 Volume */
+ { 0x00000690, 0x0000 }, /* R1680 (0x690) - OUT2LMIX Input 1 Source */
+ { 0x00000691, 0x0080 }, /* R1681 (0x691) - OUT2LMIX Input 1 Volume */
+ { 0x00000692, 0x0000 }, /* R1682 (0x692) - OUT2LMIX Input 2 Source */
+ { 0x00000693, 0x0080 }, /* R1683 (0x693) - OUT2LMIX Input 2 Volume */
+ { 0x00000694, 0x0000 }, /* R1684 (0x694) - OUT2LMIX Input 3 Source */
+ { 0x00000695, 0x0080 }, /* R1685 (0x695) - OUT2LMIX Input 3 Volume */
+ { 0x00000696, 0x0000 }, /* R1686 (0x696) - OUT2LMIX Input 4 Source */
+ { 0x00000697, 0x0080 }, /* R1687 (0x697) - OUT2LMIX Input 4 Volume */
+ { 0x00000698, 0x0000 }, /* R1688 (0x698) - OUT2RMIX Input 1 Source */
+ { 0x00000699, 0x0080 }, /* R1689 (0x699) - OUT2RMIX Input 1 Volume */
+ { 0x0000069a, 0x0000 }, /* R1690 (0x69a) - OUT2RMIX Input 2 Source */
+ { 0x0000069b, 0x0080 }, /* R1691 (0x69b) - OUT2RMIX Input 2 Volume */
+ { 0x0000069c, 0x0000 }, /* R1692 (0x69c) - OUT2RMIX Input 3 Source */
+ { 0x0000069d, 0x0080 }, /* R1693 (0x69d) - OUT2RMIX Input 3 Volume */
+ { 0x0000069e, 0x0000 }, /* R1694 (0x69e) - OUT2RMIX Input 4 Source */
+ { 0x0000069f, 0x0080 }, /* R1695 (0x69f) - OUT2RMIX Input 4 Volume */
+ { 0x000006a0, 0x0000 }, /* R1696 (0x6a0) - OUT3LMIX Input 1 Source */
+ { 0x000006a1, 0x0080 }, /* R1697 (0x6a1) - OUT3LMIX Input 1 Volume */
+ { 0x000006a2, 0x0000 }, /* R1698 (0x6a2) - OUT3LMIX Input 2 Source */
+ { 0x000006a3, 0x0080 }, /* R1699 (0x6a3) - OUT3LMIX Input 2 Volume */
+ { 0x000006a4, 0x0000 }, /* R1700 (0x6a4) - OUT3LMIX Input 3 Source */
+ { 0x000006a5, 0x0080 }, /* R1701 (0x6a5) - OUT3LMIX Input 3 Volume */
+ { 0x000006a6, 0x0000 }, /* R1702 (0x6a6) - OUT3LMIX Input 4 Source */
+ { 0x000006a7, 0x0080 }, /* R1703 (0x6a7) - OUT3LMIX Input 4 Volume */
+ { 0x000006a8, 0x0000 }, /* R1704 (0x6a8) - OUT3RMIX Input 1 Source */
+ { 0x000006a9, 0x0080 }, /* R1705 (0x6a9) - OUT3RMIX Input 1 Volume */
+ { 0x000006aa, 0x0000 }, /* R1706 (0x6aa) - OUT3RMIX Input 2 Source */
+ { 0x000006ab, 0x0080 }, /* R1707 (0x6ab) - OUT3RMIX Input 2 Volume */
+ { 0x000006ac, 0x0000 }, /* R1708 (0x6ac) - OUT3RMIX Input 3 Source */
+ { 0x000006ad, 0x0080 }, /* R1709 (0x6ad) - OUT3RMIX Input 3 Volume */
+ { 0x000006ae, 0x0000 }, /* R1710 (0x6ae) - OUT3RMIX Input 4 Source */
+ { 0x000006af, 0x0080 }, /* R1711 (0x6af) - OUT3RMIX Input 4 Volume */
+ { 0x000006c0, 0x0000 }, /* R1728 (0x6c0) - OUT5LMIX Input 1 Source */
+ { 0x000006c1, 0x0080 }, /* R1729 (0x6c1) - OUT5LMIX Input 1 Volume */
+ { 0x000006c2, 0x0000 }, /* R1730 (0x6c2) - OUT5LMIX Input 2 Source */
+ { 0x000006c3, 0x0080 }, /* R1731 (0x6c3) - OUT5LMIX Input 2 Volume */
+ { 0x000006c4, 0x0000 }, /* R1732 (0x6c4) - OUT5LMIX Input 3 Source */
+ { 0x000006c5, 0x0080 }, /* R1733 (0x6c5) - OUT5LMIX Input 3 Volume */
+ { 0x000006c6, 0x0000 }, /* R1734 (0x6c6) - OUT5LMIX Input 4 Source */
+ { 0x000006c7, 0x0080 }, /* R1735 (0x6c7) - OUT5LMIX Input 4 Volume */
+ { 0x000006c8, 0x0000 }, /* R1736 (0x6c8) - OUT5RMIX Input 1 Source */
+ { 0x000006c9, 0x0080 }, /* R1737 (0x6c9) - OUT5RMIX Input 1 Volume */
+ { 0x000006ca, 0x0000 }, /* R1738 (0x6ca) - OUT5RMIX Input 2 Source */
+ { 0x000006cb, 0x0080 }, /* R1739 (0x6cb) - OUT5RMIX Input 2 Volume */
+ { 0x000006cc, 0x0000 }, /* R1740 (0x6cc) - OUT5RMIX Input 3 Source */
+ { 0x000006cd, 0x0080 }, /* R1741 (0x6cd) - OUT5RMIX Input 3 Volume */
+ { 0x000006ce, 0x0000 }, /* R1742 (0x6ce) - OUT5RMIX Input 4 Source */
+ { 0x000006cf, 0x0080 }, /* R1743 (0x6cf) - OUT5RMIX Input 4 Volume */
+ { 0x00000700, 0x0000 }, /* R1792 (0x700) - AIF1TX1MIX Input 1 Source */
+ { 0x00000701, 0x0080 }, /* R1793 (0x701) - AIF1TX1MIX Input 1 Volume */
+ { 0x00000702, 0x0000 }, /* R1794 (0x702) - AIF1TX1MIX Input 2 Source */
+ { 0x00000703, 0x0080 }, /* R1795 (0x703) - AIF1TX1MIX Input 2 Volume */
+ { 0x00000704, 0x0000 }, /* R1796 (0x704) - AIF1TX1MIX Input 3 Source */
+ { 0x00000705, 0x0080 }, /* R1797 (0x705) - AIF1TX1MIX Input 3 Volume */
+ { 0x00000706, 0x0000 }, /* R1798 (0x706) - AIF1TX1MIX Input 4 Source */
+ { 0x00000707, 0x0080 }, /* R1799 (0x707) - AIF1TX1MIX Input 4 Volume */
+ { 0x00000708, 0x0000 }, /* R1800 (0x708) - AIF1TX2MIX Input 1 Source */
+ { 0x00000709, 0x0080 }, /* R1801 (0x709) - AIF1TX2MIX Input 1 Volume */
+ { 0x0000070a, 0x0000 }, /* R1802 (0x70a) - AIF1TX2MIX Input 2 Source */
+ { 0x0000070b, 0x0080 }, /* R1803 (0x70b) - AIF1TX2MIX Input 2 Volume */
+ { 0x0000070c, 0x0000 }, /* R1804 (0x70c) - AIF1TX2MIX Input 3 Source */
+ { 0x0000070d, 0x0080 }, /* R1805 (0x70d) - AIF1TX2MIX Input 3 Volume */
+ { 0x0000070e, 0x0000 }, /* R1806 (0x70e) - AIF1TX2MIX Input 4 Source */
+ { 0x0000070f, 0x0080 }, /* R1807 (0x70f) - AIF1TX2MIX Input 4 Volume */
+ { 0x00000710, 0x0000 }, /* R1808 (0x710) - AIF1TX3MIX Input 1 Source */
+ { 0x00000711, 0x0080 }, /* R1809 (0x711) - AIF1TX3MIX Input 1 Volume */
+ { 0x00000712, 0x0000 }, /* R1810 (0x712) - AIF1TX3MIX Input 2 Source */
+ { 0x00000713, 0x0080 }, /* R1811 (0x713) - AIF1TX3MIX Input 2 Volume */
+ { 0x00000714, 0x0000 }, /* R1812 (0x714) - AIF1TX3MIX Input 3 Source */
+ { 0x00000715, 0x0080 }, /* R1813 (0x715) - AIF1TX3MIX Input 3 Volume */
+ { 0x00000716, 0x0000 }, /* R1814 (0x716) - AIF1TX3MIX Input 4 Source */
+ { 0x00000717, 0x0080 }, /* R1815 (0x717) - AIF1TX3MIX Input 4 Volume */
+ { 0x00000718, 0x0000 }, /* R1816 (0x718) - AIF1TX4MIX Input 1 Source */
+ { 0x00000719, 0x0080 }, /* R1817 (0x719) - AIF1TX4MIX Input 1 Volume */
+ { 0x0000071a, 0x0000 }, /* R1818 (0x71a) - AIF1TX4MIX Input 2 Source */
+ { 0x0000071b, 0x0080 }, /* R1819 (0x71b) - AIF1TX4MIX Input 2 Volume */
+ { 0x0000071c, 0x0000 }, /* R1820 (0x71c) - AIF1TX4MIX Input 3 Source */
+ { 0x0000071d, 0x0080 }, /* R1821 (0x71d) - AIF1TX4MIX Input 3 Volume */
+ { 0x0000071e, 0x0000 }, /* R1822 (0x71e) - AIF1TX4MIX Input 4 Source */
+ { 0x0000071f, 0x0080 }, /* R1823 (0x71f) - AIF1TX4MIX Input 4 Volume */
+ { 0x00000720, 0x0000 }, /* R1824 (0x720) - AIF1TX5MIX Input 1 Source */
+ { 0x00000721, 0x0080 }, /* R1825 (0x721) - AIF1TX5MIX Input 1 Volume */
+ { 0x00000722, 0x0000 }, /* R1826 (0x722) - AIF1TX5MIX Input 2 Source */
+ { 0x00000723, 0x0080 }, /* R1827 (0x723) - AIF1TX5MIX Input 2 Volume */
+ { 0x00000724, 0x0000 }, /* R1828 (0x724) - AIF1TX5MIX Input 3 Source */
+ { 0x00000725, 0x0080 }, /* R1829 (0x725) - AIF1TX5MIX Input 3 Volume */
+ { 0x00000726, 0x0000 }, /* R1830 (0x726) - AIF1TX5MIX Input 4 Source */
+ { 0x00000727, 0x0080 }, /* R1831 (0x727) - AIF1TX5MIX Input 4 Volume */
+ { 0x00000728, 0x0000 }, /* R1832 (0x728) - AIF1TX6MIX Input 1 Source */
+ { 0x00000729, 0x0080 }, /* R1833 (0x729) - AIF1TX6MIX Input 1 Volume */
+ { 0x0000072a, 0x0000 }, /* R1834 (0x72a) - AIF1TX6MIX Input 2 Source */
+ { 0x0000072b, 0x0080 }, /* R1835 (0x72b) - AIF1TX6MIX Input 2 Volume */
+ { 0x0000072c, 0x0000 }, /* R1836 (0x72c) - AIF1TX6MIX Input 3 Source */
+ { 0x0000072d, 0x0080 }, /* R1837 (0x72d) - AIF1TX6MIX Input 3 Volume */
+ { 0x0000072e, 0x0000 }, /* R1838 (0x72e) - AIF1TX6MIX Input 4 Source */
+ { 0x0000072f, 0x0080 }, /* R1839 (0x72f) - AIF1TX6MIX Input 4 Volume */
+ { 0x00000730, 0x0000 }, /* R1840 (0x730) - AIF1TX7MIX Input 1 Source */
+ { 0x00000731, 0x0080 }, /* R1841 (0x731) - AIF1TX7MIX Input 1 Volume */
+ { 0x00000732, 0x0000 }, /* R1842 (0x732) - AIF1TX7MIX Input 2 Source */
+ { 0x00000733, 0x0080 }, /* R1843 (0x733) - AIF1TX7MIX Input 2 Volume */
+ { 0x00000734, 0x0000 }, /* R1844 (0x734) - AIF1TX7MIX Input 3 Source */
+ { 0x00000735, 0x0080 }, /* R1845 (0x735) - AIF1TX7MIX Input 3 Volume */
+ { 0x00000736, 0x0000 }, /* R1846 (0x736) - AIF1TX7MIX Input 4 Source */
+ { 0x00000737, 0x0080 }, /* R1847 (0x737) - AIF1TX7MIX Input 4 Volume */
+ { 0x00000738, 0x0000 }, /* R1848 (0x738) - AIF1TX8MIX Input 1 Source */
+ { 0x00000739, 0x0080 }, /* R1849 (0x739) - AIF1TX8MIX Input 1 Volume */
+ { 0x0000073a, 0x0000 }, /* R1850 (0x73a) - AIF1TX8MIX Input 2 Source */
+ { 0x0000073b, 0x0080 }, /* R1851 (0x73b) - AIF1TX8MIX Input 2 Volume */
+ { 0x0000073c, 0x0000 }, /* R1852 (0x73c) - AIF1TX8MIX Input 3 Source */
+ { 0x0000073d, 0x0080 }, /* R1853 (0x73d) - AIF1TX8MIX Input 3 Volume */
+ { 0x0000073e, 0x0000 }, /* R1854 (0x73e) - AIF1TX8MIX Input 4 Source */
+ { 0x0000073f, 0x0080 }, /* R1855 (0x73f) - AIF1TX8MIX Input 4 Volume */
+ { 0x00000740, 0x0000 }, /* R1856 (0x740) - AIF2TX1MIX Input 1 Source */
+ { 0x00000741, 0x0080 }, /* R1857 (0x741) - AIF2TX1MIX Input 1 Volume */
+ { 0x00000742, 0x0000 }, /* R1858 (0x742) - AIF2TX1MIX Input 2 Source */
+ { 0x00000743, 0x0080 }, /* R1859 (0x743) - AIF2TX1MIX Input 2 Volume */
+ { 0x00000744, 0x0000 }, /* R1860 (0x744) - AIF2TX1MIX Input 3 Source */
+ { 0x00000745, 0x0080 }, /* R1861 (0x745) - AIF2TX1MIX Input 3 Volume */
+ { 0x00000746, 0x0000 }, /* R1862 (0x746) - AIF2TX1MIX Input 4 Source */
+ { 0x00000747, 0x0080 }, /* R1863 (0x747) - AIF2TX1MIX Input 4 Volume */
+ { 0x00000748, 0x0000 }, /* R1864 (0x748) - AIF2TX2MIX Input 1 Source */
+ { 0x00000749, 0x0080 }, /* R1865 (0x749) - AIF2TX2MIX Input 1 Volume */
+ { 0x0000074a, 0x0000 }, /* R1866 (0x74a) - AIF2TX2MIX Input 2 Source */
+ { 0x0000074b, 0x0080 }, /* R1867 (0x74b) - AIF2TX2MIX Input 2 Volume */
+ { 0x0000074c, 0x0000 }, /* R1868 (0x74c) - AIF2TX2MIX Input 3 Source */
+ { 0x0000074d, 0x0080 }, /* R1869 (0x74d) - AIF2TX2MIX Input 3 Volume */
+ { 0x0000074e, 0x0000 }, /* R1870 (0x74e) - AIF2TX2MIX Input 4 Source */
+ { 0x0000074f, 0x0080 }, /* R1871 (0x74f) - AIF2TX2MIX Input 4 Volume */
+ { 0x00000750, 0x0000 }, /* R1872 (0x750) - AIF2TX3MIX Input 1 Source */
+ { 0x00000751, 0x0080 }, /* R1873 (0x751) - AIF2TX3MIX Input 1 Volume */
+ { 0x00000752, 0x0000 }, /* R1874 (0x752) - AIF2TX3MIX Input 2 Source */
+ { 0x00000753, 0x0080 }, /* R1875 (0x753) - AIF2TX3MIX Input 2 Volume */
+ { 0x00000754, 0x0000 }, /* R1876 (0x754) - AIF2TX3MIX Input 3 Source */
+ { 0x00000755, 0x0080 }, /* R1877 (0x755) - AIF2TX3MIX Input 3 Volume */
+ { 0x00000756, 0x0000 }, /* R1878 (0x756) - AIF2TX3MIX Input 4 Source */
+ { 0x00000757, 0x0080 }, /* R1879 (0x757) - AIF2TX3MIX Input 4 Volume */
+ { 0x00000758, 0x0000 }, /* R1880 (0x758) - AIF2TX4MIX Input 1 Source */
+ { 0x00000759, 0x0080 }, /* R1881 (0x759) - AIF2TX4MIX Input 1 Volume */
+ { 0x0000075a, 0x0000 }, /* R1882 (0x75a) - AIF2TX4MIX Input 2 Source */
+ { 0x0000075b, 0x0080 }, /* R1883 (0x75b) - AIF2TX4MIX Input 2 Volume */
+ { 0x0000075c, 0x0000 }, /* R1884 (0x75c) - AIF2TX4MIX Input 3 Source */
+ { 0x0000075d, 0x0080 }, /* R1885 (0x75d) - AIF2TX4MIX Input 3 Volume */
+ { 0x0000075e, 0x0000 }, /* R1886 (0x75e) - AIF2TX4MIX Input 4 Source */
+ { 0x0000075f, 0x0080 }, /* R1887 (0x75f) - AIF2TX4MIX Input 4 Volume */
+ { 0x00000760, 0x0000 }, /* R1888 (0x760) - AIF2TX5MIX Input 1 Source */
+ { 0x00000761, 0x0080 }, /* R1889 (0x761) - AIF2TX5MIX Input 1 Volume */
+ { 0x00000762, 0x0000 }, /* R1890 (0x762) - AIF2TX5MIX Input 2 Source */
+ { 0x00000763, 0x0080 }, /* R1891 (0x763) - AIF2TX5MIX Input 2 Volume */
+ { 0x00000764, 0x0000 }, /* R1892 (0x764) - AIF2TX5MIX Input 3 Source */
+ { 0x00000765, 0x0080 }, /* R1893 (0x765) - AIF2TX5MIX Input 3 Volume */
+ { 0x00000766, 0x0000 }, /* R1894 (0x766) - AIF2TX5MIX Input 4 Source */
+ { 0x00000767, 0x0080 }, /* R1895 (0x767) - AIF2TX5MIX Input 4 Volume */
+ { 0x00000768, 0x0000 }, /* R1896 (0x768) - AIF2TX6MIX Input 1 Source */
+ { 0x00000769, 0x0080 }, /* R1897 (0x769) - AIF2TX6MIX Input 1 Volume */
+ { 0x0000076a, 0x0000 }, /* R1898 (0x76a) - AIF2TX6MIX Input 2 Source */
+ { 0x0000076b, 0x0080 }, /* R1899 (0x76b) - AIF2TX6MIX Input 2 Volume */
+ { 0x0000076c, 0x0000 }, /* R1900 (0x76c) - AIF2TX6MIX Input 3 Source */
+ { 0x0000076d, 0x0080 }, /* R1901 (0x76d) - AIF2TX6MIX Input 3 Volume */
+ { 0x0000076e, 0x0000 }, /* R1902 (0x76e) - AIF2TX6MIX Input 4 Source */
+ { 0x0000076f, 0x0080 }, /* R1903 (0x76f) - AIF2TX6MIX Input 4 Volume */
+ { 0x00000770, 0x0000 }, /* R1904 (0x770) - AIF2TX7MIX Input 1 Source */
+ { 0x00000771, 0x0080 }, /* R1905 (0x771) - AIF2TX7MIX Input 1 Volume */
+ { 0x00000772, 0x0000 }, /* R1906 (0x772) - AIF2TX7MIX Input 2 Source */
+ { 0x00000773, 0x0080 }, /* R1907 (0x773) - AIF2TX7MIX Input 2 Volume */
+ { 0x00000774, 0x0000 }, /* R1908 (0x774) - AIF2TX7MIX Input 3 Source */
+ { 0x00000775, 0x0080 }, /* R1909 (0x775) - AIF2TX7MIX Input 3 Volume */
+ { 0x00000776, 0x0000 }, /* R1910 (0x776) - AIF2TX7MIX Input 4 Source */
+ { 0x00000777, 0x0080 }, /* R1911 (0x777) - AIF2TX7MIX Input 4 Volume */
+ { 0x00000778, 0x0000 }, /* R1912 (0x778) - AIF2TX8MIX Input 1 Source */
+ { 0x00000779, 0x0080 }, /* R1913 (0x779) - AIF2TX8MIX Input 1 Volume */
+ { 0x0000077a, 0x0000 }, /* R1914 (0x77a) - AIF2TX8MIX Input 2 Source */
+ { 0x0000077b, 0x0080 }, /* R1915 (0x77b) - AIF2TX8MIX Input 2 Volume */
+ { 0x0000077c, 0x0000 }, /* R1916 (0x77c) - AIF2TX8MIX Input 3 Source */
+ { 0x0000077d, 0x0080 }, /* R1917 (0x77d) - AIF2TX8MIX Input 3 Volume */
+ { 0x0000077e, 0x0000 }, /* R1918 (0x77e) - AIF2TX8MIX Input 4 Source */
+ { 0x0000077f, 0x0080 }, /* R1919 (0x77f) - AIF2TX8MIX Input 4 Volume */
+ { 0x00000780, 0x0000 }, /* R1920 (0x780) - AIF3TX1MIX Input 1 Source */
+ { 0x00000781, 0x0080 }, /* R1921 (0x781) - AIF3TX1MIX Input 1 Volume */
+ { 0x00000782, 0x0000 }, /* R1922 (0x782) - AIF3TX1MIX Input 2 Source */
+ { 0x00000783, 0x0080 }, /* R1923 (0x783) - AIF3TX1MIX Input 2 Volume */
+ { 0x00000784, 0x0000 }, /* R1924 (0x784) - AIF3TX1MIX Input 3 Source */
+ { 0x00000785, 0x0080 }, /* R1925 (0x785) - AIF3TX1MIX Input 3 Volume */
+ { 0x00000786, 0x0000 }, /* R1926 (0x786) - AIF3TX1MIX Input 4 Source */
+ { 0x00000787, 0x0080 }, /* R1927 (0x787) - AIF3TX1MIX Input 4 Volume */
+ { 0x00000788, 0x0000 }, /* R1928 (0x788) - AIF3TX2MIX Input 1 Source */
+ { 0x00000789, 0x0080 }, /* R1929 (0x789) - AIF3TX2MIX Input 1 Volume */
+ { 0x0000078a, 0x0000 }, /* R1930 (0x78a) - AIF3TX2MIX Input 2 Source */
+ { 0x0000078b, 0x0080 }, /* R1931 (0x78b) - AIF3TX2MIX Input 2 Volume */
+ { 0x0000078c, 0x0000 }, /* R1932 (0x78c) - AIF3TX2MIX Input 3 Source */
+ { 0x0000078d, 0x0080 }, /* R1933 (0x78d) - AIF3TX2MIX Input 3 Volume */
+ { 0x0000078e, 0x0000 }, /* R1934 (0x78e) - AIF3TX2MIX Input 4 Source */
+ { 0x0000078f, 0x0080 }, /* R1935 (0x78f) - AIF3TX2MIX Input 4 Volume */
+ { 0x000007a0, 0x0000 }, /* R1952 (0x7a0) - AIF4TX1MIX Input 1 Source */
+ { 0x000007a1, 0x0080 }, /* R1953 (0x7a1) - AIF4TX1MIX Input 1 Volume */
+ { 0x000007a2, 0x0000 }, /* R1954 (0x7a2) - AIF4TX1MIX Input 2 Source */
+ { 0x000007a3, 0x0080 }, /* R1955 (0x7a3) - AIF4TX1MIX Input 2 Volume */
+ { 0x000007a4, 0x0000 }, /* R1956 (0x7a4) - AIF4TX1MIX Input 3 Source */
+ { 0x000007a5, 0x0080 }, /* R1957 (0x7a5) - AIF4TX1MIX Input 3 Volume */
+ { 0x000007a6, 0x0000 }, /* R1958 (0x7a6) - AIF4TX1MIX Input 4 Source */
+ { 0x000007a7, 0x0080 }, /* R1959 (0x7a7) - AIF4TX1MIX Input 4 Volume */
+ { 0x000007a8, 0x0000 }, /* R1960 (0x7a8) - AIF4TX2MIX Input 1 Source */
+ { 0x000007a9, 0x0080 }, /* R1961 (0x7a9) - AIF4TX2MIX Input 1 Volume */
+ { 0x000007aa, 0x0000 }, /* R1962 (0x7aa) - AIF4TX2MIX Input 2 Source */
+ { 0x000007ab, 0x0080 }, /* R1963 (0x7ab) - AIF4TX2MIX Input 2 Volume */
+ { 0x000007ac, 0x0000 }, /* R1964 (0x7ac) - AIF4TX2MIX Input 3 Source */
+ { 0x000007ad, 0x0080 }, /* R1965 (0x7ad) - AIF4TX2MIX Input 3 Volume */
+ { 0x000007ae, 0x0000 }, /* R1966 (0x7ae) - AIF4TX2MIX Input 4 Source */
+ { 0x000007af, 0x0080 }, /* R1967 (0x7af) - AIF4TX2MIX Input 4 Volume */
+ { 0x000007c0, 0x0000 }, /* R1984 (0x7c0) - SLIMTX1MIX Input 1 Source */
+ { 0x000007c1, 0x0080 }, /* R1985 (0x7c1) - SLIMTX1MIX Input 1 Volume */
+ { 0x000007c2, 0x0000 }, /* R1986 (0x7c2) - SLIMTX1MIX Input 2 Source */
+ { 0x000007c3, 0x0080 }, /* R1987 (0x7c3) - SLIMTX1MIX Input 2 Volume */
+ { 0x000007c4, 0x0000 }, /* R1988 (0x7c4) - SLIMTX1MIX Input 3 Source */
+ { 0x000007c5, 0x0080 }, /* R1989 (0x7c5) - SLIMTX1MIX Input 3 Volume */
+ { 0x000007c6, 0x0000 }, /* R1990 (0x7c6) - SLIMTX1MIX Input 4 Source */
+ { 0x000007c7, 0x0080 }, /* R1991 (0x7c7) - SLIMTX1MIX Input 4 Volume */
+ { 0x000007c8, 0x0000 }, /* R1992 (0x7c8) - SLIMTX2MIX Input 1 Source */
+ { 0x000007c9, 0x0080 }, /* R1993 (0x7c9) - SLIMTX2MIX Input 1 Volume */
+ { 0x000007ca, 0x0000 }, /* R1994 (0x7ca) - SLIMTX2MIX Input 2 Source */
+ { 0x000007cb, 0x0080 }, /* R1995 (0x7cb) - SLIMTX2MIX Input 2 Volume */
+ { 0x000007cc, 0x0000 }, /* R1996 (0x7cc) - SLIMTX2MIX Input 3 Source */
+ { 0x000007cd, 0x0080 }, /* R1997 (0x7cd) - SLIMTX2MIX Input 3 Volume */
+ { 0x000007ce, 0x0000 }, /* R1998 (0x7ce) - SLIMTX2MIX Input 4 Source */
+ { 0x000007cf, 0x0080 }, /* R1999 (0x7cf) - SLIMTX2MIX Input 4 Volume */
+ { 0x000007d0, 0x0000 }, /* R2000 (0x7d0) - SLIMTX3MIX Input 1 Source */
+ { 0x000007d1, 0x0080 }, /* R2001 (0x7d1) - SLIMTX3MIX Input 1 Volume */
+ { 0x000007d2, 0x0000 }, /* R2002 (0x7d2) - SLIMTX3MIX Input 2 Source */
+ { 0x000007d3, 0x0080 }, /* R2003 (0x7d3) - SLIMTX3MIX Input 2 Volume */
+ { 0x000007d4, 0x0000 }, /* R2004 (0x7d4) - SLIMTX3MIX Input 3 Source */
+ { 0x000007d5, 0x0080 }, /* R2005 (0x7d5) - SLIMTX3MIX Input 3 Volume */
+ { 0x000007d6, 0x0000 }, /* R2006 (0x7d6) - SLIMTX3MIX Input 4 Source */
+ { 0x000007d7, 0x0080 }, /* R2007 (0x7d7) - SLIMTX3MIX Input 4 Volume */
+ { 0x000007d8, 0x0000 }, /* R2008 (0x7d8) - SLIMTX4MIX Input 1 Source */
+ { 0x000007d9, 0x0080 }, /* R2009 (0x7d9) - SLIMTX4MIX Input 1 Volume */
+ { 0x000007da, 0x0000 }, /* R2010 (0x7da) - SLIMTX4MIX Input 2 Source */
+ { 0x000007db, 0x0080 }, /* R2011 (0x7db) - SLIMTX4MIX Input 2 Volume */
+ { 0x000007dc, 0x0000 }, /* R2012 (0x7dc) - SLIMTX4MIX Input 3 Source */
+ { 0x000007dd, 0x0080 }, /* R2013 (0x7dd) - SLIMTX4MIX Input 3 Volume */
+ { 0x000007de, 0x0000 }, /* R2014 (0x7de) - SLIMTX4MIX Input 4 Source */
+ { 0x000007df, 0x0080 }, /* R2015 (0x7df) - SLIMTX4MIX Input 4 Volume */
+ { 0x000007e0, 0x0000 }, /* R2016 (0x7e0) - SLIMTX5MIX Input 1 Source */
+ { 0x000007e1, 0x0080 }, /* R2017 (0x7e1) - SLIMTX5MIX Input 1 Volume */
+ { 0x000007e2, 0x0000 }, /* R2018 (0x7e2) - SLIMTX5MIX Input 2 Source */
+ { 0x000007e3, 0x0080 }, /* R2019 (0x7e3) - SLIMTX5MIX Input 2 Volume */
+ { 0x000007e4, 0x0000 }, /* R2020 (0x7e4) - SLIMTX5MIX Input 3 Source */
+ { 0x000007e5, 0x0080 }, /* R2021 (0x7e5) - SLIMTX5MIX Input 3 Volume */
+ { 0x000007e6, 0x0000 }, /* R2022 (0x7e6) - SLIMTX5MIX Input 4 Source */
+ { 0x000007e7, 0x0080 }, /* R2023 (0x7e7) - SLIMTX5MIX Input 4 Volume */
+ { 0x000007e8, 0x0000 }, /* R2024 (0x7e8) - SLIMTX6MIX Input 1 Source */
+ { 0x000007e9, 0x0080 }, /* R2025 (0x7e9) - SLIMTX6MIX Input 1 Volume */
+ { 0x000007ea, 0x0000 }, /* R2026 (0x7ea) - SLIMTX6MIX Input 2 Source */
+ { 0x000007eb, 0x0080 }, /* R2027 (0x7eb) - SLIMTX6MIX Input 2 Volume */
+ { 0x000007ec, 0x0000 }, /* R2028 (0x7ec) - SLIMTX6MIX Input 3 Source */
+ { 0x000007ed, 0x0080 }, /* R2029 (0x7ed) - SLIMTX6MIX Input 3 Volume */
+ { 0x000007ee, 0x0000 }, /* R2030 (0x7ee) - SLIMTX6MIX Input 4 Source */
+ { 0x000007ef, 0x0080 }, /* R2031 (0x7ef) - SLIMTX6MIX Input 4 Volume */
+ { 0x000007f0, 0x0000 }, /* R2032 (0x7f0) - SLIMTX7MIX Input 1 Source */
+ { 0x000007f1, 0x0080 }, /* R2033 (0x7f1) - SLIMTX7MIX Input 1 Volume */
+ { 0x000007f2, 0x0000 }, /* R2034 (0x7f2) - SLIMTX7MIX Input 2 Source */
+ { 0x000007f3, 0x0080 }, /* R2035 (0x7f3) - SLIMTX7MIX Input 2 Volume */
+ { 0x000007f4, 0x0000 }, /* R2036 (0x7f4) - SLIMTX7MIX Input 3 Source */
+ { 0x000007f5, 0x0080 }, /* R2037 (0x7f5) - SLIMTX7MIX Input 3 Volume */
+ { 0x000007f6, 0x0000 }, /* R2038 (0x7f6) - SLIMTX7MIX Input 4 Source */
+ { 0x000007f7, 0x0080 }, /* R2039 (0x7f7) - SLIMTX7MIX Input 4 Volume */
+ { 0x000007f8, 0x0000 }, /* R2040 (0x7f8) - SLIMTX8MIX Input 1 Source */
+ { 0x000007f9, 0x0080 }, /* R2041 (0x7f9) - SLIMTX8MIX Input 1 Volume */
+ { 0x000007fa, 0x0000 }, /* R2042 (0x7fa) - SLIMTX8MIX Input 2 Source */
+ { 0x000007fb, 0x0080 }, /* R2043 (0x7fb) - SLIMTX8MIX Input 2 Volume */
+ { 0x000007fc, 0x0000 }, /* R2044 (0x7fc) - SLIMTX8MIX Input 3 Source */
+ { 0x000007fd, 0x0080 }, /* R2045 (0x7fd) - SLIMTX8MIX Input 3 Volume */
+ { 0x000007fe, 0x0000 }, /* R2046 (0x7fe) - SLIMTX8MIX Input 4 Source */
+ { 0x000007ff, 0x0080 }, /* R2047 (0x7ff) - SLIMTX8MIX Input 4 Volume */
+ { 0x00000800, 0x0000 }, /* R2048 (0x800) - SPDIF1TX1MIX Input 1 Source */
+ { 0x00000801, 0x0080 }, /* R2049 (0x801) - SPDIF1TX1MIX Input 1 Volume */
+ { 0x00000808, 0x0000 }, /* R2056 (0x808) - SPDIF1TX2MIX Input 1 Source */
+ { 0x00000809, 0x0080 }, /* R2057 (0x809) - SPDIF1TX2MIX Input 1 Volume */
+ { 0x00000880, 0x0000 }, /* R2176 (0x880) - EQ1MIX Input 1 Source */
+ { 0x00000881, 0x0080 }, /* R2177 (0x881) - EQ1MIX Input 1 Volume */
+ { 0x00000882, 0x0000 }, /* R2178 (0x882) - EQ1MIX Input 2 Source */
+ { 0x00000883, 0x0080 }, /* R2179 (0x883) - EQ1MIX Input 2 Volume */
+ { 0x00000884, 0x0000 }, /* R2180 (0x884) - EQ1MIX Input 3 Source */
+ { 0x00000885, 0x0080 }, /* R2181 (0x885) - EQ1MIX Input 3 Volume */
+ { 0x00000886, 0x0000 }, /* R2182 (0x886) - EQ1MIX Input 4 Source */
+ { 0x00000887, 0x0080 }, /* R2183 (0x887) - EQ1MIX Input 4 Volume */
+ { 0x00000888, 0x0000 }, /* R2184 (0x888) - EQ2MIX Input 1 Source */
+ { 0x00000889, 0x0080 }, /* R2185 (0x889) - EQ2MIX Input 1 Volume */
+ { 0x0000088a, 0x0000 }, /* R2186 (0x88a) - EQ2MIX Input 2 Source */
+ { 0x0000088b, 0x0080 }, /* R2187 (0x88b) - EQ2MIX Input 2 Volume */
+ { 0x0000088c, 0x0000 }, /* R2188 (0x88c) - EQ2MIX Input 3 Source */
+ { 0x0000088d, 0x0080 }, /* R2189 (0x88d) - EQ2MIX Input 3 Volume */
+ { 0x0000088e, 0x0000 }, /* R2190 (0x88e) - EQ2MIX Input 4 Source */
+ { 0x0000088f, 0x0080 }, /* R2191 (0x88f) - EQ2MIX Input 4 Volume */
+ { 0x00000890, 0x0000 }, /* R2192 (0x890) - EQ3MIX Input 1 Source */
+ { 0x00000891, 0x0080 }, /* R2193 (0x891) - EQ3MIX Input 1 Volume */
+ { 0x00000892, 0x0000 }, /* R2194 (0x892) - EQ3MIX Input 2 Source */
+ { 0x00000893, 0x0080 }, /* R2195 (0x893) - EQ3MIX Input 2 Volume */
+ { 0x00000894, 0x0000 }, /* R2196 (0x894) - EQ3MIX Input 3 Source */
+ { 0x00000895, 0x0080 }, /* R2197 (0x895) - EQ3MIX Input 3 Volume */
+ { 0x00000896, 0x0000 }, /* R2198 (0x896) - EQ3MIX Input 4 Source */
+ { 0x00000897, 0x0080 }, /* R2199 (0x897) - EQ3MIX Input 4 Volume */
+ { 0x00000898, 0x0000 }, /* R2200 (0x898) - EQ4MIX Input 1 Source */
+ { 0x00000899, 0x0080 }, /* R2201 (0x899) - EQ4MIX Input 1 Volume */
+ { 0x0000089a, 0x0000 }, /* R2202 (0x89a) - EQ4MIX Input 2 Source */
+ { 0x0000089b, 0x0080 }, /* R2203 (0x89b) - EQ4MIX Input 2 Volume */
+ { 0x0000089c, 0x0000 }, /* R2204 (0x89c) - EQ4MIX Input 3 Source */
+ { 0x0000089d, 0x0080 }, /* R2205 (0x89d) - EQ4MIX Input 3 Volume */
+ { 0x0000089e, 0x0000 }, /* R2206 (0x89e) - EQ4MIX Input 4 Source */
+ { 0x0000089f, 0x0080 }, /* R2207 (0x89f) - EQ4MIX Input 4 Volume */
+ { 0x000008c0, 0x0000 }, /* R2240 (0x8c0) - DRC1LMIX Input 1 Source */
+ { 0x000008c1, 0x0080 }, /* R2241 (0x8c1) - DRC1LMIX Input 1 Volume */
+ { 0x000008c2, 0x0000 }, /* R2242 (0x8c2) - DRC1LMIX Input 2 Source */
+ { 0x000008c3, 0x0080 }, /* R2243 (0x8c3) - DRC1LMIX Input 2 Volume */
+ { 0x000008c4, 0x0000 }, /* R2244 (0x8c4) - DRC1LMIX Input 3 Source */
+ { 0x000008c5, 0x0080 }, /* R2245 (0x8c5) - DRC1LMIX Input 3 Volume */
+ { 0x000008c6, 0x0000 }, /* R2246 (0x8c6) - DRC1LMIX Input 4 Source */
+ { 0x000008c7, 0x0080 }, /* R2247 (0x8c7) - DRC1LMIX Input 4 Volume */
+ { 0x000008c8, 0x0000 }, /* R2248 (0x8c8) - DRC1RMIX Input 1 Source */
+ { 0x000008c9, 0x0080 }, /* R2249 (0x8c9) - DRC1RMIX Input 1 Volume */
+ { 0x000008ca, 0x0000 }, /* R2250 (0x8ca) - DRC1RMIX Input 2 Source */
+ { 0x000008cb, 0x0080 }, /* R2251 (0x8cb) - DRC1RMIX Input 2 Volume */
+ { 0x000008cc, 0x0000 }, /* R2252 (0x8cc) - DRC1RMIX Input 3 Source */
+ { 0x000008cd, 0x0080 }, /* R2253 (0x8cd) - DRC1RMIX Input 3 Volume */
+ { 0x000008ce, 0x0000 }, /* R2254 (0x8ce) - DRC1RMIX Input 4 Source */
+ { 0x000008cf, 0x0080 }, /* R2255 (0x8cf) - DRC1RMIX Input 4 Volume */
+ { 0x000008d0, 0x0000 }, /* R2256 (0x8d0) - DRC2LMIX Input 1 Source */
+ { 0x000008d1, 0x0080 }, /* R2257 (0x8d1) - DRC2LMIX Input 1 Volume */
+ { 0x000008d2, 0x0000 }, /* R2258 (0x8d2) - DRC2LMIX Input 2 Source */
+ { 0x000008d3, 0x0080 }, /* R2259 (0x8d3) - DRC2LMIX Input 2 Volume */
+ { 0x000008d4, 0x0000 }, /* R2260 (0x8d4) - DRC2LMIX Input 3 Source */
+ { 0x000008d5, 0x0080 }, /* R2261 (0x8d5) - DRC2LMIX Input 3 Volume */
+ { 0x000008d6, 0x0000 }, /* R2262 (0x8d6) - DRC2LMIX Input 4 Source */
+ { 0x000008d7, 0x0080 }, /* R2263 (0x8d7) - DRC2LMIX Input 4 Volume */
+ { 0x000008d8, 0x0000 }, /* R2264 (0x8d8) - DRC2RMIX Input 1 Source */
+ { 0x000008d9, 0x0080 }, /* R2265 (0x8d9) - DRC2RMIX Input 1 Volume */
+ { 0x000008da, 0x0000 }, /* R2266 (0x8da) - DRC2RMIX Input 2 Source */
+ { 0x000008db, 0x0080 }, /* R2267 (0x8db) - DRC2RMIX Input 2 Volume */
+ { 0x000008dc, 0x0000 }, /* R2268 (0x8dc) - DRC2RMIX Input 3 Source */
+ { 0x000008dd, 0x0080 }, /* R2269 (0x8dd) - DRC2RMIX Input 3 Volume */
+ { 0x000008de, 0x0000 }, /* R2270 (0x8de) - DRC2RMIX Input 4 Source */
+ { 0x000008df, 0x0080 }, /* R2271 (0x8df) - DRC2RMIX Input 4 Volume */
+ { 0x00000900, 0x0000 }, /* R2304 (0x900) - HPLP1MIX Input 1 Source */
+ { 0x00000901, 0x0080 }, /* R2305 (0x901) - HPLP1MIX Input 1 Volume */
+ { 0x00000902, 0x0000 }, /* R2306 (0x902) - HPLP1MIX Input 2 Source */
+ { 0x00000903, 0x0080 }, /* R2307 (0x903) - HPLP1MIX Input 2 Volume */
+ { 0x00000904, 0x0000 }, /* R2308 (0x904) - HPLP1MIX Input 3 Source */
+ { 0x00000905, 0x0080 }, /* R2309 (0x905) - HPLP1MIX Input 3 Volume */
+ { 0x00000906, 0x0000 }, /* R2310 (0x906) - HPLP1MIX Input 4 Source */
+ { 0x00000907, 0x0080 }, /* R2311 (0x907) - HPLP1MIX Input 4 Volume */
+ { 0x00000908, 0x0000 }, /* R2312 (0x908) - HPLP2MIX Input 1 Source */
+ { 0x00000909, 0x0080 }, /* R2313 (0x909) - HPLP2MIX Input 1 Volume */
+ { 0x0000090a, 0x0000 }, /* R2314 (0x90a) - HPLP2MIX Input 2 Source */
+ { 0x0000090b, 0x0080 }, /* R2315 (0x90b) - HPLP2MIX Input 2 Volume */
+ { 0x0000090c, 0x0000 }, /* R2316 (0x90c) - HPLP2MIX Input 3 Source */
+ { 0x0000090d, 0x0080 }, /* R2317 (0x90d) - HPLP2MIX Input 3 Volume */
+ { 0x0000090e, 0x0000 }, /* R2318 (0x90e) - HPLP2MIX Input 4 Source */
+ { 0x0000090f, 0x0080 }, /* R2319 (0x90f) - HPLP2MIX Input 4 Volume */
+ { 0x00000910, 0x0000 }, /* R2320 (0x910) - HPLP3MIX Input 1 Source */
+ { 0x00000911, 0x0080 }, /* R2321 (0x911) - HPLP3MIX Input 1 Volume */
+ { 0x00000912, 0x0000 }, /* R2322 (0x912) - HPLP3MIX Input 2 Source */
+ { 0x00000913, 0x0080 }, /* R2323 (0x913) - HPLP3MIX Input 2 Volume */
+ { 0x00000914, 0x0000 }, /* R2324 (0x914) - HPLP3MIX Input 3 Source */
+ { 0x00000915, 0x0080 }, /* R2325 (0x915) - HPLP3MIX Input 3 Volume */
+ { 0x00000916, 0x0000 }, /* R2326 (0x916) - HPLP3MIX Input 4 Source */
+ { 0x00000917, 0x0080 }, /* R2327 (0x917) - HPLP3MIX Input 4 Volume */
+ { 0x00000918, 0x0000 }, /* R2328 (0x918) - HPLP4MIX Input 1 Source */
+ { 0x00000919, 0x0080 }, /* R2329 (0x919) - HPLP4MIX Input 1 Volume */
+ { 0x0000091a, 0x0000 }, /* R2330 (0x91a) - HPLP4MIX Input 2 Source */
+ { 0x0000091b, 0x0080 }, /* R2331 (0x91b) - HPLP4MIX Input 2 Volume */
+ { 0x0000091c, 0x0000 }, /* R2332 (0x91c) - HPLP4MIX Input 3 Source */
+ { 0x0000091d, 0x0080 }, /* R2333 (0x91d) - HPLP4MIX Input 3 Volume */
+ { 0x0000091e, 0x0000 }, /* R2334 (0x91e) - HPLP4MIX Input 4 Source */
+ { 0x0000091f, 0x0080 }, /* R2335 (0x91f) - HPLP4MIX Input 4 Volume */
+ { 0x00000940, 0x0000 }, /* R2368 (0x940) - DSP1LMIX Input 1 Source */
+ { 0x00000941, 0x0080 }, /* R2369 (0x941) - DSP1LMIX Input 1 Volume */
+ { 0x00000942, 0x0000 }, /* R2370 (0x942) - DSP1LMIX Input 2 Source */
+ { 0x00000943, 0x0080 }, /* R2371 (0x943) - DSP1LMIX Input 2 Volume */
+ { 0x00000944, 0x0000 }, /* R2372 (0x944) - DSP1LMIX Input 3 Source */
+ { 0x00000945, 0x0080 }, /* R2373 (0x945) - DSP1LMIX Input 3 Volume */
+ { 0x00000946, 0x0000 }, /* R2374 (0x946) - DSP1LMIX Input 4 Source */
+ { 0x00000947, 0x0080 }, /* R2375 (0x947) - DSP1LMIX Input 4 Volume */
+ { 0x00000948, 0x0000 }, /* R2376 (0x948) - DSP1RMIX Input 1 Source */
+ { 0x00000949, 0x0080 }, /* R2377 (0x949) - DSP1RMIX Input 1 Volume */
+ { 0x0000094a, 0x0000 }, /* R2378 (0x94a) - DSP1RMIX Input 2 Source */
+ { 0x0000094b, 0x0080 }, /* R2379 (0x94b) - DSP1RMIX Input 2 Volume */
+ { 0x0000094c, 0x0000 }, /* R2380 (0x94c) - DSP1RMIX Input 3 Source */
+ { 0x0000094d, 0x0080 }, /* R2381 (0x94d) - DSP1RMIX Input 3 Volume */
+ { 0x0000094e, 0x0000 }, /* R2382 (0x94e) - DSP1RMIX Input 4 Source */
+ { 0x0000094f, 0x0080 }, /* R2383 (0x94f) - DSP1RMIX Input 4 Volume */
+ { 0x00000950, 0x0000 }, /* R2384 (0x950) - DSP1AUX1MIX Input 1 Source */
+ { 0x00000958, 0x0000 }, /* R2392 (0x958) - DSP1AUX2MIX Input 1 Source */
+ { 0x00000960, 0x0000 }, /* R2400 (0x960) - DSP1AUX3MIX Input 1 Source */
+ { 0x00000968, 0x0000 }, /* R2408 (0x968) - DSP1AUX4MIX Input 1 Source */
+ { 0x00000970, 0x0000 }, /* R2416 (0x970) - DSP1AUX5MIX Input 1 Source */
+ { 0x00000978, 0x0000 }, /* R2424 (0x978) - DSP1AUX6MIX Input 1 Source */
+ { 0x00000980, 0x0000 }, /* R2432 (0x980) - DSP2LMIX Input 1 Source */
+ { 0x00000981, 0x0080 }, /* R2433 (0x981) - DSP2LMIX Input 1 Volume */
+ { 0x00000982, 0x0000 }, /* R2434 (0x982) - DSP2LMIX Input 2 Source */
+ { 0x00000983, 0x0080 }, /* R2435 (0x983) - DSP2LMIX Input 2 Volume */
+ { 0x00000984, 0x0000 }, /* R2436 (0x984) - DSP2LMIX Input 3 Source */
+ { 0x00000985, 0x0080 }, /* R2437 (0x985) - DSP2LMIX Input 3 Volume */
+ { 0x00000986, 0x0000 }, /* R2438 (0x986) - DSP2LMIX Input 4 Source */
+ { 0x00000987, 0x0080 }, /* R2439 (0x987) - DSP2LMIX Input 4 Volume */
+ { 0x00000988, 0x0000 }, /* R2440 (0x988) - DSP2RMIX Input 1 Source */
+ { 0x00000989, 0x0080 }, /* R2441 (0x989) - DSP2RMIX Input 1 Volume */
+ { 0x0000098a, 0x0000 }, /* R2442 (0x98a) - DSP2RMIX Input 2 Source */
+ { 0x0000098b, 0x0080 }, /* R2443 (0x98b) - DSP2RMIX Input 2 Volume */
+ { 0x0000098c, 0x0000 }, /* R2444 (0x98c) - DSP2RMIX Input 3 Source */
+ { 0x0000098d, 0x0080 }, /* R2445 (0x98d) - DSP2RMIX Input 3 Volume */
+ { 0x0000098e, 0x0000 }, /* R2446 (0x98e) - DSP2RMIX Input 4 Source */
+ { 0x0000098f, 0x0080 }, /* R2447 (0x98f) - DSP2RMIX Input 4 Volume */
+ { 0x00000990, 0x0000 }, /* R2448 (0x990) - DSP2AUX1MIX Input 1 Source */
+ { 0x00000998, 0x0000 }, /* R2456 (0x998) - DSP2AUX2MIX Input 1 Source */
+ { 0x000009a0, 0x0000 }, /* R2464 (0x9a0) - DSP2AUX3MIX Input 1 Source */
+ { 0x000009a8, 0x0000 }, /* R2472 (0x9a8) - DSP2AUX4MIX Input 1 Source */
+ { 0x000009b0, 0x0000 }, /* R2480 (0x9b0) - DSP2AUX5MIX Input 1 Source */
+ { 0x000009b8, 0x0000 }, /* R2488 (0x9b8) - DSP2AUX6MIX Input 1 Source */
+ { 0x000009c0, 0x0000 }, /* R2496 (0x9c0) - DSP3LMIX Input 1 Source */
+ { 0x000009c1, 0x0080 }, /* R2497 (0x9c1) - DSP3LMIX Input 1 Volume */
+ { 0x000009c2, 0x0000 }, /* R2498 (0x9c2) - DSP3LMIX Input 2 Source */
+ { 0x000009c3, 0x0080 }, /* R2499 (0x9c3) - DSP3LMIX Input 2 Volume */
+ { 0x000009c4, 0x0000 }, /* R2500 (0x9c4) - DSP3LMIX Input 3 Source */
+ { 0x000009c5, 0x0080 }, /* R2501 (0x9c5) - DSP3LMIX Input 3 Volume */
+ { 0x000009c6, 0x0000 }, /* R2502 (0x9c6) - DSP3LMIX Input 4 Source */
+ { 0x000009c7, 0x0080 }, /* R2503 (0x9c7) - DSP3LMIX Input 4 Volume */
+ { 0x000009c8, 0x0000 }, /* R2504 (0x9c8) - DSP3RMIX Input 1 Source */
+ { 0x000009c9, 0x0080 }, /* R2505 (0x9c9) - DSP3RMIX Input 1 Volume */
+ { 0x000009ca, 0x0000 }, /* R2506 (0x9ca) - DSP3RMIX Input 2 Source */
+ { 0x000009cb, 0x0080 }, /* R2507 (0x9cb) - DSP3RMIX Input 2 Volume */
+ { 0x000009cc, 0x0000 }, /* R2508 (0x9cc) - DSP3RMIX Input 3 Source */
+ { 0x000009cd, 0x0080 }, /* R2509 (0x9cd) - DSP3RMIX Input 3 Volume */
+ { 0x000009ce, 0x0000 }, /* R2510 (0x9ce) - DSP3RMIX Input 4 Source */
+ { 0x000009cf, 0x0080 }, /* R2511 (0x9cf) - DSP3RMIX Input 4 Volume */
+ { 0x000009d0, 0x0000 }, /* R2512 (0x9d0) - DSP3AUX1MIX Input 1 Source */
+ { 0x000009d8, 0x0000 }, /* R2520 (0x9d8) - DSP3AUX2MIX Input 1 Source */
+ { 0x000009e0, 0x0000 }, /* R2528 (0x9e0) - DSP3AUX3MIX Input 1 Source */
+ { 0x000009e8, 0x0000 }, /* R2536 (0x9e8) - DSP3AUX4MIX Input 1 Source */
+ { 0x000009f0, 0x0000 }, /* R2544 (0x9f0) - DSP3AUX5MIX Input 1 Source */
+ { 0x000009f8, 0x0000 }, /* R2552 (0x9f8) - DSP3AUX6MIX Input 1 Source */
+ { 0x00000a00, 0x0000 }, /* R2560 (0xa00) - DSP4LMIX Input 1 Source */
+ { 0x00000a01, 0x0080 }, /* R2561 (0xa01) - DSP4LMIX Input 1 Volume */
+ { 0x00000a02, 0x0000 }, /* R2562 (0xa02) - DSP4LMIX Input 2 Source */
+ { 0x00000a03, 0x0080 }, /* R2563 (0xa03) - DSP4LMIX Input 2 Volume */
+ { 0x00000a04, 0x0000 }, /* R2564 (0xa04) - DSP4LMIX Input 3 Source */
+ { 0x00000a05, 0x0080 }, /* R2565 (0xa05) - DSP4LMIX Input 3 Volume */
+ { 0x00000a06, 0x0000 }, /* R2566 (0xa06) - DSP4LMIX Input 4 Source */
+ { 0x00000a07, 0x0080 }, /* R2567 (0xa07) - DSP4LMIX Input 4 Volume */
+ { 0x00000a08, 0x0000 }, /* R2568 (0xa08) - DSP4RMIX Input 1 Source */
+ { 0x00000a09, 0x0080 }, /* R2569 (0xa09) - DSP4RMIX Input 1 Volume */
+ { 0x00000a0a, 0x0000 }, /* R2570 (0xa0a) - DSP4RMIX Input 2 Source */
+ { 0x00000a0b, 0x0080 }, /* R2571 (0xa0b) - DSP4RMIX Input 2 Volume */
+ { 0x00000a0c, 0x0000 }, /* R2572 (0xa0c) - DSP4RMIX Input 3 Source */
+ { 0x00000a0d, 0x0080 }, /* R2573 (0xa0d) - DSP4RMIX Input 3 Volume */
+ { 0x00000a0e, 0x0000 }, /* R2574 (0xa0e) - DSP4RMIX Input 4 Source */
+ { 0x00000a0f, 0x0080 }, /* R2575 (0xa0f) - DSP4RMIX Input 4 Volume */
+ { 0x00000a10, 0x0000 }, /* R2576 (0xa10) - DSP4AUX1MIX Input 1 Source */
+ { 0x00000a18, 0x0000 }, /* R2584 (0xa18) - DSP4AUX2MIX Input 1 Source */
+ { 0x00000a20, 0x0000 }, /* R2592 (0xa20) - DSP4AUX3MIX Input 1 Source */
+ { 0x00000a28, 0x0000 }, /* R2600 (0xa28) - DSP4AUX4MIX Input 1 Source */
+ { 0x00000a30, 0x0000 }, /* R2608 (0xa30) - DSP4AUX5MIX Input 1 Source */
+ { 0x00000a38, 0x0000 }, /* R2616 (0xa38) - DSP4AUX6MIX Input 1 Source */
+ { 0x00000a40, 0x0000 }, /* R2624 (0xa40) - DSP5LMIX Input 1 Source */
+ { 0x00000a41, 0x0080 }, /* R2625 (0xa41) - DSP5LMIX Input 1 Volume */
+ { 0x00000a42, 0x0000 }, /* R2626 (0xa42) - DSP5LMIX Input 2 Source */
+ { 0x00000a43, 0x0080 }, /* R2627 (0xa43) - DSP5LMIX Input 2 Volume */
+ { 0x00000a44, 0x0000 }, /* R2628 (0xa44) - DSP5LMIX Input 3 Source */
+ { 0x00000a45, 0x0080 }, /* R2629 (0xa45) - DSP5LMIX Input 3 Volume */
+ { 0x00000a46, 0x0000 }, /* R2630 (0xa46) - DSP5LMIX Input 4 Source */
+ { 0x00000a47, 0x0080 }, /* R2631 (0xa47) - DSP5LMIX Input 4 Volume */
+ { 0x00000a48, 0x0000 }, /* R2632 (0xa48) - DSP5RMIX Input 1 Source */
+ { 0x00000a49, 0x0080 }, /* R2633 (0xa49) - DSP5RMIX Input 1 Volume */
+ { 0x00000a4a, 0x0000 }, /* R2634 (0xa4a) - DSP5RMIX Input 2 Source */
+ { 0x00000a4b, 0x0080 }, /* R2635 (0xa4b) - DSP5RMIX Input 2 Volume */
+ { 0x00000a4c, 0x0000 }, /* R2636 (0xa4c) - DSP5RMIX Input 3 Source */
+ { 0x00000a4d, 0x0080 }, /* R2637 (0xa4d) - DSP5RMIX Input 3 Volume */
+ { 0x00000a4e, 0x0000 }, /* R2638 (0xa4e) - DSP5RMIX Input 4 Source */
+ { 0x00000a4f, 0x0080 }, /* R2639 (0xa4f) - DSP5RMIX Input 4 Volume */
+ { 0x00000a50, 0x0000 }, /* R2640 (0xa50) - DSP5AUX1MIX Input 1 Source */
+ { 0x00000a58, 0x0000 }, /* R2658 (0xa58) - DSP5AUX2MIX Input 1 Source */
+ { 0x00000a60, 0x0000 }, /* R2656 (0xa60) - DSP5AUX3MIX Input 1 Source */
+ { 0x00000a68, 0x0000 }, /* R2664 (0xa68) - DSP5AUX4MIX Input 1 Source */
+ { 0x00000a70, 0x0000 }, /* R2672 (0xa70) - DSP5AUX5MIX Input 1 Source */
+ { 0x00000a78, 0x0000 }, /* R2680 (0xa78) - DSP5AUX6MIX Input 1 Source */
+ { 0x00000a80, 0x0000 }, /* R2688 (0xa80) - ASRC1_1LMIX Input 1 Source */
+ { 0x00000a88, 0x0000 }, /* R2696 (0xa88) - ASRC1_1RMIX Input 1 Source */
+ { 0x00000a90, 0x0000 }, /* R2704 (0xa90) - ASRC1_2LMIX Input 1 Source */
+ { 0x00000a98, 0x0000 }, /* R2712 (0xa98) - ASRC1_2RMIX Input 1 Source */
+ { 0x00000aa0, 0x0000 }, /* R2720 (0xaa0) - ASRC2_1LMIX Input 1 Source */
+ { 0x00000aa8, 0x0000 }, /* R2728 (0xaa8) - ASRC2_1RMIX Input 1 Source */
+ { 0x00000ab0, 0x0000 }, /* R2736 (0xab0) - ASRC2_2LMIX Input 1 Source */
+ { 0x00000ab8, 0x0000 }, /* R2744 (0xab8) - ASRC2_2RMIX Input 1 Source */
+ { 0x00000b00, 0x0000 }, /* R2816 (0xb00) - ISRC1DEC1MIX Input 1 Source*/
+ { 0x00000b08, 0x0000 }, /* R2824 (0xb08) - ISRC1DEC2MIX Input 1 Source*/
+ { 0x00000b10, 0x0000 }, /* R2832 (0xb10) - ISRC1DEC3MIX Input 1 Source*/
+ { 0x00000b18, 0x0000 }, /* R2840 (0xb18) - ISRC1DEC4MIX Input 1 Source*/
+ { 0x00000b20, 0x0000 }, /* R2848 (0xb20) - ISRC1INT1MIX Input 1 Source*/
+ { 0x00000b28, 0x0000 }, /* R2856 (0xb28) - ISRC1INT2MIX Input 1 Source*/
+ { 0x00000b30, 0x0000 }, /* R2864 (0xb30) - ISRC1INT3MIX Input 1 Source*/
+ { 0x00000b38, 0x0000 }, /* R2872 (0xb38) - ISRC1INT4MIX Input 1 Source*/
+ { 0x00000b40, 0x0000 }, /* R2880 (0xb40) - ISRC2DEC1MIX Input 1 Source*/
+ { 0x00000b48, 0x0000 }, /* R2888 (0xb48) - ISRC2DEC2MIX Input 1 Source*/
+ { 0x00000b50, 0x0000 }, /* R2896 (0xb50) - ISRC2DEC3MIX Input 1 Source*/
+ { 0x00000b58, 0x0000 }, /* R2904 (0xb58) - ISRC2DEC4MIX Input 1 Source*/
+ { 0x00000b60, 0x0000 }, /* R2912 (0xb60) - ISRC2INT1MIX Input 1 Source*/
+ { 0x00000b68, 0x0000 }, /* R2920 (0xb68) - ISRC2INT2MIX Input 1 Source*/
+ { 0x00000b70, 0x0000 }, /* R2928 (0xb70) - ISRC2INT3MIX Input 1 Source*/
+ { 0x00000b78, 0x0000 }, /* R2936 (0xb78) - ISRC2INT4MIX Input 1 Source*/
+ { 0x00000b80, 0x0000 }, /* R2944 (0xb80) - ISRC3DEC1MIX Input 1 Source*/
+ { 0x00000b88, 0x0000 }, /* R2952 (0xb88) - ISRC3DEC2MIX Input 1 Source*/
+ { 0x00000ba0, 0x0000 }, /* R2976 (0xb80) - ISRC3INT1MIX Input 1 Source*/
+ { 0x00000ba8, 0x0000 }, /* R2984 (0xb88) - ISRC3INT2MIX Input 1 Source*/
+ { 0x00000bc0, 0x0000 }, /* R3008 (0xbc0) - ISRC4DEC1MIX Input 1 Source */
+ { 0x00000bc8, 0x0000 }, /* R3016 (0xbc8) - ISRC4DEC2MIX Input 1 Source */
+ { 0x00000be0, 0x0000 }, /* R3040 (0xbe0) - ISRC4INT1MIX Input 1 Source */
+ { 0x00000be8, 0x0000 }, /* R3048 (0xbe8) - ISRC4INT2MIX Input 1 Source */
+ { 0x00000c00, 0x0000 }, /* R3072 (0xc00) - DSP6LMIX Input 1 Source */
+ { 0x00000c01, 0x0080 }, /* R3073 (0xc01) - DSP6LMIX Input 1 Volume */
+ { 0x00000c02, 0x0000 }, /* R3074 (0xc02) - DSP6LMIX Input 2 Source */
+ { 0x00000c03, 0x0080 }, /* R3075 (0xc03) - DSP6LMIX Input 2 Volume */
+ { 0x00000c04, 0x0000 }, /* R3076 (0xc04) - DSP6LMIX Input 3 Source */
+ { 0x00000c05, 0x0080 }, /* R3077 (0xc05) - DSP6LMIX Input 3 Volume */
+ { 0x00000c06, 0x0000 }, /* R3078 (0xc06) - DSP6LMIX Input 4 Source */
+ { 0x00000c07, 0x0080 }, /* R3079 (0xc07) - DSP6LMIX Input 4 Volume */
+ { 0x00000c08, 0x0000 }, /* R3080 (0xc08) - DSP6RMIX Input 1 Source */
+ { 0x00000c09, 0x0080 }, /* R3081 (0xc09) - DSP6RMIX Input 1 Volume */
+ { 0x00000c0a, 0x0000 }, /* R3082 (0xc0a) - DSP6RMIX Input 2 Source */
+ { 0x00000c0b, 0x0080 }, /* R3083 (0xc0b) - DSP6RMIX Input 2 Volume */
+ { 0x00000c0c, 0x0000 }, /* R3084 (0xc0c) - DSP6RMIX Input 3 Source */
+ { 0x00000c0d, 0x0080 }, /* R3085 (0xc0d) - DSP6RMIX Input 3 Volume */
+ { 0x00000c0e, 0x0000 }, /* R3086 (0xc0e) - DSP6RMIX Input 4 Source */
+ { 0x00000c0f, 0x0080 }, /* R3087 (0xc0f) - DSP6RMIX Input 4 Volume */
+ { 0x00000c10, 0x0000 }, /* R3088 (0xc10) - DSP6AUX1MIX Input 1 Source */
+ { 0x00000c18, 0x0000 }, /* R3088 (0xc18) - DSP6AUX2MIX Input 1 Source */
+ { 0x00000c20, 0x0000 }, /* R3088 (0xc20) - DSP6AUX3MIX Input 1 Source */
+ { 0x00000c28, 0x0000 }, /* R3088 (0xc28) - DSP6AUX4MIX Input 1 Source */
+ { 0x00000c30, 0x0000 }, /* R3088 (0xc30) - DSP6AUX5MIX Input 1 Source */
+ { 0x00000c38, 0x0000 }, /* R3088 (0xc38) - DSP6AUX6MIX Input 1 Source */
+ { 0x00000c40, 0x0000 }, /* R3136 (0xc40) - DSP7LMIX Input 1 Source */
+ { 0x00000c41, 0x0080 }, /* R3137 (0xc41) - DSP7LMIX Input 1 Volume */
+ { 0x00000c42, 0x0000 }, /* R3138 (0xc42) - DSP7LMIX Input 2 Source */
+ { 0x00000c43, 0x0080 }, /* R3139 (0xc43) - DSP7LMIX Input 2 Volume */
+ { 0x00000c44, 0x0000 }, /* R3140 (0xc44) - DSP7LMIX Input 3 Source */
+ { 0x00000c45, 0x0080 }, /* R3141 (0xc45) - DSP7lMIX Input 3 Volume */
+ { 0x00000c46, 0x0000 }, /* R3142 (0xc46) - DSP7lMIX Input 4 Source */
+ { 0x00000c47, 0x0080 }, /* R3143 (0xc47) - DSP7LMIX Input 4 Volume */
+ { 0x00000c48, 0x0000 }, /* R3144 (0xc48) - DSP7RMIX Input 1 Source */
+ { 0x00000c49, 0x0080 }, /* R3145 (0xc49) - DSP7RMIX Input 1 Volume */
+ { 0x00000c4a, 0x0000 }, /* R3146 (0xc4a) - DSP7RMIX Input 2 Source */
+ { 0x00000c4b, 0x0080 }, /* R3147 (0xc4b) - DSP7RMIX Input 2 Volume */
+ { 0x00000c4c, 0x0000 }, /* R3148 (0xc4c) - DSP7RMIX Input 3 Source */
+ { 0x00000c4d, 0x0080 }, /* R3159 (0xc4d) - DSP7RMIX Input 3 Volume */
+ { 0x00000c4e, 0x0000 }, /* R3150 (0xc4e) - DSP7RMIX Input 4 Source */
+ { 0x00000c4f, 0x0080 }, /* R3151 (0xc4f) - DSP7RMIX Input 4 Volume */
+ { 0x00000c50, 0x0000 }, /* R3152 (0xc50) - DSP7AUX1MIX Input 1 Source */
+ { 0x00000c58, 0x0000 }, /* R3160 (0xc58) - DSP7AUX2MIX Input 1 Source */
+ { 0x00000c60, 0x0000 }, /* R3168 (0xc60) - DSP7AUX3MIX Input 1 Source */
+ { 0x00000c68, 0x0000 }, /* R3176 (0xc68) - DSP7AUX4MIX Input 1 Source */
+ { 0x00000c70, 0x0000 }, /* R3184 (0xc70) - DSP7AUX5MIX Input 1 Source */
+ { 0x00000c78, 0x0000 }, /* R3192 (0xc78) - DSP7AUX6MIX Input 1 Source */
+ { 0x00000dc0, 0x0000 }, /* R3520 (0xdc0) - DFC1MIX Input 1 Source */
+ { 0x00000dc8, 0x0000 }, /* R3528 (0xdc8) - DFC2MIX Input 1 Source */
+ { 0x00000dd0, 0x0000 }, /* R3536 (0xdd0) - DFC3MIX Input 1 Source */
+ { 0x00000dd8, 0x0000 }, /* R3544 (0xdd8) - DFC4MIX Input 1 Source */
+ { 0x00000de0, 0x0000 }, /* R3552 (0xde0) - DFC5MIX Input 1 Source */
+ { 0x00000de8, 0x0000 }, /* R3560 (0xde8) - DFC6MIX Input 1 Source */
+ { 0x00000df0, 0x0000 }, /* R3568 (0xdf0) - DFC7MIX Input 1 Source */
+ { 0x00000df8, 0x0000 }, /* R3576 (0xdf8) - DFC8MIX Input 1 Source */
+ { 0x00000e00, 0x0000 }, /* R3584 (0xe00) - FX_Ctrl1 */
+ { 0x00000e10, 0x6318 }, /* R3600 (0xe10) - EQ1_1 */
+ { 0x00000e11, 0x6300 }, /* R3601 (0xe11) - EQ1_2 */
+ { 0x00000e12, 0x0fc8 }, /* R3602 (0xe12) - EQ1_3 */
+ { 0x00000e13, 0x03fe }, /* R3603 (0xe13) - EQ1_4 */
+ { 0x00000e14, 0x00e0 }, /* R3604 (0xe14) - EQ1_5 */
+ { 0x00000e15, 0x1ec4 }, /* R3605 (0xe15) - EQ1_6 */
+ { 0x00000e16, 0xf136 }, /* R3606 (0xe16) - EQ1_7 */
+ { 0x00000e17, 0x0409 }, /* R3607 (0xe17) - EQ1_8 */
+ { 0x00000e18, 0x04cc }, /* R3608 (0xe18) - EQ1_9 */
+ { 0x00000e19, 0x1c9b }, /* R3609 (0xe19) - EQ1_10 */
+ { 0x00000e1a, 0xf337 }, /* R3610 (0xe1a) - EQ1_11 */
+ { 0x00000e1b, 0x040b }, /* R3611 (0xe1b) - EQ1_12 */
+ { 0x00000e1c, 0x0cbb }, /* R3612 (0xe1c) - EQ1_13 */
+ { 0x00000e1d, 0x16f8 }, /* R3613 (0xe1d) - EQ1_14 */
+ { 0x00000e1e, 0xf7d9 }, /* R3614 (0xe1e) - EQ1_15 */
+ { 0x00000e1f, 0x040a }, /* R3615 (0xe1f) - EQ1_16 */
+ { 0x00000e20, 0x1f14 }, /* R3616 (0xe20) - EQ1_17 */
+ { 0x00000e21, 0x058c }, /* R3617 (0xe21) - EQ1_18 */
+ { 0x00000e22, 0x0563 }, /* R3618 (0xe22) - EQ1_19 */
+ { 0x00000e23, 0x4000 }, /* R3619 (0xe23) - EQ1_20 */
+ { 0x00000e24, 0x0b75 }, /* R3620 (0xe24) - EQ1_21 */
+ { 0x00000e26, 0x6318 }, /* R3622 (0xe26) - EQ2_1 */
+ { 0x00000e27, 0x6300 }, /* R3623 (0xe27) - EQ2_2 */
+ { 0x00000e28, 0x0fc8 }, /* R3624 (0xe28) - EQ2_3 */
+ { 0x00000e29, 0x03fe }, /* R3625 (0xe29) - EQ2_4 */
+ { 0x00000e2a, 0x00e0 }, /* R3626 (0xe2a) - EQ2_5 */
+ { 0x00000e2b, 0x1ec4 }, /* R3627 (0xe2b) - EQ2_6 */
+ { 0x00000e2c, 0xf136 }, /* R3628 (0xe2c) - EQ2_7 */
+ { 0x00000e2d, 0x0409 }, /* R3629 (0xe2d) - EQ2_8 */
+ { 0x00000e2e, 0x04cc }, /* R3630 (0xe2e) - EQ2_9 */
+ { 0x00000e2f, 0x1c9b }, /* R3631 (0xe2f) - EQ2_10 */
+ { 0x00000e30, 0xf337 }, /* R3632 (0xe30) - EQ2_11 */
+ { 0x00000e31, 0x040b }, /* R3633 (0xe31) - EQ2_12 */
+ { 0x00000e32, 0x0cbb }, /* R3634 (0xe32) - EQ2_13 */
+ { 0x00000e33, 0x16f8 }, /* R3635 (0xe33) - EQ2_14 */
+ { 0x00000e34, 0xf7d9 }, /* R3636 (0xe34) - EQ2_15 */
+ { 0x00000e35, 0x040a }, /* R3637 (0xe35) - EQ2_16 */
+ { 0x00000e36, 0x1f14 }, /* R3638 (0xe36) - EQ2_17 */
+ { 0x00000e37, 0x058c }, /* R3639 (0xe37) - EQ2_18 */
+ { 0x00000e38, 0x0563 }, /* R3640 (0xe38) - EQ2_19 */
+ { 0x00000e39, 0x4000 }, /* R3641 (0xe39) - EQ2_20 */
+ { 0x00000e3a, 0x0b75 }, /* R3642 (0xe3a) - EQ2_21 */
+ { 0x00000e3c, 0x6318 }, /* R3644 (0xe3c) - EQ3_1 */
+ { 0x00000e3d, 0x6300 }, /* R3645 (0xe3d) - EQ3_2 */
+ { 0x00000e3e, 0x0fc8 }, /* R3646 (0xe3e) - EQ3_3 */
+ { 0x00000e3f, 0x03fe }, /* R3647 (0xe3f) - EQ3_4 */
+ { 0x00000e40, 0x00e0 }, /* R3648 (0xe40) - EQ3_5 */
+ { 0x00000e41, 0x1ec4 }, /* R3649 (0xe41) - EQ3_6 */
+ { 0x00000e42, 0xf136 }, /* R3650 (0xe42) - EQ3_7 */
+ { 0x00000e43, 0x0409 }, /* R3651 (0xe43) - EQ3_8 */
+ { 0x00000e44, 0x04cc }, /* R3652 (0xe44) - EQ3_9 */
+ { 0x00000e45, 0x1c9b }, /* R3653 (0xe45) - EQ3_10 */
+ { 0x00000e46, 0xf337 }, /* R3654 (0xe46) - EQ3_11 */
+ { 0x00000e47, 0x040b }, /* R3655 (0xe47) - EQ3_12 */
+ { 0x00000e48, 0x0cbb }, /* R3656 (0xe48) - EQ3_13 */
+ { 0x00000e49, 0x16f8 }, /* R3657 (0xe49) - EQ3_14 */
+ { 0x00000e4a, 0xf7d9 }, /* R3658 (0xe4a) - EQ3_15 */
+ { 0x00000e4b, 0x040a }, /* R3659 (0xe4b) - EQ3_16 */
+ { 0x00000e4c, 0x1f14 }, /* R3660 (0xe4c) - EQ3_17 */
+ { 0x00000e4d, 0x058c }, /* R3661 (0xe4d) - EQ3_18 */
+ { 0x00000e4e, 0x0563 }, /* R3662 (0xe4e) - EQ3_19 */
+ { 0x00000e4f, 0x4000 }, /* R3663 (0xe4f) - EQ3_20 */
+ { 0x00000e50, 0x0b75 }, /* R3664 (0xe50) - EQ3_21 */
+ { 0x00000e52, 0x6318 }, /* R3666 (0xe52) - EQ4_1 */
+ { 0x00000e53, 0x6300 }, /* R3667 (0xe53) - EQ4_2 */
+ { 0x00000e54, 0x0fc8 }, /* R3668 (0xe54) - EQ4_3 */
+ { 0x00000e55, 0x03fe }, /* R3669 (0xe55) - EQ4_4 */
+ { 0x00000e56, 0x00e0 }, /* R3670 (0xe56) - EQ4_5 */
+ { 0x00000e57, 0x1ec4 }, /* R3671 (0xe57) - EQ4_6 */
+ { 0x00000e58, 0xf136 }, /* R3672 (0xe58) - EQ4_7 */
+ { 0x00000e59, 0x0409 }, /* R3673 (0xe59) - EQ4_8 */
+ { 0x00000e5a, 0x04cc }, /* R3674 (0xe5a) - EQ4_9 */
+ { 0x00000e5b, 0x1c9b }, /* R3675 (0xe5b) - EQ4_10 */
+ { 0x00000e5c, 0xf337 }, /* R3676 (0xe5c) - EQ4_11 */
+ { 0x00000e5d, 0x040b }, /* R3677 (0xe5d) - EQ4_12 */
+ { 0x00000e5e, 0x0cbb }, /* R3678 (0xe5e) - EQ4_13 */
+ { 0x00000e5f, 0x16f8 }, /* R3679 (0xe5f) - EQ4_14 */
+ { 0x00000e60, 0xf7d9 }, /* R3680 (0xe60) - EQ4_15 */
+ { 0x00000e61, 0x040a }, /* R3681 (0xe61) - EQ4_16 */
+ { 0x00000e62, 0x1f14 }, /* R3682 (0xe62) - EQ4_17 */
+ { 0x00000e63, 0x058c }, /* R3683 (0xe63) - EQ4_18 */
+ { 0x00000e64, 0x0563 }, /* R3684 (0xe64) - EQ4_19 */
+ { 0x00000e65, 0x4000 }, /* R3685 (0xe65) - EQ4_20 */
+ { 0x00000e66, 0x0b75 }, /* R3686 (0xe66) - EQ4_21 */
+ { 0x00000e80, 0x0018 }, /* R3712 (0xe80) - DRC1 ctrl1 */
+ { 0x00000e81, 0x0933 }, /* R3713 (0xe81) - DRC1 ctrl2 */
+ { 0x00000e82, 0x0018 }, /* R3714 (0xe82) - DRC1 ctrl3 */
+ { 0x00000e83, 0x0000 }, /* R3715 (0xe83) - DRC1 ctrl4 */
+ { 0x00000e84, 0x0000 }, /* R3716 (0xe84) - DRC1 ctrl5 */
+ { 0x00000e88, 0x0018 }, /* R3720 (0xe88) - DRC2 ctrl1 */
+ { 0x00000e89, 0x0933 }, /* R3721 (0xe89) - DRC2 ctrl2 */
+ { 0x00000e8a, 0x0018 }, /* R3722 (0xe8a) - DRC2 ctrl3 */
+ { 0x00000e8b, 0x0000 }, /* R3723 (0xe8b) - DRC2 ctrl4 */
+ { 0x00000e8c, 0x0000 }, /* R3724 (0xe8c) - DRC2 ctrl5 */
+ { 0x00000ec0, 0x0000 }, /* R3776 (0xec0) - HPLPF1_1 */
+ { 0x00000ec1, 0x0000 }, /* R3777 (0xec1) - HPLPF1_2 */
+ { 0x00000ec4, 0x0000 }, /* R3780 (0xec4) - HPLPF2_1 */
+ { 0x00000ec5, 0x0000 }, /* R3781 (0xec5) - HPLPF2_2 */
+ { 0x00000ec8, 0x0000 }, /* R3784 (0xec8) - HPLPF3_1 */
+ { 0x00000ec9, 0x0000 }, /* R3785 (0xec9) - HPLPF3_2 */
+ { 0x00000ecc, 0x0000 }, /* R3788 (0xecc) - HPLPF4_1 */
+ { 0x00000ecd, 0x0000 }, /* R3789 (0xecd) - HPLPF4_2 */
+ { 0x00000ed0, 0x0000 }, /* R3792 (0xed0) - ASRC2_ENABLE */
+ { 0x00000ed2, 0x0000 }, /* R3794 (0xed2) - ASRC2_RATE1 */
+ { 0x00000ed3, 0x4000 }, /* R3795 (0xed3) - ASRC2_RATE2 */
+ { 0x00000ee0, 0x0000 }, /* R3808 (0xee0) - ASRC1_ENABLE */
+ { 0x00000ee2, 0x0000 }, /* R3810 (0xee2) - ASRC1_RATE1 */
+ { 0x00000ee3, 0x4000 }, /* R3811 (0xee3) - ASRC1_RATE2 */
+ { 0x00000ef0, 0x0000 }, /* R3824 (0xef0) - ISRC 1 CTRL 1 */
+ { 0x00000ef1, 0x0001 }, /* R3825 (0xef1) - ISRC 1 CTRL 2 */
+ { 0x00000ef2, 0x0000 }, /* R3826 (0xef2) - ISRC 1 CTRL 3 */
+ { 0x00000ef3, 0x0000 }, /* R3827 (0xef3) - ISRC 2 CTRL 1 */
+ { 0x00000ef4, 0x0001 }, /* R3828 (0xef4) - ISRC 2 CTRL 2 */
+ { 0x00000ef5, 0x0000 }, /* R3829 (0xef5) - ISRC 2 CTRL 3 */
+ { 0x00000ef6, 0x0000 }, /* R3830 (0xef6) - ISRC 3 CTRL 1 */
+ { 0x00000ef7, 0x0001 }, /* R3831 (0xef7) - ISRC 3 CTRL 2 */
+ { 0x00000ef8, 0x0000 }, /* R3832 (0xef8) - ISRC 3 CTRL 3 */
+ { 0x00000ef9, 0x0000 }, /* R3833 (0xef9) - ISRC 4 CTRL 1 */
+ { 0x00000efa, 0x0001 }, /* R3834 (0xefa) - ISRC 4 CTRL 2 */
+ { 0x00000efb, 0x0000 }, /* R3835 (0xefb) - ISRC 4 CTRL 3 */
+ { 0x00000f01, 0x0000 }, /* R3841 (0xf01) - ANC_SRC */
+ { 0x00000f02, 0x0000 }, /* R3842 (0xf02) - DSP Status */
+ { 0x00000f08, 0x001c }, /* R3848 (0xf08) - ANC Coefficient */
+ { 0x00000f09, 0x0000 }, /* R3849 (0xf09) - ANC Coefficient */
+ { 0x00000f0a, 0x0000 }, /* R3850 (0xf0a) - ANC Coefficient */
+ { 0x00000f0b, 0x0000 }, /* R3851 (0xf0b) - ANC Coefficient */
+ { 0x00000f0c, 0x0000 }, /* R3852 (0xf0c) - ANC Coefficient */
+ { 0x00000f0d, 0x0000 }, /* R3853 (0xf0d) - ANC Coefficient */
+ { 0x00000f0e, 0x0000 }, /* R3854 (0xf0e) - ANC Coefficient */
+ { 0x00000f0f, 0x0000 }, /* R3855 (0xf0f) - ANC Coefficient */
+ { 0x00000f10, 0x0000 }, /* R3856 (0xf10) - ANC Coefficient */
+ { 0x00000f11, 0x0000 }, /* R3857 (0xf11) - ANC Coefficient */
+ { 0x00000f12, 0x0000 }, /* R3858 (0xf12) - ANC Coefficient */
+ { 0x00000f15, 0x0000 }, /* R3861 (0xf15) - FCL Filter Control */
+ { 0x00000f17, 0x0004 }, /* R3863 (0xf17) - FCL ADC Reformatter Control */
+ { 0x00000f18, 0x0004 }, /* R3864 (0xf18) - ANC Coefficient */
+ { 0x00000f19, 0x0002 }, /* R3865 (0xf19) - ANC Coefficient */
+ { 0x00000f1a, 0x0000 }, /* R3866 (0xf1a) - ANC Coefficient */
+ { 0x00000f1b, 0x0010 }, /* R3867 (0xf1b) - ANC Coefficient */
+ { 0x00000f1c, 0x0000 }, /* R3868 (0xf1c) - ANC Coefficient */
+ { 0x00000f1d, 0x0000 }, /* R3869 (0xf1d) - ANC Coefficient */
+ { 0x00000f1e, 0x0000 }, /* R3870 (0xf1e) - ANC Coefficient */
+ { 0x00000f1f, 0x0000 }, /* R3871 (0xf1f) - ANC Coefficient */
+ { 0x00000f20, 0x0000 }, /* R3872 (0xf20) - ANC Coefficient */
+ { 0x00000f21, 0x0000 }, /* R3873 (0xf21) - ANC Coefficient */
+ { 0x00000f22, 0x0000 }, /* R3874 (0xf22) - ANC Coefficient */
+ { 0x00000f23, 0x0000 }, /* R3875 (0xf23) - ANC Coefficient */
+ { 0x00000f24, 0x0000 }, /* R3876 (0xf24) - ANC Coefficient */
+ { 0x00000f25, 0x0000 }, /* R3877 (0xf25) - ANC Coefficient */
+ { 0x00000f26, 0x0000 }, /* R3878 (0xf26) - ANC Coefficient */
+ { 0x00000f27, 0x0000 }, /* R3879 (0xf27) - ANC Coefficient */
+ { 0x00000f28, 0x0000 }, /* R3880 (0xf28) - ANC Coefficient */
+ { 0x00000f29, 0x0000 }, /* R3881 (0xf29) - ANC Coefficient */
+ { 0x00000f2a, 0x0000 }, /* R3882 (0xf2a) - ANC Coefficient */
+ { 0x00000f2b, 0x0000 }, /* R3883 (0xf2b) - ANC Coefficient */
+ { 0x00000f2c, 0x0000 }, /* R3884 (0xf2c) - ANC Coefficient */
+ { 0x00000f2d, 0x0000 }, /* R3885 (0xf2d) - ANC Coefficient */
+ { 0x00000f2e, 0x0000 }, /* R3886 (0xf2e) - ANC Coefficient */
+ { 0x00000f2f, 0x0000 }, /* R3887 (0xf2f) - ANC Coefficient */
+ { 0x00000f30, 0x0000 }, /* R3888 (0xf30) - ANC Coefficient */
+ { 0x00000f31, 0x0000 }, /* R3889 (0xf31) - ANC Coefficient */
+ { 0x00000f32, 0x0000 }, /* R3890 (0xf32) - ANC Coefficient */
+ { 0x00000f33, 0x0000 }, /* R3891 (0xf33) - ANC Coefficient */
+ { 0x00000f34, 0x0000 }, /* R3892 (0xf34) - ANC Coefficient */
+ { 0x00000f35, 0x0000 }, /* R3893 (0xf35) - ANC Coefficient */
+ { 0x00000f36, 0x0000 }, /* R3894 (0xf36) - ANC Coefficient */
+ { 0x00000f37, 0x0000 }, /* R3895 (0xf37) - ANC Coefficient */
+ { 0x00000f38, 0x0000 }, /* R3896 (0xf38) - ANC Coefficient */
+ { 0x00000f39, 0x0000 }, /* R3897 (0xf39) - ANC Coefficient */
+ { 0x00000f3a, 0x0000 }, /* R3898 (0xf3a) - ANC Coefficient */
+ { 0x00000f3b, 0x0000 }, /* R3899 (0xf3b) - ANC Coefficient */
+ { 0x00000f3c, 0x0000 }, /* R3900 (0xf3c) - ANC Coefficient */
+ { 0x00000f3d, 0x0000 }, /* R3901 (0xf3d) - ANC Coefficient */
+ { 0x00000f3e, 0x0000 }, /* R3902 (0xf3e) - ANC Coefficient */
+ { 0x00000f3f, 0x0000 }, /* R3903 (0xf3f) - ANC Coefficient */
+ { 0x00000f40, 0x0000 }, /* R3904 (0xf40) - ANC Coefficient */
+ { 0x00000f41, 0x0000 }, /* R3905 (0xf41) - ANC Coefficient */
+ { 0x00000f42, 0x0000 }, /* R3906 (0xf42) - ANC Coefficient */
+ { 0x00000f43, 0x0000 }, /* R3907 (0xf43) - ANC Coefficient */
+ { 0x00000f44, 0x0000 }, /* R3908 (0xf44) - ANC Coefficient */
+ { 0x00000f45, 0x0000 }, /* R3909 (0xf45) - ANC Coefficient */
+ { 0x00000f46, 0x0000 }, /* R3910 (0xf46) - ANC Coefficient */
+ { 0x00000f47, 0x0000 }, /* R3911 (0xf47) - ANC Coefficient */
+ { 0x00000f48, 0x0000 }, /* R3912 (0xf48) - ANC Coefficient */
+ { 0x00000f49, 0x0000 }, /* R3913 (0xf49) - ANC Coefficient */
+ { 0x00000f4a, 0x0000 }, /* R3914 (0xf4a) - ANC Coefficient */
+ { 0x00000f4b, 0x0000 }, /* R3915 (0xf4b) - ANC Coefficient */
+ { 0x00000f4c, 0x0000 }, /* R3916 (0xf4c) - ANC Coefficient */
+ { 0x00000f4d, 0x0000 }, /* R3917 (0xf4d) - ANC Coefficient */
+ { 0x00000f4e, 0x0000 }, /* R3918 (0xf4e) - ANC Coefficient */
+ { 0x00000f4f, 0x0000 }, /* R3919 (0xf4f) - ANC Coefficient */
+ { 0x00000f50, 0x0000 }, /* R3920 (0xf50) - ANC Coefficient */
+ { 0x00000f51, 0x0000 }, /* R3921 (0xf51) - ANC Coefficient */
+ { 0x00000f52, 0x0000 }, /* R3922 (0xf52) - ANC Coefficient */
+ { 0x00000f53, 0x0000 }, /* R3923 (0xf53) - ANC Coefficient */
+ { 0x00000f54, 0x0000 }, /* R3924 (0xf54) - ANC Coefficient */
+ { 0x00000f55, 0x0000 }, /* R3925 (0xf55) - ANC Coefficient */
+ { 0x00000f56, 0x0000 }, /* R3926 (0xf56) - ANC Coefficient */
+ { 0x00000f57, 0x0000 }, /* R3927 (0xf57) - ANC Coefficient */
+ { 0x00000f58, 0x0000 }, /* R3928 (0xf58) - ANC Coefficient */
+ { 0x00000f59, 0x0000 }, /* R3929 (0xf59) - ANC Coefficient */
+ { 0x00000f5a, 0x0000 }, /* R3930 (0xf5a) - ANC Coefficient */
+ { 0x00000f5b, 0x0000 }, /* R3931 (0xf5b) - ANC Coefficient */
+ { 0x00000f5c, 0x0000 }, /* R3932 (0xf5c) - ANC Coefficient */
+ { 0x00000f5d, 0x0000 }, /* R3933 (0xf5d) - ANC Coefficient */
+ { 0x00000f5e, 0x0000 }, /* R3934 (0xf5e) - ANC Coefficient */
+ { 0x00000f5f, 0x0000 }, /* R3935 (0xf5f) - ANC Coefficient */
+ { 0x00000f60, 0x0000 }, /* R3936 (0xf60) - ANC Coefficient */
+ { 0x00000f61, 0x0000 }, /* R3937 (0xf61) - ANC Coefficient */
+ { 0x00000f62, 0x0000 }, /* R3938 (0xf62) - ANC Coefficient */
+ { 0x00000f63, 0x0000 }, /* R3939 (0xf63) - ANC Coefficient */
+ { 0x00000f64, 0x0000 }, /* R3940 (0xf64) - ANC Coefficient */
+ { 0x00000f65, 0x0000 }, /* R3941 (0xf65) - ANC Coefficient */
+ { 0x00000f66, 0x0000 }, /* R3942 (0xf66) - ANC Coefficient */
+ { 0x00000f67, 0x0000 }, /* R3943 (0xf67) - ANC Coefficient */
+ { 0x00000f68, 0x0000 }, /* R3944 (0xf68) - ANC Coefficient */
+ { 0x00000f69, 0x0000 }, /* R3945 (0xf69) - ANC Coefficient */
+ { 0x00000f71, 0x0000 }, /* R3953 (0xf71) - FCR Filter Control */
+ { 0x00000f73, 0x0004 }, /* R3955 (0xf73) - FCR ADC Reformatter Control */
+ { 0x00000f74, 0x0004 }, /* R3956 (0xf74) - ANC Coefficient */
+ { 0x00000f75, 0x0002 }, /* R3957 (0xf75) - ANC Coefficient */
+ { 0x00000f76, 0x0000 }, /* R3958 (0xf76) - ANC Coefficient */
+ { 0x00000f77, 0x0010 }, /* R3959 (0xf77) - ANC Coefficient */
+ { 0x00000f78, 0x0000 }, /* R3960 (0xf78) - ANC Coefficient */
+ { 0x00000f79, 0x0000 }, /* R3961 (0xf79) - ANC Coefficient */
+ { 0x00000f7a, 0x0000 }, /* R3962 (0xf7a) - ANC Coefficient */
+ { 0x00000f7b, 0x0000 }, /* R3963 (0xf7b) - ANC Coefficient */
+ { 0x00000f7c, 0x0000 }, /* R3964 (0xf7c) - ANC Coefficient */
+ { 0x00000f7d, 0x0000 }, /* R3965 (0xf7d) - ANC Coefficient */
+ { 0x00000f7e, 0x0000 }, /* R3966 (0xf7e) - ANC Coefficient */
+ { 0x00000f7f, 0x0000 }, /* R3967 (0xf7f) - ANC Coefficient */
+ { 0x00000f80, 0x0000 }, /* R3968 (0xf80) - ANC Coefficient */
+ { 0x00000f81, 0x0000 }, /* R3969 (0xf81) - ANC Coefficient */
+ { 0x00000f82, 0x0000 }, /* R3970 (0xf82) - ANC Coefficient */
+ { 0x00000f83, 0x0000 }, /* R3971 (0xf83) - ANC Coefficient */
+ { 0x00000f84, 0x0000 }, /* R3972 (0xf84) - ANC Coefficient */
+ { 0x00000f85, 0x0000 }, /* R3973 (0xf85) - ANC Coefficient */
+ { 0x00000f86, 0x0000 }, /* R3974 (0xf86) - ANC Coefficient */
+ { 0x00000f87, 0x0000 }, /* R3975 (0xf87) - ANC Coefficient */
+ { 0x00000f88, 0x0000 }, /* R3976 (0xf88) - ANC Coefficient */
+ { 0x00000f89, 0x0000 }, /* R3977 (0xf89) - ANC Coefficient */
+ { 0x00000f8a, 0x0000 }, /* R3978 (0xf8a) - ANC Coefficient */
+ { 0x00000f8b, 0x0000 }, /* R3979 (0xf8b) - ANC Coefficient */
+ { 0x00000f8c, 0x0000 }, /* R3980 (0xf8c) - ANC Coefficient */
+ { 0x00000f8d, 0x0000 }, /* R3981 (0xf8d) - ANC Coefficient */
+ { 0x00000f8e, 0x0000 }, /* R3982 (0xf8e) - ANC Coefficient */
+ { 0x00000f8f, 0x0000 }, /* R3983 (0xf8f) - ANC Coefficient */
+ { 0x00000f90, 0x0000 }, /* R3984 (0xf90) - ANC Coefficient */
+ { 0x00000f91, 0x0000 }, /* R3985 (0xf91) - ANC Coefficient */
+ { 0x00000f92, 0x0000 }, /* R3986 (0xf92) - ANC Coefficient */
+ { 0x00000f93, 0x0000 }, /* R3987 (0xf93) - ANC Coefficient */
+ { 0x00000f94, 0x0000 }, /* R3988 (0xf94) - ANC Coefficient */
+ { 0x00000f95, 0x0000 }, /* R3989 (0xf95) - ANC Coefficient */
+ { 0x00000f96, 0x0000 }, /* R3990 (0xf96) - ANC Coefficient */
+ { 0x00000f97, 0x0000 }, /* R3991 (0xf97) - ANC Coefficient */
+ { 0x00000f98, 0x0000 }, /* R3992 (0xf98) - ANC Coefficient */
+ { 0x00000f99, 0x0000 }, /* R3993 (0xf99) - ANC Coefficient */
+ { 0x00000f9a, 0x0000 }, /* R3994 (0xf9a) - ANC Coefficient */
+ { 0x00000f9b, 0x0000 }, /* R3995 (0xf9b) - ANC Coefficient */
+ { 0x00000f9c, 0x0000 }, /* R3996 (0xf9c) - ANC Coefficient */
+ { 0x00000f9d, 0x0000 }, /* R3997 (0xf9d) - ANC Coefficient */
+ { 0x00000f9e, 0x0000 }, /* R3998 (0xf9e) - ANC Coefficient */
+ { 0x00000f9f, 0x0000 }, /* R3999 (0xf9f) - ANC Coefficient */
+ { 0x00000fa0, 0x0000 }, /* R4000 (0xfa0) - ANC Coefficient */
+ { 0x00000fa1, 0x0000 }, /* R4001 (0xfa1) - ANC Coefficient */
+ { 0x00000fa2, 0x0000 }, /* R4002 (0xfa2) - ANC Coefficient */
+ { 0x00000fa3, 0x0000 }, /* R4003 (0xfa3) - ANC Coefficient */
+ { 0x00000fa4, 0x0000 }, /* R4004 (0xfa4) - ANC Coefficient */
+ { 0x00000fa5, 0x0000 }, /* R4005 (0xfa5) - ANC Coefficient */
+ { 0x00000fa6, 0x0000 }, /* R4006 (0xfa6) - ANC Coefficient */
+ { 0x00000fa7, 0x0000 }, /* R4007 (0xfa7) - ANC Coefficient */
+ { 0x00000fa8, 0x0000 }, /* R4008 (0xfa8) - ANC Coefficient */
+ { 0x00000fa9, 0x0000 }, /* R4009 (0xfa9) - ANC Coefficient */
+ { 0x00000faa, 0x0000 }, /* R4010 (0xfaa) - ANC Coefficient */
+ { 0x00000fab, 0x0000 }, /* R4011 (0xfab) - ANC Coefficient */
+ { 0x00000fac, 0x0000 }, /* R4012 (0xfac) - ANC Coefficient */
+ { 0x00000fad, 0x0000 }, /* R4013 (0xfad) - ANC Coefficient */
+ { 0x00000fae, 0x0000 }, /* R4014 (0xfae) - ANC Coefficient */
+ { 0x00000faf, 0x0000 }, /* R4015 (0xfaf) - ANC Coefficient */
+ { 0x00000fb0, 0x0000 }, /* R4016 (0xfb0) - ANC Coefficient */
+ { 0x00000fb1, 0x0000 }, /* R4017 (0xfb1) - ANC Coefficient */
+ { 0x00000fb2, 0x0000 }, /* R4018 (0xfb2) - ANC Coefficient */
+ { 0x00000fb3, 0x0000 }, /* R4019 (0xfb3) - ANC Coefficient */
+ { 0x00000fb4, 0x0000 }, /* R4020 (0xfb4) - ANC Coefficient */
+ { 0x00000fb5, 0x0000 }, /* R4021 (0xfb5) - ANC Coefficient */
+ { 0x00000fb6, 0x0000 }, /* R4022 (0xfb6) - ANC Coefficient */
+ { 0x00000fb7, 0x0000 }, /* R4023 (0xfb7) - ANC Coefficient */
+ { 0x00000fb8, 0x0000 }, /* R4024 (0xfb8) - ANC Coefficient */
+ { 0x00000fb9, 0x0000 }, /* R4025 (0xfb9) - ANC Coefficient */
+ { 0x00000fba, 0x0000 }, /* R4026 (0xfba) - ANC Coefficient */
+ { 0x00000fbb, 0x0000 }, /* R4027 (0xfbb) - ANC Coefficient */
+ { 0x00000fbc, 0x0000 }, /* R4028 (0xfbc) - ANC Coefficient */
+ { 0x00000fbd, 0x0000 }, /* R4029 (0xfbd) - ANC Coefficient */
+ { 0x00000fbe, 0x0000 }, /* R4030 (0xfbe) - ANC Coefficient */
+ { 0x00000fbf, 0x0000 }, /* R4031 (0xfbf) - ANC Coefficient */
+ { 0x00000fc0, 0x0000 }, /* R4032 (0xfc0) - ANC Coefficient */
+ { 0x00000fc1, 0x0000 }, /* R4033 (0xfc1) - ANC Coefficient */
+ { 0x00000fc2, 0x0000 }, /* R4034 (0xfc2) - ANC Coefficient */
+ { 0x00000fc3, 0x0000 }, /* R4035 (0xfc3) - ANC Coefficient */
+ { 0x00000fc4, 0x0000 }, /* R4036 (0xfc4) - ANC Coefficient */
+ { 0x00000fc5, 0x0000 }, /* R4037 (0xfc5) - ANC Coefficient */
+ { 0x00001300, 0x050E }, /* R4864 (0x1300) - DAC Comp 1 */
+ { 0x00001302, 0x0101 }, /* R4866 (0x1302) - DAC Comp 2 */
+ { 0x00001380, 0x0425 }, /* R4992 (0x1380) - FRF Coefficient 1L 1 */
+ { 0x00001381, 0xF6D8 }, /* R4993 (0x1381) - FRF Coefficient 1L 2 */
+ { 0x00001382, 0x0632 }, /* R4994 (0x1382) - FRF Coefficient 1L 3 */
+ { 0x00001383, 0xFEC8 }, /* R4995 (0x1383) - FRF Coefficient 1L 4 */
+ { 0x00001390, 0x042F }, /* R5008 (0x1390) - FRF Coefficient 1R 1 */
+ { 0x00001391, 0xF6CA }, /* R5009 (0x1391) - FRF Coefficient 1R 2 */
+ { 0x00001392, 0x0637 }, /* R5010 (0x1392) - FRF Coefficient 1R 3 */
+ { 0x00001393, 0xFEC8 }, /* R5011 (0x1393) - FRF Coefficient 1R 4 */
+ { 0x000013a0, 0x0000 }, /* R5024 (0x13a0) - FRF Coefficient 2L 1 */
+ { 0x000013a1, 0x0000 }, /* R5025 (0x13a1) - FRF Coefficient 2L 2 */
+ { 0x000013a2, 0x0000 }, /* R5026 (0x13a2) - FRF Coefficient 2L 3 */
+ { 0x000013a3, 0x0000 }, /* R5027 (0x13a3) - FRF Coefficient 2L 4 */
+ { 0x000013b0, 0x0000 }, /* R5040 (0x13b0) - FRF Coefficient 2R 1 */
+ { 0x000013b1, 0x0000 }, /* R5041 (0x13b1) - FRF Coefficient 2R 2 */
+ { 0x000013b2, 0x0000 }, /* R5042 (0x13b2) - FRF Coefficient 2R 3 */
+ { 0x000013b3, 0x0000 }, /* R5043 (0x13b3) - FRF Coefficient 2R 4 */
+ { 0x000013c0, 0x0000 }, /* R5040 (0x13c0) - FRF Coefficient 3L 1 */
+ { 0x000013c1, 0x0000 }, /* R5041 (0x13c1) - FRF Coefficient 3L 2 */
+ { 0x000013c2, 0x0000 }, /* R5042 (0x13c2) - FRF Coefficient 3L 3 */
+ { 0x000013c3, 0x0000 }, /* R5043 (0x13c3) - FRF Coefficient 3L 4 */
+ { 0x000013d0, 0x0000 }, /* R5072 (0x13d0) - FRF Coefficient 3R 1 */
+ { 0x000013d1, 0x0000 }, /* R5073 (0x13d1) - FRF Coefficient 3R 2 */
+ { 0x000013d2, 0x0000 }, /* R5074 (0x13d2) - FRF Coefficient 3R 3 */
+ { 0x000013d3, 0x0000 }, /* R5075 (0x13d3) - FRF Coefficient 3R 4 */
+ { 0x00001400, 0x0000 }, /* R5120 (0x1400) - FRF Coefficient 5L 1 */
+ { 0x00001401, 0x0000 }, /* R5121 (0x1401) - FRF Coefficient 5L 2 */
+ { 0x00001402, 0x0000 }, /* R5122 (0x1402) - FRF Coefficient 5L 3 */
+ { 0x00001403, 0x0000 }, /* R5123 (0x1403) - FRF Coefficient 5L 4 */
+ { 0x00001410, 0x0000 }, /* R5136 (0x1410) - FRF Coefficient 5R 1 */
+ { 0x00001411, 0x0000 }, /* R5137 (0x1411) - FRF Coefficient 5R 2 */
+ { 0x00001412, 0x0000 }, /* R5138 (0x1412) - FRF Coefficient 5R 3 */
+ { 0x00001413, 0x0000 }, /* R5139 (0x1413) - FRF Coefficient 5R 4 */
+ { 0x00001480, 0x0000 }, /* R5248 (0x1480) - DFC1_CTRL */
+ { 0x00001482, 0x1f00 }, /* R5250 (0x1482) - DFC1_RX */
+ { 0x00001484, 0x1f00 }, /* R5252 (0x1486) - DFC1_TX */
+ { 0x00001486, 0x0000 }, /* R5254 (0x1486) - DFC2_CTRL */
+ { 0x00001488, 0x1f00 }, /* R5256 (0x1488) - DFC2_RX */
+ { 0x0000148a, 0x1f00 }, /* R5258 (0x148a) - DFC2_TX */
+ { 0x0000148c, 0x0000 }, /* R5260 (0x148c) - DFC3_CTRL */
+ { 0x0000148e, 0x1f00 }, /* R5262 (0x148e) - DFC3_RX */
+ { 0x00001490, 0x1f00 }, /* R5264 (0x1490) - DFC3_TX */
+ { 0x00001492, 0x0000 }, /* R5266 (0x1492) - DFC4_CTRL */
+ { 0x00001494, 0x1f00 }, /* R5268 (0x1494) - DFC4_RX */
+ { 0x00001496, 0x1f00 }, /* R5270 (0x1496) - DFC4_TX */
+ { 0x00001498, 0x0000 }, /* R5272 (0x1498) - DFC5_CTRL */
+ { 0x0000149a, 0x1f00 }, /* R5274 (0x149a) - DFC5_RX */
+ { 0x0000149c, 0x1f00 }, /* R5276 (0x149c) - DFC5_TX */
+ { 0x0000149e, 0x0000 }, /* R5278 (0x149e) - DFC6_CTRL */
+ { 0x000014a0, 0x1f00 }, /* R5280 (0x14a0) - DFC6_RX */
+ { 0x000014a2, 0x1f00 }, /* R5282 (0x14a2) - DFC6_TX */
+ { 0x000014a4, 0x0000 }, /* R5284 (0x14a4) - DFC7_CTRL */
+ { 0x000014a6, 0x1f00 }, /* R5286 (0x14a6) - DFC7_RX */
+ { 0x000014a8, 0x1f00 }, /* R5288 (0x14a8) - DFC7_TX */
+ { 0x000014aa, 0x0000 }, /* R5290 (0x14aa) - DFC8_CTRL */
+ { 0x000014ac, 0x1f00 }, /* R5292 (0x14ac) - DFC8_RX */
+ { 0x000014ae, 0x1f00 }, /* R5294 (0x14ae) - DFC8_TX */
+ { 0x00001700, 0x2001 }, /* R5888 (0x1700) - GPIO1 Control 1 */
+ { 0x00001701, 0xf000 }, /* R5889 (0x1701) - GPIO1 Control 2 */
+ { 0x00001702, 0x2001 }, /* R5890 (0x1702) - GPIO2 Control 1 */
+ { 0x00001703, 0xf000 }, /* R5891 (0x1702) - GPIO2 Control 2 */
+ { 0x00001704, 0x2001 }, /* R5892 (0x1704) - GPIO3 Control 1 */
+ { 0x00001705, 0xf000 }, /* R5893 (0x1705) - GPIO3 Control 2 */
+ { 0x00001706, 0x2001 }, /* R5894 (0x1706) - GPIO4 Control 1 */
+ { 0x00001707, 0xf000 }, /* R5895 (0x1707) - GPIO4 Control 2 */
+ { 0x00001708, 0x2001 }, /* R5896 (0x1708) - GPIO5 Control 1 */
+ { 0x00001709, 0xf000 }, /* R5897 (0x1709) - GPIO5 Control 2 */
+ { 0x0000170a, 0x2001 }, /* R5898 (0x170a) - GPIO6 Control 1 */
+ { 0x0000170b, 0xf000 }, /* R5899 (0x170b) - GPIO6 Control 2 */
+ { 0x0000170c, 0x2001 }, /* R5900 (0x170c) - GPIO7 Control 1 */
+ { 0x0000170d, 0xf000 }, /* R5901 (0x170d) - GPIO7 Control 2 */
+ { 0x0000170e, 0x2001 }, /* R5902 (0x170e) - GPIO8 Control 1 */
+ { 0x0000170f, 0xf000 }, /* R5903 (0x170f) - GPIO8 Control 2 */
+ { 0x00001710, 0x2001 }, /* R5904 (0x1710) - GPIO9 Control 1 */
+ { 0x00001711, 0xf000 }, /* R5905 (0x1711) - GPIO9 Control 2 */
+ { 0x00001712, 0x2001 }, /* R5906 (0x1712) - GPIO10 Control 1 */
+ { 0x00001713, 0xf000 }, /* R5907 (0x1713) - GPIO10 Control 2 */
+ { 0x00001714, 0x2001 }, /* R5908 (0x1714) - GPIO11 Control 1 */
+ { 0x00001715, 0xf000 }, /* R5909 (0x1715) - GPIO11 Control 2 */
+ { 0x00001716, 0x2001 }, /* R5910 (0x1716) - GPIO12 Control 1 */
+ { 0x00001717, 0xf000 }, /* R5911 (0x1717) - GPIO12 Control 2 */
+ { 0x00001718, 0x2001 }, /* R5912 (0x1718) - GPIO13 Control 1 */
+ { 0x00001719, 0xf000 }, /* R5913 (0x1719) - GPIO13 Control 2 */
+ { 0x0000171a, 0x2001 }, /* R5914 (0x171a) - GPIO14 Control 1 */
+ { 0x0000171b, 0xf000 }, /* R5915 (0x171b) - GPIO14 Control 2 */
+ { 0x0000171c, 0x2001 }, /* R5916 (0x171c) - GPIO15 Control 1 */
+ { 0x0000171d, 0xf000 }, /* R5917 (0x171d) - GPIO15 Control 2 */
+ { 0x0000171e, 0x2001 }, /* R5918 (0x171e) - GPIO16 Control 1 */
+ { 0x0000171f, 0xf000 }, /* R5919 (0x171f) - GPIO16 Control 2 */
+ { 0x00001720, 0x2001 }, /* R5920 (0x1720) - GPIO17 Control 1 */
+ { 0x00001721, 0xf000 }, /* R5921 (0x1721) - GPIO17 Control 2 */
+ { 0x00001722, 0x2001 }, /* R5922 (0x1722) - GPIO18 Control 1 */
+ { 0x00001723, 0xf000 }, /* R5923 (0x1723) - GPIO18 Control 2 */
+ { 0x00001724, 0x2001 }, /* R5924 (0x1724) - GPIO19 Control 1 */
+ { 0x00001725, 0xf000 }, /* R5925 (0x1725) - GPIO19 Control 2 */
+ { 0x00001726, 0x2001 }, /* R5926 (0x1726) - GPIO20 Control 1 */
+ { 0x00001727, 0xf000 }, /* R5927 (0x1727) - GPIO20 Control 2 */
+ { 0x00001728, 0x2001 }, /* R5928 (0x1728) - GPIO21 Control 1 */
+ { 0x00001729, 0xf000 }, /* R5929 (0x1729) - GPIO21 Control 2 */
+ { 0x0000172a, 0x2001 }, /* R5930 (0x172a) - GPIO22 Control 1 */
+ { 0x0000172b, 0xf000 }, /* R5931 (0x172b) - GPIO22 Control 2 */
+ { 0x0000172c, 0x2001 }, /* R5932 (0x172c) - GPIO23 Control 1 */
+ { 0x0000172d, 0xf000 }, /* R5933 (0x172d) - GPIO23 Control 2 */
+ { 0x0000172e, 0x2001 }, /* R5934 (0x172e) - GPIO24 Control 1 */
+ { 0x0000172f, 0xf000 }, /* R5935 (0x172f) - GPIO24 Control 2 */
+ { 0x00001730, 0x2001 }, /* R5936 (0x1730) - GPIO25 Control 1 */
+ { 0x00001731, 0xf000 }, /* R5937 (0x1731) - GPIO25 Control 2 */
+ { 0x00001732, 0x2001 }, /* R5938 (0x1732) - GPIO26 Control 1 */
+ { 0x00001733, 0xf000 }, /* R5939 (0x1733) - GPIO26 Control 2 */
+ { 0x00001734, 0x2001 }, /* R5940 (0x1734) - GPIO27 Control 1 */
+ { 0x00001735, 0xf000 }, /* R5941 (0x1735) - GPIO27 Control 2 */
+ { 0x00001736, 0x2001 }, /* R5942 (0x1736) - GPIO28 Control 1 */
+ { 0x00001737, 0xf000 }, /* R5943 (0x1737) - GPIO28 Control 2 */
+ { 0x00001738, 0x2001 }, /* R5944 (0x1738) - GPIO29 Control 1 */
+ { 0x00001739, 0xf000 }, /* R5945 (0x1739) - GPIO29 Control 2 */
+ { 0x0000173a, 0x2001 }, /* R5946 (0x173a) - GPIO30 Control 1 */
+ { 0x0000173b, 0xf000 }, /* R5947 (0x173b) - GPIO30 Control 2 */
+ { 0x0000173c, 0x2001 }, /* R5948 (0x173c) - GPIO31 Control 1 */
+ { 0x0000173d, 0xf000 }, /* R5949 (0x173d) - GPIO31 Control 2 */
+ { 0x0000173e, 0x2001 }, /* R5950 (0x173e) - GPIO32 Control 1 */
+ { 0x0000173f, 0xf000 }, /* R5951 (0x173f) - GPIO32 Control 2 */
+ { 0x00001740, 0x2001 }, /* R5952 (0x1740) - GPIO33 Control 1 */
+ { 0x00001741, 0xf000 }, /* R5953 (0x1741) - GPIO33 Control 2 */
+ { 0x00001742, 0x2001 }, /* R5954 (0x1742) - GPIO34 Control 1 */
+ { 0x00001743, 0xf000 }, /* R5955 (0x1743) - GPIO34 Control 2 */
+ { 0x00001744, 0x2001 }, /* R5956 (0x1744) - GPIO35 Control 1 */
+ { 0x00001745, 0xf000 }, /* R5957 (0x1745) - GPIO35 Control 2 */
+ { 0x00001746, 0x2001 }, /* R5958 (0x1746) - GPIO36 Control 1 */
+ { 0x00001747, 0xf000 }, /* R5959 (0x1747) - GPIO36 Control 2 */
+ { 0x00001748, 0x2001 }, /* R5960 (0x1748) - GPIO37 Control 1 */
+ { 0x00001749, 0xf000 }, /* R5961 (0x1749) - GPIO37 Control 2 */
+ { 0x0000174a, 0x2001 }, /* R5962 (0x174a) - GPIO38 Control 1 */
+ { 0x0000174b, 0xf000 }, /* R5963 (0x174b) - GPIO38 Control 2 */
+ { 0x00001840, 0xffff }, /* R6208 (0x1840) - IRQ1 Mask 1 */
+ { 0x00001841, 0xffff }, /* R6209 (0x1841) - IRQ1 Mask 2 */
+ { 0x00001842, 0xffff }, /* R6210 (0x1842) - IRQ1 Mask 3 */
+ { 0x00001843, 0xffff }, /* R6211 (0x1843) - IRQ1 Mask 4 */
+ { 0x00001844, 0xffff }, /* R6212 (0x1844) - IRQ1 Mask 5 */
+ { 0x00001845, 0xffff }, /* R6213 (0x1845) - IRQ1 Mask 6 */
+ { 0x00001846, 0xffff }, /* R6214 (0x1846) - IRQ1 Mask 7 */
+ { 0x00001847, 0xffff }, /* R6215 (0x1847) - IRQ1 Mask 8 */
+ { 0x00001848, 0xffff }, /* R6216 (0x1848) - IRQ1 Mask 9 */
+ { 0x00001849, 0xffff }, /* R6217 (0x1849) - IRQ1 Mask 10 */
+ { 0x0000184a, 0xffff }, /* R6218 (0x184a) - IRQ1 Mask 11 */
+ { 0x0000184b, 0xffff }, /* R6219 (0x184b) - IRQ1 Mask 12 */
+ { 0x0000184c, 0xffff }, /* R6220 (0x184c) - IRQ1 Mask 13 */
+ { 0x0000184d, 0xffff }, /* R6221 (0x184d) - IRQ1 Mask 14 */
+ { 0x0000184e, 0xffff }, /* R6222 (0x184e) - IRQ1 Mask 15 */
+ { 0x0000184f, 0xffff }, /* R6223 (0x184f) - IRQ1 Mask 16 */
+ { 0x00001850, 0xffff }, /* R6224 (0x1850) - IRQ1 Mask 17 */
+ { 0x00001851, 0xffff }, /* R6225 (0x1851) - IRQ1 Mask 18 */
+ { 0x00001852, 0xffff }, /* R6226 (0x1852) - IRQ1 Mask 19 */
+ { 0x00001853, 0xffff }, /* R6227 (0x1853) - IRQ1 Mask 20 */
+ { 0x00001854, 0xffff }, /* R6228 (0x1854) - IRQ1 Mask 21 */
+ { 0x00001855, 0xffff }, /* R6229 (0x1855) - IRQ1 Mask 22 */
+ { 0x00001856, 0xffff }, /* R6230 (0x1856) - IRQ1 Mask 23 */
+ { 0x00001857, 0xffff }, /* R6231 (0x1857) - IRQ1 Mask 24 */
+ { 0x00001858, 0xffff }, /* R6232 (0x1858) - IRQ1 Mask 25 */
+ { 0x00001859, 0xffff }, /* R6233 (0x1859) - IRQ1 Mask 26 */
+ { 0x0000185a, 0xffff }, /* R6234 (0x185a) - IRQ1 Mask 27 */
+ { 0x0000185b, 0xffff }, /* R6235 (0x185b) - IRQ1 Mask 28 */
+ { 0x0000185c, 0xffff }, /* R6236 (0x185c) - IRQ1 Mask 29 */
+ { 0x0000185d, 0xffff }, /* R6237 (0x185d) - IRQ1 Mask 30 */
+ { 0x0000185e, 0xffff }, /* R6238 (0x185e) - IRQ1 Mask 31 */
+ { 0x0000185f, 0xffff }, /* R6239 (0x185f) - IRQ1 Mask 32 */
+ { 0x00001860, 0xffff }, /* R6240 (0x1860) - IRQ1 Mask 33 */
+ { 0x00001a06, 0x0000 }, /* R6662 (0x1a06) - Interrupt Debounce 7 */
+ { 0x00001a80, 0x4400 }, /* R6784 (0x1a80) - IRQ1 CTRL */
+};
+
+static bool cs47l90_is_adsp_memory(unsigned int reg)
+{
+ switch (reg) {
+ case 0x080000 ... 0x088ffe:
+ case 0x0a0000 ... 0x0a9ffe:
+ case 0x0c0000 ... 0x0c3ffe:
+ case 0x0e0000 ... 0x0e1ffe:
+ case 0x100000 ... 0x10effe:
+ case 0x120000 ... 0x12bffe:
+ case 0x136000 ... 0x137ffe:
+ case 0x140000 ... 0x14bffe:
+ case 0x160000 ... 0x161ffe:
+ case 0x180000 ... 0x18effe:
+ case 0x1a0000 ... 0x1b1ffe:
+ case 0x1b6000 ... 0x1b7ffe:
+ case 0x1c0000 ... 0x1cbffe:
+ case 0x1e0000 ... 0x1e1ffe:
+ case 0x200000 ... 0x208ffe:
+ case 0x220000 ... 0x229ffe:
+ case 0x240000 ... 0x243ffe:
+ case 0x260000 ... 0x261ffe:
+ case 0x280000 ... 0x288ffe:
+ case 0x2a0000 ... 0x2a9ffe:
+ case 0x2c0000 ... 0x2c3ffe:
+ case 0x2e0000 ... 0x2e1ffe:
+ case 0x300000 ... 0x308ffe:
+ case 0x320000 ... 0x333ffe:
+ case 0x340000 ... 0x353ffe:
+ case 0x360000 ... 0x361ffe:
+ case 0x380000 ... 0x388ffe:
+ case 0x3a0000 ... 0x3b3ffe:
+ case 0x3c0000 ... 0x3d3ffe:
+ case 0x3e0000 ... 0x3e1ffe:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static bool cs47l90_16bit_readable_register(struct device *dev,
+ unsigned int reg)
+{
+ switch (reg) {
+ case MADERA_SOFTWARE_RESET:
+ case MADERA_HARDWARE_REVISION:
+ case MADERA_WRITE_SEQUENCER_CTRL_0:
+ case MADERA_WRITE_SEQUENCER_CTRL_1:
+ case MADERA_WRITE_SEQUENCER_CTRL_2:
+ case MADERA_TONE_GENERATOR_1:
+ case MADERA_TONE_GENERATOR_2:
+ case MADERA_TONE_GENERATOR_3:
+ case MADERA_TONE_GENERATOR_4:
+ case MADERA_TONE_GENERATOR_5:
+ case MADERA_PWM_DRIVE_1:
+ case MADERA_PWM_DRIVE_2:
+ case MADERA_PWM_DRIVE_3:
+ case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_1:
+ case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_2:
+ case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_3:
+ case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_4:
+ case MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_1:
+ case MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_2:
+ case MADERA_HAPTICS_CONTROL_1:
+ case MADERA_HAPTICS_CONTROL_2:
+ case MADERA_HAPTICS_PHASE_1_INTENSITY:
+ case MADERA_HAPTICS_PHASE_1_DURATION:
+ case MADERA_HAPTICS_PHASE_2_INTENSITY:
+ case MADERA_HAPTICS_PHASE_2_DURATION:
+ case MADERA_HAPTICS_PHASE_3_INTENSITY:
+ case MADERA_HAPTICS_PHASE_3_DURATION:
+ case MADERA_HAPTICS_STATUS:
+ case MADERA_COMFORT_NOISE_GENERATOR:
+ case MADERA_CLOCK_32K_1:
+ case MADERA_SYSTEM_CLOCK_1:
+ case MADERA_SAMPLE_RATE_1:
+ case MADERA_SAMPLE_RATE_2:
+ case MADERA_SAMPLE_RATE_3:
+ case MADERA_SAMPLE_RATE_1_STATUS:
+ case MADERA_SAMPLE_RATE_2_STATUS:
+ case MADERA_SAMPLE_RATE_3_STATUS:
+ case MADERA_ASYNC_CLOCK_1:
+ case MADERA_ASYNC_SAMPLE_RATE_1:
+ case MADERA_ASYNC_SAMPLE_RATE_1_STATUS:
+ case MADERA_ASYNC_SAMPLE_RATE_2:
+ case MADERA_ASYNC_SAMPLE_RATE_2_STATUS:
+ case MADERA_DSP_CLOCK_1:
+ case MADERA_DSP_CLOCK_2:
+ case MADERA_OUTPUT_SYSTEM_CLOCK:
+ case MADERA_OUTPUT_ASYNC_CLOCK:
+ case MADERA_RATE_ESTIMATOR_1:
+ case MADERA_RATE_ESTIMATOR_2:
+ case MADERA_RATE_ESTIMATOR_3:
+ case MADERA_RATE_ESTIMATOR_4:
+ case MADERA_RATE_ESTIMATOR_5:
+ case MADERA_FLL1_CONTROL_1:
+ case MADERA_FLL1_CONTROL_2:
+ case MADERA_FLL1_CONTROL_3:
+ case MADERA_FLL1_CONTROL_4:
+ case MADERA_FLL1_CONTROL_5:
+ case MADERA_FLL1_CONTROL_6:
+ case MADERA_FLL1_CONTROL_7:
+ case MADERA_FLL1_EFS_2:
+ case MADERA_FLL1_LOOP_FILTER_TEST_1:
+ case MADERA_FLL1_SYNCHRONISER_1:
+ case MADERA_FLL1_SYNCHRONISER_2:
+ case MADERA_FLL1_SYNCHRONISER_3:
+ case MADERA_FLL1_SYNCHRONISER_4:
+ case MADERA_FLL1_SYNCHRONISER_5:
+ case MADERA_FLL1_SYNCHRONISER_6:
+ case MADERA_FLL1_SYNCHRONISER_7:
+ case MADERA_FLL1_SPREAD_SPECTRUM:
+ case MADERA_FLL1_GPIO_CLOCK:
+ case MADERA_FLL2_CONTROL_1:
+ case MADERA_FLL2_CONTROL_2:
+ case MADERA_FLL2_CONTROL_3:
+ case MADERA_FLL2_CONTROL_4:
+ case MADERA_FLL2_CONTROL_5:
+ case MADERA_FLL2_CONTROL_6:
+ case MADERA_FLL2_CONTROL_7:
+ case MADERA_FLL2_EFS_2:
+ case MADERA_FLL2_LOOP_FILTER_TEST_1:
+ case MADERA_FLL2_SYNCHRONISER_1:
+ case MADERA_FLL2_SYNCHRONISER_2:
+ case MADERA_FLL2_SYNCHRONISER_3:
+ case MADERA_FLL2_SYNCHRONISER_4:
+ case MADERA_FLL2_SYNCHRONISER_5:
+ case MADERA_FLL2_SYNCHRONISER_6:
+ case MADERA_FLL2_SYNCHRONISER_7:
+ case MADERA_FLL2_SPREAD_SPECTRUM:
+ case MADERA_FLL2_GPIO_CLOCK:
+ case MADERA_FLLAO_CONTROL_1:
+ case MADERA_FLLAO_CONTROL_2:
+ case MADERA_FLLAO_CONTROL_3:
+ case MADERA_FLLAO_CONTROL_4:
+ case MADERA_FLLAO_CONTROL_5:
+ case MADERA_FLLAO_CONTROL_6:
+ case MADERA_FLLAO_CONTROL_7:
+ case MADERA_FLLAO_CONTROL_8:
+ case MADERA_FLLAO_CONTROL_9:
+ case MADERA_FLLAO_CONTROL_10:
+ case MADERA_FLLAO_CONTROL_11:
+ case MADERA_MIC_CHARGE_PUMP_1:
+ case MADERA_LDO2_CONTROL_1:
+ case MADERA_MIC_BIAS_CTRL_1:
+ case MADERA_MIC_BIAS_CTRL_2:
+ case MADERA_MIC_BIAS_CTRL_5:
+ case MADERA_MIC_BIAS_CTRL_6:
+ case MADERA_HP_CTRL_1L:
+ case MADERA_HP_CTRL_1R:
+ case MADERA_HP_CTRL_2L:
+ case MADERA_HP_CTRL_2R:
+ case MADERA_HP_CTRL_3L:
+ case MADERA_HP_CTRL_3R:
+ case MADERA_EDRE_HP_STEREO_CONTROL:
+ case MADERA_ACCESSORY_DETECT_MODE_1:
+ case MADERA_HEADPHONE_DETECT_0:
+ case MADERA_HEADPHONE_DETECT_1:
+ case MADERA_HEADPHONE_DETECT_2:
+ case MADERA_HEADPHONE_DETECT_3:
+ case MADERA_HEADPHONE_DETECT_5:
+ case MADERA_MICD_CLAMP_CONTROL:
+ case MADERA_MIC_DETECT_1_CONTROL_0:
+ case MADERA_MIC_DETECT_1_CONTROL_1:
+ case MADERA_MIC_DETECT_1_CONTROL_2:
+ case MADERA_MIC_DETECT_1_CONTROL_3:
+ case MADERA_MIC_DETECT_1_LEVEL_1:
+ case MADERA_MIC_DETECT_1_LEVEL_2:
+ case MADERA_MIC_DETECT_1_LEVEL_3:
+ case MADERA_MIC_DETECT_1_LEVEL_4:
+ case MADERA_MIC_DETECT_1_CONTROL_4:
+ case MADERA_MIC_DETECT_2_CONTROL_0:
+ case MADERA_MIC_DETECT_2_CONTROL_1:
+ case MADERA_MIC_DETECT_2_CONTROL_2:
+ case MADERA_MIC_DETECT_2_CONTROL_3:
+ case MADERA_MIC_DETECT_2_LEVEL_1:
+ case MADERA_MIC_DETECT_2_LEVEL_2:
+ case MADERA_MIC_DETECT_2_LEVEL_3:
+ case MADERA_MIC_DETECT_2_LEVEL_4:
+ case MADERA_MIC_DETECT_2_CONTROL_4:
+ case MADERA_GP_SWITCH_1:
+ case MADERA_JACK_DETECT_ANALOGUE:
+ case MADERA_INPUT_ENABLES:
+ case MADERA_INPUT_ENABLES_STATUS:
+ case MADERA_INPUT_RATE:
+ case MADERA_INPUT_VOLUME_RAMP:
+ case MADERA_HPF_CONTROL:
+ case MADERA_IN1L_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_1L:
+ case MADERA_DMIC1L_CONTROL:
+ case MADERA_IN1L_RATE_CONTROL:
+ case MADERA_IN1R_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_1R:
+ case MADERA_DMIC1R_CONTROL:
+ case MADERA_IN1R_RATE_CONTROL:
+ case MADERA_IN2L_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_2L:
+ case MADERA_DMIC2L_CONTROL:
+ case MADERA_IN2L_RATE_CONTROL:
+ case MADERA_IN2R_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_2R:
+ case MADERA_DMIC2R_CONTROL:
+ case MADERA_IN2R_RATE_CONTROL:
+ case MADERA_IN3L_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_3L:
+ case MADERA_DMIC3L_CONTROL:
+ case MADERA_IN3L_RATE_CONTROL:
+ case MADERA_IN3R_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_3R:
+ case MADERA_DMIC3R_CONTROL:
+ case MADERA_IN3R_RATE_CONTROL:
+ case MADERA_IN4L_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_4L:
+ case MADERA_DMIC4L_CONTROL:
+ case MADERA_IN4L_RATE_CONTROL:
+ case MADERA_IN4R_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_4R:
+ case MADERA_DMIC4R_CONTROL:
+ case MADERA_IN4R_RATE_CONTROL:
+ case MADERA_IN5L_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_5L:
+ case MADERA_DMIC5L_CONTROL:
+ case MADERA_IN5L_RATE_CONTROL:
+ case MADERA_IN5R_CONTROL:
+ case MADERA_ADC_DIGITAL_VOLUME_5R:
+ case MADERA_DMIC5R_CONTROL:
+ case MADERA_IN5R_RATE_CONTROL:
+ case MADERA_OUTPUT_ENABLES_1:
+ case MADERA_OUTPUT_STATUS_1:
+ case MADERA_RAW_OUTPUT_STATUS_1:
+ case MADERA_OUTPUT_RATE_1:
+ case MADERA_OUTPUT_VOLUME_RAMP:
+ case MADERA_OUTPUT_PATH_CONFIG_1L:
+ case MADERA_DAC_DIGITAL_VOLUME_1L:
+ case MADERA_OUTPUT_PATH_CONFIG_1:
+ case MADERA_NOISE_GATE_SELECT_1L:
+ case MADERA_OUTPUT_PATH_CONFIG_1R:
+ case MADERA_DAC_DIGITAL_VOLUME_1R:
+ case MADERA_NOISE_GATE_SELECT_1R:
+ case MADERA_OUTPUT_PATH_CONFIG_2L:
+ case MADERA_DAC_DIGITAL_VOLUME_2L:
+ case MADERA_OUTPUT_PATH_CONFIG_2:
+ case MADERA_NOISE_GATE_SELECT_2L:
+ case MADERA_OUTPUT_PATH_CONFIG_2R:
+ case MADERA_DAC_DIGITAL_VOLUME_2R:
+ case MADERA_NOISE_GATE_SELECT_2R:
+ case MADERA_OUTPUT_PATH_CONFIG_3L:
+ case MADERA_DAC_DIGITAL_VOLUME_3L:
+ case MADERA_NOISE_GATE_SELECT_3L:
+ case MADERA_OUTPUT_PATH_CONFIG_3R:
+ case MADERA_DAC_DIGITAL_VOLUME_3R:
+ case MADERA_NOISE_GATE_SELECT_3R:
+ case MADERA_OUTPUT_PATH_CONFIG_5L:
+ case MADERA_DAC_DIGITAL_VOLUME_5L:
+ case MADERA_NOISE_GATE_SELECT_5L:
+ case MADERA_OUTPUT_PATH_CONFIG_5R:
+ case MADERA_DAC_DIGITAL_VOLUME_5R:
+ case MADERA_NOISE_GATE_SELECT_5R:
+ case MADERA_DRE_ENABLE:
+ case MADERA_EDRE_ENABLE:
+ case MADERA_DAC_AEC_CONTROL_1:
+ case MADERA_NOISE_GATE_CONTROL:
+ case MADERA_PDM_SPK1_CTRL_1:
+ case MADERA_PDM_SPK1_CTRL_2:
+ case MADERA_HP1_SHORT_CIRCUIT_CTRL:
+ case MADERA_HP2_SHORT_CIRCUIT_CTRL:
+ case MADERA_HP3_SHORT_CIRCUIT_CTRL:
+ case MADERA_AIF1_BCLK_CTRL:
+ case MADERA_AIF1_TX_PIN_CTRL:
+ case MADERA_AIF1_RX_PIN_CTRL:
+ case MADERA_AIF1_RATE_CTRL:
+ case MADERA_AIF1_FORMAT:
+ case MADERA_AIF1_RX_BCLK_RATE:
+ case MADERA_AIF1_FRAME_CTRL_1:
+ case MADERA_AIF1_FRAME_CTRL_2:
+ case MADERA_AIF1_FRAME_CTRL_3:
+ case MADERA_AIF1_FRAME_CTRL_4:
+ case MADERA_AIF1_FRAME_CTRL_5:
+ case MADERA_AIF1_FRAME_CTRL_6:
+ case MADERA_AIF1_FRAME_CTRL_7:
+ case MADERA_AIF1_FRAME_CTRL_8:
+ case MADERA_AIF1_FRAME_CTRL_9:
+ case MADERA_AIF1_FRAME_CTRL_10:
+ case MADERA_AIF1_FRAME_CTRL_11:
+ case MADERA_AIF1_FRAME_CTRL_12:
+ case MADERA_AIF1_FRAME_CTRL_13:
+ case MADERA_AIF1_FRAME_CTRL_14:
+ case MADERA_AIF1_FRAME_CTRL_15:
+ case MADERA_AIF1_FRAME_CTRL_16:
+ case MADERA_AIF1_FRAME_CTRL_17:
+ case MADERA_AIF1_FRAME_CTRL_18:
+ case MADERA_AIF1_TX_ENABLES:
+ case MADERA_AIF1_RX_ENABLES:
+ case MADERA_AIF2_BCLK_CTRL:
+ case MADERA_AIF2_TX_PIN_CTRL:
+ case MADERA_AIF2_RX_PIN_CTRL:
+ case MADERA_AIF2_RATE_CTRL:
+ case MADERA_AIF2_FORMAT:
+ case MADERA_AIF2_RX_BCLK_RATE:
+ case MADERA_AIF2_FRAME_CTRL_1:
+ case MADERA_AIF2_FRAME_CTRL_2:
+ case MADERA_AIF2_FRAME_CTRL_3:
+ case MADERA_AIF2_FRAME_CTRL_4:
+ case MADERA_AIF2_FRAME_CTRL_5:
+ case MADERA_AIF2_FRAME_CTRL_6:
+ case MADERA_AIF2_FRAME_CTRL_7:
+ case MADERA_AIF2_FRAME_CTRL_8:
+ case MADERA_AIF2_FRAME_CTRL_9:
+ case MADERA_AIF2_FRAME_CTRL_10:
+ case MADERA_AIF2_FRAME_CTRL_11:
+ case MADERA_AIF2_FRAME_CTRL_12:
+ case MADERA_AIF2_FRAME_CTRL_13:
+ case MADERA_AIF2_FRAME_CTRL_14:
+ case MADERA_AIF2_FRAME_CTRL_15:
+ case MADERA_AIF2_FRAME_CTRL_16:
+ case MADERA_AIF2_FRAME_CTRL_17:
+ case MADERA_AIF2_FRAME_CTRL_18:
+ case MADERA_AIF2_TX_ENABLES:
+ case MADERA_AIF2_RX_ENABLES:
+ case MADERA_AIF3_BCLK_CTRL:
+ case MADERA_AIF3_TX_PIN_CTRL:
+ case MADERA_AIF3_RX_PIN_CTRL:
+ case MADERA_AIF3_RATE_CTRL:
+ case MADERA_AIF3_FORMAT:
+ case MADERA_AIF3_RX_BCLK_RATE:
+ case MADERA_AIF3_FRAME_CTRL_1:
+ case MADERA_AIF3_FRAME_CTRL_2:
+ case MADERA_AIF3_FRAME_CTRL_3:
+ case MADERA_AIF3_FRAME_CTRL_4:
+ case MADERA_AIF3_FRAME_CTRL_11:
+ case MADERA_AIF3_FRAME_CTRL_12:
+ case MADERA_AIF3_TX_ENABLES:
+ case MADERA_AIF3_RX_ENABLES:
+ case MADERA_AIF4_BCLK_CTRL:
+ case MADERA_AIF4_TX_PIN_CTRL:
+ case MADERA_AIF4_RX_PIN_CTRL:
+ case MADERA_AIF4_RATE_CTRL:
+ case MADERA_AIF4_FORMAT:
+ case MADERA_AIF4_RX_BCLK_RATE:
+ case MADERA_AIF4_FRAME_CTRL_1:
+ case MADERA_AIF4_FRAME_CTRL_2:
+ case MADERA_AIF4_FRAME_CTRL_3:
+ case MADERA_AIF4_FRAME_CTRL_4:
+ case MADERA_AIF4_FRAME_CTRL_11:
+ case MADERA_AIF4_FRAME_CTRL_12:
+ case MADERA_AIF4_TX_ENABLES:
+ case MADERA_AIF4_RX_ENABLES:
+ case MADERA_SPD1_TX_CONTROL:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_1:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_2:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_3:
+ case MADERA_SLIMBUS_FRAMER_REF_GEAR:
+ case MADERA_SLIMBUS_RATES_1:
+ case MADERA_SLIMBUS_RATES_2:
+ case MADERA_SLIMBUS_RATES_3:
+ case MADERA_SLIMBUS_RATES_4:
+ case MADERA_SLIMBUS_RATES_5:
+ case MADERA_SLIMBUS_RATES_6:
+ case MADERA_SLIMBUS_RATES_7:
+ case MADERA_SLIMBUS_RATES_8:
+ case MADERA_SLIMBUS_RX_CHANNEL_ENABLE:
+ case MADERA_SLIMBUS_TX_CHANNEL_ENABLE:
+ case MADERA_SLIMBUS_RX_PORT_STATUS:
+ case MADERA_SLIMBUS_TX_PORT_STATUS:
+ case MADERA_PWM1MIX_INPUT_1_SOURCE:
+ case MADERA_PWM1MIX_INPUT_1_VOLUME:
+ case MADERA_PWM1MIX_INPUT_2_SOURCE:
+ case MADERA_PWM1MIX_INPUT_2_VOLUME:
+ case MADERA_PWM1MIX_INPUT_3_SOURCE:
+ case MADERA_PWM1MIX_INPUT_3_VOLUME:
+ case MADERA_PWM1MIX_INPUT_4_SOURCE:
+ case MADERA_PWM1MIX_INPUT_4_VOLUME:
+ case MADERA_PWM2MIX_INPUT_1_SOURCE:
+ case MADERA_PWM2MIX_INPUT_1_VOLUME:
+ case MADERA_PWM2MIX_INPUT_2_SOURCE:
+ case MADERA_PWM2MIX_INPUT_2_VOLUME:
+ case MADERA_PWM2MIX_INPUT_3_SOURCE:
+ case MADERA_PWM2MIX_INPUT_3_VOLUME:
+ case MADERA_PWM2MIX_INPUT_4_SOURCE:
+ case MADERA_PWM2MIX_INPUT_4_VOLUME:
+ case MADERA_OUT1LMIX_INPUT_1_SOURCE:
+ case MADERA_OUT1LMIX_INPUT_1_VOLUME:
+ case MADERA_OUT1LMIX_INPUT_2_SOURCE:
+ case MADERA_OUT1LMIX_INPUT_2_VOLUME:
+ case MADERA_OUT1LMIX_INPUT_3_SOURCE:
+ case MADERA_OUT1LMIX_INPUT_3_VOLUME:
+ case MADERA_OUT1LMIX_INPUT_4_SOURCE:
+ case MADERA_OUT1LMIX_INPUT_4_VOLUME:
+ case MADERA_OUT1RMIX_INPUT_1_SOURCE:
+ case MADERA_OUT1RMIX_INPUT_1_VOLUME:
+ case MADERA_OUT1RMIX_INPUT_2_SOURCE:
+ case MADERA_OUT1RMIX_INPUT_2_VOLUME:
+ case MADERA_OUT1RMIX_INPUT_3_SOURCE:
+ case MADERA_OUT1RMIX_INPUT_3_VOLUME:
+ case MADERA_OUT1RMIX_INPUT_4_SOURCE:
+ case MADERA_OUT1RMIX_INPUT_4_VOLUME:
+ case MADERA_OUT2LMIX_INPUT_1_SOURCE:
+ case MADERA_OUT2LMIX_INPUT_1_VOLUME:
+ case MADERA_OUT2LMIX_INPUT_2_SOURCE:
+ case MADERA_OUT2LMIX_INPUT_2_VOLUME:
+ case MADERA_OUT2LMIX_INPUT_3_SOURCE:
+ case MADERA_OUT2LMIX_INPUT_3_VOLUME:
+ case MADERA_OUT2LMIX_INPUT_4_SOURCE:
+ case MADERA_OUT2LMIX_INPUT_4_VOLUME:
+ case MADERA_OUT2RMIX_INPUT_1_SOURCE:
+ case MADERA_OUT2RMIX_INPUT_1_VOLUME:
+ case MADERA_OUT2RMIX_INPUT_2_SOURCE:
+ case MADERA_OUT2RMIX_INPUT_2_VOLUME:
+ case MADERA_OUT2RMIX_INPUT_3_SOURCE:
+ case MADERA_OUT2RMIX_INPUT_3_VOLUME:
+ case MADERA_OUT2RMIX_INPUT_4_SOURCE:
+ case MADERA_OUT2RMIX_INPUT_4_VOLUME:
+ case MADERA_OUT3LMIX_INPUT_1_SOURCE:
+ case MADERA_OUT3LMIX_INPUT_1_VOLUME:
+ case MADERA_OUT3LMIX_INPUT_2_SOURCE:
+ case MADERA_OUT3LMIX_INPUT_2_VOLUME:
+ case MADERA_OUT3LMIX_INPUT_3_SOURCE:
+ case MADERA_OUT3LMIX_INPUT_3_VOLUME:
+ case MADERA_OUT3LMIX_INPUT_4_SOURCE:
+ case MADERA_OUT3LMIX_INPUT_4_VOLUME:
+ case MADERA_OUT3RMIX_INPUT_1_SOURCE:
+ case MADERA_OUT3RMIX_INPUT_1_VOLUME:
+ case MADERA_OUT3RMIX_INPUT_2_SOURCE:
+ case MADERA_OUT3RMIX_INPUT_2_VOLUME:
+ case MADERA_OUT3RMIX_INPUT_3_SOURCE:
+ case MADERA_OUT3RMIX_INPUT_3_VOLUME:
+ case MADERA_OUT3RMIX_INPUT_4_SOURCE:
+ case MADERA_OUT3RMIX_INPUT_4_VOLUME:
+ case MADERA_OUT5LMIX_INPUT_1_SOURCE:
+ case MADERA_OUT5LMIX_INPUT_1_VOLUME:
+ case MADERA_OUT5LMIX_INPUT_2_SOURCE:
+ case MADERA_OUT5LMIX_INPUT_2_VOLUME:
+ case MADERA_OUT5LMIX_INPUT_3_SOURCE:
+ case MADERA_OUT5LMIX_INPUT_3_VOLUME:
+ case MADERA_OUT5LMIX_INPUT_4_SOURCE:
+ case MADERA_OUT5LMIX_INPUT_4_VOLUME:
+ case MADERA_OUT5RMIX_INPUT_1_SOURCE:
+ case MADERA_OUT5RMIX_INPUT_1_VOLUME:
+ case MADERA_OUT5RMIX_INPUT_2_SOURCE:
+ case MADERA_OUT5RMIX_INPUT_2_VOLUME:
+ case MADERA_OUT5RMIX_INPUT_3_SOURCE:
+ case MADERA_OUT5RMIX_INPUT_3_VOLUME:
+ case MADERA_OUT5RMIX_INPUT_4_SOURCE:
+ case MADERA_OUT5RMIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX1MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX1MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX1MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX1MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX1MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX1MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX1MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX1MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX2MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX2MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX2MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX2MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX2MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX2MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX2MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX2MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX3MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX3MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX3MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX3MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX3MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX3MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX3MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX3MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX4MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX4MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX4MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX4MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX4MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX4MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX4MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX4MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX5MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX5MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX5MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX5MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX5MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX5MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX5MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX5MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX6MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX6MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX6MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX6MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX6MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX6MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX6MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX6MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX7MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX7MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX7MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX7MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX7MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX7MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX7MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX7MIX_INPUT_4_VOLUME:
+ case MADERA_AIF1TX8MIX_INPUT_1_SOURCE:
+ case MADERA_AIF1TX8MIX_INPUT_1_VOLUME:
+ case MADERA_AIF1TX8MIX_INPUT_2_SOURCE:
+ case MADERA_AIF1TX8MIX_INPUT_2_VOLUME:
+ case MADERA_AIF1TX8MIX_INPUT_3_SOURCE:
+ case MADERA_AIF1TX8MIX_INPUT_3_VOLUME:
+ case MADERA_AIF1TX8MIX_INPUT_4_SOURCE:
+ case MADERA_AIF1TX8MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX1MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX1MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX1MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX1MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX1MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX1MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX1MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX1MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX2MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX2MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX2MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX2MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX2MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX2MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX2MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX2MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX3MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX3MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX3MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX3MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX3MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX3MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX3MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX3MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX4MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX4MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX4MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX4MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX4MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX4MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX4MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX4MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX5MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX5MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX5MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX5MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX5MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX5MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX5MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX5MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX6MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX6MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX6MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX6MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX6MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX6MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX6MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX6MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX7MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX7MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX7MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX7MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX7MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX7MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX7MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX7MIX_INPUT_4_VOLUME:
+ case MADERA_AIF2TX8MIX_INPUT_1_SOURCE:
+ case MADERA_AIF2TX8MIX_INPUT_1_VOLUME:
+ case MADERA_AIF2TX8MIX_INPUT_2_SOURCE:
+ case MADERA_AIF2TX8MIX_INPUT_2_VOLUME:
+ case MADERA_AIF2TX8MIX_INPUT_3_SOURCE:
+ case MADERA_AIF2TX8MIX_INPUT_3_VOLUME:
+ case MADERA_AIF2TX8MIX_INPUT_4_SOURCE:
+ case MADERA_AIF2TX8MIX_INPUT_4_VOLUME:
+ case MADERA_AIF3TX1MIX_INPUT_1_SOURCE:
+ case MADERA_AIF3TX1MIX_INPUT_1_VOLUME:
+ case MADERA_AIF3TX1MIX_INPUT_2_SOURCE:
+ case MADERA_AIF3TX1MIX_INPUT_2_VOLUME:
+ case MADERA_AIF3TX1MIX_INPUT_3_SOURCE:
+ case MADERA_AIF3TX1MIX_INPUT_3_VOLUME:
+ case MADERA_AIF3TX1MIX_INPUT_4_SOURCE:
+ case MADERA_AIF3TX1MIX_INPUT_4_VOLUME:
+ case MADERA_AIF3TX2MIX_INPUT_1_SOURCE:
+ case MADERA_AIF3TX2MIX_INPUT_1_VOLUME:
+ case MADERA_AIF3TX2MIX_INPUT_2_SOURCE:
+ case MADERA_AIF3TX2MIX_INPUT_2_VOLUME:
+ case MADERA_AIF3TX2MIX_INPUT_3_SOURCE:
+ case MADERA_AIF3TX2MIX_INPUT_3_VOLUME:
+ case MADERA_AIF3TX2MIX_INPUT_4_SOURCE:
+ case MADERA_AIF3TX2MIX_INPUT_4_VOLUME:
+ case MADERA_AIF4TX1MIX_INPUT_1_SOURCE:
+ case MADERA_AIF4TX1MIX_INPUT_1_VOLUME:
+ case MADERA_AIF4TX1MIX_INPUT_2_SOURCE:
+ case MADERA_AIF4TX1MIX_INPUT_2_VOLUME:
+ case MADERA_AIF4TX1MIX_INPUT_3_SOURCE:
+ case MADERA_AIF4TX1MIX_INPUT_3_VOLUME:
+ case MADERA_AIF4TX1MIX_INPUT_4_SOURCE:
+ case MADERA_AIF4TX1MIX_INPUT_4_VOLUME:
+ case MADERA_AIF4TX2MIX_INPUT_1_SOURCE:
+ case MADERA_AIF4TX2MIX_INPUT_1_VOLUME:
+ case MADERA_AIF4TX2MIX_INPUT_2_SOURCE:
+ case MADERA_AIF4TX2MIX_INPUT_2_VOLUME:
+ case MADERA_AIF4TX2MIX_INPUT_3_SOURCE:
+ case MADERA_AIF4TX2MIX_INPUT_3_VOLUME:
+ case MADERA_AIF4TX2MIX_INPUT_4_SOURCE:
+ case MADERA_AIF4TX2MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX1MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX1MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX1MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX1MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX1MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX1MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX1MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX1MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX2MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX2MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX2MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX2MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX2MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX2MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX2MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX2MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX3MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX3MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX3MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX3MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX3MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX3MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX3MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX3MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX4MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX4MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX4MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX4MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX4MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX4MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX4MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX4MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX5MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX5MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX5MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX5MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX5MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX5MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX5MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX5MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX6MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX6MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX6MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX6MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX6MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX6MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX6MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX6MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX7MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX7MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX7MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX7MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX7MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX7MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX7MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX7MIX_INPUT_4_VOLUME:
+ case MADERA_SLIMTX8MIX_INPUT_1_SOURCE:
+ case MADERA_SLIMTX8MIX_INPUT_1_VOLUME:
+ case MADERA_SLIMTX8MIX_INPUT_2_SOURCE:
+ case MADERA_SLIMTX8MIX_INPUT_2_VOLUME:
+ case MADERA_SLIMTX8MIX_INPUT_3_SOURCE:
+ case MADERA_SLIMTX8MIX_INPUT_3_VOLUME:
+ case MADERA_SLIMTX8MIX_INPUT_4_SOURCE:
+ case MADERA_SLIMTX8MIX_INPUT_4_VOLUME:
+ case MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE:
+ case MADERA_SPDIF1TX1MIX_INPUT_1_VOLUME:
+ case MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE:
+ case MADERA_SPDIF1TX2MIX_INPUT_1_VOLUME:
+ case MADERA_EQ1MIX_INPUT_1_SOURCE:
+ case MADERA_EQ1MIX_INPUT_1_VOLUME:
+ case MADERA_EQ1MIX_INPUT_2_SOURCE:
+ case MADERA_EQ1MIX_INPUT_2_VOLUME:
+ case MADERA_EQ1MIX_INPUT_3_SOURCE:
+ case MADERA_EQ1MIX_INPUT_3_VOLUME:
+ case MADERA_EQ1MIX_INPUT_4_SOURCE:
+ case MADERA_EQ1MIX_INPUT_4_VOLUME:
+ case MADERA_EQ2MIX_INPUT_1_SOURCE:
+ case MADERA_EQ2MIX_INPUT_1_VOLUME:
+ case MADERA_EQ2MIX_INPUT_2_SOURCE:
+ case MADERA_EQ2MIX_INPUT_2_VOLUME:
+ case MADERA_EQ2MIX_INPUT_3_SOURCE:
+ case MADERA_EQ2MIX_INPUT_3_VOLUME:
+ case MADERA_EQ2MIX_INPUT_4_SOURCE:
+ case MADERA_EQ2MIX_INPUT_4_VOLUME:
+ case MADERA_EQ3MIX_INPUT_1_SOURCE:
+ case MADERA_EQ3MIX_INPUT_1_VOLUME:
+ case MADERA_EQ3MIX_INPUT_2_SOURCE:
+ case MADERA_EQ3MIX_INPUT_2_VOLUME:
+ case MADERA_EQ3MIX_INPUT_3_SOURCE:
+ case MADERA_EQ3MIX_INPUT_3_VOLUME:
+ case MADERA_EQ3MIX_INPUT_4_SOURCE:
+ case MADERA_EQ3MIX_INPUT_4_VOLUME:
+ case MADERA_EQ4MIX_INPUT_1_SOURCE:
+ case MADERA_EQ4MIX_INPUT_1_VOLUME:
+ case MADERA_EQ4MIX_INPUT_2_SOURCE:
+ case MADERA_EQ4MIX_INPUT_2_VOLUME:
+ case MADERA_EQ4MIX_INPUT_3_SOURCE:
+ case MADERA_EQ4MIX_INPUT_3_VOLUME:
+ case MADERA_EQ4MIX_INPUT_4_SOURCE:
+ case MADERA_EQ4MIX_INPUT_4_VOLUME:
+ case MADERA_DRC1LMIX_INPUT_1_SOURCE:
+ case MADERA_DRC1LMIX_INPUT_1_VOLUME:
+ case MADERA_DRC1LMIX_INPUT_2_SOURCE:
+ case MADERA_DRC1LMIX_INPUT_2_VOLUME:
+ case MADERA_DRC1LMIX_INPUT_3_SOURCE:
+ case MADERA_DRC1LMIX_INPUT_3_VOLUME:
+ case MADERA_DRC1LMIX_INPUT_4_SOURCE:
+ case MADERA_DRC1LMIX_INPUT_4_VOLUME:
+ case MADERA_DRC1RMIX_INPUT_1_SOURCE:
+ case MADERA_DRC1RMIX_INPUT_1_VOLUME:
+ case MADERA_DRC1RMIX_INPUT_2_SOURCE:
+ case MADERA_DRC1RMIX_INPUT_2_VOLUME:
+ case MADERA_DRC1RMIX_INPUT_3_SOURCE:
+ case MADERA_DRC1RMIX_INPUT_3_VOLUME:
+ case MADERA_DRC1RMIX_INPUT_4_SOURCE:
+ case MADERA_DRC1RMIX_INPUT_4_VOLUME:
+ case MADERA_DRC2LMIX_INPUT_1_SOURCE:
+ case MADERA_DRC2LMIX_INPUT_1_VOLUME:
+ case MADERA_DRC2LMIX_INPUT_2_SOURCE:
+ case MADERA_DRC2LMIX_INPUT_2_VOLUME:
+ case MADERA_DRC2LMIX_INPUT_3_SOURCE:
+ case MADERA_DRC2LMIX_INPUT_3_VOLUME:
+ case MADERA_DRC2LMIX_INPUT_4_SOURCE:
+ case MADERA_DRC2LMIX_INPUT_4_VOLUME:
+ case MADERA_DRC2RMIX_INPUT_1_SOURCE:
+ case MADERA_DRC2RMIX_INPUT_1_VOLUME:
+ case MADERA_DRC2RMIX_INPUT_2_SOURCE:
+ case MADERA_DRC2RMIX_INPUT_2_VOLUME:
+ case MADERA_DRC2RMIX_INPUT_3_SOURCE:
+ case MADERA_DRC2RMIX_INPUT_3_VOLUME:
+ case MADERA_DRC2RMIX_INPUT_4_SOURCE:
+ case MADERA_DRC2RMIX_INPUT_4_VOLUME:
+ case MADERA_HPLP1MIX_INPUT_1_SOURCE:
+ case MADERA_HPLP1MIX_INPUT_1_VOLUME:
+ case MADERA_HPLP1MIX_INPUT_2_SOURCE:
+ case MADERA_HPLP1MIX_INPUT_2_VOLUME:
+ case MADERA_HPLP1MIX_INPUT_3_SOURCE:
+ case MADERA_HPLP1MIX_INPUT_3_VOLUME:
+ case MADERA_HPLP1MIX_INPUT_4_SOURCE:
+ case MADERA_HPLP1MIX_INPUT_4_VOLUME:
+ case MADERA_HPLP2MIX_INPUT_1_SOURCE:
+ case MADERA_HPLP2MIX_INPUT_1_VOLUME:
+ case MADERA_HPLP2MIX_INPUT_2_SOURCE:
+ case MADERA_HPLP2MIX_INPUT_2_VOLUME:
+ case MADERA_HPLP2MIX_INPUT_3_SOURCE:
+ case MADERA_HPLP2MIX_INPUT_3_VOLUME:
+ case MADERA_HPLP2MIX_INPUT_4_SOURCE:
+ case MADERA_HPLP2MIX_INPUT_4_VOLUME:
+ case MADERA_HPLP3MIX_INPUT_1_SOURCE:
+ case MADERA_HPLP3MIX_INPUT_1_VOLUME:
+ case MADERA_HPLP3MIX_INPUT_2_SOURCE:
+ case MADERA_HPLP3MIX_INPUT_2_VOLUME:
+ case MADERA_HPLP3MIX_INPUT_3_SOURCE:
+ case MADERA_HPLP3MIX_INPUT_3_VOLUME:
+ case MADERA_HPLP3MIX_INPUT_4_SOURCE:
+ case MADERA_HPLP3MIX_INPUT_4_VOLUME:
+ case MADERA_HPLP4MIX_INPUT_1_SOURCE:
+ case MADERA_HPLP4MIX_INPUT_1_VOLUME:
+ case MADERA_HPLP4MIX_INPUT_2_SOURCE:
+ case MADERA_HPLP4MIX_INPUT_2_VOLUME:
+ case MADERA_HPLP4MIX_INPUT_3_SOURCE:
+ case MADERA_HPLP4MIX_INPUT_3_VOLUME:
+ case MADERA_HPLP4MIX_INPUT_4_SOURCE:
+ case MADERA_HPLP4MIX_INPUT_4_VOLUME:
+ case MADERA_DSP1LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP1LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP1LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP1LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP1LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP1LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP1LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP1LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP1RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP1RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP1RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP1RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP1RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP1RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP1RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP1RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP1AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP1AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP2LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP2LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP2LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP2LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP2RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP2RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP2RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP2RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP2RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP2RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP2RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP2RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP2AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP2AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP3LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP3LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP3LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP3LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP3RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP3RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP3RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP3RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP3RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP3RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP3RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP3RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP3AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP3AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_DSP4LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP4LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP4LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP4LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP4LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP4LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP4LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP4LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP4RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP4RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP4RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP4RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP4RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP4RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP4RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP4RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP4AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP4AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP4AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP4AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP4AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP4AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_DSP5LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP5LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP5LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP5LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP5LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP5LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP5LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP5LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP5RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP5RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP5RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP5RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP5RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP5RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP5RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP5RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP5AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP5AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP5AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP5AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP5AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP5AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_ASRC1_1LMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC1_1RMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC1_2LMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC1_2RMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC2_1LMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC2_1RMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC2_2LMIX_INPUT_1_SOURCE:
+ case MADERA_ASRC2_2RMIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1DEC1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1DEC2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1DEC3MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1DEC4MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1INT1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1INT2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1INT3MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC1INT4MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2DEC1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2DEC2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2DEC3MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2DEC4MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2INT1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2INT2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2INT3MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC2INT4MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC3DEC1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC3DEC2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC3INT1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC3INT2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC4DEC1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC4DEC2MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC4INT1MIX_INPUT_1_SOURCE:
+ case MADERA_ISRC4INT2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP6LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP6LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP6LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP6LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP6LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP6LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP6LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP6LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP6RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP6RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP6RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP6RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP6RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP6RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP6RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP6RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP6AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP6AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP6AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP6AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP6AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP6AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_DSP7LMIX_INPUT_1_SOURCE:
+ case MADERA_DSP7LMIX_INPUT_1_VOLUME:
+ case MADERA_DSP7LMIX_INPUT_2_SOURCE:
+ case MADERA_DSP7LMIX_INPUT_2_VOLUME:
+ case MADERA_DSP7LMIX_INPUT_3_SOURCE:
+ case MADERA_DSP7LMIX_INPUT_3_VOLUME:
+ case MADERA_DSP7LMIX_INPUT_4_SOURCE:
+ case MADERA_DSP7LMIX_INPUT_4_VOLUME:
+ case MADERA_DSP7RMIX_INPUT_1_SOURCE:
+ case MADERA_DSP7RMIX_INPUT_1_VOLUME:
+ case MADERA_DSP7RMIX_INPUT_2_SOURCE:
+ case MADERA_DSP7RMIX_INPUT_2_VOLUME:
+ case MADERA_DSP7RMIX_INPUT_3_SOURCE:
+ case MADERA_DSP7RMIX_INPUT_3_VOLUME:
+ case MADERA_DSP7RMIX_INPUT_4_SOURCE:
+ case MADERA_DSP7RMIX_INPUT_4_VOLUME:
+ case MADERA_DSP7AUX1MIX_INPUT_1_SOURCE:
+ case MADERA_DSP7AUX2MIX_INPUT_1_SOURCE:
+ case MADERA_DSP7AUX3MIX_INPUT_1_SOURCE:
+ case MADERA_DSP7AUX4MIX_INPUT_1_SOURCE:
+ case MADERA_DSP7AUX5MIX_INPUT_1_SOURCE:
+ case MADERA_DSP7AUX6MIX_INPUT_1_SOURCE:
+ case MADERA_DFC1MIX_INPUT_1_SOURCE:
+ case MADERA_DFC2MIX_INPUT_1_SOURCE:
+ case MADERA_DFC3MIX_INPUT_1_SOURCE:
+ case MADERA_DFC4MIX_INPUT_1_SOURCE:
+ case MADERA_DFC5MIX_INPUT_1_SOURCE:
+ case MADERA_DFC6MIX_INPUT_1_SOURCE:
+ case MADERA_DFC7MIX_INPUT_1_SOURCE:
+ case MADERA_DFC8MIX_INPUT_1_SOURCE:
+ case MADERA_FX_CTRL1:
+ case MADERA_FX_CTRL2:
+ case MADERA_EQ1_1:
+ case MADERA_EQ1_2:
+ case MADERA_EQ1_3:
+ case MADERA_EQ1_4:
+ case MADERA_EQ1_5:
+ case MADERA_EQ1_6:
+ case MADERA_EQ1_7:
+ case MADERA_EQ1_8:
+ case MADERA_EQ1_9:
+ case MADERA_EQ1_10:
+ case MADERA_EQ1_11:
+ case MADERA_EQ1_12:
+ case MADERA_EQ1_13:
+ case MADERA_EQ1_14:
+ case MADERA_EQ1_15:
+ case MADERA_EQ1_16:
+ case MADERA_EQ1_17:
+ case MADERA_EQ1_18:
+ case MADERA_EQ1_19:
+ case MADERA_EQ1_20:
+ case MADERA_EQ1_21:
+ case MADERA_EQ2_1:
+ case MADERA_EQ2_2:
+ case MADERA_EQ2_3:
+ case MADERA_EQ2_4:
+ case MADERA_EQ2_5:
+ case MADERA_EQ2_6:
+ case MADERA_EQ2_7:
+ case MADERA_EQ2_8:
+ case MADERA_EQ2_9:
+ case MADERA_EQ2_10:
+ case MADERA_EQ2_11:
+ case MADERA_EQ2_12:
+ case MADERA_EQ2_13:
+ case MADERA_EQ2_14:
+ case MADERA_EQ2_15:
+ case MADERA_EQ2_16:
+ case MADERA_EQ2_17:
+ case MADERA_EQ2_18:
+ case MADERA_EQ2_19:
+ case MADERA_EQ2_20:
+ case MADERA_EQ2_21:
+ case MADERA_EQ3_1:
+ case MADERA_EQ3_2:
+ case MADERA_EQ3_3:
+ case MADERA_EQ3_4:
+ case MADERA_EQ3_5:
+ case MADERA_EQ3_6:
+ case MADERA_EQ3_7:
+ case MADERA_EQ3_8:
+ case MADERA_EQ3_9:
+ case MADERA_EQ3_10:
+ case MADERA_EQ3_11:
+ case MADERA_EQ3_12:
+ case MADERA_EQ3_13:
+ case MADERA_EQ3_14:
+ case MADERA_EQ3_15:
+ case MADERA_EQ3_16:
+ case MADERA_EQ3_17:
+ case MADERA_EQ3_18:
+ case MADERA_EQ3_19:
+ case MADERA_EQ3_20:
+ case MADERA_EQ3_21:
+ case MADERA_EQ4_1:
+ case MADERA_EQ4_2:
+ case MADERA_EQ4_3:
+ case MADERA_EQ4_4:
+ case MADERA_EQ4_5:
+ case MADERA_EQ4_6:
+ case MADERA_EQ4_7:
+ case MADERA_EQ4_8:
+ case MADERA_EQ4_9:
+ case MADERA_EQ4_10:
+ case MADERA_EQ4_11:
+ case MADERA_EQ4_12:
+ case MADERA_EQ4_13:
+ case MADERA_EQ4_14:
+ case MADERA_EQ4_15:
+ case MADERA_EQ4_16:
+ case MADERA_EQ4_17:
+ case MADERA_EQ4_18:
+ case MADERA_EQ4_19:
+ case MADERA_EQ4_20:
+ case MADERA_EQ4_21:
+ case MADERA_DRC1_CTRL1:
+ case MADERA_DRC1_CTRL2:
+ case MADERA_DRC1_CTRL3:
+ case MADERA_DRC1_CTRL4:
+ case MADERA_DRC1_CTRL5:
+ case MADERA_DRC2_CTRL1:
+ case MADERA_DRC2_CTRL2:
+ case MADERA_DRC2_CTRL3:
+ case MADERA_DRC2_CTRL4:
+ case MADERA_DRC2_CTRL5:
+ case MADERA_HPLPF1_1:
+ case MADERA_HPLPF1_2:
+ case MADERA_HPLPF2_1:
+ case MADERA_HPLPF2_2:
+ case MADERA_HPLPF3_1:
+ case MADERA_HPLPF3_2:
+ case MADERA_HPLPF4_1:
+ case MADERA_HPLPF4_2:
+ case MADERA_ASRC1_ENABLE:
+ case MADERA_ASRC1_STATUS:
+ case MADERA_ASRC1_RATE1:
+ case MADERA_ASRC1_RATE2:
+ case MADERA_ASRC2_ENABLE:
+ case MADERA_ASRC2_STATUS:
+ case MADERA_ASRC2_RATE1:
+ case MADERA_ASRC2_RATE2:
+ case MADERA_ISRC_1_CTRL_1:
+ case MADERA_ISRC_1_CTRL_2:
+ case MADERA_ISRC_1_CTRL_3:
+ case MADERA_ISRC_2_CTRL_1:
+ case MADERA_ISRC_2_CTRL_2:
+ case MADERA_ISRC_2_CTRL_3:
+ case MADERA_ISRC_3_CTRL_1:
+ case MADERA_ISRC_3_CTRL_2:
+ case MADERA_ISRC_3_CTRL_3:
+ case MADERA_ISRC_4_CTRL_1:
+ case MADERA_ISRC_4_CTRL_2:
+ case MADERA_ISRC_4_CTRL_3:
+ case MADERA_CLOCK_CONTROL:
+ case MADERA_ANC_SRC:
+ case MADERA_DSP_STATUS:
+ case MADERA_ANC_COEFF_START ... MADERA_ANC_COEFF_END:
+ case MADERA_FCL_FILTER_CONTROL:
+ case MADERA_FCL_ADC_REFORMATTER_CONTROL:
+ case MADERA_FCL_COEFF_START ... MADERA_FCL_COEFF_END:
+ case MADERA_FCR_FILTER_CONTROL:
+ case MADERA_FCR_ADC_REFORMATTER_CONTROL:
+ case MADERA_FCR_COEFF_START ... MADERA_FCR_COEFF_END:
+ case MADERA_DAC_COMP_1:
+ case MADERA_DAC_COMP_2:
+ case MADERA_FRF_COEFFICIENT_1L_1:
+ case MADERA_FRF_COEFFICIENT_1L_2:
+ case MADERA_FRF_COEFFICIENT_1L_3:
+ case MADERA_FRF_COEFFICIENT_1L_4:
+ case MADERA_FRF_COEFFICIENT_1R_1:
+ case MADERA_FRF_COEFFICIENT_1R_2:
+ case MADERA_FRF_COEFFICIENT_1R_3:
+ case MADERA_FRF_COEFFICIENT_1R_4:
+ case MADERA_FRF_COEFFICIENT_2L_1:
+ case MADERA_FRF_COEFFICIENT_2L_2:
+ case MADERA_FRF_COEFFICIENT_2L_3:
+ case MADERA_FRF_COEFFICIENT_2L_4:
+ case MADERA_FRF_COEFFICIENT_2R_1:
+ case MADERA_FRF_COEFFICIENT_2R_2:
+ case MADERA_FRF_COEFFICIENT_2R_3:
+ case MADERA_FRF_COEFFICIENT_2R_4:
+ case MADERA_FRF_COEFFICIENT_3L_1:
+ case MADERA_FRF_COEFFICIENT_3L_2:
+ case MADERA_FRF_COEFFICIENT_3L_3:
+ case MADERA_FRF_COEFFICIENT_3L_4:
+ case MADERA_FRF_COEFFICIENT_3R_1:
+ case MADERA_FRF_COEFFICIENT_3R_2:
+ case MADERA_FRF_COEFFICIENT_3R_3:
+ case MADERA_FRF_COEFFICIENT_3R_4:
+ case MADERA_FRF_COEFFICIENT_5L_1:
+ case MADERA_FRF_COEFFICIENT_5L_2:
+ case MADERA_FRF_COEFFICIENT_5L_3:
+ case MADERA_FRF_COEFFICIENT_5L_4:
+ case MADERA_FRF_COEFFICIENT_5R_1:
+ case MADERA_FRF_COEFFICIENT_5R_2:
+ case MADERA_FRF_COEFFICIENT_5R_3:
+ case MADERA_FRF_COEFFICIENT_5R_4:
+ case MADERA_DFC1_CTRL:
+ case MADERA_DFC1_RX:
+ case MADERA_DFC1_TX:
+ case MADERA_DFC2_CTRL:
+ case MADERA_DFC2_RX:
+ case MADERA_DFC2_TX:
+ case MADERA_DFC3_CTRL:
+ case MADERA_DFC3_RX:
+ case MADERA_DFC3_TX:
+ case MADERA_DFC4_CTRL:
+ case MADERA_DFC4_RX:
+ case MADERA_DFC4_TX:
+ case MADERA_DFC5_CTRL:
+ case MADERA_DFC5_RX:
+ case MADERA_DFC5_TX:
+ case MADERA_DFC6_CTRL:
+ case MADERA_DFC6_RX:
+ case MADERA_DFC6_TX:
+ case MADERA_DFC7_CTRL:
+ case MADERA_DFC7_RX:
+ case MADERA_DFC7_TX:
+ case MADERA_DFC8_CTRL:
+ case MADERA_DFC8_RX:
+ case MADERA_DFC8_TX:
+ case MADERA_DFC_STATUS:
+ case MADERA_GPIO1_CTRL_1:
+ case MADERA_GPIO1_CTRL_2:
+ case MADERA_GPIO2_CTRL_1:
+ case MADERA_GPIO2_CTRL_2:
+ case MADERA_GPIO3_CTRL_1:
+ case MADERA_GPIO3_CTRL_2:
+ case MADERA_GPIO4_CTRL_1:
+ case MADERA_GPIO4_CTRL_2:
+ case MADERA_GPIO5_CTRL_1:
+ case MADERA_GPIO5_CTRL_2:
+ case MADERA_GPIO6_CTRL_1:
+ case MADERA_GPIO6_CTRL_2:
+ case MADERA_GPIO7_CTRL_1:
+ case MADERA_GPIO7_CTRL_2:
+ case MADERA_GPIO8_CTRL_1:
+ case MADERA_GPIO8_CTRL_2:
+ case MADERA_GPIO9_CTRL_1:
+ case MADERA_GPIO9_CTRL_2:
+ case MADERA_GPIO10_CTRL_1:
+ case MADERA_GPIO10_CTRL_2:
+ case MADERA_GPIO11_CTRL_1:
+ case MADERA_GPIO11_CTRL_2:
+ case MADERA_GPIO12_CTRL_1:
+ case MADERA_GPIO12_CTRL_2:
+ case MADERA_GPIO13_CTRL_1:
+ case MADERA_GPIO13_CTRL_2:
+ case MADERA_GPIO14_CTRL_1:
+ case MADERA_GPIO14_CTRL_2:
+ case MADERA_GPIO15_CTRL_1:
+ case MADERA_GPIO15_CTRL_2:
+ case MADERA_GPIO16_CTRL_1:
+ case MADERA_GPIO16_CTRL_2:
+ case MADERA_GPIO17_CTRL_1:
+ case MADERA_GPIO17_CTRL_2:
+ case MADERA_GPIO18_CTRL_1:
+ case MADERA_GPIO18_CTRL_2:
+ case MADERA_GPIO19_CTRL_1:
+ case MADERA_GPIO19_CTRL_2:
+ case MADERA_GPIO20_CTRL_1:
+ case MADERA_GPIO20_CTRL_2:
+ case MADERA_GPIO21_CTRL_1:
+ case MADERA_GPIO21_CTRL_2:
+ case MADERA_GPIO22_CTRL_1:
+ case MADERA_GPIO22_CTRL_2:
+ case MADERA_GPIO23_CTRL_1:
+ case MADERA_GPIO23_CTRL_2:
+ case MADERA_GPIO24_CTRL_1:
+ case MADERA_GPIO24_CTRL_2:
+ case MADERA_GPIO25_CTRL_1:
+ case MADERA_GPIO25_CTRL_2:
+ case MADERA_GPIO26_CTRL_1:
+ case MADERA_GPIO26_CTRL_2:
+ case MADERA_GPIO27_CTRL_1:
+ case MADERA_GPIO27_CTRL_2:
+ case MADERA_GPIO28_CTRL_1:
+ case MADERA_GPIO28_CTRL_2:
+ case MADERA_GPIO29_CTRL_1:
+ case MADERA_GPIO29_CTRL_2:
+ case MADERA_GPIO30_CTRL_1:
+ case MADERA_GPIO30_CTRL_2:
+ case MADERA_GPIO31_CTRL_1:
+ case MADERA_GPIO31_CTRL_2:
+ case MADERA_GPIO32_CTRL_1:
+ case MADERA_GPIO32_CTRL_2:
+ case MADERA_GPIO33_CTRL_1:
+ case MADERA_GPIO33_CTRL_2:
+ case MADERA_GPIO34_CTRL_1:
+ case MADERA_GPIO34_CTRL_2:
+ case MADERA_GPIO35_CTRL_1:
+ case MADERA_GPIO35_CTRL_2:
+ case MADERA_GPIO36_CTRL_1:
+ case MADERA_GPIO36_CTRL_2:
+ case MADERA_GPIO37_CTRL_1:
+ case MADERA_GPIO37_CTRL_2:
+ case MADERA_GPIO38_CTRL_1:
+ case MADERA_GPIO38_CTRL_2:
+ case MADERA_IRQ1_STATUS_1 ... MADERA_IRQ1_STATUS_33:
+ case MADERA_IRQ1_MASK_1 ... MADERA_IRQ1_MASK_33:
+ case MADERA_IRQ1_RAW_STATUS_1 ... MADERA_IRQ1_RAW_STATUS_33:
+ case MADERA_INTERRUPT_DEBOUNCE_7:
+ case MADERA_IRQ1_CTRL:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static bool cs47l90_16bit_volatile_register(struct device *dev,
+ unsigned int reg)
+{
+ switch (reg) {
+ case MADERA_SOFTWARE_RESET:
+ case MADERA_HARDWARE_REVISION:
+ case MADERA_WRITE_SEQUENCER_CTRL_0:
+ case MADERA_WRITE_SEQUENCER_CTRL_1:
+ case MADERA_WRITE_SEQUENCER_CTRL_2:
+ case MADERA_HAPTICS_STATUS:
+ case MADERA_SAMPLE_RATE_1_STATUS:
+ case MADERA_SAMPLE_RATE_2_STATUS:
+ case MADERA_SAMPLE_RATE_3_STATUS:
+ case MADERA_ASYNC_SAMPLE_RATE_1_STATUS:
+ case MADERA_ASYNC_SAMPLE_RATE_2_STATUS:
+ case MADERA_HP_CTRL_1L:
+ case MADERA_HP_CTRL_1R:
+ case MADERA_HP_CTRL_2L:
+ case MADERA_HP_CTRL_2R:
+ case MADERA_HP_CTRL_3L:
+ case MADERA_HP_CTRL_3R:
+ case MADERA_MIC_DETECT_1_CONTROL_3:
+ case MADERA_MIC_DETECT_1_CONTROL_4:
+ case MADERA_MIC_DETECT_2_CONTROL_3:
+ case MADERA_MIC_DETECT_2_CONTROL_4:
+ case MADERA_HEADPHONE_DETECT_2:
+ case MADERA_HEADPHONE_DETECT_3:
+ case MADERA_HEADPHONE_DETECT_5:
+ case MADERA_INPUT_ENABLES_STATUS:
+ case MADERA_OUTPUT_STATUS_1:
+ case MADERA_RAW_OUTPUT_STATUS_1:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_1:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_2:
+ case MADERA_SPD1_TX_CHANNEL_STATUS_3:
+ case MADERA_SLIMBUS_RX_PORT_STATUS:
+ case MADERA_SLIMBUS_TX_PORT_STATUS:
+ case MADERA_FX_CTRL2:
+ case MADERA_ASRC2_STATUS:
+ case MADERA_ASRC1_STATUS:
+ case MADERA_CLOCK_CONTROL:
+ case MADERA_DFC_STATUS:
+ case MADERA_IRQ1_STATUS_1 ... MADERA_IRQ1_STATUS_33:
+ case MADERA_IRQ1_RAW_STATUS_1 ... MADERA_IRQ1_RAW_STATUS_33:
+ return true;
+ default:
+ return false;
+ }
+}
+
+static bool cs47l90_32bit_readable_register(struct device *dev,
+ unsigned int reg)
+{
+ switch (reg) {
+ case MADERA_WSEQ_SEQUENCE_1 ... MADERA_WSEQ_SEQUENCE_508:
+ case MADERA_OTP_HPDET_CAL_1 ... MADERA_OTP_HPDET_CAL_2:
+ case MADERA_DSP1_CONFIG_1 ... MADERA_DSP1_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ case MADERA_DSP2_CONFIG_1 ... MADERA_DSP2_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ case MADERA_DSP3_CONFIG_1 ... MADERA_DSP3_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ case MADERA_DSP4_CONFIG_1 ... MADERA_DSP4_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ case MADERA_DSP5_CONFIG_1 ... MADERA_DSP5_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ case MADERA_DSP6_CONFIG_1 ... MADERA_DSP6_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ case MADERA_DSP7_CONFIG_1 ... MADERA_DSP7_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ return true;
+ default:
+ return cs47l90_is_adsp_memory(reg);
+ }
+}
+
+static bool cs47l90_32bit_volatile_register(struct device *dev,
+ unsigned int reg)
+{
+ switch (reg) {
+ case MADERA_WSEQ_SEQUENCE_1 ... MADERA_WSEQ_SEQUENCE_508:
+ case MADERA_OTP_HPDET_CAL_1 ... MADERA_OTP_HPDET_CAL_2:
+ case MADERA_DSP1_CONFIG_1 ... MADERA_DSP1_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ case MADERA_DSP2_CONFIG_1 ... MADERA_DSP2_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ case MADERA_DSP3_CONFIG_1 ... MADERA_DSP3_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ case MADERA_DSP4_CONFIG_1 ... MADERA_DSP4_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ case MADERA_DSP5_CONFIG_1 ... MADERA_DSP5_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ case MADERA_DSP6_CONFIG_1 ... MADERA_DSP6_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ case MADERA_DSP7_CONFIG_1 ... MADERA_DSP7_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
+ return true;
+ default:
+ return cs47l90_is_adsp_memory(reg);
+ }
+}
+
+const struct regmap_config cs47l90_16bit_spi_regmap = {
+ .name = "cs47l90_16bit",
+ .reg_bits = 32,
+ .pad_bits = 16,
+ .val_bits = 16,
+ .reg_format_endian = REGMAP_ENDIAN_BIG,
+ .val_format_endian = REGMAP_ENDIAN_BIG,
+
+ .max_register = MADERA_INTERRUPT_RAW_STATUS_1,
+ .readable_reg = cs47l90_16bit_readable_register,
+ .volatile_reg = cs47l90_16bit_volatile_register,
+
+ .cache_type = REGCACHE_RBTREE,
+ .reg_defaults = cs47l90_reg_default,
+ .num_reg_defaults = ARRAY_SIZE(cs47l90_reg_default),
+};
+EXPORT_SYMBOL_GPL(cs47l90_16bit_spi_regmap);
+
+const struct regmap_config cs47l90_16bit_i2c_regmap = {
+ .name = "cs47l90_16bit",
+ .reg_bits = 32,
+ .val_bits = 16,
+ .reg_format_endian = REGMAP_ENDIAN_BIG,
+ .val_format_endian = REGMAP_ENDIAN_BIG,
+
+ .max_register = MADERA_INTERRUPT_RAW_STATUS_1,
+ .readable_reg = cs47l90_16bit_readable_register,
+ .volatile_reg = cs47l90_16bit_volatile_register,
+
+ .cache_type = REGCACHE_RBTREE,
+ .reg_defaults = cs47l90_reg_default,
+ .num_reg_defaults = ARRAY_SIZE(cs47l90_reg_default),
+};
+EXPORT_SYMBOL_GPL(cs47l90_16bit_i2c_regmap);
+
+const struct regmap_config cs47l90_32bit_spi_regmap = {
+ .name = "cs47l90_32bit",
+ .reg_bits = 32,
+ .reg_stride = 2,
+ .pad_bits = 16,
+ .val_bits = 32,
+ .reg_format_endian = REGMAP_ENDIAN_BIG,
+ .val_format_endian = REGMAP_ENDIAN_BIG,
+
+ .max_register = MADERA_DSP7_PMEM_ERR_ADDR___XMEM_ERR_ADDR,
+ .readable_reg = cs47l90_32bit_readable_register,
+ .volatile_reg = cs47l90_32bit_volatile_register,
+
+ .cache_type = REGCACHE_RBTREE,
+};
+EXPORT_SYMBOL_GPL(cs47l90_32bit_spi_regmap);
+
+const struct regmap_config cs47l90_32bit_i2c_regmap = {
+ .name = "cs47l90_32bit",
+ .reg_bits = 32,
+ .reg_stride = 2,
+ .val_bits = 32,
+ .reg_format_endian = REGMAP_ENDIAN_BIG,
+ .val_format_endian = REGMAP_ENDIAN_BIG,
+
+ .max_register = MADERA_DSP7_PMEM_ERR_ADDR___XMEM_ERR_ADDR,
+ .readable_reg = cs47l90_32bit_readable_register,
+ .volatile_reg = cs47l90_32bit_volatile_register,
+
+ .cache_type = REGCACHE_RBTREE,
+};
+EXPORT_SYMBOL_GPL(cs47l90_32bit_i2c_regmap);
--
1.9.1
The Cirrus Logic Madera codecs are a family of related codecs with
extensive digital and analogue I/O, digital mixing and routing,
signal processing and programmable DSPs.
This patch adds common support code shared by all Madera codecs.
Signed-off-by: Charles Keepax <[email protected]>
Signed-off-by: Nariman Poushin <[email protected]>
Signed-off-by: Nikesh Oswal <[email protected]>
Signed-off-by: Piotr Stankiewicz <[email protected]>
Signed-off-by: Ajit Pandey <[email protected]>
Signed-off-by: Richard Fitzgerald <[email protected]>
---
Documentation/devicetree/bindings/sound/madera.txt | 63 +
MAINTAINERS | 5 +
include/dt-bindings/sound/madera.h | 18 +
include/sound/madera-pdata.h | 70 +
sound/soc/codecs/Kconfig | 5 +
sound/soc/codecs/Makefile | 2 +
sound/soc/codecs/madera.c | 4430 ++++++++++++++++++++
sound/soc/codecs/madera.h | 470 +++
8 files changed, 5063 insertions(+)
create mode 100644 Documentation/devicetree/bindings/sound/madera.txt
create mode 100644 include/dt-bindings/sound/madera.h
create mode 100644 include/sound/madera-pdata.h
create mode 100644 sound/soc/codecs/madera.c
create mode 100644 sound/soc/codecs/madera.h
diff --git a/Documentation/devicetree/bindings/sound/madera.txt b/Documentation/devicetree/bindings/sound/madera.txt
new file mode 100644
index 0000000..59e7a66
--- /dev/null
+++ b/Documentation/devicetree/bindings/sound/madera.txt
@@ -0,0 +1,63 @@
+Cirrus Logic Madera class audio codecs
+
+This is a subnode of the parent mfd node.
+
+See also the core bindings for the parent MFD driver:
+See Documentation/devicetree/bindings/mfd/madera.txt
+
+Required properties:
+ - compatible : One of the following chip-specific strings:
+ "cirrus,cs47l35-codec"
+ "cirrus,cs47l85-codec"
+ "cirrus,cs47l90-codec"
+
+Optional properties:
+ - cirrus,dmic-ref : DMIC bias reference for each input, one cell per input
+ <IN1 IN2 IN3 ...>
+ A value of 0 indicates MICVDD and is the default, other
+ values depend on the codec - see the datasheet for the INn_DMIC_SUP field
+
+ - cirrus,inmode : A list of input mode settings for each input. A maximum
+ of 16 cells, with four cells per input in the order INnAL, INnAR INnBL INnBR.
+ For non-muxed inputs the first two cells for that input set the mode for
+ the left and right channel and the second two cells must be 0.
+ For muxed inputs the first two cells for that input set the mode of the
+ left and right A inputs and the second two cells set the mode of the left
+ and right B inputs.
+ Valid mode values are one of the MADERA_INMODE_xxx (see
+ include/dt-bindings/sound/madera.h). If the array is shorter than the number
+ of inputs the unspecified inputs default to MADERA_INMODE_DIFF.
+
+ - cirrus,out-mono : Mono bit for each output, must contain six cells if
+ specified. A non-zero value indicates the corresponding output is mono.
+
+ - cirrus,max-channels-clocked : The maximum number of channels to be clocked
+ on each AIF, useful for I2S systems with multiple data lines being mastered.
+ One cell for each AIF, use a value of zero for AIFs that should be handled
+ normally.
+
+ - cirrus,pdm-fmt : PDM speaker data format, must contain 2 cells
+ (OUT5 and OUT6). See the datasheet for values.
+ The second cell is ignored for codecs that do not have OUT6.
+
+ - cirrus,pdm-mute : PDM speaker mute setting, must contain 2 cells
+ (OUT5 and OUT6). See the datasheet for values.
+ The second cell is ignored for codecs that do not have OUT6.
+
+Example:
+
+codec: cs47l35@0 {
+ compatible = "cirrus,cs47l35";
+
+ codec {
+ compatible = "cirrus,cs47l35-codec";
+ cirrus,dmic-ref = <0 0 1 0>;
+ cirrus,dmic-clksrc = <0 0 0 0>;
+ cirrus,inmode = <
+ 2 2 1 1 /* IN1A digital, IN1B single-ended */
+ 0 0 0 0 /* IN2 differential */
+ >;
+ cirrus,out-mono = <0 0 0 0 0 0>;
+ cirrus,max-channels-clocked = <2 0 0>;
+ };
+};
diff --git a/MAINTAINERS b/MAINTAINERS
index 0183692..b29f539 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -3271,15 +3271,20 @@ F: Documentation/devicetree/bindings/interrupt-controller/cirrus,madera.txt
F: Documentation/devicetree/bindings/mfd/madera.txt
F: Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt
F: Documentation/devicetree/bindings/regulator/madera*
+F: Documentation/devicetree/bindings/sound/madera.txt
+F: include/dt-bindings/sound/madera*
F: include/linux/irqchip/irq-madera*
F: include/linux/mfd/madera/*
F: include/linux/regulator/madera*
+F: include/sound/madera*
F: drivers/gpio/gpio-madera*
F: drivers/irqchip/irq-madera*
F: drivers/mfd/madera*
F: drivers/mfd/cs47l*
F: drivers/pinctrl/pinctrl-madera*
F: drivers/regulator/madera*
+F: sound/soc/codecs/cs47l*
+F: sound/soc/codecs/madera*
CLEANCACHE API
M: Konrad Rzeszutek Wilk <[email protected]>
diff --git a/include/dt-bindings/sound/madera.h b/include/dt-bindings/sound/madera.h
new file mode 100644
index 0000000..91896f8
--- /dev/null
+++ b/include/dt-bindings/sound/madera.h
@@ -0,0 +1,18 @@
+/*
+ * Device Tree defines for Madera codecs
+ *
+ * Copyright 2016-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef DT_BINDINGS_SOUND_MADERA_H
+#define DT_BINDINGS_SOUND_MADERA_H
+
+#define MADERA_INMODE_DIFF 0
+#define MADERA_INMODE_SE 1
+#define MADERA_INMODE_DMIC 2
+
+#endif
diff --git a/include/sound/madera-pdata.h b/include/sound/madera-pdata.h
new file mode 100644
index 0000000..5f03f83
--- /dev/null
+++ b/include/sound/madera-pdata.h
@@ -0,0 +1,70 @@
+/*
+ * Platform data for Madera codec driver
+ *
+ * Copyright 2016-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef MADERA_CODEC_PDATA_H
+#define MADERA_CODEC_PDATA_H
+
+#include <linux/kernel.h>
+
+#define MADERA_MAX_INPUT 6
+#define MADERA_MAX_MUXED_CHANNELS 4
+#define MADERA_MAX_OUTPUT 6
+#define MADERA_MAX_AIF 4
+#define MADERA_MAX_PDM_SPK 2
+#define MADERA_MAX_DSP 7
+
+struct madera_codec_pdata {
+ /**
+ * Maximum number of channels that clocks will be generated for,
+ * useful for systems where an I2S bus with multiple data
+ * lines is mastered.
+ */
+ u32 max_channels_clocked[MADERA_MAX_AIF];
+
+ /**
+ * DMIC bias reference for each input
+ * A value of 0 indicates MICVDD and is the default, other values
+ * depend on the codec - see the datasheet for the INn_DMIC_SUP field
+ */
+ u32 dmic_ref[MADERA_MAX_INPUT];
+
+ /**
+ * Mode of input structures
+ * One of the MADERA_INMODE_xxx values
+ * Two-dimensional array [input_number][channel number]
+ * Four slots per input in the order:
+ * [n][0]=INnAL [n][1]=INnAR [n][2]=INnBL [n][3]=INnBR
+ */
+ u32 inmode[MADERA_MAX_INPUT][MADERA_MAX_MUXED_CHANNELS];
+
+ /**
+ * Output mono mode control
+ * For each output set the value to TRUE to indicate that
+ * the output is mono
+ * [0]=OUT1, [1]=OUT2, ...
+ */
+ bool out_mono[MADERA_MAX_OUTPUT];
+
+ /**
+ * PDM mute control settings.
+ * See the PDM_SPKn_CTRL_1 register in the datasheet for the
+ * meaning of the values.
+ */
+ u32 pdm_mute[MADERA_MAX_PDM_SPK];
+
+ /**
+ * PDM speaker format
+ * See the PDM_SPKn_FMT field in the datasheet for the
+ * meaning of the values
+ */
+ u32 pdm_fmt[MADERA_MAX_PDM_SPK];
+};
+
+#endif
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index 70decab..753b0f1 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -246,10 +246,12 @@ config SND_SOC_WM_HUBS
config SND_SOC_WM_ADSP
tristate
select SND_SOC_COMPRESS
+ default y if SND_SOC_MADERA=y
default y if SND_SOC_CS47L24=y
default y if SND_SOC_WM5102=y
default y if SND_SOC_WM5110=y
default y if SND_SOC_WM2200=y
+ default m if SND_SOC_MADERA=m
default m if SND_SOC_CS47L24=m
default m if SND_SOC_WM5102=m
default m if SND_SOC_WM5110=m
@@ -576,6 +578,9 @@ config SND_SOC_ISABELLE
config SND_SOC_LM49453
tristate
+config SND_SOC_MADERA
+ tristate
+
config SND_SOC_MAX98088
tristate
diff --git a/sound/soc/codecs/Makefile b/sound/soc/codecs/Makefile
index bbef31e..641cf66 100644
--- a/sound/soc/codecs/Makefile
+++ b/sound/soc/codecs/Makefile
@@ -77,6 +77,7 @@ snd-soc-jz4740-codec-objs := jz4740.o
snd-soc-l3-objs := l3.o
snd-soc-lm4857-objs := lm4857.o
snd-soc-lm49453-objs := lm49453.o
+snd-soc-madera-objs := madera.o
snd-soc-max9768-objs := max9768.o
snd-soc-max98088-objs := max98088.o
snd-soc-max98090-objs := max98090.o
@@ -310,6 +311,7 @@ obj-$(CONFIG_SND_SOC_JZ4740_CODEC) += snd-soc-jz4740-codec.o
obj-$(CONFIG_SND_SOC_L3) += snd-soc-l3.o
obj-$(CONFIG_SND_SOC_LM4857) += snd-soc-lm4857.o
obj-$(CONFIG_SND_SOC_LM49453) += snd-soc-lm49453.o
+obj-$(CONFIG_SND_SOC_MADERA) += snd-soc-madera.o
obj-$(CONFIG_SND_SOC_MAX9768) += snd-soc-max9768.o
obj-$(CONFIG_SND_SOC_MAX98088) += snd-soc-max98088.o
obj-$(CONFIG_SND_SOC_MAX98090) += snd-soc-max98090.o
diff --git a/sound/soc/codecs/madera.c b/sound/soc/codecs/madera.c
new file mode 100644
index 0000000..6f205bf
--- /dev/null
+++ b/sound/soc/codecs/madera.c
@@ -0,0 +1,4430 @@
+/*
+ * madera.c - Cirrus Logic Madera class codecs common support
+ *
+ * Copyright 2015-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#include <linux/delay.h>
+#include <linux/gcd.h>
+#include <linux/module.h>
+#include <linux/pm_runtime.h>
+#include <linux/slab.h>
+#include <sound/pcm.h>
+#include <sound/pcm_params.h>
+#include <sound/tlv.h>
+
+#include <linux/mfd/madera/core.h>
+#include <linux/mfd/madera/registers.h>
+#include <linux/mfd/madera/pdata.h>
+#include <sound/madera-pdata.h>
+
+#include <dt-bindings/sound/madera.h>
+
+#include "madera.h"
+
+#define MADERA_AIF_BCLK_CTRL 0x00
+#define MADERA_AIF_TX_PIN_CTRL 0x01
+#define MADERA_AIF_RX_PIN_CTRL 0x02
+#define MADERA_AIF_RATE_CTRL 0x03
+#define MADERA_AIF_FORMAT 0x04
+#define MADERA_AIF_RX_BCLK_RATE 0x06
+#define MADERA_AIF_FRAME_CTRL_1 0x07
+#define MADERA_AIF_FRAME_CTRL_2 0x08
+#define MADERA_AIF_FRAME_CTRL_3 0x09
+#define MADERA_AIF_FRAME_CTRL_4 0x0A
+#define MADERA_AIF_FRAME_CTRL_5 0x0B
+#define MADERA_AIF_FRAME_CTRL_6 0x0C
+#define MADERA_AIF_FRAME_CTRL_7 0x0D
+#define MADERA_AIF_FRAME_CTRL_8 0x0E
+#define MADERA_AIF_FRAME_CTRL_9 0x0F
+#define MADERA_AIF_FRAME_CTRL_10 0x10
+#define MADERA_AIF_FRAME_CTRL_11 0x11
+#define MADERA_AIF_FRAME_CTRL_12 0x12
+#define MADERA_AIF_FRAME_CTRL_13 0x13
+#define MADERA_AIF_FRAME_CTRL_14 0x14
+#define MADERA_AIF_FRAME_CTRL_15 0x15
+#define MADERA_AIF_FRAME_CTRL_16 0x16
+#define MADERA_AIF_FRAME_CTRL_17 0x17
+#define MADERA_AIF_FRAME_CTRL_18 0x18
+#define MADERA_AIF_TX_ENABLES 0x19
+#define MADERA_AIF_RX_ENABLES 0x1A
+#define MADERA_AIF_FORCE_WRITE 0x1B
+
+#define MADERA_DSP_CONFIG_1_OFFS 0x00
+#define MADERA_DSP_CONFIG_2_OFFS 0x02
+
+#define MADERA_DSP_CLK_SEL_MASK 0x70000
+#define MADERA_DSP_CLK_SEL_SHIFT 16
+
+#define MADERA_DSP_RATE_MASK 0x7800
+#define MADERA_DSP_RATE_SHIFT 11
+
+#define MADERA_SYSCLK_6MHZ 0
+#define MADERA_SYSCLK_12MHZ 1
+#define MADERA_SYSCLK_24MHZ 2
+#define MADERA_SYSCLK_49MHZ 3
+#define MADERA_SYSCLK_98MHZ 4
+
+#define MADERA_DSPCLK_9MHZ 0
+#define MADERA_DSPCLK_18MHZ 1
+#define MADERA_DSPCLK_36MHZ 2
+#define MADERA_DSPCLK_73MHZ 3
+#define MADERA_DSPCLK_147MHZ 4
+
+#define MADERA_FLL_VCO_CORNER 141900000
+#define MADERA_FLL_MAX_FREF 13500000
+#define MADERA_FLL_MAX_N 1023
+#define MADERA_FLL_MIN_FOUT 90000000
+#define MADERA_FLL_MAX_FOUT 100000000
+#define MADERA_FLL_MAX_FRATIO 16
+#define MADERA_FLL_MAX_REFDIV 8
+#define MADERA_FLL_OUTDIV 3
+#define MADERA_FLL_VCO_MULT 3
+#define MADERA_FLLAO_MAX_FREF 12288000
+#define MADERA_FLLAO_MIN_N 4
+#define MADERA_FLLAO_MAX_N 1023
+#define MADERA_FLLAO_MAX_FBDIV 254
+
+#define MADERA_FLL_SYNCHRONISER_OFFS 0x10
+#define CS47L35_FLL_SYNCHRONISER_OFFS 0xE
+#define MADERA_FLL_CONTROL_1_OFFS 0x1
+#define MADERA_FLL_CONTROL_2_OFFS 0x2
+#define MADERA_FLL_CONTROL_3_OFFS 0x3
+#define MADERA_FLL_CONTROL_4_OFFS 0x4
+#define MADERA_FLL_CONTROL_5_OFFS 0x5
+#define MADERA_FLL_CONTROL_6_OFFS 0x6
+#define MADERA_FLL_LOOP_FILTER_TEST_1_OFFS 0x7
+#define MADERA_FLL_NCO_TEST_0_OFFS 0x8
+#define MADERA_FLL_CONTROL_7_OFFS 0x9
+#define MADERA_FLL_EFS_2_OFFS 0xA
+#define MADERA_FLL_SYNCHRONISER_1_OFFS 0x1
+#define MADERA_FLL_SYNCHRONISER_2_OFFS 0x2
+#define MADERA_FLL_SYNCHRONISER_3_OFFS 0x3
+#define MADERA_FLL_SYNCHRONISER_4_OFFS 0x4
+#define MADERA_FLL_SYNCHRONISER_5_OFFS 0x5
+#define MADERA_FLL_SYNCHRONISER_6_OFFS 0x6
+#define MADERA_FLL_SYNCHRONISER_7_OFFS 0x7
+#define MADERA_FLL_SPREAD_SPECTRUM_OFFS 0x9
+#define MADERA_FLL_GPIO_CLOCK_OFFS 0xA
+
+#define MADERA_FLLAO_CONTROL_1_OFFS 0x1
+#define MADERA_FLLAO_CONTROL_2_OFFS 0x2
+#define MADERA_FLLAO_CONTROL_3_OFFS 0x3
+#define MADERA_FLLAO_CONTROL_4_OFFS 0x4
+#define MADERA_FLLAO_CONTROL_5_OFFS 0x5
+#define MADERA_FLLAO_CONTROL_6_OFFS 0x6
+#define MADERA_FLLAO_CONTROL_7_OFFS 0x8
+#define MADERA_FLLAO_CONTROL_8_OFFS 0xA
+#define MADERA_FLLAO_CONTROL_9_OFFS 0xB
+#define MADERA_FLLAO_CONTROL_10_OFFS 0xC
+#define MADERA_FLLAO_CONTROL_11_OFFS 0xD
+
+#define MADERA_FMT_DSP_MODE_A 0
+#define MADERA_FMT_DSP_MODE_B 1
+#define MADERA_FMT_I2S_MODE 2
+#define MADERA_FMT_LEFT_JUSTIFIED_MODE 3
+
+#define madera_fll_err(_fll, fmt, ...) \
+ dev_err(_fll->madera->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
+#define madera_fll_warn(_fll, fmt, ...) \
+ dev_warn(_fll->madera->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
+#define madera_fll_dbg(_fll, fmt, ...) \
+ dev_dbg(_fll->madera->dev, "FLL%d: " fmt, _fll->id, ##__VA_ARGS__)
+
+#define madera_aif_err(_dai, fmt, ...) \
+ dev_err(_dai->dev, "AIF%d: " fmt, _dai->id, ##__VA_ARGS__)
+#define madera_aif_warn(_dai, fmt, ...) \
+ dev_warn(_dai->dev, "AIF%d: " fmt, _dai->id, ##__VA_ARGS__)
+#define madera_aif_dbg(_dai, fmt, ...) \
+ dev_dbg(_dai->dev, "AIF%d: " fmt, _dai->id, ##__VA_ARGS__)
+
+static const int madera_dsp_bus_error_irqs[MADERA_MAX_ADSP] = {
+ MADERA_IRQ_DSP1_BUS_ERROR,
+ MADERA_IRQ_DSP2_BUS_ERROR,
+ MADERA_IRQ_DSP3_BUS_ERROR,
+ MADERA_IRQ_DSP4_BUS_ERROR,
+ MADERA_IRQ_DSP5_BUS_ERROR,
+ MADERA_IRQ_DSP6_BUS_ERROR,
+ MADERA_IRQ_DSP7_BUS_ERROR,
+};
+
+void madera_spin_sysclk(struct madera_priv *priv)
+{
+ struct madera *madera = priv->madera;
+ unsigned int val;
+ int ret, i;
+
+ /* Skip this if the chip is down */
+ if (pm_runtime_suspended(madera->dev))
+ return;
+
+ /*
+ * Just read a register a few times to ensure the internal
+ * oscillator sends out a few clocks.
+ */
+ for (i = 0; i < 4; i++) {
+ ret = regmap_read(madera->regmap, MADERA_SOFTWARE_RESET, &val);
+ if (ret)
+ dev_err(madera->dev,
+ "%s Failed to read register: %d (%d)\n",
+ __func__, ret, i);
+ }
+
+ udelay(300);
+}
+EXPORT_SYMBOL_GPL(madera_spin_sysclk);
+
+int madera_sysclk_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+
+ madera_spin_sysclk(priv);
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_sysclk_ev);
+
+static int madera_check_speaker_overheat(struct madera *madera,
+ bool *warn, bool *shutdown)
+{
+ unsigned int val;
+ int ret;
+
+ ret = regmap_read(madera->regmap, MADERA_IRQ1_RAW_STATUS_15, &val);
+ if (ret) {
+ dev_err(madera->dev, "Failed to read thermal status: %d\n",
+ ret);
+ return ret;
+ }
+
+ *warn = val & MADERA_SPK_OVERHEAT_WARN_STS1;
+ *shutdown = val & MADERA_SPK_OVERHEAT_STS1;
+
+ return 0;
+}
+
+int madera_spk_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+ struct madera *madera = dev_get_drvdata(codec->dev->parent);
+ bool warn, shutdown;
+ int ret;
+
+ switch (event) {
+ case SND_SOC_DAPM_POST_PMU:
+ ret = madera_check_speaker_overheat(madera, &warn, &shutdown);
+ if (ret)
+ return ret;
+
+ if (shutdown) {
+ dev_crit(madera->dev,
+ "Speaker not enabled due to temperature\n");
+ return -EBUSY;
+ }
+
+ regmap_update_bits(madera->regmap,
+ MADERA_OUTPUT_ENABLES_1,
+ 1 << w->shift, 1 << w->shift);
+ break;
+ case SND_SOC_DAPM_PRE_PMD:
+ regmap_update_bits(madera->regmap,
+ MADERA_OUTPUT_ENABLES_1,
+ 1 << w->shift, 0);
+ break;
+ default:
+ break;
+ }
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_spk_ev);
+
+static irqreturn_t madera_thermal_warn(int irq, void *data)
+{
+ struct madera *madera = data;
+ bool warn, shutdown;
+ int ret;
+
+ ret = madera_check_speaker_overheat(madera, &warn, &shutdown);
+ if (ret)
+ shutdown = true; /* for safety attempt to shutdown on error */
+
+ if (shutdown) {
+ dev_crit(madera->dev, "Thermal shutdown\n");
+ ret = regmap_update_bits(madera->regmap,
+ MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT4L_ENA |
+ MADERA_OUT4R_ENA, 0);
+ if (ret != 0)
+ dev_crit(madera->dev,
+ "Failed to disable speaker outputs: %d\n",
+ ret);
+ } else if (warn) {
+ dev_crit(madera->dev, "Thermal warning\n");
+ }
+
+ return IRQ_HANDLED;
+}
+
+int madera_init_overheat(struct madera_priv *priv)
+{
+ struct madera *madera = priv->madera;
+ int ret;
+
+ ret = madera_request_irq(madera, MADERA_IRQ_SPK_OVERHEAT_WARN,
+ "Thermal warning", madera_thermal_warn,
+ madera);
+ if (ret)
+ dev_warn(madera->dev,
+ "Failed to get thermal warning IRQ: %d\n", ret);
+
+ ret = madera_request_irq(madera, MADERA_IRQ_SPK_OVERHEAT,
+ "Thermal shutdown", madera_thermal_warn,
+ madera);
+ if (ret)
+ dev_warn(madera->dev,
+ "Failed to get thermal shutdown IRQ: %d\n", ret);
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_init_overheat);
+
+int madera_free_overheat(struct madera_priv *priv)
+{
+ struct madera *madera = priv->madera;
+
+ madera_free_irq(madera, MADERA_IRQ_SPK_OVERHEAT_WARN, madera);
+ madera_free_irq(madera, MADERA_IRQ_SPK_OVERHEAT, madera);
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_free_overheat);
+
+static int madera_get_variable_u32_array(struct madera_priv *priv,
+ const char *propname,
+ u32 *dest,
+ int n_max,
+ int multiple)
+{
+ int n, ret;
+
+ n = device_property_read_u32_array(priv->dev, propname, NULL, 0);
+ if (n == -EINVAL) {
+ return 0; /* missing, ignore */
+ } else if (n < 0) {
+ dev_warn(priv->madera->dev, "%s malformed (%d)\n",
+ propname, n);
+ return ret;
+ } else if ((n % multiple) != 0) {
+ dev_warn(priv->madera->dev, "%s not a multiple of %d entries\n",
+ propname, multiple);
+ return -EINVAL;
+ }
+
+ if (n > n_max)
+ n = n_max;
+
+ ret = device_property_read_u32_array(priv->dev, propname, dest, n);
+
+ if (ret < 0)
+ return ret;
+ else
+ return n;
+}
+
+static void madera_prop_get_inmode(struct madera_priv *priv)
+{
+ struct madera *madera = priv->madera;
+ u32 tmp[MADERA_MAX_INPUT * MADERA_MAX_MUXED_CHANNELS];
+ int n, i, in_idx, ch_idx;
+
+ BUILD_BUG_ON(ARRAY_SIZE(madera->pdata.codec.inmode) != MADERA_MAX_INPUT);
+ BUILD_BUG_ON(ARRAY_SIZE(madera->pdata.codec.inmode[0]) !=
+ MADERA_MAX_MUXED_CHANNELS);
+
+ n = madera_get_variable_u32_array(priv,
+ "cirrus,inmode",
+ tmp,
+ ARRAY_SIZE(tmp),
+ MADERA_MAX_MUXED_CHANNELS);
+ if (n < 0)
+ return;
+
+ in_idx = 0;
+ ch_idx = 0;
+ for (i = 0; i < n; ++i) {
+ madera->pdata.codec.inmode[in_idx][ch_idx] = tmp[i];
+
+ if (++ch_idx == MADERA_MAX_MUXED_CHANNELS) {
+ ch_idx = 0;
+ ++in_idx;
+ }
+ }
+}
+
+static void madera_prop_get_pdata(struct madera_priv *priv)
+{
+ struct madera *madera = priv->madera;
+ struct madera_codec_pdata *pdata = &madera->pdata.codec;
+ u32 out_mono[ARRAY_SIZE(pdata->out_mono)];
+ int i, ret;
+
+ ret = madera_get_variable_u32_array(priv,
+ "cirrus,max-channels-clocked",
+ pdata->max_channels_clocked,
+ ARRAY_SIZE(pdata->max_channels_clocked),
+ 1);
+ if (ret < 0)
+ return;
+
+ madera_prop_get_inmode(priv);
+
+ memset(&out_mono, 0, sizeof(out_mono));
+ ret = device_property_read_u32_array(priv->dev,
+ "cirrus,out-mono",
+ out_mono,
+ ARRAY_SIZE(out_mono));
+ if (ret == 0)
+ for (i = 0; i < ARRAY_SIZE(out_mono); ++i)
+ pdata->out_mono[i] = !!out_mono[i];
+
+ madera_get_variable_u32_array(priv,
+ "cirrus,pdm-fmt",
+ pdata->pdm_fmt,
+ ARRAY_SIZE(pdata->pdm_fmt),
+ 1);
+
+ madera_get_variable_u32_array(priv,
+ "cirrus,pdm-mute",
+ pdata->pdm_mute,
+ ARRAY_SIZE(pdata->pdm_mute),
+ 1);
+
+ madera_get_variable_u32_array(priv,
+ "cirrus,dmic-ref",
+ pdata->dmic_ref,
+ ARRAY_SIZE(pdata->dmic_ref),
+ 1);
+}
+
+int madera_core_init(struct madera_priv *priv)
+{
+ BUILD_BUG_ON(ARRAY_SIZE(madera_mixer_texts) != MADERA_NUM_MIXER_INPUTS);
+ BUILD_BUG_ON(ARRAY_SIZE(madera_mixer_values) != MADERA_NUM_MIXER_INPUTS);
+ BUILD_BUG_ON(madera_sample_rate_text[MADERA_SAMPLE_RATE_ENUM_SIZE - 1]
+ == NULL);
+ BUILD_BUG_ON(madera_sample_rate_val[MADERA_SAMPLE_RATE_ENUM_SIZE - 1]
+ == 0);
+
+ if (!dev_get_platdata(priv->madera->dev))
+ madera_prop_get_pdata(priv);
+
+ mutex_init(&priv->rate_lock);
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_core_init);
+
+int madera_core_destroy(struct madera_priv *priv)
+{
+ mutex_destroy(&priv->rate_lock);
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_core_destroy);
+
+static void madera_debug_dump_domain_groups(const struct madera_priv *priv)
+{
+ struct madera *madera = priv->madera;
+ int i;
+
+ for (i = 0; i < ARRAY_SIZE(priv->domain_group_ref); ++i)
+ dev_dbg(madera->dev, "domain_grp_ref[%d]=%d\n", i,
+ priv->domain_group_ref[i]);
+}
+
+int madera_domain_clk_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol,
+ int event)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ int dom_grp = w->shift;
+
+ if (dom_grp >= ARRAY_SIZE(priv->domain_group_ref)) {
+ WARN(true, "%s dom_grp exceeds array size\n", __func__);
+ return -EINVAL;
+ }
+
+ /*
+ * We can't rely on the DAPM mutex for locking because we need a lock
+ * that can safely be called in hw_params
+ */
+ mutex_lock(&priv->rate_lock);
+
+ switch (event) {
+ case SND_SOC_DAPM_PRE_PMU:
+ dev_dbg(priv->madera->dev, "Inc ref on domain group %d\n",
+ dom_grp);
+ ++priv->domain_group_ref[dom_grp];
+ break;
+ case SND_SOC_DAPM_POST_PMD:
+ dev_dbg(priv->madera->dev, "Dec ref on domain group %d\n",
+ dom_grp);
+ --priv->domain_group_ref[dom_grp];
+ break;
+ default:
+ break;
+ }
+
+ madera_debug_dump_domain_groups(priv);
+
+ mutex_unlock(&priv->rate_lock);
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_domain_clk_ev);
+
+int madera_out1_demux_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_kcontrol_codec(kcontrol);
+ struct snd_soc_dapm_context *dapm =
+ snd_soc_dapm_kcontrol_dapm(kcontrol);
+ struct madera *madera = dev_get_drvdata(codec->dev->parent);
+ struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
+ unsigned int ep_sel, mux, change;
+ int ret, demux_change_ret;
+ bool out_mono, restore_out = true;
+
+ if (ucontrol->value.enumerated.item[0] > e->items - 1)
+ return -EINVAL;
+
+ mux = ucontrol->value.enumerated.item[0];
+ ep_sel = mux << MADERA_EP_SEL_SHIFT;
+
+ snd_soc_dapm_mutex_lock(dapm);
+
+ change = snd_soc_test_bits(codec, MADERA_OUTPUT_ENABLES_1,
+ MADERA_EP_SEL_MASK, ep_sel);
+ if (!change)
+ goto end;
+
+ /* EP_SEL should not be modified while HP or EP driver is enabled */
+ ret = regmap_update_bits(madera->regmap,
+ MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT1L_ENA |
+ MADERA_OUT1R_ENA, 0);
+ if (ret)
+ dev_warn(madera->dev, "Failed to disable outputs: %d\n", ret);
+
+ usleep_range(2000, 3000); /* wait for wseq to complete */
+
+ /*
+ * if HP detection clamp is applied while switching to HPOUT
+ * OUT1 should remain disabled and EDRE should be set to manual
+ */
+ if (!ep_sel &&
+ (madera->out_clamp[0] || madera->out_shorted[0]))
+ restore_out = false;
+
+ /* change demux setting */
+ demux_change_ret = regmap_update_bits(madera->regmap,
+ MADERA_OUTPUT_ENABLES_1,
+ MADERA_EP_SEL_MASK, ep_sel);
+ if (demux_change_ret) {
+ dev_err(madera->dev, "Failed to set OUT1 demux: %d\n",
+ demux_change_ret);
+ } else {
+ /* apply correct setting for mono mode */
+ if (!ep_sel && !madera->pdata.codec.out_mono[0])
+ out_mono = false; /* stereo HP */
+ else
+ out_mono = true; /* EP or mono HP */
+
+ ret = madera_set_output_mode(codec, 1, out_mono);
+ if (ret)
+ dev_warn(madera->dev,
+ "Failed to set output mode: %d\n", ret);
+ }
+
+ /* restore output state if allowed */
+ if (restore_out) {
+ ret = regmap_update_bits(madera->regmap,
+ MADERA_OUTPUT_ENABLES_1,
+ MADERA_OUT1L_ENA |
+ MADERA_OUT1R_ENA,
+ madera->hp_ena);
+ if (ret)
+ dev_warn(madera->dev,
+ "Failed to restore earpiece outputs: %d\n",
+ ret);
+ else if (madera->hp_ena)
+ msleep(34); /* wait for enable wseq */
+ else
+ usleep_range(2000, 3000); /* wait for disable wseq */
+ }
+
+end:
+ snd_soc_dapm_mutex_unlock(dapm);
+
+ return snd_soc_dapm_mux_update_power(dapm, kcontrol, mux, e, NULL);
+}
+EXPORT_SYMBOL_GPL(madera_out1_demux_put);
+
+
+static int madera_inmux_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_kcontrol_codec(kcontrol);
+ struct snd_soc_dapm_context *dapm =
+ snd_soc_dapm_kcontrol_dapm(kcontrol);
+ struct madera *madera = dev_get_drvdata(codec->dev->parent);
+ struct soc_enum *e = (struct soc_enum *) kcontrol->private_value;
+ unsigned int mux, src_val, src_mask, gang_reg, dmode_reg, dmode_val;
+ unsigned int inmode_a, inmode_gang, inmode;
+ bool changed = false;
+ int ret;
+
+ mux = ucontrol->value.enumerated.item[0];
+ if (mux > 1)
+ return -EINVAL;
+
+ src_val = mux << e->shift_l;
+ src_mask = e->mask << e->shift_l;
+
+ switch (e->reg) {
+ case MADERA_ADC_DIGITAL_VOLUME_1L:
+ inmode_a = madera->pdata.codec.inmode[0][0];
+ inmode = madera->pdata.codec.inmode[0][2 * mux];
+ inmode_gang = madera->pdata.codec.inmode[0][1 + (2 * mux)];
+ gang_reg = MADERA_ADC_DIGITAL_VOLUME_1R;
+ dmode_reg = MADERA_IN1L_CONTROL;
+ break;
+ case MADERA_ADC_DIGITAL_VOLUME_1R:
+ inmode_a = madera->pdata.codec.inmode[0][0];
+ inmode = madera->pdata.codec.inmode[0][1 + (2 * mux)];
+ inmode_gang = madera->pdata.codec.inmode[0][2 * mux];
+ gang_reg = MADERA_ADC_DIGITAL_VOLUME_1L;
+ dmode_reg = MADERA_IN1L_CONTROL;
+ break;
+ case MADERA_ADC_DIGITAL_VOLUME_2L:
+ inmode_a = madera->pdata.codec.inmode[1][0];
+ inmode = madera->pdata.codec.inmode[1][2 * mux];
+ inmode_gang = madera->pdata.codec.inmode[1][1 + (2 * mux)];
+ gang_reg = MADERA_ADC_DIGITAL_VOLUME_2R;
+ dmode_reg = MADERA_IN2L_CONTROL;
+ break;
+ case MADERA_ADC_DIGITAL_VOLUME_2R:
+ inmode_a = madera->pdata.codec.inmode[1][0];
+ inmode = madera->pdata.codec.inmode[1][1 + (2 * mux)];
+ inmode_gang = madera->pdata.codec.inmode[1][2 * mux];
+ gang_reg = MADERA_ADC_DIGITAL_VOLUME_2L;
+ dmode_reg = MADERA_IN2L_CONTROL;
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ /* SE mask and shift is same for all channels */
+ src_mask |= MADERA_IN1L_SRC_SE_MASK;
+ if (inmode & MADERA_INMODE_SE)
+ src_val |= 1 << MADERA_IN1L_SRC_SE_SHIFT;
+
+ dev_dbg(madera->dev,
+ "mux=%u reg=0x%x inmode_a=0x%x inmode=0x%x mask=0x%x val=0x%x\n",
+ mux, e->reg, inmode_a, inmode, src_mask, src_val);
+
+ ret = snd_soc_component_update_bits(dapm->component,
+ e->reg,
+ src_mask,
+ src_val);
+ if (ret < 0)
+ return ret;
+ else if (ret)
+ changed = true;
+
+ /* if the A input is digital we must switch both channels together */
+ if (inmode_a == MADERA_INMODE_DMIC) {
+ switch (madera->type) {
+ case CS47L85:
+ case WM1840:
+ if (e->reg == MADERA_ADC_DIGITAL_VOLUME_1L)
+ goto out; /* not ganged */
+ break;
+ case CS47L90:
+ case CS47L91:
+ if (e->reg == MADERA_ADC_DIGITAL_VOLUME_2L)
+ goto out; /* not ganged */
+ break;
+ default:
+ break;
+ }
+
+ /* ganged channels can have different analogue modes */
+ if (inmode_gang & MADERA_INMODE_SE)
+ src_val |= 1 << MADERA_IN1L_SRC_SE_SHIFT;
+ else
+ src_val &= ~(1 << MADERA_IN1L_SRC_SE_SHIFT);
+
+ if (mux)
+ dmode_val = 0; /* B always analogue */
+ else
+ dmode_val = 1 << MADERA_IN1_MODE_SHIFT; /* DMIC */
+
+ dev_dbg(madera->dev,
+ "gang_reg=0x%x inmode_gang=0x%x gang_val=0x%x dmode_val=0x%x\n",
+ gang_reg, inmode_gang, src_val, dmode_val);
+
+ ret = snd_soc_component_update_bits(dapm->component,
+ gang_reg,
+ src_mask,
+ src_val);
+ if (ret < 0)
+ return ret;
+ else if (ret)
+ changed = true;
+
+ ret = snd_soc_component_update_bits(dapm->component,
+ dmode_reg,
+ MADERA_IN1_MODE_MASK,
+ dmode_val);
+ }
+
+out:
+ if (changed)
+ return snd_soc_dapm_mux_update_power(dapm, kcontrol,
+ mux, e, NULL);
+ else
+ return 0;
+}
+
+static const char * const madera_inmux_texts[] = {
+ "A",
+ "B",
+};
+
+static SOC_ENUM_SINGLE_DECL(madera_in1muxl_enum,
+ MADERA_ADC_DIGITAL_VOLUME_1L,
+ MADERA_IN1L_SRC_SHIFT,
+ madera_inmux_texts);
+
+static SOC_ENUM_SINGLE_DECL(madera_in1muxr_enum,
+ MADERA_ADC_DIGITAL_VOLUME_1R,
+ MADERA_IN1R_SRC_SHIFT,
+ madera_inmux_texts);
+
+static SOC_ENUM_SINGLE_DECL(madera_in2muxl_enum,
+ MADERA_ADC_DIGITAL_VOLUME_2L,
+ MADERA_IN2L_SRC_SHIFT,
+ madera_inmux_texts);
+
+static SOC_ENUM_SINGLE_DECL(madera_in2muxr_enum,
+ MADERA_ADC_DIGITAL_VOLUME_2R,
+ MADERA_IN2R_SRC_SHIFT,
+ madera_inmux_texts);
+
+const struct snd_kcontrol_new madera_inmux[] = {
+ SOC_DAPM_ENUM_EXT("IN1L Mux", madera_in1muxl_enum,
+ snd_soc_dapm_get_enum_double, madera_inmux_put),
+ SOC_DAPM_ENUM_EXT("IN1R Mux", madera_in1muxr_enum,
+ snd_soc_dapm_get_enum_double, madera_inmux_put),
+ SOC_DAPM_ENUM_EXT("IN2L Mux", madera_in2muxl_enum,
+ snd_soc_dapm_get_enum_double, madera_inmux_put),
+ SOC_DAPM_ENUM_EXT("IN2R Mux", madera_in2muxr_enum,
+ snd_soc_dapm_get_enum_double, madera_inmux_put),
+};
+EXPORT_SYMBOL_GPL(madera_inmux);
+
+static bool madera_can_change_grp_rate(const struct madera_priv *priv,
+ unsigned int reg)
+{
+ int count;
+
+ switch (reg) {
+ case MADERA_FX_CTRL1:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_FX];
+ break;
+ case MADERA_ASRC1_RATE1:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_ASRC1_RATE_1];
+ break;
+ case MADERA_ASRC1_RATE2:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_ASRC1_RATE_2];
+ break;
+ case MADERA_ASRC2_RATE1:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_ASRC2_RATE_1];
+ break;
+ case MADERA_ASRC2_RATE2:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_ASRC2_RATE_2];
+ break;
+ case MADERA_ISRC_1_CTRL_1:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_ISRC1_INT];
+ break;
+ case MADERA_ISRC_1_CTRL_2:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_ISRC1_DEC];
+ break;
+ case MADERA_ISRC_2_CTRL_1:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_ISRC2_INT];
+ break;
+ case MADERA_ISRC_2_CTRL_2:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_ISRC2_DEC];
+ break;
+ case MADERA_ISRC_3_CTRL_1:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_ISRC3_INT];
+ break;
+ case MADERA_ISRC_3_CTRL_2:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_ISRC3_DEC];
+ break;
+ case MADERA_ISRC_4_CTRL_1:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_ISRC4_INT];
+ break;
+ case MADERA_ISRC_4_CTRL_2:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_ISRC4_DEC];
+ break;
+ case MADERA_OUTPUT_RATE_1:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_OUT];
+ break;
+ case MADERA_SPD1_TX_CONTROL:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_SPD];
+ break;
+ case MADERA_DSP1_CONFIG_1:
+ case MADERA_DSP1_CONFIG_2:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_DSP1];
+ break;
+ case MADERA_DSP2_CONFIG_1:
+ case MADERA_DSP2_CONFIG_2:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_DSP2];
+ break;
+ case MADERA_DSP3_CONFIG_1:
+ case MADERA_DSP3_CONFIG_2:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_DSP3];
+ break;
+ case MADERA_DSP4_CONFIG_1:
+ case MADERA_DSP4_CONFIG_2:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_DSP4];
+ break;
+ case MADERA_DSP5_CONFIG_1:
+ case MADERA_DSP5_CONFIG_2:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_DSP5];
+ break;
+ case MADERA_DSP6_CONFIG_1:
+ case MADERA_DSP6_CONFIG_2:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_DSP6];
+ break;
+ case MADERA_DSP7_CONFIG_1:
+ case MADERA_DSP7_CONFIG_2:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_DSP7];
+ break;
+ case MADERA_AIF1_RATE_CTRL:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_AIF1];
+ break;
+ case MADERA_AIF2_RATE_CTRL:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_AIF2];
+ break;
+ case MADERA_AIF3_RATE_CTRL:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_AIF3];
+ break;
+ case MADERA_AIF4_RATE_CTRL:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_AIF4];
+ break;
+ case MADERA_SLIMBUS_RATES_1:
+ case MADERA_SLIMBUS_RATES_2:
+ case MADERA_SLIMBUS_RATES_3:
+ case MADERA_SLIMBUS_RATES_4:
+ case MADERA_SLIMBUS_RATES_5:
+ case MADERA_SLIMBUS_RATES_6:
+ case MADERA_SLIMBUS_RATES_7:
+ case MADERA_SLIMBUS_RATES_8:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_SLIMBUS];
+ break;
+ case MADERA_PWM_DRIVE_1:
+ count = priv->domain_group_ref[MADERA_DOM_GRP_PWM];
+ break;
+ default:
+ return false;
+ }
+
+ dev_dbg(priv->madera->dev, "Rate reg 0x%x group ref %d\n", reg, count);
+
+ if (count)
+ return false;
+ else
+ return true;
+}
+
+int madera_adsp_rate_get(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol)
+{
+ struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
+ unsigned int cached_rate;
+ const int adsp_num = e->shift_l;
+ int item;
+
+ mutex_lock(&priv->rate_lock);
+ cached_rate = priv->adsp_rate_cache[adsp_num];
+ mutex_unlock(&priv->rate_lock);
+
+ item = snd_soc_enum_val_to_item(e, cached_rate);
+ ucontrol->value.enumerated.item[0] = item;
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_adsp_rate_get);
+
+int madera_adsp_rate_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol)
+{
+ struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
+ const int adsp_num = e->shift_l;
+ const unsigned int item = ucontrol->value.enumerated.item[0];
+ int ret;
+
+ if (item >= e->items)
+ return -EINVAL;
+
+ /*
+ * We don't directly write the rate register here but we want to
+ * maintain consistent behaviour that rate domains cannot be changed
+ * while in use since this is a hardware requirement
+ */
+ mutex_lock(&priv->rate_lock);
+
+ if (!madera_can_change_grp_rate(priv, priv->adsp[adsp_num].base)) {
+ dev_warn(priv->madera->dev,
+ "Cannot change '%s' while in use by active audio paths\n",
+ kcontrol->id.name);
+ ret = -EBUSY;
+ } else {
+ /* Volatile register so defer until the codec is powered up */
+ priv->adsp_rate_cache[adsp_num] = e->values[item];
+ ret = 0;
+ }
+
+ mutex_unlock(&priv->rate_lock);
+
+ return ret;
+}
+EXPORT_SYMBOL_GPL(madera_adsp_rate_put);
+
+static const struct soc_enum madera_adsp_rate_enum[] = {
+ SOC_VALUE_ENUM_SINGLE(SND_SOC_NOPM, 0, 0xf, MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(SND_SOC_NOPM, 1, 0xf, MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(SND_SOC_NOPM, 2, 0xf, MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(SND_SOC_NOPM, 3, 0xf, MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(SND_SOC_NOPM, 4, 0xf, MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(SND_SOC_NOPM, 5, 0xf, MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(SND_SOC_NOPM, 6, 0xf, MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+};
+
+const struct snd_kcontrol_new madera_adsp_rate_controls[] = {
+ SOC_ENUM_EXT("DSP1 Rate", madera_adsp_rate_enum[0],
+ madera_adsp_rate_get, madera_adsp_rate_put),
+ SOC_ENUM_EXT("DSP2 Rate", madera_adsp_rate_enum[1],
+ madera_adsp_rate_get, madera_adsp_rate_put),
+ SOC_ENUM_EXT("DSP3 Rate", madera_adsp_rate_enum[2],
+ madera_adsp_rate_get, madera_adsp_rate_put),
+ SOC_ENUM_EXT("DSP4 Rate", madera_adsp_rate_enum[3],
+ madera_adsp_rate_get, madera_adsp_rate_put),
+ SOC_ENUM_EXT("DSP5 Rate", madera_adsp_rate_enum[4],
+ madera_adsp_rate_get, madera_adsp_rate_put),
+ SOC_ENUM_EXT("DSP6 Rate", madera_adsp_rate_enum[5],
+ madera_adsp_rate_get, madera_adsp_rate_put),
+ SOC_ENUM_EXT("DSP7 Rate", madera_adsp_rate_enum[6],
+ madera_adsp_rate_get, madera_adsp_rate_put),
+};
+EXPORT_SYMBOL_GPL(madera_adsp_rate_controls);
+
+static int madera_write_adsp_clk_setting(struct madera_priv *priv,
+ struct wm_adsp *dsp,
+ unsigned int freq)
+{
+ unsigned int val;
+ unsigned int mask = MADERA_DSP_RATE_MASK;
+ int ret;
+
+ /*
+ * Take snapshot of rate. There will always be a race condition
+ * between this code and setting the rate control. Wrapping the entire
+ * function in the lock won't change that so don't bother
+ */
+ mutex_lock(&priv->rate_lock);
+ val = priv->adsp_rate_cache[dsp->num - 1] << MADERA_DSP_RATE_SHIFT;
+ mutex_unlock(&priv->rate_lock);
+
+ switch (priv->madera->type) {
+ case CS47L35:
+ case CS47L85:
+ case WM1840:
+ /* use legacy frequency registers */
+ mask |= MADERA_DSP_CLK_SEL_MASK;
+ val |= (freq << MADERA_DSP_CLK_SEL_SHIFT);
+ break;
+ default:
+ /* Configure exact dsp frequency */
+ dev_dbg(priv->madera->dev, "Set DSP frequency to 0x%x\n", freq);
+
+ ret = regmap_write(dsp->regmap,
+ dsp->base + MADERA_DSP_CONFIG_2_OFFS, freq);
+ if (ret)
+ goto err;
+ break;
+ }
+
+ ret = regmap_update_bits(dsp->regmap,
+ dsp->base + MADERA_DSP_CONFIG_1_OFFS,
+ mask, val);
+
+ dev_dbg(priv->madera->dev, "Set DSP clocking to 0x%x\n", val);
+
+ return 0;
+
+err:
+ dev_err(dsp->dev, "Failed to set DSP%d clock: %d\n", dsp->num, ret);
+
+ return ret;
+}
+
+int madera_set_adsp_clk(struct madera_priv *priv, int dsp_num,
+ unsigned int freq)
+{
+ struct wm_adsp *dsp = &priv->adsp[dsp_num];
+ struct madera *madera = priv->madera;
+ unsigned int cur, new;
+ int ret;
+
+ /*
+ * This is called at a higher DAPM priority than the mux widgets so
+ * the muxes are still off at this point and it's safe to change
+ * the rate domain control
+ */
+
+ ret = regmap_read(dsp->regmap, dsp->base, &cur);
+ if (ret) {
+ dev_err(madera->dev,
+ "Failed to read current DSP rate: %d\n", ret);
+ return ret;
+ }
+
+ cur &= MADERA_DSP_RATE_MASK;
+
+ mutex_lock(&priv->rate_lock);
+ new = priv->adsp_rate_cache[dsp->num - 1] << MADERA_DSP_RATE_SHIFT;
+ mutex_unlock(&priv->rate_lock);
+
+ if (new == cur) {
+ dev_dbg(madera->dev, "DSP rate not changed\n");
+ return madera_write_adsp_clk_setting(priv, dsp, freq);
+ } else {
+ dev_dbg(madera->dev, "DSP rate changed\n");
+
+ /* The write must be guarded by a number of SYSCLK cycles */
+ madera_spin_sysclk(priv);
+ ret = madera_write_adsp_clk_setting(priv, dsp, freq);
+ madera_spin_sysclk(priv);
+ return ret;
+ }
+}
+EXPORT_SYMBOL_GPL(madera_set_adsp_clk);
+
+int madera_rate_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol)
+{
+ struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
+ struct snd_soc_dapm_context *dapm =
+ snd_soc_dapm_kcontrol_dapm(kcontrol);
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
+ unsigned int item = ucontrol->value.enumerated.item[0];
+ unsigned int val;
+ int ret;
+
+ if (item >= e->items)
+ return -EINVAL;
+
+ /*
+ * Prevent the domain powering up while we're checking whether it's
+ * safe to change rate domain
+ */
+ mutex_lock(&priv->rate_lock);
+
+ ret = snd_soc_component_read(dapm->component, e->reg, &val);
+ if (ret < 0) {
+ dev_warn(priv->madera->dev, "Failed to read 0x%x (%d)\n",
+ e->reg, ret);
+ goto out;
+ }
+ val >>= e->shift_l;
+ val &= e->mask;
+ if (snd_soc_enum_item_to_val(e, item) == val) {
+ ret = 0;
+ goto out;
+ }
+
+ if (!madera_can_change_grp_rate(priv, e->reg)) {
+ dev_warn(priv->madera->dev,
+ "Cannot change '%s' while in use by active audio paths\n",
+ kcontrol->id.name);
+ ret = -EBUSY;
+ } else {
+ /* The write must be guarded by a number of SYSCLK cycles */
+ madera_spin_sysclk(priv);
+ ret = snd_soc_put_enum_double(kcontrol, ucontrol);
+ madera_spin_sysclk(priv);
+ }
+out:
+ mutex_unlock(&priv->rate_lock);
+
+ return ret;
+}
+EXPORT_SYMBOL_GPL(madera_rate_put);
+
+static void madera_configure_input_mode(struct madera *madera)
+{
+ unsigned int dig_mode, ana_mode_l, ana_mode_r;
+ int max_analogue_inputs, i;
+
+ switch (madera->type) {
+ case CS47L35:
+ max_analogue_inputs = 2;
+ break;
+ case CS47L85:
+ case WM1840:
+ max_analogue_inputs = 3;
+ break;
+ default:
+ max_analogue_inputs = 2;
+ break;
+ }
+
+ /*
+ * Initialize input modes from the A settings. For muxed inputs the
+ * B settings will be applied if the mux is changed
+ */
+ for (i = 0; i < max_analogue_inputs; i++) {
+ dev_dbg(madera->dev, "IN%d mode %u:%u:%u:%u\n", i + 1,
+ madera->pdata.codec.inmode[i][0],
+ madera->pdata.codec.inmode[i][1],
+ madera->pdata.codec.inmode[i][2],
+ madera->pdata.codec.inmode[i][3]);
+
+ dig_mode = madera->pdata.codec.dmic_ref[i] <<
+ MADERA_IN1_DMIC_SUP_SHIFT;
+
+ switch (madera->pdata.codec.inmode[i][0]) {
+ case MADERA_INMODE_DIFF:
+ ana_mode_l = 0;
+ break;
+ case MADERA_INMODE_SE:
+ ana_mode_l = 1 << MADERA_IN1L_SRC_SE_SHIFT;
+ break;
+ case MADERA_INMODE_DMIC:
+ ana_mode_l = 0;
+ dig_mode |= 1 << MADERA_IN1_MODE_SHIFT;
+ break;
+ default:
+ dev_warn(madera->dev,
+ "IN%dAL Illegal inmode %u ignored\n",
+ i + 1, madera->pdata.codec.inmode[i][0]);
+ continue;
+ }
+
+ switch (madera->pdata.codec.inmode[i][1]) {
+ case MADERA_INMODE_DIFF:
+ case MADERA_INMODE_DMIC:
+ ana_mode_r = 0;
+ break;
+ case MADERA_INMODE_SE:
+ ana_mode_r = 1 << MADERA_IN1R_SRC_SE_SHIFT;
+ break;
+ default:
+ dev_warn(madera->dev,
+ "IN%dAR Illegal inmode %u ignored\n",
+ i + 1, madera->pdata.codec.inmode[i][1]);
+ continue;
+ }
+
+ dev_dbg(madera->dev,
+ "IN%dA DMIC mode=0x%x Analogue mode=0x%x,0x%x\n",
+ i + 1, dig_mode, ana_mode_l, ana_mode_r);
+
+ regmap_update_bits(madera->regmap,
+ MADERA_IN1L_CONTROL + (i * 8),
+ MADERA_IN1_DMIC_SUP_MASK |
+ MADERA_IN1_MODE_MASK,
+ dig_mode);
+
+ regmap_update_bits(madera->regmap,
+ MADERA_ADC_DIGITAL_VOLUME_1L + (i * 8),
+ MADERA_IN1L_SRC_SE_MASK, ana_mode_l);
+
+ regmap_update_bits(madera->regmap,
+ MADERA_ADC_DIGITAL_VOLUME_1R + (i * 8),
+ MADERA_IN1R_SRC_SE_MASK, ana_mode_r);
+ }
+}
+
+int madera_init_inputs(struct snd_soc_codec *codec,
+ const char * const *dmic_inputs, int n_dmic_inputs,
+ const char * const *dmic_refs, int n_dmic_refs)
+{
+ struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct madera *madera = priv->madera;
+ unsigned int ref;
+ int i, ret;
+ struct snd_soc_dapm_route routes[2];
+
+ memset(&routes, 0, sizeof(routes));
+
+ madera_configure_input_mode(madera);
+
+ for (i = 0; i < n_dmic_inputs / 2; ++i) {
+ ref = madera->pdata.codec.dmic_ref[i];
+ if (ref >= n_dmic_refs) {
+ dev_err(madera->dev,
+ "Illegal DMIC ref %u for IN%d\n", ref, i);
+ return -EINVAL;
+ }
+
+ routes[0].source = dmic_refs[ref];
+ routes[1].source = dmic_refs[ref];
+ routes[0].sink = dmic_inputs[i * 2];
+ routes[1].sink = dmic_inputs[(i * 2) + 1];
+
+ ret = snd_soc_dapm_add_routes(dapm, routes, 2);
+ if (ret)
+ dev_warn(madera->dev,
+ "Failed to add routes for %s->(%s,%s) (%d)\n",
+ routes[0].source,
+ routes[0].sink,
+ routes[1].sink,
+ ret);
+ }
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_init_inputs);
+
+static const struct snd_soc_dapm_route madera_mono_routes[] = {
+ { "OUT1R", NULL, "OUT1L" },
+ { "OUT2R", NULL, "OUT2L" },
+ { "OUT3R", NULL, "OUT3L" },
+ { "OUT4R", NULL, "OUT4L" },
+ { "OUT5R", NULL, "OUT5L" },
+ { "OUT6R", NULL, "OUT6L" },
+};
+
+int madera_init_outputs(struct snd_soc_codec *codec, int n_mono_routes)
+{
+ struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct madera *madera = priv->madera;
+ const struct madera_codec_pdata *pdata = &madera->pdata.codec;
+ unsigned int val;
+ int i;
+
+ if (n_mono_routes > MADERA_MAX_OUTPUT) {
+ dev_warn(madera->dev,
+ "Requested %d mono outputs, using maximum allowed %d\n",
+ n_mono_routes, MADERA_MAX_OUTPUT);
+ n_mono_routes = MADERA_MAX_OUTPUT;
+ }
+
+ for (i = 0; i < n_mono_routes; i++) {
+ /* Default is 0 so noop with defaults */
+ if (pdata->out_mono[i]) {
+ val = MADERA_OUT1_MONO;
+ snd_soc_dapm_add_routes(dapm,
+ &madera_mono_routes[i], 1);
+ } else {
+ val = 0;
+ }
+
+ regmap_update_bits(madera->regmap,
+ MADERA_OUTPUT_PATH_CONFIG_1L + (i * 8),
+ MADERA_OUT1_MONO, val);
+
+ dev_dbg(madera->dev, "OUT%d mono=0x%x\n", i + 1, val);
+ }
+
+ for (i = 0; i < MADERA_MAX_PDM_SPK; i++) {
+ dev_dbg(madera->dev, "PDM%d fmt=0x%x mute=0x%x\n", i + 1,
+ pdata->pdm_fmt[i], pdata->pdm_mute[i]);
+
+ if (pdata->pdm_mute[i])
+ regmap_update_bits(madera->regmap,
+ MADERA_PDM_SPK1_CTRL_1 + (i * 2),
+ MADERA_SPK1_MUTE_ENDIAN_MASK |
+ MADERA_SPK1_MUTE_SEQ1_MASK,
+ pdata->pdm_mute[i]);
+
+ if (pdata->pdm_fmt[i])
+ regmap_update_bits(madera->regmap,
+ MADERA_PDM_SPK1_CTRL_2 + (i * 2),
+ MADERA_SPK1_FMT_MASK,
+ pdata->pdm_fmt[i]);
+ }
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_init_outputs);
+
+int madera_init_bus_error_irq(struct madera_priv *priv, int dsp_num,
+ irq_handler_t handler)
+{
+ struct madera *madera = priv->madera;
+ int ret;
+
+ ret = madera_request_irq(madera,
+ madera_dsp_bus_error_irqs[dsp_num],
+ "ADSP2 bus error",
+ handler,
+ &priv->adsp[dsp_num]);
+ if (ret)
+ dev_err(madera->dev,
+ "Failed to request DSP Lock region IRQ: %d\n", ret);
+
+ return ret;
+}
+EXPORT_SYMBOL_GPL(madera_init_bus_error_irq);
+
+void madera_destroy_bus_error_irq(struct madera_priv *priv, int dsp_num)
+{
+ struct madera *madera = priv->madera;
+
+ madera_free_irq(madera,
+ madera_dsp_bus_error_irqs[dsp_num],
+ &priv->adsp[dsp_num]);
+}
+EXPORT_SYMBOL_GPL(madera_destroy_bus_error_irq);
+
+const char * const madera_mixer_texts[] = {
+ "None",
+ "Tone Generator 1",
+ "Tone Generator 2",
+ "Haptics",
+ "AEC1",
+ "AEC2",
+ "Mic Mute Mixer",
+ "Noise Generator",
+ "IN1L",
+ "IN1R",
+ "IN2L",
+ "IN2R",
+ "IN3L",
+ "IN3R",
+ "IN4L",
+ "IN4R",
+ "IN5L",
+ "IN5R",
+ "IN6L",
+ "IN6R",
+ "AIF1RX1",
+ "AIF1RX2",
+ "AIF1RX3",
+ "AIF1RX4",
+ "AIF1RX5",
+ "AIF1RX6",
+ "AIF1RX7",
+ "AIF1RX8",
+ "AIF2RX1",
+ "AIF2RX2",
+ "AIF2RX3",
+ "AIF2RX4",
+ "AIF2RX5",
+ "AIF2RX6",
+ "AIF2RX7",
+ "AIF2RX8",
+ "AIF3RX1",
+ "AIF3RX2",
+ "AIF4RX1",
+ "AIF4RX2",
+ "SLIMRX1",
+ "SLIMRX2",
+ "SLIMRX3",
+ "SLIMRX4",
+ "SLIMRX5",
+ "SLIMRX6",
+ "SLIMRX7",
+ "SLIMRX8",
+ "EQ1",
+ "EQ2",
+ "EQ3",
+ "EQ4",
+ "DRC1L",
+ "DRC1R",
+ "DRC2L",
+ "DRC2R",
+ "LHPF1",
+ "LHPF2",
+ "LHPF3",
+ "LHPF4",
+ "DSP1.1",
+ "DSP1.2",
+ "DSP1.3",
+ "DSP1.4",
+ "DSP1.5",
+ "DSP1.6",
+ "DSP2.1",
+ "DSP2.2",
+ "DSP2.3",
+ "DSP2.4",
+ "DSP2.5",
+ "DSP2.6",
+ "DSP3.1",
+ "DSP3.2",
+ "DSP3.3",
+ "DSP3.4",
+ "DSP3.5",
+ "DSP3.6",
+ "DSP4.1",
+ "DSP4.2",
+ "DSP4.3",
+ "DSP4.4",
+ "DSP4.5",
+ "DSP4.6",
+ "DSP5.1",
+ "DSP5.2",
+ "DSP5.3",
+ "DSP5.4",
+ "DSP5.5",
+ "DSP5.6",
+ "DSP6.1",
+ "DSP6.2",
+ "DSP6.3",
+ "DSP6.4",
+ "DSP6.5",
+ "DSP6.6",
+ "DSP7.1",
+ "DSP7.2",
+ "DSP7.3",
+ "DSP7.4",
+ "DSP7.5",
+ "DSP7.6",
+ "ASRC1IN1L",
+ "ASRC1IN1R",
+ "ASRC1IN2L",
+ "ASRC1IN2R",
+ "ASRC2IN1L",
+ "ASRC2IN1R",
+ "ASRC2IN2L",
+ "ASRC2IN2R",
+ "ISRC1INT1",
+ "ISRC1INT2",
+ "ISRC1INT3",
+ "ISRC1INT4",
+ "ISRC1DEC1",
+ "ISRC1DEC2",
+ "ISRC1DEC3",
+ "ISRC1DEC4",
+ "ISRC2INT1",
+ "ISRC2INT2",
+ "ISRC2INT3",
+ "ISRC2INT4",
+ "ISRC2DEC1",
+ "ISRC2DEC2",
+ "ISRC2DEC3",
+ "ISRC2DEC4",
+ "ISRC3INT1",
+ "ISRC3INT2",
+ "ISRC3INT3",
+ "ISRC3INT4",
+ "ISRC3DEC1",
+ "ISRC3DEC2",
+ "ISRC3DEC3",
+ "ISRC3DEC4",
+ "ISRC4INT1",
+ "ISRC4INT2",
+ "ISRC4DEC1",
+ "ISRC4DEC2",
+ "DFC1",
+ "DFC2",
+ "DFC3",
+ "DFC4",
+ "DFC5",
+ "DFC6",
+ "DFC7",
+ "DFC8",
+};
+EXPORT_SYMBOL_GPL(madera_mixer_texts);
+
+unsigned int madera_mixer_values[] = {
+ 0x00, /* None */
+ 0x04, /* Tone Generator 1 */
+ 0x05, /* Tone Generator 2 */
+ 0x06, /* Haptics */
+ 0x08, /* AEC */
+ 0x09, /* AEC2 */
+ 0x0c, /* Noise mixer */
+ 0x0d, /* Comfort noise */
+ 0x10, /* IN1L */
+ 0x11,
+ 0x12,
+ 0x13,
+ 0x14,
+ 0x15,
+ 0x16,
+ 0x17,
+ 0x18,
+ 0x19,
+ 0x1A,
+ 0x1B,
+ 0x20, /* AIF1RX1 */
+ 0x21,
+ 0x22,
+ 0x23,
+ 0x24,
+ 0x25,
+ 0x26,
+ 0x27,
+ 0x28, /* AIF2RX1 */
+ 0x29,
+ 0x2a,
+ 0x2b,
+ 0x2c,
+ 0x2d,
+ 0x2e,
+ 0x2f,
+ 0x30, /* AIF3RX1 */
+ 0x31,
+ 0x34, /* AIF4RX1 */
+ 0x35,
+ 0x38, /* SLIMRX1 */
+ 0x39,
+ 0x3a,
+ 0x3b,
+ 0x3c,
+ 0x3d,
+ 0x3e,
+ 0x3f,
+ 0x50, /* EQ1 */
+ 0x51,
+ 0x52,
+ 0x53,
+ 0x58, /* DRC1L */
+ 0x59,
+ 0x5a,
+ 0x5b,
+ 0x60, /* LHPF1 */
+ 0x61,
+ 0x62,
+ 0x63,
+ 0x68, /* DSP1.1 */
+ 0x69,
+ 0x6a,
+ 0x6b,
+ 0x6c,
+ 0x6d,
+ 0x70, /* DSP2.1 */
+ 0x71,
+ 0x72,
+ 0x73,
+ 0x74,
+ 0x75,
+ 0x78, /* DSP3.1 */
+ 0x79,
+ 0x7a,
+ 0x7b,
+ 0x7c,
+ 0x7d,
+ 0x80, /* DSP4.1 */
+ 0x81,
+ 0x82,
+ 0x83,
+ 0x84,
+ 0x85,
+ 0x88, /* DSP5.1 */
+ 0x89,
+ 0x8a,
+ 0x8b,
+ 0x8c,
+ 0x8d,
+ 0xc0, /* DSP6.1 */
+ 0xc1,
+ 0xc2,
+ 0xc3,
+ 0xc4,
+ 0xc5,
+ 0xc8, /* DSP7.1 */
+ 0xc9,
+ 0xca,
+ 0xcb,
+ 0xcc,
+ 0xcd,
+ 0x90, /* ASRC1IN1L */
+ 0x91,
+ 0x92,
+ 0x93,
+ 0x94, /* ASRC2IN1L */
+ 0x95,
+ 0x96,
+ 0x97,
+ 0xa0, /* ISRC1INT1 */
+ 0xa1,
+ 0xa2,
+ 0xa3,
+ 0xa4, /* ISRC1DEC1 */
+ 0xa5,
+ 0xa6,
+ 0xa7,
+ 0xa8, /* ISRC2DEC1 */
+ 0xa9,
+ 0xaa,
+ 0xab,
+ 0xac, /* ISRC2INT1 */
+ 0xad,
+ 0xae,
+ 0xaf,
+ 0xb0, /* ISRC3DEC1 */
+ 0xb1,
+ 0xb2,
+ 0xb3,
+ 0xb4, /* ISRC3INT1 */
+ 0xb5,
+ 0xb6,
+ 0xb7,
+ 0xb8, /* ISRC4INT1 */
+ 0xb9,
+ 0xbc, /* ISRC4DEC1 */
+ 0xbd,
+ 0xf8, /* DFC1 */
+ 0xf9,
+ 0xfa,
+ 0xfb,
+ 0xfc,
+ 0xfd,
+ 0xfe,
+ 0xff, /* DFC8 */
+};
+EXPORT_SYMBOL_GPL(madera_mixer_values);
+
+const DECLARE_TLV_DB_SCALE(madera_ana_tlv, 0, 100, 0);
+EXPORT_SYMBOL_GPL(madera_ana_tlv);
+
+const DECLARE_TLV_DB_SCALE(madera_eq_tlv, -1200, 100, 0);
+EXPORT_SYMBOL_GPL(madera_eq_tlv);
+
+const DECLARE_TLV_DB_SCALE(madera_digital_tlv, -6400, 50, 0);
+EXPORT_SYMBOL_GPL(madera_digital_tlv);
+
+const DECLARE_TLV_DB_SCALE(madera_noise_tlv, -13200, 600, 0);
+EXPORT_SYMBOL_GPL(madera_noise_tlv);
+
+const DECLARE_TLV_DB_SCALE(madera_ng_tlv, -12000, 600, 0);
+EXPORT_SYMBOL_GPL(madera_ng_tlv);
+
+const DECLARE_TLV_DB_SCALE(madera_mixer_tlv, -3200, 100, 0);
+EXPORT_SYMBOL_GPL(madera_mixer_tlv);
+
+const char * const madera_sample_rate_text[MADERA_SAMPLE_RATE_ENUM_SIZE] = {
+ "12kHz", "24kHz", "48kHz", "96kHz", "192kHz", "384kHz",
+ "11.025kHz", "22.05kHz", "44.1kHz", "88.2kHz", "176.4kHz", "352.8kHz",
+ "4kHz", "8kHz", "16kHz", "32kHz",
+};
+EXPORT_SYMBOL_GPL(madera_sample_rate_text);
+
+const unsigned int madera_sample_rate_val[MADERA_SAMPLE_RATE_ENUM_SIZE] = {
+ 0x01, 0x02, 0x03, 0x04, 0x05, 0x06,
+ 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E,
+ 0x10, 0x11, 0x12, 0x13,
+};
+EXPORT_SYMBOL_GPL(madera_sample_rate_val);
+
+const char *madera_sample_rate_val_to_name(unsigned int rate_val)
+{
+ int i;
+
+ for (i = 0; i < ARRAY_SIZE(madera_sample_rate_val); ++i) {
+ if (madera_sample_rate_val[i] == rate_val)
+ return madera_sample_rate_text[i];
+ }
+
+ return "Illegal";
+}
+EXPORT_SYMBOL_GPL(madera_sample_rate_val_to_name);
+
+const struct soc_enum madera_sample_rate[] = {
+ SOC_VALUE_ENUM_SINGLE(MADERA_SAMPLE_RATE_2,
+ MADERA_SAMPLE_RATE_2_SHIFT, 0x1f,
+ MADERA_SAMPLE_RATE_ENUM_SIZE,
+ madera_sample_rate_text,
+ madera_sample_rate_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_SAMPLE_RATE_3,
+ MADERA_SAMPLE_RATE_3_SHIFT, 0x1f,
+ MADERA_SAMPLE_RATE_ENUM_SIZE,
+ madera_sample_rate_text,
+ madera_sample_rate_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_ASYNC_SAMPLE_RATE_2,
+ MADERA_ASYNC_SAMPLE_RATE_2_SHIFT, 0x1f,
+ MADERA_SAMPLE_RATE_ENUM_SIZE,
+ madera_sample_rate_text,
+ madera_sample_rate_val),
+
+};
+EXPORT_SYMBOL_GPL(madera_sample_rate);
+
+const char * const madera_rate_text[MADERA_RATE_ENUM_SIZE] = {
+ "SYNCCLK rate 1", "SYNCCLK rate 2", "SYNCCLK rate 3",
+ "ASYNCCLK rate 1", "ASYNCCLK rate 2",
+};
+EXPORT_SYMBOL_GPL(madera_rate_text);
+
+const unsigned int madera_rate_val[MADERA_RATE_ENUM_SIZE] = {
+ 0x0, 0x1, 0x2, 0x8, 0x9,
+};
+EXPORT_SYMBOL_GPL(madera_rate_val);
+
+const char * const madera_dfc_width_text[MADERA_DFC_WIDTH_ENUM_SIZE] = {
+ "8bit", "16bit", "20bit", "24bit", "32bit",
+};
+EXPORT_SYMBOL_GPL(madera_dfc_width_text);
+
+const unsigned int madera_dfc_width_val[MADERA_DFC_WIDTH_ENUM_SIZE] = {
+ 7, 15, 19, 23, 31,
+};
+EXPORT_SYMBOL_GPL(madera_dfc_width_val);
+
+const char * const madera_dfc_type_text[MADERA_DFC_TYPE_ENUM_SIZE] = {
+ "Fixed", "Unsigned Fixed", "Single Precision Floating",
+ "Half Precision Floating", "Arm Alternative Floating",
+};
+EXPORT_SYMBOL_GPL(madera_dfc_type_text);
+
+const unsigned int madera_dfc_type_val[MADERA_DFC_TYPE_ENUM_SIZE] = {
+ 0, 1, 2, 4, 5,
+};
+EXPORT_SYMBOL_GPL(madera_dfc_type_val);
+
+const struct soc_enum madera_dfc_width[] = {
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC1_RX,
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_RX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC1_TX,
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_TX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC2_RX,
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_RX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC2_TX,
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_TX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC3_RX,
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_RX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC3_TX,
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_TX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC4_RX,
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_RX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC4_TX,
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_TX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC5_RX,
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_RX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC5_TX,
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_TX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC6_RX,
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_RX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC6_TX,
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_TX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC7_RX,
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_RX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC7_TX,
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_TX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC8_RX,
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_RX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_RX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC8_TX,
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ MADERA_DFC1_TX_DATA_WIDTH_MASK >>
+ MADERA_DFC1_TX_DATA_WIDTH_SHIFT,
+ ARRAY_SIZE(madera_dfc_width_text),
+ madera_dfc_width_text,
+ madera_dfc_width_val),
+};
+EXPORT_SYMBOL_GPL(madera_dfc_width);
+
+const struct soc_enum madera_dfc_type[] = {
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC1_RX,
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_RX_DATA_TYPE_MASK >>
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC1_TX,
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_TX_DATA_TYPE_MASK >>
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC2_RX,
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_RX_DATA_TYPE_MASK >>
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC2_TX,
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_TX_DATA_TYPE_MASK >>
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC3_RX,
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_RX_DATA_TYPE_MASK >>
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC3_TX,
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_TX_DATA_TYPE_MASK >>
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC4_RX,
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_RX_DATA_TYPE_MASK >>
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC4_TX,
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_TX_DATA_TYPE_MASK >>
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC5_RX,
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_RX_DATA_TYPE_MASK >>
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC5_TX,
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_TX_DATA_TYPE_MASK >>
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC6_RX,
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_RX_DATA_TYPE_MASK >>
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC6_TX,
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_TX_DATA_TYPE_MASK >>
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC7_RX,
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_RX_DATA_TYPE_MASK >>
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC7_TX,
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_TX_DATA_TYPE_MASK >>
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC8_RX,
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_RX_DATA_TYPE_MASK >>
+ MADERA_DFC1_RX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DFC8_TX,
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ MADERA_DFC1_TX_DATA_TYPE_MASK >>
+ MADERA_DFC1_TX_DATA_TYPE_SHIFT,
+ ARRAY_SIZE(madera_dfc_type_text),
+ madera_dfc_type_text,
+ madera_dfc_type_val),
+};
+EXPORT_SYMBOL_GPL(madera_dfc_type);
+
+const struct soc_enum madera_isrc_fsh[] = {
+ SOC_VALUE_ENUM_SINGLE(MADERA_ISRC_1_CTRL_1,
+ MADERA_ISRC1_FSH_SHIFT, 0xf,
+ MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_ISRC_2_CTRL_1,
+ MADERA_ISRC2_FSH_SHIFT, 0xf,
+ MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_ISRC_3_CTRL_1,
+ MADERA_ISRC3_FSH_SHIFT, 0xf,
+ MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_ISRC_4_CTRL_1,
+ MADERA_ISRC4_FSH_SHIFT, 0xf,
+ MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+
+};
+EXPORT_SYMBOL_GPL(madera_isrc_fsh);
+
+const struct soc_enum madera_isrc_fsl[] = {
+ SOC_VALUE_ENUM_SINGLE(MADERA_ISRC_1_CTRL_2,
+ MADERA_ISRC1_FSL_SHIFT, 0xf,
+ MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_ISRC_2_CTRL_2,
+ MADERA_ISRC2_FSL_SHIFT, 0xf,
+ MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_ISRC_3_CTRL_2,
+ MADERA_ISRC3_FSL_SHIFT, 0xf,
+ MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_ISRC_4_CTRL_2,
+ MADERA_ISRC4_FSL_SHIFT, 0xf,
+ MADERA_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+
+};
+EXPORT_SYMBOL_GPL(madera_isrc_fsl);
+
+const struct soc_enum madera_asrc1_rate[] = {
+ SOC_VALUE_ENUM_SINGLE(MADERA_ASRC1_RATE1,
+ MADERA_ASRC1_RATE1_SHIFT, 0xf,
+ MADERA_SYNC_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_ASRC1_RATE2,
+ MADERA_ASRC1_RATE1_SHIFT, 0xf,
+ MADERA_ASYNC_RATE_ENUM_SIZE,
+ madera_rate_text + MADERA_SYNC_RATE_ENUM_SIZE,
+ madera_rate_val + MADERA_SYNC_RATE_ENUM_SIZE),
+
+};
+EXPORT_SYMBOL_GPL(madera_asrc1_rate);
+
+const struct soc_enum madera_asrc2_rate[] = {
+ SOC_VALUE_ENUM_SINGLE(MADERA_ASRC2_RATE1,
+ MADERA_ASRC2_RATE1_SHIFT, 0xf,
+ MADERA_SYNC_RATE_ENUM_SIZE,
+ madera_rate_text, madera_rate_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_ASRC2_RATE2,
+ MADERA_ASRC2_RATE2_SHIFT, 0xf,
+ MADERA_ASYNC_RATE_ENUM_SIZE,
+ madera_rate_text + MADERA_SYNC_RATE_ENUM_SIZE,
+ madera_rate_val + MADERA_SYNC_RATE_ENUM_SIZE),
+
+};
+EXPORT_SYMBOL_GPL(madera_asrc2_rate);
+
+static const char * const madera_vol_ramp_text[] = {
+ "0ms/6dB", "0.5ms/6dB", "1ms/6dB", "2ms/6dB", "4ms/6dB", "8ms/6dB",
+ "15ms/6dB", "30ms/6dB",
+};
+
+SOC_ENUM_SINGLE_DECL(madera_in_vd_ramp,
+ MADERA_INPUT_VOLUME_RAMP,
+ MADERA_IN_VD_RAMP_SHIFT,
+ madera_vol_ramp_text);
+EXPORT_SYMBOL_GPL(madera_in_vd_ramp);
+
+SOC_ENUM_SINGLE_DECL(madera_in_vi_ramp,
+ MADERA_INPUT_VOLUME_RAMP,
+ MADERA_IN_VI_RAMP_SHIFT,
+ madera_vol_ramp_text);
+EXPORT_SYMBOL_GPL(madera_in_vi_ramp);
+
+SOC_ENUM_SINGLE_DECL(madera_out_vd_ramp,
+ MADERA_OUTPUT_VOLUME_RAMP,
+ MADERA_OUT_VD_RAMP_SHIFT,
+ madera_vol_ramp_text);
+EXPORT_SYMBOL_GPL(madera_out_vd_ramp);
+
+SOC_ENUM_SINGLE_DECL(madera_out_vi_ramp,
+ MADERA_OUTPUT_VOLUME_RAMP,
+ MADERA_OUT_VI_RAMP_SHIFT,
+ madera_vol_ramp_text);
+EXPORT_SYMBOL_GPL(madera_out_vi_ramp);
+
+static const char * const madera_lhpf_mode_text[] = {
+ "Low-pass", "High-pass"
+};
+
+SOC_ENUM_SINGLE_DECL(madera_lhpf1_mode,
+ MADERA_HPLPF1_1,
+ MADERA_LHPF1_MODE_SHIFT,
+ madera_lhpf_mode_text);
+EXPORT_SYMBOL_GPL(madera_lhpf1_mode);
+
+SOC_ENUM_SINGLE_DECL(madera_lhpf2_mode,
+ MADERA_HPLPF2_1,
+ MADERA_LHPF2_MODE_SHIFT,
+ madera_lhpf_mode_text);
+EXPORT_SYMBOL_GPL(madera_lhpf2_mode);
+
+SOC_ENUM_SINGLE_DECL(madera_lhpf3_mode,
+ MADERA_HPLPF3_1,
+ MADERA_LHPF3_MODE_SHIFT,
+ madera_lhpf_mode_text);
+EXPORT_SYMBOL_GPL(madera_lhpf3_mode);
+
+SOC_ENUM_SINGLE_DECL(madera_lhpf4_mode,
+ MADERA_HPLPF4_1,
+ MADERA_LHPF4_MODE_SHIFT,
+ madera_lhpf_mode_text);
+EXPORT_SYMBOL_GPL(madera_lhpf4_mode);
+
+static const char * const madera_ng_hold_text[] = {
+ "30ms", "120ms", "250ms", "500ms",
+};
+
+SOC_ENUM_SINGLE_DECL(madera_ng_hold,
+ MADERA_NOISE_GATE_CONTROL,
+ MADERA_NGATE_HOLD_SHIFT,
+ madera_ng_hold_text);
+EXPORT_SYMBOL_GPL(madera_ng_hold);
+
+static const char * const madera_in_hpf_cut_text[] = {
+ "2.5Hz", "5Hz", "10Hz", "20Hz", "40Hz"
+};
+
+SOC_ENUM_SINGLE_DECL(madera_in_hpf_cut_enum,
+ MADERA_HPF_CONTROL,
+ MADERA_IN_HPF_CUT_SHIFT,
+ madera_in_hpf_cut_text);
+EXPORT_SYMBOL_GPL(madera_in_hpf_cut_enum);
+
+static const char * const madera_in_dmic_osr_text[MADERA_OSR_ENUM_SIZE] = {
+ "384kHz", "768kHz", "1.536MHz", "3.072MHz", "6.144MHz",
+};
+
+static const unsigned int madera_in_dmic_osr_val[MADERA_OSR_ENUM_SIZE] = {
+ 2, 3, 4, 5, 6,
+};
+
+const struct soc_enum madera_in_dmic_osr[] = {
+ SOC_VALUE_ENUM_SINGLE(MADERA_DMIC1L_CONTROL, MADERA_IN1_OSR_SHIFT,
+ 0x7, MADERA_OSR_ENUM_SIZE,
+ madera_in_dmic_osr_text, madera_in_dmic_osr_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DMIC2L_CONTROL, MADERA_IN2_OSR_SHIFT,
+ 0x7, MADERA_OSR_ENUM_SIZE,
+ madera_in_dmic_osr_text, madera_in_dmic_osr_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DMIC3L_CONTROL, MADERA_IN3_OSR_SHIFT,
+ 0x7, MADERA_OSR_ENUM_SIZE,
+ madera_in_dmic_osr_text, madera_in_dmic_osr_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DMIC4L_CONTROL, MADERA_IN4_OSR_SHIFT,
+ 0x7, MADERA_OSR_ENUM_SIZE,
+ madera_in_dmic_osr_text, madera_in_dmic_osr_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DMIC5L_CONTROL, MADERA_IN5_OSR_SHIFT,
+ 0x7, MADERA_OSR_ENUM_SIZE,
+ madera_in_dmic_osr_text, madera_in_dmic_osr_val),
+ SOC_VALUE_ENUM_SINGLE(MADERA_DMIC6L_CONTROL, MADERA_IN6_OSR_SHIFT,
+ 0x7, MADERA_OSR_ENUM_SIZE,
+ madera_in_dmic_osr_text, madera_in_dmic_osr_val),
+};
+EXPORT_SYMBOL_GPL(madera_in_dmic_osr);
+
+static const char * const madera_anc_input_src_text[] = {
+ "None", "IN1", "IN2", "IN3", "IN4", "IN5", "IN6",
+};
+
+static const char * const madera_anc_channel_src_text[] = {
+ "None", "Left", "Right", "Combine",
+};
+
+const struct soc_enum madera_anc_input_src[] = {
+ SOC_ENUM_SINGLE(MADERA_ANC_SRC,
+ MADERA_IN_RXANCL_SEL_SHIFT,
+ ARRAY_SIZE(madera_anc_input_src_text),
+ madera_anc_input_src_text),
+ SOC_ENUM_SINGLE(MADERA_FCL_ADC_REFORMATTER_CONTROL,
+ MADERA_FCL_MIC_MODE_SEL,
+ ARRAY_SIZE(madera_anc_channel_src_text),
+ madera_anc_channel_src_text),
+ SOC_ENUM_SINGLE(MADERA_ANC_SRC,
+ MADERA_IN_RXANCR_SEL_SHIFT,
+ ARRAY_SIZE(madera_anc_input_src_text),
+ madera_anc_input_src_text),
+ SOC_ENUM_SINGLE(MADERA_FCR_ADC_REFORMATTER_CONTROL,
+ MADERA_FCR_MIC_MODE_SEL,
+ ARRAY_SIZE(madera_anc_channel_src_text),
+ madera_anc_channel_src_text),
+};
+EXPORT_SYMBOL_GPL(madera_anc_input_src);
+
+static const char * const madera_anc_ng_texts[] = {
+ "None", "Internal", "External",
+};
+
+SOC_ENUM_SINGLE_DECL(madera_anc_ng_enum, SND_SOC_NOPM, 0, madera_anc_ng_texts);
+EXPORT_SYMBOL_GPL(madera_anc_ng_enum);
+
+static const char * const madera_out_anc_src_text[] = {
+ "None", "RXANCL", "RXANCR",
+};
+
+const struct soc_enum madera_output_anc_src[] = {
+ SOC_ENUM_SINGLE(MADERA_OUTPUT_PATH_CONFIG_1L,
+ MADERA_OUT1L_ANC_SRC_SHIFT,
+ ARRAY_SIZE(madera_out_anc_src_text),
+ madera_out_anc_src_text),
+ SOC_ENUM_SINGLE(MADERA_OUTPUT_PATH_CONFIG_1R,
+ MADERA_OUT1R_ANC_SRC_SHIFT,
+ ARRAY_SIZE(madera_out_anc_src_text),
+ madera_out_anc_src_text),
+ SOC_ENUM_SINGLE(MADERA_OUTPUT_PATH_CONFIG_2L,
+ MADERA_OUT2L_ANC_SRC_SHIFT,
+ ARRAY_SIZE(madera_out_anc_src_text),
+ madera_out_anc_src_text),
+ SOC_ENUM_SINGLE(MADERA_OUTPUT_PATH_CONFIG_2R,
+ MADERA_OUT2R_ANC_SRC_SHIFT,
+ ARRAY_SIZE(madera_out_anc_src_text),
+ madera_out_anc_src_text),
+ SOC_ENUM_SINGLE(MADERA_OUTPUT_PATH_CONFIG_3L,
+ MADERA_OUT3L_ANC_SRC_SHIFT,
+ ARRAY_SIZE(madera_out_anc_src_text),
+ madera_out_anc_src_text),
+ SOC_ENUM_SINGLE(MADERA_OUTPUT_PATH_CONFIG_3R,
+ MADERA_OUT3R_ANC_SRC_SHIFT,
+ ARRAY_SIZE(madera_out_anc_src_text),
+ madera_out_anc_src_text),
+ SOC_ENUM_SINGLE(MADERA_OUTPUT_PATH_CONFIG_4L,
+ MADERA_OUT4L_ANC_SRC_SHIFT,
+ ARRAY_SIZE(madera_out_anc_src_text),
+ madera_out_anc_src_text),
+ SOC_ENUM_SINGLE(MADERA_OUTPUT_PATH_CONFIG_4R,
+ MADERA_OUT4R_ANC_SRC_SHIFT,
+ ARRAY_SIZE(madera_out_anc_src_text),
+ madera_out_anc_src_text),
+ SOC_ENUM_SINGLE(MADERA_OUTPUT_PATH_CONFIG_5L,
+ MADERA_OUT5L_ANC_SRC_SHIFT,
+ ARRAY_SIZE(madera_out_anc_src_text),
+ madera_out_anc_src_text),
+ SOC_ENUM_SINGLE(MADERA_OUTPUT_PATH_CONFIG_5R,
+ MADERA_OUT5R_ANC_SRC_SHIFT,
+ ARRAY_SIZE(madera_out_anc_src_text),
+ madera_out_anc_src_text),
+ SOC_ENUM_SINGLE(MADERA_OUTPUT_PATH_CONFIG_6L,
+ MADERA_OUT6L_ANC_SRC_SHIFT,
+ ARRAY_SIZE(madera_out_anc_src_text),
+ madera_out_anc_src_text),
+ SOC_ENUM_SINGLE(MADERA_OUTPUT_PATH_CONFIG_6R,
+ MADERA_OUT6R_ANC_SRC_SHIFT,
+ ARRAY_SIZE(madera_out_anc_src_text),
+ madera_out_anc_src_text),
+};
+EXPORT_SYMBOL_GPL(madera_output_anc_src);
+
+int madera_dfc_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol)
+{
+ struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
+ struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
+ struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
+ unsigned int reg = e->reg;
+ unsigned int val;
+ int ret = 0;
+
+ reg = ((reg / 6) * 6) - 2;
+
+ snd_soc_dapm_mutex_lock(dapm);
+
+ val = snd_soc_read(codec, reg);
+ if (val & MADERA_DFC1_ENA) {
+ ret = -EBUSY;
+ dev_err(codec->dev, "Can't change mode on an active DFC\n");
+ goto exit;
+ }
+
+ ret = snd_soc_put_enum_double(kcontrol, ucontrol);
+exit:
+ snd_soc_dapm_mutex_unlock(dapm);
+
+ return ret;
+}
+EXPORT_SYMBOL_GPL(madera_dfc_put);
+
+int madera_lp_mode_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol)
+{
+ struct soc_mixer_control *mc =
+ (struct soc_mixer_control *)kcontrol->private_value;
+ struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
+ struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
+ unsigned int reg, mask;
+ int ret;
+
+ snd_soc_dapm_mutex_lock(dapm);
+
+ /* Cannot change lp mode on an active input */
+ reg = snd_soc_read(codec, MADERA_INPUT_ENABLES);
+ mask = (mc->reg - MADERA_ADC_DIGITAL_VOLUME_1L) / 4;
+ mask ^= 0x1; /* Flip bottom bit for channel order */
+
+ if ((reg) & (1 << mask)) {
+ ret = -EBUSY;
+ dev_err(codec->dev,
+ "Can't change lp mode on an active input\n");
+ goto exit;
+ }
+
+ ret = snd_soc_put_volsw(kcontrol, ucontrol);
+
+exit:
+ snd_soc_dapm_mutex_unlock(dapm);
+
+ return ret;
+}
+EXPORT_SYMBOL_GPL(madera_lp_mode_put);
+
+const struct snd_kcontrol_new madera_dsp_trigger_output_mux[] = {
+ SOC_DAPM_SINGLE("Switch", SND_SOC_NOPM, 0, 1, 0),
+ SOC_DAPM_SINGLE("Switch", SND_SOC_NOPM, 0, 1, 0),
+ SOC_DAPM_SINGLE("Switch", SND_SOC_NOPM, 0, 1, 0),
+ SOC_DAPM_SINGLE("Switch", SND_SOC_NOPM, 0, 1, 0),
+ SOC_DAPM_SINGLE("Switch", SND_SOC_NOPM, 0, 1, 0),
+ SOC_DAPM_SINGLE("Switch", SND_SOC_NOPM, 0, 1, 0),
+ SOC_DAPM_SINGLE("Switch", SND_SOC_NOPM, 0, 1, 0),
+};
+EXPORT_SYMBOL_GPL(madera_dsp_trigger_output_mux);
+
+const struct snd_kcontrol_new madera_drc_activity_output_mux[] = {
+ SOC_DAPM_SINGLE("Switch", SND_SOC_NOPM, 0, 1, 0),
+ SOC_DAPM_SINGLE("Switch", SND_SOC_NOPM, 0, 1, 0),
+};
+EXPORT_SYMBOL_GPL(madera_drc_activity_output_mux);
+
+static void madera_in_set_vu(struct madera_priv *priv, bool enable)
+{
+ unsigned int val;
+ int i, ret;
+
+ if (enable)
+ val = MADERA_IN_VU;
+ else
+ val = 0;
+
+ for (i = 0; i < priv->num_inputs; i++) {
+ ret = regmap_update_bits(priv->madera->regmap,
+ MADERA_ADC_DIGITAL_VOLUME_1L + (i * 4),
+ MADERA_IN_VU, val);
+ if (ret)
+ dev_warn(priv->madera->dev,
+ "Failed to modify VU bits: %d\n", ret);
+ }
+}
+
+int madera_in_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
+ int event)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ unsigned int reg;
+
+ if (w->shift % 2)
+ reg = MADERA_ADC_DIGITAL_VOLUME_1L + ((w->shift / 2) * 8);
+ else
+ reg = MADERA_ADC_DIGITAL_VOLUME_1R + ((w->shift / 2) * 8);
+
+ switch (event) {
+ case SND_SOC_DAPM_PRE_PMU:
+ priv->in_pending++;
+ break;
+ case SND_SOC_DAPM_POST_PMU:
+ priv->in_pending--;
+ snd_soc_update_bits(codec, reg, MADERA_IN1L_MUTE, 0);
+
+ /* If this is the last input pending then allow VU */
+ if (priv->in_pending == 0) {
+ usleep_range(1000, 3000);
+ madera_in_set_vu(priv, true);
+ }
+ break;
+ case SND_SOC_DAPM_PRE_PMD:
+ snd_soc_update_bits(codec, reg,
+ MADERA_IN1L_MUTE | MADERA_IN_VU,
+ MADERA_IN1L_MUTE | MADERA_IN_VU);
+ break;
+ case SND_SOC_DAPM_POST_PMD:
+ /* Disable volume updates if no inputs are enabled */
+ reg = snd_soc_read(codec, MADERA_INPUT_ENABLES);
+ if (reg == 0)
+ madera_in_set_vu(priv, false);
+ break;
+ default:
+ break;
+ }
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_in_ev);
+
+int madera_dre_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol)
+{
+ struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
+ struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
+ int ret;
+
+ snd_soc_dapm_mutex_lock(dapm);
+
+ ret = snd_soc_put_volsw(kcontrol, ucontrol);
+
+ snd_soc_dapm_mutex_unlock(dapm);
+
+ return ret;
+}
+EXPORT_SYMBOL_GPL(madera_dre_put);
+
+int madera_out_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct madera *madera = priv->madera;
+ int out_up_delay;
+
+ switch (madera->type) {
+ case CS47L90:
+ case CS47L91:
+ out_up_delay = 6;
+ break;
+ default:
+ out_up_delay = 17;
+ break;
+ }
+
+ switch (event) {
+ case SND_SOC_DAPM_PRE_PMU:
+ switch (w->shift) {
+ case MADERA_OUT1L_ENA_SHIFT:
+ case MADERA_OUT1R_ENA_SHIFT:
+ case MADERA_OUT2L_ENA_SHIFT:
+ case MADERA_OUT2R_ENA_SHIFT:
+ case MADERA_OUT3L_ENA_SHIFT:
+ case MADERA_OUT3R_ENA_SHIFT:
+ priv->out_up_pending++;
+ priv->out_up_delay += out_up_delay;
+ break;
+ default:
+ break;
+ }
+ break;
+
+ case SND_SOC_DAPM_POST_PMU:
+ switch (w->shift) {
+ case MADERA_OUT1L_ENA_SHIFT:
+ case MADERA_OUT1R_ENA_SHIFT:
+ case MADERA_OUT2L_ENA_SHIFT:
+ case MADERA_OUT2R_ENA_SHIFT:
+ case MADERA_OUT3L_ENA_SHIFT:
+ case MADERA_OUT3R_ENA_SHIFT:
+ priv->out_up_pending--;
+ if (!priv->out_up_pending) {
+ msleep(priv->out_up_delay);
+ priv->out_up_delay = 0;
+ }
+ break;
+
+ default:
+ break;
+ }
+ break;
+
+ case SND_SOC_DAPM_PRE_PMD:
+ switch (w->shift) {
+ case MADERA_OUT1L_ENA_SHIFT:
+ case MADERA_OUT1R_ENA_SHIFT:
+ case MADERA_OUT2L_ENA_SHIFT:
+ case MADERA_OUT2R_ENA_SHIFT:
+ case MADERA_OUT3L_ENA_SHIFT:
+ case MADERA_OUT3R_ENA_SHIFT:
+ priv->out_down_pending++;
+ priv->out_down_delay++;
+ break;
+ default:
+ break;
+ }
+ break;
+
+ case SND_SOC_DAPM_POST_PMD:
+ switch (w->shift) {
+ case MADERA_OUT1L_ENA_SHIFT:
+ case MADERA_OUT1R_ENA_SHIFT:
+ case MADERA_OUT2L_ENA_SHIFT:
+ case MADERA_OUT2R_ENA_SHIFT:
+ case MADERA_OUT3L_ENA_SHIFT:
+ case MADERA_OUT3R_ENA_SHIFT:
+ priv->out_down_pending--;
+ if (!priv->out_down_pending) {
+ msleep(priv->out_down_delay);
+ priv->out_down_delay = 0;
+ }
+ break;
+ default:
+ break;
+ }
+ break;
+ default:
+ break;
+ }
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_out_ev);
+
+int madera_hp_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct madera *madera = priv->madera;
+ unsigned int mask = 1 << w->shift;
+ unsigned int out_num = w->shift / 2;
+ unsigned int val;
+ unsigned int ep_sel = 0;
+
+ switch (event) {
+ case SND_SOC_DAPM_POST_PMU:
+ val = mask;
+ break;
+ case SND_SOC_DAPM_PRE_PMD:
+ val = 0;
+ break;
+ case SND_SOC_DAPM_PRE_PMU:
+ case SND_SOC_DAPM_POST_PMD:
+ return madera_out_ev(w, kcontrol, event);
+ default:
+ return 0;
+ }
+
+ /* Store the desired state for the HP outputs */
+ madera->hp_ena &= ~mask;
+ madera->hp_ena |= val;
+
+ /* if OUT1 is routed to EPOUT, ignore HP clamp and impedance */
+ regmap_read(madera->regmap, MADERA_OUTPUT_ENABLES_1, &ep_sel);
+ ep_sel &= MADERA_EP_SEL_MASK;
+
+ /* Force off if HPDET clamp is active for this output */
+ if (!ep_sel &&
+ (madera->out_clamp[out_num] || madera->out_shorted[out_num]))
+ val = 0;
+
+ regmap_update_bits(madera->regmap, MADERA_OUTPUT_ENABLES_1, mask, val);
+
+ return madera_out_ev(w, kcontrol, event);
+}
+EXPORT_SYMBOL_GPL(madera_hp_ev);
+
+int madera_anc_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol,
+ int event)
+{
+ struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+ unsigned int val;
+
+ switch (event) {
+ case SND_SOC_DAPM_POST_PMU:
+ val = 1 << w->shift;
+ break;
+ case SND_SOC_DAPM_PRE_PMD:
+ val = 1 << (w->shift + 1);
+ break;
+ default:
+ return 0;
+ }
+
+ snd_soc_write(codec, MADERA_CLOCK_CONTROL, val);
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_anc_ev);
+
+static const unsigned int madera_opclk_ref_48k_rates[] = {
+ 6144000,
+ 12288000,
+ 24576000,
+ 49152000,
+};
+
+static const unsigned int madera_opclk_ref_44k1_rates[] = {
+ 5644800,
+ 11289600,
+ 22579200,
+ 45158400,
+};
+
+static int madera_set_opclk(struct snd_soc_codec *codec, unsigned int clk,
+ unsigned int freq)
+{
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ unsigned int reg;
+ const unsigned int *rates;
+ int ref, div, refclk;
+
+ BUILD_BUG_ON(ARRAY_SIZE(madera_opclk_ref_48k_rates) !=
+ ARRAY_SIZE(madera_opclk_ref_44k1_rates));
+
+ switch (clk) {
+ case MADERA_CLK_OPCLK:
+ reg = MADERA_OUTPUT_SYSTEM_CLOCK;
+ refclk = priv->sysclk;
+ break;
+ case MADERA_CLK_ASYNC_OPCLK:
+ reg = MADERA_OUTPUT_ASYNC_CLOCK;
+ refclk = priv->asyncclk;
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ if (refclk % 4000)
+ rates = madera_opclk_ref_44k1_rates;
+ else
+ rates = madera_opclk_ref_48k_rates;
+
+ for (ref = 0; ref < ARRAY_SIZE(madera_opclk_ref_48k_rates); ++ref) {
+ if (rates[ref] > refclk)
+ continue;
+
+ div = 2;
+ while ((rates[ref] / div >= freq) && (div <= 30)) {
+ if (rates[ref] / div == freq) {
+ dev_dbg(codec->dev, "Configured %dHz OPCLK\n",
+ freq);
+ snd_soc_update_bits(codec, reg,
+ MADERA_OPCLK_DIV_MASK |
+ MADERA_OPCLK_SEL_MASK,
+ (div <<
+ MADERA_OPCLK_DIV_SHIFT) |
+ ref);
+ return 0;
+ }
+ div += 2;
+ }
+ }
+
+ dev_err(codec->dev, "Unable to generate %dHz OPCLK\n", freq);
+
+ return -EINVAL;
+}
+
+static int madera_get_sysclk_setting(unsigned int freq)
+{
+ switch (freq) {
+ case 0:
+ case 5644800:
+ case 6144000:
+ return 0;
+ case 11289600:
+ case 12288000:
+ return MADERA_SYSCLK_12MHZ << MADERA_SYSCLK_FREQ_SHIFT;
+ case 22579200:
+ case 24576000:
+ return MADERA_SYSCLK_24MHZ << MADERA_SYSCLK_FREQ_SHIFT;
+ case 45158400:
+ case 49152000:
+ return MADERA_SYSCLK_49MHZ << MADERA_SYSCLK_FREQ_SHIFT;
+ case 90316800:
+ case 98304000:
+ return MADERA_SYSCLK_98MHZ << MADERA_SYSCLK_FREQ_SHIFT;
+ default:
+ return -EINVAL;
+ }
+}
+
+int madera_get_legacy_dspclk_setting(struct madera *madera, unsigned int freq)
+{
+ switch (freq) {
+ case 0:
+ return 0;
+ case 45158400:
+ case 49152000:
+ switch (madera->type) {
+ case CS47L85:
+ case WM1840:
+ if (madera->rev < 3)
+ return -EINVAL;
+ else
+ return MADERA_SYSCLK_49MHZ <<
+ MADERA_SYSCLK_FREQ_SHIFT;
+ default:
+ return -EINVAL;
+ }
+ case 135475200:
+ case 147456000:
+ return MADERA_DSPCLK_147MHZ << MADERA_DSP_CLK_FREQ_LEGACY_SHIFT;
+ default:
+ return -EINVAL;
+ }
+}
+EXPORT_SYMBOL_GPL(madera_get_legacy_dspclk_setting);
+
+static int madera_get_dspclk_setting(struct madera *madera,
+ unsigned int freq,
+ unsigned int *clock_2_val)
+{
+ switch (madera->type) {
+ case CS47L35:
+ case CS47L85:
+ case WM1840:
+ *clock_2_val = 0; /* don't use MADERA_DSP_CLOCK_2 */
+ return madera_get_legacy_dspclk_setting(madera, freq);
+ default:
+ if (freq > 150000000)
+ return -EINVAL;
+
+ /* Use new exact frequency control */
+ *clock_2_val = freq / 15625; /* freq * (2^6) / (10^6) */
+ return 0;
+ }
+}
+
+int madera_set_sysclk(struct snd_soc_codec *codec, int clk_id,
+ int source, unsigned int freq, int dir)
+{
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct madera *madera = priv->madera;
+ char *name;
+ unsigned int reg, clock_2_val = 0;
+ unsigned int mask = MADERA_SYSCLK_FREQ_MASK | MADERA_SYSCLK_SRC_MASK;
+ unsigned int val = source << MADERA_SYSCLK_SRC_SHIFT;
+ int clk_freq_sel, *clk;
+ int ret = 0;
+
+ switch (clk_id) {
+ case MADERA_CLK_SYSCLK_1:
+ name = "SYSCLK";
+ reg = MADERA_SYSTEM_CLOCK_1;
+ clk = &priv->sysclk;
+ clk_freq_sel = madera_get_sysclk_setting(freq);
+ mask |= MADERA_SYSCLK_FRAC;
+ break;
+ case MADERA_CLK_ASYNCCLK_1:
+ name = "ASYNCCLK";
+ reg = MADERA_ASYNC_CLOCK_1;
+ clk = &priv->asyncclk;
+ clk_freq_sel = madera_get_sysclk_setting(freq);
+ break;
+ case MADERA_CLK_OPCLK:
+ case MADERA_CLK_ASYNC_OPCLK:
+ return madera_set_opclk(codec, clk_id, freq);
+ case MADERA_CLK_DSPCLK:
+ name = "DSPCLK";
+ reg = MADERA_DSP_CLOCK_1;
+ clk = &priv->dspclk;
+ clk_freq_sel = madera_get_dspclk_setting(madera, freq,
+ &clock_2_val);
+ break;
+ default:
+ return -EINVAL;
+ }
+
+ if (clk_freq_sel < 0) {
+ dev_err(madera->dev,
+ "Failed to get clk setting for %dHZ\n", freq);
+ return clk_freq_sel;
+ }
+
+ *clk = freq;
+
+ if (freq == 0) {
+ dev_dbg(madera->dev, "%s cleared\n", name);
+ return 0;
+ }
+
+ val |= clk_freq_sel;
+
+ if (clock_2_val) {
+ ret = regmap_write(madera->regmap, MADERA_DSP_CLOCK_2,
+ clock_2_val);
+ if (ret) {
+ dev_err(madera->dev,
+ "Failed to write DSP_CONFIG2: %d\n", ret);
+ return ret;
+ }
+
+ /*
+ * We're using the frequency setting in MADERA_DSP_CLOCK_2 so
+ * don't change the frequency select bits in MADERA_DSP_CLOCK_1
+ */
+ mask = MADERA_SYSCLK_SRC_MASK;
+ }
+
+ if (freq % 6144000)
+ val |= MADERA_SYSCLK_FRAC;
+
+ dev_dbg(madera->dev, "%s set to %uHz", name, freq);
+
+ return regmap_update_bits(madera->regmap, reg, mask, val);
+}
+EXPORT_SYMBOL_GPL(madera_set_sysclk);
+
+static int madera_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
+{
+ struct snd_soc_codec *codec = dai->codec;
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct madera *madera = priv->madera;
+ int lrclk, bclk, mode, base;
+
+ base = dai->driver->base;
+
+ lrclk = 0;
+ bclk = 0;
+
+ switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
+ case SND_SOC_DAIFMT_DSP_A:
+ mode = MADERA_FMT_DSP_MODE_A;
+ break;
+ case SND_SOC_DAIFMT_DSP_B:
+ if ((fmt & SND_SOC_DAIFMT_MASTER_MASK)
+ != SND_SOC_DAIFMT_CBM_CFM) {
+ madera_aif_err(dai, "DSP_B not valid in slave mode\n");
+ return -EINVAL;
+ }
+ mode = MADERA_FMT_DSP_MODE_B;
+ break;
+ case SND_SOC_DAIFMT_I2S:
+ mode = MADERA_FMT_I2S_MODE;
+ break;
+ case SND_SOC_DAIFMT_LEFT_J:
+ if ((fmt & SND_SOC_DAIFMT_MASTER_MASK)
+ != SND_SOC_DAIFMT_CBM_CFM) {
+ madera_aif_err(dai, "LEFT_J not valid in slave mode\n");
+ return -EINVAL;
+ }
+ mode = MADERA_FMT_LEFT_JUSTIFIED_MODE;
+ break;
+ default:
+ madera_aif_err(dai, "Unsupported DAI format %d\n",
+ fmt & SND_SOC_DAIFMT_FORMAT_MASK);
+ return -EINVAL;
+ }
+
+ switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
+ case SND_SOC_DAIFMT_CBS_CFS:
+ break;
+ case SND_SOC_DAIFMT_CBS_CFM:
+ lrclk |= MADERA_AIF1TX_LRCLK_MSTR;
+ break;
+ case SND_SOC_DAIFMT_CBM_CFS:
+ bclk |= MADERA_AIF1_BCLK_MSTR;
+ break;
+ case SND_SOC_DAIFMT_CBM_CFM:
+ bclk |= MADERA_AIF1_BCLK_MSTR;
+ lrclk |= MADERA_AIF1TX_LRCLK_MSTR;
+ break;
+ default:
+ madera_aif_err(dai, "Unsupported master mode %d\n",
+ fmt & SND_SOC_DAIFMT_MASTER_MASK);
+ return -EINVAL;
+ }
+
+ switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
+ case SND_SOC_DAIFMT_NB_NF:
+ break;
+ case SND_SOC_DAIFMT_IB_IF:
+ bclk |= MADERA_AIF1_BCLK_INV;
+ lrclk |= MADERA_AIF1TX_LRCLK_INV;
+ break;
+ case SND_SOC_DAIFMT_IB_NF:
+ bclk |= MADERA_AIF1_BCLK_INV;
+ break;
+ case SND_SOC_DAIFMT_NB_IF:
+ lrclk |= MADERA_AIF1TX_LRCLK_INV;
+ break;
+ default:
+ madera_aif_err(dai, "Unsupported invert mode %d\n",
+ fmt & SND_SOC_DAIFMT_INV_MASK);
+ return -EINVAL;
+ }
+
+ regmap_update_bits(madera->regmap, base + MADERA_AIF_BCLK_CTRL,
+ MADERA_AIF1_BCLK_INV | MADERA_AIF1_BCLK_MSTR,
+ bclk);
+ regmap_update_bits(madera->regmap, base + MADERA_AIF_TX_PIN_CTRL,
+ MADERA_AIF1TX_LRCLK_INV | MADERA_AIF1TX_LRCLK_MSTR,
+ lrclk);
+ regmap_update_bits(madera->regmap,
+ base + MADERA_AIF_RX_PIN_CTRL,
+ MADERA_AIF1RX_LRCLK_INV | MADERA_AIF1RX_LRCLK_MSTR,
+ lrclk);
+ regmap_update_bits(madera->regmap, base + MADERA_AIF_FORMAT,
+ MADERA_AIF1_FMT_MASK, mode);
+
+ return 0;
+}
+
+static const int madera_48k_bclk_rates[] = {
+ -1,
+ 48000,
+ 64000,
+ 96000,
+ 128000,
+ 192000,
+ 256000,
+ 384000,
+ 512000,
+ 768000,
+ 1024000,
+ 1536000,
+ 2048000,
+ 3072000,
+ 4096000,
+ 6144000,
+ 8192000,
+ 12288000,
+ 24576000,
+};
+
+static const int madera_44k1_bclk_rates[] = {
+ -1,
+ 44100,
+ 58800,
+ 88200,
+ 117600,
+ 177640,
+ 235200,
+ 352800,
+ 470400,
+ 705600,
+ 940800,
+ 1411200,
+ 1881600,
+ 2822400,
+ 3763200,
+ 5644800,
+ 7526400,
+ 11289600,
+ 22579200,
+};
+
+static const unsigned int madera_sr_vals[] = {
+ 0,
+ 12000,
+ 24000,
+ 48000,
+ 96000,
+ 192000,
+ 384000,
+ 768000,
+ 0,
+ 11025,
+ 22050,
+ 44100,
+ 88200,
+ 176400,
+ 352800,
+ 705600,
+ 4000,
+ 8000,
+ 16000,
+ 32000,
+ 64000,
+ 128000,
+ 256000,
+ 512000,
+};
+
+#define MADERA_48K_RATE_MASK 0x0F003E
+#define MADERA_44K1_RATE_MASK 0x003E00
+#define MADERA_RATE_MASK (MADERA_48K_RATE_MASK | MADERA_44K1_RATE_MASK)
+
+static const struct snd_pcm_hw_constraint_list madera_constraint = {
+ .count = ARRAY_SIZE(madera_sr_vals),
+ .list = madera_sr_vals,
+};
+
+static int madera_startup(struct snd_pcm_substream *substream,
+ struct snd_soc_dai *dai)
+{
+ struct snd_soc_codec *codec = dai->codec;
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct madera_dai_priv *dai_priv = &priv->dai[dai->id - 1];
+ unsigned int base_rate;
+
+ if (!substream->runtime)
+ return 0;
+
+ switch (dai_priv->clk) {
+ case MADERA_CLK_SYSCLK_1:
+ case MADERA_CLK_SYSCLK_2:
+ case MADERA_CLK_SYSCLK_3:
+ base_rate = priv->sysclk;
+ break;
+ case MADERA_CLK_ASYNCCLK_1:
+ case MADERA_CLK_ASYNCCLK_2:
+ base_rate = priv->asyncclk;
+ break;
+ default:
+ return 0;
+ }
+
+ if (base_rate == 0)
+ dai_priv->constraint.mask = MADERA_RATE_MASK;
+ else if (base_rate % 4000)
+ dai_priv->constraint.mask = MADERA_44K1_RATE_MASK;
+ else
+ dai_priv->constraint.mask = MADERA_48K_RATE_MASK;
+
+ return snd_pcm_hw_constraint_list(substream->runtime, 0,
+ SNDRV_PCM_HW_PARAM_RATE,
+ &dai_priv->constraint);
+}
+
+static int madera_hw_params_rate(struct snd_pcm_substream *substream,
+ struct snd_pcm_hw_params *params,
+ struct snd_soc_dai *dai)
+{
+ struct snd_soc_codec *codec = dai->codec;
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct madera_dai_priv *dai_priv = &priv->dai[dai->id - 1];
+ int base = dai->driver->base;
+ int ret = 0;
+ int i, sr_val;
+ unsigned int cur, tar;
+ bool change_rate_domain = false;
+
+ for (i = 0; i < ARRAY_SIZE(madera_sr_vals); i++)
+ if (madera_sr_vals[i] == params_rate(params))
+ break;
+
+ if (i == ARRAY_SIZE(madera_sr_vals)) {
+ madera_aif_err(dai, "Unsupported sample rate %dHz\n",
+ params_rate(params));
+ return -EINVAL;
+ }
+ sr_val = i;
+
+ if (base) {
+ switch (dai_priv->clk) {
+ case MADERA_CLK_SYSCLK_1:
+ tar = 0 << MADERA_AIF1_RATE_SHIFT;
+ break;
+ case MADERA_CLK_SYSCLK_2:
+ tar = 1 << MADERA_AIF1_RATE_SHIFT;
+ break;
+ case MADERA_CLK_SYSCLK_3:
+ tar = 2 << MADERA_AIF1_RATE_SHIFT;
+ break;
+ case MADERA_CLK_ASYNCCLK_1:
+ tar = 8 << MADERA_AIF1_RATE_SHIFT;
+ break;
+ case MADERA_CLK_ASYNCCLK_2:
+ tar = 9 << MADERA_AIF1_RATE_SHIFT;
+ break;
+ default:
+ madera_aif_err(dai, "Illegal clock id %d\n",
+ dai_priv->clk);
+ return -EINVAL;
+ }
+
+ ret = regmap_read(priv->madera->regmap,
+ base + MADERA_AIF_RATE_CTRL, &cur);
+ if (ret != 0) {
+ madera_aif_err(dai, "Failed to check rate: %d\n", ret);
+ return ret;
+ }
+
+ if ((cur & MADERA_AIF1_RATE_MASK) !=
+ (tar & MADERA_AIF1_RATE_MASK)) {
+ change_rate_domain = true;
+
+ mutex_lock(&priv->rate_lock);
+
+ if (!madera_can_change_grp_rate(priv,
+ base + MADERA_AIF_RATE_CTRL)) {
+ madera_aif_warn(dai,
+ "Cannot change rate while active\n");
+ ret = -EBUSY;
+ goto out;
+ }
+
+ /* Guard the rate change with SYSCLK cycles */
+ madera_spin_sysclk(priv);
+ }
+ }
+
+ switch (dai_priv->clk) {
+ case MADERA_CLK_SYSCLK_1:
+ snd_soc_update_bits(codec, MADERA_SAMPLE_RATE_1,
+ MADERA_SAMPLE_RATE_1_MASK, sr_val);
+ if (base)
+ snd_soc_update_bits(codec, base + MADERA_AIF_RATE_CTRL,
+ MADERA_AIF1_RATE_MASK,
+ 0 << MADERA_AIF1_RATE_SHIFT);
+ break;
+ case MADERA_CLK_SYSCLK_2:
+ snd_soc_update_bits(codec, MADERA_SAMPLE_RATE_2,
+ MADERA_SAMPLE_RATE_2_MASK, sr_val);
+ if (base)
+ snd_soc_update_bits(codec, base + MADERA_AIF_RATE_CTRL,
+ MADERA_AIF1_RATE_MASK,
+ 1 << MADERA_AIF1_RATE_SHIFT);
+ break;
+ case MADERA_CLK_SYSCLK_3:
+ snd_soc_update_bits(codec, MADERA_SAMPLE_RATE_3,
+ MADERA_SAMPLE_RATE_3_MASK, sr_val);
+ if (base)
+ snd_soc_update_bits(codec, base + MADERA_AIF_RATE_CTRL,
+ MADERA_AIF1_RATE_MASK,
+ 2 << MADERA_AIF1_RATE_SHIFT);
+ break;
+ case MADERA_CLK_ASYNCCLK_1:
+ snd_soc_update_bits(codec, MADERA_ASYNC_SAMPLE_RATE_1,
+ MADERA_ASYNC_SAMPLE_RATE_1_MASK, sr_val);
+ if (base)
+ snd_soc_update_bits(codec, base + MADERA_AIF_RATE_CTRL,
+ MADERA_AIF1_RATE_MASK,
+ 8 << MADERA_AIF1_RATE_SHIFT);
+ break;
+ case MADERA_CLK_ASYNCCLK_2:
+ snd_soc_update_bits(codec, MADERA_ASYNC_SAMPLE_RATE_2,
+ MADERA_ASYNC_SAMPLE_RATE_2_MASK, sr_val);
+ if (base)
+ snd_soc_update_bits(codec, base + MADERA_AIF_RATE_CTRL,
+ MADERA_AIF1_RATE_MASK,
+ 9 << MADERA_AIF1_RATE_SHIFT);
+ break;
+ default:
+ madera_aif_err(dai, "Invalid clock %d\n", dai_priv->clk);
+ ret = -EINVAL;
+ }
+
+out:
+ if (change_rate_domain) {
+ madera_spin_sysclk(priv);
+ mutex_unlock(&priv->rate_lock);
+ }
+
+ return ret;
+}
+
+static bool madera_aif_cfg_changed(struct snd_soc_codec *codec,
+ int base, int bclk, int lrclk, int frame)
+{
+ int val;
+
+ val = snd_soc_read(codec, base + MADERA_AIF_BCLK_CTRL);
+ if (bclk != (val & MADERA_AIF1_BCLK_FREQ_MASK))
+ return true;
+
+ val = snd_soc_read(codec, base + MADERA_AIF_RX_BCLK_RATE);
+ if (lrclk != (val & MADERA_AIF1RX_BCPF_MASK))
+ return true;
+
+ val = snd_soc_read(codec, base + MADERA_AIF_FRAME_CTRL_1);
+ if (frame != (val & (MADERA_AIF1TX_WL_MASK |
+ MADERA_AIF1TX_SLOT_LEN_MASK)))
+ return true;
+
+ return false;
+}
+
+static int madera_hw_params(struct snd_pcm_substream *substream,
+ struct snd_pcm_hw_params *params,
+ struct snd_soc_dai *dai)
+{
+ struct snd_soc_codec *codec = dai->codec;
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct madera *madera = priv->madera;
+ int base = dai->driver->base;
+ const int *rates;
+ int i, ret, val;
+ unsigned int channels = params_channels(params);
+ unsigned int chan_limit =
+ madera->pdata.codec.max_channels_clocked[dai->id - 1];
+ int tdm_width = priv->tdm_width[dai->id - 1];
+ int tdm_slots = priv->tdm_slots[dai->id - 1];
+ int bclk, lrclk, wl, frame, bclk_target, num_rates;
+ bool reconfig;
+ unsigned int aif_tx_state = 0, aif_rx_state = 0;
+
+ if (params_rate(params) % 4000) {
+ rates = &madera_44k1_bclk_rates[0];
+ num_rates = ARRAY_SIZE(madera_44k1_bclk_rates);
+ } else {
+ rates = &madera_48k_bclk_rates[0];
+ num_rates = ARRAY_SIZE(madera_48k_bclk_rates);
+ }
+
+ wl = snd_pcm_format_width(params_format(params));
+
+ if (tdm_slots) {
+ madera_aif_dbg(dai, "Configuring for %d %d bit TDM slots\n",
+ tdm_slots, tdm_width);
+ bclk_target = tdm_slots * tdm_width * params_rate(params);
+ channels = tdm_slots;
+ } else {
+ bclk_target = snd_soc_params_to_bclk(params);
+ tdm_width = wl;
+ }
+
+ if (chan_limit && chan_limit < channels) {
+ madera_aif_dbg(dai, "Limiting to %d channels\n", chan_limit);
+ bclk_target /= channels;
+ bclk_target *= chan_limit;
+ }
+
+ /* Force multiple of 2 channels for I2S mode */
+ val = snd_soc_read(codec, base + MADERA_AIF_FORMAT);
+ val &= MADERA_AIF1_FMT_MASK;
+ if ((channels & 1) && (val == MADERA_FMT_I2S_MODE)) {
+ madera_aif_dbg(dai, "Forcing stereo mode\n");
+ bclk_target /= channels;
+ bclk_target *= channels + 1;
+ }
+
+ for (i = 0; i < num_rates; i++) {
+ if (rates[i] >= bclk_target &&
+ rates[i] % params_rate(params) == 0) {
+ bclk = i;
+ break;
+ }
+ }
+
+ if (i == num_rates) {
+ madera_aif_err(dai, "Unsupported sample rate %dHz\n",
+ params_rate(params));
+ return -EINVAL;
+ }
+
+ lrclk = rates[bclk] / params_rate(params);
+
+ madera_aif_dbg(dai, "BCLK %dHz LRCLK %dHz\n",
+ rates[bclk], rates[bclk] / lrclk);
+
+ frame = wl << MADERA_AIF1TX_WL_SHIFT | tdm_width;
+
+ reconfig = madera_aif_cfg_changed(codec, base, bclk, lrclk, frame);
+
+ if (reconfig) {
+ /* Save AIF TX/RX state */
+ aif_tx_state = snd_soc_read(codec,
+ base + MADERA_AIF_TX_ENABLES);
+ aif_rx_state = snd_soc_read(codec,
+ base + MADERA_AIF_RX_ENABLES);
+ /* Disable AIF TX/RX before reconfiguring it */
+ regmap_update_bits(madera->regmap,
+ base + MADERA_AIF_TX_ENABLES, 0xff, 0x0);
+ regmap_update_bits(madera->regmap,
+ base + MADERA_AIF_RX_ENABLES, 0xff, 0x0);
+ }
+
+ ret = madera_hw_params_rate(substream, params, dai);
+ if (ret != 0)
+ goto restore_aif;
+
+ if (reconfig) {
+ regmap_update_bits(madera->regmap,
+ base + MADERA_AIF_BCLK_CTRL,
+ MADERA_AIF1_BCLK_FREQ_MASK, bclk);
+ regmap_update_bits(madera->regmap,
+ base + MADERA_AIF_RX_BCLK_RATE,
+ MADERA_AIF1RX_BCPF_MASK, lrclk);
+ regmap_update_bits(madera->regmap,
+ base + MADERA_AIF_FRAME_CTRL_1,
+ MADERA_AIF1TX_WL_MASK |
+ MADERA_AIF1TX_SLOT_LEN_MASK, frame);
+ regmap_update_bits(madera->regmap,
+ base + MADERA_AIF_FRAME_CTRL_2,
+ MADERA_AIF1RX_WL_MASK |
+ MADERA_AIF1RX_SLOT_LEN_MASK, frame);
+ }
+
+restore_aif:
+ if (reconfig) {
+ /* Restore AIF TX/RX state */
+ regmap_update_bits(madera->regmap,
+ base + MADERA_AIF_TX_ENABLES,
+ 0xff, aif_tx_state);
+ regmap_update_bits(madera->regmap,
+ base + MADERA_AIF_RX_ENABLES,
+ 0xff, aif_rx_state);
+ }
+
+ return ret;
+}
+
+static int madera_is_syncclk(int clk_id)
+{
+ switch (clk_id) {
+ case MADERA_CLK_SYSCLK_1:
+ case MADERA_CLK_SYSCLK_2:
+ case MADERA_CLK_SYSCLK_3:
+ return 1;
+ case MADERA_CLK_ASYNCCLK_1:
+ case MADERA_CLK_ASYNCCLK_2:
+ return 0;
+ default:
+ return -EINVAL;
+ }
+}
+
+static int madera_dai_set_sysclk(struct snd_soc_dai *dai,
+ int clk_id, unsigned int freq, int dir)
+{
+ struct snd_soc_codec *codec = dai->codec;
+ struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct madera_dai_priv *dai_priv = &priv->dai[dai->id - 1];
+ struct snd_soc_dapm_route routes[2];
+ int is_sync;
+
+ is_sync = madera_is_syncclk(clk_id);
+ if (is_sync < 0) {
+ dev_err(codec->dev, "Illegal DAI clock id %d\n", clk_id);
+ return is_sync;
+ }
+
+ if (is_sync == madera_is_syncclk(dai_priv->clk))
+ return 0;
+
+ if (dai->active) {
+ dev_err(codec->dev, "Can't change clock on active DAI %d\n",
+ dai->id);
+ return -EBUSY;
+ }
+
+ dev_dbg(codec->dev, "Setting AIF%d to %s\n", dai->id,
+ is_sync ? "SYSCLK" : "ASYNCCLK");
+
+ /*
+ * A connection to SYSCLK is always required, we only add and remove
+ * a connection to ASYNCCLK
+ */
+ memset(&routes, 0, sizeof(routes));
+ routes[0].sink = dai->driver->capture.stream_name;
+ routes[1].sink = dai->driver->playback.stream_name;
+ routes[0].source = "ASYNCCLK";
+ routes[1].source = "ASYNCCLK";
+
+ if (is_sync)
+ snd_soc_dapm_del_routes(dapm, routes, ARRAY_SIZE(routes));
+ else
+ snd_soc_dapm_add_routes(dapm, routes, ARRAY_SIZE(routes));
+
+ dai_priv->clk = clk_id;
+
+ return snd_soc_dapm_sync(dapm);
+}
+
+static int madera_set_tristate(struct snd_soc_dai *dai, int tristate)
+{
+ struct snd_soc_codec *codec = dai->codec;
+ int base = dai->driver->base;
+ unsigned int reg;
+ int ret;
+
+ if (tristate)
+ reg = MADERA_AIF1_TRI;
+ else
+ reg = 0;
+
+ ret = snd_soc_update_bits(codec, base + MADERA_AIF_RATE_CTRL,
+ MADERA_AIF1_TRI, reg);
+ if (ret < 0)
+ return ret;
+ else
+ return 0;
+}
+
+static void madera_set_channels_to_mask(struct snd_soc_dai *dai,
+ unsigned int base,
+ int channels, unsigned int mask)
+{
+ struct snd_soc_codec *codec = dai->codec;
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ struct madera *madera = priv->madera;
+ int slot, i;
+
+ for (i = 0; i < channels; ++i) {
+ slot = ffs(mask) - 1;
+ if (slot < 0)
+ return;
+
+ regmap_write(madera->regmap, base + i, slot);
+
+ mask &= ~(1 << slot);
+ }
+
+ if (mask)
+ madera_aif_warn(dai, "Too many channels in TDM mask\n");
+}
+
+static int madera_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
+ unsigned int rx_mask, int slots, int slot_width)
+{
+ struct snd_soc_codec *codec = dai->codec;
+ struct madera_priv *priv = snd_soc_codec_get_drvdata(codec);
+ int base = dai->driver->base;
+ int rx_max_chan = dai->driver->playback.channels_max;
+ int tx_max_chan = dai->driver->capture.channels_max;
+
+ /* Only support TDM for the physical AIFs */
+ if (dai->id > MADERA_MAX_AIF)
+ return -ENOTSUPP;
+
+ if (slots == 0) {
+ tx_mask = (1 << tx_max_chan) - 1;
+ rx_mask = (1 << rx_max_chan) - 1;
+ }
+
+ madera_set_channels_to_mask(dai, base + MADERA_AIF_FRAME_CTRL_3,
+ tx_max_chan, tx_mask);
+ madera_set_channels_to_mask(dai, base + MADERA_AIF_FRAME_CTRL_11,
+ rx_max_chan, rx_mask);
+
+ priv->tdm_width[dai->id - 1] = slot_width;
+ priv->tdm_slots[dai->id - 1] = slots;
+
+ return 0;
+}
+
+const struct snd_soc_dai_ops madera_dai_ops = {
+ .startup = madera_startup,
+ .set_fmt = madera_set_fmt,
+ .set_tdm_slot = madera_set_tdm_slot,
+ .hw_params = madera_hw_params,
+ .set_sysclk = madera_dai_set_sysclk,
+ .set_tristate = madera_set_tristate,
+};
+EXPORT_SYMBOL_GPL(madera_dai_ops);
+
+const struct snd_soc_dai_ops madera_simple_dai_ops = {
+ .startup = madera_startup,
+ .hw_params = madera_hw_params_rate,
+ .set_sysclk = madera_dai_set_sysclk,
+};
+EXPORT_SYMBOL_GPL(madera_simple_dai_ops);
+
+int madera_init_dai(struct madera_priv *priv, int id)
+{
+ struct madera_dai_priv *dai_priv = &priv->dai[id];
+
+ dai_priv->clk = MADERA_CLK_SYSCLK_1;
+ dai_priv->constraint = madera_constraint;
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_init_dai);
+
+static const struct {
+ unsigned int min;
+ unsigned int max;
+ u16 fratio;
+ int ratio;
+} fll_sync_fratios[] = {
+ { 0, 64000, 4, 16 },
+ { 64000, 128000, 3, 8 },
+ { 128000, 256000, 2, 4 },
+ { 256000, 1000000, 1, 2 },
+ { 1000000, 13500000, 0, 1 },
+};
+
+static const unsigned int pseudo_fref_max[MADERA_FLL_MAX_FRATIO] = {
+ 13500000,
+ 6144000,
+ 6144000,
+ 3072000,
+ 3072000,
+ 2822400,
+ 2822400,
+ 1536000,
+ 1536000,
+ 1536000,
+ 1536000,
+ 1536000,
+ 1536000,
+ 1536000,
+ 1536000,
+ 768000,
+};
+
+struct madera_fll_gains {
+ unsigned int min;
+ unsigned int max;
+ int gain; /* main gain */
+ int alt_gain; /* alternate integer gain */
+};
+
+static const struct madera_fll_gains madera_fll_sync_gains[] = {
+ { 0, 256000, 0, -1 },
+ { 256000, 1000000, 2, -1 },
+ { 1000000, 13500000, 4, -1 },
+};
+
+static const struct madera_fll_gains madera_fll_main_gains[] = {
+ { 0, 100000, 0, 2 },
+ { 100000, 375000, 2, 2 },
+ { 375000, 768000, 3, 2 },
+ { 768001, 1500000, 3, 3 },
+ { 1500000, 6000000, 4, 3 },
+ { 6000000, 13500000, 5, 3 },
+};
+
+static int madera_find_sync_fratio(unsigned int fref, int *fratio)
+{
+ int i;
+
+ for (i = 0; i < ARRAY_SIZE(fll_sync_fratios); i++) {
+ if (fll_sync_fratios[i].min <= fref &&
+ fref <= fll_sync_fratios[i].max) {
+ if (fratio)
+ *fratio = fll_sync_fratios[i].fratio;
+
+ return fll_sync_fratios[i].ratio;
+ }
+ }
+
+ return -EINVAL;
+}
+
+static int madera_find_main_fratio(unsigned int fref, unsigned int fout,
+ int *fratio)
+{
+ int ratio = 1;
+
+ while ((fout / (ratio * fref)) > MADERA_FLL_MAX_N)
+ ratio++;
+
+ if (fratio)
+ *fratio = ratio - 1;
+
+ return ratio;
+}
+
+static int madera_find_fratio(struct madera_fll *fll, unsigned int fref,
+ bool sync, int *fratio)
+{
+ switch (fll->madera->type) {
+ case CS47L35:
+ switch (fll->madera->rev) {
+ case 0:
+ /* rev A0 uses sync calculation for both loops */
+ return madera_find_sync_fratio(fref, fratio);
+ default:
+ if (sync)
+ return madera_find_sync_fratio(fref, fratio);
+ else
+ return madera_find_main_fratio(fref,
+ fll->fout,
+ fratio);
+ }
+ break;
+ case CS47L85:
+ case WM1840:
+ /* these use the same calculation for main and sync loops */
+ return madera_find_sync_fratio(fref, fratio);
+ default:
+ if (sync)
+ return madera_find_sync_fratio(fref, fratio);
+ else
+ return madera_find_main_fratio(fref, fll->fout, fratio);
+ }
+}
+
+static int madera_calc_fratio(struct madera_fll *fll,
+ struct madera_fll_cfg *cfg,
+ unsigned int fref, bool sync)
+{
+ int init_ratio, ratio;
+ int refdiv, div;
+
+ /* fref must be <=13.5MHz, find initial refdiv */
+ div = 1;
+ cfg->refdiv = 0;
+ while (fref > MADERA_FLL_MAX_FREF) {
+ div *= 2;
+ fref /= 2;
+ cfg->refdiv++;
+
+ if (div > MADERA_FLL_MAX_REFDIV)
+ return -EINVAL;
+ }
+
+ /* Find an appropriate FLL_FRATIO */
+ init_ratio = madera_find_fratio(fll, fref, sync, &cfg->fratio);
+ if (init_ratio < 0) {
+ madera_fll_err(fll, "Unable to find FRATIO for fref=%uHz\n",
+ fref);
+ return init_ratio;
+ }
+
+ if (!sync)
+ cfg->fratio = init_ratio - 1;
+
+ switch (fll->madera->type) {
+ case CS47L35:
+ switch (fll->madera->rev) {
+ case 0:
+ if (sync)
+ return init_ratio;
+ break;
+ default:
+ return init_ratio;
+ }
+ break;
+ case CS47L85:
+ case WM1840:
+ if (sync)
+ return init_ratio;
+ break;
+ default:
+ return init_ratio;
+ }
+
+ /*
+ * For CS47L35 rev A0, CS47L85 and WM1840 adjust FRATIO/refdiv to avoid
+ * integer mode if possible
+ */
+ refdiv = cfg->refdiv;
+
+ while (div <= MADERA_FLL_MAX_REFDIV) {
+ /*
+ * start from init_ratio because this may already give a
+ * fractional N.K
+ */
+ for (ratio = init_ratio; ratio > 0; ratio--) {
+ if (fll->fout % (ratio * fref)) {
+ cfg->refdiv = refdiv;
+ cfg->fratio = ratio - 1;
+ return ratio;
+ }
+ }
+
+ for (ratio = init_ratio + 1; ratio <= MADERA_FLL_MAX_FRATIO;
+ ratio++) {
+ if ((MADERA_FLL_VCO_CORNER / 2) /
+ (MADERA_FLL_VCO_MULT * ratio) < fref)
+ break;
+
+ if (fref > pseudo_fref_max[ratio - 1])
+ break;
+
+ if (fll->fout % (ratio * fref)) {
+ cfg->refdiv = refdiv;
+ cfg->fratio = ratio - 1;
+ return ratio;
+ }
+ }
+
+ div *= 2;
+ fref /= 2;
+ refdiv++;
+ init_ratio = madera_find_fratio(fll, fref, sync, NULL);
+ }
+
+ madera_fll_warn(fll, "Falling back to integer mode operation\n");
+
+ return cfg->fratio + 1;
+}
+
+static int madera_find_fll_gain(struct madera_fll *fll,
+ struct madera_fll_cfg *cfg,
+ unsigned int fref,
+ const struct madera_fll_gains *gains,
+ int n_gains)
+{
+ int i;
+
+ for (i = 0; i < n_gains; i++) {
+ if (gains[i].min <= fref && fref <= gains[i].max) {
+ cfg->gain = gains[i].gain;
+ cfg->alt_gain = gains[i].alt_gain;
+ return 0;
+ }
+ }
+
+ madera_fll_err(fll, "Unable to find gain for fref=%uHz\n", fref);
+
+ return -EINVAL;
+}
+
+static int madera_calc_fll(struct madera_fll *fll,
+ struct madera_fll_cfg *cfg,
+ unsigned int fref, bool sync)
+{
+ unsigned int gcd_fll;
+ const struct madera_fll_gains *gains;
+ int n_gains;
+ int ratio, ret;
+
+ madera_fll_dbg(fll, "fref=%u Fout=%u fvco=%u\n",
+ fref, fll->fout, fll->fout * MADERA_FLL_VCO_MULT);
+
+ /* Find an appropriate FLL_FRATIO and refdiv */
+ ratio = madera_calc_fratio(fll, cfg, fref, sync);
+ if (ratio < 0)
+ return ratio;
+
+ /* Apply the division for our remaining calculations */
+ fref = fref / (1 << cfg->refdiv);
+
+ cfg->n = fll->fout / (ratio * fref);
+
+ if (fll->fout % (ratio * fref)) {
+ gcd_fll = gcd(fll->fout, ratio * fref);
+ madera_fll_dbg(fll, "GCD=%u\n", gcd_fll);
+
+ cfg->theta = (fll->fout - (cfg->n * ratio * fref))
+ / gcd_fll;
+ cfg->lambda = (ratio * fref) / gcd_fll;
+ } else {
+ cfg->theta = 0;
+ cfg->lambda = 0;
+ }
+
+ /*
+ * Round down to 16bit range with cost of accuracy lost.
+ * Denominator must be bigger than numerator so we only
+ * take care of it.
+ */
+ while (cfg->lambda >= (1 << 16)) {
+ cfg->theta >>= 1;
+ cfg->lambda >>= 1;
+ }
+
+ switch (fll->madera->type) {
+ case CS47L35:
+ switch (fll->madera->rev) {
+ case 0:
+ /* Rev A0 uses the sync gains for both loops */
+ gains = madera_fll_sync_gains;
+ n_gains = ARRAY_SIZE(madera_fll_sync_gains);
+ break;
+ default:
+ if (sync) {
+ gains = madera_fll_sync_gains;
+ n_gains = ARRAY_SIZE(madera_fll_sync_gains);
+ } else {
+ gains = madera_fll_main_gains;
+ n_gains = ARRAY_SIZE(madera_fll_main_gains);
+ }
+ break;
+ }
+ break;
+ case CS47L85:
+ case WM1840:
+ /* These use the sync gains for both loops */
+ gains = madera_fll_sync_gains;
+ n_gains = ARRAY_SIZE(madera_fll_sync_gains);
+ break;
+ default:
+ if (sync) {
+ gains = madera_fll_sync_gains;
+ n_gains = ARRAY_SIZE(madera_fll_sync_gains);
+ } else {
+ gains = madera_fll_main_gains;
+ n_gains = ARRAY_SIZE(madera_fll_main_gains);
+ }
+ break;
+ }
+
+ ret = madera_find_fll_gain(fll, cfg, fref, gains, n_gains);
+ if (ret)
+ return ret;
+
+ madera_fll_dbg(fll, "N=%d THETA=%d LAMBDA=%d\n",
+ cfg->n, cfg->theta, cfg->lambda);
+ madera_fll_dbg(fll, "FRATIO=0x%x(%d) REFCLK_DIV=0x%x(%d)\n",
+ cfg->fratio, ratio, cfg->refdiv, 1 << cfg->refdiv);
+ madera_fll_dbg(fll, "GAIN=0x%x(%d)\n", cfg->gain, 1 << cfg->gain);
+
+ return 0;
+
+}
+
+static bool madera_write_fll(struct madera *madera, unsigned int base,
+ struct madera_fll_cfg *cfg, int source,
+ bool sync, int gain)
+{
+ bool change, fll_change;
+
+ fll_change = false;
+ regmap_update_bits_check(madera->regmap,
+ base + MADERA_FLL_CONTROL_3_OFFS,
+ MADERA_FLL1_THETA_MASK,
+ cfg->theta, &change);
+ fll_change |= change;
+ regmap_update_bits_check(madera->regmap,
+ base + MADERA_FLL_CONTROL_4_OFFS,
+ MADERA_FLL1_LAMBDA_MASK,
+ cfg->lambda, &change);
+ fll_change |= change;
+ regmap_update_bits_check(madera->regmap,
+ base + MADERA_FLL_CONTROL_5_OFFS,
+ MADERA_FLL1_FRATIO_MASK,
+ cfg->fratio << MADERA_FLL1_FRATIO_SHIFT,
+ &change);
+ fll_change |= change;
+ regmap_update_bits_check(madera->regmap,
+ base + MADERA_FLL_CONTROL_6_OFFS,
+ MADERA_FLL1_REFCLK_DIV_MASK |
+ MADERA_FLL1_REFCLK_SRC_MASK,
+ cfg->refdiv << MADERA_FLL1_REFCLK_DIV_SHIFT |
+ source << MADERA_FLL1_REFCLK_SRC_SHIFT,
+ &change);
+ fll_change |= change;
+
+ if (sync) {
+ regmap_update_bits_check(madera->regmap,
+ base + MADERA_FLL_SYNCHRONISER_7_OFFS,
+ MADERA_FLL1_GAIN_MASK,
+ gain << MADERA_FLL1_GAIN_SHIFT,
+ &change);
+ fll_change |= change;
+ } else {
+ regmap_update_bits_check(madera->regmap,
+ base + MADERA_FLL_CONTROL_7_OFFS,
+ MADERA_FLL1_GAIN_MASK,
+ gain << MADERA_FLL1_GAIN_SHIFT,
+ &change);
+ fll_change |= change;
+ }
+
+ regmap_update_bits_check(madera->regmap,
+ base + MADERA_FLL_CONTROL_2_OFFS,
+ MADERA_FLL1_CTRL_UPD | MADERA_FLL1_N_MASK,
+ MADERA_FLL1_CTRL_UPD | cfg->n, &change);
+ fll_change |= change;
+
+ return fll_change;
+}
+
+static int madera_is_enabled_fll(struct madera_fll *fll, int base)
+{
+ struct madera *madera = fll->madera;
+ unsigned int reg;
+ int ret;
+
+ ret = regmap_read(madera->regmap,
+ base + MADERA_FLL_CONTROL_1_OFFS, ®);
+ if (ret != 0) {
+ madera_fll_err(fll, "Failed to read current state: %d\n", ret);
+ return ret;
+ }
+
+ return reg & MADERA_FLL1_ENA;
+}
+
+static int madera_wait_for_fll(struct madera_fll *fll, bool requested)
+{
+ struct madera *madera = fll->madera;
+ unsigned int val = 0;
+ bool status;
+ int i;
+
+ madera_fll_dbg(fll, "Waiting for FLL...\n");
+
+ for (i = 0; i < 30; i++) {
+ regmap_read(madera->regmap, MADERA_IRQ1_RAW_STATUS_2, &val);
+ status = val & (MADERA_FLL1_LOCK_STS1 << (fll->id - 1));
+ if (status == requested)
+ return 0;
+
+ switch (i) {
+ case 0 ... 5:
+ usleep_range(75, 125);
+ break;
+ case 11 ... 20:
+ usleep_range(750, 1250);
+ break;
+ default:
+ msleep(20);
+ break;
+ }
+ }
+
+ madera_fll_warn(fll, "Timed out waiting for lock\n");
+
+ return -ETIMEDOUT;
+}
+
+static bool madera_set_fll_phase_integrator(struct madera_fll *fll,
+ struct madera_fll_cfg *ref_cfg,
+ bool sync)
+{
+ unsigned int val;
+ bool reg_change;
+
+ if (!sync && (ref_cfg->theta == 0))
+ val = (1 << MADERA_FLL1_PHASE_ENA_SHIFT) |
+ (2 << MADERA_FLL1_PHASE_GAIN_SHIFT);
+ else
+ val = 2 << MADERA_FLL1_PHASE_GAIN_SHIFT;
+
+ regmap_update_bits_check(fll->madera->regmap,
+ fll->base + MADERA_FLL_EFS_2_OFFS,
+ MADERA_FLL1_PHASE_ENA_MASK |
+ MADERA_FLL1_PHASE_GAIN_MASK,
+ val,
+ ®_change);
+
+ return reg_change;
+}
+
+static void madera_disable_fll(struct madera_fll *fll)
+{
+ struct madera *madera = fll->madera;
+ unsigned int sync_reg_base;
+ bool change;
+
+ switch (madera->type) {
+ case CS47L35:
+ sync_reg_base = fll->base + CS47L35_FLL_SYNCHRONISER_OFFS;
+ break;
+ default:
+ sync_reg_base = fll->base + MADERA_FLL_SYNCHRONISER_OFFS;
+ break;
+ }
+
+ madera_fll_dbg(fll, "Disabling FLL\n");
+
+ regmap_update_bits(madera->regmap,
+ fll->base + MADERA_FLL_CONTROL_1_OFFS,
+ MADERA_FLL1_FREERUN, MADERA_FLL1_FREERUN);
+ regmap_update_bits_check(madera->regmap,
+ fll->base + MADERA_FLL_CONTROL_1_OFFS,
+ MADERA_FLL1_ENA, 0, &change);
+ regmap_update_bits(madera->regmap,
+ sync_reg_base + MADERA_FLL_SYNCHRONISER_1_OFFS,
+ MADERA_FLL1_SYNC_ENA, 0);
+ regmap_update_bits(madera->regmap,
+ fll->base + MADERA_FLL_CONTROL_1_OFFS,
+ MADERA_FLL1_FREERUN, 0);
+
+ madera_wait_for_fll(fll, false);
+
+ if (change)
+ pm_runtime_put_autosuspend(madera->dev);
+}
+
+static int madera_enable_fll(struct madera_fll *fll)
+{
+ struct madera *madera = fll->madera;
+ bool have_sync = false;
+ int already_enabled = madera_is_enabled_fll(fll, fll->base);
+ int sync_enabled;
+ struct madera_fll_cfg cfg;
+ unsigned int sync_reg_base;
+ int gain, ret;
+ bool fll_change = false;
+
+ if (already_enabled < 0)
+ return already_enabled; /* error getting current state */
+
+ if ((fll->ref_src < 0) || (fll->ref_freq == 0)) {
+ madera_fll_err(fll, "No REFCLK\n");
+ ret = -EINVAL;
+ goto err;
+ }
+
+ madera_fll_dbg(fll, "Enabling FLL, initially %s\n",
+ already_enabled ? "enabled" : "disabled");
+
+ if ((fll->fout < MADERA_FLL_MIN_FOUT) ||
+ (fll->fout > MADERA_FLL_MAX_FOUT)) {
+ madera_fll_err(fll, "invalid fout %uHz\n", fll->fout);
+ ret = -EINVAL;
+ goto err;
+ }
+
+ switch (madera->type) {
+ case CS47L35:
+ sync_reg_base = fll->base + CS47L35_FLL_SYNCHRONISER_OFFS;
+ break;
+ default:
+ sync_reg_base = fll->base + MADERA_FLL_SYNCHRONISER_OFFS;
+ break;
+ }
+
+ sync_enabled = madera_is_enabled_fll(fll, sync_reg_base);
+ if (sync_enabled < 0)
+ return sync_enabled;
+
+ if (already_enabled) {
+ /* Facilitate smooth refclk across the transition */
+ regmap_update_bits(fll->madera->regmap,
+ fll->base + MADERA_FLL_CONTROL_1_OFFS,
+ MADERA_FLL1_FREERUN,
+ MADERA_FLL1_FREERUN);
+ udelay(32);
+ regmap_update_bits(fll->madera->regmap,
+ fll->base + MADERA_FLL_CONTROL_7_OFFS,
+ MADERA_FLL1_GAIN_MASK, 0);
+ }
+
+ /* Apply SYNCCLK setting */
+ if (fll->sync_src >= 0) {
+ ret = madera_calc_fll(fll, &cfg, fll->sync_freq, true);
+ if (ret < 0)
+ goto err;
+
+ fll_change |= madera_write_fll(madera, sync_reg_base,
+ &cfg, fll->sync_src,
+ true, cfg.gain);
+ have_sync = true;
+ }
+
+ if (already_enabled && !!sync_enabled != have_sync)
+ madera_fll_warn(fll, "Synchroniser changed on active FLL\n");
+
+ /* Apply REFCLK setting */
+ ret = madera_calc_fll(fll, &cfg, fll->ref_freq, false);
+ if (ret < 0)
+ goto err;
+
+ /* Ref path hardcodes lambda to 65536 when sync is on */
+ if (have_sync && cfg.lambda)
+ cfg.theta = (cfg.theta * (1 << 16)) / cfg.lambda;
+
+ switch (fll->madera->type) {
+ case CS47L35:
+ switch (fll->madera->rev) {
+ case 0:
+ break;
+ default:
+ fll_change |=
+ madera_set_fll_phase_integrator(fll, &cfg,
+ have_sync);
+ break;
+ }
+ gain = cfg.gain;
+ break;
+ case CS47L85:
+ case WM1840:
+ gain = cfg.gain;
+ break;
+ default:
+ fll_change |= madera_set_fll_phase_integrator(fll, &cfg,
+ have_sync);
+ if (!have_sync && (cfg.theta == 0))
+ gain = cfg.alt_gain;
+ else
+ gain = cfg.gain;
+ break;
+ }
+
+ fll_change |= madera_write_fll(madera, fll->base,
+ &cfg, fll->ref_src,
+ false, gain);
+
+ /*
+ * Increase the bandwidth if we're not using a low frequency
+ * sync source.
+ */
+ if (have_sync && fll->sync_freq > 100000)
+ regmap_update_bits(madera->regmap,
+ sync_reg_base + MADERA_FLL_SYNCHRONISER_7_OFFS,
+ MADERA_FLL1_SYNC_DFSAT_MASK, 0);
+ else
+ regmap_update_bits(madera->regmap,
+ sync_reg_base + MADERA_FLL_SYNCHRONISER_7_OFFS,
+ MADERA_FLL1_SYNC_DFSAT_MASK,
+ MADERA_FLL1_SYNC_DFSAT);
+
+ if (!already_enabled)
+ pm_runtime_get_sync(madera->dev);
+
+ if (have_sync)
+ regmap_update_bits(madera->regmap,
+ sync_reg_base + MADERA_FLL_SYNCHRONISER_1_OFFS,
+ MADERA_FLL1_SYNC_ENA,
+ MADERA_FLL1_SYNC_ENA);
+ regmap_update_bits(madera->regmap,
+ fll->base + MADERA_FLL_CONTROL_1_OFFS,
+ MADERA_FLL1_ENA, MADERA_FLL1_ENA);
+
+ if (already_enabled)
+ regmap_update_bits(madera->regmap,
+ fll->base + MADERA_FLL_CONTROL_1_OFFS,
+ MADERA_FLL1_FREERUN, 0);
+
+ if (fll_change || !already_enabled)
+ madera_wait_for_fll(fll, true);
+
+ return 0;
+
+err:
+ /* In case of error don't leave the FLL running with an old config */
+ madera_disable_fll(fll);
+
+ return ret;
+}
+
+static int madera_apply_fll(struct madera_fll *fll)
+{
+ if (fll->fout) {
+ return madera_enable_fll(fll);
+ } else {
+ madera_disable_fll(fll);
+ return 0;
+ }
+}
+
+int madera_set_fll_syncclk(struct madera_fll *fll, int source,
+ unsigned int fref, unsigned int fout)
+{
+ /*
+ * fout is ignored, since the synchronizer is an optional extra
+ * constraint on the Fout generated from REFCLK, so the Fout is
+ * set when configuring REFCLK
+ */
+
+ if (fll->sync_src == source && fll->sync_freq == fref)
+ return 0;
+
+ fll->sync_src = source;
+ fll->sync_freq = fref;
+
+ return madera_apply_fll(fll);
+}
+EXPORT_SYMBOL_GPL(madera_set_fll_syncclk);
+
+int madera_set_fll_refclk(struct madera_fll *fll, int source,
+ unsigned int fref, unsigned int fout)
+{
+ int ret;
+
+ if (fll->ref_src == source &&
+ fll->ref_freq == fref && fll->fout == fout)
+ return 0;
+
+ /*
+ * Changes of fout on an enabled FLL aren't allowed except when
+ * setting fout==0 to disable the FLL
+ */
+ if (fout && (fout != fll->fout)) {
+ ret = madera_is_enabled_fll(fll, fll->base);
+ if (ret < 0)
+ return ret;
+
+ if (ret) {
+ madera_fll_err(fll, "Can't change Fout on active FLL\n");
+ return -EBUSY;
+ }
+ }
+
+ fll->ref_src = source;
+ fll->ref_freq = fref;
+ fll->fout = fout;
+
+ return madera_apply_fll(fll);
+}
+EXPORT_SYMBOL_GPL(madera_set_fll_refclk);
+
+int madera_init_fll(struct madera *madera, int id, int base,
+ struct madera_fll *fll)
+{
+ fll->id = id;
+ fll->base = base;
+ fll->madera = madera;
+ fll->ref_src = MADERA_FLL_SRC_NONE;
+ fll->sync_src = MADERA_FLL_SRC_NONE;
+
+ regmap_update_bits(madera->regmap,
+ fll->base + MADERA_FLL_CONTROL_1_OFFS,
+ MADERA_FLL1_FREERUN, 0);
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_init_fll);
+
+static const struct reg_sequence madera_fll_ao_32K_49M_patch[] = {
+ { MADERA_FLLAO_CONTROL_2, 0x02EE },
+ { MADERA_FLLAO_CONTROL_3, 0x0000 },
+ { MADERA_FLLAO_CONTROL_4, 0x0001 },
+ { MADERA_FLLAO_CONTROL_5, 0x0002 },
+ { MADERA_FLLAO_CONTROL_6, 0x8001 },
+ { MADERA_FLLAO_CONTROL_7, 0x0004 },
+ { MADERA_FLLAO_CONTROL_8, 0x0077 },
+ { MADERA_FLLAO_CONTROL_10, 0x06D8 },
+ { MADERA_FLLAO_CONTROL_11, 0x0085 },
+ { MADERA_FLLAO_CONTROL_2, 0x82EE },
+};
+
+static const struct reg_sequence madera_fll_ao_32K_45M_patch[] = {
+ { MADERA_FLLAO_CONTROL_2, 0x02B1 },
+ { MADERA_FLLAO_CONTROL_3, 0x0001 },
+ { MADERA_FLLAO_CONTROL_4, 0x0010 },
+ { MADERA_FLLAO_CONTROL_5, 0x0002 },
+ { MADERA_FLLAO_CONTROL_6, 0x8001 },
+ { MADERA_FLLAO_CONTROL_7, 0x0004 },
+ { MADERA_FLLAO_CONTROL_8, 0x0077 },
+ { MADERA_FLLAO_CONTROL_10, 0x06D8 },
+ { MADERA_FLLAO_CONTROL_11, 0x0005 },
+ { MADERA_FLLAO_CONTROL_2, 0x82B1 },
+};
+
+struct madera_fllao_patch {
+ unsigned int fin;
+ unsigned int fout;
+ const struct reg_sequence *patch;
+ unsigned int patch_size;
+};
+
+static const struct madera_fllao_patch madera_fllao_settings[] = {
+ {
+ .fin = 32768,
+ .fout = 49152000,
+ .patch = madera_fll_ao_32K_49M_patch,
+ .patch_size = ARRAY_SIZE(madera_fll_ao_32K_49M_patch),
+
+ },
+ {
+ .fin = 32768,
+ .fout = 45158400,
+ .patch = madera_fll_ao_32K_45M_patch,
+ .patch_size = ARRAY_SIZE(madera_fll_ao_32K_45M_patch),
+ },
+};
+
+static int madera_enable_fll_ao(struct madera_fll *fll,
+ const struct reg_sequence *patch,
+ unsigned int patch_size)
+{
+ struct madera *madera = fll->madera;
+ int already_enabled = madera_is_enabled_fll(fll, fll->base);
+ unsigned int val;
+ int i;
+
+ if (already_enabled < 0)
+ return already_enabled;
+
+ if (!already_enabled)
+ pm_runtime_get_sync(madera->dev);
+
+ madera_fll_dbg(fll, "Enabling FLL_AO, initially %s\n",
+ already_enabled ? "enabled" : "disabled");
+
+ /* FLL_AO_HOLD must be set before configuring any registers */
+ regmap_update_bits(fll->madera->regmap,
+ fll->base + MADERA_FLLAO_CONTROL_1_OFFS,
+ MADERA_FLL_AO_HOLD, MADERA_FLL_AO_HOLD);
+
+ for (i = 0; i < patch_size; i++) {
+ val = patch[i].def;
+
+ /* modify the patch to apply fll->ref_src as input clock */
+ if (patch[i].reg == MADERA_FLLAO_CONTROL_6) {
+ val &= ~MADERA_FLL_AO_REFCLK_SRC_MASK;
+ val |= (fll->ref_src << MADERA_FLL_AO_REFCLK_SRC_SHIFT)
+ & MADERA_FLL_AO_REFCLK_SRC_MASK;
+ }
+
+ regmap_write(madera->regmap, patch[i].reg, val);
+ }
+
+ regmap_update_bits(madera->regmap,
+ fll->base + MADERA_FLLAO_CONTROL_1_OFFS,
+ MADERA_FLL_AO_ENA, MADERA_FLL_AO_ENA);
+
+ /* Release the hold so that fll_ao locks to external frequency */
+ regmap_update_bits(madera->regmap,
+ fll->base + MADERA_FLLAO_CONTROL_1_OFFS,
+ MADERA_FLL_AO_HOLD, 0);
+
+ if (!already_enabled)
+ madera_wait_for_fll(fll, true);
+
+ return 0;
+}
+
+static int madera_disable_fll_ao(struct madera_fll *fll)
+{
+ struct madera *madera = fll->madera;
+ bool change;
+
+ madera_fll_dbg(fll, "Disabling FLL_AO\n");
+
+ regmap_update_bits(madera->regmap,
+ fll->base + MADERA_FLLAO_CONTROL_1_OFFS,
+ MADERA_FLL_AO_HOLD, MADERA_FLL_AO_HOLD);
+ regmap_update_bits_check(madera->regmap,
+ fll->base + MADERA_FLLAO_CONTROL_1_OFFS,
+ MADERA_FLL_AO_ENA, 0, &change);
+
+ madera_wait_for_fll(fll, false);
+
+ /*
+ * ctrl_up gates the writes to all fll_ao register, setting it to 0
+ * here ensures that after a runtime suspend/resume cycle when one
+ * enables the fllao then ctrl_up is the last bit that is configured
+ * by the fllao enable code rather than the cache sync operation which
+ * would have updated it much earlier before writing out all fllao
+ * registers
+ */
+ regmap_update_bits(madera->regmap,
+ fll->base + MADERA_FLLAO_CONTROL_2_OFFS,
+ MADERA_FLL_AO_CTRL_UPD_MASK, 0);
+
+ if (change)
+ pm_runtime_put_autosuspend(madera->dev);
+
+ return 0;
+}
+
+int madera_set_fll_ao_refclk(struct madera_fll *fll, int source,
+ unsigned int fin, unsigned int fout)
+{
+ int ret = 0;
+ const struct reg_sequence *patch = NULL;
+ int patch_size = 0;
+ unsigned int i;
+
+ if (fll->ref_src == source &&
+ fll->ref_freq == fin && fll->fout == fout)
+ return 0;
+
+ madera_fll_dbg(fll, "Change FLL_AO refclk to fin=%u fout=%u source=%d\n",
+ fin, fout, source);
+
+ if (fout && (fll->ref_freq != fin || fll->fout != fout)) {
+ for (i = 0; i < ARRAY_SIZE(madera_fllao_settings); i++) {
+ if (madera_fllao_settings[i].fin == fin &&
+ madera_fllao_settings[i].fout == fout)
+ break;
+ }
+
+ if (i == ARRAY_SIZE(madera_fllao_settings)) {
+ madera_fll_err(fll,
+ "No matching configuration for FLL_AO\n");
+ return -EINVAL;
+ }
+
+ patch = madera_fllao_settings[i].patch;
+ patch_size = madera_fllao_settings[i].patch_size;
+ }
+
+ fll->ref_src = source;
+ fll->ref_freq = fin;
+ fll->fout = fout;
+
+ if (fout)
+ ret = madera_enable_fll_ao(fll, patch, patch_size);
+ else
+ madera_disable_fll_ao(fll);
+
+ return ret;
+}
+EXPORT_SYMBOL_GPL(madera_set_fll_ao_refclk);
+
+/**
+ * madera_set_output_mode - Set the mode of the specified output
+ *
+ * @codec: Device to configure
+ * @output: Output number
+ * @diff: True to set the output to differential mode
+ *
+ * Some systems use external analogue switches to connect more
+ * analogue devices to the CODEC than are supported by the device. In
+ * some systems this requires changing the switched output from single
+ * ended to differential mode dynamically at runtime, an operation
+ * supported using this function.
+ *
+ * Most systems have a single static configuration and should use
+ * platform data instead.
+ */
+int madera_set_output_mode(struct snd_soc_codec *codec, int output, bool diff)
+{
+ unsigned int reg, val;
+ int ret;
+
+ if (output < 1 || output > MADERA_MAX_OUTPUT)
+ return -EINVAL;
+
+ reg = MADERA_OUTPUT_PATH_CONFIG_1L + (output - 1) * 8;
+
+ if (diff)
+ val = MADERA_OUT1_MONO;
+ else
+ val = 0;
+
+ ret = snd_soc_update_bits(codec, reg, MADERA_OUT1_MONO, val);
+ if (ret < 0)
+ return ret;
+ else
+ return 0;
+}
+EXPORT_SYMBOL_GPL(madera_set_output_mode);
+
+static bool madera_eq_filter_unstable(bool mode, __be16 _a, __be16 _b)
+{
+ s16 a = be16_to_cpu(_a);
+ s16 b = be16_to_cpu(_b);
+
+ if (!mode) {
+ return abs(a) >= 4096;
+ } else {
+ if (abs(b) >= 4096)
+ return true;
+
+ return (abs((a << 16) / (4096 - b)) >= 4096 << 4);
+ }
+}
+
+int madera_eq_coeff_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol)
+{
+ struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
+ struct madera *madera = dev_get_drvdata(codec->dev->parent);
+ struct soc_bytes *params = (void *)kcontrol->private_value;
+ unsigned int val;
+ __be16 *data;
+ int len;
+ int ret;
+
+ len = params->num_regs * regmap_get_val_bytes(madera->regmap);
+
+ data = kmemdup(ucontrol->value.bytes.data, len, GFP_KERNEL | GFP_DMA);
+ if (!data)
+ return -ENOMEM;
+
+ data[0] &= cpu_to_be16(MADERA_EQ1_B1_MODE);
+
+ if (madera_eq_filter_unstable(!!data[0], data[1], data[2]) ||
+ madera_eq_filter_unstable(true, data[4], data[5]) ||
+ madera_eq_filter_unstable(true, data[8], data[9]) ||
+ madera_eq_filter_unstable(true, data[12], data[13]) ||
+ madera_eq_filter_unstable(false, data[16], data[17])) {
+ dev_err(madera->dev, "Rejecting unstable EQ coefficients\n");
+ ret = -EINVAL;
+ goto out;
+ }
+
+ ret = regmap_read(madera->regmap, params->base, &val);
+ if (ret != 0)
+ goto out;
+
+ val &= ~MADERA_EQ1_B1_MODE;
+ data[0] |= cpu_to_be16(val);
+
+ ret = regmap_raw_write(madera->regmap, params->base, data, len);
+
+out:
+ kfree(data);
+
+ return ret;
+}
+EXPORT_SYMBOL_GPL(madera_eq_coeff_put);
+
+int madera_lhpf_coeff_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol)
+{
+ struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol);
+ struct madera *madera = dev_get_drvdata(codec->dev->parent);
+ __be16 *data = (__be16 *)ucontrol->value.bytes.data;
+ s16 val = be16_to_cpu(*data);
+
+ if (abs(val) >= 4096) {
+ dev_err(madera->dev, "Rejecting unstable LHPF coefficients\n");
+ return -EINVAL;
+ }
+
+ return snd_soc_bytes_put(kcontrol, ucontrol);
+}
+EXPORT_SYMBOL_GPL(madera_lhpf_coeff_put);
+
+MODULE_DESCRIPTION("ASoC Cirrus Logic Madera codec support");
+MODULE_AUTHOR("Charles Keepax <[email protected]>");
+MODULE_AUTHOR("Richard Fitzgerald <[email protected]>");
+MODULE_LICENSE("GPL v2");
diff --git a/sound/soc/codecs/madera.h b/sound/soc/codecs/madera.h
new file mode 100644
index 0000000..58f203b
--- /dev/null
+++ b/sound/soc/codecs/madera.h
@@ -0,0 +1,470 @@
+/*
+ * madera.h - Cirrus Logic Madera class codecs common support
+ *
+ * Copyright 2015-2017 Cirrus Logic
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef ASOC_MADERA_H
+#define ASOC_MADERA_H
+
+#include <linux/completion.h>
+
+#include <sound/soc.h>
+#include <sound/madera-pdata.h>
+
+#include "wm_adsp.h"
+
+#define MADERA_FLL1_REFCLK 1
+#define MADERA_FLL2_REFCLK 2
+#define MADERA_FLL3_REFCLK 3
+#define MADERA_FLLAO_REFCLK 4
+#define MADERA_FLL1_SYNCCLK 5
+#define MADERA_FLL2_SYNCCLK 6
+#define MADERA_FLL3_SYNCCLK 7
+#define MADERA_FLLAO_SYNCCLK 8
+
+#define MADERA_FLL_SRC_NONE -1
+#define MADERA_FLL_SRC_MCLK1 0
+#define MADERA_FLL_SRC_MCLK2 1
+#define MADERA_FLL_SRC_SLIMCLK 3
+#define MADERA_FLL_SRC_FLL1 4
+#define MADERA_FLL_SRC_FLL2 5
+#define MADERA_FLL_SRC_AIF1BCLK 8
+#define MADERA_FLL_SRC_AIF2BCLK 9
+#define MADERA_FLL_SRC_AIF3BCLK 10
+#define MADERA_FLL_SRC_AIF4BCLK 11
+#define MADERA_FLL_SRC_AIF1LRCLK 12
+#define MADERA_FLL_SRC_AIF2LRCLK 13
+#define MADERA_FLL_SRC_AIF3LRCLK 14
+#define MADERA_FLL_SRC_AIF4LRCLK 15
+
+#define MADERA_CLK_SYSCLK_1 1
+#define MADERA_CLK_ASYNCCLK_1 2
+#define MADERA_CLK_OPCLK 3
+#define MADERA_CLK_ASYNC_OPCLK 4
+#define MADERA_CLK_SYSCLK_2 5
+#define MADERA_CLK_SYSCLK_3 6
+#define MADERA_CLK_ASYNCCLK_2 7
+#define MADERA_CLK_DSPCLK 8
+
+#define MADERA_CLK_SRC_MCLK1 0x0
+#define MADERA_CLK_SRC_MCLK2 0x1
+#define MADERA_CLK_SRC_FLL1 0x4
+#define MADERA_CLK_SRC_FLL2 0x5
+#define MADERA_CLK_SRC_FLL3 0x6
+#define MADERA_CLK_SRC_FLLAO_HI 0x7
+#define MADERA_CLK_SRC_FLL1_DIV6 0x7
+#define MADERA_CLK_SRC_AIF1BCLK 0x8
+#define MADERA_CLK_SRC_AIF2BCLK 0x9
+#define MADERA_CLK_SRC_AIF3BCLK 0xA
+#define MADERA_CLK_SRC_AIF4BCLK 0xB
+#define MADERA_CLK_SRC_FLLAO 0xF
+
+#define MADERA_MIXER_VOL_MASK 0x00FE
+#define MADERA_MIXER_VOL_SHIFT 1
+#define MADERA_MIXER_VOL_WIDTH 7
+
+#define MADERA_DOM_GRP_FX 0
+#define MADERA_DOM_GRP_ASRC1_RATE_1 1
+#define MADERA_DOM_GRP_ASRC1_RATE_2 2
+#define MADERA_DOM_GRP_ASRC2_RATE_1 3
+#define MADERA_DOM_GRP_ASRC2_RATE_2 4
+#define MADERA_DOM_GRP_ISRC1_DEC 5
+#define MADERA_DOM_GRP_ISRC1_INT 6
+#define MADERA_DOM_GRP_ISRC2_DEC 7
+#define MADERA_DOM_GRP_ISRC2_INT 8
+#define MADERA_DOM_GRP_ISRC3_DEC 9
+#define MADERA_DOM_GRP_ISRC3_INT 10
+#define MADERA_DOM_GRP_ISRC4_DEC 11
+#define MADERA_DOM_GRP_ISRC4_INT 12
+#define MADERA_DOM_GRP_OUT 13
+#define MADERA_DOM_GRP_SPD 14
+#define MADERA_DOM_GRP_DSP1 15
+#define MADERA_DOM_GRP_DSP2 16
+#define MADERA_DOM_GRP_DSP3 17
+#define MADERA_DOM_GRP_DSP4 18
+#define MADERA_DOM_GRP_DSP5 19
+#define MADERA_DOM_GRP_DSP6 20
+#define MADERA_DOM_GRP_DSP7 21
+#define MADERA_DOM_GRP_AIF1 22
+#define MADERA_DOM_GRP_AIF2 23
+#define MADERA_DOM_GRP_AIF3 24
+#define MADERA_DOM_GRP_AIF4 25
+#define MADERA_DOM_GRP_SLIMBUS 26
+#define MADERA_DOM_GRP_PWM 27
+#define MADERA_DOM_GRP_DFC 28
+#define MADERA_N_DOM_GRPS 29
+
+#define MADERA_MAX_DAI 11
+#define MADERA_MAX_ADSP 7
+
+#define MADERA_NUM_MIXER_INPUTS 146
+
+struct madera;
+struct wm_adsp;
+
+struct madera_voice_trigger_info {
+ /** Which core triggered, 1-based (1 = DSP1, ...) */
+ int core_num;
+};
+
+struct madera_dai_priv {
+ int clk;
+ struct snd_pcm_hw_constraint_list constraint;
+};
+
+struct madera_priv {
+ struct wm_adsp adsp[MADERA_MAX_ADSP];
+ struct madera *madera;
+ struct device *dev;
+ int sysclk;
+ int asyncclk;
+ int dspclk;
+ struct madera_dai_priv dai[MADERA_MAX_DAI];
+
+ int num_inputs;
+
+ unsigned int in_pending;
+
+ unsigned int out_up_pending;
+ unsigned int out_up_delay;
+ unsigned int out_down_pending;
+ unsigned int out_down_delay;
+
+ unsigned int adsp_rate_cache[MADERA_MAX_ADSP];
+
+ struct mutex rate_lock;
+
+ int tdm_width[MADERA_MAX_AIF];
+ int tdm_slots[MADERA_MAX_AIF];
+
+ int domain_group_ref[MADERA_N_DOM_GRPS];
+};
+
+struct madera_fll_cfg {
+ int n;
+ unsigned int theta;
+ unsigned int lambda;
+ int refdiv;
+ int fratio;
+ int gain;
+ int alt_gain;
+};
+
+struct madera_fll {
+ struct madera *madera;
+ int id;
+ unsigned int base;
+
+ unsigned int fout;
+
+ int sync_src;
+ unsigned int sync_freq;
+
+ int ref_src;
+ unsigned int ref_freq;
+ struct madera_fll_cfg ref_cfg;
+};
+
+struct madera_enum {
+ struct soc_enum mixer_enum;
+ int val;
+};
+
+extern const unsigned int madera_ana_tlv[];
+extern const unsigned int madera_eq_tlv[];
+extern const unsigned int madera_digital_tlv[];
+extern const unsigned int madera_noise_tlv[];
+extern const unsigned int madera_ng_tlv[];
+
+extern const unsigned int madera_mixer_tlv[];
+extern const char * const madera_mixer_texts[MADERA_NUM_MIXER_INPUTS];
+extern unsigned int madera_mixer_values[MADERA_NUM_MIXER_INPUTS];
+
+#define MADERA_GAINMUX_CONTROLS(name, base) \
+ SOC_SINGLE_RANGE_TLV(name " Input Volume", base + 1, \
+ MADERA_MIXER_VOL_SHIFT, 0x20, 0x50, 0, \
+ madera_mixer_tlv)
+
+#define MADERA_MIXER_CONTROLS(name, base) \
+ SOC_SINGLE_RANGE_TLV(name " Input 1 Volume", base + 1, \
+ MADERA_MIXER_VOL_SHIFT, 0x20, 0x50, 0, \
+ madera_mixer_tlv), \
+ SOC_SINGLE_RANGE_TLV(name " Input 2 Volume", base + 3, \
+ MADERA_MIXER_VOL_SHIFT, 0x20, 0x50, 0, \
+ madera_mixer_tlv), \
+ SOC_SINGLE_RANGE_TLV(name " Input 3 Volume", base + 5, \
+ MADERA_MIXER_VOL_SHIFT, 0x20, 0x50, 0, \
+ madera_mixer_tlv), \
+ SOC_SINGLE_RANGE_TLV(name " Input 4 Volume", base + 7, \
+ MADERA_MIXER_VOL_SHIFT, 0x20, 0x50, 0, \
+ madera_mixer_tlv)
+
+#define MADERA_MUX_ENUM_DECL(name, reg) \
+ SOC_VALUE_ENUM_SINGLE_AUTODISABLE_DECL( \
+ name, reg, 0, 0xff, madera_mixer_texts, madera_mixer_values)
+
+#define MADERA_MUX_CTL_DECL(name) \
+ const struct snd_kcontrol_new name##_mux = \
+ SOC_DAPM_ENUM("Route", name##_enum)
+
+#define MADERA_MUX_ENUMS(name, base_reg) \
+ static MADERA_MUX_ENUM_DECL(name##_enum, base_reg); \
+ static MADERA_MUX_CTL_DECL(name)
+
+#define MADERA_MIXER_ENUMS(name, base_reg) \
+ MADERA_MUX_ENUMS(name##_in1, base_reg); \
+ MADERA_MUX_ENUMS(name##_in2, base_reg + 2); \
+ MADERA_MUX_ENUMS(name##_in3, base_reg + 4); \
+ MADERA_MUX_ENUMS(name##_in4, base_reg + 6)
+
+#define MADERA_DSP_AUX_ENUMS(name, base_reg) \
+ MADERA_MUX_ENUMS(name##_aux1, base_reg); \
+ MADERA_MUX_ENUMS(name##_aux2, base_reg + 8); \
+ MADERA_MUX_ENUMS(name##_aux3, base_reg + 16); \
+ MADERA_MUX_ENUMS(name##_aux4, base_reg + 24); \
+ MADERA_MUX_ENUMS(name##_aux5, base_reg + 32); \
+ MADERA_MUX_ENUMS(name##_aux6, base_reg + 40)
+
+#define MADERA_MUX(name, ctrl) \
+ SND_SOC_DAPM_MUX(name, SND_SOC_NOPM, 0, 0, ctrl)
+
+#define MADERA_MUX_WIDGETS(name, name_str) \
+ MADERA_MUX(name_str " Input 1", &name##_mux)
+
+#define MADERA_MIXER_WIDGETS(name, name_str) \
+ MADERA_MUX(name_str " Input 1", &name##_in1_mux), \
+ MADERA_MUX(name_str " Input 2", &name##_in2_mux), \
+ MADERA_MUX(name_str " Input 3", &name##_in3_mux), \
+ MADERA_MUX(name_str " Input 4", &name##_in4_mux), \
+ SND_SOC_DAPM_MIXER(name_str " Mixer", SND_SOC_NOPM, 0, 0, NULL, 0)
+
+#define MADERA_DSP_WIDGETS(name, name_str) \
+ MADERA_MIXER_WIDGETS(name##L, name_str "L"), \
+ MADERA_MIXER_WIDGETS(name##R, name_str "R"), \
+ MADERA_MUX(name_str " Aux 1", &name##_aux1_mux), \
+ MADERA_MUX(name_str " Aux 2", &name##_aux2_mux), \
+ MADERA_MUX(name_str " Aux 3", &name##_aux3_mux), \
+ MADERA_MUX(name_str " Aux 4", &name##_aux4_mux), \
+ MADERA_MUX(name_str " Aux 5", &name##_aux5_mux), \
+ MADERA_MUX(name_str " Aux 6", &name##_aux6_mux)
+
+#define MADERA_MUX_ROUTES(widget, name) \
+ { widget, NULL, name " Input 1" }, \
+ MADERA_MIXER_INPUT_ROUTES(name " Input 1")
+
+#define MADERA_MIXER_ROUTES(widget, name) \
+ { widget, NULL, name " Mixer" }, \
+ { name " Mixer", NULL, name " Input 1" }, \
+ { name " Mixer", NULL, name " Input 2" }, \
+ { name " Mixer", NULL, name " Input 3" }, \
+ { name " Mixer", NULL, name " Input 4" }, \
+ MADERA_MIXER_INPUT_ROUTES(name " Input 1"), \
+ MADERA_MIXER_INPUT_ROUTES(name " Input 2"), \
+ MADERA_MIXER_INPUT_ROUTES(name " Input 3"), \
+ MADERA_MIXER_INPUT_ROUTES(name " Input 4")
+
+#define MADERA_DSP_ROUTES(name) \
+ { name, NULL, name " Preloader"}, \
+ { name " Preloader", NULL, "SYSCLK"}, \
+ { name " Preloader", NULL, "DSPCLK"}, \
+ { name, NULL, name " Aux 1" }, \
+ { name, NULL, name " Aux 2" }, \
+ { name, NULL, name " Aux 3" }, \
+ { name, NULL, name " Aux 4" }, \
+ { name, NULL, name " Aux 5" }, \
+ { name, NULL, name " Aux 6" }, \
+ MADERA_MIXER_INPUT_ROUTES(name " Aux 1"), \
+ MADERA_MIXER_INPUT_ROUTES(name " Aux 2"), \
+ MADERA_MIXER_INPUT_ROUTES(name " Aux 3"), \
+ MADERA_MIXER_INPUT_ROUTES(name " Aux 4"), \
+ MADERA_MIXER_INPUT_ROUTES(name " Aux 5"), \
+ MADERA_MIXER_INPUT_ROUTES(name " Aux 6"), \
+ MADERA_MIXER_ROUTES(name, name "L"), \
+ MADERA_MIXER_ROUTES(name, name "R")
+
+#define MADERA_SAMPLE_RATE_CONTROL(name, domain) \
+ SOC_ENUM(name, madera_sample_rate[(domain) - 2])
+
+#define MADERA_RATE_ENUM(xname, xenum) \
+{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname,\
+ .info = snd_soc_info_enum_double, \
+ .get = snd_soc_get_enum_double, .put = madera_rate_put, \
+ .private_value = (unsigned long)&xenum }
+
+#define MADERA_EQ_CONTROL(xname, xbase) \
+{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
+ .info = snd_soc_bytes_info, .get = snd_soc_bytes_get, \
+ .put = madera_eq_coeff_put, .private_value = \
+ ((unsigned long)&(struct soc_bytes) { .base = xbase, \
+ .num_regs = 20, .mask = ~MADERA_EQ1_B1_MODE }) }
+
+#define MADERA_LHPF_CONTROL(xname, xbase) \
+{ .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = xname, \
+ .info = snd_soc_bytes_info, .get = snd_soc_bytes_get, \
+ .put = madera_lhpf_coeff_put, .private_value = \
+ ((unsigned long)&(struct soc_bytes) { .base = xbase, \
+ .num_regs = 1 }) }
+
+#define MADERA_RATES SNDRV_PCM_RATE_KNOT
+
+#define MADERA_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
+ SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
+
+#define MADERA_OSR_ENUM_SIZE 5
+#define MADERA_SYNC_RATE_ENUM_SIZE 3
+#define MADERA_ASYNC_RATE_ENUM_SIZE 2
+#define MADERA_RATE_ENUM_SIZE \
+ (MADERA_SYNC_RATE_ENUM_SIZE + MADERA_ASYNC_RATE_ENUM_SIZE)
+#define MADERA_SAMPLE_RATE_ENUM_SIZE 16
+#define MADERA_DFC_TYPE_ENUM_SIZE 5
+#define MADERA_DFC_WIDTH_ENUM_SIZE 5
+
+extern const struct snd_soc_dai_ops madera_dai_ops;
+extern const struct snd_soc_dai_ops madera_simple_dai_ops;
+
+extern const struct snd_kcontrol_new madera_inmux[];
+
+extern const char * const madera_rate_text[MADERA_RATE_ENUM_SIZE];
+extern const unsigned int madera_rate_val[MADERA_RATE_ENUM_SIZE];
+extern const char * const madera_sample_rate_text[MADERA_SAMPLE_RATE_ENUM_SIZE];
+extern const unsigned int madera_sample_rate_val[MADERA_SAMPLE_RATE_ENUM_SIZE];
+extern const char * const madera_dfc_width_text[MADERA_DFC_WIDTH_ENUM_SIZE];
+extern const unsigned int madera_dfc_width_val[MADERA_DFC_WIDTH_ENUM_SIZE];
+extern const char * const madera_dfc_type_text[MADERA_DFC_TYPE_ENUM_SIZE];
+extern const unsigned int madera_dfc_type_val[MADERA_DFC_TYPE_ENUM_SIZE];
+
+extern const struct soc_enum madera_sample_rate[];
+extern const struct soc_enum madera_isrc_fsl[];
+extern const struct soc_enum madera_isrc_fsh[];
+extern const struct soc_enum madera_asrc1_rate[];
+extern const struct soc_enum madera_asrc2_rate[];
+extern const struct soc_enum madera_dfc_width[];
+extern const struct soc_enum madera_dfc_type[];
+extern const struct soc_enum madera_spdif_rate;
+
+extern const struct soc_enum madera_in_vi_ramp;
+extern const struct soc_enum madera_in_vd_ramp;
+
+extern const struct soc_enum madera_out_vi_ramp;
+extern const struct soc_enum madera_out_vd_ramp;
+
+extern const struct soc_enum madera_lhpf1_mode;
+extern const struct soc_enum madera_lhpf2_mode;
+extern const struct soc_enum madera_lhpf3_mode;
+extern const struct soc_enum madera_lhpf4_mode;
+
+extern const struct soc_enum madera_ng_hold;
+extern const struct soc_enum madera_in_hpf_cut_enum;
+extern const struct soc_enum madera_in_dmic_osr[];
+
+extern const struct soc_enum madera_output_anc_src[];
+extern const struct soc_enum madera_anc_input_src[];
+extern const struct soc_enum madera_anc_ng_enum;
+
+extern const struct snd_kcontrol_new madera_dsp_trigger_output_mux[];
+extern const struct snd_kcontrol_new madera_drc_activity_output_mux[];
+
+extern const struct snd_kcontrol_new madera_adsp_rate_controls[];
+
+const char *madera_sample_rate_val_to_name(unsigned int rate_val);
+
+int madera_dfc_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol);
+
+int madera_lp_mode_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol);
+
+int madera_out1_demux_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol);
+
+int madera_dre_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol);
+
+int madera_rate_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol);
+
+int madera_eq_coeff_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol);
+int madera_lhpf_coeff_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol);
+
+int madera_sysclk_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event);
+int madera_spk_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event);
+int madera_in_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event);
+int madera_out_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event);
+int madera_hp_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event);
+int madera_anc_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol, int event);
+int madera_domain_clk_ev(struct snd_soc_dapm_widget *w,
+ struct snd_kcontrol *kcontrol,
+ int event);
+
+int madera_adsp_rate_info(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_info *uinfo);
+int madera_adsp_rate_get(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol);
+int madera_adsp_rate_put(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_value *ucontrol);
+int madera_set_adsp_clk(struct madera_priv *priv, int dsp_num,
+ unsigned int freq);
+
+int madera_set_sysclk(struct snd_soc_codec *codec, int clk_id, int source,
+ unsigned int freq, int dir);
+int madera_get_legacy_dspclk_setting(struct madera *madera, unsigned int freq);
+void madera_spin_sysclk(struct madera_priv *priv);
+
+int madera_init_fll(struct madera *madera, int id, int base,
+ struct madera_fll *fll);
+int madera_set_fll_refclk(struct madera_fll *fll, int source,
+ unsigned int Fref, unsigned int Fout);
+int madera_set_fll_syncclk(struct madera_fll *fll, int source,
+ unsigned int Fref, unsigned int Fout);
+int madera_set_fll_ao_refclk(struct madera_fll *fll, int source,
+ unsigned int fin, unsigned int fout);
+
+int madera_core_init(struct madera_priv *priv);
+int madera_core_destroy(struct madera_priv *priv);
+int madera_init_overheat(struct madera_priv *priv);
+int madera_free_overheat(struct madera_priv *priv);
+int madera_init_inputs(struct snd_soc_codec *codec,
+ const char * const *dmic_inputs,
+ int n_dmic_inputs,
+ const char * const *dmic_refs,
+ int n_dmic_refs);
+int madera_init_outputs(struct snd_soc_codec *codec, int n_mono_routes);
+int madera_init_bus_error_irq(struct madera_priv *priv, int dsp_num,
+ irq_handler_t handler);
+void madera_destroy_bus_error_irq(struct madera_priv *priv, int dsp_num);
+
+int madera_init_dai(struct madera_priv *priv, int dai);
+
+int madera_set_output_mode(struct snd_soc_codec *codec, int output, bool diff);
+
+/* Following functions are for use by machine drivers */
+static inline int madera_register_notifier(struct snd_soc_codec *codec,
+ struct notifier_block *nb)
+{
+ struct madera *madera = dev_get_drvdata(codec->dev->parent);
+
+ return blocking_notifier_chain_register(&madera->notifier, nb);
+}
+
+static inline int madera_unregister_notifier(struct snd_soc_codec *codec,
+ struct notifier_block *nb)
+{
+ struct madera *madera = dev_get_drvdata(codec->dev->parent);
+
+ return blocking_notifier_chain_unregister(&madera->notifier, nb);
+}
+
+#endif
--
1.9.1
On Wed, Apr 05, 2017 at 11:07:54AM +0100, Richard Fitzgerald wrote:
> This patch adds a driver for the internal LDO1 regulator on
> some Cirrus Logic Madera class codecs.
There appear to be only data differences to the existing arizona driver,
is it possible to share the code?
On Wed, Apr 05, 2017 at 11:07:55AM +0100, Richard Fitzgerald wrote:
> The adds a driver for the microphone supply regulator on Cirrus Logic
> Madera class codecs.
Again, this appears to have only data and minor code style changes
relative to the existing arizona driver - is there no opportunity for
code sharing here?
On Wed, 2017-04-05 at 14:40 +0100, Mark Brown wrote:
> On Wed, Apr 05, 2017 at 11:07:55AM +0100, Richard Fitzgerald wrote:
> > The adds a driver for the microphone supply regulator on Cirrus Logic
> > Madera class codecs.
>
> Again, this appears to have only data and minor code style changes
> relative to the existing arizona driver - is there no opportunity for
> code sharing here?
I'll have a look at how it would work out.
My thought was that these two regulator drivers are so small it wasn't
worth creating an entanglement between arizona and madera for so little
code.
The patch
ASoC: wm_adsp: Add support for ADSP2V2
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From e1ea1879f2889a26370bd0bc29c1e95caf9d36f2 Mon Sep 17 00:00:00 2001
From: Richard Fitzgerald <[email protected]>
Date: Wed, 5 Apr 2017 11:07:59 +0100
Subject: [PATCH] ASoC: wm_adsp: Add support for ADSP2V2
Adds support for ADSP2V2 cores. Primary differences are that
they use a 32-bit register map compared to the 16-bit register
map of ADSP2V1, and there are some changes to clocking control.
Signed-off-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
---
sound/soc/codecs/wm_adsp.c | 187 ++++++++++++++++++++++++++++++++++-----------
sound/soc/codecs/wm_adsp.h | 1 +
2 files changed, 145 insertions(+), 43 deletions(-)
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index bbdb72f73df1..a9acf222b502 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -112,17 +112,22 @@
#define ADSP1_CLK_SEL_SHIFT 0 /* CLK_SEL_ENA */
#define ADSP1_CLK_SEL_WIDTH 3 /* CLK_SEL_ENA */
-#define ADSP2_CONTROL 0x0
-#define ADSP2_CLOCKING 0x1
-#define ADSP2_STATUS1 0x4
-#define ADSP2_WDMA_CONFIG_1 0x30
-#define ADSP2_WDMA_CONFIG_2 0x31
-#define ADSP2_RDMA_CONFIG_1 0x34
-
-#define ADSP2_SCRATCH0 0x40
-#define ADSP2_SCRATCH1 0x41
-#define ADSP2_SCRATCH2 0x42
-#define ADSP2_SCRATCH3 0x43
+#define ADSP2_CONTROL 0x0
+#define ADSP2_CLOCKING 0x1
+#define ADSP2V2_CLOCKING 0x2
+#define ADSP2_STATUS1 0x4
+#define ADSP2_WDMA_CONFIG_1 0x30
+#define ADSP2_WDMA_CONFIG_2 0x31
+#define ADSP2V2_WDMA_CONFIG_2 0x32
+#define ADSP2_RDMA_CONFIG_1 0x34
+
+#define ADSP2_SCRATCH0 0x40
+#define ADSP2_SCRATCH1 0x41
+#define ADSP2_SCRATCH2 0x42
+#define ADSP2_SCRATCH3 0x43
+
+#define ADSP2V2_SCRATCH0_1 0x40
+#define ADSP2V2_SCRATCH2_3 0x42
/*
* ADSP2 Control
@@ -153,6 +158,17 @@
#define ADSP2_CLK_SEL_WIDTH 3 /* CLK_SEL_ENA */
/*
+ * ADSP2V2 clocking
+ */
+#define ADSP2V2_CLK_SEL_MASK 0x70000 /* CLK_SEL_ENA */
+#define ADSP2V2_CLK_SEL_SHIFT 16 /* CLK_SEL_ENA */
+#define ADSP2V2_CLK_SEL_WIDTH 3 /* CLK_SEL_ENA */
+
+#define ADSP2V2_RATE_MASK 0x7800 /* DSP_RATE */
+#define ADSP2V2_RATE_SHIFT 11 /* DSP_RATE */
+#define ADSP2V2_RATE_WIDTH 4 /* DSP_RATE */
+
+/*
* ADSP2 Status 1
*/
#define ADSP2_RAM_RDY 0x0001
@@ -683,6 +699,9 @@ static const struct soc_enum wm_adsp_fw_enum[] = {
SOC_ENUM_SINGLE(0, 1, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
SOC_ENUM_SINGLE(0, 2, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
SOC_ENUM_SINGLE(0, 3, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
+ SOC_ENUM_SINGLE(0, 4, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
+ SOC_ENUM_SINGLE(0, 5, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
+ SOC_ENUM_SINGLE(0, 6, ARRAY_SIZE(wm_adsp_fw_text), wm_adsp_fw_text),
};
const struct snd_kcontrol_new wm_adsp_fw_controls[] = {
@@ -694,6 +713,12 @@ const struct snd_kcontrol_new wm_adsp_fw_controls[] = {
wm_adsp_fw_get, wm_adsp_fw_put),
SOC_ENUM_EXT("DSP4 Firmware", wm_adsp_fw_enum[3],
wm_adsp_fw_get, wm_adsp_fw_put),
+ SOC_ENUM_EXT("DSP5 Firmware", wm_adsp_fw_enum[4],
+ wm_adsp_fw_get, wm_adsp_fw_put),
+ SOC_ENUM_EXT("DSP6 Firmware", wm_adsp_fw_enum[5],
+ wm_adsp_fw_get, wm_adsp_fw_put),
+ SOC_ENUM_EXT("DSP7 Firmware", wm_adsp_fw_enum[6],
+ wm_adsp_fw_get, wm_adsp_fw_put),
};
EXPORT_SYMBOL_GPL(wm_adsp_fw_controls);
@@ -750,6 +775,29 @@ static void wm_adsp2_show_fw_status(struct wm_adsp *dsp)
be16_to_cpu(scratch[3]));
}
+static void wm_adsp2v2_show_fw_status(struct wm_adsp *dsp)
+{
+ u32 scratch[2];
+ int ret;
+
+ ret = regmap_raw_read(dsp->regmap, dsp->base + ADSP2V2_SCRATCH0_1,
+ scratch, sizeof(scratch));
+
+ if (ret) {
+ adsp_err(dsp, "Failed to read SCRATCH regs: %d\n", ret);
+ return;
+ }
+
+ scratch[0] = be32_to_cpu(scratch[0]);
+ scratch[1] = be32_to_cpu(scratch[1]);
+
+ adsp_dbg(dsp, "FW SCRATCH 0:0x%x 1:0x%x 2:0x%x 3:0x%x\n",
+ scratch[0] & 0xFFFF,
+ scratch[0] >> 16,
+ scratch[1] & 0xFFFF,
+ scratch[1] >> 16);
+}
+
static inline struct wm_coeff_ctl *bytes_ext_to_ctl(struct soc_bytes_ext *ext)
{
return container_of(ext, struct wm_coeff_ctl, bytes_ext);
@@ -2435,10 +2483,17 @@ static int wm_adsp2_ena(struct wm_adsp *dsp)
unsigned int val;
int ret, count;
- ret = regmap_update_bits_async(dsp->regmap, dsp->base + ADSP2_CONTROL,
- ADSP2_SYS_ENA, ADSP2_SYS_ENA);
- if (ret != 0)
- return ret;
+ switch (dsp->rev) {
+ case 0:
+ ret = regmap_update_bits_async(dsp->regmap,
+ dsp->base + ADSP2_CONTROL,
+ ADSP2_SYS_ENA, ADSP2_SYS_ENA);
+ if (ret != 0)
+ return ret;
+ break;
+ default:
+ break;
+ }
/* Wait for the RAM to start, should be near instantaneous */
for (count = 0; count < 10; ++count) {
@@ -2497,11 +2552,17 @@ static void wm_adsp2_boot_work(struct work_struct *work)
if (ret != 0)
goto err_ena;
- /* Turn DSP back off until we are ready to run */
- ret = regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
- ADSP2_SYS_ENA, 0);
- if (ret != 0)
- goto err_ena;
+ switch (dsp->rev) {
+ case 0:
+ /* Turn DSP back off until we are ready to run */
+ ret = regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
+ ADSP2_SYS_ENA, 0);
+ if (ret != 0)
+ goto err_ena;
+ break;
+ default:
+ break;
+ }
dsp->booted = true;
@@ -2523,12 +2584,21 @@ static void wm_adsp2_set_dspclk(struct wm_adsp *dsp, unsigned int freq)
{
int ret;
- ret = regmap_update_bits_async(dsp->regmap,
- dsp->base + ADSP2_CLOCKING,
- ADSP2_CLK_SEL_MASK,
- freq << ADSP2_CLK_SEL_SHIFT);
- if (ret != 0)
- adsp_err(dsp, "Failed to set clock rate: %d\n", ret);
+ switch (dsp->rev) {
+ case 0:
+ ret = regmap_update_bits_async(dsp->regmap,
+ dsp->base + ADSP2_CLOCKING,
+ ADSP2_CLK_SEL_MASK,
+ freq << ADSP2_CLK_SEL_SHIFT);
+ if (ret) {
+ adsp_err(dsp, "Failed to set clock rate: %d\n", ret);
+ return;
+ }
+ break;
+ default:
+ /* clock is handled by parent codec driver */
+ break;
+ }
}
int wm_adsp2_preloader_get(struct snd_kcontrol *kcontrol,
@@ -2664,22 +2734,46 @@ int wm_adsp2_event(struct snd_soc_dapm_widget *w,
wm_adsp_signal_event_controls(dsp, WM_ADSP_FW_EVENT_SHUTDOWN);
/* Log firmware state, it can be useful for analysis */
- wm_adsp2_show_fw_status(dsp);
+ switch (dsp->rev) {
+ case 0:
+ wm_adsp2_show_fw_status(dsp);
+ break;
+ default:
+ wm_adsp2v2_show_fw_status(dsp);
+ break;
+ }
mutex_lock(&dsp->pwr_lock);
dsp->running = false;
- regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
+ regmap_update_bits(dsp->regmap,
+ dsp->base + ADSP2_CONTROL,
ADSP2_CORE_ENA | ADSP2_START, 0);
/* Make sure DMAs are quiesced */
- regmap_write(dsp->regmap, dsp->base + ADSP2_RDMA_CONFIG_1, 0);
- regmap_write(dsp->regmap, dsp->base + ADSP2_WDMA_CONFIG_1, 0);
- regmap_write(dsp->regmap, dsp->base + ADSP2_WDMA_CONFIG_2, 0);
-
- regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
- ADSP2_SYS_ENA, 0);
+ switch (dsp->rev) {
+ case 0:
+ regmap_write(dsp->regmap,
+ dsp->base + ADSP2_RDMA_CONFIG_1, 0);
+ regmap_write(dsp->regmap,
+ dsp->base + ADSP2_WDMA_CONFIG_1, 0);
+ regmap_write(dsp->regmap,
+ dsp->base + ADSP2_WDMA_CONFIG_2, 0);
+
+ regmap_update_bits(dsp->regmap,
+ dsp->base + ADSP2_CONTROL,
+ ADSP2_SYS_ENA, 0);
+ break;
+ default:
+ regmap_write(dsp->regmap,
+ dsp->base + ADSP2_RDMA_CONFIG_1, 0);
+ regmap_write(dsp->regmap,
+ dsp->base + ADSP2_WDMA_CONFIG_1, 0);
+ regmap_write(dsp->regmap,
+ dsp->base + ADSP2V2_WDMA_CONFIG_2, 0);
+ break;
+ }
if (wm_adsp_fw[dsp->fw].num_caps != 0)
wm_adsp_buffer_free(dsp);
@@ -2732,15 +2826,22 @@ int wm_adsp2_init(struct wm_adsp *dsp)
{
int ret;
- /*
- * Disable the DSP memory by default when in reset for a small
- * power saving.
- */
- ret = regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
- ADSP2_MEM_ENA, 0);
- if (ret != 0) {
- adsp_err(dsp, "Failed to clear memory retention: %d\n", ret);
- return ret;
+ switch (dsp->rev) {
+ case 0:
+ /*
+ * Disable the DSP memory by default when in reset for a small
+ * power saving.
+ */
+ ret = regmap_update_bits(dsp->regmap, dsp->base + ADSP2_CONTROL,
+ ADSP2_MEM_ENA, 0);
+ if (ret) {
+ adsp_err(dsp,
+ "Failed to clear memory retention: %d\n", ret);
+ return ret;
+ }
+ break;
+ default:
+ break;
}
INIT_LIST_HEAD(&dsp->alg_regions);
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h
index 3706b11053a3..997227f4d404 100644
--- a/sound/soc/codecs/wm_adsp.h
+++ b/sound/soc/codecs/wm_adsp.h
@@ -40,6 +40,7 @@ struct wm_adsp_compr_buf;
struct wm_adsp {
const char *part;
+ int rev;
int num;
int type;
struct device *dev;
--
2.11.0
The patch
ASoC: wm_adsp: add support for DSP region lock
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
>From 51a2c944ead91171495ef338689da057bbcaab0c Mon Sep 17 00:00:00 2001
From: Mayuresh Kulkarni <[email protected]>
Date: Wed, 5 Apr 2017 11:08:00 +0100
Subject: [PATCH] ASoC: wm_adsp: add support for DSP region lock
Newer ADSP2V2 codecs include a memory protection unit that can
be set to trap illegal accesses. When enabling an ADSPV2 core we
must configure the memory region traps so that the firmware can
access its own memory.
Signed-off-by: Mayuresh Kulkarni <[email protected]>
Signed-off-by: Nikesh Oswal <[email protected]>
Signed-off-by: Charles Keepax <[email protected]>
Signed-off-by: Richard Fitzgerald <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
---
sound/soc/codecs/wm_adsp.c | 137 +++++++++++++++++++++++++++++++++++++++++++++
sound/soc/codecs/wm_adsp.h | 23 ++++++++
2 files changed, 160 insertions(+)
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index a9acf222b502..20695b691aff 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -176,6 +176,37 @@
#define ADSP2_RAM_RDY_SHIFT 0
#define ADSP2_RAM_RDY_WIDTH 1
+/*
+ * ADSP2 Lock support
+ */
+#define ADSP2_LOCK_CODE_0 0x5555
+#define ADSP2_LOCK_CODE_1 0xAAAA
+
+#define ADSP2_WATCHDOG 0x0A
+#define ADSP2_BUS_ERR_ADDR 0x52
+#define ADSP2_REGION_LOCK_STATUS 0x64
+#define ADSP2_LOCK_REGION_1_LOCK_REGION_0 0x66
+#define ADSP2_LOCK_REGION_3_LOCK_REGION_2 0x68
+#define ADSP2_LOCK_REGION_5_LOCK_REGION_4 0x6A
+#define ADSP2_LOCK_REGION_7_LOCK_REGION_6 0x6C
+#define ADSP2_LOCK_REGION_9_LOCK_REGION_8 0x6E
+#define ADSP2_LOCK_REGION_CTRL 0x7A
+#define ADSP2_PMEM_ERR_ADDR_XMEM_ERR_ADDR 0x7C
+
+#define ADSP2_REGION_LOCK_ERR_MASK 0x8000
+#define ADSP2_SLAVE_ERR_MASK 0x4000
+#define ADSP2_WDT_TIMEOUT_STS_MASK 0x2000
+#define ADSP2_CTRL_ERR_PAUSE_ENA 0x0002
+#define ADSP2_CTRL_ERR_EINT 0x0001
+
+#define ADSP2_BUS_ERR_ADDR_MASK 0x00FFFFFF
+#define ADSP2_XMEM_ERR_ADDR_MASK 0x0000FFFF
+#define ADSP2_PMEM_ERR_ADDR_MASK 0x7FFF0000
+#define ADSP2_PMEM_ERR_ADDR_SHIFT 16
+#define ADSP2_WDT_ENA_MASK 0xFFFFFFFD
+
+#define ADSP2_LOCK_REGION_SHIFT 16
+
#define ADSP_MAX_STD_CTRL_SIZE 512
#define WM_ADSP_ACKED_CTL_TIMEOUT_MS 100
@@ -2638,6 +2669,18 @@ int wm_adsp2_preloader_put(struct snd_kcontrol *kcontrol,
}
EXPORT_SYMBOL_GPL(wm_adsp2_preloader_put);
+static void wm_adsp_stop_watchdog(struct wm_adsp *dsp)
+{
+ switch (dsp->rev) {
+ case 0:
+ case 1:
+ return;
+ default:
+ regmap_update_bits(dsp->regmap, dsp->base + ADSP2_WATCHDOG,
+ ADSP2_WDT_ENA_MASK, 0);
+ }
+}
+
int wm_adsp2_early_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event,
unsigned int freq)
@@ -2710,6 +2753,8 @@ int wm_adsp2_event(struct snd_soc_dapm_widget *w,
if (ret != 0)
goto err;
+ wm_adsp2_lock(dsp, dsp->lock_regions);
+
ret = regmap_update_bits(dsp->regmap,
dsp->base + ADSP2_CONTROL,
ADSP2_CORE_ENA | ADSP2_START,
@@ -2733,6 +2778,8 @@ int wm_adsp2_event(struct snd_soc_dapm_widget *w,
/* Tell the firmware to cleanup */
wm_adsp_signal_event_controls(dsp, WM_ADSP_FW_EVENT_SHUTDOWN);
+ wm_adsp_stop_watchdog(dsp);
+
/* Log firmware state, it can be useful for analysis */
switch (dsp->rev) {
case 0:
@@ -3624,4 +3671,94 @@ int wm_adsp_compr_copy(struct snd_compr_stream *stream, char __user *buf,
}
EXPORT_SYMBOL_GPL(wm_adsp_compr_copy);
+int wm_adsp2_lock(struct wm_adsp *dsp, unsigned int lock_regions)
+{
+ struct regmap *regmap = dsp->regmap;
+ unsigned int code0, code1, lock_reg;
+
+ if (!(lock_regions & WM_ADSP2_REGION_ALL))
+ return 0;
+
+ lock_regions &= WM_ADSP2_REGION_ALL;
+ lock_reg = dsp->base + ADSP2_LOCK_REGION_1_LOCK_REGION_0;
+
+ while (lock_regions) {
+ code0 = code1 = 0;
+ if (lock_regions & BIT(0)) {
+ code0 = ADSP2_LOCK_CODE_0;
+ code1 = ADSP2_LOCK_CODE_1;
+ }
+ if (lock_regions & BIT(1)) {
+ code0 |= ADSP2_LOCK_CODE_0 << ADSP2_LOCK_REGION_SHIFT;
+ code1 |= ADSP2_LOCK_CODE_1 << ADSP2_LOCK_REGION_SHIFT;
+ }
+ regmap_write(regmap, lock_reg, code0);
+ regmap_write(regmap, lock_reg, code1);
+ lock_regions >>= 2;
+ lock_reg += 2;
+ }
+
+ return 0;
+}
+EXPORT_SYMBOL_GPL(wm_adsp2_lock);
+
+irqreturn_t wm_adsp2_bus_error(struct wm_adsp *dsp)
+{
+ unsigned int val;
+ struct regmap *regmap = dsp->regmap;
+ int ret = 0;
+
+ ret = regmap_read(regmap, dsp->base + ADSP2_LOCK_REGION_CTRL, &val);
+ if (ret) {
+ adsp_err(dsp,
+ "Failed to read Region Lock Ctrl register: %d\n", ret);
+ return IRQ_HANDLED;
+ }
+
+ if (val & ADSP2_WDT_TIMEOUT_STS_MASK) {
+ adsp_err(dsp, "watchdog timeout error\n");
+ wm_adsp_stop_watchdog(dsp);
+ }
+
+ if (val & (ADSP2_SLAVE_ERR_MASK | ADSP2_REGION_LOCK_ERR_MASK)) {
+ if (val & ADSP2_SLAVE_ERR_MASK)
+ adsp_err(dsp, "bus error: slave error\n");
+ else
+ adsp_err(dsp, "bus error: region lock error\n");
+
+ ret = regmap_read(regmap, dsp->base + ADSP2_BUS_ERR_ADDR, &val);
+ if (ret) {
+ adsp_err(dsp,
+ "Failed to read Bus Err Addr register: %d\n",
+ ret);
+ return IRQ_HANDLED;
+ }
+
+ adsp_err(dsp, "bus error address = 0x%x\n",
+ val & ADSP2_BUS_ERR_ADDR_MASK);
+
+ ret = regmap_read(regmap,
+ dsp->base + ADSP2_PMEM_ERR_ADDR_XMEM_ERR_ADDR,
+ &val);
+ if (ret) {
+ adsp_err(dsp,
+ "Failed to read Pmem Xmem Err Addr register: %d\n",
+ ret);
+ return IRQ_HANDLED;
+ }
+
+ adsp_err(dsp, "xmem error address = 0x%x\n",
+ val & ADSP2_XMEM_ERR_ADDR_MASK);
+ adsp_err(dsp, "pmem error address = 0x%x\n",
+ (val & ADSP2_PMEM_ERR_ADDR_MASK) >>
+ ADSP2_PMEM_ERR_ADDR_SHIFT);
+ }
+
+ regmap_update_bits(regmap, dsp->base + ADSP2_LOCK_REGION_CTRL,
+ ADSP2_CTRL_ERR_EINT, ADSP2_CTRL_ERR_EINT);
+
+ return IRQ_HANDLED;
+}
+EXPORT_SYMBOL_GPL(wm_adsp2_bus_error);
+
MODULE_LICENSE("GPL v2");
diff --git a/sound/soc/codecs/wm_adsp.h b/sound/soc/codecs/wm_adsp.h
index 997227f4d404..41cc11c19b83 100644
--- a/sound/soc/codecs/wm_adsp.h
+++ b/sound/soc/codecs/wm_adsp.h
@@ -23,6 +23,23 @@
#define WM_ADSP_COMPR_OK 0
#define WM_ADSP_COMPR_VOICE_TRIGGER 1
+#define WM_ADSP2_REGION_0 BIT(0)
+#define WM_ADSP2_REGION_1 BIT(1)
+#define WM_ADSP2_REGION_2 BIT(2)
+#define WM_ADSP2_REGION_3 BIT(3)
+#define WM_ADSP2_REGION_4 BIT(4)
+#define WM_ADSP2_REGION_5 BIT(5)
+#define WM_ADSP2_REGION_6 BIT(6)
+#define WM_ADSP2_REGION_7 BIT(7)
+#define WM_ADSP2_REGION_8 BIT(8)
+#define WM_ADSP2_REGION_9 BIT(9)
+#define WM_ADSP2_REGION_1_9 (WM_ADSP2_REGION_1 | \
+ WM_ADSP2_REGION_2 | WM_ADSP2_REGION_3 | \
+ WM_ADSP2_REGION_4 | WM_ADSP2_REGION_5 | \
+ WM_ADSP2_REGION_6 | WM_ADSP2_REGION_7 | \
+ WM_ADSP2_REGION_8 | WM_ADSP2_REGION_9)
+#define WM_ADSP2_REGION_ALL (WM_ADSP2_REGION_0 | WM_ADSP2_REGION_1_9)
+
struct wm_adsp_region {
int type;
unsigned int base;
@@ -76,6 +93,8 @@ struct wm_adsp {
struct mutex pwr_lock;
+ unsigned int lock_regions;
+
#ifdef CONFIG_DEBUG_FS
struct dentry *debugfs_root;
char *wmfw_file_name;
@@ -114,6 +133,10 @@ int wm_adsp1_event(struct snd_soc_dapm_widget *w,
int wm_adsp2_early_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event,
unsigned int freq);
+
+int wm_adsp2_lock(struct wm_adsp *adsp, unsigned int regions);
+irqreturn_t wm_adsp2_bus_error(struct wm_adsp *adsp);
+
int wm_adsp2_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event);
--
2.11.0
On Wed, Apr 05, 2017 at 02:53:57PM +0100, Richard Fitzgerald wrote:
> On Wed, 2017-04-05 at 14:40 +0100, Mark Brown wrote:
> > Again, this appears to have only data and minor code style changes
> > relative to the existing arizona driver - is there no opportunity for
> > code sharing here?
> I'll have a look at how it would work out.
> My thought was that these two regulator drivers are so small it wasn't
> worth creating an entanglement between arizona and madera for so little
> code.
It's a fairly small amount of code but it's an extremely high proportion
of the code in the driver and doing something a bit unusual, not just
boilerplate.
On Wed, Apr 5, 2017 at 12:07 PM, Richard Fitzgerald
<[email protected]> wrote:
> This patch adds a header file of register definitions for Cirrus
> Logic "Madera" class codecs. These codecs are all based off a common
> set of hardware IP so have a common register map (with a few minor
> device-to-device variations). These are complex devices with a large
> mber of features and so have a correspondingly large register set.
> The registers.h file has been auto-generated from the hardware register
> definitions, stripped down to only registers we need to access from
> the driver.
>
> Signed-off-by: Richard Fitzgerald <[email protected]>
This:
include/linux/mfd/madera/registers.h | 8832 ++++++++++++++++++++++++++++++++++
Get included in all subdrivers I suppose?
So you are broadcasting 8800+ lines into every subdriver across the
entire kernel.
Just the time spent in the preprocessor parsing this will affect compilation
time.
Please implement separation of concerns. Move the register definitions into
the drivers, and if they are too large, atleast make a local include file in
sound/soc for the codec parts so the GPIO subdriver does not have
to churn through all this to get its job done.
I know there are other MFD drivers doing this but it's not a good pattern.
Yours,
Linus Walleij
On Fri, Apr 7, 2017 at 10:27 AM, Linus Walleij <[email protected]> wrote:
> On Wed, Apr 5, 2017 at 12:07 PM, Richard Fitzgerald
> <[email protected]> wrote:
>
>> This patch adds a header file of register definitions for Cirrus
>> Logic "Madera" class codecs. These codecs are all based off a common
>> set of hardware IP so have a common register map (with a few minor
>> device-to-device variations). These are complex devices with a large
>> mber of features and so have a correspondingly large register set.
>> The registers.h file has been auto-generated from the hardware register
>> definitions, stripped down to only registers we need to access from
>> the driver.
>>
>> Signed-off-by: Richard Fitzgerald <[email protected]>
>
> This:
> include/linux/mfd/madera/registers.h | 8832 ++++++++++++++++++++++++++++++++++
>
> Get included in all subdrivers I suppose?
>
> So you are broadcasting 8800+ lines into every subdriver across the
> entire kernel.
>
> Just the time spent in the preprocessor parsing this will affect compilation
> time.
Or maybe this is a necessary sacrifice to get the regmap cache
centralized in MFD. I don't know. I feel stupid.
I guess I should focus on "my" subsystems...
Yours,
Linus Walleij
On Fri, Apr 07, 2017 at 10:30:12AM +0200, Linus Walleij wrote:
> On Fri, Apr 7, 2017 at 10:27 AM, Linus Walleij <[email protected]> wrote:
> > On Wed, Apr 5, 2017 at 12:07 PM, Richard Fitzgerald
> > <[email protected]> wrote:
> >
> >> This patch adds a header file of register definitions for Cirrus
> >> Logic "Madera" class codecs. These codecs are all based off a common
> >> set of hardware IP so have a common register map (with a few minor
> >> device-to-device variations). These are complex devices with a large
> >> mber of features and so have a correspondingly large register set.
> >> The registers.h file has been auto-generated from the hardware register
> >> definitions, stripped down to only registers we need to access from
> >> the driver.
> >>
> >> Signed-off-by: Richard Fitzgerald <[email protected]>
> >
> > This:
> > include/linux/mfd/madera/registers.h | 8832 ++++++++++++++++++++++++++++++++++
> >
> > Get included in all subdrivers I suppose?
> >
> > So you are broadcasting 8800+ lines into every subdriver across the
> > entire kernel.
> >
> > Just the time spent in the preprocessor parsing this will affect compilation
> > time.
>
> Or maybe this is a necessary sacrifice to get the regmap cache
> centralized in MFD. I don't know. I feel stupid.
>
> I guess I should focus on "my" subsystems...
>
This only gets included in files that are part of this driver, it
shouldn't affect compilation time for anyone not building the
madera driver and even then it should only affect compilation
times for the 10 or so C files that make up the driver. Also I
don't really see any other way to specify the registers for the
device.
Thanks,
Charles
On Wed, Apr 5, 2017 at 12:07 PM, Richard Fitzgerald
<[email protected]> wrote:
> These codecs have a variable number of I/O lines each of which
> is individually selectable to a wide range of possible functions.
>
> The functionality is slightly different from the traditional muxed
> GPIO since most of the functions can be mapped to any pin (and even
> the same function to multiple pins). Most pins have a dedicated
> "alternate" function that is only available on that pin. The
> alternate functions are usually a group of signals, though it is
> not always necessary to enable the full group, depending on the
> alternate function and how it is to be used. The mapping between
> alternate functions and GPIO pins varies between codecs depending
> on the number of alternate functions and available pins.
>
> Signed-off-by: Richard Fitzgerald <[email protected]>
> .../bindings/pinctrl/cirrus,madera-pinctrl.txt | 103 ++
This should ideally be split into its own patch but I don't care
much if the DT people are happy.
> +See also
> + the core bindings for the parent MFD driver:
> + Documentation/devicetree/bindings/mfd/madera.txt
> +
> + the generic pinmix bindings:
> + Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
Nice.
> +Required properties of parent mfd node:
> + - pinctrl-names : must be "defaults"
Do you mean "default"
Apart from this the bindings and example look very good to
me, good job! I like it when people "just get it" with pin control
and that is where we need to be with this subsystem.
> +config PINCTRL_MADERA
> + bool
> + default y if MFD_MADERA=y
Isn't it even proper for MFD_MADERA to explicitly
select this driver. I see it hard how the chip would even
work without this. (Maybe it already does select it but then
default y is not necessary.)
> +config PINCTRL_CS47L35
> + bool
> + default y if MFD_CS47L35=y
Similar comment for the subdrivers.
> @@ -17,6 +17,7 @@ obj-$(CONFIG_PINCTRL_AMD) += pinctrl-amd.o
> obj-$(CONFIG_PINCTRL_DA850_PUPD) += pinctrl-da850-pupd.o
> obj-$(CONFIG_PINCTRL_DIGICOLOR) += pinctrl-digicolor.o
> obj-$(CONFIG_PINCTRL_FALCON) += pinctrl-falcon.o
> +obj-$(CONFIG_PINCTRL_MADERA) += pinctrl-madera.o
Is it all in one file... despite all the Kconfig symbols... hm.
I guess we can create drivers/pinctrl/cirrus the day we need more
space.
> +/*
> + * Pins are named after their GPIO number
So don't they have real names? Like the pin name on the underside of
the chip? That is what this naming convention is actually for.
> +/*
> + * All single-pin functions can be mapped to any GPIO, however pinmux applies
> + * functions to pin groups and only those groups declared as supporting that
> + * function. To make this work we must put each pin in its own dummy group so
> + * that the functions can be described as applying to all pins.
> + * Since these do not correspond to anything in the actual hardware - they are
> + * merely an adaptation to pinctrl's view of the world - we use the same name
> + * as the pin to avoid confusion when comparing with datasheet instructions
> + */
> +static const char * const madera_pin_single_group_names[] = {
> + "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
> + "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
> + "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
> + "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
> + "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
> + "gpio36", "gpio37", "gpio38", "gpio39", "gpio40",
> +};
If they are called "gpioN" in the datasheet I guess it is all right.
That is how e.g. the Qualcomm driver is done.
> +#ifdef CONFIG_PINCTRL_CS47L85
So this makes me feel maybe we should create drivers/pinctrl/cirrus
and split this driver into subdrivers per chip like others do.
The coding style document does say that ifdefs are ugly.
Would you consider splitting it up?
> +static void madera_pin_dbg_show(struct pinctrl_dev *pctldev,
> + struct seq_file *s,
> + unsigned int offset)
> +{
> + seq_puts(s, " madera-pinctrl");
> +}
I don't think the pinctrl debugfs callback is compulsory.
It would be nice if this added some actual useful information
about the pin.
> + case PIN_CONFIG_DRIVE_OPEN_DRAIN:
> + mask[0] |= MADERA_GP1_OP_CFG_MASK;
> + conf[0] |= MADERA_GP1_OP_CFG;
> + break;
> + case PIN_CONFIG_DRIVE_PUSH_PULL:
> + mask[0] |= MADERA_GP1_OP_CFG_MASK;
> + conf[0] &= ~MADERA_GP1_OP_CFG;
> + break;
This will be possible to reuse from a GPIO driver as back-end, nice!
> + case PIN_CONFIG_INPUT_DEBOUNCE:
> + mask[0] |= MADERA_GP1_DB_MASK;
> +
> + /*
> + * we can't configure debounce time per-pin so value
> + * is just a flag
> + */
> + val = pinconf_to_config_argument(*configs);
> + if (val)
> + conf[0] |= MADERA_GP1_DB;
> + else
> + conf[0] &= ~MADERA_GP1_DB;
> + break;
This too.
Overall it looks very nice.
Yours,
Linus Walleij
On Wed, Apr 5, 2017 at 12:07 PM, Richard Fitzgerald
<[email protected]> wrote:
> This adds support for the GPIOs on Cirrus Logic Madera class codecs.
A bit terse commit message, could you elaborate a bit on their
specifics?
> .../devicetree/bindings/gpio/gpio-madera.txt | 24 +++
Again should probably be a separate patch. Again, I don't care much
as long as the DT people are happy.
> +++ b/Documentation/devicetree/bindings/gpio/gpio-madera.txt
> @@ -0,0 +1,24 @@
> +Cirrus Logic Madera class audio codecs gpio driver
> +
> +This is a subnode of the parent mfd node.
> +
> +See also the core bindings for the parent MFD driver:
> +See Documentation/devicetree/bindings/mfd/madera.txt
> +
> +Required properties:
> + - compatible : must be "cirrus,madera-gpio"
> + - gpio-controller : Indicates this device is a GPIO controller.
> + - #gpio-cells : Must be 2. The first cell is the pin number. The second cell
> + is reserved for future use and must be zero
> +
> +Example:
> +
> +codec: cs47l85@0 {
> + compatible = "cirrus,cs47l85";
> +
> + gpio {
> + compatible = "cirrus,madera-gpio";
> + gpio-controller;
> + #gpio-cells = <2>;
> + }
Maybe you want to use the gpio-line-names = ; property in the example
to show how nice it is to name the lines?
> +config GPIO_MADERA
> + tristate "Cirrus Logic Madera class codecs"
> + depends on MFD_MADERA
> + help
> + Support for GPIOs on Cirrus Logic Madera class codecs.
I wonder if you should not depend on the pin controller instead.
It seems closer and also likely to act as a back-end for the
GPIOs.
> +static int madera_gpio_get(struct gpio_chip *chip, unsigned int offset)
> +{
> + struct madera_gpio *madera_gpio = gpiochip_get_data(chip);
> + struct madera *madera = madera_gpio->madera;
> + unsigned int val;
> + int ret;
> +
> + ret = regmap_read(madera->regmap,
> + MADERA_GPIO1_CTRL_1 + (2 * offset), &val);
> + if (ret < 0)
> + return ret;
> +
> + if (val & MADERA_GP1_LVL_MASK)
> + return 1;
> + else
> + return 0;
Just do this:
return !!(val & MADERA_GP1_LVL_MASK);
> +static struct gpio_chip template_chip = {
> + .label = "madera",
> + .owner = THIS_MODULE,
> + .direction_input = madera_gpio_direction_in,
> + .get = madera_gpio_get,
> + .direction_output = madera_gpio_direction_out,
> + .set = madera_gpio_set,
> + .can_sleep = true,
> +};
- Implement .get_direction()
Also consider implementing:
- request/free/set_config looking like this:
.request = gpiochip_generic_request,
.free = gpiochip_generic_free,
.set_config = gpiochip_generic_config,
If you also implement the corresponding
.pin_config_set in struct pinconf_ops and
.gpio_request_enable() and .gpio_disable_free()
in struct pinmux_ops, you get a pin control back-end
that will mux in the pins to GPIO mode if they are wrong
set, and also set up debounce and/or open drain for the
GPIO line using the standard GPIO callbacks with pin
control as a back-end.
If you also specify "strict" in struct pinmux_ops you block
the collisions between users of GPIO and other functions
in the pin control driver.
(Please go back and look at your pin control driver
for this.)
Example driver using pin control as GPIO back-end:
drivers/pinctrl/intel/pinctrl-intel.c
Other than this it looks fine.
Yours,
Linus Walleij
On Fri, Apr 7, 2017 at 10:48 AM, Charles Keepax
<[email protected]> wrote:
> On Fri, Apr 07, 2017 at 10:30:12AM +0200, Linus Walleij wrote:
>> On Fri, Apr 7, 2017 at 10:27 AM, Linus Walleij <[email protected]> wrote:
>> > On Wed, Apr 5, 2017 at 12:07 PM, Richard Fitzgerald
>> > <[email protected]> wrote:
>> >
>> >> This patch adds a header file of register definitions for Cirrus
>> >> Logic "Madera" class codecs. These codecs are all based off a common
>> >> set of hardware IP so have a common register map (with a few minor
>> >> device-to-device variations). These are complex devices with a large
>> >> mber of features and so have a correspondingly large register set.
>> >> The registers.h file has been auto-generated from the hardware register
>> >> definitions, stripped down to only registers we need to access from
>> >> the driver.
>> >>
>> >> Signed-off-by: Richard Fitzgerald <[email protected]>
>> >
>> > This:
>> > include/linux/mfd/madera/registers.h | 8832 ++++++++++++++++++++++++++++++++++
>> >
>> > Get included in all subdrivers I suppose?
>> >
>> > So you are broadcasting 8800+ lines into every subdriver across the
>> > entire kernel.
>> >
>> > Just the time spent in the preprocessor parsing this will affect compilation
>> > time.
>>
>> Or maybe this is a necessary sacrifice to get the regmap cache
>> centralized in MFD. I don't know. I feel stupid.
>>
>> I guess I should focus on "my" subsystems...
>>
>
> This only gets included in files that are part of this driver, it
> shouldn't affect compilation time for anyone not building the
> madera driver and even then it should only affect compilation
> times for the 10 or so C files that make up the driver. Also I
> don't really see any other way to specify the registers for the
> device.
No when using regmap cache this seems necessary.
I was just wrong.
Yours,
Linus Walleij
On Fri, 2017-04-07 at 10:54 +0200, Linus Walleij wrote:
> On Wed, Apr 5, 2017 at 12:07 PM, Richard Fitzgerald
> <[email protected]> wrote:
>
> > These codecs have a variable number of I/O lines each of which
> > is individually selectable to a wide range of possible functions.
> >
> > The functionality is slightly different from the traditional muxed
> > GPIO since most of the functions can be mapped to any pin (and even
> > the same function to multiple pins). Most pins have a dedicated
> > "alternate" function that is only available on that pin. The
> > alternate functions are usually a group of signals, though it is
> > not always necessary to enable the full group, depending on the
> > alternate function and how it is to be used. The mapping between
> > alternate functions and GPIO pins varies between codecs depending
> > on the number of alternate functions and available pins.
> >
> > Signed-off-by: Richard Fitzgerald <[email protected]>
>
> > .../bindings/pinctrl/cirrus,madera-pinctrl.txt | 103 ++
>
> This should ideally be split into its own patch but I don't care
> much if the DT people are happy.
>
> > +See also
> > + the core bindings for the parent MFD driver:
> > + Documentation/devicetree/bindings/mfd/madera.txt
> > +
> > + the generic pinmix bindings:
> > + Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
>
> Nice.
>
> > +Required properties of parent mfd node:
> > + - pinctrl-names : must be "defaults"
>
> Do you mean "default"
Yes. I'll fix that.
>
> Apart from this the bindings and example look very good to
> me, good job! I like it when people "just get it" with pin control
> and that is where we need to be with this subsystem.
>
> > +config PINCTRL_MADERA
> > + bool
> > + default y if MFD_MADERA=y
>
There was something special to do with the way dependencies are
processed, but I can't remember right now what that was. I'd have to
take another look at this to see if this "default y" pattern is still
necessary for this driver.
> Isn't it even proper for MFD_MADERA to explicitly
> select this driver. I see it hard how the chip would even
> work without this. (Maybe it already does select it but then
> default y is not necessary.)
> > +config PINCTRL_CS47L35
> > + bool
> > + default y if MFD_CS47L35=y
>
> Similar comment for the subdrivers.
>
> > @@ -17,6 +17,7 @@ obj-$(CONFIG_PINCTRL_AMD) += pinctrl-amd.o
> > obj-$(CONFIG_PINCTRL_DA850_PUPD) += pinctrl-da850-pupd.o
> > obj-$(CONFIG_PINCTRL_DIGICOLOR) += pinctrl-digicolor.o
> > obj-$(CONFIG_PINCTRL_FALCON) += pinctrl-falcon.o
> > +obj-$(CONFIG_PINCTRL_MADERA) += pinctrl-madera.o
>
> Is it all in one file... despite all the Kconfig symbols... hm.
> I guess we can create drivers/pinctrl/cirrus the day we need more
> space.
>
I have no objection to moving the source into pinctrl/cirrus
> > +/*
> > + * Pins are named after their GPIO number
>
> So don't they have real names? Like the pin name on the underside of
> the chip? That is what this naming convention is actually for.
>
Those are real names. Each pin is dual labelled with a "GPIOn" name and
also its alternate function (if it has one). The mapping of alternate
functions to GPIO pins isn't 1:1 across codecs. The GPIOn name is
consistent across codecs. If your pinctrl config is needing to refer to
the pin name, instead of the alternate function group, it can only be to
use it as a GPIO so the GPIO name is more relevant. This is what I was
trying to imply in my comment but using fewer words.
> > +/*
> > + * All single-pin functions can be mapped to any GPIO, however pinmux applies
> > + * functions to pin groups and only those groups declared as supporting that
> > + * function. To make this work we must put each pin in its own dummy group so
> > + * that the functions can be described as applying to all pins.
> > + * Since these do not correspond to anything in the actual hardware - they are
> > + * merely an adaptation to pinctrl's view of the world - we use the same name
> > + * as the pin to avoid confusion when comparing with datasheet instructions
> > + */
> > +static const char * const madera_pin_single_group_names[] = {
> > + "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
> > + "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
> > + "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
> > + "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
> > + "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
> > + "gpio36", "gpio37", "gpio38", "gpio39", "gpio40",
> > +};
>
> If they are called "gpioN" in the datasheet I guess it is all right.
> That is how e.g. the Qualcomm driver is done.
>
> > +#ifdef CONFIG_PINCTRL_CS47L85
>
> So this makes me feel maybe we should create drivers/pinctrl/cirrus
> and split this driver into subdrivers per chip like others do.
>
> The coding style document does say that ifdefs are ugly.
>
> Would you consider splitting it up?
>
I can do that.
> > +static void madera_pin_dbg_show(struct pinctrl_dev *pctldev,
> > + struct seq_file *s,
> > + unsigned int offset)
> > +{
> > + seq_puts(s, " madera-pinctrl");
> > +}
>
> I don't think the pinctrl debugfs callback is compulsory.
> It would be nice if this added some actual useful information
> about the pin.
>
Yes, I'll add some info
>
> > + case PIN_CONFIG_DRIVE_OPEN_DRAIN:
> > + mask[0] |= MADERA_GP1_OP_CFG_MASK;
> > + conf[0] |= MADERA_GP1_OP_CFG;
> > + break;
> > + case PIN_CONFIG_DRIVE_PUSH_PULL:
> > + mask[0] |= MADERA_GP1_OP_CFG_MASK;
> > + conf[0] &= ~MADERA_GP1_OP_CFG;
> > + break;
>
> This will be possible to reuse from a GPIO driver as back-end, nice!
>
>
> > + case PIN_CONFIG_INPUT_DEBOUNCE:
> > + mask[0] |= MADERA_GP1_DB_MASK;
> > +
> > + /*
> > + * we can't configure debounce time per-pin so value
> > + * is just a flag
> > + */
> > + val = pinconf_to_config_argument(*configs);
> > + if (val)
> > + conf[0] |= MADERA_GP1_DB;
> > + else
> > + conf[0] &= ~MADERA_GP1_DB;
> > + break;
>
> This too.
>
> Overall it looks very nice.
>
> Yours,
> Linus Walleij
On Fri, 2017-04-07 at 11:11 +0200, Linus Walleij wrote:
> On Wed, Apr 5, 2017 at 12:07 PM, Richard Fitzgerald
> <[email protected]> wrote:
>
> > This adds support for the GPIOs on Cirrus Logic Madera class codecs.
>
> A bit terse commit message, could you elaborate a bit on their
> specifics?
>
Sure.
> > .../devicetree/bindings/gpio/gpio-madera.txt | 24 +++
>
> Again should probably be a separate patch. Again, I don't care much
> as long as the DT people are happy.
>
> > +++ b/Documentation/devicetree/bindings/gpio/gpio-madera.txt
> > @@ -0,0 +1,24 @@
> > +Cirrus Logic Madera class audio codecs gpio driver
> > +
> > +This is a subnode of the parent mfd node.
> > +
> > +See also the core bindings for the parent MFD driver:
> > +See Documentation/devicetree/bindings/mfd/madera.txt
> > +
> > +Required properties:
> > + - compatible : must be "cirrus,madera-gpio"
> > + - gpio-controller : Indicates this device is a GPIO controller.
> > + - #gpio-cells : Must be 2. The first cell is the pin number. The second cell
> > + is reserved for future use and must be zero
> > +
> > +Example:
> > +
> > +codec: cs47l85@0 {
> > + compatible = "cirrus,cs47l85";
> > +
> > + gpio {
> > + compatible = "cirrus,madera-gpio";
> > + gpio-controller;
> > + #gpio-cells = <2>;
> > + }
>
> Maybe you want to use the gpio-line-names = ; property in the example
> to show how nice it is to name the lines?
>
I'll take a look at that.
> > +config GPIO_MADERA
> > + tristate "Cirrus Logic Madera class codecs"
> > + depends on MFD_MADERA
> > + help
> > + Support for GPIOs on Cirrus Logic Madera class codecs.
>
> I wonder if you should not depend on the pin controller instead.
> It seems closer and also likely to act as a back-end for the
> GPIOs.
>
> > +static int madera_gpio_get(struct gpio_chip *chip, unsigned int offset)
> > +{
> > + struct madera_gpio *madera_gpio = gpiochip_get_data(chip);
> > + struct madera *madera = madera_gpio->madera;
> > + unsigned int val;
> > + int ret;
> > +
> > + ret = regmap_read(madera->regmap,
> > + MADERA_GPIO1_CTRL_1 + (2 * offset), &val);
> > + if (ret < 0)
> > + return ret;
> > +
> > + if (val & MADERA_GP1_LVL_MASK)
> > + return 1;
> > + else
> > + return 0;
>
> Just do this:
>
> return !!(val & MADERA_GP1_LVL_MASK);
>
Ok. Personally I like the clarity of the more verbose version rather
than the !! but I can change it.
> > +static struct gpio_chip template_chip = {
> > + .label = "madera",
> > + .owner = THIS_MODULE,
> > + .direction_input = madera_gpio_direction_in,
> > + .get = madera_gpio_get,
> > + .direction_output = madera_gpio_direction_out,
> > + .set = madera_gpio_set,
> > + .can_sleep = true,
> > +};
>
> - Implement .get_direction()
>
Ok
> Also consider implementing:
>
> - request/free/set_config looking like this:
>
> .request = gpiochip_generic_request,
> .free = gpiochip_generic_free,
> .set_config = gpiochip_generic_config,
>
> If you also implement the corresponding
> .pin_config_set in struct pinconf_ops and
> .gpio_request_enable() and .gpio_disable_free()
> in struct pinmux_ops, you get a pin control back-end
> that will mux in the pins to GPIO mode if they are wrong
> set, and also set up debounce and/or open drain for the
> GPIO line using the standard GPIO callbacks with pin
> control as a back-end.
>
> If you also specify "strict" in struct pinmux_ops you block
> the collisions between users of GPIO and other functions
> in the pin control driver.
>
> (Please go back and look at your pin control driver
> for this.)
>
I'll take a look at these things.
> Example driver using pin control as GPIO back-end:
> drivers/pinctrl/intel/pinctrl-intel.c
>
> Other than this it looks fine.
>
> Yours,
> Linus Walleij
On Fri, Apr 07, 2017 at 11:12:53AM +0200, Linus Walleij wrote:
> On Fri, Apr 7, 2017 at 10:48 AM, Charles Keepax
> > On Fri, Apr 07, 2017 at 10:30:12AM +0200, Linus Walleij wrote:
> >> > Get included in all subdrivers I suppose?
> >> > So you are broadcasting 8800+ lines into every subdriver across the
> >> > entire kernel.
> >> > Just the time spent in the preprocessor parsing this will affect compilation
> >> > time.
> >> Or maybe this is a necessary sacrifice to get the regmap cache
> >> centralized in MFD. I don't know. I feel stupid.
> >> I guess I should focus on "my" subsystems...
> > This only gets included in files that are part of this driver, it
> > shouldn't affect compilation time for anyone not building the
> > madera driver and even then it should only affect compilation
> > times for the 10 or so C files that make up the driver. Also I
> > don't really see any other way to specify the registers for the
> > device.
> No when using regmap cache this seems necessary.
> I was just wrong.
Right. The other thing to bear in mind with things like this is that
often if it's the chip vendor they've got mechanisms to generate the
register definitions directly from the chip design so if we take the
complete thing with minimal edits it's a great way of ensuring we've got
information about the chip in the upstream kernel to support future
development.
On Wed, Apr 05, 2017 at 11:07:54AM +0100, Richard Fitzgerald wrote:
> This patch adds a driver for the internal LDO1 regulator on
> some Cirrus Logic Madera class codecs.
>
> Signed-off-by: Richard Fitzgerald <[email protected]>
> Signed-off-by: Charles Keepax <[email protected]>
> ---
> .../devicetree/bindings/regulator/madera-ldo1.txt | 29 +++
cirrus-madera-ldo1.txt
Or perhaps a subdirectory. We should have done the same for arizona
bindings.
Same question as Mark. Should this share bindings with arizona? The
arizona one looks a bit strange, so not sure we'd want to just copy it.
> MAINTAINERS | 3 +
> drivers/regulator/Kconfig | 8 +
> drivers/regulator/Makefile | 1 +
> drivers/regulator/madera-ldo1.c | 198 +++++++++++++++++++++
> include/linux/regulator/madera-ldo1.h | 24 +++
> 6 files changed, 263 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/regulator/madera-ldo1.txt
> create mode 100644 drivers/regulator/madera-ldo1.c
> create mode 100644 include/linux/regulator/madera-ldo1.h
>
> diff --git a/Documentation/devicetree/bindings/regulator/madera-ldo1.txt b/Documentation/devicetree/bindings/regulator/madera-ldo1.txt
> new file mode 100644
> index 0000000..688f21d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/regulator/madera-ldo1.txt
> @@ -0,0 +1,29 @@
> +Cirrus Logic Madera class audio codecs LDO1 regulator driver
> +
> +Only required if you are using the codec internal LDO1 regulator.
> +This is a subnode of the parent mfd node.
> +
> +See also the core bindings for the parent MFD driver:
> +See Documentation/devicetree/bindings/mfd/madera.txt
> +
> +Required properties:
> + - compatible : must be "cirrus,madera-ldo1"
> + - LDOVDD-supply : Power supply for the LDO1 regulator.
> +
> + - enable-gpio : GPIO to use to enable/disable the regulator.
enable-gpios
And define whether active high or low.
> + As defined in bindings/gpio.txt.
> +
> +Optional subnodes:
> + Standard regulator bindings as described in bindings/regulator/regulator.txt
> +
> +Example:
> +
> +codec: cs47l85@0 {
> + compatible = "cirrus,cs47l85";
> +
> + ldo1 {
> + compatible = "cirrus,madera-ldo1";
> + LDOVDD-supply = <&pmic_vdd1>;
> + enable-gpio = <&gpio 0>;
> + };
> +};
On Wed, Apr 05, 2017 at 11:07:56AM +0100, Richard Fitzgerald wrote:
> The Cirrus Logic Madera codecs (Cirrus Logic CS47L35/85/90/91 and WM1840)
> are highly complex devices containing up to 7 programmable DSPs and many
> other internal sources of interrupts plus a number of GPIOs that can be
> used as interrupt inputs. The large number (>150) of internal interrupt
> sources are managed by an on-board interrupt controller.
>
> This driver provides the handling for the interrupt controller. As the
> codec is accessed via regmap, we can make use of the generic IRQ
> functionality from regmap to do most of the work. Only around half of
> the possible interrupt source are currently of interest from the driver
> so only this subset is defined. Others can be added in future if needed.
>
> The KConfig options are not user-configurable because this driver is
> mandatory so is automatically included when the parent MFD driver is
> selected.
>
> Signed-off-by: Richard Fitzgerald <[email protected]>
> Signed-off-by: Charles Keepax <[email protected]>
> ---
> .../interrupt-controller/cirrus,madera.txt | 31 ++
> MAINTAINERS | 3 +
> drivers/irqchip/Kconfig | 5 +
> drivers/irqchip/Makefile | 1 +
> drivers/irqchip/irq-madera.c | 349 +++++++++++++++++++++
> include/linux/irqchip/irq-madera-pdata.h | 19 ++
> include/linux/irqchip/irq-madera.h | 96 ++++++
> 7 files changed, 504 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/interrupt-controller/cirrus,madera.txt
> create mode 100644 drivers/irqchip/irq-madera.c
> create mode 100644 include/linux/irqchip/irq-madera-pdata.h
> create mode 100644 include/linux/irqchip/irq-madera.h
>
> diff --git a/Documentation/devicetree/bindings/interrupt-controller/cirrus,madera.txt b/Documentation/devicetree/bindings/interrupt-controller/cirrus,madera.txt
> new file mode 100644
> index 0000000..4505315
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/interrupt-controller/cirrus,madera.txt
> @@ -0,0 +1,31 @@
> +Cirrus Logic Madera class audio codec IRQ driver
> +
> +The IRQ properties are members of the parent MFD node.
Just document them in the MFD binding.
> +
> +See also the core bindings for the parent MFD driver:
> +See Documentation/devicetree/bindings/mfd/madera.txt
> +
> +Required properties:
> + - interrupt-controller : Madera class devices contain interrupt controllers
> + and may provide interrupt services to other devices.
> +
> + - #interrupt-cells: the number of cells to describe an IRQ, this should be 2.
> + The first cell is the IRQ number.
> + The second cell is the flags, encoded as the trigger masks from
> + bindings/interrupt-controller/interrupts.txt
> +
> + - interrupts : The interrupt line the /IRQ signal for the device is
> + connected to.
> +
> + - interrupt-parent : The parent interrupt controller.
> +
> +Example:
> +
> +codec: cs47l85@0 {
> + compatible = "cirrus,cs47l85";
> +
> + interrupt-controller;
> + #interrupt-cells = <2>;
> + interrupts = <&host_irq1>;
> + interrupt-parent = <&gic>;
> +};
On Wed, Apr 05, 2017 at 11:07:57AM +0100, Richard Fitzgerald wrote:
> These codecs have a variable number of I/O lines each of which
> is individually selectable to a wide range of possible functions.
>
> The functionality is slightly different from the traditional muxed
> GPIO since most of the functions can be mapped to any pin (and even
> the same function to multiple pins). Most pins have a dedicated
> "alternate" function that is only available on that pin. The
> alternate functions are usually a group of signals, though it is
> not always necessary to enable the full group, depending on the
> alternate function and how it is to be used. The mapping between
> alternate functions and GPIO pins varies between codecs depending
> on the number of alternate functions and available pins.
>
> Signed-off-by: Richard Fitzgerald <[email protected]>
> ---
> .../bindings/pinctrl/cirrus,madera-pinctrl.txt | 103 ++
As Linus said, separate patch is preferred. But I don't have any other
comments, so I'm not going to require it:
Acked-by: Rob Herring <[email protected]>
> MAINTAINERS | 2 +
> drivers/pinctrl/Kconfig | 22 +
> drivers/pinctrl/Makefile | 1 +
> drivers/pinctrl/pinctrl-madera.c | 1092 ++++++++++++++++++++
> 5 files changed, 1220 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/pinctrl/cirrus,madera-pinctrl.txt
> create mode 100644 drivers/pinctrl/pinctrl-madera.c
On Wed, Apr 05, 2017 at 11:08:01AM +0100, Richard Fitzgerald wrote:
> The Cirrus Logic Madera codecs are a family of related codecs with
> extensive digital and analogue I/O, digital mixing and routing,
> signal processing and programmable DSPs.
>
> This patch adds common support code shared by all Madera codecs.
>
> Signed-off-by: Charles Keepax <[email protected]>
> Signed-off-by: Nariman Poushin <[email protected]>
> Signed-off-by: Nikesh Oswal <[email protected]>
> Signed-off-by: Piotr Stankiewicz <[email protected]>
> Signed-off-by: Ajit Pandey <[email protected]>
> Signed-off-by: Richard Fitzgerald <[email protected]>
> ---
> Documentation/devicetree/bindings/sound/madera.txt | 63 +
> MAINTAINERS | 5 +
> include/dt-bindings/sound/madera.h | 18 +
Acked-by: Rob Herring <[email protected]>
> include/sound/madera-pdata.h | 70 +
> sound/soc/codecs/Kconfig | 5 +
> sound/soc/codecs/Makefile | 2 +
> sound/soc/codecs/madera.c | 4430 ++++++++++++++++++++
> sound/soc/codecs/madera.h | 470 +++
> 8 files changed, 5063 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/sound/madera.txt
> create mode 100644 include/dt-bindings/sound/madera.h
> create mode 100644 include/sound/madera-pdata.h
> create mode 100644 sound/soc/codecs/madera.c
> create mode 100644 sound/soc/codecs/madera.h
On Mon, Apr 10, 2017 at 12:49:17PM -0500, Rob Herring wrote:
> Same question as Mark. Should this share bindings with arizona? The
> arizona one looks a bit strange, so not sure we'd want to just copy it.
In what way? Other than the -gpios stuff (which would just be a trivial
thing if we wanted to change it)?
On Mon, Apr 10, 2017 at 1:11 PM, Mark Brown <[email protected]> wrote:
> On Mon, Apr 10, 2017 at 12:49:17PM -0500, Rob Herring wrote:
>
>> Same question as Mark. Should this share bindings with arizona? The
>> arizona one looks a bit strange, so not sure we'd want to just copy it.
>
> In what way? Other than the -gpios stuff (which would just be a trivial
> thing if we wanted to change it)?
That's mainly it. It's not clear which node wlf,ldoena goes in either.
In the parent? ldo1?
Rob
On Tue, Apr 11, 2017 at 02:20:31PM -0500, Rob Herring wrote:
> On Mon, Apr 10, 2017 at 1:11 PM, Mark Brown <[email protected]> wrote:
> > In what way? Other than the -gpios stuff (which would just be a trivial
> > thing if we wanted to change it)?
> That's mainly it.
I don't see that as meaningful or a good reason to duplicate the driver
or the binding, it'd be better to just add the new property and
deprecate the old.
> It's not clear which node wlf,ldoena goes in either.
> In the parent? ldo1?
Parent since it's looked up in device context, this is also something
that it seems better to fix in one binding rather than duplicate.
On Wed, 05 Apr 2017, Richard Fitzgerald wrote:
> This patch adds a header file of register definitions for Cirrus
> Logic "Madera" class codecs. These codecs are all based off a common
> set of hardware IP so have a common register map (with a few minor
> device-to-device variations). These are complex devices with a large
> number of features and so have a correspondingly large register set.
> The registers.h file has been auto-generated from the hardware register
> definitions, stripped down to only registers we need to access from
> the driver.
>
> Signed-off-by: Richard Fitzgerald <[email protected]>
> ---
> MAINTAINERS | 10 +
> include/linux/mfd/madera/registers.h | 8832 ++++++++++++++++++++++++++++++++++
> 2 files changed, 8842 insertions(+)
> create mode 100644 include/linux/mfd/madera/registers.h
For my own reference:
Acked-for-MFD-by: Lee Jones <[email protected]>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 788354d..02995c9 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -3258,6 +3258,16 @@ L: [email protected] (moderated for non-subscribers)
> S: Maintained
> F: sound/soc/codecs/cs*
>
> +CIRRUS LOGIC MADERA CODEC DRIVERS
> +M: Charles Keepax <[email protected]>
> +M: Richard Fitzgerald <[email protected]>
> +L: [email protected] (moderated for non-subscribers)
> +L: [email protected]
> +T: git https://github.com/CirrusLogic/linux-drivers.git
> +W: https://github.com/CirrusLogic/linux-drivers/wiki
> +S: Supported
> +F: include/linux/mfd/madera/*
> +
> CLEANCACHE API
> M: Konrad Rzeszutek Wilk <[email protected]>
> L: [email protected]
> diff --git a/include/linux/mfd/madera/registers.h b/include/linux/mfd/madera/registers.h
> new file mode 100644
> index 0000000..9108c13
> --- /dev/null
> +++ b/include/linux/mfd/madera/registers.h
> @@ -0,0 +1,8832 @@
> +/*
> + * Madera register definitions
> + *
> + * Copyright 2015-2017 Cirrus Logic
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#ifndef MADERA_REGISTERS_H
> +#define MADERA_REGISTERS_H
> +
> +/*
> + * Register Addresses.
> + */
> +#define MADERA_SOFTWARE_RESET 0x00
> +#define MADERA_HARDWARE_REVISION 0x01
> +#define MADERA_CTRL_IF_CFG_1 0x08
> +#define MADERA_CTRL_IF_CFG_2 0x09
> +#define MADERA_CTRL_IF_CFG_3 0x0A
> +#define MADERA_WRITE_SEQUENCER_CTRL_0 0x16
> +#define MADERA_WRITE_SEQUENCER_CTRL_1 0x17
> +#define MADERA_WRITE_SEQUENCER_CTRL_2 0x18
> +#define MADERA_TONE_GENERATOR_1 0x20
> +#define MADERA_TONE_GENERATOR_2 0x21
> +#define MADERA_TONE_GENERATOR_3 0x22
> +#define MADERA_TONE_GENERATOR_4 0x23
> +#define MADERA_TONE_GENERATOR_5 0x24
> +#define MADERA_PWM_DRIVE_1 0x30
> +#define MADERA_PWM_DRIVE_2 0x31
> +#define MADERA_PWM_DRIVE_3 0x32
> +#define MADERA_SEQUENCE_CONTROL 0x41
> +#define MADERA_SAMPLE_RATE_SEQUENCE_SELECT_1 0x61
> +#define MADERA_SAMPLE_RATE_SEQUENCE_SELECT_2 0x62
> +#define MADERA_SAMPLE_RATE_SEQUENCE_SELECT_3 0x63
> +#define MADERA_SAMPLE_RATE_SEQUENCE_SELECT_4 0x64
> +#define MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_1 0x66
> +#define MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_2 0x67
> +#define MADERA_HAPTICS_CONTROL_1 0x90
> +#define MADERA_HAPTICS_CONTROL_2 0x91
> +#define MADERA_HAPTICS_PHASE_1_INTENSITY 0x92
> +#define MADERA_HAPTICS_PHASE_1_DURATION 0x93
> +#define MADERA_HAPTICS_PHASE_2_INTENSITY 0x94
> +#define MADERA_HAPTICS_PHASE_2_DURATION 0x95
> +#define MADERA_HAPTICS_PHASE_3_INTENSITY 0x96
> +#define MADERA_HAPTICS_PHASE_3_DURATION 0x97
> +#define MADERA_HAPTICS_STATUS 0x98
> +#define MADERA_COMFORT_NOISE_GENERATOR 0xA0
> +#define MADERA_CLOCK_32K_1 0x100
> +#define MADERA_SYSTEM_CLOCK_1 0x101
> +#define MADERA_SAMPLE_RATE_1 0x102
> +#define MADERA_SAMPLE_RATE_2 0x103
> +#define MADERA_SAMPLE_RATE_3 0x104
> +#define MADERA_SAMPLE_RATE_1_STATUS 0x10A
> +#define MADERA_SAMPLE_RATE_2_STATUS 0x10B
> +#define MADERA_SAMPLE_RATE_3_STATUS 0x10C
> +#define MADERA_ASYNC_CLOCK_1 0x112
> +#define MADERA_ASYNC_SAMPLE_RATE_1 0x113
> +#define MADERA_ASYNC_SAMPLE_RATE_2 0x114
> +#define MADERA_ASYNC_SAMPLE_RATE_1_STATUS 0x11B
> +#define MADERA_ASYNC_SAMPLE_RATE_2_STATUS 0x11C
> +#define MADERA_DSP_CLOCK_1 0x120
> +#define MADERA_DSP_CLOCK_2 0x122
> +#define MADERA_OUTPUT_SYSTEM_CLOCK 0x149
> +#define MADERA_OUTPUT_ASYNC_CLOCK 0x14A
> +#define MADERA_RATE_ESTIMATOR_1 0x152
> +#define MADERA_RATE_ESTIMATOR_2 0x153
> +#define MADERA_RATE_ESTIMATOR_3 0x154
> +#define MADERA_RATE_ESTIMATOR_4 0x155
> +#define MADERA_RATE_ESTIMATOR_5 0x156
> +#define MADERA_FLL1_CONTROL_1 0x171
> +#define MADERA_FLL1_CONTROL_2 0x172
> +#define MADERA_FLL1_CONTROL_3 0x173
> +#define MADERA_FLL1_CONTROL_4 0x174
> +#define MADERA_FLL1_CONTROL_5 0x175
> +#define MADERA_FLL1_CONTROL_6 0x176
> +#define MADERA_FLL1_LOOP_FILTER_TEST_1 0x177
> +#define MADERA_FLL1_NCO_TEST_0 0x178
> +#define MADERA_FLL1_CONTROL_7 0x179
> +#define MADERA_FLL1_EFS_2 0x17A
> +#define CS47L35_FLL1_SYNCHRONISER_1 0x17F
> +#define CS47L35_FLL1_SYNCHRONISER_2 0x180
> +#define CS47L35_FLL1_SYNCHRONISER_3 0x181
> +#define CS47L35_FLL1_SYNCHRONISER_4 0x182
> +#define CS47L35_FLL1_SYNCHRONISER_5 0x183
> +#define CS47L35_FLL1_SYNCHRONISER_6 0x184
> +#define CS47L35_FLL1_SYNCHRONISER_7 0x185
> +#define CS47L35_FLL1_SPREAD_SPECTRUM 0x187
> +#define CS47L35_FLL1_GPIO_CLOCK 0x188
> +#define MADERA_FLL1_SYNCHRONISER_1 0x181
> +#define MADERA_FLL1_SYNCHRONISER_2 0x182
> +#define MADERA_FLL1_SYNCHRONISER_3 0x183
> +#define MADERA_FLL1_SYNCHRONISER_4 0x184
> +#define MADERA_FLL1_SYNCHRONISER_5 0x185
> +#define MADERA_FLL1_SYNCHRONISER_6 0x186
> +#define MADERA_FLL1_SYNCHRONISER_7 0x187
> +#define MADERA_FLL1_SPREAD_SPECTRUM 0x189
> +#define MADERA_FLL1_GPIO_CLOCK 0x18A
> +#define MADERA_FLL2_CONTROL_1 0x191
> +#define MADERA_FLL2_CONTROL_2 0x192
> +#define MADERA_FLL2_CONTROL_3 0x193
> +#define MADERA_FLL2_CONTROL_4 0x194
> +#define MADERA_FLL2_CONTROL_5 0x195
> +#define MADERA_FLL2_CONTROL_6 0x196
> +#define MADERA_FLL2_LOOP_FILTER_TEST_1 0x197
> +#define MADERA_FLL2_NCO_TEST_0 0x198
> +#define MADERA_FLL2_CONTROL_7 0x199
> +#define MADERA_FLL2_EFS_2 0x19A
> +#define MADERA_FLL2_SYNCHRONISER_1 0x1A1
> +#define MADERA_FLL2_SYNCHRONISER_2 0x1A2
> +#define MADERA_FLL2_SYNCHRONISER_3 0x1A3
> +#define MADERA_FLL2_SYNCHRONISER_4 0x1A4
> +#define MADERA_FLL2_SYNCHRONISER_5 0x1A5
> +#define MADERA_FLL2_SYNCHRONISER_6 0x1A6
> +#define MADERA_FLL2_SYNCHRONISER_7 0x1A7
> +#define MADERA_FLL2_SPREAD_SPECTRUM 0x1A9
> +#define MADERA_FLL2_GPIO_CLOCK 0x1AA
> +#define MADERA_FLL3_CONTROL_1 0x1B1
> +#define MADERA_FLL3_CONTROL_2 0x1B2
> +#define MADERA_FLL3_CONTROL_3 0x1B3
> +#define MADERA_FLL3_CONTROL_4 0x1B4
> +#define MADERA_FLL3_CONTROL_5 0x1B5
> +#define MADERA_FLL3_CONTROL_6 0x1B6
> +#define MADERA_FLL3_LOOP_FILTER_TEST_1 0x1B7
> +#define MADERA_FLL3_NCO_TEST_0 0x1B8
> +#define MADERA_FLL3_CONTROL_7 0x1B9
> +#define MADERA_FLL3_SYNCHRONISER_1 0x1C1
> +#define MADERA_FLL3_SYNCHRONISER_2 0x1C2
> +#define MADERA_FLL3_SYNCHRONISER_3 0x1C3
> +#define MADERA_FLL3_SYNCHRONISER_4 0x1C4
> +#define MADERA_FLL3_SYNCHRONISER_5 0x1C5
> +#define MADERA_FLL3_SYNCHRONISER_6 0x1C6
> +#define MADERA_FLL3_SYNCHRONISER_7 0x1C7
> +#define MADERA_FLL3_SPREAD_SPECTRUM 0x1C9
> +#define MADERA_FLL3_GPIO_CLOCK 0x1CA
> +#define MADERA_FLLAO_CONTROL_1 0x1D1
> +#define MADERA_FLLAO_CONTROL_2 0x1D2
> +#define MADERA_FLLAO_CONTROL_3 0x1D3
> +#define MADERA_FLLAO_CONTROL_4 0x1D4
> +#define MADERA_FLLAO_CONTROL_5 0x1D5
> +#define MADERA_FLLAO_CONTROL_6 0x1D6
> +#define MADERA_FLLAO_CONTROL_7 0x1D8
> +#define MADERA_FLLAO_CONTROL_8 0x1DA
> +#define MADERA_FLLAO_CONTROL_9 0x1DB
> +#define MADERA_FLLAO_CONTROL_10 0x1DC
> +#define MADERA_FLLAO_CONTROL_11 0x1DD
> +#define MADERA_MIC_CHARGE_PUMP_1 0x200
> +#define MADERA_HP_CHARGE_PUMP_8 0x20B
> +#define MADERA_LDO1_CONTROL_1 0x210
> +#define MADERA_LDO2_CONTROL_1 0x213
> +#define MADERA_MIC_BIAS_CTRL_1 0x218
> +#define MADERA_MIC_BIAS_CTRL_2 0x219
> +#define MADERA_MIC_BIAS_CTRL_3 0x21A
> +#define MADERA_MIC_BIAS_CTRL_4 0x21B
> +#define MADERA_MIC_BIAS_CTRL_5 0x21C
> +#define MADERA_MIC_BIAS_CTRL_6 0x21E
> +#define MADERA_HP_CTRL_1L 0x225
> +#define MADERA_HP_CTRL_1R 0x226
> +#define MADERA_HP_CTRL_2L 0x227
> +#define MADERA_HP_CTRL_2R 0x228
> +#define MADERA_HP_CTRL_3L 0x229
> +#define MADERA_HP_CTRL_3R 0x22A
> +#define MADERA_DCS_HP1L_CONTROL 0x232
> +#define MADERA_DCS_HP1R_CONTROL 0x238
> +#define MADERA_EDRE_HP_STEREO_CONTROL 0x27E
> +#define MADERA_ACCESSORY_DETECT_MODE_1 0x293
> +#define MADERA_HEADPHONE_DETECT_0 0x299
> +#define MADERA_HEADPHONE_DETECT_1 0x29B
> +#define MADERA_HEADPHONE_DETECT_2 0x29C
> +#define MADERA_HEADPHONE_DETECT_3 0x29D
> +#define MADERA_HEADPHONE_DETECT_4 0x29E
> +#define MADERA_HEADPHONE_DETECT_5 0x29F
> +#define MADERA_MIC_DETECT_1_CONTROL_0 0x2A2
> +#define MADERA_MIC_DETECT_1_CONTROL_1 0x2A3
> +#define MADERA_MIC_DETECT_1_CONTROL_2 0x2A4
> +#define MADERA_MIC_DETECT_1_CONTROL_3 0x2A5
> +#define MADERA_MIC_DETECT_1_LEVEL_1 0x2A6
> +#define MADERA_MIC_DETECT_1_LEVEL_2 0x2A7
> +#define MADERA_MIC_DETECT_1_LEVEL_3 0x2A8
> +#define MADERA_MIC_DETECT_1_LEVEL_4 0x2A9
> +#define MADERA_MIC_DETECT_1_CONTROL_4 0x2AB
> +#define MADERA_MIC_DETECT_2_CONTROL_0 0x2B2
> +#define MADERA_MIC_DETECT_2_CONTROL_1 0x2B3
> +#define MADERA_MIC_DETECT_2_CONTROL_2 0x2B4
> +#define MADERA_MIC_DETECT_2_CONTROL_3 0x2B5
> +#define MADERA_MIC_DETECT_2_LEVEL_1 0x2B6
> +#define MADERA_MIC_DETECT_2_LEVEL_2 0x2B7
> +#define MADERA_MIC_DETECT_2_LEVEL_3 0x2B8
> +#define MADERA_MIC_DETECT_2_LEVEL_4 0x2B9
> +#define MADERA_MIC_DETECT_2_CONTROL_4 0x2BB
> +#define MADERA_MICD_CLAMP_CONTROL 0x2C6
> +#define MADERA_GP_SWITCH_1 0x2C8
> +#define MADERA_JACK_DETECT_ANALOGUE 0x2D3
> +#define MADERA_INPUT_ENABLES 0x300
> +#define MADERA_INPUT_ENABLES_STATUS 0x301
> +#define MADERA_INPUT_RATE 0x308
> +#define MADERA_INPUT_VOLUME_RAMP 0x309
> +#define MADERA_HPF_CONTROL 0x30C
> +#define MADERA_IN1L_CONTROL 0x310
> +#define MADERA_ADC_DIGITAL_VOLUME_1L 0x311
> +#define MADERA_DMIC1L_CONTROL 0x312
> +#define MADERA_IN1L_RATE_CONTROL 0x313
> +#define MADERA_IN1R_CONTROL 0x314
> +#define MADERA_ADC_DIGITAL_VOLUME_1R 0x315
> +#define MADERA_DMIC1R_CONTROL 0x316
> +#define MADERA_IN1R_RATE_CONTROL 0x317
> +#define MADERA_IN2L_CONTROL 0x318
> +#define MADERA_ADC_DIGITAL_VOLUME_2L 0x319
> +#define MADERA_DMIC2L_CONTROL 0x31A
> +#define MADERA_IN2L_RATE_CONTROL 0x31B
> +#define MADERA_IN2R_CONTROL 0x31C
> +#define MADERA_ADC_DIGITAL_VOLUME_2R 0x31D
> +#define MADERA_DMIC2R_CONTROL 0x31E
> +#define MADERA_IN2R_RATE_CONTROL 0x31F
> +#define MADERA_IN3L_CONTROL 0x320
> +#define MADERA_ADC_DIGITAL_VOLUME_3L 0x321
> +#define MADERA_DMIC3L_CONTROL 0x322
> +#define MADERA_IN3L_RATE_CONTROL 0x323
> +#define MADERA_IN3R_CONTROL 0x324
> +#define MADERA_ADC_DIGITAL_VOLUME_3R 0x325
> +#define MADERA_DMIC3R_CONTROL 0x326
> +#define MADERA_IN3R_RATE_CONTROL 0x327
> +#define MADERA_IN4L_CONTROL 0x328
> +#define MADERA_ADC_DIGITAL_VOLUME_4L 0x329
> +#define MADERA_DMIC4L_CONTROL 0x32A
> +#define MADERA_IN4L_RATE_CONTROL 0x32B
> +#define MADERA_IN4R_CONTROL 0x32C
> +#define MADERA_ADC_DIGITAL_VOLUME_4R 0x32D
> +#define MADERA_DMIC4R_CONTROL 0x32E
> +#define MADERA_IN4R_RATE_CONTROL 0x32F
> +#define MADERA_IN5L_CONTROL 0x330
> +#define MADERA_ADC_DIGITAL_VOLUME_5L 0x331
> +#define MADERA_DMIC5L_CONTROL 0x332
> +#define MADERA_IN5L_RATE_CONTROL 0x333
> +#define MADERA_IN5R_CONTROL 0x334
> +#define MADERA_ADC_DIGITAL_VOLUME_5R 0x335
> +#define MADERA_DMIC5R_CONTROL 0x336
> +#define MADERA_IN5R_RATE_CONTROL 0x337
> +#define MADERA_IN6L_CONTROL 0x338
> +#define MADERA_ADC_DIGITAL_VOLUME_6L 0x339
> +#define MADERA_DMIC6L_CONTROL 0x33A
> +#define MADERA_IN6R_CONTROL 0x33C
> +#define MADERA_ADC_DIGITAL_VOLUME_6R 0x33D
> +#define MADERA_DMIC6R_CONTROL 0x33E
> +#define MADERA_OUTPUT_ENABLES_1 0x400
> +#define MADERA_OUTPUT_STATUS_1 0x401
> +#define MADERA_RAW_OUTPUT_STATUS_1 0x406
> +#define MADERA_OUTPUT_RATE_1 0x408
> +#define MADERA_OUTPUT_VOLUME_RAMP 0x409
> +#define MADERA_OUTPUT_PATH_CONFIG_1L 0x410
> +#define MADERA_DAC_DIGITAL_VOLUME_1L 0x411
> +#define MADERA_OUTPUT_PATH_CONFIG_1 0x412
> +#define MADERA_NOISE_GATE_SELECT_1L 0x413
> +#define MADERA_OUTPUT_PATH_CONFIG_1R 0x414
> +#define MADERA_DAC_DIGITAL_VOLUME_1R 0x415
> +#define MADERA_NOISE_GATE_SELECT_1R 0x417
> +#define MADERA_OUTPUT_PATH_CONFIG_2L 0x418
> +#define MADERA_DAC_DIGITAL_VOLUME_2L 0x419
> +#define MADERA_OUTPUT_PATH_CONFIG_2 0x41A
> +#define MADERA_NOISE_GATE_SELECT_2L 0x41B
> +#define MADERA_OUTPUT_PATH_CONFIG_2R 0x41C
> +#define MADERA_DAC_DIGITAL_VOLUME_2R 0x41D
> +#define MADERA_NOISE_GATE_SELECT_2R 0x41F
> +#define MADERA_OUTPUT_PATH_CONFIG_3L 0x420
> +#define MADERA_DAC_DIGITAL_VOLUME_3L 0x421
> +#define MADERA_NOISE_GATE_SELECT_3L 0x423
> +#define MADERA_OUTPUT_PATH_CONFIG_3R 0x424
> +#define MADERA_DAC_DIGITAL_VOLUME_3R 0x425
> +#define MADERA_NOISE_GATE_SELECT_3R 0x427
> +#define MADERA_OUTPUT_PATH_CONFIG_4L 0x428
> +#define MADERA_DAC_DIGITAL_VOLUME_4L 0x429
> +#define MADERA_NOISE_GATE_SELECT_4L 0x42B
> +#define MADERA_OUTPUT_PATH_CONFIG_4R 0x42C
> +#define MADERA_DAC_DIGITAL_VOLUME_4R 0x42D
> +#define MADERA_NOISE_GATE_SELECT_4R 0x42F
> +#define MADERA_OUTPUT_PATH_CONFIG_5L 0x430
> +#define MADERA_DAC_DIGITAL_VOLUME_5L 0x431
> +#define MADERA_NOISE_GATE_SELECT_5L 0x433
> +#define MADERA_OUTPUT_PATH_CONFIG_5R 0x434
> +#define MADERA_DAC_DIGITAL_VOLUME_5R 0x435
> +#define MADERA_NOISE_GATE_SELECT_5R 0x437
> +#define MADERA_OUTPUT_PATH_CONFIG_6L 0x438
> +#define MADERA_DAC_DIGITAL_VOLUME_6L 0x439
> +#define MADERA_NOISE_GATE_SELECT_6L 0x43B
> +#define MADERA_OUTPUT_PATH_CONFIG_6R 0x43C
> +#define MADERA_DAC_DIGITAL_VOLUME_6R 0x43D
> +#define MADERA_NOISE_GATE_SELECT_6R 0x43F
> +#define MADERA_DRE_ENABLE 0x440
> +#define MADERA_EDRE_ENABLE 0x448
> +#define MADERA_EDRE_MANUAL 0x44A
> +#define MADERA_DAC_AEC_CONTROL_1 0x450
> +#define MADERA_DAC_AEC_CONTROL_2 0x451
> +#define MADERA_NOISE_GATE_CONTROL 0x458
> +#define MADERA_PDM_SPK1_CTRL_1 0x490
> +#define MADERA_PDM_SPK1_CTRL_2 0x491
> +#define MADERA_PDM_SPK2_CTRL_1 0x492
> +#define MADERA_PDM_SPK2_CTRL_2 0x493
> +#define MADERA_HP1_SHORT_CIRCUIT_CTRL 0x4A0
> +#define MADERA_HP2_SHORT_CIRCUIT_CTRL 0x4A1
> +#define MADERA_HP3_SHORT_CIRCUIT_CTRL 0x4A2
> +#define MADERA_HP_TEST_CTRL_1 0x4A4
> +#define MADERA_HP_TEST_CTRL_5 0x4A8
> +#define MADERA_HP_TEST_CTRL_6 0x4A9
> +#define MADERA_AIF1_BCLK_CTRL 0x500
> +#define MADERA_AIF1_TX_PIN_CTRL 0x501
> +#define MADERA_AIF1_RX_PIN_CTRL 0x502
> +#define MADERA_AIF1_RATE_CTRL 0x503
> +#define MADERA_AIF1_FORMAT 0x504
> +#define MADERA_AIF1_RX_BCLK_RATE 0x506
> +#define MADERA_AIF1_FRAME_CTRL_1 0x507
> +#define MADERA_AIF1_FRAME_CTRL_2 0x508
> +#define MADERA_AIF1_FRAME_CTRL_3 0x509
> +#define MADERA_AIF1_FRAME_CTRL_4 0x50A
> +#define MADERA_AIF1_FRAME_CTRL_5 0x50B
> +#define MADERA_AIF1_FRAME_CTRL_6 0x50C
> +#define MADERA_AIF1_FRAME_CTRL_7 0x50D
> +#define MADERA_AIF1_FRAME_CTRL_8 0x50E
> +#define MADERA_AIF1_FRAME_CTRL_9 0x50F
> +#define MADERA_AIF1_FRAME_CTRL_10 0x510
> +#define MADERA_AIF1_FRAME_CTRL_11 0x511
> +#define MADERA_AIF1_FRAME_CTRL_12 0x512
> +#define MADERA_AIF1_FRAME_CTRL_13 0x513
> +#define MADERA_AIF1_FRAME_CTRL_14 0x514
> +#define MADERA_AIF1_FRAME_CTRL_15 0x515
> +#define MADERA_AIF1_FRAME_CTRL_16 0x516
> +#define MADERA_AIF1_FRAME_CTRL_17 0x517
> +#define MADERA_AIF1_FRAME_CTRL_18 0x518
> +#define MADERA_AIF1_TX_ENABLES 0x519
> +#define MADERA_AIF1_RX_ENABLES 0x51A
> +#define MADERA_AIF1_FORCE_WRITE 0x51B
> +#define MADERA_AIF2_BCLK_CTRL 0x540
> +#define MADERA_AIF2_TX_PIN_CTRL 0x541
> +#define MADERA_AIF2_RX_PIN_CTRL 0x542
> +#define MADERA_AIF2_RATE_CTRL 0x543
> +#define MADERA_AIF2_FORMAT 0x544
> +#define MADERA_AIF2_RX_BCLK_RATE 0x546
> +#define MADERA_AIF2_FRAME_CTRL_1 0x547
> +#define MADERA_AIF2_FRAME_CTRL_2 0x548
> +#define MADERA_AIF2_FRAME_CTRL_3 0x549
> +#define MADERA_AIF2_FRAME_CTRL_4 0x54A
> +#define MADERA_AIF2_FRAME_CTRL_5 0x54B
> +#define MADERA_AIF2_FRAME_CTRL_6 0x54C
> +#define MADERA_AIF2_FRAME_CTRL_7 0x54D
> +#define MADERA_AIF2_FRAME_CTRL_8 0x54E
> +#define MADERA_AIF2_FRAME_CTRL_9 0x54F
> +#define MADERA_AIF2_FRAME_CTRL_10 0x550
> +#define MADERA_AIF2_FRAME_CTRL_11 0x551
> +#define MADERA_AIF2_FRAME_CTRL_12 0x552
> +#define MADERA_AIF2_FRAME_CTRL_13 0x553
> +#define MADERA_AIF2_FRAME_CTRL_14 0x554
> +#define MADERA_AIF2_FRAME_CTRL_15 0x555
> +#define MADERA_AIF2_FRAME_CTRL_16 0x556
> +#define MADERA_AIF2_FRAME_CTRL_17 0x557
> +#define MADERA_AIF2_FRAME_CTRL_18 0x558
> +#define MADERA_AIF2_TX_ENABLES 0x559
> +#define MADERA_AIF2_RX_ENABLES 0x55A
> +#define MADERA_AIF2_FORCE_WRITE 0x55B
> +#define MADERA_AIF3_BCLK_CTRL 0x580
> +#define MADERA_AIF3_TX_PIN_CTRL 0x581
> +#define MADERA_AIF3_RX_PIN_CTRL 0x582
> +#define MADERA_AIF3_RATE_CTRL 0x583
> +#define MADERA_AIF3_FORMAT 0x584
> +#define MADERA_AIF3_RX_BCLK_RATE 0x586
> +#define MADERA_AIF3_FRAME_CTRL_1 0x587
> +#define MADERA_AIF3_FRAME_CTRL_2 0x588
> +#define MADERA_AIF3_FRAME_CTRL_3 0x589
> +#define MADERA_AIF3_FRAME_CTRL_4 0x58A
> +#define MADERA_AIF3_FRAME_CTRL_11 0x591
> +#define MADERA_AIF3_FRAME_CTRL_12 0x592
> +#define MADERA_AIF3_TX_ENABLES 0x599
> +#define MADERA_AIF3_RX_ENABLES 0x59A
> +#define MADERA_AIF3_FORCE_WRITE 0x59B
> +#define MADERA_AIF4_BCLK_CTRL 0x5A0
> +#define MADERA_AIF4_TX_PIN_CTRL 0x5A1
> +#define MADERA_AIF4_RX_PIN_CTRL 0x5A2
> +#define MADERA_AIF4_RATE_CTRL 0x5A3
> +#define MADERA_AIF4_FORMAT 0x5A4
> +#define MADERA_AIF4_RX_BCLK_RATE 0x5A6
> +#define MADERA_AIF4_FRAME_CTRL_1 0x5A7
> +#define MADERA_AIF4_FRAME_CTRL_2 0x5A8
> +#define MADERA_AIF4_FRAME_CTRL_3 0x5A9
> +#define MADERA_AIF4_FRAME_CTRL_4 0x5AA
> +#define MADERA_AIF4_FRAME_CTRL_11 0x5B1
> +#define MADERA_AIF4_FRAME_CTRL_12 0x5B2
> +#define MADERA_AIF4_TX_ENABLES 0x5B9
> +#define MADERA_AIF4_RX_ENABLES 0x5BA
> +#define MADERA_AIF4_FORCE_WRITE 0x5BB
> +#define MADERA_SPD1_TX_CONTROL 0x5C2
> +#define MADERA_SPD1_TX_CHANNEL_STATUS_1 0x5C3
> +#define MADERA_SPD1_TX_CHANNEL_STATUS_2 0x5C4
> +#define MADERA_SPD1_TX_CHANNEL_STATUS_3 0x5C5
> +#define MADERA_SLIMBUS_FRAMER_REF_GEAR 0x5E3
> +#define MADERA_SLIMBUS_RATES_1 0x5E5
> +#define MADERA_SLIMBUS_RATES_2 0x5E6
> +#define MADERA_SLIMBUS_RATES_3 0x5E7
> +#define MADERA_SLIMBUS_RATES_4 0x5E8
> +#define MADERA_SLIMBUS_RATES_5 0x5E9
> +#define MADERA_SLIMBUS_RATES_6 0x5EA
> +#define MADERA_SLIMBUS_RATES_7 0x5EB
> +#define MADERA_SLIMBUS_RATES_8 0x5EC
> +#define MADERA_SLIMBUS_RX_CHANNEL_ENABLE 0x5F5
> +#define MADERA_SLIMBUS_TX_CHANNEL_ENABLE 0x5F6
> +#define MADERA_SLIMBUS_RX_PORT_STATUS 0x5F7
> +#define MADERA_SLIMBUS_TX_PORT_STATUS 0x5F8
> +#define MADERA_PWM1MIX_INPUT_1_SOURCE 0x640
> +#define MADERA_PWM1MIX_INPUT_1_VOLUME 0x641
> +#define MADERA_PWM1MIX_INPUT_2_SOURCE 0x642
> +#define MADERA_PWM1MIX_INPUT_2_VOLUME 0x643
> +#define MADERA_PWM1MIX_INPUT_3_SOURCE 0x644
> +#define MADERA_PWM1MIX_INPUT_3_VOLUME 0x645
> +#define MADERA_PWM1MIX_INPUT_4_SOURCE 0x646
> +#define MADERA_PWM1MIX_INPUT_4_VOLUME 0x647
> +#define MADERA_PWM2MIX_INPUT_1_SOURCE 0x648
> +#define MADERA_PWM2MIX_INPUT_1_VOLUME 0x649
> +#define MADERA_PWM2MIX_INPUT_2_SOURCE 0x64A
> +#define MADERA_PWM2MIX_INPUT_2_VOLUME 0x64B
> +#define MADERA_PWM2MIX_INPUT_3_SOURCE 0x64C
> +#define MADERA_PWM2MIX_INPUT_3_VOLUME 0x64D
> +#define MADERA_PWM2MIX_INPUT_4_SOURCE 0x64E
> +#define MADERA_PWM2MIX_INPUT_4_VOLUME 0x64F
> +#define MADERA_OUT1LMIX_INPUT_1_SOURCE 0x680
> +#define MADERA_OUT1LMIX_INPUT_1_VOLUME 0x681
> +#define MADERA_OUT1LMIX_INPUT_2_SOURCE 0x682
> +#define MADERA_OUT1LMIX_INPUT_2_VOLUME 0x683
> +#define MADERA_OUT1LMIX_INPUT_3_SOURCE 0x684
> +#define MADERA_OUT1LMIX_INPUT_3_VOLUME 0x685
> +#define MADERA_OUT1LMIX_INPUT_4_SOURCE 0x686
> +#define MADERA_OUT1LMIX_INPUT_4_VOLUME 0x687
> +#define MADERA_OUT1RMIX_INPUT_1_SOURCE 0x688
> +#define MADERA_OUT1RMIX_INPUT_1_VOLUME 0x689
> +#define MADERA_OUT1RMIX_INPUT_2_SOURCE 0x68A
> +#define MADERA_OUT1RMIX_INPUT_2_VOLUME 0x68B
> +#define MADERA_OUT1RMIX_INPUT_3_SOURCE 0x68C
> +#define MADERA_OUT1RMIX_INPUT_3_VOLUME 0x68D
> +#define MADERA_OUT1RMIX_INPUT_4_SOURCE 0x68E
> +#define MADERA_OUT1RMIX_INPUT_4_VOLUME 0x68F
> +#define MADERA_OUT2LMIX_INPUT_1_SOURCE 0x690
> +#define MADERA_OUT2LMIX_INPUT_1_VOLUME 0x691
> +#define MADERA_OUT2LMIX_INPUT_2_SOURCE 0x692
> +#define MADERA_OUT2LMIX_INPUT_2_VOLUME 0x693
> +#define MADERA_OUT2LMIX_INPUT_3_SOURCE 0x694
> +#define MADERA_OUT2LMIX_INPUT_3_VOLUME 0x695
> +#define MADERA_OUT2LMIX_INPUT_4_SOURCE 0x696
> +#define MADERA_OUT2LMIX_INPUT_4_VOLUME 0x697
> +#define MADERA_OUT2RMIX_INPUT_1_SOURCE 0x698
> +#define MADERA_OUT2RMIX_INPUT_1_VOLUME 0x699
> +#define MADERA_OUT2RMIX_INPUT_2_SOURCE 0x69A
> +#define MADERA_OUT2RMIX_INPUT_2_VOLUME 0x69B
> +#define MADERA_OUT2RMIX_INPUT_3_SOURCE 0x69C
> +#define MADERA_OUT2RMIX_INPUT_3_VOLUME 0x69D
> +#define MADERA_OUT2RMIX_INPUT_4_SOURCE 0x69E
> +#define MADERA_OUT2RMIX_INPUT_4_VOLUME 0x69F
> +#define MADERA_OUT3LMIX_INPUT_1_SOURCE 0x6A0
> +#define MADERA_OUT3LMIX_INPUT_1_VOLUME 0x6A1
> +#define MADERA_OUT3LMIX_INPUT_2_SOURCE 0x6A2
> +#define MADERA_OUT3LMIX_INPUT_2_VOLUME 0x6A3
> +#define MADERA_OUT3LMIX_INPUT_3_SOURCE 0x6A4
> +#define MADERA_OUT3LMIX_INPUT_3_VOLUME 0x6A5
> +#define MADERA_OUT3LMIX_INPUT_4_SOURCE 0x6A6
> +#define MADERA_OUT3LMIX_INPUT_4_VOLUME 0x6A7
> +#define MADERA_OUT3RMIX_INPUT_1_SOURCE 0x6A8
> +#define MADERA_OUT3RMIX_INPUT_1_VOLUME 0x6A9
> +#define MADERA_OUT3RMIX_INPUT_2_SOURCE 0x6AA
> +#define MADERA_OUT3RMIX_INPUT_2_VOLUME 0x6AB
> +#define MADERA_OUT3RMIX_INPUT_3_SOURCE 0x6AC
> +#define MADERA_OUT3RMIX_INPUT_3_VOLUME 0x6AD
> +#define MADERA_OUT3RMIX_INPUT_4_SOURCE 0x6AE
> +#define MADERA_OUT3RMIX_INPUT_4_VOLUME 0x6AF
> +#define MADERA_OUT4LMIX_INPUT_1_SOURCE 0x6B0
> +#define MADERA_OUT4LMIX_INPUT_1_VOLUME 0x6B1
> +#define MADERA_OUT4LMIX_INPUT_2_SOURCE 0x6B2
> +#define MADERA_OUT4LMIX_INPUT_2_VOLUME 0x6B3
> +#define MADERA_OUT4LMIX_INPUT_3_SOURCE 0x6B4
> +#define MADERA_OUT4LMIX_INPUT_3_VOLUME 0x6B5
> +#define MADERA_OUT4LMIX_INPUT_4_SOURCE 0x6B6
> +#define MADERA_OUT4LMIX_INPUT_4_VOLUME 0x6B7
> +#define MADERA_OUT4RMIX_INPUT_1_SOURCE 0x6B8
> +#define MADERA_OUT4RMIX_INPUT_1_VOLUME 0x6B9
> +#define MADERA_OUT4RMIX_INPUT_2_SOURCE 0x6BA
> +#define MADERA_OUT4RMIX_INPUT_2_VOLUME 0x6BB
> +#define MADERA_OUT4RMIX_INPUT_3_SOURCE 0x6BC
> +#define MADERA_OUT4RMIX_INPUT_3_VOLUME 0x6BD
> +#define MADERA_OUT4RMIX_INPUT_4_SOURCE 0x6BE
> +#define MADERA_OUT4RMIX_INPUT_4_VOLUME 0x6BF
> +#define MADERA_OUT5LMIX_INPUT_1_SOURCE 0x6C0
> +#define MADERA_OUT5LMIX_INPUT_1_VOLUME 0x6C1
> +#define MADERA_OUT5LMIX_INPUT_2_SOURCE 0x6C2
> +#define MADERA_OUT5LMIX_INPUT_2_VOLUME 0x6C3
> +#define MADERA_OUT5LMIX_INPUT_3_SOURCE 0x6C4
> +#define MADERA_OUT5LMIX_INPUT_3_VOLUME 0x6C5
> +#define MADERA_OUT5LMIX_INPUT_4_SOURCE 0x6C6
> +#define MADERA_OUT5LMIX_INPUT_4_VOLUME 0x6C7
> +#define MADERA_OUT5RMIX_INPUT_1_SOURCE 0x6C8
> +#define MADERA_OUT5RMIX_INPUT_1_VOLUME 0x6C9
> +#define MADERA_OUT5RMIX_INPUT_2_SOURCE 0x6CA
> +#define MADERA_OUT5RMIX_INPUT_2_VOLUME 0x6CB
> +#define MADERA_OUT5RMIX_INPUT_3_SOURCE 0x6CC
> +#define MADERA_OUT5RMIX_INPUT_3_VOLUME 0x6CD
> +#define MADERA_OUT5RMIX_INPUT_4_SOURCE 0x6CE
> +#define MADERA_OUT5RMIX_INPUT_4_VOLUME 0x6CF
> +#define MADERA_OUT6LMIX_INPUT_1_SOURCE 0x6D0
> +#define MADERA_OUT6LMIX_INPUT_1_VOLUME 0x6D1
> +#define MADERA_OUT6LMIX_INPUT_2_SOURCE 0x6D2
> +#define MADERA_OUT6LMIX_INPUT_2_VOLUME 0x6D3
> +#define MADERA_OUT6LMIX_INPUT_3_SOURCE 0x6D4
> +#define MADERA_OUT6LMIX_INPUT_3_VOLUME 0x6D5
> +#define MADERA_OUT6LMIX_INPUT_4_SOURCE 0x6D6
> +#define MADERA_OUT6LMIX_INPUT_4_VOLUME 0x6D7
> +#define MADERA_OUT6RMIX_INPUT_1_SOURCE 0x6D8
> +#define MADERA_OUT6RMIX_INPUT_1_VOLUME 0x6D9
> +#define MADERA_OUT6RMIX_INPUT_2_SOURCE 0x6DA
> +#define MADERA_OUT6RMIX_INPUT_2_VOLUME 0x6DB
> +#define MADERA_OUT6RMIX_INPUT_3_SOURCE 0x6DC
> +#define MADERA_OUT6RMIX_INPUT_3_VOLUME 0x6DD
> +#define MADERA_OUT6RMIX_INPUT_4_SOURCE 0x6DE
> +#define MADERA_OUT6RMIX_INPUT_4_VOLUME 0x6DF
> +#define MADERA_AIF1TX1MIX_INPUT_1_SOURCE 0x700
> +#define MADERA_AIF1TX1MIX_INPUT_1_VOLUME 0x701
> +#define MADERA_AIF1TX1MIX_INPUT_2_SOURCE 0x702
> +#define MADERA_AIF1TX1MIX_INPUT_2_VOLUME 0x703
> +#define MADERA_AIF1TX1MIX_INPUT_3_SOURCE 0x704
> +#define MADERA_AIF1TX1MIX_INPUT_3_VOLUME 0x705
> +#define MADERA_AIF1TX1MIX_INPUT_4_SOURCE 0x706
> +#define MADERA_AIF1TX1MIX_INPUT_4_VOLUME 0x707
> +#define MADERA_AIF1TX2MIX_INPUT_1_SOURCE 0x708
> +#define MADERA_AIF1TX2MIX_INPUT_1_VOLUME 0x709
> +#define MADERA_AIF1TX2MIX_INPUT_2_SOURCE 0x70A
> +#define MADERA_AIF1TX2MIX_INPUT_2_VOLUME 0x70B
> +#define MADERA_AIF1TX2MIX_INPUT_3_SOURCE 0x70C
> +#define MADERA_AIF1TX2MIX_INPUT_3_VOLUME 0x70D
> +#define MADERA_AIF1TX2MIX_INPUT_4_SOURCE 0x70E
> +#define MADERA_AIF1TX2MIX_INPUT_4_VOLUME 0x70F
> +#define MADERA_AIF1TX3MIX_INPUT_1_SOURCE 0x710
> +#define MADERA_AIF1TX3MIX_INPUT_1_VOLUME 0x711
> +#define MADERA_AIF1TX3MIX_INPUT_2_SOURCE 0x712
> +#define MADERA_AIF1TX3MIX_INPUT_2_VOLUME 0x713
> +#define MADERA_AIF1TX3MIX_INPUT_3_SOURCE 0x714
> +#define MADERA_AIF1TX3MIX_INPUT_3_VOLUME 0x715
> +#define MADERA_AIF1TX3MIX_INPUT_4_SOURCE 0x716
> +#define MADERA_AIF1TX3MIX_INPUT_4_VOLUME 0x717
> +#define MADERA_AIF1TX4MIX_INPUT_1_SOURCE 0x718
> +#define MADERA_AIF1TX4MIX_INPUT_1_VOLUME 0x719
> +#define MADERA_AIF1TX4MIX_INPUT_2_SOURCE 0x71A
> +#define MADERA_AIF1TX4MIX_INPUT_2_VOLUME 0x71B
> +#define MADERA_AIF1TX4MIX_INPUT_3_SOURCE 0x71C
> +#define MADERA_AIF1TX4MIX_INPUT_3_VOLUME 0x71D
> +#define MADERA_AIF1TX4MIX_INPUT_4_SOURCE 0x71E
> +#define MADERA_AIF1TX4MIX_INPUT_4_VOLUME 0x71F
> +#define MADERA_AIF1TX5MIX_INPUT_1_SOURCE 0x720
> +#define MADERA_AIF1TX5MIX_INPUT_1_VOLUME 0x721
> +#define MADERA_AIF1TX5MIX_INPUT_2_SOURCE 0x722
> +#define MADERA_AIF1TX5MIX_INPUT_2_VOLUME 0x723
> +#define MADERA_AIF1TX5MIX_INPUT_3_SOURCE 0x724
> +#define MADERA_AIF1TX5MIX_INPUT_3_VOLUME 0x725
> +#define MADERA_AIF1TX5MIX_INPUT_4_SOURCE 0x726
> +#define MADERA_AIF1TX5MIX_INPUT_4_VOLUME 0x727
> +#define MADERA_AIF1TX6MIX_INPUT_1_SOURCE 0x728
> +#define MADERA_AIF1TX6MIX_INPUT_1_VOLUME 0x729
> +#define MADERA_AIF1TX6MIX_INPUT_2_SOURCE 0x72A
> +#define MADERA_AIF1TX6MIX_INPUT_2_VOLUME 0x72B
> +#define MADERA_AIF1TX6MIX_INPUT_3_SOURCE 0x72C
> +#define MADERA_AIF1TX6MIX_INPUT_3_VOLUME 0x72D
> +#define MADERA_AIF1TX6MIX_INPUT_4_SOURCE 0x72E
> +#define MADERA_AIF1TX6MIX_INPUT_4_VOLUME 0x72F
> +#define MADERA_AIF1TX7MIX_INPUT_1_SOURCE 0x730
> +#define MADERA_AIF1TX7MIX_INPUT_1_VOLUME 0x731
> +#define MADERA_AIF1TX7MIX_INPUT_2_SOURCE 0x732
> +#define MADERA_AIF1TX7MIX_INPUT_2_VOLUME 0x733
> +#define MADERA_AIF1TX7MIX_INPUT_3_SOURCE 0x734
> +#define MADERA_AIF1TX7MIX_INPUT_3_VOLUME 0x735
> +#define MADERA_AIF1TX7MIX_INPUT_4_SOURCE 0x736
> +#define MADERA_AIF1TX7MIX_INPUT_4_VOLUME 0x737
> +#define MADERA_AIF1TX8MIX_INPUT_1_SOURCE 0x738
> +#define MADERA_AIF1TX8MIX_INPUT_1_VOLUME 0x739
> +#define MADERA_AIF1TX8MIX_INPUT_2_SOURCE 0x73A
> +#define MADERA_AIF1TX8MIX_INPUT_2_VOLUME 0x73B
> +#define MADERA_AIF1TX8MIX_INPUT_3_SOURCE 0x73C
> +#define MADERA_AIF1TX8MIX_INPUT_3_VOLUME 0x73D
> +#define MADERA_AIF1TX8MIX_INPUT_4_SOURCE 0x73E
> +#define MADERA_AIF1TX8MIX_INPUT_4_VOLUME 0x73F
> +#define MADERA_AIF2TX1MIX_INPUT_1_SOURCE 0x740
> +#define MADERA_AIF2TX1MIX_INPUT_1_VOLUME 0x741
> +#define MADERA_AIF2TX1MIX_INPUT_2_SOURCE 0x742
> +#define MADERA_AIF2TX1MIX_INPUT_2_VOLUME 0x743
> +#define MADERA_AIF2TX1MIX_INPUT_3_SOURCE 0x744
> +#define MADERA_AIF2TX1MIX_INPUT_3_VOLUME 0x745
> +#define MADERA_AIF2TX1MIX_INPUT_4_SOURCE 0x746
> +#define MADERA_AIF2TX1MIX_INPUT_4_VOLUME 0x747
> +#define MADERA_AIF2TX2MIX_INPUT_1_SOURCE 0x748
> +#define MADERA_AIF2TX2MIX_INPUT_1_VOLUME 0x749
> +#define MADERA_AIF2TX2MIX_INPUT_2_SOURCE 0x74A
> +#define MADERA_AIF2TX2MIX_INPUT_2_VOLUME 0x74B
> +#define MADERA_AIF2TX2MIX_INPUT_3_SOURCE 0x74C
> +#define MADERA_AIF2TX2MIX_INPUT_3_VOLUME 0x74D
> +#define MADERA_AIF2TX2MIX_INPUT_4_SOURCE 0x74E
> +#define MADERA_AIF2TX2MIX_INPUT_4_VOLUME 0x74F
> +#define MADERA_AIF2TX3MIX_INPUT_1_SOURCE 0x750
> +#define MADERA_AIF2TX3MIX_INPUT_1_VOLUME 0x751
> +#define MADERA_AIF2TX3MIX_INPUT_2_SOURCE 0x752
> +#define MADERA_AIF2TX3MIX_INPUT_2_VOLUME 0x753
> +#define MADERA_AIF2TX3MIX_INPUT_3_SOURCE 0x754
> +#define MADERA_AIF2TX3MIX_INPUT_3_VOLUME 0x755
> +#define MADERA_AIF2TX3MIX_INPUT_4_SOURCE 0x756
> +#define MADERA_AIF2TX3MIX_INPUT_4_VOLUME 0x757
> +#define MADERA_AIF2TX4MIX_INPUT_1_SOURCE 0x758
> +#define MADERA_AIF2TX4MIX_INPUT_1_VOLUME 0x759
> +#define MADERA_AIF2TX4MIX_INPUT_2_SOURCE 0x75A
> +#define MADERA_AIF2TX4MIX_INPUT_2_VOLUME 0x75B
> +#define MADERA_AIF2TX4MIX_INPUT_3_SOURCE 0x75C
> +#define MADERA_AIF2TX4MIX_INPUT_3_VOLUME 0x75D
> +#define MADERA_AIF2TX4MIX_INPUT_4_SOURCE 0x75E
> +#define MADERA_AIF2TX4MIX_INPUT_4_VOLUME 0x75F
> +#define MADERA_AIF2TX5MIX_INPUT_1_SOURCE 0x760
> +#define MADERA_AIF2TX5MIX_INPUT_1_VOLUME 0x761
> +#define MADERA_AIF2TX5MIX_INPUT_2_SOURCE 0x762
> +#define MADERA_AIF2TX5MIX_INPUT_2_VOLUME 0x763
> +#define MADERA_AIF2TX5MIX_INPUT_3_SOURCE 0x764
> +#define MADERA_AIF2TX5MIX_INPUT_3_VOLUME 0x765
> +#define MADERA_AIF2TX5MIX_INPUT_4_SOURCE 0x766
> +#define MADERA_AIF2TX5MIX_INPUT_4_VOLUME 0x767
> +#define MADERA_AIF2TX6MIX_INPUT_1_SOURCE 0x768
> +#define MADERA_AIF2TX6MIX_INPUT_1_VOLUME 0x769
> +#define MADERA_AIF2TX6MIX_INPUT_2_SOURCE 0x76A
> +#define MADERA_AIF2TX6MIX_INPUT_2_VOLUME 0x76B
> +#define MADERA_AIF2TX6MIX_INPUT_3_SOURCE 0x76C
> +#define MADERA_AIF2TX6MIX_INPUT_3_VOLUME 0x76D
> +#define MADERA_AIF2TX6MIX_INPUT_4_SOURCE 0x76E
> +#define MADERA_AIF2TX6MIX_INPUT_4_VOLUME 0x76F
> +#define MADERA_AIF2TX7MIX_INPUT_1_SOURCE 0x770
> +#define MADERA_AIF2TX7MIX_INPUT_1_VOLUME 0x771
> +#define MADERA_AIF2TX7MIX_INPUT_2_SOURCE 0x772
> +#define MADERA_AIF2TX7MIX_INPUT_2_VOLUME 0x773
> +#define MADERA_AIF2TX7MIX_INPUT_3_SOURCE 0x774
> +#define MADERA_AIF2TX7MIX_INPUT_3_VOLUME 0x775
> +#define MADERA_AIF2TX7MIX_INPUT_4_SOURCE 0x776
> +#define MADERA_AIF2TX7MIX_INPUT_4_VOLUME 0x777
> +#define MADERA_AIF2TX8MIX_INPUT_1_SOURCE 0x778
> +#define MADERA_AIF2TX8MIX_INPUT_1_VOLUME 0x779
> +#define MADERA_AIF2TX8MIX_INPUT_2_SOURCE 0x77A
> +#define MADERA_AIF2TX8MIX_INPUT_2_VOLUME 0x77B
> +#define MADERA_AIF2TX8MIX_INPUT_3_SOURCE 0x77C
> +#define MADERA_AIF2TX8MIX_INPUT_3_VOLUME 0x77D
> +#define MADERA_AIF2TX8MIX_INPUT_4_SOURCE 0x77E
> +#define MADERA_AIF2TX8MIX_INPUT_4_VOLUME 0x77F
> +#define MADERA_AIF3TX1MIX_INPUT_1_SOURCE 0x780
> +#define MADERA_AIF3TX1MIX_INPUT_1_VOLUME 0x781
> +#define MADERA_AIF3TX1MIX_INPUT_2_SOURCE 0x782
> +#define MADERA_AIF3TX1MIX_INPUT_2_VOLUME 0x783
> +#define MADERA_AIF3TX1MIX_INPUT_3_SOURCE 0x784
> +#define MADERA_AIF3TX1MIX_INPUT_3_VOLUME 0x785
> +#define MADERA_AIF3TX1MIX_INPUT_4_SOURCE 0x786
> +#define MADERA_AIF3TX1MIX_INPUT_4_VOLUME 0x787
> +#define MADERA_AIF3TX2MIX_INPUT_1_SOURCE 0x788
> +#define MADERA_AIF3TX2MIX_INPUT_1_VOLUME 0x789
> +#define MADERA_AIF3TX2MIX_INPUT_2_SOURCE 0x78A
> +#define MADERA_AIF3TX2MIX_INPUT_2_VOLUME 0x78B
> +#define MADERA_AIF3TX2MIX_INPUT_3_SOURCE 0x78C
> +#define MADERA_AIF3TX2MIX_INPUT_3_VOLUME 0x78D
> +#define MADERA_AIF3TX2MIX_INPUT_4_SOURCE 0x78E
> +#define MADERA_AIF3TX2MIX_INPUT_4_VOLUME 0x78F
> +#define MADERA_AIF4TX1MIX_INPUT_1_SOURCE 0x7A0
> +#define MADERA_AIF4TX1MIX_INPUT_1_VOLUME 0x7A1
> +#define MADERA_AIF4TX1MIX_INPUT_2_SOURCE 0x7A2
> +#define MADERA_AIF4TX1MIX_INPUT_2_VOLUME 0x7A3
> +#define MADERA_AIF4TX1MIX_INPUT_3_SOURCE 0x7A4
> +#define MADERA_AIF4TX1MIX_INPUT_3_VOLUME 0x7A5
> +#define MADERA_AIF4TX1MIX_INPUT_4_SOURCE 0x7A6
> +#define MADERA_AIF4TX1MIX_INPUT_4_VOLUME 0x7A7
> +#define MADERA_AIF4TX2MIX_INPUT_1_SOURCE 0x7A8
> +#define MADERA_AIF4TX2MIX_INPUT_1_VOLUME 0x7A9
> +#define MADERA_AIF4TX2MIX_INPUT_2_SOURCE 0x7AA
> +#define MADERA_AIF4TX2MIX_INPUT_2_VOLUME 0x7AB
> +#define MADERA_AIF4TX2MIX_INPUT_3_SOURCE 0x7AC
> +#define MADERA_AIF4TX2MIX_INPUT_3_VOLUME 0x7AD
> +#define MADERA_AIF4TX2MIX_INPUT_4_SOURCE 0x7AE
> +#define MADERA_AIF4TX2MIX_INPUT_4_VOLUME 0x7AF
> +#define MADERA_SLIMTX1MIX_INPUT_1_SOURCE 0x7C0
> +#define MADERA_SLIMTX1MIX_INPUT_1_VOLUME 0x7C1
> +#define MADERA_SLIMTX1MIX_INPUT_2_SOURCE 0x7C2
> +#define MADERA_SLIMTX1MIX_INPUT_2_VOLUME 0x7C3
> +#define MADERA_SLIMTX1MIX_INPUT_3_SOURCE 0x7C4
> +#define MADERA_SLIMTX1MIX_INPUT_3_VOLUME 0x7C5
> +#define MADERA_SLIMTX1MIX_INPUT_4_SOURCE 0x7C6
> +#define MADERA_SLIMTX1MIX_INPUT_4_VOLUME 0x7C7
> +#define MADERA_SLIMTX2MIX_INPUT_1_SOURCE 0x7C8
> +#define MADERA_SLIMTX2MIX_INPUT_1_VOLUME 0x7C9
> +#define MADERA_SLIMTX2MIX_INPUT_2_SOURCE 0x7CA
> +#define MADERA_SLIMTX2MIX_INPUT_2_VOLUME 0x7CB
> +#define MADERA_SLIMTX2MIX_INPUT_3_SOURCE 0x7CC
> +#define MADERA_SLIMTX2MIX_INPUT_3_VOLUME 0x7CD
> +#define MADERA_SLIMTX2MIX_INPUT_4_SOURCE 0x7CE
> +#define MADERA_SLIMTX2MIX_INPUT_4_VOLUME 0x7CF
> +#define MADERA_SLIMTX3MIX_INPUT_1_SOURCE 0x7D0
> +#define MADERA_SLIMTX3MIX_INPUT_1_VOLUME 0x7D1
> +#define MADERA_SLIMTX3MIX_INPUT_2_SOURCE 0x7D2
> +#define MADERA_SLIMTX3MIX_INPUT_2_VOLUME 0x7D3
> +#define MADERA_SLIMTX3MIX_INPUT_3_SOURCE 0x7D4
> +#define MADERA_SLIMTX3MIX_INPUT_3_VOLUME 0x7D5
> +#define MADERA_SLIMTX3MIX_INPUT_4_SOURCE 0x7D6
> +#define MADERA_SLIMTX3MIX_INPUT_4_VOLUME 0x7D7
> +#define MADERA_SLIMTX4MIX_INPUT_1_SOURCE 0x7D8
> +#define MADERA_SLIMTX4MIX_INPUT_1_VOLUME 0x7D9
> +#define MADERA_SLIMTX4MIX_INPUT_2_SOURCE 0x7DA
> +#define MADERA_SLIMTX4MIX_INPUT_2_VOLUME 0x7DB
> +#define MADERA_SLIMTX4MIX_INPUT_3_SOURCE 0x7DC
> +#define MADERA_SLIMTX4MIX_INPUT_3_VOLUME 0x7DD
> +#define MADERA_SLIMTX4MIX_INPUT_4_SOURCE 0x7DE
> +#define MADERA_SLIMTX4MIX_INPUT_4_VOLUME 0x7DF
> +#define MADERA_SLIMTX5MIX_INPUT_1_SOURCE 0x7E0
> +#define MADERA_SLIMTX5MIX_INPUT_1_VOLUME 0x7E1
> +#define MADERA_SLIMTX5MIX_INPUT_2_SOURCE 0x7E2
> +#define MADERA_SLIMTX5MIX_INPUT_2_VOLUME 0x7E3
> +#define MADERA_SLIMTX5MIX_INPUT_3_SOURCE 0x7E4
> +#define MADERA_SLIMTX5MIX_INPUT_3_VOLUME 0x7E5
> +#define MADERA_SLIMTX5MIX_INPUT_4_SOURCE 0x7E6
> +#define MADERA_SLIMTX5MIX_INPUT_4_VOLUME 0x7E7
> +#define MADERA_SLIMTX6MIX_INPUT_1_SOURCE 0x7E8
> +#define MADERA_SLIMTX6MIX_INPUT_1_VOLUME 0x7E9
> +#define MADERA_SLIMTX6MIX_INPUT_2_SOURCE 0x7EA
> +#define MADERA_SLIMTX6MIX_INPUT_2_VOLUME 0x7EB
> +#define MADERA_SLIMTX6MIX_INPUT_3_SOURCE 0x7EC
> +#define MADERA_SLIMTX6MIX_INPUT_3_VOLUME 0x7ED
> +#define MADERA_SLIMTX6MIX_INPUT_4_SOURCE 0x7EE
> +#define MADERA_SLIMTX6MIX_INPUT_4_VOLUME 0x7EF
> +#define MADERA_SLIMTX7MIX_INPUT_1_SOURCE 0x7F0
> +#define MADERA_SLIMTX7MIX_INPUT_1_VOLUME 0x7F1
> +#define MADERA_SLIMTX7MIX_INPUT_2_SOURCE 0x7F2
> +#define MADERA_SLIMTX7MIX_INPUT_2_VOLUME 0x7F3
> +#define MADERA_SLIMTX7MIX_INPUT_3_SOURCE 0x7F4
> +#define MADERA_SLIMTX7MIX_INPUT_3_VOLUME 0x7F5
> +#define MADERA_SLIMTX7MIX_INPUT_4_SOURCE 0x7F6
> +#define MADERA_SLIMTX7MIX_INPUT_4_VOLUME 0x7F7
> +#define MADERA_SLIMTX8MIX_INPUT_1_SOURCE 0x7F8
> +#define MADERA_SLIMTX8MIX_INPUT_1_VOLUME 0x7F9
> +#define MADERA_SLIMTX8MIX_INPUT_2_SOURCE 0x7FA
> +#define MADERA_SLIMTX8MIX_INPUT_2_VOLUME 0x7FB
> +#define MADERA_SLIMTX8MIX_INPUT_3_SOURCE 0x7FC
> +#define MADERA_SLIMTX8MIX_INPUT_3_VOLUME 0x7FD
> +#define MADERA_SLIMTX8MIX_INPUT_4_SOURCE 0x7FE
> +#define MADERA_SLIMTX8MIX_INPUT_4_VOLUME 0x7FF
> +#define MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE 0x800
> +#define MADERA_SPDIF1TX1MIX_INPUT_1_VOLUME 0x801
> +#define MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE 0x808
> +#define MADERA_SPDIF1TX2MIX_INPUT_1_VOLUME 0x809
> +#define MADERA_EQ1MIX_INPUT_1_SOURCE 0x880
> +#define MADERA_EQ1MIX_INPUT_1_VOLUME 0x881
> +#define MADERA_EQ1MIX_INPUT_2_SOURCE 0x882
> +#define MADERA_EQ1MIX_INPUT_2_VOLUME 0x883
> +#define MADERA_EQ1MIX_INPUT_3_SOURCE 0x884
> +#define MADERA_EQ1MIX_INPUT_3_VOLUME 0x885
> +#define MADERA_EQ1MIX_INPUT_4_SOURCE 0x886
> +#define MADERA_EQ1MIX_INPUT_4_VOLUME 0x887
> +#define MADERA_EQ2MIX_INPUT_1_SOURCE 0x888
> +#define MADERA_EQ2MIX_INPUT_1_VOLUME 0x889
> +#define MADERA_EQ2MIX_INPUT_2_SOURCE 0x88A
> +#define MADERA_EQ2MIX_INPUT_2_VOLUME 0x88B
> +#define MADERA_EQ2MIX_INPUT_3_SOURCE 0x88C
> +#define MADERA_EQ2MIX_INPUT_3_VOLUME 0x88D
> +#define MADERA_EQ2MIX_INPUT_4_SOURCE 0x88E
> +#define MADERA_EQ2MIX_INPUT_4_VOLUME 0x88F
> +#define MADERA_EQ3MIX_INPUT_1_SOURCE 0x890
> +#define MADERA_EQ3MIX_INPUT_1_VOLUME 0x891
> +#define MADERA_EQ3MIX_INPUT_2_SOURCE 0x892
> +#define MADERA_EQ3MIX_INPUT_2_VOLUME 0x893
> +#define MADERA_EQ3MIX_INPUT_3_SOURCE 0x894
> +#define MADERA_EQ3MIX_INPUT_3_VOLUME 0x895
> +#define MADERA_EQ3MIX_INPUT_4_SOURCE 0x896
> +#define MADERA_EQ3MIX_INPUT_4_VOLUME 0x897
> +#define MADERA_EQ4MIX_INPUT_1_SOURCE 0x898
> +#define MADERA_EQ4MIX_INPUT_1_VOLUME 0x899
> +#define MADERA_EQ4MIX_INPUT_2_SOURCE 0x89A
> +#define MADERA_EQ4MIX_INPUT_2_VOLUME 0x89B
> +#define MADERA_EQ4MIX_INPUT_3_SOURCE 0x89C
> +#define MADERA_EQ4MIX_INPUT_3_VOLUME 0x89D
> +#define MADERA_EQ4MIX_INPUT_4_SOURCE 0x89E
> +#define MADERA_EQ4MIX_INPUT_4_VOLUME 0x89F
> +#define MADERA_DRC1LMIX_INPUT_1_SOURCE 0x8C0
> +#define MADERA_DRC1LMIX_INPUT_1_VOLUME 0x8C1
> +#define MADERA_DRC1LMIX_INPUT_2_SOURCE 0x8C2
> +#define MADERA_DRC1LMIX_INPUT_2_VOLUME 0x8C3
> +#define MADERA_DRC1LMIX_INPUT_3_SOURCE 0x8C4
> +#define MADERA_DRC1LMIX_INPUT_3_VOLUME 0x8C5
> +#define MADERA_DRC1LMIX_INPUT_4_SOURCE 0x8C6
> +#define MADERA_DRC1LMIX_INPUT_4_VOLUME 0x8C7
> +#define MADERA_DRC1RMIX_INPUT_1_SOURCE 0x8C8
> +#define MADERA_DRC1RMIX_INPUT_1_VOLUME 0x8C9
> +#define MADERA_DRC1RMIX_INPUT_2_SOURCE 0x8CA
> +#define MADERA_DRC1RMIX_INPUT_2_VOLUME 0x8CB
> +#define MADERA_DRC1RMIX_INPUT_3_SOURCE 0x8CC
> +#define MADERA_DRC1RMIX_INPUT_3_VOLUME 0x8CD
> +#define MADERA_DRC1RMIX_INPUT_4_SOURCE 0x8CE
> +#define MADERA_DRC1RMIX_INPUT_4_VOLUME 0x8CF
> +#define MADERA_DRC2LMIX_INPUT_1_SOURCE 0x8D0
> +#define MADERA_DRC2LMIX_INPUT_1_VOLUME 0x8D1
> +#define MADERA_DRC2LMIX_INPUT_2_SOURCE 0x8D2
> +#define MADERA_DRC2LMIX_INPUT_2_VOLUME 0x8D3
> +#define MADERA_DRC2LMIX_INPUT_3_SOURCE 0x8D4
> +#define MADERA_DRC2LMIX_INPUT_3_VOLUME 0x8D5
> +#define MADERA_DRC2LMIX_INPUT_4_SOURCE 0x8D6
> +#define MADERA_DRC2LMIX_INPUT_4_VOLUME 0x8D7
> +#define MADERA_DRC2RMIX_INPUT_1_SOURCE 0x8D8
> +#define MADERA_DRC2RMIX_INPUT_1_VOLUME 0x8D9
> +#define MADERA_DRC2RMIX_INPUT_2_SOURCE 0x8DA
> +#define MADERA_DRC2RMIX_INPUT_2_VOLUME 0x8DB
> +#define MADERA_DRC2RMIX_INPUT_3_SOURCE 0x8DC
> +#define MADERA_DRC2RMIX_INPUT_3_VOLUME 0x8DD
> +#define MADERA_DRC2RMIX_INPUT_4_SOURCE 0x8DE
> +#define MADERA_DRC2RMIX_INPUT_4_VOLUME 0x8DF
> +#define MADERA_HPLP1MIX_INPUT_1_SOURCE 0x900
> +#define MADERA_HPLP1MIX_INPUT_1_VOLUME 0x901
> +#define MADERA_HPLP1MIX_INPUT_2_SOURCE 0x902
> +#define MADERA_HPLP1MIX_INPUT_2_VOLUME 0x903
> +#define MADERA_HPLP1MIX_INPUT_3_SOURCE 0x904
> +#define MADERA_HPLP1MIX_INPUT_3_VOLUME 0x905
> +#define MADERA_HPLP1MIX_INPUT_4_SOURCE 0x906
> +#define MADERA_HPLP1MIX_INPUT_4_VOLUME 0x907
> +#define MADERA_HPLP2MIX_INPUT_1_SOURCE 0x908
> +#define MADERA_HPLP2MIX_INPUT_1_VOLUME 0x909
> +#define MADERA_HPLP2MIX_INPUT_2_SOURCE 0x90A
> +#define MADERA_HPLP2MIX_INPUT_2_VOLUME 0x90B
> +#define MADERA_HPLP2MIX_INPUT_3_SOURCE 0x90C
> +#define MADERA_HPLP2MIX_INPUT_3_VOLUME 0x90D
> +#define MADERA_HPLP2MIX_INPUT_4_SOURCE 0x90E
> +#define MADERA_HPLP2MIX_INPUT_4_VOLUME 0x90F
> +#define MADERA_HPLP3MIX_INPUT_1_SOURCE 0x910
> +#define MADERA_HPLP3MIX_INPUT_1_VOLUME 0x911
> +#define MADERA_HPLP3MIX_INPUT_2_SOURCE 0x912
> +#define MADERA_HPLP3MIX_INPUT_2_VOLUME 0x913
> +#define MADERA_HPLP3MIX_INPUT_3_SOURCE 0x914
> +#define MADERA_HPLP3MIX_INPUT_3_VOLUME 0x915
> +#define MADERA_HPLP3MIX_INPUT_4_SOURCE 0x916
> +#define MADERA_HPLP3MIX_INPUT_4_VOLUME 0x917
> +#define MADERA_HPLP4MIX_INPUT_1_SOURCE 0x918
> +#define MADERA_HPLP4MIX_INPUT_1_VOLUME 0x919
> +#define MADERA_HPLP4MIX_INPUT_2_SOURCE 0x91A
> +#define MADERA_HPLP4MIX_INPUT_2_VOLUME 0x91B
> +#define MADERA_HPLP4MIX_INPUT_3_SOURCE 0x91C
> +#define MADERA_HPLP4MIX_INPUT_3_VOLUME 0x91D
> +#define MADERA_HPLP4MIX_INPUT_4_SOURCE 0x91E
> +#define MADERA_HPLP4MIX_INPUT_4_VOLUME 0x91F
> +#define MADERA_DSP1LMIX_INPUT_1_SOURCE 0x940
> +#define MADERA_DSP1LMIX_INPUT_1_VOLUME 0x941
> +#define MADERA_DSP1LMIX_INPUT_2_SOURCE 0x942
> +#define MADERA_DSP1LMIX_INPUT_2_VOLUME 0x943
> +#define MADERA_DSP1LMIX_INPUT_3_SOURCE 0x944
> +#define MADERA_DSP1LMIX_INPUT_3_VOLUME 0x945
> +#define MADERA_DSP1LMIX_INPUT_4_SOURCE 0x946
> +#define MADERA_DSP1LMIX_INPUT_4_VOLUME 0x947
> +#define MADERA_DSP1RMIX_INPUT_1_SOURCE 0x948
> +#define MADERA_DSP1RMIX_INPUT_1_VOLUME 0x949
> +#define MADERA_DSP1RMIX_INPUT_2_SOURCE 0x94A
> +#define MADERA_DSP1RMIX_INPUT_2_VOLUME 0x94B
> +#define MADERA_DSP1RMIX_INPUT_3_SOURCE 0x94C
> +#define MADERA_DSP1RMIX_INPUT_3_VOLUME 0x94D
> +#define MADERA_DSP1RMIX_INPUT_4_SOURCE 0x94E
> +#define MADERA_DSP1RMIX_INPUT_4_VOLUME 0x94F
> +#define MADERA_DSP1AUX1MIX_INPUT_1_SOURCE 0x950
> +#define MADERA_DSP1AUX2MIX_INPUT_1_SOURCE 0x958
> +#define MADERA_DSP1AUX3MIX_INPUT_1_SOURCE 0x960
> +#define MADERA_DSP1AUX4MIX_INPUT_1_SOURCE 0x968
> +#define MADERA_DSP1AUX5MIX_INPUT_1_SOURCE 0x970
> +#define MADERA_DSP1AUX6MIX_INPUT_1_SOURCE 0x978
> +#define MADERA_DSP2LMIX_INPUT_1_SOURCE 0x980
> +#define MADERA_DSP2LMIX_INPUT_1_VOLUME 0x981
> +#define MADERA_DSP2LMIX_INPUT_2_SOURCE 0x982
> +#define MADERA_DSP2LMIX_INPUT_2_VOLUME 0x983
> +#define MADERA_DSP2LMIX_INPUT_3_SOURCE 0x984
> +#define MADERA_DSP2LMIX_INPUT_3_VOLUME 0x985
> +#define MADERA_DSP2LMIX_INPUT_4_SOURCE 0x986
> +#define MADERA_DSP2LMIX_INPUT_4_VOLUME 0x987
> +#define MADERA_DSP2RMIX_INPUT_1_SOURCE 0x988
> +#define MADERA_DSP2RMIX_INPUT_1_VOLUME 0x989
> +#define MADERA_DSP2RMIX_INPUT_2_SOURCE 0x98A
> +#define MADERA_DSP2RMIX_INPUT_2_VOLUME 0x98B
> +#define MADERA_DSP2RMIX_INPUT_3_SOURCE 0x98C
> +#define MADERA_DSP2RMIX_INPUT_3_VOLUME 0x98D
> +#define MADERA_DSP2RMIX_INPUT_4_SOURCE 0x98E
> +#define MADERA_DSP2RMIX_INPUT_4_VOLUME 0x98F
> +#define MADERA_DSP2AUX1MIX_INPUT_1_SOURCE 0x990
> +#define MADERA_DSP2AUX2MIX_INPUT_1_SOURCE 0x998
> +#define MADERA_DSP2AUX3MIX_INPUT_1_SOURCE 0x9A0
> +#define MADERA_DSP2AUX4MIX_INPUT_1_SOURCE 0x9A8
> +#define MADERA_DSP2AUX5MIX_INPUT_1_SOURCE 0x9B0
> +#define MADERA_DSP2AUX6MIX_INPUT_1_SOURCE 0x9B8
> +#define MADERA_DSP3LMIX_INPUT_1_SOURCE 0x9C0
> +#define MADERA_DSP3LMIX_INPUT_1_VOLUME 0x9C1
> +#define MADERA_DSP3LMIX_INPUT_2_SOURCE 0x9C2
> +#define MADERA_DSP3LMIX_INPUT_2_VOLUME 0x9C3
> +#define MADERA_DSP3LMIX_INPUT_3_SOURCE 0x9C4
> +#define MADERA_DSP3LMIX_INPUT_3_VOLUME 0x9C5
> +#define MADERA_DSP3LMIX_INPUT_4_SOURCE 0x9C6
> +#define MADERA_DSP3LMIX_INPUT_4_VOLUME 0x9C7
> +#define MADERA_DSP3RMIX_INPUT_1_SOURCE 0x9C8
> +#define MADERA_DSP3RMIX_INPUT_1_VOLUME 0x9C9
> +#define MADERA_DSP3RMIX_INPUT_2_SOURCE 0x9CA
> +#define MADERA_DSP3RMIX_INPUT_2_VOLUME 0x9CB
> +#define MADERA_DSP3RMIX_INPUT_3_SOURCE 0x9CC
> +#define MADERA_DSP3RMIX_INPUT_3_VOLUME 0x9CD
> +#define MADERA_DSP3RMIX_INPUT_4_SOURCE 0x9CE
> +#define MADERA_DSP3RMIX_INPUT_4_VOLUME 0x9CF
> +#define MADERA_DSP3AUX1MIX_INPUT_1_SOURCE 0x9D0
> +#define MADERA_DSP3AUX2MIX_INPUT_1_SOURCE 0x9D8
> +#define MADERA_DSP3AUX3MIX_INPUT_1_SOURCE 0x9E0
> +#define MADERA_DSP3AUX4MIX_INPUT_1_SOURCE 0x9E8
> +#define MADERA_DSP3AUX5MIX_INPUT_1_SOURCE 0x9F0
> +#define MADERA_DSP3AUX6MIX_INPUT_1_SOURCE 0x9F8
> +#define MADERA_DSP4LMIX_INPUT_1_SOURCE 0xA00
> +#define MADERA_DSP4LMIX_INPUT_1_VOLUME 0xA01
> +#define MADERA_DSP4LMIX_INPUT_2_SOURCE 0xA02
> +#define MADERA_DSP4LMIX_INPUT_2_VOLUME 0xA03
> +#define MADERA_DSP4LMIX_INPUT_3_SOURCE 0xA04
> +#define MADERA_DSP4LMIX_INPUT_3_VOLUME 0xA05
> +#define MADERA_DSP4LMIX_INPUT_4_SOURCE 0xA06
> +#define MADERA_DSP4LMIX_INPUT_4_VOLUME 0xA07
> +#define MADERA_DSP4RMIX_INPUT_1_SOURCE 0xA08
> +#define MADERA_DSP4RMIX_INPUT_1_VOLUME 0xA09
> +#define MADERA_DSP4RMIX_INPUT_2_SOURCE 0xA0A
> +#define MADERA_DSP4RMIX_INPUT_2_VOLUME 0xA0B
> +#define MADERA_DSP4RMIX_INPUT_3_SOURCE 0xA0C
> +#define MADERA_DSP4RMIX_INPUT_3_VOLUME 0xA0D
> +#define MADERA_DSP4RMIX_INPUT_4_SOURCE 0xA0E
> +#define MADERA_DSP4RMIX_INPUT_4_VOLUME 0xA0F
> +#define MADERA_DSP4AUX1MIX_INPUT_1_SOURCE 0xA10
> +#define MADERA_DSP4AUX2MIX_INPUT_1_SOURCE 0xA18
> +#define MADERA_DSP4AUX3MIX_INPUT_1_SOURCE 0xA20
> +#define MADERA_DSP4AUX4MIX_INPUT_1_SOURCE 0xA28
> +#define MADERA_DSP4AUX5MIX_INPUT_1_SOURCE 0xA30
> +#define MADERA_DSP4AUX6MIX_INPUT_1_SOURCE 0xA38
> +#define MADERA_DSP5LMIX_INPUT_1_SOURCE 0xA40
> +#define MADERA_DSP5LMIX_INPUT_1_VOLUME 0xA41
> +#define MADERA_DSP5LMIX_INPUT_2_SOURCE 0xA42
> +#define MADERA_DSP5LMIX_INPUT_2_VOLUME 0xA43
> +#define MADERA_DSP5LMIX_INPUT_3_SOURCE 0xA44
> +#define MADERA_DSP5LMIX_INPUT_3_VOLUME 0xA45
> +#define MADERA_DSP5LMIX_INPUT_4_SOURCE 0xA46
> +#define MADERA_DSP5LMIX_INPUT_4_VOLUME 0xA47
> +#define MADERA_DSP5RMIX_INPUT_1_SOURCE 0xA48
> +#define MADERA_DSP5RMIX_INPUT_1_VOLUME 0xA49
> +#define MADERA_DSP5RMIX_INPUT_2_SOURCE 0xA4A
> +#define MADERA_DSP5RMIX_INPUT_2_VOLUME 0xA4B
> +#define MADERA_DSP5RMIX_INPUT_3_SOURCE 0xA4C
> +#define MADERA_DSP5RMIX_INPUT_3_VOLUME 0xA4D
> +#define MADERA_DSP5RMIX_INPUT_4_SOURCE 0xA4E
> +#define MADERA_DSP5RMIX_INPUT_4_VOLUME 0xA4F
> +#define MADERA_DSP5AUX1MIX_INPUT_1_SOURCE 0xA50
> +#define MADERA_DSP5AUX2MIX_INPUT_1_SOURCE 0xA58
> +#define MADERA_DSP5AUX3MIX_INPUT_1_SOURCE 0xA60
> +#define MADERA_DSP5AUX4MIX_INPUT_1_SOURCE 0xA68
> +#define MADERA_DSP5AUX5MIX_INPUT_1_SOURCE 0xA70
> +#define MADERA_DSP5AUX6MIX_INPUT_1_SOURCE 0xA78
> +#define MADERA_ASRC1_1LMIX_INPUT_1_SOURCE 0xA80
> +#define MADERA_ASRC1_1RMIX_INPUT_1_SOURCE 0xA88
> +#define MADERA_ASRC1_2LMIX_INPUT_1_SOURCE 0xA90
> +#define MADERA_ASRC1_2RMIX_INPUT_1_SOURCE 0xA98
> +#define MADERA_ASRC2_1LMIX_INPUT_1_SOURCE 0xAA0
> +#define MADERA_ASRC2_1RMIX_INPUT_1_SOURCE 0xAA8
> +#define MADERA_ASRC2_2LMIX_INPUT_1_SOURCE 0xAB0
> +#define MADERA_ASRC2_2RMIX_INPUT_1_SOURCE 0xAB8
> +#define MADERA_ISRC1DEC1MIX_INPUT_1_SOURCE 0xB00
> +#define MADERA_ISRC1DEC2MIX_INPUT_1_SOURCE 0xB08
> +#define MADERA_ISRC1DEC3MIX_INPUT_1_SOURCE 0xB10
> +#define MADERA_ISRC1DEC4MIX_INPUT_1_SOURCE 0xB18
> +#define MADERA_ISRC1INT1MIX_INPUT_1_SOURCE 0xB20
> +#define MADERA_ISRC1INT2MIX_INPUT_1_SOURCE 0xB28
> +#define MADERA_ISRC1INT3MIX_INPUT_1_SOURCE 0xB30
> +#define MADERA_ISRC1INT4MIX_INPUT_1_SOURCE 0xB38
> +#define MADERA_ISRC2DEC1MIX_INPUT_1_SOURCE 0xB40
> +#define MADERA_ISRC2DEC2MIX_INPUT_1_SOURCE 0xB48
> +#define MADERA_ISRC2DEC3MIX_INPUT_1_SOURCE 0xB50
> +#define MADERA_ISRC2DEC4MIX_INPUT_1_SOURCE 0xB58
> +#define MADERA_ISRC2INT1MIX_INPUT_1_SOURCE 0xB60
> +#define MADERA_ISRC2INT2MIX_INPUT_1_SOURCE 0xB68
> +#define MADERA_ISRC2INT3MIX_INPUT_1_SOURCE 0xB70
> +#define MADERA_ISRC2INT4MIX_INPUT_1_SOURCE 0xB78
> +#define MADERA_ISRC3DEC1MIX_INPUT_1_SOURCE 0xB80
> +#define MADERA_ISRC3DEC2MIX_INPUT_1_SOURCE 0xB88
> +#define MADERA_ISRC3DEC3MIX_INPUT_1_SOURCE 0xB90
> +#define MADERA_ISRC3DEC4MIX_INPUT_1_SOURCE 0xB98
> +#define MADERA_ISRC3INT1MIX_INPUT_1_SOURCE 0xBA0
> +#define MADERA_ISRC3INT2MIX_INPUT_1_SOURCE 0xBA8
> +#define MADERA_ISRC3INT3MIX_INPUT_1_SOURCE 0xBB0
> +#define MADERA_ISRC3INT4MIX_INPUT_1_SOURCE 0xBB8
> +#define MADERA_ISRC4DEC1MIX_INPUT_1_SOURCE 0xBC0
> +#define MADERA_ISRC4DEC2MIX_INPUT_1_SOURCE 0xBC8
> +#define MADERA_ISRC4INT1MIX_INPUT_1_SOURCE 0xBE0
> +#define MADERA_ISRC4INT2MIX_INPUT_1_SOURCE 0xBE8
> +#define MADERA_DSP6LMIX_INPUT_1_SOURCE 0xC00
> +#define MADERA_DSP6LMIX_INPUT_1_VOLUME 0xC01
> +#define MADERA_DSP6LMIX_INPUT_2_SOURCE 0xC02
> +#define MADERA_DSP6LMIX_INPUT_2_VOLUME 0xC03
> +#define MADERA_DSP6LMIX_INPUT_3_SOURCE 0xC04
> +#define MADERA_DSP6LMIX_INPUT_3_VOLUME 0xC05
> +#define MADERA_DSP6LMIX_INPUT_4_SOURCE 0xC06
> +#define MADERA_DSP6LMIX_INPUT_4_VOLUME 0xC07
> +#define MADERA_DSP6RMIX_INPUT_1_SOURCE 0xC08
> +#define MADERA_DSP6RMIX_INPUT_1_VOLUME 0xC09
> +#define MADERA_DSP6RMIX_INPUT_2_SOURCE 0xC0A
> +#define MADERA_DSP6RMIX_INPUT_2_VOLUME 0xC0B
> +#define MADERA_DSP6RMIX_INPUT_3_SOURCE 0xC0C
> +#define MADERA_DSP6RMIX_INPUT_3_VOLUME 0xC0D
> +#define MADERA_DSP6RMIX_INPUT_4_SOURCE 0xC0E
> +#define MADERA_DSP6RMIX_INPUT_4_VOLUME 0xC0F
> +#define MADERA_DSP6AUX1MIX_INPUT_1_SOURCE 0xC10
> +#define MADERA_DSP6AUX2MIX_INPUT_1_SOURCE 0xC18
> +#define MADERA_DSP6AUX3MIX_INPUT_1_SOURCE 0xC20
> +#define MADERA_DSP6AUX4MIX_INPUT_1_SOURCE 0xC28
> +#define MADERA_DSP6AUX5MIX_INPUT_1_SOURCE 0xC30
> +#define MADERA_DSP6AUX6MIX_INPUT_1_SOURCE 0xC38
> +#define MADERA_DSP7LMIX_INPUT_1_SOURCE 0xC40
> +#define MADERA_DSP7LMIX_INPUT_1_VOLUME 0xC41
> +#define MADERA_DSP7LMIX_INPUT_2_SOURCE 0xC42
> +#define MADERA_DSP7LMIX_INPUT_2_VOLUME 0xC43
> +#define MADERA_DSP7LMIX_INPUT_3_SOURCE 0xC44
> +#define MADERA_DSP7LMIX_INPUT_3_VOLUME 0xC45
> +#define MADERA_DSP7LMIX_INPUT_4_SOURCE 0xC46
> +#define MADERA_DSP7LMIX_INPUT_4_VOLUME 0xC47
> +#define MADERA_DSP7RMIX_INPUT_1_SOURCE 0xC48
> +#define MADERA_DSP7RMIX_INPUT_1_VOLUME 0xC49
> +#define MADERA_DSP7RMIX_INPUT_2_SOURCE 0xC4A
> +#define MADERA_DSP7RMIX_INPUT_2_VOLUME 0xC4B
> +#define MADERA_DSP7RMIX_INPUT_3_SOURCE 0xC4C
> +#define MADERA_DSP7RMIX_INPUT_3_VOLUME 0xC4D
> +#define MADERA_DSP7RMIX_INPUT_4_SOURCE 0xC4E
> +#define MADERA_DSP7RMIX_INPUT_4_VOLUME 0xC4F
> +#define MADERA_DSP7AUX1MIX_INPUT_1_SOURCE 0xC50
> +#define MADERA_DSP7AUX2MIX_INPUT_1_SOURCE 0xC58
> +#define MADERA_DSP7AUX3MIX_INPUT_1_SOURCE 0xC60
> +#define MADERA_DSP7AUX4MIX_INPUT_1_SOURCE 0xC68
> +#define MADERA_DSP7AUX5MIX_INPUT_1_SOURCE 0xC70
> +#define MADERA_DSP7AUX6MIX_INPUT_1_SOURCE 0xC78
> +#define MADERA_DFC1MIX_INPUT_1_SOURCE 0xDC0
> +#define MADERA_DFC2MIX_INPUT_1_SOURCE 0xDC8
> +#define MADERA_DFC3MIX_INPUT_1_SOURCE 0xDD0
> +#define MADERA_DFC4MIX_INPUT_1_SOURCE 0xDD8
> +#define MADERA_DFC5MIX_INPUT_1_SOURCE 0xDE0
> +#define MADERA_DFC6MIX_INPUT_1_SOURCE 0xDE8
> +#define MADERA_DFC7MIX_INPUT_1_SOURCE 0xDF0
> +#define MADERA_DFC8MIX_INPUT_1_SOURCE 0xDF8
> +#define MADERA_FX_CTRL1 0xE00
> +#define MADERA_FX_CTRL2 0xE01
> +#define MADERA_EQ1_1 0xE10
> +#define MADERA_EQ1_2 0xE11
> +#define MADERA_EQ1_3 0xE12
> +#define MADERA_EQ1_4 0xE13
> +#define MADERA_EQ1_5 0xE14
> +#define MADERA_EQ1_6 0xE15
> +#define MADERA_EQ1_7 0xE16
> +#define MADERA_EQ1_8 0xE17
> +#define MADERA_EQ1_9 0xE18
> +#define MADERA_EQ1_10 0xE19
> +#define MADERA_EQ1_11 0xE1A
> +#define MADERA_EQ1_12 0xE1B
> +#define MADERA_EQ1_13 0xE1C
> +#define MADERA_EQ1_14 0xE1D
> +#define MADERA_EQ1_15 0xE1E
> +#define MADERA_EQ1_16 0xE1F
> +#define MADERA_EQ1_17 0xE20
> +#define MADERA_EQ1_18 0xE21
> +#define MADERA_EQ1_19 0xE22
> +#define MADERA_EQ1_20 0xE23
> +#define MADERA_EQ1_21 0xE24
> +#define MADERA_EQ2_1 0xE26
> +#define MADERA_EQ2_2 0xE27
> +#define MADERA_EQ2_3 0xE28
> +#define MADERA_EQ2_4 0xE29
> +#define MADERA_EQ2_5 0xE2A
> +#define MADERA_EQ2_6 0xE2B
> +#define MADERA_EQ2_7 0xE2C
> +#define MADERA_EQ2_8 0xE2D
> +#define MADERA_EQ2_9 0xE2E
> +#define MADERA_EQ2_10 0xE2F
> +#define MADERA_EQ2_11 0xE30
> +#define MADERA_EQ2_12 0xE31
> +#define MADERA_EQ2_13 0xE32
> +#define MADERA_EQ2_14 0xE33
> +#define MADERA_EQ2_15 0xE34
> +#define MADERA_EQ2_16 0xE35
> +#define MADERA_EQ2_17 0xE36
> +#define MADERA_EQ2_18 0xE37
> +#define MADERA_EQ2_19 0xE38
> +#define MADERA_EQ2_20 0xE39
> +#define MADERA_EQ2_21 0xE3A
> +#define MADERA_EQ3_1 0xE3C
> +#define MADERA_EQ3_2 0xE3D
> +#define MADERA_EQ3_3 0xE3E
> +#define MADERA_EQ3_4 0xE3F
> +#define MADERA_EQ3_5 0xE40
> +#define MADERA_EQ3_6 0xE41
> +#define MADERA_EQ3_7 0xE42
> +#define MADERA_EQ3_8 0xE43
> +#define MADERA_EQ3_9 0xE44
> +#define MADERA_EQ3_10 0xE45
> +#define MADERA_EQ3_11 0xE46
> +#define MADERA_EQ3_12 0xE47
> +#define MADERA_EQ3_13 0xE48
> +#define MADERA_EQ3_14 0xE49
> +#define MADERA_EQ3_15 0xE4A
> +#define MADERA_EQ3_16 0xE4B
> +#define MADERA_EQ3_17 0xE4C
> +#define MADERA_EQ3_18 0xE4D
> +#define MADERA_EQ3_19 0xE4E
> +#define MADERA_EQ3_20 0xE4F
> +#define MADERA_EQ3_21 0xE50
> +#define MADERA_EQ4_1 0xE52
> +#define MADERA_EQ4_2 0xE53
> +#define MADERA_EQ4_3 0xE54
> +#define MADERA_EQ4_4 0xE55
> +#define MADERA_EQ4_5 0xE56
> +#define MADERA_EQ4_6 0xE57
> +#define MADERA_EQ4_7 0xE58
> +#define MADERA_EQ4_8 0xE59
> +#define MADERA_EQ4_9 0xE5A
> +#define MADERA_EQ4_10 0xE5B
> +#define MADERA_EQ4_11 0xE5C
> +#define MADERA_EQ4_12 0xE5D
> +#define MADERA_EQ4_13 0xE5E
> +#define MADERA_EQ4_14 0xE5F
> +#define MADERA_EQ4_15 0xE60
> +#define MADERA_EQ4_16 0xE61
> +#define MADERA_EQ4_17 0xE62
> +#define MADERA_EQ4_18 0xE63
> +#define MADERA_EQ4_19 0xE64
> +#define MADERA_EQ4_20 0xE65
> +#define MADERA_EQ4_21 0xE66
> +#define MADERA_DRC1_CTRL1 0xE80
> +#define MADERA_DRC1_CTRL2 0xE81
> +#define MADERA_DRC1_CTRL3 0xE82
> +#define MADERA_DRC1_CTRL4 0xE83
> +#define MADERA_DRC1_CTRL5 0xE84
> +#define MADERA_DRC2_CTRL1 0xE88
> +#define MADERA_DRC2_CTRL2 0xE89
> +#define MADERA_DRC2_CTRL3 0xE8A
> +#define MADERA_DRC2_CTRL4 0xE8B
> +#define MADERA_DRC2_CTRL5 0xE8C
> +#define MADERA_HPLPF1_1 0xEC0
> +#define MADERA_HPLPF1_2 0xEC1
> +#define MADERA_HPLPF2_1 0xEC4
> +#define MADERA_HPLPF2_2 0xEC5
> +#define MADERA_HPLPF3_1 0xEC8
> +#define MADERA_HPLPF3_2 0xEC9
> +#define MADERA_HPLPF4_1 0xECC
> +#define MADERA_HPLPF4_2 0xECD
> +#define MADERA_ASRC2_ENABLE 0xED0
> +#define MADERA_ASRC2_STATUS 0xED1
> +#define MADERA_ASRC2_RATE1 0xED2
> +#define MADERA_ASRC2_RATE2 0xED3
> +#define MADERA_ASRC1_ENABLE 0xEE0
> +#define MADERA_ASRC1_STATUS 0xEE1
> +#define MADERA_ASRC1_RATE1 0xEE2
> +#define MADERA_ASRC1_RATE2 0xEE3
> +#define MADERA_ISRC_1_CTRL_1 0xEF0
> +#define MADERA_ISRC_1_CTRL_2 0xEF1
> +#define MADERA_ISRC_1_CTRL_3 0xEF2
> +#define MADERA_ISRC_2_CTRL_1 0xEF3
> +#define MADERA_ISRC_2_CTRL_2 0xEF4
> +#define MADERA_ISRC_2_CTRL_3 0xEF5
> +#define MADERA_ISRC_3_CTRL_1 0xEF6
> +#define MADERA_ISRC_3_CTRL_2 0xEF7
> +#define MADERA_ISRC_3_CTRL_3 0xEF8
> +#define MADERA_ISRC_4_CTRL_1 0xEF9
> +#define MADERA_ISRC_4_CTRL_2 0xEFA
> +#define MADERA_ISRC_4_CTRL_3 0xEFB
> +#define MADERA_CLOCK_CONTROL 0xF00
> +#define MADERA_ANC_SRC 0xF01
> +#define MADERA_DSP_STATUS 0xF02
> +#define MADERA_ANC_COEFF_START 0xF08
> +#define MADERA_ANC_COEFF_END 0xF12
> +#define MADERA_FCL_FILTER_CONTROL 0xF15
> +#define MADERA_FCL_ADC_REFORMATTER_CONTROL 0xF17
> +#define MADERA_FCL_COEFF_START 0xF18
> +#define MADERA_FCL_COEFF_END 0xF69
> +#define MADERA_FCR_FILTER_CONTROL 0xF71
> +#define MADERA_FCR_ADC_REFORMATTER_CONTROL 0xF73
> +#define MADERA_FCR_COEFF_START 0xF74
> +#define MADERA_FCR_COEFF_END 0xFC5
> +#define MADERA_DAC_COMP_1 0x1300
> +#define MADERA_DAC_COMP_2 0x1302
> +#define MADERA_FRF_COEFFICIENT_1L_1 0x1380
> +#define MADERA_FRF_COEFFICIENT_1L_2 0x1381
> +#define MADERA_FRF_COEFFICIENT_1L_3 0x1382
> +#define MADERA_FRF_COEFFICIENT_1L_4 0x1383
> +#define MADERA_FRF_COEFFICIENT_1R_1 0x1390
> +#define MADERA_FRF_COEFFICIENT_1R_2 0x1391
> +#define MADERA_FRF_COEFFICIENT_1R_3 0x1392
> +#define MADERA_FRF_COEFFICIENT_1R_4 0x1393
> +#define MADERA_FRF_COEFFICIENT_2L_1 0x13A0
> +#define MADERA_FRF_COEFFICIENT_2L_2 0x13A1
> +#define MADERA_FRF_COEFFICIENT_2L_3 0x13A2
> +#define MADERA_FRF_COEFFICIENT_2L_4 0x13A3
> +#define MADERA_FRF_COEFFICIENT_2R_1 0x13B0
> +#define MADERA_FRF_COEFFICIENT_2R_2 0x13B1
> +#define MADERA_FRF_COEFFICIENT_2R_3 0x13B2
> +#define MADERA_FRF_COEFFICIENT_2R_4 0x13B3
> +#define MADERA_FRF_COEFFICIENT_3L_1 0x13C0
> +#define MADERA_FRF_COEFFICIENT_3L_2 0x13C1
> +#define MADERA_FRF_COEFFICIENT_3L_3 0x13C2
> +#define MADERA_FRF_COEFFICIENT_3L_4 0x13C3
> +#define MADERA_FRF_COEFFICIENT_3R_1 0x13D0
> +#define MADERA_FRF_COEFFICIENT_3R_2 0x13D1
> +#define MADERA_FRF_COEFFICIENT_3R_3 0x13D2
> +#define MADERA_FRF_COEFFICIENT_3R_4 0x13D3
> +#define MADERA_FRF_COEFFICIENT_4L_1 0x13E0
> +#define MADERA_FRF_COEFFICIENT_4L_2 0x13E1
> +#define MADERA_FRF_COEFFICIENT_4L_3 0x13E2
> +#define MADERA_FRF_COEFFICIENT_4L_4 0x13E3
> +#define MADERA_FRF_COEFFICIENT_4R_1 0x13F0
> +#define MADERA_FRF_COEFFICIENT_4R_2 0x13F1
> +#define MADERA_FRF_COEFFICIENT_4R_3 0x13F2
> +#define MADERA_FRF_COEFFICIENT_4R_4 0x13F3
> +#define CS47L35_FRF_COEFFICIENT_4L_1 0x13A0
> +#define CS47L35_FRF_COEFFICIENT_4L_2 0x13A1
> +#define CS47L35_FRF_COEFFICIENT_4L_3 0x13A2
> +#define CS47L35_FRF_COEFFICIENT_4L_4 0x13A3
> +#define CS47L35_FRF_COEFFICIENT_5L_1 0x13B0
> +#define CS47L35_FRF_COEFFICIENT_5L_2 0x13B1
> +#define CS47L35_FRF_COEFFICIENT_5L_3 0x13B2
> +#define CS47L35_FRF_COEFFICIENT_5L_4 0x13B3
> +#define CS47L35_FRF_COEFFICIENT_5R_1 0x13C0
> +#define CS47L35_FRF_COEFFICIENT_5R_2 0x13C1
> +#define CS47L35_FRF_COEFFICIENT_5R_3 0x13C2
> +#define CS47L35_FRF_COEFFICIENT_5R_4 0x13C3
> +#define MADERA_FRF_COEFFICIENT_5L_1 0x1400
> +#define MADERA_FRF_COEFFICIENT_5L_2 0x1401
> +#define MADERA_FRF_COEFFICIENT_5L_3 0x1402
> +#define MADERA_FRF_COEFFICIENT_5L_4 0x1403
> +#define MADERA_FRF_COEFFICIENT_5R_1 0x1410
> +#define MADERA_FRF_COEFFICIENT_5R_2 0x1411
> +#define MADERA_FRF_COEFFICIENT_5R_3 0x1412
> +#define MADERA_FRF_COEFFICIENT_5R_4 0x1413
> +#define MADERA_FRF_COEFFICIENT_6L_1 0x1420
> +#define MADERA_FRF_COEFFICIENT_6L_2 0x1421
> +#define MADERA_FRF_COEFFICIENT_6L_3 0x1422
> +#define MADERA_FRF_COEFFICIENT_6L_4 0x1423
> +#define MADERA_FRF_COEFFICIENT_6R_1 0x1430
> +#define MADERA_FRF_COEFFICIENT_6R_2 0x1431
> +#define MADERA_FRF_COEFFICIENT_6R_3 0x1432
> +#define MADERA_FRF_COEFFICIENT_6R_4 0x1433
> +#define MADERA_DFC1_CTRL 0x1480
> +#define MADERA_DFC1_RX 0x1482
> +#define MADERA_DFC1_TX 0x1484
> +#define MADERA_DFC2_CTRL 0x1486
> +#define MADERA_DFC2_RX 0x1488
> +#define MADERA_DFC2_TX 0x148A
> +#define MADERA_DFC3_CTRL 0x148C
> +#define MADERA_DFC3_RX 0x148E
> +#define MADERA_DFC3_TX 0x1490
> +#define MADERA_DFC4_CTRL 0x1492
> +#define MADERA_DFC4_RX 0x1494
> +#define MADERA_DFC4_TX 0x1496
> +#define MADERA_DFC5_CTRL 0x1498
> +#define MADERA_DFC5_RX 0x149A
> +#define MADERA_DFC5_TX 0x149C
> +#define MADERA_DFC6_CTRL 0x149E
> +#define MADERA_DFC6_RX 0x14A0
> +#define MADERA_DFC6_TX 0x14A2
> +#define MADERA_DFC7_CTRL 0x14A4
> +#define MADERA_DFC7_RX 0x14A6
> +#define MADERA_DFC7_TX 0x14A8
> +#define MADERA_DFC8_CTRL 0x14AA
> +#define MADERA_DFC8_RX 0x14AC
> +#define MADERA_DFC8_TX 0x14AE
> +#define MADERA_DFC_STATUS 0x14B6
> +#define MADERA_ADSP2_IRQ0 0x1600
> +#define MADERA_ADSP2_IRQ1 0x1601
> +#define MADERA_ADSP2_IRQ2 0x1602
> +#define MADERA_ADSP2_IRQ3 0x1603
> +#define MADERA_ADSP2_IRQ4 0x1604
> +#define MADERA_ADSP2_IRQ5 0x1605
> +#define MADERA_ADSP2_IRQ6 0x1606
> +#define MADERA_ADSP2_IRQ7 0x1607
> +#define MADERA_GPIO1_CTRL_1 0x1700
> +#define MADERA_GPIO1_CTRL_2 0x1701
> +#define MADERA_GPIO2_CTRL_1 0x1702
> +#define MADERA_GPIO2_CTRL_2 0x1703
> +#define MADERA_GPIO3_CTRL_1 0x1704
> +#define MADERA_GPIO3_CTRL_2 0x1705
> +#define MADERA_GPIO4_CTRL_1 0x1706
> +#define MADERA_GPIO4_CTRL_2 0x1707
> +#define MADERA_GPIO5_CTRL_1 0x1708
> +#define MADERA_GPIO5_CTRL_2 0x1709
> +#define MADERA_GPIO6_CTRL_1 0x170A
> +#define MADERA_GPIO6_CTRL_2 0x170B
> +#define MADERA_GPIO7_CTRL_1 0x170C
> +#define MADERA_GPIO7_CTRL_2 0x170D
> +#define MADERA_GPIO8_CTRL_1 0x170E
> +#define MADERA_GPIO8_CTRL_2 0x170F
> +#define MADERA_GPIO9_CTRL_1 0x1710
> +#define MADERA_GPIO9_CTRL_2 0x1711
> +#define MADERA_GPIO10_CTRL_1 0x1712
> +#define MADERA_GPIO10_CTRL_2 0x1713
> +#define MADERA_GPIO11_CTRL_1 0x1714
> +#define MADERA_GPIO11_CTRL_2 0x1715
> +#define MADERA_GPIO12_CTRL_1 0x1716
> +#define MADERA_GPIO12_CTRL_2 0x1717
> +#define MADERA_GPIO13_CTRL_1 0x1718
> +#define MADERA_GPIO13_CTRL_2 0x1719
> +#define MADERA_GPIO14_CTRL_1 0x171A
> +#define MADERA_GPIO14_CTRL_2 0x171B
> +#define MADERA_GPIO15_CTRL_1 0x171C
> +#define MADERA_GPIO15_CTRL_2 0x171D
> +#define MADERA_GPIO16_CTRL_1 0x171E
> +#define MADERA_GPIO16_CTRL_2 0x171F
> +#define MADERA_GPIO17_CTRL_1 0x1720
> +#define MADERA_GPIO17_CTRL_2 0x1721
> +#define MADERA_GPIO18_CTRL_1 0x1722
> +#define MADERA_GPIO18_CTRL_2 0x1723
> +#define MADERA_GPIO19_CTRL_1 0x1724
> +#define MADERA_GPIO19_CTRL_2 0x1725
> +#define MADERA_GPIO20_CTRL_1 0x1726
> +#define MADERA_GPIO20_CTRL_2 0x1727
> +#define MADERA_GPIO21_CTRL_1 0x1728
> +#define MADERA_GPIO21_CTRL_2 0x1729
> +#define MADERA_GPIO22_CTRL_1 0x172A
> +#define MADERA_GPIO22_CTRL_2 0x172B
> +#define MADERA_GPIO23_CTRL_1 0x172C
> +#define MADERA_GPIO23_CTRL_2 0x172D
> +#define MADERA_GPIO24_CTRL_1 0x172E
> +#define MADERA_GPIO24_CTRL_2 0x172F
> +#define MADERA_GPIO25_CTRL_1 0x1730
> +#define MADERA_GPIO25_CTRL_2 0x1731
> +#define MADERA_GPIO26_CTRL_1 0x1732
> +#define MADERA_GPIO26_CTRL_2 0x1733
> +#define MADERA_GPIO27_CTRL_1 0x1734
> +#define MADERA_GPIO27_CTRL_2 0x1735
> +#define MADERA_GPIO28_CTRL_1 0x1736
> +#define MADERA_GPIO28_CTRL_2 0x1737
> +#define MADERA_GPIO29_CTRL_1 0x1738
> +#define MADERA_GPIO29_CTRL_2 0x1739
> +#define MADERA_GPIO30_CTRL_1 0x173A
> +#define MADERA_GPIO30_CTRL_2 0x173B
> +#define MADERA_GPIO31_CTRL_1 0x173C
> +#define MADERA_GPIO31_CTRL_2 0x173D
> +#define MADERA_GPIO32_CTRL_1 0x173E
> +#define MADERA_GPIO32_CTRL_2 0x173F
> +#define MADERA_GPIO33_CTRL_1 0x1740
> +#define MADERA_GPIO33_CTRL_2 0x1741
> +#define MADERA_GPIO34_CTRL_1 0x1742
> +#define MADERA_GPIO34_CTRL_2 0x1743
> +#define MADERA_GPIO35_CTRL_1 0x1744
> +#define MADERA_GPIO35_CTRL_2 0x1745
> +#define MADERA_GPIO36_CTRL_1 0x1746
> +#define MADERA_GPIO36_CTRL_2 0x1747
> +#define MADERA_GPIO37_CTRL_1 0x1748
> +#define MADERA_GPIO37_CTRL_2 0x1749
> +#define MADERA_GPIO38_CTRL_1 0x174A
> +#define MADERA_GPIO38_CTRL_2 0x174B
> +#define MADERA_GPIO39_CTRL_1 0x174C
> +#define MADERA_GPIO39_CTRL_2 0x174D
> +#define MADERA_GPIO40_CTRL_1 0x174E
> +#define MADERA_GPIO40_CTRL_2 0x174F
> +#define MADERA_IRQ1_STATUS_1 0x1800
> +#define MADERA_IRQ1_STATUS_2 0x1801
> +#define MADERA_IRQ1_STATUS_3 0x1802
> +#define MADERA_IRQ1_STATUS_4 0x1803
> +#define MADERA_IRQ1_STATUS_5 0x1804
> +#define MADERA_IRQ1_STATUS_6 0x1805
> +#define MADERA_IRQ1_STATUS_7 0x1806
> +#define MADERA_IRQ1_STATUS_8 0x1807
> +#define MADERA_IRQ1_STATUS_9 0x1808
> +#define MADERA_IRQ1_STATUS_10 0x1809
> +#define MADERA_IRQ1_STATUS_11 0x180A
> +#define MADERA_IRQ1_STATUS_12 0x180B
> +#define MADERA_IRQ1_STATUS_13 0x180C
> +#define MADERA_IRQ1_STATUS_14 0x180D
> +#define MADERA_IRQ1_STATUS_15 0x180E
> +#define MADERA_IRQ1_STATUS_16 0x180F
> +#define MADERA_IRQ1_STATUS_17 0x1810
> +#define MADERA_IRQ1_STATUS_18 0x1811
> +#define MADERA_IRQ1_STATUS_19 0x1812
> +#define MADERA_IRQ1_STATUS_20 0x1813
> +#define MADERA_IRQ1_STATUS_21 0x1814
> +#define MADERA_IRQ1_STATUS_22 0x1815
> +#define MADERA_IRQ1_STATUS_23 0x1816
> +#define MADERA_IRQ1_STATUS_24 0x1817
> +#define MADERA_IRQ1_STATUS_25 0x1818
> +#define MADERA_IRQ1_STATUS_26 0x1819
> +#define MADERA_IRQ1_STATUS_27 0x181A
> +#define MADERA_IRQ1_STATUS_28 0x181B
> +#define MADERA_IRQ1_STATUS_29 0x181C
> +#define MADERA_IRQ1_STATUS_30 0x181D
> +#define MADERA_IRQ1_STATUS_31 0x181E
> +#define MADERA_IRQ1_STATUS_32 0x181F
> +#define MADERA_IRQ1_STATUS_33 0x1820
> +#define MADERA_IRQ1_MASK_1 0x1840
> +#define MADERA_IRQ1_MASK_2 0x1841
> +#define MADERA_IRQ1_MASK_3 0x1842
> +#define MADERA_IRQ1_MASK_4 0x1843
> +#define MADERA_IRQ1_MASK_5 0x1844
> +#define MADERA_IRQ1_MASK_6 0x1845
> +#define MADERA_IRQ1_MASK_7 0x1846
> +#define MADERA_IRQ1_MASK_8 0x1847
> +#define MADERA_IRQ1_MASK_9 0x1848
> +#define MADERA_IRQ1_MASK_10 0x1849
> +#define MADERA_IRQ1_MASK_11 0x184A
> +#define MADERA_IRQ1_MASK_12 0x184B
> +#define MADERA_IRQ1_MASK_13 0x184C
> +#define MADERA_IRQ1_MASK_14 0x184D
> +#define MADERA_IRQ1_MASK_15 0x184E
> +#define MADERA_IRQ1_MASK_16 0x184F
> +#define MADERA_IRQ1_MASK_17 0x1850
> +#define MADERA_IRQ1_MASK_18 0x1851
> +#define MADERA_IRQ1_MASK_19 0x1852
> +#define MADERA_IRQ1_MASK_20 0x1853
> +#define MADERA_IRQ1_MASK_21 0x1854
> +#define MADERA_IRQ1_MASK_22 0x1855
> +#define MADERA_IRQ1_MASK_23 0x1856
> +#define MADERA_IRQ1_MASK_24 0x1857
> +#define MADERA_IRQ1_MASK_25 0x1858
> +#define MADERA_IRQ1_MASK_26 0x1859
> +#define MADERA_IRQ1_MASK_27 0x185A
> +#define MADERA_IRQ1_MASK_28 0x185B
> +#define MADERA_IRQ1_MASK_29 0x185C
> +#define MADERA_IRQ1_MASK_30 0x185D
> +#define MADERA_IRQ1_MASK_31 0x185E
> +#define MADERA_IRQ1_MASK_32 0x185F
> +#define MADERA_IRQ1_MASK_33 0x1860
> +#define MADERA_IRQ1_RAW_STATUS_1 0x1880
> +#define MADERA_IRQ1_RAW_STATUS_2 0x1881
> +#define MADERA_IRQ1_RAW_STATUS_3 0x1882
> +#define MADERA_IRQ1_RAW_STATUS_4 0x1883
> +#define MADERA_IRQ1_RAW_STATUS_5 0x1884
> +#define MADERA_IRQ1_RAW_STATUS_6 0x1885
> +#define MADERA_IRQ1_RAW_STATUS_7 0x1886
> +#define MADERA_IRQ1_RAW_STATUS_8 0x1887
> +#define MADERA_IRQ1_RAW_STATUS_9 0x1888
> +#define MADERA_IRQ1_RAW_STATUS_10 0x1889
> +#define MADERA_IRQ1_RAW_STATUS_11 0x188A
> +#define MADERA_IRQ1_RAW_STATUS_12 0x188B
> +#define MADERA_IRQ1_RAW_STATUS_13 0x188C
> +#define MADERA_IRQ1_RAW_STATUS_14 0x188D
> +#define MADERA_IRQ1_RAW_STATUS_15 0x188E
> +#define MADERA_IRQ1_RAW_STATUS_16 0x188F
> +#define MADERA_IRQ1_RAW_STATUS_17 0x1890
> +#define MADERA_IRQ1_RAW_STATUS_18 0x1891
> +#define MADERA_IRQ1_RAW_STATUS_19 0x1892
> +#define MADERA_IRQ1_RAW_STATUS_20 0x1893
> +#define MADERA_IRQ1_RAW_STATUS_21 0x1894
> +#define MADERA_IRQ1_RAW_STATUS_22 0x1895
> +#define MADERA_IRQ1_RAW_STATUS_23 0x1896
> +#define MADERA_IRQ1_RAW_STATUS_24 0x1897
> +#define MADERA_IRQ1_RAW_STATUS_25 0x1898
> +#define MADERA_IRQ1_RAW_STATUS_26 0x1899
> +#define MADERA_IRQ1_RAW_STATUS_27 0x189A
> +#define MADERA_IRQ1_RAW_STATUS_28 0x189D
> +#define MADERA_IRQ1_RAW_STATUS_29 0x189C
> +#define MADERA_IRQ1_RAW_STATUS_30 0x189D
> +#define MADERA_IRQ1_RAW_STATUS_31 0x189E
> +#define MADERA_IRQ1_RAW_STATUS_32 0x189F
> +#define MADERA_IRQ1_RAW_STATUS_33 0x18A0
> +#define MADERA_IRQ2_STATUS_1 0x1900
> +#define MADERA_IRQ2_STATUS_2 0x1901
> +#define MADERA_IRQ2_STATUS_6 0x1905
> +#define MADERA_IRQ2_STATUS_7 0x1906
> +#define MADERA_IRQ2_STATUS_9 0x1908
> +#define MADERA_IRQ2_STATUS_11 0x190A
> +#define MADERA_IRQ2_STATUS_12 0x190B
> +#define MADERA_IRQ2_STATUS_13 0x190C
> +#define MADERA_IRQ2_STATUS_14 0x190D
> +#define MADERA_IRQ2_STATUS_15 0x190E
> +#define MADERA_IRQ2_STATUS_17 0x1910
> +#define MADERA_IRQ2_STATUS_18 0x1911
> +#define MADERA_IRQ2_STATUS_19 0x1912
> +#define MADERA_IRQ2_STATUS_21 0x1914
> +#define MADERA_IRQ2_STATUS_22 0x1915
> +#define MADERA_IRQ2_STATUS_23 0x1916
> +#define MADERA_IRQ2_STATUS_24 0x1917
> +#define MADERA_IRQ2_STATUS_25 0x1918
> +#define MADERA_IRQ2_STATUS_27 0x191A
> +#define MADERA_IRQ2_STATUS_28 0x191B
> +#define MADERA_IRQ2_STATUS_30 0x191D
> +#define MADERA_IRQ2_STATUS_31 0x191E
> +#define MADERA_IRQ2_STATUS_32 0x191F
> +#define MADERA_IRQ2_STATUS_33 0x1920
> +#define MADERA_IRQ2_MASK_1 0x1940
> +#define MADERA_IRQ2_MASK_2 0x1941
> +#define MADERA_IRQ2_MASK_6 0x1945
> +#define MADERA_IRQ2_MASK_7 0x1946
> +#define MADERA_IRQ2_MASK_9 0x1948
> +#define MADERA_IRQ2_MASK_11 0x194A
> +#define MADERA_IRQ2_MASK_12 0x194B
> +#define MADERA_IRQ2_MASK_13 0x194C
> +#define MADERA_IRQ2_MASK_14 0x194D
> +#define MADERA_IRQ2_MASK_15 0x194E
> +#define MADERA_IRQ2_MASK_17 0x1950
> +#define MADERA_IRQ2_MASK_18 0x1951
> +#define MADERA_IRQ2_MASK_19 0x1952
> +#define MADERA_IRQ2_MASK_21 0x1954
> +#define MADERA_IRQ2_MASK_22 0x1955
> +#define MADERA_IRQ2_MASK_23 0x1956
> +#define MADERA_IRQ2_MASK_24 0x1957
> +#define MADERA_IRQ2_MASK_25 0x1958
> +#define MADERA_IRQ2_MASK_27 0x195A
> +#define MADERA_IRQ2_MASK_28 0x195B
> +#define MADERA_IRQ2_MASK_30 0x195D
> +#define MADERA_IRQ2_MASK_31 0x195E
> +#define MADERA_IRQ2_MASK_32 0x195F
> +#define MADERA_IRQ2_MASK_33 0x1960
> +#define MADERA_IRQ2_RAW_STATUS_1 0x1980
> +#define MADERA_IRQ2_RAW_STATUS_2 0x1981
> +#define MADERA_IRQ2_RAW_STATUS_6 0x1985
> +#define MADERA_IRQ2_RAW_STATUS_7 0x1986
> +#define MADERA_IRQ2_RAW_STATUS_9 0x1988
> +#define MADERA_IRQ2_RAW_STATUS_10 0x1989
> +#define MADERA_IRQ2_RAW_STATUS_11 0x198A
> +#define MADERA_IRQ2_RAW_STATUS_12 0x198B
> +#define MADERA_IRQ2_RAW_STATUS_13 0x198C
> +#define MADERA_IRQ2_RAW_STATUS_14 0x198D
> +#define MADERA_IRQ2_RAW_STATUS_15 0x198E
> +#define MADERA_IRQ2_RAW_STATUS_17 0x1990
> +#define MADERA_IRQ2_RAW_STATUS_18 0x1991
> +#define MADERA_IRQ2_RAW_STATUS_19 0x1992
> +#define MADERA_IRQ2_RAW_STATUS_21 0x1994
> +#define MADERA_IRQ2_RAW_STATUS_22 0x1995
> +#define MADERA_IRQ2_RAW_STATUS_23 0x1996
> +#define MADERA_IRQ2_RAW_STATUS_24 0x1997
> +#define MADERA_IRQ2_RAW_STATUS_25 0x1998
> +#define MADERA_IRQ2_RAW_STATUS_30 0x199D
> +#define MADERA_IRQ2_RAW_STATUS_31 0x199E
> +#define MADERA_IRQ2_RAW_STATUS_32 0x199F
> +#define MADERA_IRQ2_RAW_STATUS_33 0x19A0
> +#define MADERA_INTERRUPT_DEBOUNCE_7 0x1A06
> +#define MADERA_INTERRUPT_DEBOUNCE_15 0x1A0E
> +#define MADERA_IRQ1_CTRL 0x1A80
> +#define MADERA_IRQ2_CTRL 0x1A82
> +#define MADERA_INTERRUPT_RAW_STATUS_1 0x1AA0
> +#define MADERA_WSEQ_SEQUENCE_1 0x3000
> +#define MADERA_WSEQ_SEQUENCE_2 0x3002
> +#define MADERA_WSEQ_SEQUENCE_3 0x3004
> +#define MADERA_WSEQ_SEQUENCE_4 0x3006
> +#define MADERA_WSEQ_SEQUENCE_5 0x3008
> +#define MADERA_WSEQ_SEQUENCE_6 0x300A
> +#define MADERA_WSEQ_SEQUENCE_7 0x300C
> +#define MADERA_WSEQ_SEQUENCE_8 0x300E
> +#define MADERA_WSEQ_SEQUENCE_9 0x3010
> +#define MADERA_WSEQ_SEQUENCE_10 0x3012
> +#define MADERA_WSEQ_SEQUENCE_11 0x3014
> +#define MADERA_WSEQ_SEQUENCE_12 0x3016
> +#define MADERA_WSEQ_SEQUENCE_13 0x3018
> +#define MADERA_WSEQ_SEQUENCE_14 0x301A
> +#define MADERA_WSEQ_SEQUENCE_15 0x301C
> +#define MADERA_WSEQ_SEQUENCE_16 0x301E
> +#define MADERA_WSEQ_SEQUENCE_17 0x3020
> +#define MADERA_WSEQ_SEQUENCE_18 0x3022
> +#define MADERA_WSEQ_SEQUENCE_19 0x3024
> +#define MADERA_WSEQ_SEQUENCE_20 0x3026
> +#define MADERA_WSEQ_SEQUENCE_21 0x3028
> +#define MADERA_WSEQ_SEQUENCE_22 0x302A
> +#define MADERA_WSEQ_SEQUENCE_23 0x302C
> +#define MADERA_WSEQ_SEQUENCE_24 0x302E
> +#define MADERA_WSEQ_SEQUENCE_25 0x3030
> +#define MADERA_WSEQ_SEQUENCE_26 0x3032
> +#define MADERA_WSEQ_SEQUENCE_27 0x3034
> +#define MADERA_WSEQ_SEQUENCE_28 0x3036
> +#define MADERA_WSEQ_SEQUENCE_29 0x3038
> +#define MADERA_WSEQ_SEQUENCE_30 0x303A
> +#define MADERA_WSEQ_SEQUENCE_31 0x303C
> +#define MADERA_WSEQ_SEQUENCE_32 0x303E
> +#define MADERA_WSEQ_SEQUENCE_33 0x3040
> +#define MADERA_WSEQ_SEQUENCE_34 0x3042
> +#define MADERA_WSEQ_SEQUENCE_35 0x3044
> +#define MADERA_WSEQ_SEQUENCE_36 0x3046
> +#define MADERA_WSEQ_SEQUENCE_37 0x3048
> +#define MADERA_WSEQ_SEQUENCE_38 0x304A
> +#define MADERA_WSEQ_SEQUENCE_39 0x304C
> +#define MADERA_WSEQ_SEQUENCE_40 0x304E
> +#define MADERA_WSEQ_SEQUENCE_41 0x3050
> +#define MADERA_WSEQ_SEQUENCE_42 0x3052
> +#define MADERA_WSEQ_SEQUENCE_43 0x3054
> +#define MADERA_WSEQ_SEQUENCE_44 0x3056
> +#define MADERA_WSEQ_SEQUENCE_45 0x3058
> +#define MADERA_WSEQ_SEQUENCE_46 0x305A
> +#define MADERA_WSEQ_SEQUENCE_47 0x305C
> +#define MADERA_WSEQ_SEQUENCE_48 0x305E
> +#define MADERA_WSEQ_SEQUENCE_49 0x3060
> +#define MADERA_WSEQ_SEQUENCE_50 0x3062
> +#define MADERA_WSEQ_SEQUENCE_51 0x3064
> +#define MADERA_WSEQ_SEQUENCE_52 0x3066
> +#define MADERA_WSEQ_SEQUENCE_53 0x3068
> +#define MADERA_WSEQ_SEQUENCE_54 0x306A
> +#define MADERA_WSEQ_SEQUENCE_55 0x306C
> +#define MADERA_WSEQ_SEQUENCE_56 0x306E
> +#define MADERA_WSEQ_SEQUENCE_57 0x3070
> +#define MADERA_WSEQ_SEQUENCE_58 0x3072
> +#define MADERA_WSEQ_SEQUENCE_59 0x3074
> +#define MADERA_WSEQ_SEQUENCE_60 0x3076
> +#define MADERA_WSEQ_SEQUENCE_61 0x3078
> +#define MADERA_WSEQ_SEQUENCE_62 0x307A
> +#define MADERA_WSEQ_SEQUENCE_63 0x307C
> +#define MADERA_WSEQ_SEQUENCE_64 0x307E
> +#define MADERA_WSEQ_SEQUENCE_65 0x3080
> +#define MADERA_WSEQ_SEQUENCE_66 0x3082
> +#define MADERA_WSEQ_SEQUENCE_67 0x3084
> +#define MADERA_WSEQ_SEQUENCE_68 0x3086
> +#define MADERA_WSEQ_SEQUENCE_69 0x3088
> +#define MADERA_WSEQ_SEQUENCE_70 0x308A
> +#define MADERA_WSEQ_SEQUENCE_71 0x308C
> +#define MADERA_WSEQ_SEQUENCE_72 0x308E
> +#define MADERA_WSEQ_SEQUENCE_73 0x3090
> +#define MADERA_WSEQ_SEQUENCE_74 0x3092
> +#define MADERA_WSEQ_SEQUENCE_75 0x3094
> +#define MADERA_WSEQ_SEQUENCE_76 0x3096
> +#define MADERA_WSEQ_SEQUENCE_77 0x3098
> +#define MADERA_WSEQ_SEQUENCE_78 0x309A
> +#define MADERA_WSEQ_SEQUENCE_79 0x309C
> +#define MADERA_WSEQ_SEQUENCE_80 0x309E
> +#define MADERA_WSEQ_SEQUENCE_81 0x30A0
> +#define MADERA_WSEQ_SEQUENCE_82 0x30A2
> +#define MADERA_WSEQ_SEQUENCE_83 0x30A4
> +#define MADERA_WSEQ_SEQUENCE_84 0x30A6
> +#define MADERA_WSEQ_SEQUENCE_85 0x30A8
> +#define MADERA_WSEQ_SEQUENCE_86 0x30AA
> +#define MADERA_WSEQ_SEQUENCE_87 0x30AC
> +#define MADERA_WSEQ_SEQUENCE_88 0x30AE
> +#define MADERA_WSEQ_SEQUENCE_89 0x30B0
> +#define MADERA_WSEQ_SEQUENCE_90 0x30B2
> +#define MADERA_WSEQ_SEQUENCE_91 0x30B4
> +#define MADERA_WSEQ_SEQUENCE_92 0x30B6
> +#define MADERA_WSEQ_SEQUENCE_93 0x30B8
> +#define MADERA_WSEQ_SEQUENCE_94 0x30BA
> +#define MADERA_WSEQ_SEQUENCE_95 0x30BC
> +#define MADERA_WSEQ_SEQUENCE_96 0x30BE
> +#define MADERA_WSEQ_SEQUENCE_97 0x30C0
> +#define MADERA_WSEQ_SEQUENCE_98 0x30C2
> +#define MADERA_WSEQ_SEQUENCE_99 0x30C4
> +#define MADERA_WSEQ_SEQUENCE_100 0x30C6
> +#define MADERA_WSEQ_SEQUENCE_101 0x30C8
> +#define MADERA_WSEQ_SEQUENCE_102 0x30CA
> +#define MADERA_WSEQ_SEQUENCE_103 0x30CC
> +#define MADERA_WSEQ_SEQUENCE_104 0x30CE
> +#define MADERA_WSEQ_SEQUENCE_105 0x30D0
> +#define MADERA_WSEQ_SEQUENCE_106 0x30D2
> +#define MADERA_WSEQ_SEQUENCE_107 0x30D4
> +#define MADERA_WSEQ_SEQUENCE_108 0x30D6
> +#define MADERA_WSEQ_SEQUENCE_109 0x30D8
> +#define MADERA_WSEQ_SEQUENCE_110 0x30DA
> +#define MADERA_WSEQ_SEQUENCE_111 0x30DC
> +#define MADERA_WSEQ_SEQUENCE_112 0x30DE
> +#define MADERA_WSEQ_SEQUENCE_113 0x30E0
> +#define MADERA_WSEQ_SEQUENCE_114 0x30E2
> +#define MADERA_WSEQ_SEQUENCE_115 0x30E4
> +#define MADERA_WSEQ_SEQUENCE_116 0x30E6
> +#define MADERA_WSEQ_SEQUENCE_117 0x30E8
> +#define MADERA_WSEQ_SEQUENCE_118 0x30EA
> +#define MADERA_WSEQ_SEQUENCE_119 0x30EC
> +#define MADERA_WSEQ_SEQUENCE_120 0x30EE
> +#define MADERA_WSEQ_SEQUENCE_121 0x30F0
> +#define MADERA_WSEQ_SEQUENCE_122 0x30F2
> +#define MADERA_WSEQ_SEQUENCE_123 0x30F4
> +#define MADERA_WSEQ_SEQUENCE_124 0x30F6
> +#define MADERA_WSEQ_SEQUENCE_125 0x30F8
> +#define MADERA_WSEQ_SEQUENCE_126 0x30FA
> +#define MADERA_WSEQ_SEQUENCE_127 0x30FC
> +#define MADERA_WSEQ_SEQUENCE_128 0x30FE
> +#define MADERA_WSEQ_SEQUENCE_129 0x3100
> +#define MADERA_WSEQ_SEQUENCE_130 0x3102
> +#define MADERA_WSEQ_SEQUENCE_131 0x3104
> +#define MADERA_WSEQ_SEQUENCE_132 0x3106
> +#define MADERA_WSEQ_SEQUENCE_133 0x3108
> +#define MADERA_WSEQ_SEQUENCE_134 0x310A
> +#define MADERA_WSEQ_SEQUENCE_135 0x310C
> +#define MADERA_WSEQ_SEQUENCE_136 0x310E
> +#define MADERA_WSEQ_SEQUENCE_137 0x3110
> +#define MADERA_WSEQ_SEQUENCE_138 0x3112
> +#define MADERA_WSEQ_SEQUENCE_139 0x3114
> +#define MADERA_WSEQ_SEQUENCE_140 0x3116
> +#define MADERA_WSEQ_SEQUENCE_141 0x3118
> +#define MADERA_WSEQ_SEQUENCE_142 0x311A
> +#define MADERA_WSEQ_SEQUENCE_143 0x311C
> +#define MADERA_WSEQ_SEQUENCE_144 0x311E
> +#define MADERA_WSEQ_SEQUENCE_145 0x3120
> +#define MADERA_WSEQ_SEQUENCE_146 0x3122
> +#define MADERA_WSEQ_SEQUENCE_147 0x3124
> +#define MADERA_WSEQ_SEQUENCE_148 0x3126
> +#define MADERA_WSEQ_SEQUENCE_149 0x3128
> +#define MADERA_WSEQ_SEQUENCE_150 0x312A
> +#define MADERA_WSEQ_SEQUENCE_151 0x312C
> +#define MADERA_WSEQ_SEQUENCE_152 0x312E
> +#define MADERA_WSEQ_SEQUENCE_153 0x3130
> +#define MADERA_WSEQ_SEQUENCE_154 0x3132
> +#define MADERA_WSEQ_SEQUENCE_155 0x3134
> +#define MADERA_WSEQ_SEQUENCE_156 0x3136
> +#define MADERA_WSEQ_SEQUENCE_157 0x3138
> +#define MADERA_WSEQ_SEQUENCE_158 0x313A
> +#define MADERA_WSEQ_SEQUENCE_159 0x313C
> +#define MADERA_WSEQ_SEQUENCE_160 0x313E
> +#define MADERA_WSEQ_SEQUENCE_161 0x3140
> +#define MADERA_WSEQ_SEQUENCE_162 0x3142
> +#define MADERA_WSEQ_SEQUENCE_163 0x3144
> +#define MADERA_WSEQ_SEQUENCE_164 0x3146
> +#define MADERA_WSEQ_SEQUENCE_165 0x3148
> +#define MADERA_WSEQ_SEQUENCE_166 0x314A
> +#define MADERA_WSEQ_SEQUENCE_167 0x314C
> +#define MADERA_WSEQ_SEQUENCE_168 0x314E
> +#define MADERA_WSEQ_SEQUENCE_169 0x3150
> +#define MADERA_WSEQ_SEQUENCE_170 0x3152
> +#define MADERA_WSEQ_SEQUENCE_171 0x3154
> +#define MADERA_WSEQ_SEQUENCE_172 0x3156
> +#define MADERA_WSEQ_SEQUENCE_173 0x3158
> +#define MADERA_WSEQ_SEQUENCE_174 0x315A
> +#define MADERA_WSEQ_SEQUENCE_175 0x315C
> +#define MADERA_WSEQ_SEQUENCE_176 0x315E
> +#define MADERA_WSEQ_SEQUENCE_177 0x3160
> +#define MADERA_WSEQ_SEQUENCE_178 0x3162
> +#define MADERA_WSEQ_SEQUENCE_179 0x3164
> +#define MADERA_WSEQ_SEQUENCE_180 0x3166
> +#define MADERA_WSEQ_SEQUENCE_181 0x3168
> +#define MADERA_WSEQ_SEQUENCE_182 0x316A
> +#define MADERA_WSEQ_SEQUENCE_183 0x316C
> +#define MADERA_WSEQ_SEQUENCE_184 0x316E
> +#define MADERA_WSEQ_SEQUENCE_185 0x3170
> +#define MADERA_WSEQ_SEQUENCE_186 0x3172
> +#define MADERA_WSEQ_SEQUENCE_187 0x3174
> +#define MADERA_WSEQ_SEQUENCE_188 0x3176
> +#define MADERA_WSEQ_SEQUENCE_189 0x3178
> +#define MADERA_WSEQ_SEQUENCE_190 0x317A
> +#define MADERA_WSEQ_SEQUENCE_191 0x317C
> +#define MADERA_WSEQ_SEQUENCE_192 0x317E
> +#define MADERA_WSEQ_SEQUENCE_193 0x3180
> +#define MADERA_WSEQ_SEQUENCE_194 0x3182
> +#define MADERA_WSEQ_SEQUENCE_195 0x3184
> +#define MADERA_WSEQ_SEQUENCE_196 0x3186
> +#define MADERA_WSEQ_SEQUENCE_197 0x3188
> +#define MADERA_WSEQ_SEQUENCE_198 0x318A
> +#define MADERA_WSEQ_SEQUENCE_199 0x318C
> +#define MADERA_WSEQ_SEQUENCE_200 0x318E
> +#define MADERA_WSEQ_SEQUENCE_201 0x3190
> +#define MADERA_WSEQ_SEQUENCE_202 0x3192
> +#define MADERA_WSEQ_SEQUENCE_203 0x3194
> +#define MADERA_WSEQ_SEQUENCE_204 0x3196
> +#define MADERA_WSEQ_SEQUENCE_205 0x3198
> +#define MADERA_WSEQ_SEQUENCE_206 0x319A
> +#define MADERA_WSEQ_SEQUENCE_207 0x319C
> +#define MADERA_WSEQ_SEQUENCE_208 0x319E
> +#define MADERA_WSEQ_SEQUENCE_209 0x31A0
> +#define MADERA_WSEQ_SEQUENCE_210 0x31A2
> +#define MADERA_WSEQ_SEQUENCE_211 0x31A4
> +#define MADERA_WSEQ_SEQUENCE_212 0x31A6
> +#define MADERA_WSEQ_SEQUENCE_213 0x31A8
> +#define MADERA_WSEQ_SEQUENCE_214 0x31AA
> +#define MADERA_WSEQ_SEQUENCE_215 0x31AC
> +#define MADERA_WSEQ_SEQUENCE_216 0x31AE
> +#define MADERA_WSEQ_SEQUENCE_217 0x31B0
> +#define MADERA_WSEQ_SEQUENCE_218 0x31B2
> +#define MADERA_WSEQ_SEQUENCE_219 0x31B4
> +#define MADERA_WSEQ_SEQUENCE_220 0x31B6
> +#define MADERA_WSEQ_SEQUENCE_221 0x31B8
> +#define MADERA_WSEQ_SEQUENCE_222 0x31BA
> +#define MADERA_WSEQ_SEQUENCE_223 0x31BC
> +#define MADERA_WSEQ_SEQUENCE_224 0x31BE
> +#define MADERA_WSEQ_SEQUENCE_225 0x31C0
> +#define MADERA_WSEQ_SEQUENCE_226 0x31C2
> +#define MADERA_WSEQ_SEQUENCE_227 0x31C4
> +#define MADERA_WSEQ_SEQUENCE_228 0x31C6
> +#define MADERA_WSEQ_SEQUENCE_229 0x31C8
> +#define MADERA_WSEQ_SEQUENCE_230 0x31CA
> +#define MADERA_WSEQ_SEQUENCE_231 0x31CC
> +#define MADERA_WSEQ_SEQUENCE_232 0x31CE
> +#define MADERA_WSEQ_SEQUENCE_233 0x31D0
> +#define MADERA_WSEQ_SEQUENCE_234 0x31D2
> +#define MADERA_WSEQ_SEQUENCE_235 0x31D4
> +#define MADERA_WSEQ_SEQUENCE_236 0x31D6
> +#define MADERA_WSEQ_SEQUENCE_237 0x31D8
> +#define MADERA_WSEQ_SEQUENCE_238 0x31DA
> +#define MADERA_WSEQ_SEQUENCE_239 0x31DC
> +#define MADERA_WSEQ_SEQUENCE_240 0x31DE
> +#define MADERA_WSEQ_SEQUENCE_241 0x31E0
> +#define MADERA_WSEQ_SEQUENCE_242 0x31E2
> +#define MADERA_WSEQ_SEQUENCE_243 0x31E4
> +#define MADERA_WSEQ_SEQUENCE_244 0x31E6
> +#define MADERA_WSEQ_SEQUENCE_245 0x31E8
> +#define MADERA_WSEQ_SEQUENCE_246 0x31EA
> +#define MADERA_WSEQ_SEQUENCE_247 0x31EC
> +#define MADERA_WSEQ_SEQUENCE_248 0x31EE
> +#define MADERA_WSEQ_SEQUENCE_249 0x31F0
> +#define MADERA_WSEQ_SEQUENCE_250 0x31F2
> +#define MADERA_WSEQ_SEQUENCE_251 0x31F4
> +#define MADERA_WSEQ_SEQUENCE_252 0x31F6
> +#define MADERA_WSEQ_SEQUENCE_253 0x31F8
> +#define CS47L35_OTP_HPDET_CAL_1 0x31F8
> +#define CS47L35_OTP_HPDET_CAL_2 0x31FA
> +#define MADERA_WSEQ_SEQUENCE_254 0x31FA
> +#define MADERA_WSEQ_SEQUENCE_255 0x31FC
> +#define MADERA_WSEQ_SEQUENCE_256 0x31FE
> +#define MADERA_WSEQ_SEQUENCE_257 0x3200
> +#define MADERA_WSEQ_SEQUENCE_258 0x3202
> +#define MADERA_WSEQ_SEQUENCE_259 0x3204
> +#define MADERA_WSEQ_SEQUENCE_260 0x3206
> +#define MADERA_WSEQ_SEQUENCE_261 0x3208
> +#define MADERA_WSEQ_SEQUENCE_262 0x320A
> +#define MADERA_WSEQ_SEQUENCE_263 0x320C
> +#define MADERA_WSEQ_SEQUENCE_264 0x320E
> +#define MADERA_WSEQ_SEQUENCE_265 0x3210
> +#define MADERA_WSEQ_SEQUENCE_266 0x3212
> +#define MADERA_WSEQ_SEQUENCE_267 0x3214
> +#define MADERA_WSEQ_SEQUENCE_268 0x3216
> +#define MADERA_WSEQ_SEQUENCE_269 0x3218
> +#define MADERA_WSEQ_SEQUENCE_270 0x321A
> +#define MADERA_WSEQ_SEQUENCE_271 0x321C
> +#define MADERA_WSEQ_SEQUENCE_272 0x321E
> +#define MADERA_WSEQ_SEQUENCE_273 0x3220
> +#define MADERA_WSEQ_SEQUENCE_274 0x3222
> +#define MADERA_WSEQ_SEQUENCE_275 0x3224
> +#define MADERA_WSEQ_SEQUENCE_276 0x3226
> +#define MADERA_WSEQ_SEQUENCE_277 0x3228
> +#define MADERA_WSEQ_SEQUENCE_278 0x322A
> +#define MADERA_WSEQ_SEQUENCE_279 0x322C
> +#define MADERA_WSEQ_SEQUENCE_280 0x322E
> +#define MADERA_WSEQ_SEQUENCE_281 0x3230
> +#define MADERA_WSEQ_SEQUENCE_282 0x3232
> +#define MADERA_WSEQ_SEQUENCE_283 0x3234
> +#define MADERA_WSEQ_SEQUENCE_284 0x3236
> +#define MADERA_WSEQ_SEQUENCE_285 0x3238
> +#define MADERA_WSEQ_SEQUENCE_286 0x323A
> +#define MADERA_WSEQ_SEQUENCE_287 0x323C
> +#define MADERA_WSEQ_SEQUENCE_288 0x323E
> +#define MADERA_WSEQ_SEQUENCE_289 0x3240
> +#define MADERA_WSEQ_SEQUENCE_290 0x3242
> +#define MADERA_WSEQ_SEQUENCE_291 0x3244
> +#define MADERA_WSEQ_SEQUENCE_292 0x3246
> +#define MADERA_WSEQ_SEQUENCE_293 0x3248
> +#define MADERA_WSEQ_SEQUENCE_294 0x324A
> +#define MADERA_WSEQ_SEQUENCE_295 0x324C
> +#define MADERA_WSEQ_SEQUENCE_296 0x324E
> +#define MADERA_WSEQ_SEQUENCE_297 0x3250
> +#define MADERA_WSEQ_SEQUENCE_298 0x3252
> +#define MADERA_WSEQ_SEQUENCE_299 0x3254
> +#define MADERA_WSEQ_SEQUENCE_300 0x3256
> +#define MADERA_WSEQ_SEQUENCE_301 0x3258
> +#define MADERA_WSEQ_SEQUENCE_302 0x325A
> +#define MADERA_WSEQ_SEQUENCE_303 0x325C
> +#define MADERA_WSEQ_SEQUENCE_304 0x325E
> +#define MADERA_WSEQ_SEQUENCE_305 0x3260
> +#define MADERA_WSEQ_SEQUENCE_306 0x3262
> +#define MADERA_WSEQ_SEQUENCE_307 0x3264
> +#define MADERA_WSEQ_SEQUENCE_308 0x3266
> +#define MADERA_WSEQ_SEQUENCE_309 0x3268
> +#define MADERA_WSEQ_SEQUENCE_310 0x326A
> +#define MADERA_WSEQ_SEQUENCE_311 0x326C
> +#define MADERA_WSEQ_SEQUENCE_312 0x326E
> +#define MADERA_WSEQ_SEQUENCE_313 0x3270
> +#define MADERA_WSEQ_SEQUENCE_314 0x3272
> +#define MADERA_WSEQ_SEQUENCE_315 0x3274
> +#define MADERA_WSEQ_SEQUENCE_316 0x3276
> +#define MADERA_WSEQ_SEQUENCE_317 0x3278
> +#define MADERA_WSEQ_SEQUENCE_318 0x327A
> +#define MADERA_WSEQ_SEQUENCE_319 0x327C
> +#define MADERA_WSEQ_SEQUENCE_320 0x327E
> +#define MADERA_WSEQ_SEQUENCE_321 0x3280
> +#define MADERA_WSEQ_SEQUENCE_322 0x3282
> +#define MADERA_WSEQ_SEQUENCE_323 0x3284
> +#define MADERA_WSEQ_SEQUENCE_324 0x3286
> +#define MADERA_WSEQ_SEQUENCE_325 0x3288
> +#define MADERA_WSEQ_SEQUENCE_326 0x328A
> +#define MADERA_WSEQ_SEQUENCE_327 0x328C
> +#define MADERA_WSEQ_SEQUENCE_328 0x328E
> +#define MADERA_WSEQ_SEQUENCE_329 0x3290
> +#define MADERA_WSEQ_SEQUENCE_330 0x3292
> +#define MADERA_WSEQ_SEQUENCE_331 0x3294
> +#define MADERA_WSEQ_SEQUENCE_332 0x3296
> +#define MADERA_WSEQ_SEQUENCE_333 0x3298
> +#define MADERA_WSEQ_SEQUENCE_334 0x329A
> +#define MADERA_WSEQ_SEQUENCE_335 0x329C
> +#define MADERA_WSEQ_SEQUENCE_336 0x329E
> +#define MADERA_WSEQ_SEQUENCE_337 0x32A0
> +#define MADERA_WSEQ_SEQUENCE_338 0x32A2
> +#define MADERA_WSEQ_SEQUENCE_339 0x32A4
> +#define MADERA_WSEQ_SEQUENCE_340 0x32A6
> +#define MADERA_WSEQ_SEQUENCE_341 0x32A8
> +#define MADERA_WSEQ_SEQUENCE_342 0x32AA
> +#define MADERA_WSEQ_SEQUENCE_343 0x32AC
> +#define MADERA_WSEQ_SEQUENCE_344 0x32AE
> +#define MADERA_WSEQ_SEQUENCE_345 0x32B0
> +#define MADERA_WSEQ_SEQUENCE_346 0x32B2
> +#define MADERA_WSEQ_SEQUENCE_347 0x32B4
> +#define MADERA_WSEQ_SEQUENCE_348 0x32B6
> +#define MADERA_WSEQ_SEQUENCE_349 0x32B8
> +#define MADERA_WSEQ_SEQUENCE_350 0x32BA
> +#define MADERA_WSEQ_SEQUENCE_351 0x32BC
> +#define MADERA_WSEQ_SEQUENCE_352 0x32BE
> +#define MADERA_WSEQ_SEQUENCE_353 0x32C0
> +#define MADERA_WSEQ_SEQUENCE_354 0x32C2
> +#define MADERA_WSEQ_SEQUENCE_355 0x32C4
> +#define MADERA_WSEQ_SEQUENCE_356 0x32C6
> +#define MADERA_WSEQ_SEQUENCE_357 0x32C8
> +#define MADERA_WSEQ_SEQUENCE_358 0x32CA
> +#define MADERA_WSEQ_SEQUENCE_359 0x32CC
> +#define MADERA_WSEQ_SEQUENCE_360 0x32CE
> +#define MADERA_WSEQ_SEQUENCE_361 0x32D0
> +#define MADERA_WSEQ_SEQUENCE_362 0x32D2
> +#define MADERA_WSEQ_SEQUENCE_363 0x32D4
> +#define MADERA_WSEQ_SEQUENCE_364 0x32D6
> +#define MADERA_WSEQ_SEQUENCE_365 0x32D8
> +#define MADERA_WSEQ_SEQUENCE_366 0x32DA
> +#define MADERA_WSEQ_SEQUENCE_367 0x32DC
> +#define MADERA_WSEQ_SEQUENCE_368 0x32DE
> +#define MADERA_WSEQ_SEQUENCE_369 0x32E0
> +#define MADERA_WSEQ_SEQUENCE_370 0x32E2
> +#define MADERA_WSEQ_SEQUENCE_371 0x32E4
> +#define MADERA_WSEQ_SEQUENCE_372 0x32E6
> +#define MADERA_WSEQ_SEQUENCE_373 0x32E8
> +#define MADERA_WSEQ_SEQUENCE_374 0x32EA
> +#define MADERA_WSEQ_SEQUENCE_375 0x32EC
> +#define MADERA_WSEQ_SEQUENCE_376 0x32EE
> +#define MADERA_WSEQ_SEQUENCE_377 0x32F0
> +#define MADERA_WSEQ_SEQUENCE_378 0x32F2
> +#define MADERA_WSEQ_SEQUENCE_379 0x32F4
> +#define MADERA_WSEQ_SEQUENCE_380 0x32F6
> +#define MADERA_WSEQ_SEQUENCE_381 0x32F8
> +#define MADERA_WSEQ_SEQUENCE_382 0x32FA
> +#define MADERA_WSEQ_SEQUENCE_383 0x32FC
> +#define MADERA_WSEQ_SEQUENCE_384 0x32FE
> +#define MADERA_WSEQ_SEQUENCE_385 0x3300
> +#define MADERA_WSEQ_SEQUENCE_386 0x3302
> +#define MADERA_WSEQ_SEQUENCE_387 0x3304
> +#define MADERA_WSEQ_SEQUENCE_388 0x3306
> +#define MADERA_WSEQ_SEQUENCE_389 0x3308
> +#define MADERA_WSEQ_SEQUENCE_390 0x330A
> +#define MADERA_WSEQ_SEQUENCE_391 0x330C
> +#define MADERA_WSEQ_SEQUENCE_392 0x330E
> +#define MADERA_WSEQ_SEQUENCE_393 0x3310
> +#define MADERA_WSEQ_SEQUENCE_394 0x3312
> +#define MADERA_WSEQ_SEQUENCE_395 0x3314
> +#define MADERA_WSEQ_SEQUENCE_396 0x3316
> +#define MADERA_WSEQ_SEQUENCE_397 0x3318
> +#define MADERA_WSEQ_SEQUENCE_398 0x331A
> +#define MADERA_WSEQ_SEQUENCE_399 0x331C
> +#define MADERA_WSEQ_SEQUENCE_400 0x331E
> +#define MADERA_WSEQ_SEQUENCE_401 0x3320
> +#define MADERA_WSEQ_SEQUENCE_402 0x3322
> +#define MADERA_WSEQ_SEQUENCE_403 0x3324
> +#define MADERA_WSEQ_SEQUENCE_404 0x3326
> +#define MADERA_WSEQ_SEQUENCE_405 0x3328
> +#define MADERA_WSEQ_SEQUENCE_406 0x332A
> +#define MADERA_WSEQ_SEQUENCE_407 0x332C
> +#define MADERA_WSEQ_SEQUENCE_408 0x332E
> +#define MADERA_WSEQ_SEQUENCE_409 0x3330
> +#define MADERA_WSEQ_SEQUENCE_410 0x3332
> +#define MADERA_WSEQ_SEQUENCE_411 0x3334
> +#define MADERA_WSEQ_SEQUENCE_412 0x3336
> +#define MADERA_WSEQ_SEQUENCE_413 0x3338
> +#define MADERA_WSEQ_SEQUENCE_414 0x333A
> +#define MADERA_WSEQ_SEQUENCE_415 0x333C
> +#define MADERA_WSEQ_SEQUENCE_416 0x333E
> +#define MADERA_WSEQ_SEQUENCE_417 0x3340
> +#define MADERA_WSEQ_SEQUENCE_418 0x3342
> +#define MADERA_WSEQ_SEQUENCE_419 0x3344
> +#define MADERA_WSEQ_SEQUENCE_420 0x3346
> +#define MADERA_WSEQ_SEQUENCE_421 0x3348
> +#define MADERA_WSEQ_SEQUENCE_422 0x334A
> +#define MADERA_WSEQ_SEQUENCE_423 0x334C
> +#define MADERA_WSEQ_SEQUENCE_424 0x334E
> +#define MADERA_WSEQ_SEQUENCE_425 0x3350
> +#define MADERA_WSEQ_SEQUENCE_426 0x3352
> +#define MADERA_WSEQ_SEQUENCE_427 0x3354
> +#define MADERA_WSEQ_SEQUENCE_428 0x3356
> +#define MADERA_WSEQ_SEQUENCE_429 0x3358
> +#define MADERA_WSEQ_SEQUENCE_430 0x335A
> +#define MADERA_WSEQ_SEQUENCE_431 0x335C
> +#define MADERA_WSEQ_SEQUENCE_432 0x335E
> +#define MADERA_WSEQ_SEQUENCE_433 0x3360
> +#define MADERA_WSEQ_SEQUENCE_434 0x3362
> +#define MADERA_WSEQ_SEQUENCE_435 0x3364
> +#define MADERA_WSEQ_SEQUENCE_436 0x3366
> +#define MADERA_WSEQ_SEQUENCE_437 0x3368
> +#define MADERA_WSEQ_SEQUENCE_438 0x336A
> +#define MADERA_WSEQ_SEQUENCE_439 0x336C
> +#define MADERA_WSEQ_SEQUENCE_440 0x336E
> +#define MADERA_WSEQ_SEQUENCE_441 0x3370
> +#define MADERA_WSEQ_SEQUENCE_442 0x3372
> +#define MADERA_WSEQ_SEQUENCE_443 0x3374
> +#define MADERA_WSEQ_SEQUENCE_444 0x3376
> +#define MADERA_WSEQ_SEQUENCE_445 0x3378
> +#define MADERA_WSEQ_SEQUENCE_446 0x337A
> +#define MADERA_WSEQ_SEQUENCE_447 0x337C
> +#define MADERA_WSEQ_SEQUENCE_448 0x337E
> +#define MADERA_WSEQ_SEQUENCE_449 0x3380
> +#define MADERA_WSEQ_SEQUENCE_450 0x3382
> +#define MADERA_WSEQ_SEQUENCE_451 0x3384
> +#define MADERA_WSEQ_SEQUENCE_452 0x3386
> +#define MADERA_WSEQ_SEQUENCE_453 0x3388
> +#define MADERA_WSEQ_SEQUENCE_454 0x338A
> +#define MADERA_WSEQ_SEQUENCE_455 0x338C
> +#define MADERA_WSEQ_SEQUENCE_456 0x338E
> +#define MADERA_WSEQ_SEQUENCE_457 0x3390
> +#define MADERA_WSEQ_SEQUENCE_458 0x3392
> +#define MADERA_WSEQ_SEQUENCE_459 0x3394
> +#define MADERA_WSEQ_SEQUENCE_460 0x3396
> +#define MADERA_WSEQ_SEQUENCE_461 0x3398
> +#define MADERA_WSEQ_SEQUENCE_462 0x339A
> +#define MADERA_WSEQ_SEQUENCE_463 0x339C
> +#define MADERA_WSEQ_SEQUENCE_464 0x339E
> +#define MADERA_WSEQ_SEQUENCE_465 0x33A0
> +#define MADERA_WSEQ_SEQUENCE_466 0x33A2
> +#define MADERA_WSEQ_SEQUENCE_467 0x33A4
> +#define MADERA_WSEQ_SEQUENCE_468 0x33A6
> +#define MADERA_WSEQ_SEQUENCE_469 0x33A8
> +#define MADERA_WSEQ_SEQUENCE_470 0x33AA
> +#define MADERA_WSEQ_SEQUENCE_471 0x33AC
> +#define MADERA_WSEQ_SEQUENCE_472 0x33AE
> +#define MADERA_WSEQ_SEQUENCE_473 0x33B0
> +#define MADERA_WSEQ_SEQUENCE_474 0x33B2
> +#define MADERA_WSEQ_SEQUENCE_475 0x33B4
> +#define MADERA_WSEQ_SEQUENCE_476 0x33B6
> +#define MADERA_WSEQ_SEQUENCE_477 0x33B8
> +#define MADERA_WSEQ_SEQUENCE_478 0x33BA
> +#define MADERA_WSEQ_SEQUENCE_479 0x33BC
> +#define MADERA_WSEQ_SEQUENCE_480 0x33BE
> +#define MADERA_WSEQ_SEQUENCE_481 0x33C0
> +#define MADERA_WSEQ_SEQUENCE_482 0x33C2
> +#define MADERA_WSEQ_SEQUENCE_483 0x33C4
> +#define MADERA_WSEQ_SEQUENCE_484 0x33C6
> +#define MADERA_WSEQ_SEQUENCE_485 0x33C8
> +#define MADERA_WSEQ_SEQUENCE_486 0x33CA
> +#define MADERA_WSEQ_SEQUENCE_487 0x33CC
> +#define MADERA_WSEQ_SEQUENCE_488 0x33CE
> +#define MADERA_WSEQ_SEQUENCE_489 0x33D0
> +#define MADERA_WSEQ_SEQUENCE_490 0x33D2
> +#define MADERA_WSEQ_SEQUENCE_491 0x33D4
> +#define MADERA_WSEQ_SEQUENCE_492 0x33D6
> +#define MADERA_WSEQ_SEQUENCE_493 0x33D8
> +#define MADERA_WSEQ_SEQUENCE_494 0x33DA
> +#define MADERA_WSEQ_SEQUENCE_495 0x33DC
> +#define MADERA_WSEQ_SEQUENCE_496 0x33DE
> +#define MADERA_WSEQ_SEQUENCE_497 0x33E0
> +#define MADERA_WSEQ_SEQUENCE_498 0x33E2
> +#define MADERA_WSEQ_SEQUENCE_499 0x33E4
> +#define MADERA_WSEQ_SEQUENCE_500 0x33E6
> +#define MADERA_WSEQ_SEQUENCE_501 0x33E8
> +#define MADERA_WSEQ_SEQUENCE_502 0x33EA
> +#define MADERA_WSEQ_SEQUENCE_503 0x33EC
> +#define MADERA_WSEQ_SEQUENCE_504 0x33EE
> +#define MADERA_WSEQ_SEQUENCE_505 0x33F0
> +#define MADERA_WSEQ_SEQUENCE_506 0x33F2
> +#define MADERA_WSEQ_SEQUENCE_507 0x33F4
> +#define MADERA_WSEQ_SEQUENCE_508 0x33F6
> +#define CS47L85_OTP_HPDET_CAL_1 0x33F8
> +#define CS47L85_OTP_HPDET_CAL_2 0x33FA
> +#define MADERA_OTP_HPDET_CAL_1 0x20004
> +#define MADERA_OTP_HPDET_CAL_2 0x20006
> +#define MADERA_DSP1_CONFIG_1 0x0FFE00
> +#define MADERA_DSP1_CONFIG_2 0x0FFE02
> +#define MADERA_DSP1_STATUS_1 0x0FFE04
> +#define MADERA_DSP1_STATUS_2 0x0FFE06
> +#define MADERA_DSP1_STATUS_3 0x0FFE08
> +#define MADERA_DSP1_WATCHDOG_1 0x0FFE0A
> +#define MADERA_DSP1_DMA_CONFIG_1 0x0FFE30
> +#define MADERA_DSP1_DMA_CONFIG_2 0x0FFE32
> +#define MADERA_DSP1_DMA_CONFIG_3 0x0FFE34
> +#define MADERA_DSP1_DMA_CONFIG_4 0x0FFE36
> +#define MADERA_DSP1_SCRATCH_1 0x0FFE40
> +#define MADERA_DSP1_SCRATCH_2 0x0FFE42
> +#define MADERA_DSP1_BUS_ERROR_ADDR 0xFFE52
> +#define MADERA_DSP1_REGION_LOCK_STS_0 0xFFE64
> +#define MADERA_DSP1_REGION_LOCK_1___DSP1_REGION_LOCK_0 0xFFE66
> +#define MADERA_DSP1_REGION_LOCK_3___DSP1_REGION_LOCK_2 0xFFE68
> +#define MADERA_DSP1_REGION_LOCK_5___DSP1_REGION_LOCK_4 0xFFE6A
> +#define MADERA_DSP1_REGION_LOCK_7___DSP1_REGION_LOCK_6 0xFFE6C
> +#define MADERA_DSP1_REGION_LOCK_9___DSP1_REGION_LOCK_8 0xFFE6E
> +#define MADERA_DSP1_REGION_LOCK_CTRL_0 0xFFE7A
> +#define MADERA_DSP1_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0xFFE7C
> +#define MADERA_DSP2_CONFIG_1 0x17FE00
> +#define MADERA_DSP2_CONFIG_2 0x17FE02
> +#define MADERA_DSP2_STATUS_1 0x17FE04
> +#define MADERA_DSP2_STATUS_2 0x17FE06
> +#define MADERA_DSP2_STATUS_3 0x17FE08
> +#define MADERA_DSP2_WATCHDOG_1 0x17FE0A
> +#define MADERA_DSP2_DMA_CONFIG_1 0x17FE30
> +#define MADERA_DSP2_DMA_CONFIG_2 0x17FE32
> +#define MADERA_DSP2_DMA_CONFIG_3 0x17FE34
> +#define MADERA_DSP2_DMA_CONFIG_4 0x17FE36
> +#define MADERA_DSP2_SCRATCH_1 0x17FE40
> +#define MADERA_DSP2_SCRATCH_2 0x17FE42
> +#define MADERA_DSP2_BUS_ERROR_ADDR 0x17FE52
> +#define MADERA_DSP2_REGION_LOCK_STS_0 0x17FE64
> +#define MADERA_DSP2_REGION_LOCK_1___DSP2_REGION_LOCK_0 0x17FE66
> +#define MADERA_DSP2_REGION_LOCK_3___DSP2_REGION_LOCK_2 0x17FE68
> +#define MADERA_DSP2_REGION_LOCK_5___DSP2_REGION_LOCK_4 0x17FE6A
> +#define MADERA_DSP2_REGION_LOCK_7___DSP2_REGION_LOCK_6 0x17FE6C
> +#define MADERA_DSP2_REGION_LOCK_9___DSP2_REGION_LOCK_8 0x17FE6E
> +#define MADERA_DSP2_REGION_LOCK_CTRL_0 0x17FE7A
> +#define MADERA_DSP2_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0x17FE7C
> +#define MADERA_DSP3_CONFIG_1 0x1FFE00
> +#define MADERA_DSP3_CONFIG_2 0x1FFE02
> +#define MADERA_DSP3_STATUS_1 0x1FFE04
> +#define MADERA_DSP3_STATUS_2 0x1FFE06
> +#define MADERA_DSP3_STATUS_3 0x1FFE08
> +#define MADERA_DSP3_WATCHDOG_1 0x1FFE0A
> +#define MADERA_DSP3_DMA_CONFIG_1 0x1FFE30
> +#define MADERA_DSP3_DMA_CONFIG_2 0x1FFE32
> +#define MADERA_DSP3_DMA_CONFIG_3 0x1FFE34
> +#define MADERA_DSP3_DMA_CONFIG_4 0x1FFE36
> +#define MADERA_DSP3_SCRATCH_1 0x1FFE40
> +#define MADERA_DSP3_SCRATCH_2 0x1FFE42
> +#define MADERA_DSP3_BUS_ERROR_ADDR 0x1FFE52
> +#define MADERA_DSP3_REGION_LOCK_STS_0 0x1FFE64
> +#define MADERA_DSP3_REGION_LOCK_1___DSP3_REGION_LOCK_0 0x1FFE66
> +#define MADERA_DSP3_REGION_LOCK_3___DSP3_REGION_LOCK_2 0x1FFE68
> +#define MADERA_DSP3_REGION_LOCK_5___DSP3_REGION_LOCK_4 0x1FFE6A
> +#define MADERA_DSP3_REGION_LOCK_7___DSP3_REGION_LOCK_6 0x1FFE6C
> +#define MADERA_DSP3_REGION_LOCK_9___DSP3_REGION_LOCK_8 0x1FFE6E
> +#define MADERA_DSP3_REGION_LOCK_CTRL_0 0x1FFE7A
> +#define MADERA_DSP3_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0x1FFE7C
> +#define MADERA_DSP4_CONFIG_1 0x27FE00
> +#define MADERA_DSP4_CONFIG_2 0x27FE02
> +#define MADERA_DSP4_STATUS_1 0x27FE04
> +#define MADERA_DSP4_STATUS_2 0x27FE06
> +#define MADERA_DSP4_STATUS_3 0x27FE08
> +#define MADERA_DSP4_WATCHDOG_1 0x27FE0A
> +#define MADERA_DSP4_DMA_CONFIG_1 0x27FE30
> +#define MADERA_DSP4_DMA_CONFIG_2 0x27FE32
> +#define MADERA_DSP4_DMA_CONFIG_3 0x27FE34
> +#define MADERA_DSP4_DMA_CONFIG_4 0x27FE36
> +#define MADERA_DSP4_SCRATCH_1 0x27FE40
> +#define MADERA_DSP4_SCRATCH_2 0x27FE42
> +#define MADERA_DSP4_BUS_ERROR_ADDR 0x27FE52
> +#define MADERA_DSP4_REGION_LOCK_STS_0 0x27FE64
> +#define MADERA_DSP4_REGION_LOCK_1___DSP4_REGION_LOCK_0 0x27FE66
> +#define MADERA_DSP4_REGION_LOCK_3___DSP4_REGION_LOCK_2 0x27FE68
> +#define MADERA_DSP4_REGION_LOCK_5___DSP4_REGION_LOCK_4 0x27FE6A
> +#define MADERA_DSP4_REGION_LOCK_7___DSP4_REGION_LOCK_6 0x27FE6C
> +#define MADERA_DSP4_REGION_LOCK_9___DSP4_REGION_LOCK_8 0x27FE6E
> +#define MADERA_DSP4_REGION_LOCK_CTRL_0 0x27FE7A
> +#define MADERA_DSP4_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0x27FE7C
> +#define MADERA_DSP5_CONFIG_1 0x2FFE00
> +#define MADERA_DSP5_CONFIG_2 0x2FFE02
> +#define MADERA_DSP5_STATUS_1 0x2FFE04
> +#define MADERA_DSP5_STATUS_2 0x2FFE06
> +#define MADERA_DSP5_STATUS_3 0x2FFE08
> +#define MADERA_DSP5_WATCHDOG_1 0x2FFE0A
> +#define MADERA_DSP5_DMA_CONFIG_1 0x2FFE30
> +#define MADERA_DSP5_DMA_CONFIG_2 0x2FFE32
> +#define MADERA_DSP5_DMA_CONFIG_3 0x2FFE34
> +#define MADERA_DSP5_DMA_CONFIG_4 0x2FFE36
> +#define MADERA_DSP5_SCRATCH_1 0x2FFE40
> +#define MADERA_DSP5_SCRATCH_2 0x2FFE42
> +#define MADERA_DSP5_BUS_ERROR_ADDR 0x2FFE52
> +#define MADERA_DSP5_REGION_LOCK_STS_0 0x2FFE64
> +#define MADERA_DSP5_REGION_LOCK_1___DSP5_REGION_LOCK_0 0x2FFE66
> +#define MADERA_DSP5_REGION_LOCK_3___DSP5_REGION_LOCK_2 0x2FFE68
> +#define MADERA_DSP5_REGION_LOCK_5___DSP5_REGION_LOCK_4 0x2FFE6A
> +#define MADERA_DSP5_REGION_LOCK_7___DSP5_REGION_LOCK_6 0x2FFE6C
> +#define MADERA_DSP5_REGION_LOCK_9___DSP5_REGION_LOCK_8 0x2FFE6E
> +#define MADERA_DSP5_REGION_LOCK_CTRL_0 0x2FFE7A
> +#define MADERA_DSP5_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0x2FFE7C
> +#define MADERA_DSP6_CONFIG_1 0x37FE00
> +#define MADERA_DSP6_CONFIG_2 0x37FE02
> +#define MADERA_DSP6_STATUS_1 0x37FE04
> +#define MADERA_DSP6_STATUS_2 0x37FE06
> +#define MADERA_DSP6_STATUS_3 0x37FE08
> +#define MADERA_DSP6_WATCHDOG_1 0x37FE0A
> +#define MADERA_DSP6_DMA_CONFIG_1 0x37FE30
> +#define MADERA_DSP6_DMA_CONFIG_2 0x37FE32
> +#define MADERA_DSP6_DMA_CONFIG_3 0x37FE34
> +#define MADERA_DSP6_DMA_CONFIG_4 0x37FE36
> +#define MADERA_DSP6_SCRATCH_1 0x37FE40
> +#define MADERA_DSP6_SCRATCH_2 0x37FE42
> +#define MADERA_DSP6_BUS_ERROR_ADDR 0x37FE52
> +#define MADERA_DSP6_REGION_LOCK_STS_0 0x37FE64
> +#define MADERA_DSP6_REGION_LOCK_1___DSP6_REGION_LOCK_0 0x37FE66
> +#define MADERA_DSP6_REGION_LOCK_3___DSP6_REGION_LOCK_2 0x37FE68
> +#define MADERA_DSP6_REGION_LOCK_5___DSP6_REGION_LOCK_4 0x37FE6A
> +#define MADERA_DSP6_REGION_LOCK_7___DSP6_REGION_LOCK_6 0x37FE6C
> +#define MADERA_DSP6_REGION_LOCK_9___DSP6_REGION_LOCK_8 0x37FE6E
> +#define MADERA_DSP6_REGION_LOCK_CTRL_0 0x37FE7A
> +#define MADERA_DSP6_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0x37FE7C
> +#define MADERA_DSP7_CONFIG_1 0x3FFE00
> +#define MADERA_DSP7_CONFIG_2 0x3FFE02
> +#define MADERA_DSP7_STATUS_1 0x3FFE04
> +#define MADERA_DSP7_STATUS_2 0x3FFE06
> +#define MADERA_DSP7_STATUS_3 0x3FFE08
> +#define MADERA_DSP7_WATCHDOG_1 0x3FFE0A
> +#define MADERA_DSP7_DMA_CONFIG_1 0x3FFE30
> +#define MADERA_DSP7_DMA_CONFIG_2 0x3FFE32
> +#define MADERA_DSP7_DMA_CONFIG_3 0x3FFE34
> +#define MADERA_DSP7_DMA_CONFIG_4 0x3FFE36
> +#define MADERA_DSP7_SCRATCH_1 0x3FFE40
> +#define MADERA_DSP7_SCRATCH_2 0x3FFE42
> +#define MADERA_DSP7_BUS_ERROR_ADDR 0x3FFE52
> +#define MADERA_DSP7_REGION_LOCK_STS_0 0x3FFE64
> +#define MADERA_DSP7_REGION_LOCK_1___DSP7_REGION_LOCK_0 0x3FFE66
> +#define MADERA_DSP7_REGION_LOCK_3___DSP7_REGION_LOCK_2 0x3FFE68
> +#define MADERA_DSP7_REGION_LOCK_5___DSP7_REGION_LOCK_4 0x3FFE6A
> +#define MADERA_DSP7_REGION_LOCK_7___DSP7_REGION_LOCK_6 0x3FFE6C
> +#define MADERA_DSP7_REGION_LOCK_9___DSP7_REGION_LOCK_8 0x3FFE6E
> +#define MADERA_DSP7_REGION_LOCK_CTRL_0 0x3FFE7A
> +#define MADERA_DSP7_PMEM_ERR_ADDR___XMEM_ERR_ADDR 0x3FFE7C
> +
> +/* (0x0000) Software_Reset */
> +#define MADERA_SW_RST_DEV_ID1_MASK 0xFFFF
> +#define MADERA_SW_RST_DEV_ID1_SHIFT 0
> +#define MADERA_SW_RST_DEV_ID1_WIDTH 16
> +
> +/* (0x0001) Hardware_Revision */
> +#define MADERA_HW_REVISION_MASK 0x00FF
> +#define MADERA_HW_REVISION_SHIFT 0
> +#define MADERA_HW_REVISION_WIDTH 8
> +
> +/* (0x0016) Write_Sequencer_Ctrl_0 */
> +#define MADERA_WSEQ_ABORT 0x0800
> +#define MADERA_WSEQ_ABORT_MASK 0x0800
> +#define MADERA_WSEQ_ABORT_SHIFT 11
> +#define MADERA_WSEQ_ABORT_WIDTH 1
> +#define MADERA_WSEQ_START 0x0400
> +#define MADERA_WSEQ_START_MASK 0x0400
> +#define MADERA_WSEQ_START_SHIFT 10
> +#define MADERA_WSEQ_START_WIDTH 1
> +#define MADERA_WSEQ_ENA 0x0200
> +#define MADERA_WSEQ_ENA_MASK 0x0200
> +#define MADERA_WSEQ_ENA_SHIFT 9
> +#define MADERA_WSEQ_ENA_WIDTH 1
> +#define MADERA_WSEQ_START_INDEX_MASK 0x01FF
> +#define MADERA_WSEQ_START_INDEX_SHIFT 0
> +#define MADERA_WSEQ_START_INDEX_WIDTH 9
> +
> +/* (0x0017) Write_Sequencer_Ctrl_1 */
> +#define MADERA_WSEQ_BUSY 0x0200
> +#define MADERA_WSEQ_BUSY_MASK 0x0200
> +#define MADERA_WSEQ_BUSY_SHIFT 9
> +#define MADERA_WSEQ_BUSY_WIDTH 1
> +#define MADERA_WSEQ_CURRENT_INDEX_MASK 0x01FF
> +#define MADERA_WSEQ_CURRENT_INDEX_SHIFT 0
> +#define MADERA_WSEQ_CURRENT_INDEX_WIDTH 9
> +
> +/* (0x0018) Write_Sequencer_Ctrl_2 */
> +#define MADERA_LOAD_DEFAULTS 0x0002
> +#define MADERA_LOAD_DEFAULTS_MASK 0x0002
> +#define MADERA_LOAD_DEFAULTS_SHIFT 1
> +#define MADERA_LOAD_DEFAULTS_WIDTH 1
> +#define MADERA_WSEQ_LOAD_MEM 0x0001
> +#define MADERA_WSEQ_LOAD_MEM_MASK 0x0001
> +#define MADERA_WSEQ_LOAD_MEM_SHIFT 0
> +#define MADERA_WSEQ_LOAD_MEM_WIDTH 1
> +
> +/* (0x0020) Tone_Generator_1 */
> +#define MADERA_TONE_RATE_MASK 0xF800
> +#define MADERA_TONE_RATE_SHIFT 11
> +#define MADERA_TONE_RATE_WIDTH 5
> +#define MADERA_TONE_OFFSET_MASK 0x0300
> +#define MADERA_TONE_OFFSET_SHIFT 8
> +#define MADERA_TONE_OFFSET_WIDTH 2
> +#define MADERA_TONE2_OVD 0x0020
> +#define MADERA_TONE2_OVD_MASK 0x0020
> +#define MADERA_TONE2_OVD_SHIFT 5
> +#define MADERA_TONE2_OVD_WIDTH 1
> +#define MADERA_TONE1_OVD 0x0010
> +#define MADERA_TONE1_OVD_MASK 0x0010
> +#define MADERA_TONE1_OVD_SHIFT 4
> +#define MADERA_TONE1_OVD_WIDTH 1
> +#define MADERA_TONE2_ENA 0x0002
> +#define MADERA_TONE2_ENA_MASK 0x0002
> +#define MADERA_TONE2_ENA_SHIFT 1
> +#define MADERA_TONE2_ENA_WIDTH 1
> +#define MADERA_TONE1_ENA 0x0001
> +#define MADERA_TONE1_ENA_MASK 0x0001
> +#define MADERA_TONE1_ENA_SHIFT 0
> +#define MADERA_TONE1_ENA_WIDTH 1
> +
> +/* (0x0021) Tone_Generator_2 */
> +#define MADERA_TONE1_LVL_0_MASK 0xFFFF
> +#define MADERA_TONE1_LVL_0_SHIFT 0
> +#define MADERA_TONE1_LVL_0_WIDTH 16
> +
> +/* (0x0022) Tone_Generator_3 */
> +#define MADERA_TONE1_LVL_MASK 0x00FF
> +#define MADERA_TONE1_LVL_SHIFT 0
> +#define MADERA_TONE1_LVL_WIDTH 8
> +
> +/* (0x0023) Tone_Generator_4 */
> +#define MADERA_TONE2_LVL_0_MASK 0xFFFF
> +#define MADERA_TONE2_LVL_0_SHIFT 0
> +#define MADERA_TONE2_LVL_0_WIDTH 16
> +
> +/* (0x0024) Tone_Generator_5 */
> +#define MADERA_TONE2_LVL_MASK 0x00FF
> +#define MADERA_TONE2_LVL_SHIFT 0
> +#define MADERA_TONE2_LVL_WIDTH 8
> +
> +/* (0x0030) PWM_Drive_1 */
> +#define MADERA_PWM_RATE_MASK 0xF800
> +#define MADERA_PWM_RATE_SHIFT 11
> +#define MADERA_PWM_RATE_WIDTH 5
> +#define MADERA_PWM_CLK_SEL_MASK 0x0700
> +#define MADERA_PWM_CLK_SEL_SHIFT 8
> +#define MADERA_PWM_CLK_SEL_WIDTH 3
> +#define MADERA_PWM2_OVD 0x0020
> +#define MADERA_PWM2_OVD_MASK 0x0020
> +#define MADERA_PWM2_OVD_SHIFT 5
> +#define MADERA_PWM2_OVD_WIDTH 1
> +#define MADERA_PWM1_OVD 0x0010
> +#define MADERA_PWM1_OVD_MASK 0x0010
> +#define MADERA_PWM1_OVD_SHIFT 4
> +#define MADERA_PWM1_OVD_WIDTH 1
> +#define MADERA_PWM2_ENA 0x0002
> +#define MADERA_PWM2_ENA_MASK 0x0002
> +#define MADERA_PWM2_ENA_SHIFT 1
> +#define MADERA_PWM2_ENA_WIDTH 1
> +#define MADERA_PWM1_ENA 0x0001
> +#define MADERA_PWM1_ENA_MASK 0x0001
> +#define MADERA_PWM1_ENA_SHIFT 0
> +#define MADERA_PWM1_ENA_WIDTH 1
> +
> +/* (0x0031) PWM_Drive_2 */
> +#define MADERA_PWM1_LVL_MASK 0x03FF
> +#define MADERA_PWM1_LVL_SHIFT 0
> +#define MADERA_PWM1_LVL_WIDTH 10
> +
> +/* (0x0032) PWM_Drive_3 */
> +#define MADERA_PWM2_LVL_MASK 0x03FF
> +#define MADERA_PWM2_LVL_SHIFT 0
> +#define MADERA_PWM2_LVL_WIDTH 10
> +
> +/* (0x0041) Sequence_control */
> +#define MADERA_WSEQ_ENA_MICD_CLAMP_FALL 0x0080
> +#define MADERA_WSEQ_ENA_MICD_CLAMP_FALL_MASK 0x0080
> +#define MADERA_WSEQ_ENA_MICD_CLAMP_FALL_SHIFT 7
> +#define MADERA_WSEQ_ENA_MICD_CLAMP_FALL_WIDTH 1
> +#define MADERA_WSEQ_ENA_MICD_CLAMP_RISE 0x0040
> +#define MADERA_WSEQ_ENA_MICD_CLAMP_RISE_MASK 0x0040
> +#define MADERA_WSEQ_ENA_MICD_CLAMP_RISE_SHIFT 6
> +#define MADERA_WSEQ_ENA_MICD_CLAMP_RISE_WIDTH 1
> +
> +/* (0x0090) Haptics_Control_1 */
> +#define MADERA_HAP_RATE_MASK 0xF800
> +#define MADERA_HAP_RATE_SHIFT 11
> +#define MADERA_HAP_RATE_WIDTH 5
> +#define MADERA_ONESHOT_TRIG 0x0010
> +#define MADERA_ONESHOT_TRIG_MASK 0x0010
> +#define MADERA_ONESHOT_TRIG_SHIFT 4
> +#define MADERA_ONESHOT_TRIG_WIDTH 1
> +#define MADERA_HAP_CTRL_MASK 0x000C
> +#define MADERA_HAP_CTRL_SHIFT 2
> +#define MADERA_HAP_CTRL_WIDTH 2
> +#define MADERA_HAP_ACT 0x0002
> +#define MADERA_HAP_ACT_MASK 0x0002
> +#define MADERA_HAP_ACT_SHIFT 1
> +#define MADERA_HAP_ACT_WIDTH 1
> +
> +/* (0x0091) Haptics_Control_2 */
> +#define MADERA_LRA_FREQ_MASK 0x7FFF
> +#define MADERA_LRA_FREQ_SHIFT 0
> +#define MADERA_LRA_FREQ_WIDTH 15
> +
> +/* (0x0092) Haptics_phase_1_intensity */
> +#define MADERA_PHASE1_INTENSITY_MASK 0x00FF
> +#define MADERA_PHASE1_INTENSITY_SHIFT 0
> +#define MADERA_PHASE1_INTENSITY_WIDTH 8
> +
> +/* (0x0093) Haptics_phase_1_duration */
> +#define MADERA_PHASE1_DURATION_MASK 0x01FF
> +#define MADERA_PHASE1_DURATION_SHIFT 0
> +#define MADERA_PHASE1_DURATION_WIDTH 9
> +
> +/* (0x0094) Haptics_phase_2_intensity */
> +#define MADERA_PHASE2_INTENSITY_MASK 0x00FF
> +#define MADERA_PHASE2_INTENSITY_SHIFT 0
> +#define MADERA_PHASE2_INTENSITY_WIDTH 8
> +
> +/* (0x0095) Haptics_phase_2_duration */
> +#define MADERA_PHASE2_DURATION_MASK 0x07FF
> +#define MADERA_PHASE2_DURATION_SHIFT 0
> +#define MADERA_PHASE2_DURATION_WIDTH 11
> +
> +/* (0x0096) Haptics_phase_3_intensity */
> +#define MADERA_PHASE3_INTENSITY_MASK 0x00FF
> +#define MADERA_PHASE3_INTENSITY_SHIFT 0
> +#define MADERA_PHASE3_INTENSITY_WIDTH 8
> +
> +/* (0x0097) Haptics_phase_3_duration */
> +#define MADERA_PHASE3_DURATION_MASK 0x01FF
> +#define MADERA_PHASE3_DURATION_SHIFT 0
> +#define MADERA_PHASE3_DURATION_WIDTH 9
> +
> +/* (0x0098) Haptics_Status */
> +#define MADERA_ONESHOT_STS 0x0001
> +#define MADERA_ONESHOT_STS_MASK 0x0001
> +#define MADERA_ONESHOT_STS_SHIFT 0
> +#define MADERA_ONESHOT_STS_WIDTH 1
> +
> +/* (0x00A0) Comfort_Noise_Generator */
> +#define MADERA_NOISE_GEN_ENA 0x0020
> +#define MADERA_NOISE_GEN_ENA_MASK 0x0020
> +#define MADERA_NOISE_GEN_ENA_SHIFT 5
> +#define MADERA_NOISE_GEN_ENA_WIDTH 1
> +#define MADERA_NOISE_GEN_GAIN_MASK 0x001F
> +#define MADERA_NOISE_GEN_GAIN_SHIFT 0
> +#define MADERA_NOISE_GEN_GAIN_WIDTH 5
> +
> +/* (0x0100) Clock_32k_1 */
> +#define MADERA_CLK_32K_ENA 0x0040
> +#define MADERA_CLK_32K_ENA_MASK 0x0040
> +#define MADERA_CLK_32K_ENA_SHIFT 6
> +#define MADERA_CLK_32K_ENA_WIDTH 1
> +#define MADERA_CLK_32K_SRC_MASK 0x0003
> +#define MADERA_CLK_32K_SRC_SHIFT 0
> +#define MADERA_CLK_32K_SRC_WIDTH 2
> +
> +/* (0x0101) System_Clock_1 */
> +#define MADERA_SYSCLK_FRAC 0x8000
> +#define MADERA_SYSCLK_FRAC_MASK 0x8000
> +#define MADERA_SYSCLK_FRAC_SHIFT 15
> +#define MADERA_SYSCLK_FRAC_WIDTH 1
> +#define MADERA_SYSCLK_FREQ_MASK 0x0700
> +#define MADERA_SYSCLK_FREQ_SHIFT 8
> +#define MADERA_SYSCLK_FREQ_WIDTH 3
> +#define MADERA_SYSCLK_ENA 0x0040
> +#define MADERA_SYSCLK_ENA_MASK 0x0040
> +#define MADERA_SYSCLK_ENA_SHIFT 6
> +#define MADERA_SYSCLK_ENA_WIDTH 1
> +#define MADERA_SYSCLK_SRC_MASK 0x000F
> +#define MADERA_SYSCLK_SRC_SHIFT 0
> +#define MADERA_SYSCLK_SRC_WIDTH 4
> +
> +/* (0x0102) Sample_rate_1 */
> +#define MADERA_SAMPLE_RATE_1_MASK 0x001F
> +#define MADERA_SAMPLE_RATE_1_SHIFT 0
> +#define MADERA_SAMPLE_RATE_1_WIDTH 5
> +
> +/* (0x0103) Sample_rate_2 */
> +#define MADERA_SAMPLE_RATE_2_MASK 0x001F
> +#define MADERA_SAMPLE_RATE_2_SHIFT 0
> +#define MADERA_SAMPLE_RATE_2_WIDTH 5
> +
> +/* (0x0104) Sample_rate_3 */
> +#define MADERA_SAMPLE_RATE_3_MASK 0x001F
> +#define MADERA_SAMPLE_RATE_3_SHIFT 0
> +#define MADERA_SAMPLE_RATE_3_WIDTH 5
> +
> +/* (0x010A) Sample_rate_1_status */
> +#define MADERA_SAMPLE_RATE_1_STS_MASK 0x001F
> +#define MADERA_SAMPLE_RATE_1_STS_SHIFT 0
> +#define MADERA_SAMPLE_RATE_1_STS_WIDTH 5
> +
> +/* (0x010B) Sample_rate_2_status */
> +#define MADERA_SAMPLE_RATE_2_STS_MASK 0x001F
> +#define MADERA_SAMPLE_RATE_2_STS_SHIFT 0
> +#define MADERA_SAMPLE_RATE_2_STS_WIDTH 5
> +
> +/* (0x010C) Sample_rate_3_status */
> +#define MADERA_SAMPLE_RATE_3_STS_MASK 0x001F
> +#define MADERA_SAMPLE_RATE_3_STS_SHIFT 0
> +#define MADERA_SAMPLE_RATE_3_STS_WIDTH 5
> +
> +/* (0x0112) Async_clock_1 */
> +#define MADERA_ASYNC_CLK_FREQ_MASK 0x0700
> +#define MADERA_ASYNC_CLK_FREQ_SHIFT 8
> +#define MADERA_ASYNC_CLK_FREQ_WIDTH 3
> +#define MADERA_ASYNC_CLK_ENA 0x0040
> +#define MADERA_ASYNC_CLK_ENA_MASK 0x0040
> +#define MADERA_ASYNC_CLK_ENA_SHIFT 6
> +#define MADERA_ASYNC_CLK_ENA_WIDTH 1
> +#define MADERA_ASYNC_CLK_SRC_MASK 0x000F
> +#define MADERA_ASYNC_CLK_SRC_SHIFT 0
> +#define MADERA_ASYNC_CLK_SRC_WIDTH 4
> +
> +/* (0x0113) Async_sample_rate_1 */
> +#define MADERA_ASYNC_SAMPLE_RATE_1_MASK 0x001F
> +#define MADERA_ASYNC_SAMPLE_RATE_1_SHIFT 0
> +#define MADERA_ASYNC_SAMPLE_RATE_1_WIDTH 5
> +
> +/* (0x0114) Async_sample_rate_2 */
> +#define MADERA_ASYNC_SAMPLE_RATE_2_MASK 0x001F
> +#define MADERA_ASYNC_SAMPLE_RATE_2_SHIFT 0
> +#define MADERA_ASYNC_SAMPLE_RATE_2_WIDTH 5
> +
> +/* (0x011B) Async_sample_rate_1_status */
> +#define MADERA_ASYNC_SAMPLE_RATE_1_STS_MASK 0x001F
> +#define MADERA_ASYNC_SAMPLE_RATE_1_STS_SHIFT 0
> +#define MADERA_ASYNC_SAMPLE_RATE_1_STS_WIDTH 5
> +
> +/* (0x011C) Async_sample_rate_2_status */
> +#define MADERA_ASYNC_SAMPLE_RATE_2_STS_MASK 0x001F
> +#define MADERA_ASYNC_SAMPLE_RATE_2_STS_SHIFT 0
> +#define MADERA_ASYNC_SAMPLE_RATE_2_STS_WIDTH 5
> +
> +/* (0x0120) DSP_Clock_1 */
> +#define MADERA_DSP_CLK_FREQ_LEGACY 0x0700
> +#define MADERA_DSP_CLK_FREQ_LEGACY_MASK 0x0700
> +#define MADERA_DSP_CLK_FREQ_LEGACY_SHIFT 8
> +#define MADERA_DSP_CLK_FREQ_LEGACY_WIDTH 3
> +#define MADERA_DSP_CLK_ENA 0x0040
> +#define MADERA_DSP_CLK_ENA_MASK 0x0040
> +#define MADERA_DSP_CLK_ENA_SHIFT 6
> +#define MADERA_DSP_CLK_ENA_WIDTH 1
> +#define MADERA_DSP_CLK_SRC 0x000F
> +#define MADERA_DSP_CLK_SRC_MASK 0x000F
> +#define MADERA_DSP_CLK_SRC_SHIFT 0
> +#define MADERA_DSP_CLK_SRC_WIDTH 4
> +
> +/* (0x0122) DSP_Clock_2 */
> +#define MADERA_DSP_CLK_FREQ_MASK 0x03FF
> +#define MADERA_DSP_CLK_FREQ_SHIFT 0
> +#define MADERA_DSP_CLK_FREQ_WIDTH 10
> +
> +/* (0x0149) Output_system_clock */
> +#define MADERA_OPCLK_ENA 0x8000
> +#define MADERA_OPCLK_ENA_MASK 0x8000
> +#define MADERA_OPCLK_ENA_SHIFT 15
> +#define MADERA_OPCLK_ENA_WIDTH 1
> +#define MADERA_OPCLK_DIV_MASK 0x00F8
> +#define MADERA_OPCLK_DIV_SHIFT 3
> +#define MADERA_OPCLK_DIV_WIDTH 5
> +#define MADERA_OPCLK_SEL_MASK 0x0007
> +#define MADERA_OPCLK_SEL_SHIFT 0
> +#define MADERA_OPCLK_SEL_WIDTH 3
> +
> +/* (0x014A) Output_async_clock */
> +#define MADERA_OPCLK_ASYNC_ENA 0x8000
> +#define MADERA_OPCLK_ASYNC_ENA_MASK 0x8000
> +#define MADERA_OPCLK_ASYNC_ENA_SHIFT 15
> +#define MADERA_OPCLK_ASYNC_ENA_WIDTH 1
> +#define MADERA_OPCLK_ASYNC_DIV_MASK 0x00F8
> +#define MADERA_OPCLK_ASYNC_DIV_SHIFT 3
> +#define MADERA_OPCLK_ASYNC_DIV_WIDTH 5
> +#define MADERA_OPCLK_ASYNC_SEL_MASK 0x0007
> +#define MADERA_OPCLK_ASYNC_SEL_SHIFT 0
> +#define MADERA_OPCLK_ASYNC_SEL_WIDTH 3
> +
> +/* (0x0152) Rate_Estimator_1 */
> +#define MADERA_TRIG_ON_STARTUP 0x0010
> +#define MADERA_TRIG_ON_STARTUP_MASK 0x0010
> +#define MADERA_TRIG_ON_STARTUP_SHIFT 4
> +#define MADERA_TRIG_ON_STARTUP_WIDTH 1
> +#define MADERA_LRCLK_SRC_MASK 0x000E
> +#define MADERA_LRCLK_SRC_SHIFT 1
> +#define MADERA_LRCLK_SRC_WIDTH 3
> +#define MADERA_RATE_EST_ENA 0x0001
> +#define MADERA_RATE_EST_ENA_MASK 0x0001
> +#define MADERA_RATE_EST_ENA_SHIFT 0
> +#define MADERA_RATE_EST_ENA_WIDTH 1
> +
> +/* (0x0153) Rate_Estimator_2 */
> +#define MADERA_SAMPLE_RATE_DETECT_A_MASK 0x001F
> +#define MADERA_SAMPLE_RATE_DETECT_A_SHIFT 0
> +#define MADERA_SAMPLE_RATE_DETECT_A_WIDTH 5
> +
> +/* (0x0154) Rate_Estimator_3 */
> +#define MADERA_SAMPLE_RATE_DETECT_B_MASK 0x001F
> +#define MADERA_SAMPLE_RATE_DETECT_B_SHIFT 0
> +#define MADERA_SAMPLE_RATE_DETECT_B_WIDTH 5
> +
> +/* (0x0155) Rate_Estimator_4 */
> +#define MADERA_SAMPLE_RATE_DETECT_C_MASK 0x001F
> +#define MADERA_SAMPLE_RATE_DETECT_C_SHIFT 0
> +#define MADERA_SAMPLE_RATE_DETECT_C_WIDTH 5
> +
> +/* (0x0156) Rate_Estimator_5 */
> +#define MADERA_SAMPLE_RATE_DETECT_D_MASK 0x001F
> +#define MADERA_SAMPLE_RATE_DETECT_D_SHIFT 0
> +#define MADERA_SAMPLE_RATE_DETECT_D_WIDTH 5
> +
> +/* (0x0171) FLL1_Control_1 */
> +#define MADERA_FLL1_FREERUN 0x0002
> +#define MADERA_FLL1_FREERUN_MASK 0x0002
> +#define MADERA_FLL1_FREERUN_SHIFT 1
> +#define MADERA_FLL1_FREERUN_WIDTH 1
> +#define MADERA_FLL1_ENA 0x0001
> +#define MADERA_FLL1_ENA_MASK 0x0001
> +#define MADERA_FLL1_ENA_SHIFT 0
> +#define MADERA_FLL1_ENA_WIDTH 1
> +
> +/* (0x0172) FLL1_Control_2 */
> +#define MADERA_FLL1_CTRL_UPD 0x8000
> +#define MADERA_FLL1_CTRL_UPD_MASK 0x8000
> +#define MADERA_FLL1_CTRL_UPD_SHIFT 15
> +#define MADERA_FLL1_CTRL_UPD_WIDTH 1
> +#define MADERA_FLL1_N_MASK 0x03FF
> +#define MADERA_FLL1_N_SHIFT 0
> +#define MADERA_FLL1_N_WIDTH 10
> +
> +/* (0x0173) FLL1_Control_3 */
> +#define MADERA_FLL1_THETA_MASK 0xFFFF
> +#define MADERA_FLL1_THETA_SHIFT 0
> +#define MADERA_FLL1_THETA_WIDTH 16
> +
> +/* (0x0174) FLL1_Control_4 */
> +#define MADERA_FLL1_LAMBDA_MASK 0xFFFF
> +#define MADERA_FLL1_LAMBDA_SHIFT 0
> +#define MADERA_FLL1_LAMBDA_WIDTH 16
> +
> +/* (0x0175) FLL1_Control_5 */
> +#define MADERA_FLL1_FRATIO_MASK 0x0F00
> +#define MADERA_FLL1_FRATIO_SHIFT 8
> +#define MADERA_FLL1_FRATIO_WIDTH 4
> +
> +/* (0x0176) FLL1_Control_6 */
> +#define MADERA_FLL1_REFCLK_DIV_MASK 0x00C0
> +#define MADERA_FLL1_REFCLK_DIV_SHIFT 6
> +#define MADERA_FLL1_REFCLK_DIV_WIDTH 2
> +#define MADERA_FLL1_REFCLK_SRC_MASK 0x000F
> +#define MADERA_FLL1_REFCLK_SRC_SHIFT 0
> +#define MADERA_FLL1_REFCLK_SRC_WIDTH 4
> +
> +/* (0x0177) FLL1_Loop_Filter_Test_1 */
> +#define MADERA_FLL1_FRC_INTEG_UPD 0x8000
> +#define MADERA_FLL1_FRC_INTEG_UPD_MASK 0x8000
> +#define MADERA_FLL1_FRC_INTEG_UPD_SHIFT 15
> +#define MADERA_FLL1_FRC_INTEG_UPD_WIDTH 1
> +#define MADERA_FLL1_FRC_INTEG_VAL_MASK 0x0FFF
> +#define MADERA_FLL1_FRC_INTEG_VAL_SHIFT 0
> +#define MADERA_FLL1_FRC_INTEG_VAL_WIDTH 12
> +
> +/* (0x0179) FLL1_Control_7 */
> +#define MADERA_FLL1_GAIN_MASK 0x003c
> +#define MADERA_FLL1_GAIN_SHIFT 2
> +#define MADERA_FLL1_GAIN_WIDTH 4
> +
> +/* (0x017A) FLL1_EFS_2 */
> +#define MADERA_FLL1_PHASE_GAIN_MASK 0xF000
> +#define MADERA_FLL1_PHASE_GAIN_SHIFT 12
> +#define MADERA_FLL1_PHASE_GAIN_WIDTH 4
> +#define MADERA_FLL1_PHASE_ENA_MASK 0x0800
> +#define MADERA_FLL1_PHASE_ENA_SHIFT 11
> +#define MADERA_FLL1_PHASE_ENA_WIDTH 1
> +
> +/* (0x0181) FLL1_Synchroniser_1 */
> +#define MADERA_FLL1_SYNC_ENA 0x0001
> +#define MADERA_FLL1_SYNC_ENA_MASK 0x0001
> +#define MADERA_FLL1_SYNC_ENA_SHIFT 0
> +#define MADERA_FLL1_SYNC_ENA_WIDTH 1
> +
> +/* (0x0182) FLL1_Synchroniser_2 */
> +#define MADERA_FLL1_SYNC_N_MASK 0x03FF
> +#define MADERA_FLL1_SYNC_N_SHIFT 0
> +#define MADERA_FLL1_SYNC_N_WIDTH 10
> +
> +/* (0x0183) FLL1_Synchroniser_3 */
> +#define MADERA_FLL1_SYNC_THETA_MASK 0xFFFF
> +#define MADERA_FLL1_SYNC_THETA_SHIFT 0
> +#define MADERA_FLL1_SYNC_THETA_WIDTH 16
> +
> +/* (0x0184) FLL1_Synchroniser_4 */
> +#define MADERA_FLL1_SYNC_LAMBDA_MASK 0xFFFF
> +#define MADERA_FLL1_SYNC_LAMBDA_SHIFT 0
> +#define MADERA_FLL1_SYNC_LAMBDA_WIDTH 16
> +
> +/* (0x0185) FLL1_Synchroniser_5 */
> +#define MADERA_FLL1_SYNC_FRATIO_MASK 0x0700
> +#define MADERA_FLL1_SYNC_FRATIO_SHIFT 8
> +#define MADERA_FLL1_SYNC_FRATIO_WIDTH 3
> +
> +/* (0x0186) FLL1_Synchroniser_6 */
> +#define MADERA_FLL1_SYNCCLK_DIV_MASK 0x00C0
> +#define MADERA_FLL1_SYNCCLK_DIV_SHIFT 6
> +#define MADERA_FLL1_SYNCCLK_DIV_WIDTH 2
> +#define MADERA_FLL1_SYNCCLK_SRC_MASK 0x000F
> +#define MADERA_FLL1_SYNCCLK_SRC_SHIFT 0
> +#define MADERA_FLL1_SYNCCLK_SRC_WIDTH 4
> +
> +/* (0x0187) FLL1_Synchroniser_7 */
> +#define MADERA_FLL1_SYNC_GAIN_MASK 0x003c
> +#define MADERA_FLL1_SYNC_GAIN_SHIFT 2
> +#define MADERA_FLL1_SYNC_GAIN_WIDTH 4
> +#define MADERA_FLL1_SYNC_DFSAT 0x0001
> +#define MADERA_FLL1_SYNC_DFSAT_MASK 0x0001
> +#define MADERA_FLL1_SYNC_DFSAT_SHIFT 0
> +#define MADERA_FLL1_SYNC_DFSAT_WIDTH 1
> +
> +/* (0x0189) FLL1_Spread_Spectrum */
> +#define MADERA_FLL1_SS_AMPL_MASK 0x0030
> +#define MADERA_FLL1_SS_AMPL_SHIFT 4
> +#define MADERA_FLL1_SS_AMPL_WIDTH 2
> +#define MADERA_FLL1_SS_FREQ_MASK 0x000C
> +#define MADERA_FLL1_SS_FREQ_SHIFT 2
> +#define MADERA_FLL1_SS_FREQ_WIDTH 2
> +#define MADERA_FLL1_SS_SEL_MASK 0x0003
> +#define MADERA_FLL1_SS_SEL_SHIFT 0
> +#define MADERA_FLL1_SS_SEL_WIDTH 2
> +
> +/* (0x018A) FLL1_GPIO_Clock */
> +#define MADERA_FLL1_GPCLK_DIV_MASK 0x00FE
> +#define MADERA_FLL1_GPCLK_DIV_SHIFT 1
> +#define MADERA_FLL1_GPCLK_DIV_WIDTH 7
> +#define MADERA_FLL1_GPCLK_ENA 0x0001
> +#define MADERA_FLL1_GPCLK_ENA_MASK 0x0001
> +#define MADERA_FLL1_GPCLK_ENA_SHIFT 0
> +#define MADERA_FLL1_GPCLK_ENA_WIDTH 1
> +
> +/* (0x0191) FLL2_Control_1 */
> +#define MADERA_FLL2_FREERUN 0x0002
> +#define MADERA_FLL2_FREERUN_MASK 0x0002
> +#define MADERA_FLL2_FREERUN_SHIFT 1
> +#define MADERA_FLL2_FREERUN_WIDTH 1
> +#define MADERA_FLL2_ENA 0x0001
> +#define MADERA_FLL2_ENA_MASK 0x0001
> +#define MADERA_FLL2_ENA_SHIFT 0
> +#define MADERA_FLL2_ENA_WIDTH 1
> +
> +/* (0x0192) FLL2_Control_2 */
> +#define MADERA_FLL2_CTRL_UPD 0x8000
> +#define MADERA_FLL2_CTRL_UPD_MASK 0x8000
> +#define MADERA_FLL2_CTRL_UPD_SHIFT 15
> +#define MADERA_FLL2_CTRL_UPD_WIDTH 1
> +#define MADERA_FLL2_N_MASK 0x03FF
> +#define MADERA_FLL2_N_SHIFT 0
> +#define MADERA_FLL2_N_WIDTH 10
> +
> +/* (0x0193) FLL2_Control_3 */
> +#define MADERA_FLL2_THETA_MASK 0xFFFF
> +#define MADERA_FLL2_THETA_SHIFT 0
> +#define MADERA_FLL2_THETA_WIDTH 16
> +
> +/* (0x0194) FLL2_Control_4 */
> +#define MADERA_FLL2_LAMBDA_MASK 0xFFFF
> +#define MADERA_FLL2_LAMBDA_SHIFT 0
> +#define MADERA_FLL2_LAMBDA_WIDTH 16
> +
> +/* (0x0195) FLL2_Control_5 */
> +#define MADERA_FLL2_FRATIO_MASK 0x0700
> +#define MADERA_FLL2_FRATIO_SHIFT 8
> +#define MADERA_FLL2_FRATIO_WIDTH 3
> +
> +/* (0x0196) FLL2_Control_6 */
> +#define MADERA_FLL2_REFCLK_DIV_MASK 0x00C0
> +#define MADERA_FLL2_REFCLK_DIV_SHIFT 6
> +#define MADERA_FLL2_REFCLK_DIV_WIDTH 2
> +#define MADERA_FLL2_REFCLK_SRC_MASK 0x000F
> +#define MADERA_FLL2_REFCLK_SRC_SHIFT 0
> +#define MADERA_FLL2_REFCLK_SRC_WIDTH 4
> +
> +/* (0x0197) FLL2_Loop_Filter_Test_1 */
> +#define MADERA_FLL2_FRC_INTEG_UPD 0x8000
> +#define MADERA_FLL2_FRC_INTEG_UPD_MASK 0x8000
> +#define MADERA_FLL2_FRC_INTEG_UPD_SHIFT 15
> +#define MADERA_FLL2_FRC_INTEG_UPD_WIDTH 1
> +#define MADERA_FLL2_FRC_INTEG_VAL_MASK 0x0FFF
> +#define MADERA_FLL2_FRC_INTEG_VAL_SHIFT 0
> +#define MADERA_FLL2_FRC_INTEG_VAL_WIDTH 12
> +
> +/* (0x0199) FLL2_Control_7 */
> +#define MADERA_FLL2_GAIN_MASK 0x003c
> +#define MADERA_FLL2_GAIN_SHIFT 2
> +#define MADERA_FLL2_GAIN_WIDTH 4
> +
> +/* (0x019A) FLL2_EFS_2 */
> +#define MADERA_FLL2_PHASE_GAIN_MASK 0xF000
> +#define MADERA_FLL2_PHASE_GAIN_SHIFT 12
> +#define MADERA_FLL2_PHASE_GAIN_WIDTH 4
> +#define MADERA_FLL2_PHASE_ENA_MASK 0x0800
> +#define MADERA_FLL2_PHASE_ENA_SHIFT 11
> +#define MADERA_FLL2_PHASE_ENA_WIDTH 1
> +
> +/* (0x01A1) FLL2_Synchroniser_1 */
> +#define MADERA_FLL2_SYNC_ENA 0x0001
> +#define MADERA_FLL2_SYNC_ENA_MASK 0x0001
> +#define MADERA_FLL2_SYNC_ENA_SHIFT 0
> +#define MADERA_FLL2_SYNC_ENA_WIDTH 1
> +
> +/* (0x01A2) FLL2_Synchroniser_2 */
> +#define MADERA_FLL2_SYNC_N_MASK 0x03FF
> +#define MADERA_FLL2_SYNC_N_SHIFT 0
> +#define MADERA_FLL2_SYNC_N_WIDTH 10
> +
> +/* (0x01A3) FLL2_Synchroniser_3 */
> +#define MADERA_FLL2_SYNC_THETA_MASK 0xFFFF
> +#define MADERA_FLL2_SYNC_THETA_SHIFT 0
> +#define MADERA_FLL2_SYNC_THETA_WIDTH 16
> +
> +/* (0x01A4) FLL2_Synchroniser_4 */
> +#define MADERA_FLL2_SYNC_LAMBDA_MASK 0xFFFF
> +#define MADERA_FLL2_SYNC_LAMBDA_SHIFT 0
> +#define MADERA_FLL2_SYNC_LAMBDA_WIDTH 16
> +
> +/* (0x01A5) FLL2_Synchroniser_5 */
> +#define MADERA_FLL2_SYNC_FRATIO_MASK 0x0700
> +#define MADERA_FLL2_SYNC_FRATIO_SHIFT 8
> +#define MADERA_FLL2_SYNC_FRATIO_WIDTH 3
> +
> +/* (0x01A6) FLL2_Synchroniser_6 */
> +#define MADERA_FLL2_SYNCCLK_DIV_MASK 0x00C0
> +#define MADERA_FLL2_SYNCCLK_DIV_SHIFT 6
> +#define MADERA_FLL2_SYNCCLK_DIV_WIDTH 2
> +#define MADERA_FLL2_SYNCCLK_SRC_MASK 0x000F
> +#define MADERA_FLL2_SYNCCLK_SRC_SHIFT 0
> +#define MADERA_FLL2_SYNCCLK_SRC_WIDTH 4
> +
> +/* (0x01A7) FLL2_Synchroniser_7 */
> +#define MADERA_FLL2_SYNC_GAIN_MASK 0x003c
> +#define MADERA_FLL2_SYNC_GAIN_SHIFT 2
> +#define MADERA_FLL2_SYNC_GAIN_WIDTH 4
> +#define MADERA_FLL2_SYNC_DFSAT 0x0001
> +#define MADERA_FLL2_SYNC_DFSAT_MASK 0x0001
> +#define MADERA_FLL2_SYNC_DFSAT_SHIFT 0
> +#define MADERA_FLL2_SYNC_DFSAT_WIDTH 1
> +
> +/* (0x01A9) FLL2_Spread_Spectrum */
> +#define MADERA_FLL2_SS_AMPL_MASK 0x0030
> +#define MADERA_FLL2_SS_AMPL_SHIFT 4
> +#define MADERA_FLL2_SS_AMPL_WIDTH 2
> +#define MADERA_FLL2_SS_FREQ_MASK 0x000C
> +#define MADERA_FLL2_SS_FREQ_SHIFT 2
> +#define MADERA_FLL2_SS_FREQ_WIDTH 2
> +#define MADERA_FLL2_SS_SEL_MASK 0x0003
> +#define MADERA_FLL2_SS_SEL_SHIFT 0
> +#define MADERA_FLL2_SS_SEL_WIDTH 2
> +
> +/* (0x01AA) FLL2_GPIO_Clock */
> +#define MADERA_FLL2_GPCLK_DIV_MASK 0x00FE
> +#define MADERA_FLL2_GPCLK_DIV_SHIFT 1
> +#define MADERA_FLL2_GPCLK_DIV_WIDTH 7
> +#define MADERA_FLL2_GPCLK_ENA 0x0001
> +#define MADERA_FLL2_GPCLK_ENA_MASK 0x0001
> +#define MADERA_FLL2_GPCLK_ENA_SHIFT 0
> +#define MADERA_FLL2_GPCLK_ENA_WIDTH 1
> +
> +/* (0x01B1) FLL3_Control_1 */
> +#define MADERA_FLL3_FREERUN 0x0002
> +#define MADERA_FLL3_FREERUN_MASK 0x0002
> +#define MADERA_FLL3_FREERUN_SHIFT 1
> +#define MADERA_FLL3_FREERUN_WIDTH 1
> +#define MADERA_FLL3_ENA 0x0001
> +#define MADERA_FLL3_ENA_MASK 0x0001
> +#define MADERA_FLL3_ENA_SHIFT 0
> +#define MADERA_FLL3_ENA_WIDTH 1
> +
> +/* (0x01B2) FLL3_Control_2 */
> +#define MADERA_FLL3_CTRL_UPD 0x8000
> +#define MADERA_FLL3_CTRL_UPD_MASK 0x8000
> +#define MADERA_FLL3_CTRL_UPD_SHIFT 15
> +#define MADERA_FLL3_CTRL_UPD_WIDTH 1
> +#define MADERA_FLL3_N_MASK 0x03FF
> +#define MADERA_FLL3_N_SHIFT 0
> +#define MADERA_FLL3_N_WIDTH 10
> +
> +/* (0x01B3) FLL3_Control_3 */
> +#define MADERA_FLL3_THETA_MASK 0xFFFF
> +#define MADERA_FLL3_THETA_SHIFT 0
> +#define MADERA_FLL3_THETA_WIDTH 16
> +
> +/* (0x01B4) FLL3_Control_4 */
> +#define MADERA_FLL3_LAMBDA_MASK 0xFFFF
> +#define MADERA_FLL3_LAMBDA_SHIFT 0
> +#define MADERA_FLL3_LAMBDA_WIDTH 16
> +
> +/* (0x01B5) FLL3_Control_5 */
> +#define MADERA_FLL3_FRATIO_MASK 0x0700
> +#define MADERA_FLL3_FRATIO_SHIFT 8
> +#define MADERA_FLL3_FRATIO_WIDTH 3
> +
> +/* (0x01B6) FLL3_Control_6 */
> +#define MADERA_FLL3_REFCLK_DIV_MASK 0x00C0
> +#define MADERA_FLL3_REFCLK_DIV_SHIFT 6
> +#define MADERA_FLL3_REFCLK_DIV_WIDTH 2
> +#define MADERA_FLL3_REFCLK_SRC_MASK 0x000F
> +#define MADERA_FLL3_REFCLK_SRC_SHIFT 0
> +#define MADERA_FLL3_REFCLK_SRC_WIDTH 4
> +
> +/* (0x01B7) FLL3_Loop_Filter_Test_1 */
> +#define MADERA_FLL3_FRC_INTEG_UPD 0x8000
> +#define MADERA_FLL3_FRC_INTEG_UPD_MASK 0x8000
> +#define MADERA_FLL3_FRC_INTEG_UPD_SHIFT 15
> +#define MADERA_FLL3_FRC_INTEG_UPD_WIDTH 1
> +#define MADERA_FLL3_FRC_INTEG_VAL_MASK 0x0FFF
> +#define MADERA_FLL3_FRC_INTEG_VAL_SHIFT 0
> +#define MADERA_FLL3_FRC_INTEG_VAL_WIDTH 12
> +
> +/* (0x01B9) FLL3_Control_7 */
> +#define MADERA_FLL3_GAIN_MASK 0x003c
> +#define MADERA_FLL3_GAIN_SHIFT 2
> +#define MADERA_FLL3_GAIN_WIDTH 4
> +
> +/* (0x01C1) FLL3_Synchroniser_1 */
> +#define MADERA_FLL3_SYNC_ENA 0x0001
> +#define MADERA_FLL3_SYNC_ENA_MASK 0x0001
> +#define MADERA_FLL3_SYNC_ENA_SHIFT 0
> +#define MADERA_FLL3_SYNC_ENA_WIDTH 1
> +
> +/* (0x01C2) FLL3_Synchroniser_2 */
> +#define MADERA_FLL3_SYNC_N_MASK 0x03FF
> +#define MADERA_FLL3_SYNC_N_SHIFT 0
> +#define MADERA_FLL3_SYNC_N_WIDTH 10
> +
> +/* (0x01C3) FLL3_Synchroniser_3 */
> +#define MADERA_FLL3_SYNC_THETA_MASK 0xFFFF
> +#define MADERA_FLL3_SYNC_THETA_SHIFT 0
> +#define MADERA_FLL3_SYNC_THETA_WIDTH 16
> +
> +/* (0x01C4) FLL3_Synchroniser_4 */
> +#define MADERA_FLL3_SYNC_LAMBDA_MASK 0xFFFF
> +#define MADERA_FLL3_SYNC_LAMBDA_SHIFT 0
> +#define MADERA_FLL3_SYNC_LAMBDA_WIDTH 16
> +
> +/* (0x01C5) FLL3_Synchroniser_5 */
> +#define MADERA_FLL3_SYNC_FRATIO_MASK 0x0700
> +#define MADERA_FLL3_SYNC_FRATIO_SHIFT 8
> +#define MADERA_FLL3_SYNC_FRATIO_WIDTH 3
> +
> +/* (0x01C6) FLL3_Synchroniser_6 */
> +#define MADERA_FLL3_SYNCCLK_DIV_MASK 0x00C0
> +#define MADERA_FLL3_SYNCCLK_DIV_SHIFT 6
> +#define MADERA_FLL3_SYNCCLK_DIV_WIDTH 2
> +#define MADERA_FLL3_SYNCCLK_SRC_MASK 0x000F
> +#define MADERA_FLL3_SYNCCLK_SRC_SHIFT 0
> +#define MADERA_FLL3_SYNCCLK_SRC_WIDTH 4
> +
> +/* (0x01C7) FLL3_Synchroniser_7 */
> +#define MADERA_FLL3_SYNC_GAIN_MASK 0x003c
> +#define MADERA_FLL3_SYNC_GAIN_SHIFT 2
> +#define MADERA_FLL3_SYNC_GAIN_WIDTH 4
> +#define MADERA_FLL3_SYNC_DFSAT 0x0001
> +#define MADERA_FLL3_SYNC_DFSAT_MASK 0x0001
> +#define MADERA_FLL3_SYNC_DFSAT_SHIFT 0
> +#define MADERA_FLL3_SYNC_DFSAT_WIDTH 1
> +
> +/* (0x01C9) FLL3_Spread_Spectrum */
> +#define MADERA_FLL3_SS_AMPL_MASK 0x0030
> +#define MADERA_FLL3_SS_AMPL_SHIFT 4
> +#define MADERA_FLL3_SS_AMPL_WIDTH 2
> +#define MADERA_FLL3_SS_FREQ_MASK 0x000C
> +#define MADERA_FLL3_SS_FREQ_SHIFT 2
> +#define MADERA_FLL3_SS_FREQ_WIDTH 2
> +#define MADERA_FLL3_SS_SEL_MASK 0x0003
> +#define MADERA_FLL3_SS_SEL_SHIFT 0
> +#define MADERA_FLL3_SS_SEL_WIDTH 2
> +
> +/* (0x01CA) FLL3_GPIO_Clock */
> +#define MADERA_FLL3_GPCLK_DIV_MASK 0x00FE
> +#define MADERA_FLL3_GPCLK_DIV_SHIFT 1
> +#define MADERA_FLL3_GPCLK_DIV_WIDTH 7
> +#define MADERA_FLL3_GPCLK_DIV_ENA 0x0001
> +#define MADERA_FLL3_GPCLK_DIV_ENA_MASK 0x0001
> +#define MADERA_FLL3_GPCLK_DIV_ENA_SHIFT 0
> +#define MADERA_FLL3_GPCLK_DIV_ENA_WIDTH 1
> +
> +/* (0x01D1) FLL_AO_Control_1 */
> +#define MADERA_FLL_AO_HOLD 0x0004
> +#define MADERA_FLL_AO_HOLD_MASK 0x0004
> +#define MADERA_FLL_AO_HOLD_SHIFT 2
> +#define MADERA_FLL_AO_HOLD_WIDTH 1
> +#define MADERA_FLL_AO_FREERUN 0x0002
> +#define MADERA_FLL_AO_FREERUN_MASK 0x0002
> +#define MADERA_FLL_AO_FREERUN_SHIFT 1
> +#define MADERA_FLL_AO_FREERUN_WIDTH 1
> +#define MADERA_FLL_AO_ENA 0x0001
> +#define MADERA_FLL_AO_ENA_MASK 0x0001
> +#define MADERA_FLL_AO_ENA_SHIFT 0
> +#define MADERA_FLL_AO_ENA_WIDTH 1
> +
> +/* (0x01D2) FLL_AO_Control_2 */
> +#define MADERA_FLL_AO_CTRL_UPD 0x8000
> +#define MADERA_FLL_AO_CTRL_UPD_MASK 0x8000
> +#define MADERA_FLL_AO_CTRL_UPD_SHIFT 15
> +#define MADERA_FLL_AO_CTRL_UPD_WIDTH 1
> +#define MADERA_FLL_AO_N_MASK 0x03FF
> +#define MADERA_FLL_AO_N_SHIFT 0
> +#define MADERA_FLL_AO_N_WIDTH 10
> +
> +/* (0x01D3) FLL_AO_Control_3 */
> +#define MADERA_FLL_AO_THETA_MASK 0x00FF
> +#define MADERA_FLL_AO_THETA_SHIFT 0
> +#define MADERA_FLL_AO_THETA_WIDTH 8
> +
> +/* (0x01D4) FLL_AO_Control_4 */
> +#define MADERA_FLL_AO_LAMBDA_MASK 0x00FF
> +#define MADERA_FLL_AO_LAMBDA_SHIFT 0
> +#define MADERA_FLL_AO_LAMBDA_WIDTH 8
> +
> +/* (0x01D5) FLL_AO_Control_5 */
> +#define MADERA_FLL_AO_FB_DIV_MASK 0x00FF
> +#define MADERA_FLL_AO_FB_DIV_SHIFT 0
> +#define MADERA_FLL_AO_FB_DIV_WIDTH 8
> +
> +/* (0x01D6) FLL_AO_Control_6 */
> +#define MADERA_FLL_AO_REFDET_ENA 0x8000
> +#define MADERA_FLL_AO_REFDET_ENA_MASK 0x8000
> +#define MADERA_FLL_AO_REFDET_ENA_SHIFT 15
> +#define MADERA_FLL_AO_REFDET_ENA_WIDTH 1
> +#define MADERA_FLL_AO_REFCLK_DIV_MASK 0x00C0
> +#define MADERA_FLL_AO_REFCLK_DIV_SHIFT 6
> +#define MADERA_FLL_AO_REFCLK_DIV_WIDTH 2
> +#define MADERA_FLL_AO_REFCLK_SRC_MASK 0x000F
> +#define MADERA_FLL_AO_REFCLK_SRC_SHIFT 0
> +#define MADERA_FLL_AO_REFCLK_SRC_WIDTH 4
> +
> +/* (0x01D8) FLL_AO_Control_7 */
> +#define MADERA_FLL_AO_GAIN_MASK 0x000F
> +#define MADERA_FLL_AO_GAIN_SHIFT 0
> +#define MADERA_FLL_AO_GAIN_WIDTH 4
> +
> +/* (0x01DA) FLL_AO_Control_8 */
> +#define MADERA_FLL_AO_HS_DITH_TUNE_MASK 0xF000
> +#define MADERA_FLL_AO_HS_DITH_TUNE_SHIFT 12
> +#define MADERA_FLL_AO_HS_DITH_TUNE_WIDTH 4
> +#define MADERA_FLL_AO_LS_DITH_TUNE_SHAPED_MASK 0x00F0
> +#define MADERA_FLL_AO_LS_DITH_TUNE_SHAPED_SHIFT 4
> +#define MADERA_FLL_AO_LS_DITH_TUNE_SHAPED_WIDTH 4
> +#define MADERA_FLL_AO_LS_DITH_TUNE_NONSHAPED_MASK 0x000F
> +#define MADERA_FLL_AO_LS_DITH_TUNE_NONSHAPED_SHIFT 0
> +#define MADERA_FLL_AO_LS_DITH_TUNE_NONSHAPED_WIDTH 4
> +
> +/* (0x01DB) FLL_AO_Control_9 */
> +#define MADERA_FLL_AO_TR_RATE_MASK 0x000F
> +#define MADERA_FLL_AO_TR_RATE_SHIFT 0
> +#define MADERA_FLL_AO_TR_RATE_WIDTH 4
> +
> +/* (0x01DC) FLL_AO_Control_10 */
> +#define MADERA_FLL_AO_PHASEDET_ENA 0x1000
> +#define MADERA_FLL_AO_PHASEDET_ENA_MASK 0x1000
> +#define MADERA_FLL_AO_PHASEDET_ENA_SHIFT 12
> +#define MADERA_FLL_AO_PHASEDET_ENA_WIDTH 1
> +#define MADERA_FLL_AO_WLR_SDM_FRC_ENA 0x0800
> +#define MADERA_FLL_AO_WLR_SDM_FRC_ENA_MASK 0x0800
> +#define MADERA_FLL_AO_WLR_SDM_FRC_ENA_SHIFT 11
> +#define MADERA_FLL_AO_WLR_SDM_FRC_ENA_WIDTH 1
> +#define MADERA_FLL_AO_WLR_SDM_ENA 0x0400
> +#define MADERA_FLL_AO_WLR_SDM_ENA_MASK 0x0400
> +#define MADERA_FLL_AO_WLR_SDM_ENA_SHIFT 10
> +#define MADERA_FLL_AO_WLR_SDM_ENA_WIDTH 1
> +#define MADERA_FLL_AO_SYNC_EFS_ENA 0x0200
> +#define MADERA_FLL_AO_SYNC_EFS_ENA_MASK 0x0200
> +#define MADERA_FLL_AO_SYNC_EFS_ENA_SHIFT 9
> +#define MADERA_FLL_AO_SYNC_EFS_ENA_WIDTH 1
> +#define MADERA_FLL_AO_LS_DITH_ENA 0x0080
> +#define MADERA_FLL_AO_LS_DITH_ENA_MASK 0x0080
> +#define MADERA_FLL_AO_LS_DITH_ENA_SHIFT 7
> +#define MADERA_FLL_AO_LS_DITH_ENA_WIDTH 1
> +#define MADERA_FLL_AO_HS_DITH_ENA 0x0040
> +#define MADERA_FLL_AO_HS_DITH_ENA_MASK 0x0040
> +#define MADERA_FLL_AO_HS_DITH_ENA_SHIFT 6
> +#define MADERA_FLL_AO_HS_DITH_ENA_WIDTH 1
> +#define MADERA_FLL_AO_OSF_FRC_ENA 0x0010
> +#define MADERA_FLL_AO_OSF_FRC_ENA_MASK 0x0010
> +#define MADERA_FLL_AO_OSF_FRC_ENA_SHIFT 4
> +#define MADERA_FLL_AO_OSF_FRC_ENA_WIDTH 1
> +#define MADERA_FLL_AO_OSF_ENA 0x0008
> +#define MADERA_FLL_AO_OSF_ENA_MASK 0x0008
> +#define MADERA_FLL_AO_OSF_ENA_SHIFT 3
> +#define MADERA_FLL_AO_OSF_ENA_WIDTH 1
> +#define MADERA_FLL_AO_AUTO_DFSAT_ENA 0x0002
> +#define MADERA_FLL_AO_AUTO_DFSAT_ENA_MASK 0x0002
> +#define MADERA_FLL_AO_AUTO_DFSAT_ENA_SHIFT 1
> +#define MADERA_FLL_AO_AUTO_DFSAT_ENA_WIDTH 1
> +#define MADERA_FLL_AO_DFSAT_ENA 0x0001
> +#define MADERA_FLL_AO_DFSAT_ENA_MASK 0x0001
> +#define MADERA_FLL_AO_DFSAT_ENA_SHIFT 0
> +#define MADERA_FLL_AO_DFSAT_ENA_WIDTH 1
> +
> +/* (0x01DD) FLL_AO_Control_11 */
> +#define MADERA_FLL_AO_LOCKDET_PHASE_MASK 0x0080
> +#define MADERA_FLL_AO_LOCKDET_PHASE_MASK_MASK 0x0080
> +#define MADERA_FLL_AO_LOCKDET_PHASE_MASK_SHIFT 7
> +#define MADERA_FLL_AO_LOCKDET_PHASE_MASK_WIDTH 1
> +#define MADERA_FLL_AO_LOCKDET_THR_MASK 0x001E
> +#define MADERA_FLL_AO_LOCKDET_THR_SHIFT 1
> +#define MADERA_FLL_AO_LOCKDET_THR_WIDTH 4
> +#define MADERA_FLL_AO_LOCKDET_ENA 0x0001
> +#define MADERA_FLL_AO_LOCKDET_ENA_MASK 0x0001
> +#define MADERA_FLL_AO_LOCKDET_ENA_SHIFT 0
> +#define MADERA_FLL_AO_LOCKDET_ENA_WIDTH 1
> +
> +/* (0x0200) Mic_Charge_Pump_1 */
> +#define MADERA_CPMIC_DISCH 0x0004
> +#define MADERA_CPMIC_DISCH_MASK 0x0004
> +#define MADERA_CPMIC_DISCH_SHIFT 2
> +#define MADERA_CPMIC_DISCH_WIDTH 1
> +#define MADERA_CPMIC_BYPASS 0x0002
> +#define MADERA_CPMIC_BYPASS_MASK 0x0002
> +#define MADERA_CPMIC_BYPASS_SHIFT 1
> +#define MADERA_CPMIC_BYPASS_WIDTH 1
> +#define MADERA_CPMIC_ENA 0x0001
> +#define MADERA_CPMIC_ENA_MASK 0x0001
> +#define MADERA_CPMIC_ENA_SHIFT 0
> +#define MADERA_CPMIC_ENA_WIDTH 1
> +
> +/* (0x0210) LDO1_Control_1 */
> +#define MADERA_LDO1_VSEL_MASK 0x07E0
> +#define MADERA_LDO1_VSEL_SHIFT 5
> +#define MADERA_LDO1_VSEL_WIDTH 6
> +#define MADERA_LDO1_FAST 0x0010
> +#define MADERA_LDO1_FAST_MASK 0x0010
> +#define MADERA_LDO1_FAST_SHIFT 4
> +#define MADERA_LDO1_FAST_WIDTH 1
> +#define MADERA_LDO1_DISCH 0x0004
> +#define MADERA_LDO1_DISCH_MASK 0x0004
> +#define MADERA_LDO1_DISCH_SHIFT 2
> +#define MADERA_LDO1_DISCH_WIDTH 1
> +#define MADERA_LDO1_BYPASS 0x0002
> +#define MADERA_LDO1_BYPASS_MASK 0x0002
> +#define MADERA_LDO1_BYPASS_SHIFT 1
> +#define MADERA_LDO1_BYPASS_WIDTH 1
> +#define MADERA_LDO1_ENA 0x0001
> +#define MADERA_LDO1_ENA_MASK 0x0001
> +#define MADERA_LDO1_ENA_SHIFT 0
> +#define MADERA_LDO1_ENA_WIDTH 1
> +
> +/* (0x0213) LDO2_Control_1 */
> +#define MADERA_LDO2_VSEL_MASK 0x07E0
> +#define MADERA_LDO2_VSEL_SHIFT 5
> +#define MADERA_LDO2_VSEL_WIDTH 6
> +#define MADERA_LDO2_FAST 0x0010
> +#define MADERA_LDO2_FAST_MASK 0x0010
> +#define MADERA_LDO2_FAST_SHIFT 4
> +#define MADERA_LDO2_FAST_WIDTH 1
> +#define MADERA_LDO2_DISCH 0x0004
> +#define MADERA_LDO2_DISCH_MASK 0x0004
> +#define MADERA_LDO2_DISCH_SHIFT 2
> +#define MADERA_LDO2_DISCH_WIDTH 1
> +#define MADERA_LDO2_BYPASS 0x0002
> +#define MADERA_LDO2_BYPASS_MASK 0x0002
> +#define MADERA_LDO2_BYPASS_SHIFT 1
> +#define MADERA_LDO2_BYPASS_WIDTH 1
> +#define MADERA_LDO2_ENA 0x0001
> +#define MADERA_LDO2_ENA_MASK 0x0001
> +#define MADERA_LDO2_ENA_SHIFT 0
> +#define MADERA_LDO2_ENA_WIDTH 1
> +
> +/* (0x0218) Mic_Bias_Ctrl_1 */
> +#define MADERA_MICB1_EXT_CAP 0x8000
> +#define MADERA_MICB1_EXT_CAP_MASK 0x8000
> +#define MADERA_MICB1_EXT_CAP_SHIFT 15
> +#define MADERA_MICB1_EXT_CAP_WIDTH 1
> +#define MADERA_MICB1_LVL_MASK 0x01E0
> +#define MADERA_MICB1_LVL_SHIFT 5
> +#define MADERA_MICB1_LVL_WIDTH 4
> +#define MADERA_MICB1_FAST 0x0010
> +#define MADERA_MICB1_FAST_MASK 0x0010
> +#define MADERA_MICB1_FAST_SHIFT 4
> +#define MADERA_MICB1_FAST_WIDTH 1
> +#define MADERA_MICB1_RATE 0x0008
> +#define MADERA_MICB1_RATE_MASK 0x0008
> +#define MADERA_MICB1_RATE_SHIFT 3
> +#define MADERA_MICB1_RATE_WIDTH 1
> +#define MADERA_MICB1_DISCH 0x0004
> +#define MADERA_MICB1_DISCH_MASK 0x0004
> +#define MADERA_MICB1_DISCH_SHIFT 2
> +#define MADERA_MICB1_DISCH_WIDTH 1
> +#define MADERA_MICB1_BYPASS 0x0002
> +#define MADERA_MICB1_BYPASS_MASK 0x0002
> +#define MADERA_MICB1_BYPASS_SHIFT 1
> +#define MADERA_MICB1_BYPASS_WIDTH 1
> +#define MADERA_MICB1_ENA 0x0001
> +#define MADERA_MICB1_ENA_MASK 0x0001
> +#define MADERA_MICB1_ENA_SHIFT 0
> +#define MADERA_MICB1_ENA_WIDTH 1
> +
> +/* (0x0219) Mic_Bias_Ctrl_2 */
> +#define MADERA_MICB2_EXT_CAP 0x8000
> +#define MADERA_MICB2_EXT_CAP_MASK 0x8000
> +#define MADERA_MICB2_EXT_CAP_SHIFT 15
> +#define MADERA_MICB2_EXT_CAP_WIDTH 1
> +#define MADERA_MICB2_LVL_MASK 0x01E0
> +#define MADERA_MICB2_LVL_SHIFT 5
> +#define MADERA_MICB2_LVL_WIDTH 4
> +#define MADERA_MICB2_FAST 0x0010
> +#define MADERA_MICB2_FAST_MASK 0x0010
> +#define MADERA_MICB2_FAST_SHIFT 4
> +#define MADERA_MICB2_FAST_WIDTH 1
> +#define MADERA_MICB2_RATE 0x0008
> +#define MADERA_MICB2_RATE_MASK 0x0008
> +#define MADERA_MICB2_RATE_SHIFT 3
> +#define MADERA_MICB2_RATE_WIDTH 1
> +#define MADERA_MICB2_DISCH 0x0004
> +#define MADERA_MICB2_DISCH_MASK 0x0004
> +#define MADERA_MICB2_DISCH_SHIFT 2
> +#define MADERA_MICB2_DISCH_WIDTH 1
> +#define MADERA_MICB2_BYPASS 0x0002
> +#define MADERA_MICB2_BYPASS_MASK 0x0002
> +#define MADERA_MICB2_BYPASS_SHIFT 1
> +#define MADERA_MICB2_BYPASS_WIDTH 1
> +#define MADERA_MICB2_ENA 0x0001
> +#define MADERA_MICB2_ENA_MASK 0x0001
> +#define MADERA_MICB2_ENA_SHIFT 0
> +#define MADERA_MICB2_ENA_WIDTH 1
> +
> +/* (0x021A) Mic_Bias_Ctrl_3 */
> +#define MADERA_MICB3_EXT_CAP 0x8000
> +#define MADERA_MICB3_EXT_CAP_MASK 0x8000
> +#define MADERA_MICB3_EXT_CAP_SHIFT 15
> +#define MADERA_MICB3_EXT_CAP_WIDTH 1
> +#define MADERA_MICB3_LVL_MASK 0x01E0
> +#define MADERA_MICB3_LVL_SHIFT 5
> +#define MADERA_MICB3_LVL_WIDTH 4
> +#define MADERA_MICB3_FAST 0x0010
> +#define MADERA_MICB3_FAST_MASK 0x0010
> +#define MADERA_MICB3_FAST_SHIFT 4
> +#define MADERA_MICB3_FAST_WIDTH 1
> +#define MADERA_MICB3_RATE 0x0008
> +#define MADERA_MICB3_RATE_MASK 0x0008
> +#define MADERA_MICB3_RATE_SHIFT 3
> +#define MADERA_MICB3_RATE_WIDTH 1
> +#define MADERA_MICB3_DISCH 0x0004
> +#define MADERA_MICB3_DISCH_MASK 0x0004
> +#define MADERA_MICB3_DISCH_SHIFT 2
> +#define MADERA_MICB3_DISCH_WIDTH 1
> +#define MADERA_MICB3_BYPASS 0x0002
> +#define MADERA_MICB3_BYPASS_MASK 0x0002
> +#define MADERA_MICB3_BYPASS_SHIFT 1
> +#define MADERA_MICB3_BYPASS_WIDTH 1
> +#define MADERA_MICB3_ENA 0x0001
> +#define MADERA_MICB3_ENA_MASK 0x0001
> +#define MADERA_MICB3_ENA_SHIFT 0
> +#define MADERA_MICB3_ENA_WIDTH 1
> +
> +/* (0x021B) Mic_Bias_Ctrl_4 */
> +#define MADERA_MICB4_EXT_CAP 0x8000
> +#define MADERA_MICB4_EXT_CAP_MASK 0x8000
> +#define MADERA_MICB4_EXT_CAP_SHIFT 15
> +#define MADERA_MICB4_EXT_CAP_WIDTH 1
> +#define MADERA_MICB4_LVL_MASK 0x01E0
> +#define MADERA_MICB4_LVL_SHIFT 5
> +#define MADERA_MICB4_LVL_WIDTH 4
> +#define MADERA_MICB4_FAST 0x0010
> +#define MADERA_MICB4_FAST_MASK 0x0010
> +#define MADERA_MICB4_FAST_SHIFT 4
> +#define MADERA_MICB4_FAST_WIDTH 1
> +#define MADERA_MICB4_RATE 0x0008
> +#define MADERA_MICB4_RATE_MASK 0x0008
> +#define MADERA_MICB4_RATE_SHIFT 3
> +#define MADERA_MICB4_RATE_WIDTH 1
> +#define MADERA_MICB4_DISCH 0x0004
> +#define MADERA_MICB4_DISCH_MASK 0x0004
> +#define MADERA_MICB4_DISCH_SHIFT 2
> +#define MADERA_MICB4_DISCH_WIDTH 1
> +#define MADERA_MICB4_BYPASS 0x0002
> +#define MADERA_MICB4_BYPASS_MASK 0x0002
> +#define MADERA_MICB4_BYPASS_SHIFT 1
> +#define MADERA_MICB4_BYPASS_WIDTH 1
> +#define MADERA_MICB4_ENA 0x0001
> +#define MADERA_MICB4_ENA_MASK 0x0001
> +#define MADERA_MICB4_ENA_SHIFT 0
> +#define MADERA_MICB4_ENA_WIDTH 1
> +
> +/* (0x021C) Mic_Bias_Ctrl_5 */
> +#define MADERA_MICB1D_BYP 0x4000
> +#define MADERA_MICB1D_BYP_MASK 0x4000
> +#define MADERA_MICB1D_BYP_SHIFT 14
> +#define MADERA_MICB1D_BYP_WIDTH 1
> +#define MADERA_MICB1D_DISCH 0x2000
> +#define MADERA_MICB1D_DISCH_MASK 0x2000
> +#define MADERA_MICB1D_DISCH_SHIFT 13
> +#define MADERA_MICB1D_DISCH_WIDTH 1
> +#define MADERA_MICB1D_ENA 0x1000
> +#define MADERA_MICB1D_ENA_MASK 0x1000
> +#define MADERA_MICB1D_ENA_SHIFT 12
> +#define MADERA_MICB1D_ENA_WIDTH 1
> +#define MADERA_MICB1C_BYP 0x0400
> +#define MADERA_MICB1C_BYP_MASK 0x0400
> +#define MADERA_MICB1C_BYP_SHIFT 10
> +#define MADERA_MICB1C_BYP_WIDTH 1
> +#define MADERA_MICB1C_DISCH 0x0200
> +#define MADERA_MICB1C_DISCH_MASK 0x0200
> +#define MADERA_MICB1C_DISCH_SHIFT 9
> +#define MADERA_MICB1C_DISCH_WIDTH 1
> +#define MADERA_MICB1C_ENA 0x0100
> +#define MADERA_MICB1C_ENA_MASK 0x0100
> +#define MADERA_MICB1C_ENA_SHIFT 8
> +#define MADERA_MICB1C_ENA_WIDTH 1
> +#define MADERA_MICB1B_BYP 0x0040
> +#define MADERA_MICB1B_BYP_MASK 0x0040
> +#define MADERA_MICB1B_BYP_SHIFT 6
> +#define MADERA_MICB1B_BYP_WIDTH 1
> +#define MADERA_MICB1B_DISCH 0x0020
> +#define MADERA_MICB1B_DISCH_MASK 0x0020
> +#define MADERA_MICB1B_DISCH_SHIFT 5
> +#define MADERA_MICB1B_DISCH_WIDTH 1
> +#define MADERA_MICB1B_ENA 0x0010
> +#define MADERA_MICB1B_ENA_MASK 0x0010
> +#define MADERA_MICB1B_ENA_SHIFT 4
> +#define MADERA_MICB1B_ENA_WIDTH 1
> +#define MADERA_MICB1A_BYP 0x0004
> +#define MADERA_MICB1A_BYP_MASK 0x0004
> +#define MADERA_MICB1A_BYP_SHIFT 2
> +#define MADERA_MICB1A_BYP_WIDTH 1
> +#define MADERA_MICB1A_DISCH 0x0002
> +#define MADERA_MICB1A_DISCH_MASK 0x0002
> +#define MADERA_MICB1A_DISCH_SHIFT 1
> +#define MADERA_MICB1A_DISCH_WIDTH 1
> +#define MADERA_MICB1A_ENA 0x0001
> +#define MADERA_MICB1A_ENA_MASK 0x0001
> +#define MADERA_MICB1A_ENA_SHIFT 0
> +#define MADERA_MICB1A_ENA_WIDTH 1
> +
> +/* (0x021E) Mic_Bias_Ctrl_6 */
> +#define MADERA_MICB2D_BYP 0x4000
> +#define MADERA_MICB2D_BYP_MASK 0x4000
> +#define MADERA_MICB2D_BYP_SHIFT 14
> +#define MADERA_MICB2D_BYP_WIDTH 1
> +#define MADERA_MICB2D_DISCH 0x2000
> +#define MADERA_MICB2D_DISCH_MASK 0x2000
> +#define MADERA_MICB2D_DISCH_SHIFT 13
> +#define MADERA_MICB2D_DISCH_WIDTH 1
> +#define MADERA_MICB2D_ENA 0x1000
> +#define MADERA_MICB2D_ENA_MASK 0x1000
> +#define MADERA_MICB2D_ENA_SHIFT 12
> +#define MADERA_MICB2D_ENA_WIDTH 1
> +#define MADERA_MICB2C_BYP 0x0400
> +#define MADERA_MICB2C_BYP_MASK 0x0400
> +#define MADERA_MICB2C_BYP_SHIFT 10
> +#define MADERA_MICB2C_BYP_WIDTH 1
> +#define MADERA_MICB2C_DISCH 0x0200
> +#define MADERA_MICB2C_DISCH_MASK 0x0200
> +#define MADERA_MICB2C_DISCH_SHIFT 9
> +#define MADERA_MICB2C_DISCH_WIDTH 1
> +#define MADERA_MICB2C_ENA 0x0100
> +#define MADERA_MICB2C_ENA_MASK 0x0100
> +#define MADERA_MICB2C_ENA_SHIFT 8
> +#define MADERA_MICB2C_ENA_WIDTH 1
> +#define MADERA_MICB2B_BYP 0x0040
> +#define MADERA_MICB2B_BYP_MASK 0x0040
> +#define MADERA_MICB2B_BYP_SHIFT 6
> +#define MADERA_MICB2B_BYP_WIDTH 1
> +#define MADERA_MICB2B_DISCH 0x0020
> +#define MADERA_MICB2B_DISCH_MASK 0x0020
> +#define MADERA_MICB2B_DISCH_SHIFT 5
> +#define MADERA_MICB2B_DISCH_WIDTH 1
> +#define MADERA_MICB2B_ENA 0x0010
> +#define MADERA_MICB2B_ENA_MASK 0x0010
> +#define MADERA_MICB2B_ENA_SHIFT 4
> +#define MADERA_MICB2B_ENA_WIDTH 1
> +#define MADERA_MICB2A_BYP 0x0004
> +#define MADERA_MICB2A_BYP_MASK 0x0004
> +#define MADERA_MICB2A_BYP_SHIFT 2
> +#define MADERA_MICB2A_BYP_WIDTH 1
> +#define MADERA_MICB2A_DISCH 0x0002
> +#define MADERA_MICB2A_DISCH_MASK 0x0002
> +#define MADERA_MICB2A_DISCH_SHIFT 1
> +#define MADERA_MICB2A_DISCH_WIDTH 1
> +#define MADERA_MICB2A_ENA 0x0001
> +#define MADERA_MICB2A_ENA_MASK 0x0001
> +#define MADERA_MICB2A_ENA_SHIFT 0
> +#define MADERA_MICB2A_ENA_WIDTH 1
> +
> +/* (0x0225) - HP Ctrl 1L */
> +#define MADERA_RMV_SHRT_HP1L 0x4000
> +#define MADERA_RMV_SHRT_HP1L_MASK 0x4000
> +#define MADERA_RMV_SHRT_HP1L_SHIFT 14
> +#define MADERA_RMV_SHRT_HP1L_WIDTH 1
> +#define MADERA_HP1L_FLWR 0x0004
> +#define MADERA_HP1L_FLWR_MASK 0x0004
> +#define MADERA_HP1L_FLWR_SHIFT 2
> +#define MADERA_HP1L_FLWR_WIDTH 1
> +#define MADERA_HP1L_SHRTI 0x0002
> +#define MADERA_HP1L_SHRTI_MASK 0x0002
> +#define MADERA_HP1L_SHRTI_SHIFT 1
> +#define MADERA_HP1L_SHRTI_WIDTH 1
> +#define MADERA_HP1L_SHRTO 0x0001
> +#define MADERA_HP1L_SHRTO_MASK 0x0001
> +#define MADERA_HP1L_SHRTO_SHIFT 0
> +#define MADERA_HP1L_SHRTO_WIDTH 1
> +
> +/* (0x0226) - HP Ctrl 1R */
> +#define MADERA_RMV_SHRT_HP1R 0x4000
> +#define MADERA_RMV_SHRT_HP1R_MASK 0x4000
> +#define MADERA_RMV_SHRT_HP1R_SHIFT 14
> +#define MADERA_RMV_SHRT_HP1R_WIDTH 1
> +#define MADERA_HP1R_FLWR 0x0004
> +#define MADERA_HP1R_FLWR_MASK 0x0004
> +#define MADERA_HP1R_FLWR_SHIFT 2
> +#define MADERA_HP1R_FLWR_WIDTH 1
> +#define MADERA_HP1R_SHRTI 0x0002
> +#define MADERA_HP1R_SHRTI_MASK 0x0002
> +#define MADERA_HP1R_SHRTI_SHIFT 1
> +#define MADERA_HP1R_SHRTI_WIDTH 1
> +#define MADERA_HP1R_SHRTO 0x0001
> +#define MADERA_HP1R_SHRTO_MASK 0x0001
> +#define MADERA_HP1R_SHRTO_SHIFT 0
> +#define MADERA_HP1R_SHRTO_WIDTH 1
> +
> +/* (0x027E) - EDRE HP stereo control */
> +#define MADERA_HP3_EDRE_STEREO 0x0004
> +#define MADERA_HP3_EDRE_STEREO_MASK 0x0004
> +#define MADERA_HP3_EDRE_STEREO_SHIFT 2
> +#define MADERA_HP3_EDRE_STEREO_WIDTH 1
> +#define MADERA_HP2_EDRE_STEREO 0x0002
> +#define MADERA_HP2_EDRE_STEREO_MASK 0x0002
> +#define MADERA_HP2_EDRE_STEREO_SHIFT 1
> +#define MADERA_HP2_EDRE_STEREO_WIDTH 1
> +#define MADERA_HP1_EDRE_STEREO 0x0001
> +#define MADERA_HP1_EDRE_STEREO_MASK 0x0001
> +#define MADERA_HP1_EDRE_STEREO_SHIFT 0
> +#define MADERA_HP1_EDRE_STEREO_WIDTH 1
> +
> +/* (0x0293) Accessory_Detect_Mode_1 */
> +#define MADERA_ACCDET_SRC 0x2000
> +#define MADERA_ACCDET_SRC_MASK 0x2000
> +#define MADERA_ACCDET_SRC_SHIFT 13
> +#define MADERA_ACCDET_SRC_WIDTH 1
> +#define MADERA_ACCDET_POLARITY_INV_ENA 0x0080
> +#define MADERA_ACCDET_POLARITY_INV_ENA_MASK 0x0080
> +#define MADERA_ACCDET_POLARITY_INV_ENA_SHIFT 7
> +#define MADERA_ACCDET_POLARITY_INV_ENA_WIDTH 1
> +#define MADERA_ACCDET_MODE_MASK 0x0007
> +#define MADERA_ACCDET_MODE_SHIFT 0
> +#define MADERA_ACCDET_MODE_WIDTH 3
> +
> +/* (0x0299) Headphone_Detect_0 */
> +#define MADERA_HPD_GND_SEL 0x0007
> +#define MADERA_HPD_GND_SEL_MASK 0x0007
> +#define MADERA_HPD_GND_SEL_SHIFT 0
> +#define MADERA_HPD_GND_SEL_WIDTH 3
> +#define MADERA_HPD_SENSE_SEL 0x00F0
> +#define MADERA_HPD_SENSE_SEL_MASK 0x00F0
> +#define MADERA_HPD_SENSE_SEL_SHIFT 4
> +#define MADERA_HPD_SENSE_SEL_WIDTH 4
> +#define MADERA_HPD_FRC_SEL 0x0F00
> +#define MADERA_HPD_FRC_SEL_MASK 0x0F00
> +#define MADERA_HPD_FRC_SEL_SHIFT 8
> +#define MADERA_HPD_FRC_SEL_WIDTH 4
> +#define MADERA_HPD_OUT_SEL 0x7000
> +#define MADERA_HPD_OUT_SEL_MASK 0x7000
> +#define MADERA_HPD_OUT_SEL_SHIFT 12
> +#define MADERA_HPD_OUT_SEL_WIDTH 3
> +#define MADERA_HPD_OVD_ENA_SEL 0x8000
> +#define MADERA_HPD_OVD_ENA_SEL_MASK 0x8000
> +#define MADERA_HPD_OVD_ENA_SEL_SHIFT 15
> +#define MADERA_HPD_OVD_ENA_SEL_WIDTH 1
> +
> +/* (0x029B) Headphone_Detect_1 */
> +#define MADERA_HP_IMPEDANCE_RANGE_MASK 0x0600
> +#define MADERA_HP_IMPEDANCE_RANGE_SHIFT 9
> +#define MADERA_HP_IMPEDANCE_RANGE_WIDTH 2
> +#define MADERA_HP_STEP_SIZE 0x0100
> +#define MADERA_HP_STEP_SIZE_MASK 0x0100
> +#define MADERA_HP_STEP_SIZE_SHIFT 8
> +#define MADERA_HP_STEP_SIZE_WIDTH 1
> +#define MADERA_HP_HOLDTIME_MASK 0x00E0
> +#define MADERA_HP_HOLDTIME_SHIFT 5
> +#define MADERA_HP_HOLDTIME_WIDTH 3
> +#define MADERA_HP_CLK_DIV_MASK 0x0018
> +#define MADERA_HP_CLK_DIV_SHIFT 3
> +#define MADERA_HP_CLK_DIV_WIDTH 2
> +#define MADERA_HP_IDAC_STEER 0x0004
> +#define MADERA_HP_IDAC_STEER_MASK 0x0004
> +#define MADERA_HP_IDAC_STEER_SHIFT 2
> +#define MADERA_HP_IDAC_STEER_WIDTH 1
> +#define MADERA_HP_RATE_MASK 0x0006
> +#define MADERA_HP_RATE_SHIFT 1
> +#define MADERA_HP_RATE_WIDTH 2
> +#define MADERA_HP_POLL 0x0001
> +#define MADERA_HP_POLL_MASK 0x0001
> +#define MADERA_HP_POLL_SHIFT 0
> +#define MADERA_HP_POLL_WIDTH 1
> +
> +/* (0x029C) Headphone_Detect_2 */
> +#define MADERA_HP_DONE_MASK 0x8000
> +#define MADERA_HP_DONE_SHIFT 15
> +#define MADERA_HP_DONE_WIDTH 1
> +#define MADERA_HP_LVL_MASK 0x7FFF
> +#define MADERA_HP_LVL_SHIFT 0
> +#define MADERA_HP_LVL_WIDTH 15
> +
> +/* (0x029D) Headphone_Detect_3 */
> +#define MADERA_HP_DACVAL_MASK 0x03FF
> +#define MADERA_HP_DACVAL_SHIFT 0
> +#define MADERA_HP_DACVAL_WIDTH 10
> +
> +/* (0x029F) - Headphone Detect 5 */
> +#define MADERA_HP_DACVAL_DOWN_MASK 0x03FF
> +#define MADERA_HP_DACVAL_DOWN_SHIFT 0
> +#define MADERA_HP_DACVAL_DOWN_WIDTH 10
> +
> +/* (0x02A2) Mic_Detect_1_Control_0 */
> +#define MADERA_MICD1_GND_MASK 0x0007
> +#define MADERA_MICD1_GND_SHIFT 0
> +#define MADERA_MICD1_GND_WIDTH 3
> +#define MADERA_MICD1_SENSE_MASK 0x00F0
> +#define MADERA_MICD1_SENSE_SHIFT 4
> +#define MADERA_MICD1_SENSE_WIDTH 4
> +#define MADERA_MICD1_ADC_MODE_MASK 0x8000
> +#define MADERA_MICD1_ADC_MODE_SHIFT 15
> +#define MADERA_MICD1_ADC_MODE_WIDTH 1
> +
> +/* (0x02A3) Mic_Detect_1_Control_1 */
> +#define MADERA_MICD_BIAS_STARTTIME_MASK 0xF000
> +#define MADERA_MICD_BIAS_STARTTIME_SHIFT 12
> +#define MADERA_MICD_BIAS_STARTTIME_WIDTH 4
> +#define MADERA_MICD_RATE_MASK 0x0F00
> +#define MADERA_MICD_RATE_SHIFT 8
> +#define MADERA_MICD_RATE_WIDTH 4
> +#define MADERA_MICD_BIAS_SRC_MASK 0x00F0
> +#define MADERA_MICD_BIAS_SRC_SHIFT 4
> +#define MADERA_MICD_BIAS_SRC_WIDTH 4
> +#define MADERA_MICD_DBTIME 0x0002
> +#define MADERA_MICD_DBTIME_MASK 0x0002
> +#define MADERA_MICD_DBTIME_SHIFT 1
> +#define MADERA_MICD_DBTIME_WIDTH 1
> +#define MADERA_MICD_ENA 0x0001
> +#define MADERA_MICD_ENA_MASK 0x0001
> +#define MADERA_MICD_ENA_SHIFT 0
> +#define MADERA_MICD_ENA_WIDTH 1
> +
> +/* (0x02A4) Mic_Detect_1_Control_2 */
> +#define MADERA_MICD_LVL_SEL_MASK 0x00FF
> +#define MADERA_MICD_LVL_SEL_SHIFT 0
> +#define MADERA_MICD_LVL_SEL_WIDTH 8
> +
> +/* (0x02A5) Mic_Detect_1_Control_3 */
> +#define MADERA_MICD_LVL_0 0x0004
> +#define MADERA_MICD_LVL_1 0x0008
> +#define MADERA_MICD_LVL_2 0x0010
> +#define MADERA_MICD_LVL_3 0x0020
> +#define MADERA_MICD_LVL_4 0x0040
> +#define MADERA_MICD_LVL_5 0x0080
> +#define MADERA_MICD_LVL_6 0x0100
> +#define MADERA_MICD_LVL_7 0x0200
> +#define MADERA_MICD_LVL_8 0x0400
> +#define MADERA_MICD_LVL_MASK 0x07FC
> +#define MADERA_MICD_LVL_SHIFT 2
> +#define MADERA_MICD_LVL_WIDTH 9
> +#define MADERA_MICD_VALID 0x0002
> +#define MADERA_MICD_VALID_MASK 0x0002
> +#define MADERA_MICD_VALID_SHIFT 1
> +#define MADERA_MICD_VALID_WIDTH 1
> +#define MADERA_MICD_STS 0x0001
> +#define MADERA_MICD_STS_MASK 0x0001
> +#define MADERA_MICD_STS_SHIFT 0
> +#define MADERA_MICD_STS_WIDTH 1
> +
> +/* (0x02AB) Mic_Detect_1_Control_4 */
> +#define MADERA_MICDET_ADCVAL_DIFF_MASK 0xFF00
> +#define MADERA_MICDET_ADCVAL_DIFF_SHIFT 8
> +#define MADERA_MICDET_ADCVAL_DIFF_WIDTH 8
> +#define MADERA_MICDET_ADCVAL_MASK 0x007F
> +#define MADERA_MICDET_ADCVAL_SHIFT 0
> +#define MADERA_MICDET_ADCVAL_WIDTH 7
> +
> +/* (0x02B2) Mic_Detect_2_Control_0 */
> +#define MADERA_MICD2_ADC_MODE 0x8000
> +#define MADERA_MICD2_ADC_MODE_MASK 0x8000
> +#define MADERA_MICD2_ADC_MODE_SHIFT 15
> +#define MADERA_MICD2_ADC_MODE_WIDTH 1
> +#define MADERA_MICD2_SENSE_SEL 0x0070
> +#define MADERA_MICD2_SENSE_SEL_MASK 0x0070
> +#define MADERA_MICD2_SENSE_SEL_SHIFT 4
> +#define MADERA_MICD2_SENSE_SEL_WIDTH 3
> +#define MADERA_MICD2_GND_SEL 0x0007
> +#define MADERA_MICD2_GND_SEL_MASK 0x0007
> +#define MADERA_MICD2_GND_SEL_SHIFT 0
> +#define MADERA_MICD2_GND_SEL_WIDTH 3
> +
> +/* (0x02B3) Mic_Detect_2_Control_1 */
> +#define MADERA_MICD2_BIAS_STARTTIME 0xF000
> +#define MADERA_MICD2_BIAS_STARTTIME_MASK 0xF000
> +#define MADERA_MICD2_BIAS_STARTTIME_SHIFT 12
> +#define MADERA_MICD2_BIAS_STARTTIME_WIDTH 4
> +#define MADERA_MICD2_RATE 0x0F00
> +#define MADERA_MICD2_RATE_MASK 0x0F00
> +#define MADERA_MICD2_RATE_SHIFT 8
> +#define MADERA_MICD2_RATE_WIDTH 4
> +#define MADERA_MICD2_BIAS_SRC 0x00F0
> +#define MADERA_MICD2_BIAS_SRC_MASK 0x00F0
> +#define MADERA_MICD2_BIAS_SRC_SHIFT 4
> +#define MADERA_MICD2_BIAS_SRC_WIDTH 4
> +#define MADERA_MICD2_DBTIME 0x0002
> +#define MADERA_MICD2_DBTIME_MASK 0x0002
> +#define MADERA_MICD2_DBTIME_SHIFT 1
> +#define MADERA_MICD2_DBTIME_WIDTH 1
> +#define MADERA_MICD2_ENA 0x0001
> +#define MADERA_MICD2_ENA_MASK 0x0001
> +#define MADERA_MICD2_ENA_SHIFT 0
> +#define MADERA_MICD2_ENA_WIDTH 1
> +
> +/* (0x02B4) Mic_Detect_2_Control_2 */
> +#define MADERA_MICD2_LVL_SEL_MASK 0x00FF
> +#define MADERA_MICD2_LVL_SEL_SHIFT 0
> +#define MADERA_MICD2_LVL_SEL_WIDTH 8
> +
> +/* (0x02B5) Mic_Detect_2_Control_3 */
> +#define MADERA_MICD2_LVL 0x07FC
> +#define MADERA_MICD2_LVL_MASK 0x07FC
> +#define MADERA_MICD2_LVL_SHIFT 2
> +#define MADERA_MICD2_LVL_WIDTH 9
> +#define MADERA_MICD2_VALID 0x0002
> +#define MADERA_MICD2_VALID_MASK 0x0002
> +#define MADERA_MICD2_VALID_SHIFT 1
> +#define MADERA_MICD2_VALID_WIDTH 1
> +#define MADERA_MICD2_STS 0x0001
> +#define MADERA_MICD2_STS_MASK 0x0001
> +#define MADERA_MICD2_STS_SHIFT 0
> +#define MADERA_MICD2_STS_WIDTH 1
> +
> +/* (0x02BB) Mic_Detect_2_Control_4 */
> +#define MADERA_MICD2_ADCVAL_DIFF 0xFF00
> +#define MADERA_MICD2_ADCVAL_DIFF_MASK 0xFF00
> +#define MADERA_MICD2_ADCVAL_DIFF_SHIFT 8
> +#define MADERA_MICD2_ADCVAL_DIFF_WIDTH 8
> +#define MADERA_MICD2_ADCVAL 0x007F
> +#define MADERA_MICD2_ADCVAL_MASK 0x007F
> +#define MADERA_MICD2_ADCVAL_SHIFT 0
> +#define MADERA_MICD2_ADCVAL_WIDTH 7
> +
> +/* (0x02C6) Micd_Clamp_control */
> +#define MADERA_MICD_CLAMP_OVD 0x0010
> +#define MADERA_MICD_CLAMP_OVD_MASK 0x0010
> +#define MADERA_MICD_CLAMP_OVD_SHIFT 4
> +#define MADERA_MICD_CLAMP_OVD_WIDTH 1
> +#define MADERA_MICD_CLAMP_MODE_MASK 0x000F
> +#define MADERA_MICD_CLAMP_MODE_SHIFT 0
> +#define MADERA_MICD_CLAMP_MODE_WIDTH 4
> +
> +/* (0x02C8) GP_Switch_1 */
> +#define MADERA_SW2_MODE_MASK 0x000C
> +#define MADERA_SW2_MODE_SHIFT 2
> +#define MADERA_SW2_MODE_WIDTH 2
> +#define MADERA_SW1_MODE_MASK 0x0003
> +#define MADERA_SW1_MODE_SHIFT 0
> +#define MADERA_SW1_MODE_WIDTH 2
> +
> +/* (0x02D3) Jack_detect_analogue */
> +#define MADERA_JD2_ENA 0x0002
> +#define MADERA_JD2_ENA_MASK 0x0002
> +#define MADERA_JD2_ENA_SHIFT 1
> +#define MADERA_JD2_ENA_WIDTH 1
> +#define MADERA_JD1_ENA 0x0001
> +#define MADERA_JD1_ENA_MASK 0x0001
> +#define MADERA_JD1_ENA_SHIFT 0
> +#define MADERA_JD1_ENA_WIDTH 1
> +
> +/* (0x0300) Input_Enables */
> +#define MADERA_IN6L_ENA 0x0800
> +#define MADERA_IN6L_ENA_MASK 0x0800
> +#define MADERA_IN6L_ENA_SHIFT 11
> +#define MADERA_IN6L_ENA_WIDTH 1
> +#define MADERA_IN6R_ENA 0x0400
> +#define MADERA_IN6R_ENA_MASK 0x0400
> +#define MADERA_IN6R_ENA_SHIFT 10
> +#define MADERA_IN6R_ENA_WIDTH 1
> +#define MADERA_IN5L_ENA 0x0200
> +#define MADERA_IN5L_ENA_MASK 0x0200
> +#define MADERA_IN5L_ENA_SHIFT 9
> +#define MADERA_IN5L_ENA_WIDTH 1
> +#define MADERA_IN5R_ENA 0x0100
> +#define MADERA_IN5R_ENA_MASK 0x0100
> +#define MADERA_IN5R_ENA_SHIFT 8
> +#define MADERA_IN5R_ENA_WIDTH 1
> +#define MADERA_IN4L_ENA 0x0080
> +#define MADERA_IN4L_ENA_MASK 0x0080
> +#define MADERA_IN4L_ENA_SHIFT 7
> +#define MADERA_IN4L_ENA_WIDTH 1
> +#define MADERA_IN4R_ENA 0x0040
> +#define MADERA_IN4R_ENA_MASK 0x0040
> +#define MADERA_IN4R_ENA_SHIFT 6
> +#define MADERA_IN4R_ENA_WIDTH 1
> +#define MADERA_IN3L_ENA 0x0020
> +#define MADERA_IN3L_ENA_MASK 0x0020
> +#define MADERA_IN3L_ENA_SHIFT 5
> +#define MADERA_IN3L_ENA_WIDTH 1
> +#define MADERA_IN3R_ENA 0x0010
> +#define MADERA_IN3R_ENA_MASK 0x0010
> +#define MADERA_IN3R_ENA_SHIFT 4
> +#define MADERA_IN3R_ENA_WIDTH 1
> +#define MADERA_IN2L_ENA 0x0008
> +#define MADERA_IN2L_ENA_MASK 0x0008
> +#define MADERA_IN2L_ENA_SHIFT 3
> +#define MADERA_IN2L_ENA_WIDTH 1
> +#define MADERA_IN2R_ENA 0x0004
> +#define MADERA_IN2R_ENA_MASK 0x0004
> +#define MADERA_IN2R_ENA_SHIFT 2
> +#define MADERA_IN2R_ENA_WIDTH 1
> +#define MADERA_IN1L_ENA 0x0002
> +#define MADERA_IN1L_ENA_MASK 0x0002
> +#define MADERA_IN1L_ENA_SHIFT 1
> +#define MADERA_IN1L_ENA_WIDTH 1
> +#define MADERA_IN1R_ENA 0x0001
> +#define MADERA_IN1R_ENA_MASK 0x0001
> +#define MADERA_IN1R_ENA_SHIFT 0
> +#define MADERA_IN1R_ENA_WIDTH 1
> +
> +/* (0x0308) Input_Rate */
> +#define MADERA_IN_RATE_MASK 0xF800
> +#define MADERA_IN_RATE_SHIFT 11
> +#define MADERA_IN_RATE_WIDTH 5
> +#define MADERA_IN_MODE_MASK 0x0400
> +#define MADERA_IN_MODE_SHIFT 10
> +#define MADERA_IN_MODE_WIDTH 1
> +
> +/* (0x0309) Input_Volume_Ramp */
> +#define MADERA_IN_VD_RAMP_MASK 0x0070
> +#define MADERA_IN_VD_RAMP_SHIFT 4
> +#define MADERA_IN_VD_RAMP_WIDTH 3
> +#define MADERA_IN_VI_RAMP_MASK 0x0007
> +#define MADERA_IN_VI_RAMP_SHIFT 0
> +#define MADERA_IN_VI_RAMP_WIDTH 3
> +
> +/* (0x030C) HPF_Control */
> +#define MADERA_IN_HPF_CUT_MASK 0x0007
> +#define MADERA_IN_HPF_CUT_SHIFT 0
> +#define MADERA_IN_HPF_CUT_WIDTH 3
> +
> +/* (0x0310) IN1L_Control */
> +#define MADERA_IN1L_HPF_MASK 0x8000
> +#define MADERA_IN1L_HPF_SHIFT 15
> +#define MADERA_IN1L_HPF_WIDTH 1
> +#define MADERA_IN1_DMIC_SUP_MASK 0x1800
> +#define MADERA_IN1_DMIC_SUP_SHIFT 11
> +#define MADERA_IN1_DMIC_SUP_WIDTH 2
> +#define MADERA_IN1_MODE_MASK 0x0400
> +#define MADERA_IN1_MODE_SHIFT 10
> +#define MADERA_IN1_MODE_WIDTH 1
> +#define MADERA_IN1_SINGLE_ENDED_MASK 0x0200
> +#define MADERA_IN1_SINGLE_ENDED_SHIFT 9
> +#define MADERA_IN1_SINGLE_ENDED_WIDTH 1
> +#define MADERA_IN1L_PGA_VOL_MASK 0x00FE
> +#define MADERA_IN1L_PGA_VOL_SHIFT 1
> +#define MADERA_IN1L_PGA_VOL_WIDTH 7
> +
> +/* (0x0311) ADC_Digital_Volume_1L */
> +#define MADERA_IN1L_SRC_MASK 0x4000
> +#define MADERA_IN1L_SRC_SHIFT 14
> +#define MADERA_IN1L_SRC_WIDTH 1
> +#define MADERA_IN1L_SRC_SE_MASK 0x2000
> +#define MADERA_IN1L_SRC_SE_SHIFT 13
> +#define MADERA_IN1L_SRC_SE_WIDTH 1
> +#define MADERA_IN1L_LP_MODE 0x0800
> +#define MADERA_IN1L_LP_MODE_MASK 0x0800
> +#define MADERA_IN1L_LP_MODE_SHIFT 11
> +#define MADERA_IN1L_LP_MODE_WIDTH 1
> +#define MADERA_IN_VU 0x0200
> +#define MADERA_IN_VU_MASK 0x0200
> +#define MADERA_IN_VU_SHIFT 9
> +#define MADERA_IN_VU_WIDTH 1
> +#define MADERA_IN1L_MUTE 0x0100
> +#define MADERA_IN1L_MUTE_MASK 0x0100
> +#define MADERA_IN1L_MUTE_SHIFT 8
> +#define MADERA_IN1L_MUTE_WIDTH 1
> +#define MADERA_IN1L_DIG_VOL_MASK 0x00FF
> +#define MADERA_IN1L_DIG_VOL_SHIFT 0
> +#define MADERA_IN1L_DIG_VOL_WIDTH 8
> +
> +/* (0x0312) DMIC1L_Control */
> +#define MADERA_IN1_DMICL_DLY_MASK 0x003F
> +#define MADERA_IN1_DMICL_DLY_SHIFT 0
> +#define MADERA_IN1_DMICL_DLY_WIDTH 6
> +#define MADERA_IN1_OSR_MASK 0x0700
> +#define MADERA_IN1_OSR_SHIFT 8
> +#define MADERA_IN1_OSR_WIDTH 3
> +
> +/* (0x0313) IN1L_Rate_Control */
> +#define MADERA_IN1L_RATE_MASK 0xF800
> +#define MADERA_IN1L_RATE_SHIFT 11
> +#define MADERA_IN1L_RATE_WIDTH 5
> +
> +/* (0x0314) IN1R_Control */
> +#define MADERA_IN1R_HPF_MASK 0x8000
> +#define MADERA_IN1R_HPF_SHIFT 15
> +#define MADERA_IN1R_HPF_WIDTH 1
> +#define MADERA_IN1R_PGA_VOL_MASK 0x00FE
> +#define MADERA_IN1R_PGA_VOL_SHIFT 1
> +#define MADERA_IN1R_PGA_VOL_WIDTH 7
> +#define MADERA_IN1_DMICCLK_SRC_MASK 0x1800
> +#define MADERA_IN1_DMICCLK_SRC_SHIFT 11
> +#define MADERA_IN1_DMICCLK_SRC_WIDTH 2
> +
> +/* (0x0315) ADC_Digital_Volume_1R */
> +#define MADERA_IN1R_SRC_MASK 0x4000
> +#define MADERA_IN1R_SRC_SHIFT 14
> +#define MADERA_IN1R_SRC_WIDTH 1
> +#define MADERA_IN1R_SRC_SE_MASK 0x2000
> +#define MADERA_IN1R_SRC_SE_SHIFT 13
> +#define MADERA_IN1R_SRC_SE_WIDTH 1
> +#define MADERA_IN1R_LP_MODE 0x0800
> +#define MADERA_IN1R_LP_MODE_MASK 0x0800
> +#define MADERA_IN1R_LP_MODE_SHIFT 11
> +#define MADERA_IN1R_LP_MODE_WIDTH 1
> +#define MADERA_IN_VU 0x0200
> +#define MADERA_IN_VU_MASK 0x0200
> +#define MADERA_IN_VU_SHIFT 9
> +#define MADERA_IN_VU_WIDTH 1
> +#define MADERA_IN1R_MUTE 0x0100
> +#define MADERA_IN1R_MUTE_MASK 0x0100
> +#define MADERA_IN1R_MUTE_SHIFT 8
> +#define MADERA_IN1R_MUTE_WIDTH 1
> +#define MADERA_IN1R_DIG_VOL_MASK 0x00FF
> +#define MADERA_IN1R_DIG_VOL_SHIFT 0
> +#define MADERA_IN1R_DIG_VOL_WIDTH 8
> +
> +/* (0x0316) DMIC1R_Control */
> +#define MADERA_IN1_DMICR_DLY_MASK 0x003F
> +#define MADERA_IN1_DMICR_DLY_SHIFT 0
> +#define MADERA_IN1_DMICR_DLY_WIDTH 6
> +
> +/* (0x0317) IN1R_Rate_Control */
> +#define MADERA_IN1R_RATE_MASK 0xF800
> +#define MADERA_IN1R_RATE_SHIFT 11
> +#define MADERA_IN1R_RATE_WIDTH 5
> +
> +/* (0x0318) IN2L_Control */
> +#define MADERA_IN2L_HPF_MASK 0x8000
> +#define MADERA_IN2L_HPF_SHIFT 15
> +#define MADERA_IN2L_HPF_WIDTH 1
> +#define MADERA_IN2_DMIC_SUP_MASK 0x1800
> +#define MADERA_IN2_DMIC_SUP_SHIFT 11
> +#define MADERA_IN2_DMIC_SUP_WIDTH 2
> +#define MADERA_IN2_MODE_MASK 0x0400
> +#define MADERA_IN2_MODE_SHIFT 10
> +#define MADERA_IN2_MODE_WIDTH 1
> +#define MADERA_IN2_SINGLE_ENDED_MASK 0x0200
> +#define MADERA_IN2_SINGLE_ENDED_SHIFT 9
> +#define MADERA_IN2_SINGLE_ENDED_WIDTH 1
> +#define MADERA_IN2L_PGA_VOL_MASK 0x00FE
> +#define MADERA_IN2L_PGA_VOL_SHIFT 1
> +#define MADERA_IN2L_PGA_VOL_WIDTH 7
> +
> +/* (0x0319) ADC_Digital_Volume_2L */
> +#define MADERA_IN2L_SRC_MASK 0x4000
> +#define MADERA_IN2L_SRC_SHIFT 14
> +#define MADERA_IN2L_SRC_WIDTH 1
> +#define MADERA_IN2L_SRC_SE_MASK 0x2000
> +#define MADERA_IN2L_SRC_SE_SHIFT 13
> +#define MADERA_IN2L_SRC_SE_WIDTH 1
> +#define MADERA_IN2L_LP_MODE 0x0800
> +#define MADERA_IN2L_LP_MODE_MASK 0x0800
> +#define MADERA_IN2L_LP_MODE_SHIFT 11
> +#define MADERA_IN2L_LP_MODE_WIDTH 1
> +#define MADERA_IN_VU 0x0200
> +#define MADERA_IN_VU_MASK 0x0200
> +#define MADERA_IN_VU_SHIFT 9
> +#define MADERA_IN_VU_WIDTH 1
> +#define MADERA_IN2L_MUTE 0x0100
> +#define MADERA_IN2L_MUTE_MASK 0x0100
> +#define MADERA_IN2L_MUTE_SHIFT 8
> +#define MADERA_IN2L_MUTE_WIDTH 1
> +#define MADERA_IN2L_DIG_VOL_MASK 0x00FF
> +#define MADERA_IN2L_DIG_VOL_SHIFT 0
> +#define MADERA_IN2L_DIG_VOL_WIDTH 8
> +
> +/* (0x031A) DMIC2L_Control */
> +#define MADERA_IN2_DMICL_DLY_MASK 0x003F
> +#define MADERA_IN2_DMICL_DLY_SHIFT 0
> +#define MADERA_IN2_DMICL_DLY_WIDTH 6
> +#define MADERA_IN2_OSR_MASK 0x0700
> +#define MADERA_IN2_OSR_SHIFT 8
> +#define MADERA_IN2_OSR_WIDTH 3
> +
> +/* (0x031B) IN2L_Rate_Control */
> +#define MADERA_IN2L_RATE_MASK 0xF800
> +#define MADERA_IN2L_RATE_SHIFT 11
> +#define MADERA_IN2L_RATE_WIDTH 5
> +
> +/* (0x031C) IN2R_Control */
> +#define MADERA_IN2R_HPF_MASK 0x8000
> +#define MADERA_IN2R_HPF_SHIFT 15
> +#define MADERA_IN2R_HPF_WIDTH 1
> +#define MADERA_IN2R_PGA_VOL_MASK 0x00FE
> +#define MADERA_IN2R_PGA_VOL_SHIFT 1
> +#define MADERA_IN2R_PGA_VOL_WIDTH 7
> +#define MADERA_IN2_DMICCLK_SRC_MASK 0x1800
> +#define MADERA_IN2_DMICCLK_SRC_SHIFT 11
> +#define MADERA_IN2_DMICCLK_SRC_WIDTH 2
> +
> +/* (0x031D) ADC_Digital_Volume_2R */
> +#define MADERA_IN2R_SRC_MASK 0x4000
> +#define MADERA_IN2R_SRC_SHIFT 14
> +#define MADERA_IN2R_SRC_WIDTH 1
> +#define MADERA_IN2R_SRC_SE_MASK 0x2000
> +#define MADERA_IN2R_SRC_SE_SHIFT 13
> +#define MADERA_IN2R_SRC_SE_WIDTH 1
> +#define MADERA_IN2R_LP_MODE 0x0800
> +#define MADERA_IN2R_LP_MODE_MASK 0x0800
> +#define MADERA_IN2R_LP_MODE_SHIFT 11
> +#define MADERA_IN2R_LP_MODE_WIDTH 1
> +#define MADERA_IN_VU 0x0200
> +#define MADERA_IN_VU_MASK 0x0200
> +#define MADERA_IN_VU_SHIFT 9
> +#define MADERA_IN_VU_WIDTH 1
> +#define MADERA_IN2R_MUTE 0x0100
> +#define MADERA_IN2R_MUTE_MASK 0x0100
> +#define MADERA_IN2R_MUTE_SHIFT 8
> +#define MADERA_IN2R_MUTE_WIDTH 1
> +#define MADERA_IN2R_DIG_VOL_MASK 0x00FF
> +#define MADERA_IN2R_DIG_VOL_SHIFT 0
> +#define MADERA_IN2R_DIG_VOL_WIDTH 8
> +
> +/* (0x031E) DMIC2R_Control */
> +#define MADERA_IN2_DMICR_DLY_MASK 0x003F
> +#define MADERA_IN2_DMICR_DLY_SHIFT 0
> +#define MADERA_IN2_DMICR_DLY_WIDTH 6
> +
> +/* (0x031F) IN2R_Rate_Control */
> +#define MADERA_IN2R_RATE_MASK 0xF800
> +#define MADERA_IN2R_RATE_SHIFT 11
> +#define MADERA_IN2R_RATE_WIDTH 5
> +
> +/* (0x0320) IN3L_Control */
> +#define MADERA_IN3L_HPF_MASK 0x8000
> +#define MADERA_IN3L_HPF_SHIFT 15
> +#define MADERA_IN3L_HPF_WIDTH 1
> +#define MADERA_IN3_DMIC_SUP_MASK 0x1800
> +#define MADERA_IN3_DMIC_SUP_SHIFT 11
> +#define MADERA_IN3_DMIC_SUP_WIDTH 2
> +#define MADERA_IN3_MODE_MASK 0x0400
> +#define MADERA_IN3_MODE_SHIFT 10
> +#define MADERA_IN3_MODE_WIDTH 1
> +#define MADERA_IN3_SINGLE_ENDED_MASK 0x0200
> +#define MADERA_IN3_SINGLE_ENDED_SHIFT 9
> +#define MADERA_IN3_SINGLE_ENDED_WIDTH 1
> +#define MADERA_IN3L_PGA_VOL_MASK 0x00FE
> +#define MADERA_IN3L_PGA_VOL_SHIFT 1
> +#define MADERA_IN3L_PGA_VOL_WIDTH 7
> +
> +/* (0x0321) ADC_Digital_Volume_3L */
> +#define MADERA_IN_VU 0x0200
> +#define MADERA_IN_VU_MASK 0x0200
> +#define MADERA_IN_VU_SHIFT 9
> +#define MADERA_IN_VU_WIDTH 1
> +#define MADERA_IN3L_MUTE 0x0100
> +#define MADERA_IN3L_MUTE_MASK 0x0100
> +#define MADERA_IN3L_MUTE_SHIFT 8
> +#define MADERA_IN3L_MUTE_WIDTH 1
> +#define MADERA_IN3L_DIG_VOL_MASK 0x00FF
> +#define MADERA_IN3L_DIG_VOL_SHIFT 0
> +#define MADERA_IN3L_DIG_VOL_WIDTH 8
> +
> +/* (0x0322) DMIC3L_Control */
> +#define MADERA_IN3_DMICL_DLY_MASK 0x003F
> +#define MADERA_IN3_DMICL_DLY_SHIFT 0
> +#define MADERA_IN3_DMICL_DLY_WIDTH 6
> +#define MADERA_IN3_OSR_MASK 0x0700
> +#define MADERA_IN3_OSR_SHIFT 8
> +#define MADERA_IN3_OSR_WIDTH 3
> +
> +/* (0x0323) IN3L_Rate_Control */
> +#define MADERA_IN3L_RATE_MASK 0xF800
> +#define MADERA_IN3L_RATE_SHIFT 11
> +#define MADERA_IN3L_RATE_WIDTH 5
> +
> +/* (0x0324) IN3R_Control */
> +#define MADERA_IN3R_HPF_MASK 0x8000
> +#define MADERA_IN3R_HPF_SHIFT 15
> +#define MADERA_IN3R_HPF_WIDTH 1
> +#define MADERA_IN3R_PGA_VOL_MASK 0x00FE
> +#define MADERA_IN3R_PGA_VOL_SHIFT 1
> +#define MADERA_IN3R_PGA_VOL_WIDTH 7
> +#define MADERA_IN3_DMICCLK_SRC_MASK 0x1800
> +#define MADERA_IN3_DMICCLK_SRC_SHIFT 11
> +#define MADERA_IN3_DMICCLK_SRC_WIDTH 2
> +
> +/* (0x0325) ADC_Digital_Volume_3R */
> +#define MADERA_IN_VU 0x0200
> +#define MADERA_IN_VU_MASK 0x0200
> +#define MADERA_IN_VU_SHIFT 9
> +#define MADERA_IN_VU_WIDTH 1
> +#define MADERA_IN3R_MUTE 0x0100
> +#define MADERA_IN3R_MUTE_MASK 0x0100
> +#define MADERA_IN3R_MUTE_SHIFT 8
> +#define MADERA_IN3R_MUTE_WIDTH 1
> +#define MADERA_IN3R_DIG_VOL_MASK 0x00FF
> +#define MADERA_IN3R_DIG_VOL_SHIFT 0
> +#define MADERA_IN3R_DIG_VOL_WIDTH 8
> +
> +/* (0x0326) DMIC3R_Control */
> +#define MADERA_IN3_DMICR_DLY_MASK 0x003F
> +#define MADERA_IN3_DMICR_DLY_SHIFT 0
> +#define MADERA_IN3_DMICR_DLY_WIDTH 6
> +
> +/* (0x0327) IN3R_Rate_Control */
> +#define MADERA_IN3R_RATE_MASK 0xF800
> +#define MADERA_IN3R_RATE_SHIFT 11
> +#define MADERA_IN3R_RATE_WIDTH 5
> +
> +/* (0x0328) IN4L_Control */
> +#define MADERA_IN4L_HPF_MASK 0x8000
> +#define MADERA_IN4L_HPF_SHIFT 15
> +#define MADERA_IN4L_HPF_WIDTH 1
> +#define MADERA_IN4_DMIC_SUP_MASK 0x1800
> +#define MADERA_IN4_DMIC_SUP_SHIFT 11
> +#define MADERA_IN4_DMIC_SUP_WIDTH 2
> +
> +/* (0x0329) ADC_Digital_Volume_4L */
> +#define MADERA_IN_VU 0x0200
> +#define MADERA_IN_VU_MASK 0x0200
> +#define MADERA_IN_VU_SHIFT 9
> +#define MADERA_IN_VU_WIDTH 1
> +#define MADERA_IN4L_MUTE 0x0100
> +#define MADERA_IN4L_MUTE_MASK 0x0100
> +#define MADERA_IN4L_MUTE_SHIFT 8
> +#define MADERA_IN4L_MUTE_WIDTH 1
> +#define MADERA_IN4L_DIG_VOL_MASK 0x00FF
> +#define MADERA_IN4L_DIG_VOL_SHIFT 0
> +#define MADERA_IN4L_DIG_VOL_WIDTH 8
> +
> +/* (0x032A) DMIC4L_Control */
> +#define MADERA_IN4L_DMIC_DLY_MASK 0x003F
> +#define MADERA_IN4L_DMIC_DLY_SHIFT 0
> +#define MADERA_IN4L_DMIC_DLY_WIDTH 6
> +#define MADERA_IN4_OSR_MASK 0x0700
> +#define MADERA_IN4_OSR_SHIFT 8
> +#define MADERA_IN4_OSR_WIDTH 3
> +
> +/* (0x032B) IN4L_Rate_Control */
> +#define MADERA_IN4L_RATE_MASK 0xF800
> +#define MADERA_IN4L_RATE_SHIFT 11
> +#define MADERA_IN4L_RATE_WIDTH 5
> +
> +/* (0x032C) IN4R_Control */
> +#define MADERA_IN4R_HPF_MASK 0x8000
> +#define MADERA_IN4R_HPF_SHIFT 15
> +#define MADERA_IN4R_HPF_WIDTH 1
> +#define MADERA_IN4_DMICCLK_SRC_MASK 0x1800
> +#define MADERA_IN4_DMICCLK_SRC_SHIFT 11
> +#define MADERA_IN4_DMICCLK_SRC_WIDTH 2
> +
> +/* (0x032D) ADC_Digital_Volume_4R */
> +#define MADERA_IN_VU 0x0200
> +#define MADERA_IN_VU_MASK 0x0200
> +#define MADERA_IN_VU_SHIFT 9
> +#define MADERA_IN_VU_WIDTH 1
> +#define MADERA_IN4R_MUTE 0x0100
> +#define MADERA_IN4R_MUTE_MASK 0x0100
> +#define MADERA_IN4R_MUTE_SHIFT 8
> +#define MADERA_IN4R_MUTE_WIDTH 1
> +#define MADERA_IN4R_DIG_VOL_MASK 0x00FF
> +#define MADERA_IN4R_DIG_VOL_SHIFT 0
> +#define MADERA_IN4R_DIG_VOL_WIDTH 8
> +
> +/* (0x032E) DMIC4R_Control */
> +#define MADERA_IN4R_DMIC_DLY_MASK 0x003F
> +#define MADERA_IN4R_DMIC_DLY_SHIFT 0
> +#define MADERA_IN4R_DMIC_DLY_WIDTH 6
> +
> +/* (0x032F) IN4R_Rate_Control */
> +#define MADERA_IN4R_RATE_MASK 0xF800
> +#define MADERA_IN4R_RATE_SHIFT 11
> +#define MADERA_IN4R_RATE_WIDTH 5
> +
> +/* (0x0330) IN5L_Control */
> +#define MADERA_IN5L_HPF_MASK 0x8000
> +#define MADERA_IN5L_HPF_SHIFT 15
> +#define MADERA_IN5L_HPF_WIDTH 1
> +#define MADERA_IN5_DMIC_SUP_MASK 0x1800
> +#define MADERA_IN5_DMIC_SUP_SHIFT 11
> +#define MADERA_IN5_DMIC_SUP_WIDTH 2
> +
> +/* (0x0331) ADC_Digital_Volume_5L */
> +#define MADERA_IN_VU 0x0200
> +#define MADERA_IN_VU_MASK 0x0200
> +#define MADERA_IN_VU_SHIFT 9
> +#define MADERA_IN_VU_WIDTH 1
> +#define MADERA_IN5L_MUTE 0x0100
> +#define MADERA_IN5L_MUTE_MASK 0x0100
> +#define MADERA_IN5L_MUTE_SHIFT 8
> +#define MADERA_IN5L_MUTE_WIDTH 1
> +#define MADERA_IN5L_DIG_VOL_MASK 0x00FF
> +#define MADERA_IN5L_DIG_VOL_SHIFT 0
> +#define MADERA_IN5L_DIG_VOL_WIDTH 8
> +
> +/* (0x0332) DMIC5L_Control */
> +#define MADERA_IN5L_DMIC_DLY_MASK 0x003F
> +#define MADERA_IN5L_DMIC_DLY_SHIFT 0
> +#define MADERA_IN5L_DMIC_DLY_WIDTH 6
> +#define MADERA_IN5_OSR_MASK 0x0700
> +#define MADERA_IN5_OSR_SHIFT 8
> +#define MADERA_IN5_OSR_WIDTH 3
> +
> +/* (0x0333) IN5L_Rate_Control */
> +#define MADERA_IN5L_RATE_MASK 0x7800
> +#define MADERA_IN5L_RATE_SHIFT 11
> +#define MADERA_IN5L_RATE_WIDTH 4
> +
> +/* (0x0334) IN5R_Control */
> +#define MADERA_IN5R_HPF_MASK 0x8000
> +#define MADERA_IN5R_HPF_SHIFT 15
> +#define MADERA_IN5R_HPF_WIDTH 1
> +#define MADERA_IN5_DMICCLK_SRC_MASK 0x1800
> +#define MADERA_IN5_DMICCLK_SRC_SHIFT 11
> +#define MADERA_IN5_DMICCLK_SRC_WIDTH 2
> +
> +/* (0x0335) ADC_Digital_Volume_5R */
> +#define MADERA_IN_VU 0x0200
> +#define MADERA_IN_VU_MASK 0x0200
> +#define MADERA_IN_VU_SHIFT 9
> +#define MADERA_IN_VU_WIDTH 1
> +#define MADERA_IN5R_MUTE 0x0100
> +#define MADERA_IN5R_MUTE_MASK 0x0100
> +#define MADERA_IN5R_MUTE_SHIFT 8
> +#define MADERA_IN5R_MUTE_WIDTH 1
> +#define MADERA_IN5R_DIG_VOL_MASK 0x00FF
> +#define MADERA_IN5R_DIG_VOL_SHIFT 0
> +#define MADERA_IN5R_DIG_VOL_WIDTH 8
> +
> +/* (0x0336) DMIC5R_Control */
> +#define MADERA_IN5R_DMIC_DLY_MASK 0x003F
> +#define MADERA_IN5R_DMIC_DLY_SHIFT 0
> +#define MADERA_IN5R_DMIC_DLY_WIDTH 6
> +
> +/* (0x0337) IN5R_Rate_Control */
> +#define MADERA_IN5R_RATE_MASK 0x7800
> +#define MADERA_IN5R_RATE_SHIFT 11
> +#define MADERA_IN5R_RATE_WIDTH 4
> +
> +/* (0x0338) IN6L_Control */
> +#define MADERA_IN6L_HPF_MASK 0x8000
> +#define MADERA_IN6L_HPF_SHIFT 15
> +#define MADERA_IN6L_HPF_WIDTH 1
> +#define MADERA_IN6_DMIC_SUP_MASK 0x1800
> +#define MADERA_IN6_DMIC_SUP_SHIFT 11
> +#define MADERA_IN6_DMIC_SUP_WIDTH 2
> +
> +/* (0x0339) ADC_Digital_Volume_6L */
> +#define MADERA_IN_VU 0x0200
> +#define MADERA_IN_VU_MASK 0x0200
> +#define MADERA_IN_VU_SHIFT 9
> +#define MADERA_IN_VU_WIDTH 1
> +#define MADERA_IN6L_MUTE 0x0100
> +#define MADERA_IN6L_MUTE_MASK 0x0100
> +#define MADERA_IN6L_MUTE_SHIFT 8
> +#define MADERA_IN6L_MUTE_WIDTH 1
> +#define MADERA_IN6L_DIG_VOL_MASK 0x00FF
> +#define MADERA_IN6L_DIG_VOL_SHIFT 0
> +#define MADERA_IN6L_DIG_VOL_WIDTH 8
> +
> +/* (0x033A) DMIC6L_Control */
> +#define MADERA_IN6L_DMIC_DLY_MASK 0x003F
> +#define MADERA_IN6L_DMIC_DLY_SHIFT 0
> +#define MADERA_IN6L_DMIC_DLY_WIDTH 6
> +#define MADERA_IN6_OSR_MASK 0x0700
> +#define MADERA_IN6_OSR_SHIFT 8
> +#define MADERA_IN6_OSR_WIDTH 3
> +
> +/* (0x033C) IN6R_Control */
> +#define MADERA_IN6R_HPF_MASK 0x8000
> +#define MADERA_IN6R_HPF_SHIFT 15
> +#define MADERA_IN6R_HPF_WIDTH 1
> +
> +/* (0x033D) ADC_Digital_Volume_6R */
> +#define MADERA_IN_VU 0x0200
> +#define MADERA_IN_VU_MASK 0x0200
> +#define MADERA_IN_VU_SHIFT 9
> +#define MADERA_IN_VU_WIDTH 1
> +#define MADERA_IN6R_MUTE 0x0100
> +#define MADERA_IN6R_MUTE_MASK 0x0100
> +#define MADERA_IN6R_MUTE_SHIFT 8
> +#define MADERA_IN6R_MUTE_WIDTH 1
> +#define MADERA_IN6R_DIG_VOL_MASK 0x00FF
> +#define MADERA_IN6R_DIG_VOL_SHIFT 0
> +#define MADERA_IN6R_DIG_VOL_WIDTH 8
> +
> +/* (0x033E) DMIC6R_Control */
> +#define MADERA_IN6R_DMIC_DLY_MASK 0x003F
> +#define MADERA_IN6R_DMIC_DLY_SHIFT 0
> +#define MADERA_IN6R_DMIC_DLY_WIDTH 6
> +#define MADERA_IN6_DMICCLK_SRC_MASK 0x1800
> +#define MADERA_IN6_DMICCLK_SRC_SHIFT 11
> +#define MADERA_IN6_DMICCLK_SRC_WIDTH 2
> +
> +/* (0x0400) Output_Enables_1 */
> +#define MADERA_EP_SEL 0x8000
> +#define MADERA_EP_SEL_MASK 0x8000
> +#define MADERA_EP_SEL_SHIFT 15
> +#define MADERA_EP_SEL_WIDTH 1
> +#define MADERA_OUT6L_ENA 0x0800
> +#define MADERA_OUT6L_ENA_MASK 0x0800
> +#define MADERA_OUT6L_ENA_SHIFT 11
> +#define MADERA_OUT6L_ENA_WIDTH 1
> +#define MADERA_OUT6R_ENA 0x0400
> +#define MADERA_OUT6R_ENA_MASK 0x0400
> +#define MADERA_OUT6R_ENA_SHIFT 10
> +#define MADERA_OUT6R_ENA_WIDTH 1
> +#define MADERA_OUT5L_ENA 0x0200
> +#define MADERA_OUT5L_ENA_MASK 0x0200
> +#define MADERA_OUT5L_ENA_SHIFT 9
> +#define MADERA_OUT5L_ENA_WIDTH 1
> +#define MADERA_OUT5R_ENA 0x0100
> +#define MADERA_OUT5R_ENA_MASK 0x0100
> +#define MADERA_OUT5R_ENA_SHIFT 8
> +#define MADERA_OUT5R_ENA_WIDTH 1
> +#define MADERA_OUT4L_ENA 0x0080
> +#define MADERA_OUT4L_ENA_MASK 0x0080
> +#define MADERA_OUT4L_ENA_SHIFT 7
> +#define MADERA_OUT4L_ENA_WIDTH 1
> +#define MADERA_OUT4R_ENA 0x0040
> +#define MADERA_OUT4R_ENA_MASK 0x0040
> +#define MADERA_OUT4R_ENA_SHIFT 6
> +#define MADERA_OUT4R_ENA_WIDTH 1
> +#define MADERA_OUT3L_ENA 0x0020
> +#define MADERA_OUT3L_ENA_MASK 0x0020
> +#define MADERA_OUT3L_ENA_SHIFT 5
> +#define MADERA_OUT3L_ENA_WIDTH 1
> +#define MADERA_OUT3R_ENA 0x0010
> +#define MADERA_OUT3R_ENA_MASK 0x0010
> +#define MADERA_OUT3R_ENA_SHIFT 4
> +#define MADERA_OUT3R_ENA_WIDTH 1
> +#define MADERA_OUT2L_ENA 0x0008
> +#define MADERA_OUT2L_ENA_MASK 0x0008
> +#define MADERA_OUT2L_ENA_SHIFT 3
> +#define MADERA_OUT2L_ENA_WIDTH 1
> +#define MADERA_OUT2R_ENA 0x0004
> +#define MADERA_OUT2R_ENA_MASK 0x0004
> +#define MADERA_OUT2R_ENA_SHIFT 2
> +#define MADERA_OUT2R_ENA_WIDTH 1
> +#define MADERA_OUT1L_ENA 0x0002
> +#define MADERA_OUT1L_ENA_MASK 0x0002
> +#define MADERA_OUT1L_ENA_SHIFT 1
> +#define MADERA_OUT1L_ENA_WIDTH 1
> +#define MADERA_OUT1R_ENA 0x0001
> +#define MADERA_OUT1R_ENA_MASK 0x0001
> +#define MADERA_OUT1R_ENA_SHIFT 0
> +#define MADERA_OUT1R_ENA_WIDTH 1
> +
> +/* (0x0401) Output_Status_1 */
> +#define MADERA_OUT6L_ENA_STS 0x0800
> +#define MADERA_OUT6L_ENA_STS_MASK 0x0800
> +#define MADERA_OUT6L_ENA_STS_SHIFT 11
> +#define MADERA_OUT6L_ENA_STS_WIDTH 1
> +#define MADERA_OUT6R_ENA_STS 0x0400
> +#define MADERA_OUT6R_ENA_STS_MASK 0x0400
> +#define MADERA_OUT6R_ENA_STS_SHIFT 10
> +#define MADERA_OUT6R_ENA_STS_WIDTH 1
> +#define MADERA_OUT5L_ENA_STS 0x0200
> +#define MADERA_OUT5L_ENA_STS_MASK 0x0200
> +#define MADERA_OUT5L_ENA_STS_SHIFT 9
> +#define MADERA_OUT5L_ENA_STS_WIDTH 1
> +#define MADERA_OUT5R_ENA_STS 0x0100
> +#define MADERA_OUT5R_ENA_STS_MASK 0x0100
> +#define MADERA_OUT5R_ENA_STS_SHIFT 8
> +#define MADERA_OUT5R_ENA_STS_WIDTH 1
> +#define MADERA_OUT4L_ENA_STS 0x0080
> +#define MADERA_OUT4L_ENA_STS_MASK 0x0080
> +#define MADERA_OUT4L_ENA_STS_SHIFT 7
> +#define MADERA_OUT4L_ENA_STS_WIDTH 1
> +#define MADERA_OUT4R_ENA_STS 0x0040
> +#define MADERA_OUT4R_ENA_STS_MASK 0x0040
> +#define MADERA_OUT4R_ENA_STS_SHIFT 6
> +#define MADERA_OUT4R_ENA_STS_WIDTH 1
> +
> +/* (0x0408) Output_Rate_1 */
> +#define MADERA_OUT_RATE_MASK 0xF800
> +#define MADERA_OUT_RATE_SHIFT 11
> +#define MADERA_OUT_RATE_WIDTH 5
> +#define MADERA_CP_DAC_MODE_MASK 0x0040
> +#define MADERA_CP_DAC_MODE_SHIFT 6
> +#define MADERA_CP_DAC_MODE_WIDTH 1
> +
> +/* (0x0409) Output_Volume_Ramp */
> +#define MADERA_OUT_VD_RAMP_MASK 0x0070
> +#define MADERA_OUT_VD_RAMP_SHIFT 4
> +#define MADERA_OUT_VD_RAMP_WIDTH 3
> +#define MADERA_OUT_VI_RAMP_MASK 0x0007
> +#define MADERA_OUT_VI_RAMP_SHIFT 0
> +#define MADERA_OUT_VI_RAMP_WIDTH 3
> +
> +/* (0x0410) Output_Path_Config_1L */
> +#define MADERA_OUT1_LP_MODE 0x8000
> +#define MADERA_OUT1_LP_MODE_MASK 0x8000
> +#define MADERA_OUT1_LP_MODE_SHIFT 15
> +#define MADERA_OUT1_LP_MODE_WIDTH 1
> +#define MADERA_OUT1_OSR 0x2000
> +#define MADERA_OUT1_OSR_MASK 0x2000
> +#define MADERA_OUT1_OSR_SHIFT 13
> +#define MADERA_OUT1_OSR_WIDTH 1
> +#define MADERA_OUT1_MONO 0x1000
> +#define MADERA_OUT1_MONO_MASK 0x1000
> +#define MADERA_OUT1_MONO_SHIFT 12
> +#define MADERA_OUT1_MONO_WIDTH 1
> +#define MADERA_OUT1L_ANC_SRC_MASK 0x0C00
> +#define MADERA_OUT1L_ANC_SRC_SHIFT 10
> +#define MADERA_OUT1L_ANC_SRC_WIDTH 2
> +#define MADERA_OUT1L_PGA_VOL_MASK 0x00FE
> +#define MADERA_OUT1L_PGA_VOL_SHIFT 1
> +#define MADERA_OUT1L_PGA_VOL_WIDTH 7
> +
> +/* (0x0411) DAC_Digital_Volume_1L */
> +#define MADERA_OUT1L_VU 0x0200
> +#define MADERA_OUT1L_VU_MASK 0x0200
> +#define MADERA_OUT1L_VU_SHIFT 9
> +#define MADERA_OUT1L_VU_WIDTH 1
> +#define MADERA_OUT1L_MUTE 0x0100
> +#define MADERA_OUT1L_MUTE_MASK 0x0100
> +#define MADERA_OUT1L_MUTE_SHIFT 8
> +#define MADERA_OUT1L_MUTE_WIDTH 1
> +#define MADERA_OUT1L_VOL_MASK 0x00FF
> +#define MADERA_OUT1L_VOL_SHIFT 0
> +#define MADERA_OUT1L_VOL_WIDTH 8
> +
> +/* (0x0412) Output_Path_Config_1 */
> +#define MADERA_HP1_GND_SEL_MASK 0x0007
> +#define MADERA_HP1_GND_SEL_SHIFT 0
> +#define MADERA_HP1_GND_SEL_WIDTH 3
> +
> +/* (0x0413) Noise_Gate_Select_1L */
> +#define MADERA_OUT1L_NGATE_SRC_MASK 0x0FFF
> +#define MADERA_OUT1L_NGATE_SRC_SHIFT 0
> +#define MADERA_OUT1L_NGATE_SRC_WIDTH 12
> +
> +/* (0x0414) Output_Path_Config_1R */
> +#define MADERA_OUT1R_ANC_SRC_MASK 0x0C00
> +#define MADERA_OUT1R_ANC_SRC_SHIFT 10
> +#define MADERA_OUT1R_ANC_SRC_WIDTH 2
> +#define MADERA_OUT1R_PGA_VOL_MASK 0x00FE
> +#define MADERA_OUT1R_PGA_VOL_SHIFT 1
> +#define MADERA_OUT1R_PGA_VOL_WIDTH 7
> +
> +/* (0x0415) DAC_Digital_Volume_1R */
> +#define MADERA_OUT1R_VU 0x0200
> +#define MADERA_OUT1R_VU_MASK 0x0200
> +#define MADERA_OUT1R_VU_SHIFT 9
> +#define MADERA_OUT1R_VU_WIDTH 1
> +#define MADERA_OUT1R_MUTE 0x0100
> +#define MADERA_OUT1R_MUTE_MASK 0x0100
> +#define MADERA_OUT1R_MUTE_SHIFT 8
> +#define MADERA_OUT1R_MUTE_WIDTH 1
> +#define MADERA_OUT1R_VOL_MASK 0x00FF
> +#define MADERA_OUT1R_VOL_SHIFT 0
> +#define MADERA_OUT1R_VOL_WIDTH 8
> +
> +/* (0x0417) Noise_Gate_Select_1R */
> +#define MADERA_OUT1R_NGATE_SRC_MASK 0x0FFF
> +#define MADERA_OUT1R_NGATE_SRC_SHIFT 0
> +#define MADERA_OUT1R_NGATE_SRC_WIDTH 12
> +
> +/* (0x0418) Output_Path_Config_2L */
> +#define MADERA_OUT2_LP_MODE 0x8000
> +#define MADERA_OUT2_LP_MODE_MASK 0x8000
> +#define MADERA_OUT2_LP_MODE_SHIFT 15
> +#define MADERA_OUT2_LP_MODE_WIDTH 1
> +#define MADERA_OUT2_OSR 0x2000
> +#define MADERA_OUT2_OSR_MASK 0x2000
> +#define MADERA_OUT2_OSR_SHIFT 13
> +#define MADERA_OUT2_OSR_WIDTH 1
> +#define MADERA_OUT2_MONO 0x1000
> +#define MADERA_OUT2_MONO_MASK 0x1000
> +#define MADERA_OUT2_MONO_SHIFT 12
> +#define MADERA_OUT2_MONO_WIDTH 1
> +#define MADERA_OUT2L_ANC_SRC_MASK 0x0C00
> +#define MADERA_OUT2L_ANC_SRC_SHIFT 10
> +#define MADERA_OUT2L_ANC_SRC_WIDTH 2
> +#define MADERA_OUT2L_PGA_VOL_MASK 0x00FE
> +#define MADERA_OUT2L_PGA_VOL_SHIFT 1
> +#define MADERA_OUT2L_PGA_VOL_WIDTH 7
> +
> +/* (0x0419) DAC_Digital_Volume_2L */
> +#define MADERA_OUT2L_VU 0x0200
> +#define MADERA_OUT2L_VU_MASK 0x0200
> +#define MADERA_OUT2L_VU_SHIFT 9
> +#define MADERA_OUT2L_VU_WIDTH 1
> +#define MADERA_OUT2L_MUTE 0x0100
> +#define MADERA_OUT2L_MUTE_MASK 0x0100
> +#define MADERA_OUT2L_MUTE_SHIFT 8
> +#define MADERA_OUT2L_MUTE_WIDTH 1
> +#define MADERA_OUT2L_VOL_MASK 0x00FF
> +#define MADERA_OUT2L_VOL_SHIFT 0
> +#define MADERA_OUT2L_VOL_WIDTH 8
> +
> +/* (0x041A) Output_Path_Config_2 */
> +#define MADERA_HP2_GND_SEL_MASK 0x0007
> +#define MADERA_HP2_GND_SEL_SHIFT 0
> +#define MADERA_HP2_GND_SEL_WIDTH 3
> +
> +/* (0x041B) Noise_Gate_Select_2L */
> +#define MADERA_OUT2L_NGATE_SRC_MASK 0x0FFF
> +#define MADERA_OUT2L_NGATE_SRC_SHIFT 0
> +#define MADERA_OUT2L_NGATE_SRC_WIDTH 12
> +
> +/* (0x041C) Output_Path_Config_2R */
> +#define MADERA_OUT2R_ANC_SRC_MASK 0x0C00
> +#define MADERA_OUT2R_ANC_SRC_SHIFT 10
> +#define MADERA_OUT2R_ANC_SRC_WIDTH 2
> +#define MADERA_OUT2R_PGA_VOL_MASK 0x00FE
> +#define MADERA_OUT2R_PGA_VOL_SHIFT 1
> +#define MADERA_OUT2R_PGA_VOL_WIDTH 7
> +
> +/* (0x041D) DAC_Digital_Volume_2R */
> +#define MADERA_OUT2R_VU 0x0200
> +#define MADERA_OUT2R_VU_MASK 0x0200
> +#define MADERA_OUT2R_VU_SHIFT 9
> +#define MADERA_OUT2R_VU_WIDTH 1
> +#define MADERA_OUT2R_MUTE 0x0100
> +#define MADERA_OUT2R_MUTE_MASK 0x0100
> +#define MADERA_OUT2R_MUTE_SHIFT 8
> +#define MADERA_OUT2R_MUTE_WIDTH 1
> +#define MADERA_OUT2R_VOL_MASK 0x00FF
> +#define MADERA_OUT2R_VOL_SHIFT 0
> +#define MADERA_OUT2R_VOL_WIDTH 8
> +
> +/* (0x041F) Noise_Gate_Select_2R */
> +#define MADERA_OUT2R_NGATE_SRC_MASK 0x0FFF
> +#define MADERA_OUT2R_NGATE_SRC_SHIFT 0
> +#define MADERA_OUT2R_NGATE_SRC_WIDTH 12
> +
> +/* (0x0420) Output_Path_Config_3L */
> +#define MADERA_OUT3_LP_MODE 0x8000
> +#define MADERA_OUT3_LP_MODE_MASK 0x8000
> +#define MADERA_OUT3_LP_MODE_SHIFT 15
> +#define MADERA_OUT3_LP_MODE_WIDTH 1
> +#define MADERA_OUT3_OSR 0x2000
> +#define MADERA_OUT3_OSR_MASK 0x2000
> +#define MADERA_OUT3_OSR_SHIFT 13
> +#define MADERA_OUT3_OSR_WIDTH 1
> +#define MADERA_OUT3_MONO 0x1000
> +#define MADERA_OUT3_MONO_MASK 0x1000
> +#define MADERA_OUT3_MONO_SHIFT 12
> +#define MADERA_OUT3_MONO_WIDTH 1
> +#define MADERA_OUT3L_ANC_SRC_MASK 0x0C00
> +#define MADERA_OUT3L_ANC_SRC_SHIFT 10
> +#define MADERA_OUT3L_ANC_SRC_WIDTH 2
> +#define MADERA_OUT3L_PGA_VOL_MASK 0x00FE
> +#define MADERA_OUT3L_PGA_VOL_SHIFT 1
> +#define MADERA_OUT3L_PGA_VOL_WIDTH 7
> +
> +/* (0x0421) DAC_Digital_Volume_3L */
> +#define MADERA_OUT3L_VU 0x0200
> +#define MADERA_OUT3L_VU_MASK 0x0200
> +#define MADERA_OUT3L_VU_SHIFT 9
> +#define MADERA_OUT3L_VU_WIDTH 1
> +#define MADERA_OUT3L_MUTE 0x0100
> +#define MADERA_OUT3L_MUTE_MASK 0x0100
> +#define MADERA_OUT3L_MUTE_SHIFT 8
> +#define MADERA_OUT3L_MUTE_WIDTH 1
> +#define MADERA_OUT3L_VOL_MASK 0x00FF
> +#define MADERA_OUT3L_VOL_SHIFT 0
> +#define MADERA_OUT3L_VOL_WIDTH 8
> +
> +/* (0x0423) Noise_Gate_Select_3L */
> +#define MADERA_OUT3_NGATE_SRC_MASK 0x0FFF
> +#define MADERA_OUT3_NGATE_SRC_SHIFT 0
> +#define MADERA_OUT3_NGATE_SRC_WIDTH 12
> +
> +/* (0x0424) Output_Path_Config_3R */
> +#define MADERA_OUT3R_ANC_SRC_MASK 0x0C00
> +#define MADERA_OUT3R_ANC_SRC_SHIFT 10
> +#define MADERA_OUT3R_ANC_SRC_WIDTH 2
> +#define MADERA_OUT3R_PGA_VOL_MASK 0x00FE
> +#define MADERA_OUT3R_PGA_VOL_SHIFT 1
> +#define MADERA_OUT3R_PGA_VOL_WIDTH 7
> +
> +/* (0x0425) DAC_Digital_Volume_3R */
> +#define MADERA_OUT3R_VU 0x0200
> +#define MADERA_OUT3R_VU_MASK 0x0200
> +#define MADERA_OUT3R_VU_SHIFT 9
> +#define MADERA_OUT3R_VU_WIDTH 1
> +#define MADERA_OUT3R_MUTE 0x0100
> +#define MADERA_OUT3R_MUTE_MASK 0x0100
> +#define MADERA_OUT3R_MUTE_SHIFT 8
> +#define MADERA_OUT3R_MUTE_WIDTH 1
> +#define MADERA_OUT3R_VOL_MASK 0x00FF
> +#define MADERA_OUT3R_VOL_SHIFT 0
> +#define MADERA_OUT3R_VOL_WIDTH 8
> +
> +/* (0x0428) Output_Path_Config_4L */
> +#define MADERA_OUT4_OSR 0x2000
> +#define MADERA_OUT4_OSR_MASK 0x2000
> +#define MADERA_OUT4_OSR_SHIFT 13
> +#define MADERA_OUT4_OSR_WIDTH 1
> +#define MADERA_OUT4L_ANC_SRC_MASK 0x0C00
> +#define MADERA_OUT4L_ANC_SRC_SHIFT 10
> +#define MADERA_OUT4L_ANC_SRC_WIDTH 2
> +
> +/* (0x0429) DAC_Digital_Volume_4L */
> +#define MADERA_OUT4L_VU 0x0200
> +#define MADERA_OUT4L_VU_MASK 0x0200
> +#define MADERA_OUT4L_VU_SHIFT 9
> +#define MADERA_OUT4L_VU_WIDTH 1
> +#define MADERA_OUT4L_MUTE 0x0100
> +#define MADERA_OUT4L_MUTE_MASK 0x0100
> +#define MADERA_OUT4L_MUTE_SHIFT 8
> +#define MADERA_OUT4L_MUTE_WIDTH 1
> +#define MADERA_OUT4L_VOL_MASK 0x00FF
> +#define MADERA_OUT4L_VOL_SHIFT 0
> +#define MADERA_OUT4L_VOL_WIDTH 8
> +
> +/* (0x042B) Noise_Gate_Select_4L */
> +#define MADERA_OUT4L_NGATE_SRC_MASK 0x0FFF
> +#define MADERA_OUT4L_NGATE_SRC_SHIFT 0
> +#define MADERA_OUT4L_NGATE_SRC_WIDTH 12
> +
> +/* (0x042C) Output_Path_Config_4R */
> +#define MADERA_OUT4R_ANC_SRC_MASK 0x0C00
> +#define MADERA_OUT4R_ANC_SRC_SHIFT 10
> +#define MADERA_OUT4R_ANC_SRC_WIDTH 2
> +
> +/* (0x042D) DAC_Digital_Volume_4R */
> +#define MADERA_OUT4R_VU 0x0200
> +#define MADERA_OUT4R_VU_MASK 0x0200
> +#define MADERA_OUT4R_VU_SHIFT 9
> +#define MADERA_OUT4R_VU_WIDTH 1
> +#define MADERA_OUT4R_MUTE 0x0100
> +#define MADERA_OUT4R_MUTE_MASK 0x0100
> +#define MADERA_OUT4R_MUTE_SHIFT 8
> +#define MADERA_OUT4R_MUTE_WIDTH 1
> +#define MADERA_OUT4R_VOL_MASK 0x00FF
> +#define MADERA_OUT4R_VOL_SHIFT 0
> +#define MADERA_OUT4R_VOL_WIDTH 8
> +
> +/* (0x042F) Noise_Gate_Select_4R */
> +#define MADERA_OUT4R_NGATE_SRC_MASK 0x0FFF
> +#define MADERA_OUT4R_NGATE_SRC_SHIFT 0
> +#define MADERA_OUT4R_NGATE_SRC_WIDTH 12
> +
> +/* (0x0430) Output_Path_Config_5L */
> +#define MADERA_OUT5_OSR 0x2000
> +#define MADERA_OUT5_OSR_MASK 0x2000
> +#define MADERA_OUT5_OSR_SHIFT 13
> +#define MADERA_OUT5_OSR_WIDTH 1
> +#define MADERA_OUT5L_ANC_SRC_MASK 0x0C00
> +#define MADERA_OUT5L_ANC_SRC_SHIFT 10
> +#define MADERA_OUT5L_ANC_SRC_WIDTH 2
> +
> +/* (0x0431) DAC_Digital_Volume_5L */
> +#define MADERA_OUT5L_VU 0x0200
> +#define MADERA_OUT5L_VU_MASK 0x0200
> +#define MADERA_OUT5L_VU_SHIFT 9
> +#define MADERA_OUT5L_VU_WIDTH 1
> +#define MADERA_OUT5L_MUTE 0x0100
> +#define MADERA_OUT5L_MUTE_MASK 0x0100
> +#define MADERA_OUT5L_MUTE_SHIFT 8
> +#define MADERA_OUT5L_MUTE_WIDTH 1
> +#define MADERA_OUT5L_VOL_MASK 0x00FF
> +#define MADERA_OUT5L_VOL_SHIFT 0
> +#define MADERA_OUT5L_VOL_WIDTH 8
> +
> +/* (0x0433) Noise_Gate_Select_5L */
> +#define MADERA_OUT5L_NGATE_SRC_MASK 0x0FFF
> +#define MADERA_OUT5L_NGATE_SRC_SHIFT 0
> +#define MADERA_OUT5L_NGATE_SRC_WIDTH 12
> +
> +/* (0x0434) Output_Path_Config_5R */
> +#define MADERA_OUT5R_ANC_SRC_MASK 0x0C00
> +#define MADERA_OUT5R_ANC_SRC_SHIFT 10
> +#define MADERA_OUT5R_ANC_SRC_WIDTH 2
> +
> +/* (0x0435) DAC_Digital_Volume_5R */
> +#define MADERA_OUT5R_VU 0x0200
> +#define MADERA_OUT5R_VU_MASK 0x0200
> +#define MADERA_OUT5R_VU_SHIFT 9
> +#define MADERA_OUT5R_VU_WIDTH 1
> +#define MADERA_OUT5R_MUTE 0x0100
> +#define MADERA_OUT5R_MUTE_MASK 0x0100
> +#define MADERA_OUT5R_MUTE_SHIFT 8
> +#define MADERA_OUT5R_MUTE_WIDTH 1
> +#define MADERA_OUT5R_VOL_MASK 0x00FF
> +#define MADERA_OUT5R_VOL_SHIFT 0
> +#define MADERA_OUT5R_VOL_WIDTH 8
> +
> +/* (0x0437) Noise_Gate_Select_5R */
> +#define MADERA_OUT5R_NGATE_SRC_MASK 0x0FFF
> +#define MADERA_OUT5R_NGATE_SRC_SHIFT 0
> +#define MADERA_OUT5R_NGATE_SRC_WIDTH 12
> +
> +/* (0x0438) Output_Path_Config_6L */
> +#define MADERA_OUT6_OSR 0x2000
> +#define MADERA_OUT6_OSR_MASK 0x2000
> +#define MADERA_OUT6_OSR_SHIFT 13
> +#define MADERA_OUT6_OSR_WIDTH 1
> +#define MADERA_OUT6L_ANC_SRC_MASK 0x0C00
> +#define MADERA_OUT6L_ANC_SRC_SHIFT 10
> +#define MADERA_OUT6L_ANC_SRC_WIDTH 2
> +
> +/* (0x0439) DAC_Digital_Volume_6L */
> +#define MADERA_OUT6L_VU 0x0200
> +#define MADERA_OUT6L_VU_MASK 0x0200
> +#define MADERA_OUT6L_VU_SHIFT 9
> +#define MADERA_OUT6L_VU_WIDTH 1
> +#define MADERA_OUT6L_MUTE 0x0100
> +#define MADERA_OUT6L_MUTE_MASK 0x0100
> +#define MADERA_OUT6L_MUTE_SHIFT 8
> +#define MADERA_OUT6L_MUTE_WIDTH 1
> +#define MADERA_OUT6L_VOL_MASK 0x00FF
> +#define MADERA_OUT6L_VOL_SHIFT 0
> +#define MADERA_OUT6L_VOL_WIDTH 8
> +
> +/* (0x043B) Noise_Gate_Select_6L */
> +#define MADERA_OUT6L_NGATE_SRC_MASK 0x0FFF
> +#define MADERA_OUT6L_NGATE_SRC_SHIFT 0
> +#define MADERA_OUT6L_NGATE_SRC_WIDTH 12
> +
> +/* (0x043C) Output_Path_Config_6R */
> +#define MADERA_OUT6R_ANC_SRC_MASK 0x0C00
> +#define MADERA_OUT6R_ANC_SRC_SHIFT 10
> +#define MADERA_OUT6R_ANC_SRC_WIDTH 2
> +
> +/* (0x043D) DAC_Digital_Volume_6R */
> +#define MADERA_OUT6R_VU 0x0200
> +#define MADERA_OUT6R_VU_MASK 0x0200
> +#define MADERA_OUT6R_VU_SHIFT 9
> +#define MADERA_OUT6R_VU_WIDTH 1
> +#define MADERA_OUT6R_MUTE 0x0100
> +#define MADERA_OUT6R_MUTE_MASK 0x0100
> +#define MADERA_OUT6R_MUTE_SHIFT 8
> +#define MADERA_OUT6R_MUTE_WIDTH 1
> +#define MADERA_OUT6R_VOL_MASK 0x00FF
> +#define MADERA_OUT6R_VOL_SHIFT 0
> +#define MADERA_OUT6R_VOL_WIDTH 8
> +
> +/* (0x043F) Noise_Gate_Select_6R */
> +#define MADERA_OUT6R_NGATE_SRC_MASK 0x0FFF
> +#define MADERA_OUT6R_NGATE_SRC_SHIFT 0
> +#define MADERA_OUT6R_NGATE_SRC_WIDTH 12
> +
> +/* (0x0440) - DRE Enable */
> +#define MADERA_DRE3R_ENA 0x0020
> +#define MADERA_DRE3R_ENA_MASK 0x0020
> +#define MADERA_DRE3R_ENA_SHIFT 5
> +#define MADERA_DRE3R_ENA_WIDTH 1
> +#define MADERA_DRE3L_ENA 0x0010
> +#define MADERA_DRE3L_ENA_MASK 0x0010
> +#define MADERA_DRE3L_ENA_SHIFT 4
> +#define MADERA_DRE3L_ENA_WIDTH 1
> +#define MADERA_DRE2R_ENA 0x0008
> +#define MADERA_DRE2R_ENA_MASK 0x0008
> +#define MADERA_DRE2R_ENA_SHIFT 3
> +#define MADERA_DRE2R_ENA_WIDTH 1
> +#define MADERA_DRE2L_ENA 0x0004
> +#define MADERA_DRE2L_ENA_MASK 0x0004
> +#define MADERA_DRE2L_ENA_SHIFT 2
> +#define MADERA_DRE2L_ENA_WIDTH 1
> +#define MADERA_DRE1R_ENA 0x0002
> +#define MADERA_DRE1R_ENA_MASK 0x0002
> +#define MADERA_DRE1R_ENA_SHIFT 1
> +#define MADERA_DRE1R_ENA_WIDTH 1
> +#define MADERA_DRE1L_ENA 0x0001
> +#define MADERA_DRE1L_ENA_MASK 0x0001
> +#define MADERA_DRE1L_ENA_SHIFT 0
> +#define MADERA_DRE1L_ENA_WIDTH 1
> +
> +/* (0x0448) - EDRE_Enable */
> +#define MADERA_EDRE_OUT4L_THR3_ENA 0x0800
> +#define MADERA_EDRE_OUT4L_THR3_ENA_MASK 0x0800
> +#define MADERA_EDRE_OUT4L_THR3_ENA_SHIFT 11
> +#define MADERA_EDRE_OUT4L_THR3_ENA_WIDTH 1
> +#define MADERA_EDRE_OUT4R_THR3_ENA 0x0400
> +#define MADERA_EDRE_OUT4R_THR3_ENA_MASK 0x0400
> +#define MADERA_EDRE_OUT4R_THR3_ENA_SHIFT 10
> +#define MADERA_EDRE_OUT4R_THR3_ENA_WIDTH 1
> +#define MADERA_EDRE_OUT4L_THR2_ENA 0x0200
> +#define MADERA_EDRE_OUT4L_THR2_ENA_MASK 0x0200
> +#define MADERA_EDRE_OUT4L_THR2_ENA_SHIFT 9
> +#define MADERA_EDRE_OUT4L_THR2_ENA_WIDTH 1
> +#define MADERA_EDRE_OUT4R_THR2_ENA 0x0100
> +#define MADERA_EDRE_OUT4R_THR2_ENA_MASK 0x0100
> +#define MADERA_EDRE_OUT4R_THR2_ENA_SHIFT 8
> +#define MADERA_EDRE_OUT4R_THR2_ENA_WIDTH 1
> +#define MADERA_EDRE_OUT4L_THR1_ENA 0x0080
> +#define MADERA_EDRE_OUT4L_THR1_ENA_MASK 0x0080
> +#define MADERA_EDRE_OUT4L_THR1_ENA_SHIFT 7
> +#define MADERA_EDRE_OUT4L_THR1_ENA_WIDTH 1
> +#define MADERA_EDRE_OUT4R_THR1_ENA 0x0040
> +#define MADERA_EDRE_OUT4R_THR1_ENA_MASK 0x0040
> +#define MADERA_EDRE_OUT4R_THR1_ENA_SHIFT 6
> +#define MADERA_EDRE_OUT4R_THR1_ENA_WIDTH 1
> +#define MADERA_EDRE_OUT3L_THR1_ENA 0x0020
> +#define MADERA_EDRE_OUT3L_THR1_ENA_MASK 0x0020
> +#define MADERA_EDRE_OUT3L_THR1_ENA_SHIFT 5
> +#define MADERA_EDRE_OUT3L_THR1_ENA_WIDTH 1
> +#define MADERA_EDRE_OUT3R_THR1_ENA 0x0010
> +#define MADERA_EDRE_OUT3R_THR1_ENA_MASK 0x0010
> +#define MADERA_EDRE_OUT3R_THR1_ENA_SHIFT 4
> +#define MADERA_EDRE_OUT3R_THR1_ENA_WIDTH 1
> +#define MADERA_EDRE_OUT2L_THR1_ENA 0x0008
> +#define MADERA_EDRE_OUT2L_THR1_ENA_MASK 0x0008
> +#define MADERA_EDRE_OUT2L_THR1_ENA_SHIFT 3
> +#define MADERA_EDRE_OUT2L_THR1_ENA_WIDTH 1
> +#define MADERA_EDRE_OUT2R_THR1_ENA 0x0004
> +#define MADERA_EDRE_OUT2R_THR1_ENA_MASK 0x0004
> +#define MADERA_EDRE_OUT2R_THR1_ENA_SHIFT 2
> +#define MADERA_EDRE_OUT2R_THR1_ENA_WIDTH 1
> +#define MADERA_EDRE_OUT1L_THR1_ENA 0x0002
> +#define MADERA_EDRE_OUT1L_THR1_ENA_MASK 0x0002
> +#define MADERA_EDRE_OUT1L_THR1_ENA_SHIFT 1
> +#define MADERA_EDRE_OUT1L_THR1_ENA_WIDTH 1
> +#define MADERA_EDRE_OUT1R_THR1_ENA 0x0001
> +#define MADERA_EDRE_OUT1R_THR1_ENA_MASK 0x0001
> +#define MADERA_EDRE_OUT1R_THR1_ENA_SHIFT 0
> +#define MADERA_EDRE_OUT1R_THR1_ENA_WIDTH 1
> +
> +/* (0x044A) - EDRE_Manual */
> +#define MADERA_EDRE_OUT3L_MANUAL 0x0020
> +#define MADERA_EDRE_OUT3L_MANUAL_MASK 0x0020
> +#define MADERA_EDRE_OUT3L_MANUAL_SHIFT 5
> +#define MADERA_EDRE_OUT3L_MANUAL_WIDTH 1
> +#define MADERA_EDRE_OUT3R_MANUAL 0x0010
> +#define MADERA_EDRE_OUT3R_MANUAL_MASK 0x0010
> +#define MADERA_EDRE_OUT3R_MANUAL_SHIFT 4
> +#define MADERA_EDRE_OUT3R_MANUAL_WIDTH 1
> +#define MADERA_EDRE_OUT2L_MANUAL 0x0008
> +#define MADERA_EDRE_OUT2L_MANUAL_MASK 0x0008
> +#define MADERA_EDRE_OUT2L_MANUAL_SHIFT 3
> +#define MADERA_EDRE_OUT2L_MANUAL_WIDTH 1
> +#define MADERA_EDRE_OUT2R_MANUAL 0x0004
> +#define MADERA_EDRE_OUT2R_MANUAL_MASK 0x0004
> +#define MADERA_EDRE_OUT2R_MANUAL_SHIFT 2
> +#define MADERA_EDRE_OUT2R_MANUAL_WIDTH 1
> +#define MADERA_EDRE_OUT1L_MANUAL 0x0002
> +#define MADERA_EDRE_OUT1L_MANUAL_MASK 0x0002
> +#define MADERA_EDRE_OUT1L_MANUAL_SHIFT 1
> +#define MADERA_EDRE_OUT1L_MANUAL_WIDTH 1
> +#define MADERA_EDRE_OUT1R_MANUAL 0x0001
> +#define MADERA_EDRE_OUT1R_MANUAL_MASK 0x0001
> +#define MADERA_EDRE_OUT1R_MANUAL_SHIFT 0
> +#define MADERA_EDRE_OUT1R_MANUAL_WIDTH 1
> +
> +/* (0x0450) - DAC AEC Control 1 */
> +#define MADERA_AEC1_LOOPBACK_SRC_MASK 0x003C
> +#define MADERA_AEC1_LOOPBACK_SRC_SHIFT 2
> +#define MADERA_AEC1_LOOPBACK_SRC_WIDTH 4
> +#define MADERA_AEC1_ENA_STS 0x0002
> +#define MADERA_AEC1_ENA_STS_MASK 0x0002
> +#define MADERA_AEC1_ENA_STS_SHIFT 1
> +#define MADERA_AEC1_ENA_STS_WIDTH 1
> +#define MADERA_AEC1_LOOPBACK_ENA 0x0001
> +#define MADERA_AEC1_LOOPBACK_ENA_MASK 0x0001
> +#define MADERA_AEC1_LOOPBACK_ENA_SHIFT 0
> +#define MADERA_AEC1_LOOPBACK_ENA_WIDTH 1
> +
> +/* (0x0451) DAC_AEC_Control_2 */
> +#define MADERA_AEC2_LOOPBACK_SRC_MASK 0x003C
> +#define MADERA_AEC2_LOOPBACK_SRC_SHIFT 2
> +#define MADERA_AEC2_LOOPBACK_SRC_WIDTH 4
> +#define MADERA_AEC2_ENA_STS 0x0002
> +#define MADERA_AEC2_ENA_STS_MASK 0x0002
> +#define MADERA_AEC2_ENA_STS_SHIFT 1
> +#define MADERA_AEC2_ENA_STS_WIDTH 1
> +#define MADERA_AEC2_LOOPBACK_ENA 0x0001
> +#define MADERA_AEC2_LOOPBACK_ENA_MASK 0x0001
> +#define MADERA_AEC2_LOOPBACK_ENA_SHIFT 0
> +#define MADERA_AEC2_LOOPBACK_ENA_WIDTH 1
> +
> +/* (0x0458) Noise_Gate_Control */
> +#define MADERA_NGATE_HOLD_MASK 0x0030
> +#define MADERA_NGATE_HOLD_SHIFT 4
> +#define MADERA_NGATE_HOLD_WIDTH 2
> +#define MADERA_NGATE_THR_MASK 0x000E
> +#define MADERA_NGATE_THR_SHIFT 1
> +#define MADERA_NGATE_THR_WIDTH 3
> +#define MADERA_NGATE_ENA 0x0001
> +#define MADERA_NGATE_ENA_MASK 0x0001
> +#define MADERA_NGATE_ENA_SHIFT 0
> +#define MADERA_NGATE_ENA_WIDTH 1
> +
> +/* (0x0490) PDM_SPK1_CTRL_1 */
> +#define MADERA_SPK1R_MUTE 0x2000
> +#define MADERA_SPK1R_MUTE_MASK 0x2000
> +#define MADERA_SPK1R_MUTE_SHIFT 13
> +#define MADERA_SPK1R_MUTE_WIDTH 1
> +#define MADERA_SPK1L_MUTE 0x1000
> +#define MADERA_SPK1L_MUTE_MASK 0x1000
> +#define MADERA_SPK1L_MUTE_SHIFT 12
> +#define MADERA_SPK1L_MUTE_WIDTH 1
> +#define MADERA_SPK1_MUTE_ENDIAN 0x0100
> +#define MADERA_SPK1_MUTE_ENDIAN_MASK 0x0100
> +#define MADERA_SPK1_MUTE_ENDIAN_SHIFT 8
> +#define MADERA_SPK1_MUTE_ENDIAN_WIDTH 1
> +#define MADERA_SPK1_MUTE_SEQ1_MASK 0x00FF
> +#define MADERA_SPK1_MUTE_SEQ1_SHIFT 0
> +#define MADERA_SPK1_MUTE_SEQ1_WIDTH 8
> +
> +/* (0x0491) PDM_SPK1_CTRL_2 */
> +#define MADERA_SPK1_FMT 0x0001
> +#define MADERA_SPK1_FMT_MASK 0x0001
> +#define MADERA_SPK1_FMT_SHIFT 0
> +#define MADERA_SPK1_FMT_WIDTH 1
> +
> +/* (0x0492) PDM_SPK2_CTRL_1 */
> +#define MADERA_SPK2R_MUTE 0x2000
> +#define MADERA_SPK2R_MUTE_MASK 0x2000
> +#define MADERA_SPK2R_MUTE_SHIFT 13
> +#define MADERA_SPK2R_MUTE_WIDTH 1
> +#define MADERA_SPK2L_MUTE 0x1000
> +#define MADERA_SPK2L_MUTE_MASK 0x1000
> +#define MADERA_SPK2L_MUTE_SHIFT 12
> +#define MADERA_SPK2L_MUTE_WIDTH 1
> +#define MADERA_SPK2_MUTE_ENDIAN 0x0100
> +#define MADERA_SPK2_MUTE_ENDIAN_MASK 0x0100
> +#define MADERA_SPK2_MUTE_ENDIAN_SHIFT 8
> +#define MADERA_SPK2_MUTE_ENDIAN_WIDTH 1
> +#define MADERA_SPK2_MUTE_SEQ_MASK 0x00FF
> +#define MADERA_SPK2_MUTE_SEQ_SHIFT 0
> +#define MADERA_SPK2_MUTE_SEQ_WIDTH 8
> +
> +/* (0x0493) PDM_SPK2_CTRL_2 */
> +#define MADERA_SPK2_FMT 0x0001
> +#define MADERA_SPK2_FMT_MASK 0x0001
> +#define MADERA_SPK2_FMT_SHIFT 0
> +#define MADERA_SPK2_FMT_WIDTH 1
> +
> +/* (0x04A0) - HP1 Short Circuit Ctrl */
> +#define MADERA_HP1_SC_ENA 0x1000
> +#define MADERA_HP1_SC_ENA_MASK 0x1000
> +#define MADERA_HP1_SC_ENA_SHIFT 12
> +#define MADERA_HP1_SC_ENA_WIDTH 1
> +
> +/* (0x04A1) - HP2 Short Circuit Ctrl */
> +#define MADERA_HP2_SC_ENA 0x1000
> +#define MADERA_HP2_SC_ENA_MASK 0x1000
> +#define MADERA_HP2_SC_ENA_SHIFT 12
> +#define MADERA_HP2_SC_ENA_WIDTH 1
> +
> +/* (0x04A2) - HP3 Short Circuit Ctrl */
> +#define MADERA_HP3_SC_ENA 0x1000
> +#define MADERA_HP3_SC_ENA_MASK 0x1000
> +#define MADERA_HP3_SC_ENA_SHIFT 12
> +#define MADERA_HP3_SC_ENA_WIDTH 1
> +
> +/* (0x04A4) HP Test Ctrl 1 */
> +#define MADERA_HP1_TST_CAP_SEL_MASK 0x0003
> +#define MADERA_HP1_TST_CAP_SEL_SHIFT 0
> +#define MADERA_HP1_TST_CAP_SEL_WIDTH 2
> +
> +/* (0x04A8) - HP_Test_Ctrl_5 */
> +#define MADERA_HP1L_TST_CINT 0x4000
> +#define MADERA_HP1L_TST_CINT_MASK 0x4000
> +#define MADERA_HP1L_TST_CINT_SHIFT 14
> +#define MADERA_HP1L_TST_CINT_WIDTH 1
> +#define MADERA_HP1L_TST_GBW 0x3000
> +#define MADERA_HP1L_TST_GBW_MASK 0x3000
> +#define MADERA_HP1L_TST_GBW_SHIFT 12
> +#define MADERA_HP1L_TST_GBW_WIDTH 2
> +#define MADERA_HP1L_TST_PGAS 0x0800
> +#define MADERA_HP1L_TST_PGAS_MASK 0x0800
> +#define MADERA_HP1L_TST_PGAS_SHIFT 11
> +#define MADERA_HP1L_TST_PGAS_WIDTH 1
> +#define MADERA_HP1L_TST_DUMP 0x0400
> +#define MADERA_HP1L_TST_DUMP_MASK 0x0400
> +#define MADERA_HP1L_TST_DUMP_SHIFT 10
> +#define MADERA_HP1L_TST_DUMP_WIDTH 1
> +#define MADERA_HP1L_TST_RST 0x0200
> +#define MADERA_HP1L_TST_RST_MASK 0x0200
> +#define MADERA_HP1L_TST_RST_SHIFT 9
> +#define MADERA_HP1L_TST_RST_WIDTH 1
> +#define MADERA_HP1L_ONEFLT 0x0100
> +#define MADERA_HP1L_ONEFLT_MASK 0x0100
> +#define MADERA_HP1L_ONEFLT_SHIFT 8
> +#define MADERA_HP1L_ONEFLT_WIDTH 1
> +#define MADERA_HP1L_TST_THDOFF 0x00C0
> +#define MADERA_HP1L_TST_THDOFF_MASK 0x00C0
> +#define MADERA_HP1L_TST_THDOFF_SHIFT 6
> +#define MADERA_HP1L_TST_THDOFF_WIDTH 2
> +#define MADERA_HP1L_CTRL_IOUT 0x0030
> +#define MADERA_HP1L_CTRL_IOUT_MASK 0x0030
> +#define MADERA_HP1L_CTRL_IOUT_SHIFT 4
> +#define MADERA_HP1L_CTRL_IOUT_WIDTH 2
> +#define MADERA_HP1L_TST_ILG 0x0008
> +#define MADERA_HP1L_TST_ILG_MASK 0x0008
> +#define MADERA_HP1L_TST_ILG_SHIFT 3
> +#define MADERA_HP1L_TST_ILG_WIDTH 1
> +#define MADERA_HP1L_TST_IBIAS 0x0003
> +#define MADERA_HP1L_TST_IBIAS_MASK 0x0003
> +#define MADERA_HP1L_TST_IBIAS_SHIFT 0
> +#define MADERA_HP1L_TST_IBIAS_WIDTH 2
> +
> +/* (0x04A9) - HP_Test_Ctrl_6 */
> +#define MADERA_HP1R_TST_CINT 0x4000
> +#define MADERA_HP1R_TST_CINT_MASK 0x4000
> +#define MADERA_HP1R_TST_CINT_SHIFT 14
> +#define MADERA_HP1R_TST_CINT_WIDTH 1
> +#define MADERA_HP1R_TST_GBW 0x3000
> +#define MADERA_HP1R_TST_GBW_MASK 0x3000
> +#define MADERA_HP1R_TST_GBW_SHIFT 12
> +#define MADERA_HP1R_TST_GBW_WIDTH 2
> +#define MADERA_HP1R_TST_PGAS 0x0800
> +#define MADERA_HP1R_TST_PGAS_MASK 0x0800
> +#define MADERA_HP1R_TST_PGAS_SHIFT 11
> +#define MADERA_HP1R_TST_PGAS_WIDTH 1
> +#define MADERA_HP1R_TST_DUMP 0x0400
> +#define MADERA_HP1R_TST_DUMP_MASK 0x0400
> +#define MADERA_HP1R_TST_DUMP_SHIFT 10
> +#define MADERA_HP1R_TST_DUMP_WIDTH 1
> +#define MADERA_HP1R_TST_RST 0x0200
> +#define MADERA_HP1R_TST_RST_MASK 0x0200
> +#define MADERA_HP1R_TST_RST_SHIFT 9
> +#define MADERA_HP1R_TST_RST_WIDTH 1
> +#define MADERA_HP1R_ONEFLT 0x0100
> +#define MADERA_HP1R_ONEFLT_MASK 0x0100
> +#define MADERA_HP1R_ONEFLT_SHIFT 8
> +#define MADERA_HP1R_ONEFLT_WIDTH 1
> +#define MADERA_HP1R_TST_THDOFF 0x00C0
> +#define MADERA_HP1R_TST_THDOFF_MASK 0x00C0
> +#define MADERA_HP1R_TST_THDOFF_SHIFT 6
> +#define MADERA_HP1R_TST_THDOFF_WIDTH 2
> +#define MADERA_HP1R_CTRL_IOUT 0x0030
> +#define MADERA_HP1R_CTRL_IOUT_MASK 0x0030
> +#define MADERA_HP1R_CTRL_IOUT_SHIFT 4
> +#define MADERA_HP1R_CTRL_IOUT_WIDTH 2
> +#define MADERA_HP1R_TST_ILG 0x0008
> +#define MADERA_HP1R_TST_ILG_MASK 0x0008
> +#define MADERA_HP1R_TST_ILG_SHIFT 3
> +#define MADERA_HP1R_TST_ILG_WIDTH 1
> +#define MADERA_HP1R_TST_IBIAS 0x0003
> +#define MADERA_HP1R_TST_IBIAS_MASK 0x0003
> +#define MADERA_HP1R_TST_IBIAS_SHIFT 0
> +#define MADERA_HP1R_TST_IBIAS_WIDTH 2
> +
> +/* (0x0500) AIF1_BCLK_Ctrl */
> +#define MADERA_AIF1_BCLK_INV 0x0080
> +#define MADERA_AIF1_BCLK_INV_MASK 0x0080
> +#define MADERA_AIF1_BCLK_INV_SHIFT 7
> +#define MADERA_AIF1_BCLK_INV_WIDTH 1
> +#define MADERA_AIF1_BCLK_FRC 0x0040
> +#define MADERA_AIF1_BCLK_FRC_MASK 0x0040
> +#define MADERA_AIF1_BCLK_FRC_SHIFT 6
> +#define MADERA_AIF1_BCLK_FRC_WIDTH 1
> +#define MADERA_AIF1_BCLK_MSTR 0x0020
> +#define MADERA_AIF1_BCLK_MSTR_MASK 0x0020
> +#define MADERA_AIF1_BCLK_MSTR_SHIFT 5
> +#define MADERA_AIF1_BCLK_MSTR_WIDTH 1
> +#define MADERA_AIF1_BCLK_FREQ_MASK 0x001F
> +#define MADERA_AIF1_BCLK_FREQ_SHIFT 0
> +#define MADERA_AIF1_BCLK_FREQ_WIDTH 5
> +
> +/* (0x0501) AIF1_Tx_Pin_Ctrl */
> +#define MADERA_AIF1TX_DAT_TRI 0x0020
> +#define MADERA_AIF1TX_DAT_TRI_MASK 0x0020
> +#define MADERA_AIF1TX_DAT_TRI_SHIFT 5
> +#define MADERA_AIF1TX_DAT_TRI_WIDTH 1
> +#define MADERA_AIF1TX_LRCLK_SRC 0x0008
> +#define MADERA_AIF1TX_LRCLK_SRC_MASK 0x0008
> +#define MADERA_AIF1TX_LRCLK_SRC_SHIFT 3
> +#define MADERA_AIF1TX_LRCLK_SRC_WIDTH 1
> +#define MADERA_AIF1TX_LRCLK_INV 0x0004
> +#define MADERA_AIF1TX_LRCLK_INV_MASK 0x0004
> +#define MADERA_AIF1TX_LRCLK_INV_SHIFT 2
> +#define MADERA_AIF1TX_LRCLK_INV_WIDTH 1
> +#define MADERA_AIF1TX_LRCLK_FRC 0x0002
> +#define MADERA_AIF1TX_LRCLK_FRC_MASK 0x0002
> +#define MADERA_AIF1TX_LRCLK_FRC_SHIFT 1
> +#define MADERA_AIF1TX_LRCLK_FRC_WIDTH 1
> +#define MADERA_AIF1TX_LRCLK_MSTR 0x0001
> +#define MADERA_AIF1TX_LRCLK_MSTR_MASK 0x0001
> +#define MADERA_AIF1TX_LRCLK_MSTR_SHIFT 0
> +#define MADERA_AIF1TX_LRCLK_MSTR_WIDTH 1
> +
> +/* (0x0502) AIF1_Rx_Pin_Ctrl */
> +#define MADERA_AIF1RX_LRCLK_INV 0x0004
> +#define MADERA_AIF1RX_LRCLK_INV_MASK 0x0004
> +#define MADERA_AIF1RX_LRCLK_INV_SHIFT 2
> +#define MADERA_AIF1RX_LRCLK_INV_WIDTH 1
> +#define MADERA_AIF1RX_LRCLK_FRC 0x0002
> +#define MADERA_AIF1RX_LRCLK_FRC_MASK 0x0002
> +#define MADERA_AIF1RX_LRCLK_FRC_SHIFT 1
> +#define MADERA_AIF1RX_LRCLK_FRC_WIDTH 1
> +#define MADERA_AIF1RX_LRCLK_MSTR 0x0001
> +#define MADERA_AIF1RX_LRCLK_MSTR_MASK 0x0001
> +#define MADERA_AIF1RX_LRCLK_MSTR_SHIFT 0
> +#define MADERA_AIF1RX_LRCLK_MSTR_WIDTH 1
> +
> +/* (0x0503) AIF1_Rate_Ctrl */
> +#define MADERA_AIF1_RATE_MASK 0xF800
> +#define MADERA_AIF1_RATE_SHIFT 11
> +#define MADERA_AIF1_RATE_WIDTH 5
> +#define MADERA_AIF1_TRI 0x0040
> +#define MADERA_AIF1_TRI_MASK 0x0040
> +#define MADERA_AIF1_TRI_SHIFT 6
> +#define MADERA_AIF1_TRI_WIDTH 1
> +
> +/* (0x0504) AIF1_Format */
> +#define MADERA_AIF1_FMT_MASK 0x0007
> +#define MADERA_AIF1_FMT_SHIFT 0
> +#define MADERA_AIF1_FMT_WIDTH 3
> +
> +/* (0x0506) AIF1_Rx_BCLK_Rate */
> +#define MADERA_AIF1RX_BCPF_MASK 0x1FFF
> +#define MADERA_AIF1RX_BCPF_SHIFT 0
> +#define MADERA_AIF1RX_BCPF_WIDTH 13
> +
> +/* (0x0507) AIF1_Frame_Ctrl_1 */
> +#define MADERA_AIF1TX_WL_MASK 0x3F00
> +#define MADERA_AIF1TX_WL_SHIFT 8
> +#define MADERA_AIF1TX_WL_WIDTH 6
> +#define MADERA_AIF1TX_SLOT_LEN_MASK 0x00FF
> +#define MADERA_AIF1TX_SLOT_LEN_SHIFT 0
> +#define MADERA_AIF1TX_SLOT_LEN_WIDTH 8
> +
> +/* (0x0508) AIF1_Frame_Ctrl_2 */
> +#define MADERA_AIF1RX_WL_MASK 0x3F00
> +#define MADERA_AIF1RX_WL_SHIFT 8
> +#define MADERA_AIF1RX_WL_WIDTH 6
> +#define MADERA_AIF1RX_SLOT_LEN_MASK 0x00FF
> +#define MADERA_AIF1RX_SLOT_LEN_SHIFT 0
> +#define MADERA_AIF1RX_SLOT_LEN_WIDTH 8
> +
> +/* (0x0509) AIF1_Frame_Ctrl_3 */
> +#define MADERA_AIF1TX1_SLOT_MASK 0x003F
> +#define MADERA_AIF1TX1_SLOT_SHIFT 0
> +#define MADERA_AIF1TX1_SLOT_WIDTH 6
> +
> +/* (0x050A) AIF1_Frame_Ctrl_4 */
> +#define MADERA_AIF1TX2_SLOT_MASK 0x003F
> +#define MADERA_AIF1TX2_SLOT_SHIFT 0
> +#define MADERA_AIF1TX2_SLOT_WIDTH 6
> +
> +/* (0x050B) AIF1_Frame_Ctrl_5 */
> +#define MADERA_AIF1TX3_SLOT_MASK 0x003F
> +#define MADERA_AIF1TX3_SLOT_SHIFT 0
> +#define MADERA_AIF1TX3_SLOT_WIDTH 6
> +
> +/* (0x050C) AIF1_Frame_Ctrl_6 */
> +#define MADERA_AIF1TX4_SLOT_MASK 0x003F
> +#define MADERA_AIF1TX4_SLOT_SHIFT 0
> +#define MADERA_AIF1TX4_SLOT_WIDTH 6
> +
> +/* (0x050D) AIF1_Frame_Ctrl_7 */
> +#define MADERA_AIF1TX5_SLOT_MASK 0x003F
> +#define MADERA_AIF1TX5_SLOT_SHIFT 0
> +#define MADERA_AIF1TX5_SLOT_WIDTH 6
> +
> +/* (0x050E) AIF1_Frame_Ctrl_8 */
> +#define MADERA_AIF1TX6_SLOT_MASK 0x003F
> +#define MADERA_AIF1TX6_SLOT_SHIFT 0
> +#define MADERA_AIF1TX6_SLOT_WIDTH 6
> +
> +/* (0x050F) AIF1_Frame_Ctrl_9 */
> +#define MADERA_AIF1TX7_SLOT_MASK 0x003F
> +#define MADERA_AIF1TX7_SLOT_SHIFT 0
> +#define MADERA_AIF1TX7_SLOT_WIDTH 6
> +
> +/* (0x0510) AIF1_Frame_Ctrl_10 */
> +#define MADERA_AIF1TX8_SLOT_MASK 0x003F
> +#define MADERA_AIF1TX8_SLOT_SHIFT 0
> +#define MADERA_AIF1TX8_SLOT_WIDTH 6
> +
> +/* (0x0511) AIF1_Frame_Ctrl_11 */
> +#define MADERA_AIF1RX1_SLOT_MASK 0x003F
> +#define MADERA_AIF1RX1_SLOT_SHIFT 0
> +#define MADERA_AIF1RX1_SLOT_WIDTH 6
> +
> +/* (0x0512) AIF1_Frame_Ctrl_12 */
> +#define MADERA_AIF1RX2_SLOT_MASK 0x003F
> +#define MADERA_AIF1RX2_SLOT_SHIFT 0
> +#define MADERA_AIF1RX2_SLOT_WIDTH 6
> +
> +/* (0x0513) AIF1_Frame_Ctrl_13 */
> +#define MADERA_AIF1RX3_SLOT_MASK 0x003F
> +#define MADERA_AIF1RX3_SLOT_SHIFT 0
> +#define MADERA_AIF1RX3_SLOT_WIDTH 6
> +
> +/* (0x0514) AIF1_Frame_Ctrl_14 */
> +#define MADERA_AIF1RX4_SLOT_MASK 0x003F
> +#define MADERA_AIF1RX4_SLOT_SHIFT 0
> +#define MADERA_AIF1RX4_SLOT_WIDTH 6
> +
> +/* (0x0515) AIF1_Frame_Ctrl_15 */
> +#define MADERA_AIF1RX5_SLOT_MASK 0x003F
> +#define MADERA_AIF1RX5_SLOT_SHIFT 0
> +#define MADERA_AIF1RX5_SLOT_WIDTH 6
> +
> +/* (0x0516) AIF1_Frame_Ctrl_16 */
> +#define MADERA_AIF1RX6_SLOT_MASK 0x003F
> +#define MADERA_AIF1RX6_SLOT_SHIFT 0
> +#define MADERA_AIF1RX6_SLOT_WIDTH 6
> +
> +/* (0x0517) AIF1_Frame_Ctrl_17 */
> +#define MADERA_AIF1RX7_SLOT_MASK 0x003F
> +#define MADERA_AIF1RX7_SLOT_SHIFT 0
> +#define MADERA_AIF1RX7_SLOT_WIDTH 6
> +
> +/* (0x0518) AIF1_Frame_Ctrl_18 */
> +#define MADERA_AIF1RX8_SLOT_MASK 0x003F
> +#define MADERA_AIF1RX8_SLOT_SHIFT 0
> +#define MADERA_AIF1RX8_SLOT_WIDTH 6
> +
> +/* (0x0519) AIF1_Tx_Enables */
> +#define MADERA_AIF1TX8_ENA 0x0080
> +#define MADERA_AIF1TX8_ENA_MASK 0x0080
> +#define MADERA_AIF1TX8_ENA_SHIFT 7
> +#define MADERA_AIF1TX8_ENA_WIDTH 1
> +#define MADERA_AIF1TX7_ENA 0x0040
> +#define MADERA_AIF1TX7_ENA_MASK 0x0040
> +#define MADERA_AIF1TX7_ENA_SHIFT 6
> +#define MADERA_AIF1TX7_ENA_WIDTH 1
> +#define MADERA_AIF1TX6_ENA 0x0020
> +#define MADERA_AIF1TX6_ENA_MASK 0x0020
> +#define MADERA_AIF1TX6_ENA_SHIFT 5
> +#define MADERA_AIF1TX6_ENA_WIDTH 1
> +#define MADERA_AIF1TX5_ENA 0x0010
> +#define MADERA_AIF1TX5_ENA_MASK 0x0010
> +#define MADERA_AIF1TX5_ENA_SHIFT 4
> +#define MADERA_AIF1TX5_ENA_WIDTH 1
> +#define MADERA_AIF1TX4_ENA 0x0008
> +#define MADERA_AIF1TX4_ENA_MASK 0x0008
> +#define MADERA_AIF1TX4_ENA_SHIFT 3
> +#define MADERA_AIF1TX4_ENA_WIDTH 1
> +#define MADERA_AIF1TX3_ENA 0x0004
> +#define MADERA_AIF1TX3_ENA_MASK 0x0004
> +#define MADERA_AIF1TX3_ENA_SHIFT 2
> +#define MADERA_AIF1TX3_ENA_WIDTH 1
> +#define MADERA_AIF1TX2_ENA 0x0002
> +#define MADERA_AIF1TX2_ENA_MASK 0x0002
> +#define MADERA_AIF1TX2_ENA_SHIFT 1
> +#define MADERA_AIF1TX2_ENA_WIDTH 1
> +#define MADERA_AIF1TX1_ENA 0x0001
> +#define MADERA_AIF1TX1_ENA_MASK 0x0001
> +#define MADERA_AIF1TX1_ENA_SHIFT 0
> +#define MADERA_AIF1TX1_ENA_WIDTH 1
> +
> +/* (0x051A) AIF1_Rx_Enables */
> +#define MADERA_AIF1RX8_ENA 0x0080
> +#define MADERA_AIF1RX8_ENA_MASK 0x0080
> +#define MADERA_AIF1RX8_ENA_SHIFT 7
> +#define MADERA_AIF1RX8_ENA_WIDTH 1
> +#define MADERA_AIF1RX7_ENA 0x0040
> +#define MADERA_AIF1RX7_ENA_MASK 0x0040
> +#define MADERA_AIF1RX7_ENA_SHIFT 6
> +#define MADERA_AIF1RX7_ENA_WIDTH 1
> +#define MADERA_AIF1RX6_ENA 0x0020
> +#define MADERA_AIF1RX6_ENA_MASK 0x0020
> +#define MADERA_AIF1RX6_ENA_SHIFT 5
> +#define MADERA_AIF1RX6_ENA_WIDTH 1
> +#define MADERA_AIF1RX5_ENA 0x0010
> +#define MADERA_AIF1RX5_ENA_MASK 0x0010
> +#define MADERA_AIF1RX5_ENA_SHIFT 4
> +#define MADERA_AIF1RX5_ENA_WIDTH 1
> +#define MADERA_AIF1RX4_ENA 0x0008
> +#define MADERA_AIF1RX4_ENA_MASK 0x0008
> +#define MADERA_AIF1RX4_ENA_SHIFT 3
> +#define MADERA_AIF1RX4_ENA_WIDTH 1
> +#define MADERA_AIF1RX3_ENA 0x0004
> +#define MADERA_AIF1RX3_ENA_MASK 0x0004
> +#define MADERA_AIF1RX3_ENA_SHIFT 2
> +#define MADERA_AIF1RX3_ENA_WIDTH 1
> +#define MADERA_AIF1RX2_ENA 0x0002
> +#define MADERA_AIF1RX2_ENA_MASK 0x0002
> +#define MADERA_AIF1RX2_ENA_SHIFT 1
> +#define MADERA_AIF1RX2_ENA_WIDTH 1
> +#define MADERA_AIF1RX1_ENA 0x0001
> +#define MADERA_AIF1RX1_ENA_MASK 0x0001
> +#define MADERA_AIF1RX1_ENA_SHIFT 0
> +#define MADERA_AIF1RX1_ENA_WIDTH 1
> +
> +/* (0x051B) - AIF1 Force Write */
> +#define MADERA_AIF1_FRC_WR 0x0001
> +#define MADERA_AIF1_FRC_WR_MASK 0x0001
> +#define MADERA_AIF1_FRC_WR_SHIFT 0
> +#define MADERA_AIF1_FRC_WR_WIDTH 1
> +
> +/* (0x0540) AIF2_BCLK_Ctrl */
> +#define MADERA_AIF2_BCLK_INV 0x0080
> +#define MADERA_AIF2_BCLK_INV_MASK 0x0080
> +#define MADERA_AIF2_BCLK_INV_SHIFT 7
> +#define MADERA_AIF2_BCLK_INV_WIDTH 1
> +#define MADERA_AIF2_BCLK_FRC 0x0040
> +#define MADERA_AIF2_BCLK_FRC_MASK 0x0040
> +#define MADERA_AIF2_BCLK_FRC_SHIFT 6
> +#define MADERA_AIF2_BCLK_FRC_WIDTH 1
> +#define MADERA_AIF2_BCLK_MSTR 0x0020
> +#define MADERA_AIF2_BCLK_MSTR_MASK 0x0020
> +#define MADERA_AIF2_BCLK_MSTR_SHIFT 5
> +#define MADERA_AIF2_BCLK_MSTR_WIDTH 1
> +#define MADERA_AIF2_BCLK_FREQ_MASK 0x001F
> +#define MADERA_AIF2_BCLK_FREQ_SHIFT 0
> +#define MADERA_AIF2_BCLK_FREQ_WIDTH 5
> +
> +/* (0x0541) AIF2_Tx_Pin_Ctrl */
> +#define MADERA_AIF2TX_DAT_TRI 0x0020
> +#define MADERA_AIF2TX_DAT_TRI_MASK 0x0020
> +#define MADERA_AIF2TX_DAT_TRI_SHIFT 5
> +#define MADERA_AIF2TX_DAT_TRI_WIDTH 1
> +#define MADERA_AIF2TX_LRCLK_SRC 0x0008
> +#define MADERA_AIF2TX_LRCLK_SRC_MASK 0x0008
> +#define MADERA_AIF2TX_LRCLK_SRC_SHIFT 3
> +#define MADERA_AIF2TX_LRCLK_SRC_WIDTH 1
> +#define MADERA_AIF2TX_LRCLK_INV 0x0004
> +#define MADERA_AIF2TX_LRCLK_INV_MASK 0x0004
> +#define MADERA_AIF2TX_LRCLK_INV_SHIFT 2
> +#define MADERA_AIF2TX_LRCLK_INV_WIDTH 1
> +#define MADERA_AIF2TX_LRCLK_FRC 0x0002
> +#define MADERA_AIF2TX_LRCLK_FRC_MASK 0x0002
> +#define MADERA_AIF2TX_LRCLK_FRC_SHIFT 1
> +#define MADERA_AIF2TX_LRCLK_FRC_WIDTH 1
> +#define MADERA_AIF2TX_LRCLK_MSTR 0x0001
> +#define MADERA_AIF2TX_LRCLK_MSTR_MASK 0x0001
> +#define MADERA_AIF2TX_LRCLK_MSTR_SHIFT 0
> +#define MADERA_AIF2TX_LRCLK_MSTR_WIDTH 1
> +
> +/* (0x0542) AIF2_Rx_Pin_Ctrl */
> +#define MADERA_AIF2RX_LRCLK_INV 0x0004
> +#define MADERA_AIF2RX_LRCLK_INV_MASK 0x0004
> +#define MADERA_AIF2RX_LRCLK_INV_SHIFT 2
> +#define MADERA_AIF2RX_LRCLK_INV_WIDTH 1
> +#define MADERA_AIF2RX_LRCLK_FRC 0x0002
> +#define MADERA_AIF2RX_LRCLK_FRC_MASK 0x0002
> +#define MADERA_AIF2RX_LRCLK_FRC_SHIFT 1
> +#define MADERA_AIF2RX_LRCLK_FRC_WIDTH 1
> +#define MADERA_AIF2RX_LRCLK_MSTR 0x0001
> +#define MADERA_AIF2RX_LRCLK_MSTR_MASK 0x0001
> +#define MADERA_AIF2RX_LRCLK_MSTR_SHIFT 0
> +#define MADERA_AIF2RX_LRCLK_MSTR_WIDTH 1
> +
> +/* (0x0543) AIF2_Rate_Ctrl */
> +#define MADERA_AIF2_RATE_MASK 0xF800
> +#define MADERA_AIF2_RATE_SHIFT 11
> +#define MADERA_AIF2_RATE_WIDTH 5
> +#define MADERA_AIF2_TRI 0x0040
> +#define MADERA_AIF2_TRI_MASK 0x0040
> +#define MADERA_AIF2_TRI_SHIFT 6
> +#define MADERA_AIF2_TRI_WIDTH 1
> +
> +/* (0x0544) AIF2_Format */
> +#define MADERA_AIF2_FMT_MASK 0x0007
> +#define MADERA_AIF2_FMT_SHIFT 0
> +#define MADERA_AIF2_FMT_WIDTH 3
> +
> +/* (0x0546) AIF2_Rx_BCLK_Rate */
> +#define MADERA_AIF2RX_BCPF_MASK 0x1FFF
> +#define MADERA_AIF2RX_BCPF_SHIFT 0
> +#define MADERA_AIF2RX_BCPF_WIDTH 13
> +
> +/* (0x0547) AIF2_Frame_Ctrl_1 */
> +#define MADERA_AIF2TX_WL_MASK 0x3F00
> +#define MADERA_AIF2TX_WL_SHIFT 8
> +#define MADERA_AIF2TX_WL_WIDTH 6
> +#define MADERA_AIF2TX_SLOT_LEN_MASK 0x00FF
> +#define MADERA_AIF2TX_SLOT_LEN_SHIFT 0
> +#define MADERA_AIF2TX_SLOT_LEN_WIDTH 8
> +
> +/* (0x0548) AIF2_Frame_Ctrl_2 */
> +#define MADERA_AIF2RX_WL_MASK 0x3F00
> +#define MADERA_AIF2RX_WL_SHIFT 8
> +#define MADERA_AIF2RX_WL_WIDTH 6
> +#define MADERA_AIF2RX_SLOT_LEN_MASK 0x00FF
> +#define MADERA_AIF2RX_SLOT_LEN_SHIFT 0
> +#define MADERA_AIF2RX_SLOT_LEN_WIDTH 8
> +
> +/* (0x0549) AIF2_Frame_Ctrl_3 */
> +#define MADERA_AIF2TX1_SLOT_MASK 0x003F
> +#define MADERA_AIF2TX1_SLOT_SHIFT 0
> +#define MADERA_AIF2TX1_SLOT_WIDTH 6
> +
> +/* (0x054A) AIF2_Frame_Ctrl_4 */
> +#define MADERA_AIF2TX2_SLOT_MASK 0x003F
> +#define MADERA_AIF2TX2_SLOT_SHIFT 0
> +#define MADERA_AIF2TX2_SLOT_WIDTH 6
> +
> +/* (0x054B) AIF2_Frame_Ctrl_5 */
> +#define MADERA_AIF2TX3_SLOT_MASK 0x003F
> +#define MADERA_AIF2TX3_SLOT_SHIFT 0
> +#define MADERA_AIF2TX3_SLOT_WIDTH 6
> +
> +/* (0x054C) AIF2_Frame_Ctrl_6 */
> +#define MADERA_AIF2TX4_SLOT_MASK 0x003F
> +#define MADERA_AIF2TX4_SLOT_SHIFT 0
> +#define MADERA_AIF2TX4_SLOT_WIDTH 6
> +
> +
> +/* (0x054D) AIF2_Frame_Ctrl_7 */
> +#define MADERA_AIF2TX5_SLOT_MASK 0x003F
> +#define MADERA_AIF2TX5_SLOT_SHIFT 0
> +#define MADERA_AIF2TX5_SLOT_WIDTH 6
> +
> +/* (0x054E) AIF2_Frame_Ctrl_8 */
> +#define MADERA_AIF2TX6_SLOT_MASK 0x003F
> +#define MADERA_AIF2TX6_SLOT_SHIFT 0
> +#define MADERA_AIF2TX6_SLOT_WIDTH 6
> +
> +/* (0x054F) AIF2_Frame_Ctrl_9 */
> +#define MADERA_AIF2TX7_SLOT_MASK 0x003F
> +#define MADERA_AIF2TX7_SLOT_SHIFT 0
> +#define MADERA_AIF2TX7_SLOT_WIDTH 6
> +/* (0x0550) AIF2_Frame_Ctrl_10 */
> +#define MADERA_AIF2TX8_SLOT_MASK 0x003F
> +#define MADERA_AIF2TX8_SLOT_SHIFT 0
> +#define MADERA_AIF2TX8_SLOT_WIDTH 6
> +
> +/* (0x0551) AIF2_Frame_Ctrl_11 */
> +#define MADERA_AIF2RX1_SLOT_MASK 0x003F
> +#define MADERA_AIF2RX1_SLOT_SHIFT 0
> +#define MADERA_AIF2RX1_SLOT_WIDTH 6
> +
> +/* (0x0552) AIF2_Frame_Ctrl_12 */
> +#define MADERA_AIF2RX2_SLOT_MASK 0x003F
> +#define MADERA_AIF2RX2_SLOT_SHIFT 0
> +#define MADERA_AIF2RX2_SLOT_WIDTH 6
> +
> +/* (0x0553) AIF2_Frame_Ctrl_13 */
> +#define MADERA_AIF2RX3_SLOT_MASK 0x003F
> +#define MADERA_AIF2RX3_SLOT_SHIFT 0
> +#define MADERA_AIF2RX3_SLOT_WIDTH 6
> +
> +/* (0x0554) AIF2_Frame_Ctrl_14 */
> +#define MADERA_AIF2RX4_SLOT_MASK 0x003F
> +#define MADERA_AIF2RX4_SLOT_SHIFT 0
> +#define MADERA_AIF2RX4_SLOT_WIDTH 6
> +
> +/* (0x0555) AIF2_Frame_Ctrl_15 */
> +#define MADERA_AIF2RX5_SLOT_MASK 0x003F
> +#define MADERA_AIF2RX5_SLOT_SHIFT 0
> +#define MADERA_AIF2RX5_SLOT_WIDTH 6
> +
> +/* (0x0556) AIF2_Frame_Ctrl_16 */
> +#define MADERA_AIF2RX6_SLOT_MASK 0x003F
> +#define MADERA_AIF2RX6_SLOT_SHIFT 0
> +#define MADERA_AIF2RX6_SLOT_WIDTH 6
> +
> +/* (0x0557) AIF2_Frame_Ctrl_17 */
> +#define MADERA_AIF2RX7_SLOT_MASK 0x003F
> +#define MADERA_AIF2RX7_SLOT_SHIFT 0
> +#define MADERA_AIF2RX7_SLOT_WIDTH 6
> +
> +/* (0x0558) AIF2_Frame_Ctrl_18 */
> +#define MADERA_AIF2RX8_SLOT_MASK 0x003F
> +#define MADERA_AIF2RX8_SLOT_SHIFT 0
> +#define MADERA_AIF2RX8_SLOT_WIDTH 6
> +
> +/* (0x0559) AIF2_Tx_Enables */
> +#define MADERA_AIF2TX8_ENA 0x0080
> +#define MADERA_AIF2TX8_ENA_MASK 0x0080
> +#define MADERA_AIF2TX8_ENA_SHIFT 7
> +#define MADERA_AIF2TX8_ENA_WIDTH 1
> +#define MADERA_AIF2TX7_ENA 0x0040
> +#define MADERA_AIF2TX7_ENA_MASK 0x0040
> +#define MADERA_AIF2TX7_ENA_SHIFT 6
> +#define MADERA_AIF2TX7_ENA_WIDTH 1
> +#define MADERA_AIF2TX6_ENA 0x0020
> +#define MADERA_AIF2TX6_ENA_MASK 0x0020
> +#define MADERA_AIF2TX6_ENA_SHIFT 5
> +#define MADERA_AIF2TX6_ENA_WIDTH 1
> +#define MADERA_AIF2TX5_ENA 0x0010
> +#define MADERA_AIF2TX5_ENA_MASK 0x0010
> +#define MADERA_AIF2TX5_ENA_SHIFT 4
> +#define MADERA_AIF2TX5_ENA_WIDTH 1
> +#define MADERA_AIF2TX4_ENA 0x0008
> +#define MADERA_AIF2TX4_ENA_MASK 0x0008
> +#define MADERA_AIF2TX4_ENA_SHIFT 3
> +#define MADERA_AIF2TX4_ENA_WIDTH 1
> +#define MADERA_AIF2TX3_ENA 0x0004
> +#define MADERA_AIF2TX3_ENA_MASK 0x0004
> +#define MADERA_AIF2TX3_ENA_SHIFT 2
> +#define MADERA_AIF2TX3_ENA_WIDTH 1
> +#define MADERA_AIF2TX2_ENA 0x0002
> +#define MADERA_AIF2TX2_ENA_MASK 0x0002
> +#define MADERA_AIF2TX2_ENA_SHIFT 1
> +#define MADERA_AIF2TX2_ENA_WIDTH 1
> +#define MADERA_AIF2TX1_ENA 0x0001
> +#define MADERA_AIF2TX1_ENA_MASK 0x0001
> +#define MADERA_AIF2TX1_ENA_SHIFT 0
> +#define MADERA_AIF2TX1_ENA_WIDTH 1
> +
> +/* (0x055A) AIF2_Rx_Enables */
> +#define MADERA_AIF2RX8_ENA 0x0080
> +#define MADERA_AIF2RX8_ENA_MASK 0x0080
> +#define MADERA_AIF2RX8_ENA_SHIFT 7
> +#define MADERA_AIF2RX8_ENA_WIDTH 1
> +#define MADERA_AIF2RX7_ENA 0x0040
> +#define MADERA_AIF2RX7_ENA_MASK 0x0040
> +#define MADERA_AIF2RX7_ENA_SHIFT 6
> +#define MADERA_AIF2RX7_ENA_WIDTH 1
> +#define MADERA_AIF2RX6_ENA 0x0020
> +#define MADERA_AIF2RX6_ENA_MASK 0x0020
> +#define MADERA_AIF2RX6_ENA_SHIFT 5
> +#define MADERA_AIF2RX6_ENA_WIDTH 1
> +#define MADERA_AIF2RX5_ENA 0x0010
> +#define MADERA_AIF2RX5_ENA_MASK 0x0010
> +#define MADERA_AIF2RX5_ENA_SHIFT 4
> +#define MADERA_AIF2RX5_ENA_WIDTH 1
> +#define MADERA_AIF2RX4_ENA 0x0008
> +#define MADERA_AIF2RX4_ENA_MASK 0x0008
> +#define MADERA_AIF2RX4_ENA_SHIFT 3
> +#define MADERA_AIF2RX4_ENA_WIDTH 1
> +#define MADERA_AIF2RX3_ENA 0x0004
> +#define MADERA_AIF2RX3_ENA_MASK 0x0004
> +#define MADERA_AIF2RX3_ENA_SHIFT 2
> +#define MADERA_AIF2RX3_ENA_WIDTH 1
> +#define MADERA_AIF2RX2_ENA 0x0002
> +#define MADERA_AIF2RX2_ENA_MASK 0x0002
> +#define MADERA_AIF2RX2_ENA_SHIFT 1
> +#define MADERA_AIF2RX2_ENA_WIDTH 1
> +#define MADERA_AIF2RX1_ENA 0x0001
> +#define MADERA_AIF2RX1_ENA_MASK 0x0001
> +#define MADERA_AIF2RX1_ENA_SHIFT 0
> +#define MADERA_AIF2RX1_ENA_WIDTH 1
> +
> +/* (0x055B) - AIF2 Force Write */
> +#define MADERA_AIF2_FRC_WR 0x0001
> +#define MADERA_AIF2_FRC_WR_MASK 0x0001
> +#define MADERA_AIF2_FRC_WR_SHIFT 0
> +#define MADERA_AIF2_FRC_WR_WIDTH 1
> +
> +/* (0x0580) AIF3_BCLK_Ctrl */
> +#define MADERA_AIF3_BCLK_INV 0x0080
> +#define MADERA_AIF3_BCLK_INV_MASK 0x0080
> +#define MADERA_AIF3_BCLK_INV_SHIFT 7
> +#define MADERA_AIF3_BCLK_INV_WIDTH 1
> +#define MADERA_AIF3_BCLK_FRC 0x0040
> +#define MADERA_AIF3_BCLK_FRC_MASK 0x0040
> +#define MADERA_AIF3_BCLK_FRC_SHIFT 6
> +#define MADERA_AIF3_BCLK_FRC_WIDTH 1
> +#define MADERA_AIF3_BCLK_MSTR 0x0020
> +#define MADERA_AIF3_BCLK_MSTR_MASK 0x0020
> +#define MADERA_AIF3_BCLK_MSTR_SHIFT 5
> +#define MADERA_AIF3_BCLK_MSTR_WIDTH 1
> +#define MADERA_AIF3_BCLK_FREQ_MASK 0x001F
> +#define MADERA_AIF3_BCLK_FREQ_SHIFT 0
> +#define MADERA_AIF3_BCLK_FREQ_WIDTH 5
> +
> +/* (0x0581) AIF3_Tx_Pin_Ctrl */
> +#define MADERA_AIF3TX_DAT_TRI 0x0020
> +#define MADERA_AIF3TX_DAT_TRI_MASK 0x0020
> +#define MADERA_AIF3TX_DAT_TRI_SHIFT 5
> +#define MADERA_AIF3TX_DAT_TRI_WIDTH 1
> +#define MADERA_AIF3TX_LRCLK_SRC 0x0008
> +#define MADERA_AIF3TX_LRCLK_SRC_MASK 0x0008
> +#define MADERA_AIF3TX_LRCLK_SRC_SHIFT 3
> +#define MADERA_AIF3TX_LRCLK_SRC_WIDTH 1
> +#define MADERA_AIF3TX_LRCLK_INV 0x0004
> +#define MADERA_AIF3TX_LRCLK_INV_MASK 0x0004
> +#define MADERA_AIF3TX_LRCLK_INV_SHIFT 2
> +#define MADERA_AIF3TX_LRCLK_INV_WIDTH 1
> +#define MADERA_AIF3TX_LRCLK_FRC 0x0002
> +#define MADERA_AIF3TX_LRCLK_FRC_MASK 0x0002
> +#define MADERA_AIF3TX_LRCLK_FRC_SHIFT 1
> +#define MADERA_AIF3TX_LRCLK_FRC_WIDTH 1
> +#define MADERA_AIF3TX_LRCLK_MSTR 0x0001
> +#define MADERA_AIF3TX_LRCLK_MSTR_MASK 0x0001
> +#define MADERA_AIF3TX_LRCLK_MSTR_SHIFT 0
> +#define MADERA_AIF3TX_LRCLK_MSTR_WIDTH 1
> +
> +/* (0x0582) AIF3_Rx_Pin_Ctrl */
> +#define MADERA_AIF3RX_LRCLK_INV 0x0004
> +#define MADERA_AIF3RX_LRCLK_INV_MASK 0x0004
> +#define MADERA_AIF3RX_LRCLK_INV_SHIFT 2
> +#define MADERA_AIF3RX_LRCLK_INV_WIDTH 1
> +#define MADERA_AIF3RX_LRCLK_FRC 0x0002
> +#define MADERA_AIF3RX_LRCLK_FRC_MASK 0x0002
> +#define MADERA_AIF3RX_LRCLK_FRC_SHIFT 1
> +#define MADERA_AIF3RX_LRCLK_FRC_WIDTH 1
> +#define MADERA_AIF3RX_LRCLK_MSTR 0x0001
> +#define MADERA_AIF3RX_LRCLK_MSTR_MASK 0x0001
> +#define MADERA_AIF3RX_LRCLK_MSTR_SHIFT 0
> +#define MADERA_AIF3RX_LRCLK_MSTR_WIDTH 1
> +
> +/* (0x0583) AIF3_Rate_Ctrl */
> +#define MADERA_AIF3_RATE_MASK 0xF800
> +#define MADERA_AIF3_RATE_SHIFT 11
> +#define MADERA_AIF3_RATE_WIDTH 5
> +#define MADERA_AIF3_TRI 0x0040
> +#define MADERA_AIF3_TRI_MASK 0x0040
> +#define MADERA_AIF3_TRI_SHIFT 6
> +#define MADERA_AIF3_TRI_WIDTH 1
> +
> +/* (0x0584) AIF3_Format */
> +#define MADERA_AIF3_FMT_MASK 0x0007
> +#define MADERA_AIF3_FMT_SHIFT 0
> +#define MADERA_AIF3_FMT_WIDTH 3
> +
> +/* (0x0586) AIF3_Rx_BCLK_Rate */
> +#define MADERA_AIF3RX_BCPF_MASK 0x1FFF
> +#define MADERA_AIF3RX_BCPF_SHIFT 0
> +#define MADERA_AIF3RX_BCPF_WIDTH 13
> +
> +/* (0x0587) AIF3_Frame_Ctrl_1 */
> +#define MADERA_AIF3TX_WL_MASK 0x3F00
> +#define MADERA_AIF3TX_WL_SHIFT 8
> +#define MADERA_AIF3TX_WL_WIDTH 6
> +#define MADERA_AIF3TX_SLOT_LEN_MASK 0x00FF
> +#define MADERA_AIF3TX_SLOT_LEN_SHIFT 0
> +#define MADERA_AIF3TX_SLOT_LEN_WIDTH 8
> +
> +/* (0x0588) AIF3_Frame_Ctrl_2 */
> +#define MADERA_AIF3RX_WL_MASK 0x3F00
> +#define MADERA_AIF3RX_WL_SHIFT 8
> +#define MADERA_AIF3RX_WL_WIDTH 6
> +#define MADERA_AIF3RX_SLOT_LEN_MASK 0x00FF
> +#define MADERA_AIF3RX_SLOT_LEN_SHIFT 0
> +#define MADERA_AIF3RX_SLOT_LEN_WIDTH 8
> +
> +/* (0x0589) AIF3_Frame_Ctrl_3 */
> +#define MADERA_AIF3TX1_SLOT_MASK 0x003F
> +#define MADERA_AIF3TX1_SLOT_SHIFT 0
> +#define MADERA_AIF3TX1_SLOT_WIDTH 6
> +
> +/* (0x058A) AIF3_Frame_Ctrl_4 */
> +#define MADERA_AIF3TX2_SLOT_MASK 0x003F
> +#define MADERA_AIF3TX2_SLOT_SHIFT 0
> +#define MADERA_AIF3TX2_SLOT_WIDTH 6
> +
> +/* (0x0591) AIF3_Frame_Ctrl_11 */
> +#define MADERA_AIF3RX1_SLOT_MASK 0x003F
> +#define MADERA_AIF3RX1_SLOT_SHIFT 0
> +#define MADERA_AIF3RX1_SLOT_WIDTH 6
> +
> +/* (0x0592) AIF3_Frame_Ctrl_12 */
> +#define MADERA_AIF3RX2_SLOT_MASK 0x003F
> +#define MADERA_AIF3RX2_SLOT_SHIFT 0
> +#define MADERA_AIF3RX2_SLOT_WIDTH 6
> +
> +/* (0x0599) AIF3_Tx_Enables */
> +#define MADERA_AIF3TX2_ENA 0x0002
> +#define MADERA_AIF3TX2_ENA_MASK 0x0002
> +#define MADERA_AIF3TX2_ENA_SHIFT 1
> +#define MADERA_AIF3TX2_ENA_WIDTH 1
> +#define MADERA_AIF3TX1_ENA 0x0001
> +#define MADERA_AIF3TX1_ENA_MASK 0x0001
> +#define MADERA_AIF3TX1_ENA_SHIFT 0
> +#define MADERA_AIF3TX1_ENA_WIDTH 1
> +
> +/* (0x059A) AIF3_Rx_Enables */
> +#define MADERA_AIF3RX2_ENA 0x0002
> +#define MADERA_AIF3RX2_ENA_MASK 0x0002
> +#define MADERA_AIF3RX2_ENA_SHIFT 1
> +#define MADERA_AIF3RX2_ENA_WIDTH 1
> +#define MADERA_AIF3RX1_ENA 0x0001
> +#define MADERA_AIF3RX1_ENA_MASK 0x0001
> +#define MADERA_AIF3RX1_ENA_SHIFT 0
> +#define MADERA_AIF3RX1_ENA_WIDTH 1
> +
> +/* (0x059B) - AIF3 Force Write */
> +#define MADERA_AIF3_FRC_WR 0x0001
> +#define MADERA_AIF3_FRC_WR_MASK 0x0001
> +#define MADERA_AIF3_FRC_WR_SHIFT 0
> +#define MADERA_AIF3_FRC_WR_WIDTH 1
> +
> +/* (0x05A0) AIF4_BCLK_Ctrl */
> +#define MADERA_AIF4_BCLK_INV 0x0080
> +#define MADERA_AIF4_BCLK_INV_MASK 0x0080
> +#define MADERA_AIF4_BCLK_INV_SHIFT 7
> +#define MADERA_AIF4_BCLK_INV_WIDTH 1
> +#define MADERA_AIF4_BCLK_FRC 0x0040
> +#define MADERA_AIF4_BCLK_FRC_MASK 0x0040
> +#define MADERA_AIF4_BCLK_FRC_SHIFT 6
> +#define MADERA_AIF4_BCLK_FRC_WIDTH 1
> +#define MADERA_AIF4_BCLK_MSTR 0x0020
> +#define MADERA_AIF4_BCLK_MSTR_MASK 0x0020
> +#define MADERA_AIF4_BCLK_MSTR_SHIFT 5
> +#define MADERA_AIF4_BCLK_MSTR_WIDTH 1
> +#define MADERA_AIF4_BCLK_FREQ_MASK 0x001F
> +#define MADERA_AIF4_BCLK_FREQ_SHIFT 0
> +#define MADERA_AIF4_BCLK_FREQ_WIDTH 5
> +
> +/* (0x05A1) AIF4_Tx_Pin_Ctrl */
> +#define MADERA_AIF4TX_DAT_TRI 0x0020
> +#define MADERA_AIF4TX_DAT_TRI_MASK 0x0020
> +#define MADERA_AIF4TX_DAT_TRI_SHIFT 5
> +#define MADERA_AIF4TX_DAT_TRI_WIDTH 1
> +#define MADERA_AIF4TX_LRCLK_SRC 0x0008
> +#define MADERA_AIF4TX_LRCLK_SRC_MASK 0x0008
> +#define MADERA_AIF4TX_LRCLK_SRC_SHIFT 3
> +#define MADERA_AIF4TX_LRCLK_SRC_WIDTH 1
> +#define MADERA_AIF4TX_LRCLK_INV 0x0004
> +#define MADERA_AIF4TX_LRCLK_INV_MASK 0x0004
> +#define MADERA_AIF4TX_LRCLK_INV_SHIFT 2
> +#define MADERA_AIF4TX_LRCLK_INV_WIDTH 1
> +#define MADERA_AIF4TX_LRCLK_FRC 0x0002
> +#define MADERA_AIF4TX_LRCLK_FRC_MASK 0x0002
> +#define MADERA_AIF4TX_LRCLK_FRC_SHIFT 1
> +#define MADERA_AIF4TX_LRCLK_FRC_WIDTH 1
> +#define MADERA_AIF4TX_LRCLK_MSTR 0x0001
> +#define MADERA_AIF4TX_LRCLK_MSTR_MASK 0x0001
> +#define MADERA_AIF4TX_LRCLK_MSTR_SHIFT 0
> +#define MADERA_AIF4TX_LRCLK_MSTR_WIDTH 1
> +
> +/* (0x05A2) AIF4_Rx_Pin_Ctrl */
> +#define MADERA_AIF4RX_LRCLK_INV 0x0004
> +#define MADERA_AIF4RX_LRCLK_INV_MASK 0x0004
> +#define MADERA_AIF4RX_LRCLK_INV_SHIFT 2
> +#define MADERA_AIF4RX_LRCLK_INV_WIDTH 1
> +#define MADERA_AIF4RX_LRCLK_FRC 0x0002
> +#define MADERA_AIF4RX_LRCLK_FRC_MASK 0x0002
> +#define MADERA_AIF4RX_LRCLK_FRC_SHIFT 1
> +#define MADERA_AIF4RX_LRCLK_FRC_WIDTH 1
> +#define MADERA_AIF4RX_LRCLK_MSTR 0x0001
> +#define MADERA_AIF4RX_LRCLK_MSTR_MASK 0x0001
> +#define MADERA_AIF4RX_LRCLK_MSTR_SHIFT 0
> +#define MADERA_AIF4RX_LRCLK_MSTR_WIDTH 1
> +
> +/* (0x05A3) AIF4_Rate_Ctrl */
> +#define MADERA_AIF4_RATE_MASK 0x7800
> +#define MADERA_AIF4_RATE_SHIFT 11
> +#define MADERA_AIF4_RATE_WIDTH 4
> +#define MADERA_AIF4_TRI 0x0040
> +#define MADERA_AIF4_TRI_MASK 0x0040
> +#define MADERA_AIF4_TRI_SHIFT 6
> +#define MADERA_AIF4_TRI_WIDTH 1
> +
> +/* (0x05A4) AIF4_Format */
> +#define MADERA_AIF4_FMT_MASK 0x0007
> +#define MADERA_AIF4_FMT_SHIFT 0
> +#define MADERA_AIF4_FMT_WIDTH 3
> +
> +/* (0x05A6) AIF4_Rx_BCLK_Rate */
> +#define MADERA_AIF4RX_BCPF_MASK 0x1FFF
> +#define MADERA_AIF4RX_BCPF_SHIFT 0
> +#define MADERA_AIF4RX_BCPF_WIDTH 13
> +
> +/* (0x05A7) AIF4_Frame_Ctrl_1 */
> +#define MADERA_AIF4TX_WL_MASK 0x3F00
> +#define MADERA_AIF4TX_WL_SHIFT 8
> +#define MADERA_AIF4TX_WL_WIDTH 6
> +#define MADERA_AIF4TX_SLOT_LEN_MASK 0x00FF
> +#define MADERA_AIF4TX_SLOT_LEN_SHIFT 0
> +#define MADERA_AIF4TX_SLOT_LEN_WIDTH 8
> +
> +/* (0x05A8) AIF4_Frame_Ctrl_2 */
> +#define MADERA_AIF4RX_WL_MASK 0x3F00
> +#define MADERA_AIF4RX_WL_SHIFT 8
> +#define MADERA_AIF4RX_WL_WIDTH 6
> +#define MADERA_AIF4RX_SLOT_LEN_MASK 0x00FF
> +#define MADERA_AIF4RX_SLOT_LEN_SHIFT 0
> +#define MADERA_AIF4RX_SLOT_LEN_WIDTH 8
> +
> +/* (0x05A9) AIF4_Frame_Ctrl_3 */
> +#define MADERA_AIF4TX1_SLOT_MASK 0x003F
> +#define MADERA_AIF4TX1_SLOT_SHIFT 0
> +#define MADERA_AIF4TX1_SLOT_WIDTH 6
> +
> +/* (0x05AA) AIF4_Frame_Ctrl_4 */
> +#define MADERA_AIF4TX2_SLOT_MASK 0x003F
> +#define MADERA_AIF4TX2_SLOT_SHIFT 0
> +#define MADERA_AIF4TX2_SLOT_WIDTH 6
> +
> +/* (0x05B1) AIF4_Frame_Ctrl_11 */
> +#define MADERA_AIF4RX1_SLOT_MASK 0x003F
> +#define MADERA_AIF4RX1_SLOT_SHIFT 0
> +#define MADERA_AIF4RX1_SLOT_WIDTH 6
> +
> +/* (0x05B2) AIF4_Frame_Ctrl_12 */
> +#define MADERA_AIF4RX2_SLOT_MASK 0x003F
> +#define MADERA_AIF4RX2_SLOT_SHIFT 0
> +#define MADERA_AIF4RX2_SLOT_WIDTH 6
> +
> +/* (0x05B9) AIF4_Tx_Enables */
> +#define MADERA_AIF4TX2_ENA 0x0002
> +#define MADERA_AIF4TX2_ENA_MASK 0x0002
> +#define MADERA_AIF4TX2_ENA_SHIFT 1
> +#define MADERA_AIF4TX2_ENA_WIDTH 1
> +#define MADERA_AIF4TX1_ENA 0x0001
> +#define MADERA_AIF4TX1_ENA_MASK 0x0001
> +#define MADERA_AIF4TX1_ENA_SHIFT 0
> +#define MADERA_AIF4TX1_ENA_WIDTH 1
> +
> +/* (0x05BA) AIF4_Rx_Enables */
> +#define MADERA_AIF4RX2_ENA 0x0002
> +#define MADERA_AIF4RX2_ENA_MASK 0x0002
> +#define MADERA_AIF4RX2_ENA_SHIFT 1
> +#define MADERA_AIF4RX2_ENA_WIDTH 1
> +#define MADERA_AIF4RX1_ENA 0x0001
> +#define MADERA_AIF4RX1_ENA_MASK 0x0001
> +#define MADERA_AIF4RX1_ENA_SHIFT 0
> +#define MADERA_AIF4RX1_ENA_WIDTH 1
> +
> +/* (0x05BB) - AIF4 Force Write */
> +#define MADERA_AIF4_FRC_WR 0x0001
> +#define MADERA_AIF4_FRC_WR_MASK 0x0001
> +#define MADERA_AIF4_FRC_WR_SHIFT 0
> +#define MADERA_AIF4_FRC_WR_WIDTH 1
> +
> +/* (0x05C2) SPD1_TX_Control */
> +#define MADERA_SPD1_VAL2 0x2000
> +#define MADERA_SPD1_VAL2_MASK 0x2000
> +#define MADERA_SPD1_VAL2_SHIFT 13
> +#define MADERA_SPD1_VAL2_WIDTH 1
> +#define MADERA_SPD1_VAL1 0x1000
> +#define MADERA_SPD1_VAL1_MASK 0x1000
> +#define MADERA_SPD1_VAL1_SHIFT 12
> +#define MADERA_SPD1_VAL1_WIDTH 1
> +#define MADERA_SPD1_RATE_MASK 0x00F0
> +#define MADERA_SPD1_RATE_SHIFT 4
> +#define MADERA_SPD1_RATE_WIDTH 4
> +#define MADERA_SPD1_ENA 0x0001
> +#define MADERA_SPD1_ENA_MASK 0x0001
> +#define MADERA_SPD1_ENA_SHIFT 0
> +#define MADERA_SPD1_ENA_WIDTH 1
> +
> +/* (0x05C3) SPD1_TX_Channel_Status_1 */
> +#define MADERA_SPD1_CATCODE_MASK 0xFF00
> +#define MADERA_SPD1_CATCODE_SHIFT 8
> +#define MADERA_SPD1_CATCODE_WIDTH 8
> +#define MADERA_SPD1_CHSTMODE_MASK 0x00C0
> +#define MADERA_SPD1_CHSTMODE_SHIFT 6
> +#define MADERA_SPD1_CHSTMODE_WIDTH 2
> +#define MADERA_SPD1_PREEMPH_MASK 0x0038
> +#define MADERA_SPD1_PREEMPH_SHIFT 3
> +#define MADERA_SPD1_PREEMPH_WIDTH 3
> +#define MADERA_SPD1_NOCOPY 0x0004
> +#define MADERA_SPD1_NOCOPY_MASK 0x0004
> +#define MADERA_SPD1_NOCOPY_SHIFT 2
> +#define MADERA_SPD1_NOCOPY_WIDTH 1
> +#define MADERA_SPD1_NOAUDIO 0x0002
> +#define MADERA_SPD1_NOAUDIO_MASK 0x0002
> +#define MADERA_SPD1_NOAUDIO_SHIFT 1
> +#define MADERA_SPD1_NOAUDIO_WIDTH 1
> +#define MADERA_SPD1_PRO 0x0001
> +#define MADERA_SPD1_PRO_MASK 0x0001
> +#define MADERA_SPD1_PRO_SHIFT 0
> +#define MADERA_SPD1_PRO_WIDTH 1
> +
> +/* (0x05C4) SPD1_TX_Channel_Status_2 */
> +#define MADERA_SPD1_FREQ_MASK 0xF000
> +#define MADERA_SPD1_FREQ_SHIFT 12
> +#define MADERA_SPD1_FREQ_WIDTH 4
> +#define MADERA_SPD1_CHNUM2_MASK 0x0F00
> +#define MADERA_SPD1_CHNUM2_SHIFT 8
> +#define MADERA_SPD1_CHNUM2_WIDTH 4
> +#define MADERA_SPD1_CHNUM1_MASK 0x00F0
> +#define MADERA_SPD1_CHNUM1_SHIFT 4
> +#define MADERA_SPD1_CHNUM1_WIDTH 4
> +#define MADERA_SPD1_SRCNUM_MASK 0x000F
> +#define MADERA_SPD1_SRCNUM_SHIFT 0
> +#define MADERA_SPD1_SRCNUM_WIDTH 4
> +
> +/* (0x05C5) SPD1_TX_Channel_Status_3 */
> +#define MADERA_SPD1_ORGSAMP_MASK 0x0F00
> +#define MADERA_SPD1_ORGSAMP_SHIFT 8
> +#define MADERA_SPD1_ORGSAMP_WIDTH 4
> +#define MADERA_SPD1_TXWL_MASK 0x00E0
> +#define MADERA_SPD1_TXWL_SHIFT 5
> +#define MADERA_SPD1_TXWL_WIDTH 3
> +#define MADERA_SPD1_MAXWL 0x0010
> +#define MADERA_SPD1_MAXWL_MASK 0x0010
> +#define MADERA_SPD1_MAXWL_SHIFT 4
> +#define MADERA_SPD1_MAXWL_WIDTH 1
> +#define MADERA_SPD1_CS31_30_MASK 0x000C
> +#define MADERA_SPD1_CS31_30_SHIFT 2
> +#define MADERA_SPD1_CS31_30_WIDTH 2
> +#define MADERA_SPD1_CLKACU_MASK 0x0003
> +#define MADERA_SPD1_CLKACU_SHIFT 2
> +#define MADERA_SPD1_CLKACU_WIDTH 0
> +
> +/* (0x05E3) SLIMbus_Framer_Ref_Gear */
> +#define MADERA_SLIMCLK_SRC 0x0010
> +#define MADERA_SLIMCLK_SRC_MASK 0x0010
> +#define MADERA_SLIMCLK_SRC_SHIFT 4
> +#define MADERA_SLIMCLK_SRC_WIDTH 1
> +#define MADERA_FRAMER_REF_GEAR_MASK 0x000F
> +#define MADERA_FRAMER_REF_GEAR_SHIFT 0
> +#define MADERA_FRAMER_REF_GEAR_WIDTH 4
> +
> +/* (0x05E5) SLIMbus_Rates_1 */
> +#define MADERA_SLIMRX2_RATE_MASK 0xF800
> +#define MADERA_SLIMRX2_RATE_SHIFT 11
> +#define MADERA_SLIMRX2_RATE_WIDTH 5
> +#define MADERA_SLIMRX1_RATE_MASK 0x00F8
> +#define MADERA_SLIMRX1_RATE_SHIFT 3
> +#define MADERA_SLIMRX1_RATE_WIDTH 5
> +
> +/* (0x05E6) SLIMbus_Rates_2 */
> +#define MADERA_SLIMRX4_RATE_MASK 0xF800
> +#define MADERA_SLIMRX4_RATE_SHIFT 11
> +#define MADERA_SLIMRX4_RATE_WIDTH 5
> +#define MADERA_SLIMRX3_RATE_MASK 0x00F8
> +#define MADERA_SLIMRX3_RATE_SHIFT 3
> +#define MADERA_SLIMRX3_RATE_WIDTH 5
> +
> +/* (0x05E7) SLIMbus_Rates_3 */
> +#define MADERA_SLIMRX6_RATE_MASK 0xF800
> +#define MADERA_SLIMRX6_RATE_SHIFT 11
> +#define MADERA_SLIMRX6_RATE_WIDTH 5
> +#define MADERA_SLIMRX5_RATE_MASK 0x00F8
> +#define MADERA_SLIMRX5_RATE_SHIFT 3
> +#define MADERA_SLIMRX5_RATE_WIDTH 5
> +
> +/* (0x05E8) SLIMbus_Rates_4 */
> +#define MADERA_SLIMRX8_RATE_MASK 0xF800
> +#define MADERA_SLIMRX8_RATE_SHIFT 11
> +#define MADERA_SLIMRX8_RATE_WIDTH 5
> +#define MADERA_SLIMRX7_RATE_MASK 0x00F8
> +#define MADERA_SLIMRX7_RATE_SHIFT 3
> +#define MADERA_SLIMRX7_RATE_WIDTH 5
> +
> +/* (0x05E9) SLIMbus_Rates_5 */
> +#define MADERA_SLIMTX2_RATE_MASK 0xF800
> +#define MADERA_SLIMTX2_RATE_SHIFT 11
> +#define MADERA_SLIMTX2_RATE_WIDTH 5
> +#define MADERA_SLIMTX1_RATE_MASK 0x00F8
> +#define MADERA_SLIMTX1_RATE_SHIFT 3
> +#define MADERA_SLIMTX1_RATE_WIDTH 5
> +
> +/* (0x05EA) SLIMbus_Rates_6 */
> +#define MADERA_SLIMTX4_RATE_MASK 0xF800
> +#define MADERA_SLIMTX4_RATE_SHIFT 11
> +#define MADERA_SLIMTX4_RATE_WIDTH 5
> +#define MADERA_SLIMTX3_RATE_MASK 0x00F8
> +#define MADERA_SLIMTX3_RATE_SHIFT 3
> +#define MADERA_SLIMTX3_RATE_WIDTH 5
> +
> +/* (0x05EB) SLIMbus_Rates_7 */
> +#define MADERA_SLIMTX6_RATE_MASK 0xF800
> +#define MADERA_SLIMTX6_RATE_SHIFT 11
> +#define MADERA_SLIMTX6_RATE_WIDTH 5
> +#define MADERA_SLIMTX5_RATE_MASK 0x00F8
> +#define MADERA_SLIMTX5_RATE_SHIFT 3
> +#define MADERA_SLIMTX5_RATE_WIDTH 5
> +
> +/* (0x05EC) SLIMbus_Rates_8 */
> +#define MADERA_SLIMTX8_RATE_MASK 0xF800
> +#define MADERA_SLIMTX8_RATE_SHIFT 11
> +#define MADERA_SLIMTX8_RATE_WIDTH 5
> +#define MADERA_SLIMTX7_RATE_MASK 0x00F8
> +#define MADERA_SLIMTX7_RATE_SHIFT 3
> +#define MADERA_SLIMTX7_RATE_WIDTH 5
> +
> +/* (0x05F5) SLIMbus_RX_Channel_Enable */
> +#define MADERA_SLIMRX8_ENA 0x0080
> +#define MADERA_SLIMRX8_ENA_MASK 0x0080
> +#define MADERA_SLIMRX8_ENA_SHIFT 7
> +#define MADERA_SLIMRX8_ENA_WIDTH 1
> +#define MADERA_SLIMRX7_ENA 0x0040
> +#define MADERA_SLIMRX7_ENA_MASK 0x0040
> +#define MADERA_SLIMRX7_ENA_SHIFT 6
> +#define MADERA_SLIMRX7_ENA_WIDTH 1
> +#define MADERA_SLIMRX6_ENA 0x0020
> +#define MADERA_SLIMRX6_ENA_MASK 0x0020
> +#define MADERA_SLIMRX6_ENA_SHIFT 5
> +#define MADERA_SLIMRX6_ENA_WIDTH 1
> +#define MADERA_SLIMRX5_ENA 0x0010
> +#define MADERA_SLIMRX5_ENA_MASK 0x0010
> +#define MADERA_SLIMRX5_ENA_SHIFT 4
> +#define MADERA_SLIMRX5_ENA_WIDTH 1
> +#define MADERA_SLIMRX4_ENA 0x0008
> +#define MADERA_SLIMRX4_ENA_MASK 0x0008
> +#define MADERA_SLIMRX4_ENA_SHIFT 3
> +#define MADERA_SLIMRX4_ENA_WIDTH 1
> +#define MADERA_SLIMRX3_ENA 0x0004
> +#define MADERA_SLIMRX3_ENA_MASK 0x0004
> +#define MADERA_SLIMRX3_ENA_SHIFT 2
> +#define MADERA_SLIMRX3_ENA_WIDTH 1
> +#define MADERA_SLIMRX2_ENA 0x0002
> +#define MADERA_SLIMRX2_ENA_MASK 0x0002
> +#define MADERA_SLIMRX2_ENA_SHIFT 1
> +#define MADERA_SLIMRX2_ENA_WIDTH 1
> +#define MADERA_SLIMRX1_ENA 0x0001
> +#define MADERA_SLIMRX1_ENA_MASK 0x0001
> +#define MADERA_SLIMRX1_ENA_SHIFT 0
> +#define MADERA_SLIMRX1_ENA_WIDTH 1
> +
> +/* (0x05F6) SLIMbus_TX_Channel_Enable */
> +#define MADERA_SLIMTX8_ENA 0x0080
> +#define MADERA_SLIMTX8_ENA_MASK 0x0080
> +#define MADERA_SLIMTX8_ENA_SHIFT 7
> +#define MADERA_SLIMTX8_ENA_WIDTH 1
> +#define MADERA_SLIMTX7_ENA 0x0040
> +#define MADERA_SLIMTX7_ENA_MASK 0x0040
> +#define MADERA_SLIMTX7_ENA_SHIFT 6
> +#define MADERA_SLIMTX7_ENA_WIDTH 1
> +#define MADERA_SLIMTX6_ENA 0x0020
> +#define MADERA_SLIMTX6_ENA_MASK 0x0020
> +#define MADERA_SLIMTX6_ENA_SHIFT 5
> +#define MADERA_SLIMTX6_ENA_WIDTH 1
> +#define MADERA_SLIMTX5_ENA 0x0010
> +#define MADERA_SLIMTX5_ENA_MASK 0x0010
> +#define MADERA_SLIMTX5_ENA_SHIFT 4
> +#define MADERA_SLIMTX5_ENA_WIDTH 1
> +#define MADERA_SLIMTX4_ENA 0x0008
> +#define MADERA_SLIMTX4_ENA_MASK 0x0008
> +#define MADERA_SLIMTX4_ENA_SHIFT 3
> +#define MADERA_SLIMTX4_ENA_WIDTH 1
> +#define MADERA_SLIMTX3_ENA 0x0004
> +#define MADERA_SLIMTX3_ENA_MASK 0x0004
> +#define MADERA_SLIMTX3_ENA_SHIFT 2
> +#define MADERA_SLIMTX3_ENA_WIDTH 1
> +#define MADERA_SLIMTX2_ENA 0x0002
> +#define MADERA_SLIMTX2_ENA_MASK 0x0002
> +#define MADERA_SLIMTX2_ENA_SHIFT 1
> +#define MADERA_SLIMTX2_ENA_WIDTH 1
> +#define MADERA_SLIMTX1_ENA 0x0001
> +#define MADERA_SLIMTX1_ENA_MASK 0x0001
> +#define MADERA_SLIMTX1_ENA_SHIFT 0
> +#define MADERA_SLIMTX1_ENA_WIDTH 1
> +
> +/* (0x05F7) SLIMbus_RX_Port_Status */
> +#define MADERA_SLIMRX8_PORT_STS 0x0080
> +#define MADERA_SLIMRX8_PORT_STS_MASK 0x0080
> +#define MADERA_SLIMRX8_PORT_STS_SHIFT 7
> +#define MADERA_SLIMRX8_PORT_STS_WIDTH 1
> +#define MADERA_SLIMRX7_PORT_STS 0x0040
> +#define MADERA_SLIMRX7_PORT_STS_MASK 0x0040
> +#define MADERA_SLIMRX7_PORT_STS_SHIFT 6
> +#define MADERA_SLIMRX7_PORT_STS_WIDTH 1
> +#define MADERA_SLIMRX6_PORT_STS 0x0020
> +#define MADERA_SLIMRX6_PORT_STS_MASK 0x0020
> +#define MADERA_SLIMRX6_PORT_STS_SHIFT 5
> +#define MADERA_SLIMRX6_PORT_STS_WIDTH 1
> +#define MADERA_SLIMRX5_PORT_STS 0x0010
> +#define MADERA_SLIMRX5_PORT_STS_MASK 0x0010
> +#define MADERA_SLIMRX5_PORT_STS_SHIFT 4
> +#define MADERA_SLIMRX5_PORT_STS_WIDTH 1
> +#define MADERA_SLIMRX4_PORT_STS 0x0008
> +#define MADERA_SLIMRX4_PORT_STS_MASK 0x0008
> +#define MADERA_SLIMRX4_PORT_STS_SHIFT 3
> +#define MADERA_SLIMRX4_PORT_STS_WIDTH 1
> +#define MADERA_SLIMRX3_PORT_STS 0x0004
> +#define MADERA_SLIMRX3_PORT_STS_MASK 0x0004
> +#define MADERA_SLIMRX3_PORT_STS_SHIFT 2
> +#define MADERA_SLIMRX3_PORT_STS_WIDTH 1
> +#define MADERA_SLIMRX2_PORT_STS 0x0002
> +#define MADERA_SLIMRX2_PORT_STS_MASK 0x0002
> +#define MADERA_SLIMRX2_PORT_STS_SHIFT 1
> +#define MADERA_SLIMRX2_PORT_STS_WIDTH 1
> +#define MADERA_SLIMRX1_PORT_STS 0x0001
> +#define MADERA_SLIMRX1_PORT_STS_MASK 0x0001
> +#define MADERA_SLIMRX1_PORT_STS_SHIFT 0
> +#define MADERA_SLIMRX1_PORT_STS_WIDTH 1
> +
> +/* (0x05F8) SLIMbus_TX_Port_Status */
> +#define MADERA_SLIMTX8_PORT_STS 0x0080
> +#define MADERA_SLIMTX8_PORT_STS_MASK 0x0080
> +#define MADERA_SLIMTX8_PORT_STS_SHIFT 7
> +#define MADERA_SLIMTX8_PORT_STS_WIDTH 1
> +#define MADERA_SLIMTX7_PORT_STS 0x0040
> +#define MADERA_SLIMTX7_PORT_STS_MASK 0x0040
> +#define MADERA_SLIMTX7_PORT_STS_SHIFT 6
> +#define MADERA_SLIMTX7_PORT_STS_WIDTH 1
> +#define MADERA_SLIMTX6_PORT_STS 0x0020
> +#define MADERA_SLIMTX6_PORT_STS_MASK 0x0020
> +#define MADERA_SLIMTX6_PORT_STS_SHIFT 5
> +#define MADERA_SLIMTX6_PORT_STS_WIDTH 1
> +#define MADERA_SLIMTX5_PORT_STS 0x0010
> +#define MADERA_SLIMTX5_PORT_STS_MASK 0x0010
> +#define MADERA_SLIMTX5_PORT_STS_SHIFT 4
> +#define MADERA_SLIMTX5_PORT_STS_WIDTH 1
> +#define MADERA_SLIMTX4_PORT_STS 0x0008
> +#define MADERA_SLIMTX4_PORT_STS_MASK 0x0008
> +#define MADERA_SLIMTX4_PORT_STS_SHIFT 3
> +#define MADERA_SLIMTX4_PORT_STS_WIDTH 1
> +#define MADERA_SLIMTX3_PORT_STS 0x0004
> +#define MADERA_SLIMTX3_PORT_STS_MASK 0x0004
> +#define MADERA_SLIMTX3_PORT_STS_SHIFT 2
> +#define MADERA_SLIMTX3_PORT_STS_WIDTH 1
> +#define MADERA_SLIMTX2_PORT_STS 0x0002
> +#define MADERA_SLIMTX2_PORT_STS_MASK 0x0002
> +#define MADERA_SLIMTX2_PORT_STS_SHIFT 1
> +#define MADERA_SLIMTX2_PORT_STS_WIDTH 1
> +#define MADERA_SLIMTX1_PORT_STS 0x0001
> +#define MADERA_SLIMTX1_PORT_STS_MASK 0x0001
> +#define MADERA_SLIMTX1_PORT_STS_SHIFT 0
> +#define MADERA_SLIMTX1_PORT_STS_WIDTH 1
> +
> +/* (0x0E00) FX_Ctrl1 */
> +#define MADERA_FX_RATE_MASK 0xF800
> +#define MADERA_FX_RATE_SHIFT 11
> +#define MADERA_FX_RATE_WIDTH 5
> +
> +/* (0x0E01) FX_Ctrl2 */
> +#define MADERA_FX_STS_MASK 0xFFF0
> +#define MADERA_FX_STS_SHIFT 4
> +#define MADERA_FX_STS_WIDTH 12
> +
> +/* (0x0E10) EQ1_1 */
> +#define MADERA_EQ1_B1_GAIN_MASK 0xF800
> +#define MADERA_EQ1_B1_GAIN_SHIFT 11
> +#define MADERA_EQ1_B1_GAIN_WIDTH 5
> +#define MADERA_EQ1_B2_GAIN_MASK 0x07C0
> +#define MADERA_EQ1_B2_GAIN_SHIFT 6
> +#define MADERA_EQ1_B2_GAIN_WIDTH 5
> +#define MADERA_EQ1_B3_GAIN_MASK 0x003E
> +#define MADERA_EQ1_B3_GAIN_SHIFT 1
> +#define MADERA_EQ1_B3_GAIN_WIDTH 5
> +#define MADERA_EQ1_ENA 0x0001
> +#define MADERA_EQ1_ENA_MASK 0x0001
> +#define MADERA_EQ1_ENA_SHIFT 0
> +#define MADERA_EQ1_ENA_WIDTH 1
> +
> +/* (0x0E11) EQ1_2 */
> +#define MADERA_EQ1_B4_GAIN_MASK 0xF800
> +#define MADERA_EQ1_B4_GAIN_SHIFT 11
> +#define MADERA_EQ1_B4_GAIN_WIDTH 5
> +#define MADERA_EQ1_B5_GAIN_MASK 0x07C0
> +#define MADERA_EQ1_B5_GAIN_SHIFT 6
> +#define MADERA_EQ1_B5_GAIN_WIDTH 5
> +#define MADERA_EQ1_B1_MODE 0x0001
> +#define MADERA_EQ1_B1_MODE_MASK 0x0001
> +#define MADERA_EQ1_B1_MODE_SHIFT 0
> +#define MADERA_EQ1_B1_MODE_WIDTH 1
> +
> +/* (0x0E12) EQ1_3 */
> +#define MADERA_EQ1_B1_A_MASK 0xFFFF
> +#define MADERA_EQ1_B1_A_SHIFT 0
> +#define MADERA_EQ1_B1_A_WIDTH 16
> +
> +/* (0x0E13) EQ1_4 */
> +#define MADERA_EQ1_B1_B_MASK 0xFFFF
> +#define MADERA_EQ1_B1_B_SHIFT 0
> +#define MADERA_EQ1_B1_B_WIDTH 16
> +
> +/* (0x0E14) EQ1_5 */
> +#define MADERA_EQ1_B1_PG_MASK 0xFFFF
> +#define MADERA_EQ1_B1_PG_SHIFT 0
> +#define MADERA_EQ1_B1_PG_WIDTH 16
> +
> +/* (0x0E15) EQ1_6 */
> +#define MADERA_EQ1_B2_A_MASK 0xFFFF
> +#define MADERA_EQ1_B2_A_SHIFT 0
> +#define MADERA_EQ1_B2_A_WIDTH 16
> +
> +/* (0x0E16) EQ1_7 */
> +#define MADERA_EQ1_B2_B_MASK 0xFFFF
> +#define MADERA_EQ1_B2_B_SHIFT 0
> +#define MADERA_EQ1_B2_B_WIDTH 16
> +
> +/* (0x0E17) EQ1_8 */
> +#define MADERA_EQ1_B2_C_MASK 0xFFFF
> +#define MADERA_EQ1_B2_C_SHIFT 0
> +#define MADERA_EQ1_B2_C_WIDTH 16
> +
> +/* (0x0E18) EQ1_9 */
> +#define MADERA_EQ1_B2_PG_MASK 0xFFFF
> +#define MADERA_EQ1_B2_PG_SHIFT 0
> +#define MADERA_EQ1_B2_PG_WIDTH 16
> +
> +/* (0x0E19) EQ1_10 */
> +#define MADERA_EQ1_B3_A_MASK 0xFFFF
> +#define MADERA_EQ1_B3_A_SHIFT 0
> +#define MADERA_EQ1_B3_A_WIDTH 16
> +
> +/* (0x0E1A) EQ1_11 */
> +#define MADERA_EQ1_B3_B_MASK 0xFFFF
> +#define MADERA_EQ1_B3_B_SHIFT 0
> +#define MADERA_EQ1_B3_B_WIDTH 16
> +
> +/* (0x0E1B) EQ1_12 */
> +#define MADERA_EQ1_B3_C_MASK 0xFFFF
> +#define MADERA_EQ1_B3_C_SHIFT 0
> +#define MADERA_EQ1_B3_C_WIDTH 16
> +
> +/* (0x0E1C) EQ1_13 */
> +#define MADERA_EQ1_B3_PG_MASK 0xFFFF
> +#define MADERA_EQ1_B3_PG_SHIFT 0
> +#define MADERA_EQ1_B3_PG_WIDTH 16
> +
> +/* (0x0E1D) EQ1_14 */
> +#define MADERA_EQ1_B4_A_MASK 0xFFFF
> +#define MADERA_EQ1_B4_A_SHIFT 0
> +#define MADERA_EQ1_B4_A_WIDTH 16
> +
> +/* (0x0E1E) EQ1_15 */
> +#define MADERA_EQ1_B4_B_MASK 0xFFFF
> +#define MADERA_EQ1_B4_B_SHIFT 0
> +#define MADERA_EQ1_B4_B_WIDTH 16
> +
> +/* (0x0E1F) EQ1_16 */
> +#define MADERA_EQ1_B4_C_MASK 0xFFFF
> +#define MADERA_EQ1_B4_C_SHIFT 0
> +#define MADERA_EQ1_B4_C_WIDTH 16
> +
> +/* (0x0E20) EQ1_17 */
> +#define MADERA_EQ1_B4_PG_MASK 0xFFFF
> +#define MADERA_EQ1_B4_PG_SHIFT 0
> +#define MADERA_EQ1_B4_PG_WIDTH 16
> +
> +/* (0x0E21) EQ1_18 */
> +#define MADERA_EQ1_B5_A_MASK 0xFFFF
> +#define MADERA_EQ1_B5_A_SHIFT 0
> +#define MADERA_EQ1_B5_A_WIDTH 16
> +
> +/* (0x0E22) EQ1_19 */
> +#define MADERA_EQ1_B5_B_MASK 0xFFFF
> +#define MADERA_EQ1_B5_B_SHIFT 0
> +#define MADERA_EQ1_B5_B_WIDTH 16
> +
> +/* (0x0E23) EQ1_20 */
> +#define MADERA_EQ1_B5_PG_MASK 0xFFFF
> +#define MADERA_EQ1_B5_PG_SHIFT 0
> +#define MADERA_EQ1_B5_PG_WIDTH 16
> +
> +/* (0x0E24) EQ1_21 */
> +#define MADERA_EQ1_B1_C_MASK 0xFFFF
> +#define MADERA_EQ1_B1_C_SHIFT 0
> +#define MADERA_EQ1_B1_C_WIDTH 16
> +
> +/* (0x0E26) EQ2_1 */
> +#define MADERA_EQ2_B1_GAIN_MASK 0xF800
> +#define MADERA_EQ2_B1_GAIN_SHIFT 11
> +#define MADERA_EQ2_B1_GAIN_WIDTH 5
> +#define MADERA_EQ2_B2_GAIN_MASK 0x07C0
> +#define MADERA_EQ2_B2_GAIN_SHIFT 6
> +#define MADERA_EQ2_B2_GAIN_WIDTH 5
> +#define MADERA_EQ2_B3_GAIN_MASK 0x003E
> +#define MADERA_EQ2_B3_GAIN_SHIFT 1
> +#define MADERA_EQ2_B3_GAIN_WIDTH 5
> +#define MADERA_EQ2_ENA 0x0001
> +#define MADERA_EQ2_ENA_MASK 0x0001
> +#define MADERA_EQ2_ENA_SHIFT 0
> +#define MADERA_EQ2_ENA_WIDTH 1
> +
> +/* (0x0E27) EQ2_2 */
> +#define MADERA_EQ2_B4_GAIN_MASK 0xF800
> +#define MADERA_EQ2_B4_GAIN_SHIFT 11
> +#define MADERA_EQ2_B4_GAIN_WIDTH 5
> +#define MADERA_EQ2_B5_GAIN_MASK 0x07C0
> +#define MADERA_EQ2_B5_GAIN_SHIFT 6
> +#define MADERA_EQ2_B5_GAIN_WIDTH 5
> +#define MADERA_EQ2_B1_MODE 0x0001
> +#define MADERA_EQ2_B1_MODE_MASK 0x0001
> +#define MADERA_EQ2_B1_MODE_SHIFT 0
> +#define MADERA_EQ2_B1_MODE_WIDTH 1
> +
> +/* (0x0E28) EQ2_3 */
> +#define MADERA_EQ2_B1_A_MASK 0xFFFF
> +#define MADERA_EQ2_B1_A_SHIFT 0
> +#define MADERA_EQ2_B1_A_WIDTH 16
> +
> +/* (0x0E29) EQ2_4 */
> +#define MADERA_EQ2_B1_B_MASK 0xFFFF
> +#define MADERA_EQ2_B1_B_SHIFT 0
> +#define MADERA_EQ2_B1_B_WIDTH 16
> +
> +/* (0x0E2A) EQ2_5 */
> +#define MADERA_EQ2_B1_PG_MASK 0xFFFF
> +#define MADERA_EQ2_B1_PG_SHIFT 0
> +#define MADERA_EQ2_B1_PG_WIDTH 16
> +
> +/* (0x0E2B) EQ2_6 */
> +#define MADERA_EQ2_B2_A_MASK 0xFFFF
> +#define MADERA_EQ2_B2_A_SHIFT 0
> +#define MADERA_EQ2_B2_A_WIDTH 16
> +
> +/* (0x0E2C) EQ2_7 */
> +#define MADERA_EQ2_B2_B_MASK 0xFFFF
> +#define MADERA_EQ2_B2_B_SHIFT 0
> +#define MADERA_EQ2_B2_B_WIDTH 16
> +
> +/* (0x0E2D) EQ2_8 */
> +#define MADERA_EQ2_B2_C_MASK 0xFFFF
> +#define MADERA_EQ2_B2_C_SHIFT 0
> +#define MADERA_EQ2_B2_C_WIDTH 16
> +
> +/* (0x0E2E) EQ2_9 */
> +#define MADERA_EQ2_B2_PG_MASK 0xFFFF
> +#define MADERA_EQ2_B2_PG_SHIFT 0
> +#define MADERA_EQ2_B2_PG_WIDTH 16
> +
> +/* (0x0E2F) EQ2_10 */
> +#define MADERA_EQ2_B3_A_MASK 0xFFFF
> +#define MADERA_EQ2_B3_A_SHIFT 0
> +#define MADERA_EQ2_B3_A_WIDTH 16
> +
> +/* (0x0E30) EQ2_11 */
> +#define MADERA_EQ2_B3_B_MASK 0xFFFF
> +#define MADERA_EQ2_B3_B_SHIFT 0
> +#define MADERA_EQ2_B3_B_WIDTH 16
> +
> +/* (0x0E31) EQ2_12 */
> +#define MADERA_EQ2_B3_C_MASK 0xFFFF
> +#define MADERA_EQ2_B3_C_SHIFT 0
> +#define MADERA_EQ2_B3_C_WIDTH 16
> +
> +/* (0x0E32) EQ2_13 */
> +#define MADERA_EQ2_B3_PG_MASK 0xFFFF
> +#define MADERA_EQ2_B3_PG_SHIFT 0
> +#define MADERA_EQ2_B3_PG_WIDTH 16
> +
> +/* (0x0E33) EQ2_14 */
> +#define MADERA_EQ2_B4_A_MASK 0xFFFF
> +#define MADERA_EQ2_B4_A_SHIFT 0
> +#define MADERA_EQ2_B4_A_WIDTH 16
> +
> +/* (0x0E34) EQ2_15 */
> +#define MADERA_EQ2_B4_B_MASK 0xFFFF
> +#define MADERA_EQ2_B4_B_SHIFT 0
> +#define MADERA_EQ2_B4_B_WIDTH 16
> +
> +/* (0x0E35) EQ2_16 */
> +#define MADERA_EQ2_B4_C_MASK 0xFFFF
> +#define MADERA_EQ2_B4_C_SHIFT 0
> +#define MADERA_EQ2_B4_C_WIDTH 16
> +
> +/* (0x0E36) EQ2_17 */
> +#define MADERA_EQ2_B4_PG_MASK 0xFFFF
> +#define MADERA_EQ2_B4_PG_SHIFT 0
> +#define MADERA_EQ2_B4_PG_WIDTH 16
> +
> +/* (0x0E37) EQ2_18 */
> +#define MADERA_EQ2_B5_A_MASK 0xFFFF
> +#define MADERA_EQ2_B5_A_SHIFT 0
> +#define MADERA_EQ2_B5_A_WIDTH 16
> +
> +/* (0x0E38) EQ2_19 */
> +#define MADERA_EQ2_B5_B_MASK 0xFFFF
> +#define MADERA_EQ2_B5_B_SHIFT 0
> +#define MADERA_EQ2_B5_B_WIDTH 16
> +
> +/* (0x0E39) EQ2_20 */
> +#define MADERA_EQ2_B5_PG_MASK 0xFFFF
> +#define MADERA_EQ2_B5_PG_SHIFT 0
> +#define MADERA_EQ2_B5_PG_WIDTH 16
> +
> +/* (0x0E3A) EQ2_21 */
> +#define MADERA_EQ2_B1_C_MASK 0xFFFF
> +#define MADERA_EQ2_B1_C_SHIFT 0
> +#define MADERA_EQ2_B1_C_WIDTH 16
> +
> +/* (0x0E3C) EQ3_1 */
> +#define MADERA_EQ3_B1_GAIN_MASK 0xF800
> +#define MADERA_EQ3_B1_GAIN_SHIFT 11
> +#define MADERA_EQ3_B1_GAIN_WIDTH 5
> +#define MADERA_EQ3_B2_GAIN_MASK 0x07C0
> +#define MADERA_EQ3_B2_GAIN_SHIFT 6
> +#define MADERA_EQ3_B2_GAIN_WIDTH 5
> +#define MADERA_EQ3_B3_GAIN_MASK 0x003E
> +#define MADERA_EQ3_B3_GAIN_SHIFT 1
> +#define MADERA_EQ3_B3_GAIN_WIDTH 5
> +#define MADERA_EQ3_ENA 0x0001
> +#define MADERA_EQ3_ENA_MASK 0x0001
> +#define MADERA_EQ3_ENA_SHIFT 0
> +#define MADERA_EQ3_ENA_WIDTH 1
> +
> +/* (0x0E3D) EQ3_2 */
> +#define MADERA_EQ3_B4_GAIN_MASK 0xF800
> +#define MADERA_EQ3_B4_GAIN_SHIFT 11
> +#define MADERA_EQ3_B4_GAIN_WIDTH 5
> +#define MADERA_EQ3_B5_GAIN_MASK 0x07C0
> +#define MADERA_EQ3_B5_GAIN_SHIFT 6
> +#define MADERA_EQ3_B5_GAIN_WIDTH 5
> +#define MADERA_EQ3_B1_MODE 0x0001
> +#define MADERA_EQ3_B1_MODE_MASK 0x0001
> +#define MADERA_EQ3_B1_MODE_SHIFT 0
> +#define MADERA_EQ3_B1_MODE_WIDTH 1
> +
> +/* (0x0E3E) EQ3_3 */
> +#define MADERA_EQ3_B1_A_MASK 0xFFFF
> +#define MADERA_EQ3_B1_A_SHIFT 0
> +#define MADERA_EQ3_B1_A_WIDTH 16
> +
> +/* (0x0E3F) EQ3_4 */
> +#define MADERA_EQ3_B1_B_MASK 0xFFFF
> +#define MADERA_EQ3_B1_B_SHIFT 0
> +#define MADERA_EQ3_B1_B_WIDTH 16
> +
> +/* (0x0E40) EQ3_5 */
> +#define MADERA_EQ3_B1_PG_MASK 0xFFFF
> +#define MADERA_EQ3_B1_PG_SHIFT 0
> +#define MADERA_EQ3_B1_PG_WIDTH 16
> +
> +/* (0x0E41) EQ3_6 */
> +#define MADERA_EQ3_B2_A_MASK 0xFFFF
> +#define MADERA_EQ3_B2_A_SHIFT 0
> +#define MADERA_EQ3_B2_A_WIDTH 16
> +
> +/* (0x0E42) EQ3_7 */
> +#define MADERA_EQ3_B2_B_MASK 0xFFFF
> +#define MADERA_EQ3_B2_B_SHIFT 0
> +#define MADERA_EQ3_B2_B_WIDTH 16
> +
> +/* (0x0E43) EQ3_8 */
> +#define MADERA_EQ3_B2_C_MASK 0xFFFF
> +#define MADERA_EQ3_B2_C_SHIFT 0
> +#define MADERA_EQ3_B2_C_WIDTH 16
> +
> +/* (0x0E44) EQ3_9 */
> +#define MADERA_EQ3_B2_PG_MASK 0xFFFF
> +#define MADERA_EQ3_B2_PG_SHIFT 0
> +#define MADERA_EQ3_B2_PG_WIDTH 16
> +
> +/* (0x0E45) EQ3_10 */
> +#define MADERA_EQ3_B3_A_MASK 0xFFFF
> +#define MADERA_EQ3_B3_A_SHIFT 0
> +#define MADERA_EQ3_B3_A_WIDTH 16
> +
> +/* (0x0E46) EQ3_11 */
> +#define MADERA_EQ3_B3_B_MASK 0xFFFF
> +#define MADERA_EQ3_B3_B_SHIFT 0
> +#define MADERA_EQ3_B3_B_WIDTH 16
> +
> +/* (0x0E47) EQ3_12 */
> +#define MADERA_EQ3_B3_C_MASK 0xFFFF
> +#define MADERA_EQ3_B3_C_SHIFT 0
> +#define MADERA_EQ3_B3_C_WIDTH 16
> +
> +/* (0x0E48) EQ3_13 */
> +#define MADERA_EQ3_B3_PG_MASK 0xFFFF
> +#define MADERA_EQ3_B3_PG_SHIFT 0
> +#define MADERA_EQ3_B3_PG_WIDTH 16
> +
> +/* (0x0E49) EQ3_14 */
> +#define MADERA_EQ3_B4_A_MASK 0xFFFF
> +#define MADERA_EQ3_B4_A_SHIFT 0
> +#define MADERA_EQ3_B4_A_WIDTH 16
> +
> +/* (0x0E4A) EQ3_15 */
> +#define MADERA_EQ3_B4_B_MASK 0xFFFF
> +#define MADERA_EQ3_B4_B_SHIFT 0
> +#define MADERA_EQ3_B4_B_WIDTH 16
> +
> +/* (0x0E4B) EQ3_16 */
> +#define MADERA_EQ3_B4_C_MASK 0xFFFF
> +#define MADERA_EQ3_B4_C_SHIFT 0
> +#define MADERA_EQ3_B4_C_WIDTH 16
> +
> +/* (0x0E4C) EQ3_17 */
> +#define MADERA_EQ3_B4_PG_MASK 0xFFFF
> +#define MADERA_EQ3_B4_PG_SHIFT 0
> +#define MADERA_EQ3_B4_PG_WIDTH 16
> +
> +/* (0x0E4D) EQ3_18 */
> +#define MADERA_EQ3_B5_A_MASK 0xFFFF
> +#define MADERA_EQ3_B5_A_SHIFT 0
> +#define MADERA_EQ3_B5_A_WIDTH 16
> +
> +/* (0x0E4E) EQ3_19 */
> +#define MADERA_EQ3_B5_B_MASK 0xFFFF
> +#define MADERA_EQ3_B5_B_SHIFT 0
> +#define MADERA_EQ3_B5_B_WIDTH 16
> +
> +/* (0x0E4F) EQ3_20 */
> +#define MADERA_EQ3_B5_PG_MASK 0xFFFF
> +#define MADERA_EQ3_B5_PG_SHIFT 0
> +#define MADERA_EQ3_B5_PG_WIDTH 16
> +
> +/* (0x0E50) EQ3_21 */
> +#define MADERA_EQ3_B1_C_MASK 0xFFFF
> +#define MADERA_EQ3_B1_C_SHIFT 0
> +#define MADERA_EQ3_B1_C_WIDTH 16
> +
> +/* (0x0E52) EQ4_1 */
> +#define MADERA_EQ4_B1_GAIN_MASK 0xF800
> +#define MADERA_EQ4_B1_GAIN_SHIFT 11
> +#define MADERA_EQ4_B1_GAIN_WIDTH 5
> +#define MADERA_EQ4_B2_GAIN_MASK 0x07C0
> +#define MADERA_EQ4_B2_GAIN_SHIFT 6
> +#define MADERA_EQ4_B2_GAIN_WIDTH 5
> +#define MADERA_EQ4_B3_GAIN_MASK 0x003E
> +#define MADERA_EQ4_B3_GAIN_SHIFT 1
> +#define MADERA_EQ4_B3_GAIN_WIDTH 5
> +#define MADERA_EQ4_ENA 0x0001
> +#define MADERA_EQ4_ENA_MASK 0x0001
> +#define MADERA_EQ4_ENA_SHIFT 0
> +#define MADERA_EQ4_ENA_WIDTH 1
> +
> +/* (0x0E53) EQ4_2 */
> +#define MADERA_EQ4_B4_GAIN_MASK 0xF800
> +#define MADERA_EQ4_B4_GAIN_SHIFT 11
> +#define MADERA_EQ4_B4_GAIN_WIDTH 5
> +#define MADERA_EQ4_B5_GAIN_MASK 0x07C0
> +#define MADERA_EQ4_B5_GAIN_SHIFT 6
> +#define MADERA_EQ4_B5_GAIN_WIDTH 5
> +#define MADERA_EQ4_B1_MODE 0x0001
> +#define MADERA_EQ4_B1_MODE_MASK 0x0001
> +#define MADERA_EQ4_B1_MODE_SHIFT 0
> +#define MADERA_EQ4_B1_MODE_WIDTH 1
> +
> +/* (0x0E54) EQ4_3 */
> +#define MADERA_EQ4_B1_A_MASK 0xFFFF
> +#define MADERA_EQ4_B1_A_SHIFT 0
> +#define MADERA_EQ4_B1_A_WIDTH 16
> +
> +/* (0x0E55) EQ4_4 */
> +#define MADERA_EQ4_B1_B_MASK 0xFFFF
> +#define MADERA_EQ4_B1_B_SHIFT 0
> +#define MADERA_EQ4_B1_B_WIDTH 16
> +
> +/* (0x0E56) EQ4_5 */
> +#define MADERA_EQ4_B1_PG_MASK 0xFFFF
> +#define MADERA_EQ4_B1_PG_SHIFT 0
> +#define MADERA_EQ4_B1_PG_WIDTH 16
> +
> +/* (0x0E57) EQ4_6 */
> +#define MADERA_EQ4_B2_A_MASK 0xFFFF
> +#define MADERA_EQ4_B2_A_SHIFT 0
> +#define MADERA_EQ4_B2_A_WIDTH 16
> +
> +/* (0x0E58) EQ4_7 */
> +#define MADERA_EQ4_B2_B_MASK 0xFFFF
> +#define MADERA_EQ4_B2_B_SHIFT 0
> +#define MADERA_EQ4_B2_B_WIDTH 16
> +
> +/* (0x0E59) EQ4_8 */
> +#define MADERA_EQ4_B2_C_MASK 0xFFFF
> +#define MADERA_EQ4_B2_C_SHIFT 0
> +#define MADERA_EQ4_B2_C_WIDTH 16
> +
> +/* (0x0E5A) EQ4_9 */
> +#define MADERA_EQ4_B2_PG_MASK 0xFFFF
> +#define MADERA_EQ4_B2_PG_SHIFT 0
> +#define MADERA_EQ4_B2_PG_WIDTH 16
> +
> +/* (0x0E5B) EQ4_10 */
> +#define MADERA_EQ4_B3_A_MASK 0xFFFF
> +#define MADERA_EQ4_B3_A_SHIFT 0
> +#define MADERA_EQ4_B3_A_WIDTH 16
> +
> +/* (0x0E5C) EQ4_11 */
> +#define MADERA_EQ4_B3_B_MASK 0xFFFF
> +#define MADERA_EQ4_B3_B_SHIFT 0
> +#define MADERA_EQ4_B3_B_WIDTH 16
> +
> +/* (0x0E5D) EQ4_12 */
> +#define MADERA_EQ4_B3_C_MASK 0xFFFF
> +#define MADERA_EQ4_B3_C_SHIFT 0
> +#define MADERA_EQ4_B3_C_WIDTH 16
> +
> +/* (0x0E5E) EQ4_13 */
> +#define MADERA_EQ4_B3_PG_MASK 0xFFFF
> +#define MADERA_EQ4_B3_PG_SHIFT 0
> +#define MADERA_EQ4_B3_PG_WIDTH 16
> +
> +/* (0x0E5F) EQ4_14 */
> +#define MADERA_EQ4_B4_A_MASK 0xFFFF
> +#define MADERA_EQ4_B4_A_SHIFT 0
> +#define MADERA_EQ4_B4_A_WIDTH 16
> +
> +/* (0x0E60) EQ4_15 */
> +#define MADERA_EQ4_B4_B_MASK 0xFFFF
> +#define MADERA_EQ4_B4_B_SHIFT 0
> +#define MADERA_EQ4_B4_B_WIDTH 16
> +
> +/* (0x0E61) EQ4_16 */
> +#define MADERA_EQ4_B4_C_MASK 0xFFFF
> +#define MADERA_EQ4_B4_C_SHIFT 0
> +#define MADERA_EQ4_B4_C_WIDTH 16
> +
> +/* (0x0E62) EQ4_17 */
> +#define MADERA_EQ4_B4_PG_MASK 0xFFFF
> +#define MADERA_EQ4_B4_PG_SHIFT 0
> +#define MADERA_EQ4_B4_PG_WIDTH 16
> +
> +/* (0x0E63) EQ4_18 */
> +#define MADERA_EQ4_B5_A_MASK 0xFFFF
> +#define MADERA_EQ4_B5_A_SHIFT 0
> +#define MADERA_EQ4_B5_A_WIDTH 16
> +
> +/* (0x0E64) EQ4_19 */
> +#define MADERA_EQ4_B5_B_MASK 0xFFFF
> +#define MADERA_EQ4_B5_B_SHIFT 0
> +#define MADERA_EQ4_B5_B_WIDTH 16
> +
> +/* (0x0E65) EQ4_20 */
> +#define MADERA_EQ4_B5_PG_MASK 0xFFFF
> +#define MADERA_EQ4_B5_PG_SHIFT 0
> +#define MADERA_EQ4_B5_PG_WIDTH 16
> +
> +/* (0x0E66) EQ4_21 */
> +#define MADERA_EQ4_B1_C_MASK 0xFFFF
> +#define MADERA_EQ4_B1_C_SHIFT 0
> +#define MADERA_EQ4_B1_C_WIDTH 16
> +
> +/* (0x0E80) DRC1_ctrl1 */
> +#define MADERA_DRC1_SIG_DET_RMS_MASK 0xF800
> +#define MADERA_DRC1_SIG_DET_RMS_SHIFT 11
> +#define MADERA_DRC1_SIG_DET_RMS_WIDTH 5
> +#define MADERA_DRC1_SIG_DET_PK_MASK 0x0600
> +#define MADERA_DRC1_SIG_DET_PK_SHIFT 9
> +#define MADERA_DRC1_SIG_DET_PK_WIDTH 2
> +#define MADERA_DRC1_NG_ENA 0x0100
> +#define MADERA_DRC1_NG_ENA_MASK 0x0100
> +#define MADERA_DRC1_NG_ENA_SHIFT 8
> +#define MADERA_DRC1_NG_ENA_WIDTH 1
> +#define MADERA_DRC1_SIG_DET_MODE 0x0080
> +#define MADERA_DRC1_SIG_DET_MODE_MASK 0x0080
> +#define MADERA_DRC1_SIG_DET_MODE_SHIFT 7
> +#define MADERA_DRC1_SIG_DET_MODE_WIDTH 1
> +#define MADERA_DRC1_SIG_DET 0x0040
> +#define MADERA_DRC1_SIG_DET_MASK 0x0040
> +#define MADERA_DRC1_SIG_DET_SHIFT 6
> +#define MADERA_DRC1_SIG_DET_WIDTH 1
> +#define MADERA_DRC1_KNEE2_OP_ENA 0x0020
> +#define MADERA_DRC1_KNEE2_OP_ENA_MASK 0x0020
> +#define MADERA_DRC1_KNEE2_OP_ENA_SHIFT 5
> +#define MADERA_DRC1_KNEE2_OP_ENA_WIDTH 1
> +#define MADERA_DRC1_QR 0x0010
> +#define MADERA_DRC1_QR_MASK 0x0010
> +#define MADERA_DRC1_QR_SHIFT 4
> +#define MADERA_DRC1_QR_WIDTH 1
> +#define MADERA_DRC1_ANTICLIP 0x0008
> +#define MADERA_DRC1_ANTICLIP_MASK 0x0008
> +#define MADERA_DRC1_ANTICLIP_SHIFT 3
> +#define MADERA_DRC1_ANTICLIP_WIDTH 1
> +#define MADERA_DRC1L_ENA 0x0002
> +#define MADERA_DRC1L_ENA_MASK 0x0002
> +#define MADERA_DRC1L_ENA_SHIFT 1
> +#define MADERA_DRC1L_ENA_WIDTH 1
> +#define MADERA_DRC1R_ENA 0x0001
> +#define MADERA_DRC1R_ENA_MASK 0x0001
> +#define MADERA_DRC1R_ENA_SHIFT 0
> +#define MADERA_DRC1R_ENA_WIDTH 1
> +
> +/* (0x0E81) DRC1_ctrl2 */
> +#define MADERA_DRC1_ATK_MASK 0x1E00
> +#define MADERA_DRC1_ATK_SHIFT 9
> +#define MADERA_DRC1_ATK_WIDTH 4
> +#define MADERA_DRC1_DCY_MASK 0x01E0
> +#define MADERA_DRC1_DCY_SHIFT 5
> +#define MADERA_DRC1_DCY_WIDTH 4
> +#define MADERA_DRC1_MINGAIN_MASK 0x001C
> +#define MADERA_DRC1_MINGAIN_SHIFT 2
> +#define MADERA_DRC1_MINGAIN_WIDTH 3
> +#define MADERA_DRC1_MAXGAIN_MASK 0x0003
> +#define MADERA_DRC1_MAXGAIN_SHIFT 0
> +#define MADERA_DRC1_MAXGAIN_WIDTH 2
> +
> +/* (0x0E82) DRC1_ctrl3 */
> +#define MADERA_DRC1_NG_MINGAIN_MASK 0xF000
> +#define MADERA_DRC1_NG_MINGAIN_SHIFT 12
> +#define MADERA_DRC1_NG_MINGAIN_WIDTH 4
> +#define MADERA_DRC1_NG_EXP_MASK 0x0C00
> +#define MADERA_DRC1_NG_EXP_SHIFT 10
> +#define MADERA_DRC1_NG_EXP_WIDTH 2
> +#define MADERA_DRC1_QR_THR_MASK 0x0300
> +#define MADERA_DRC1_QR_THR_SHIFT 8
> +#define MADERA_DRC1_QR_THR_WIDTH 2
> +#define MADERA_DRC1_QR_DCY_MASK 0x00C0
> +#define MADERA_DRC1_QR_DCY_SHIFT 6
> +#define MADERA_DRC1_QR_DCY_WIDTH 2
> +#define MADERA_DRC1_HI_COMP_MASK 0x0038
> +#define MADERA_DRC1_HI_COMP_SHIFT 3
> +#define MADERA_DRC1_HI_COMP_WIDTH 3
> +#define MADERA_DRC1_LO_COMP_MASK 0x0007
> +#define MADERA_DRC1_LO_COMP_SHIFT 0
> +#define MADERA_DRC1_LO_COMP_WIDTH 3
> +
> +/* (0x0E83) DRC1_ctrl4 */
> +#define MADERA_DRC1_KNEE_IP_MASK 0x07E0
> +#define MADERA_DRC1_KNEE_IP_SHIFT 5
> +#define MADERA_DRC1_KNEE_IP_WIDTH 6
> +#define MADERA_DRC1_KNEE_OP_MASK 0x001F
> +#define MADERA_DRC1_KNEE_OP_SHIFT 0
> +#define MADERA_DRC1_KNEE_OP_WIDTH 5
> +
> +/* (0x0E84) DRC1_ctrl5 */
> +#define MADERA_DRC1_KNEE2_IP_MASK 0x03E0
> +#define MADERA_DRC1_KNEE2_IP_SHIFT 5
> +#define MADERA_DRC1_KNEE2_IP_WIDTH 5
> +#define MADERA_DRC1_KNEE2_OP_MASK 0x001F
> +#define MADERA_DRC1_KNEE2_OP_SHIFT 0
> +#define MADERA_DRC1_KNEE2_OP_WIDTH 5
> +
> +/* (0x0E88) DRC2_ctrl1 */
> +#define MADERA_DRC2_SIG_DET_RMS_MASK 0xF800
> +#define MADERA_DRC2_SIG_DET_RMS_SHIFT 11
> +#define MADERA_DRC2_SIG_DET_RMS_WIDTH 5
> +#define MADERA_DRC2_SIG_DET_PK_MASK 0x0600
> +#define MADERA_DRC2_SIG_DET_PK_SHIFT 9
> +#define MADERA_DRC2_SIG_DET_PK_WIDTH 2
> +#define MADERA_DRC2_NG_ENA 0x0100
> +#define MADERA_DRC2_NG_ENA_MASK 0x0100
> +#define MADERA_DRC2_NG_ENA_SHIFT 8
> +#define MADERA_DRC2_NG_ENA_WIDTH 1
> +#define MADERA_DRC2_SIG_DET_MODE 0x0080
> +#define MADERA_DRC2_SIG_DET_MODE_MASK 0x0080
> +#define MADERA_DRC2_SIG_DET_MODE_SHIFT 7
> +#define MADERA_DRC2_SIG_DET_MODE_WIDTH 1
> +#define MADERA_DRC2_SIG_DET 0x0040
> +#define MADERA_DRC2_SIG_DET_MASK 0x0040
> +#define MADERA_DRC2_SIG_DET_SHIFT 6
> +#define MADERA_DRC2_SIG_DET_WIDTH 1
> +#define MADERA_DRC2_KNEE2_OP_ENA 0x0020
> +#define MADERA_DRC2_KNEE2_OP_ENA_MASK 0x0020
> +#define MADERA_DRC2_KNEE2_OP_ENA_SHIFT 5
> +#define MADERA_DRC2_KNEE2_OP_ENA_WIDTH 1
> +#define MADERA_DRC2_QR 0x0010
> +#define MADERA_DRC2_QR_MASK 0x0010
> +#define MADERA_DRC2_QR_SHIFT 4
> +#define MADERA_DRC2_QR_WIDTH 1
> +#define MADERA_DRC2_ANTICLIP 0x0008
> +#define MADERA_DRC2_ANTICLIP_MASK 0x0008
> +#define MADERA_DRC2_ANTICLIP_SHIFT 3
> +#define MADERA_DRC2_ANTICLIP_WIDTH 1
> +#define MADERA_DRC2L_ENA 0x0002
> +#define MADERA_DRC2L_ENA_MASK 0x0002
> +#define MADERA_DRC2L_ENA_SHIFT 1
> +#define MADERA_DRC2L_ENA_WIDTH 1
> +#define MADERA_DRC2R_ENA 0x0001
> +#define MADERA_DRC2R_ENA_MASK 0x0001
> +#define MADERA_DRC2R_ENA_SHIFT 0
> +#define MADERA_DRC2R_ENA_WIDTH 1
> +
> +/* (0x0E89) DRC2_ctrl2 */
> +#define MADERA_DRC2_ATK_MASK 0x1E00
> +#define MADERA_DRC2_ATK_SHIFT 9
> +#define MADERA_DRC2_ATK_WIDTH 4
> +#define MADERA_DRC2_DCY_MASK 0x01E0
> +#define MADERA_DRC2_DCY_SHIFT 5
> +#define MADERA_DRC2_DCY_WIDTH 4
> +#define MADERA_DRC2_MINGAIN_MASK 0x001C
> +#define MADERA_DRC2_MINGAIN_SHIFT 2
> +#define MADERA_DRC2_MINGAIN_WIDTH 3
> +#define MADERA_DRC2_MAXGAIN_MASK 0x0003
> +#define MADERA_DRC2_MAXGAIN_SHIFT 0
> +#define MADERA_DRC2_MAXGAIN_WIDTH 2
> +
> +/* (0x0E8A) DRC2_ctrl3 */
> +#define MADERA_DRC2_NG_MINGAIN_MASK 0xF000
> +#define MADERA_DRC2_NG_MINGAIN_SHIFT 12
> +#define MADERA_DRC2_NG_MINGAIN_WIDTH 4
> +#define MADERA_DRC2_NG_EXP_MASK 0x0C00
> +#define MADERA_DRC2_NG_EXP_SHIFT 10
> +#define MADERA_DRC2_NG_EXP_WIDTH 2
> +#define MADERA_DRC2_QR_THR_MASK 0x0300
> +#define MADERA_DRC2_QR_THR_SHIFT 8
> +#define MADERA_DRC2_QR_THR_WIDTH 2
> +#define MADERA_DRC2_QR_DCY_MASK 0x00C0
> +#define MADERA_DRC2_QR_DCY_SHIFT 6
> +#define MADERA_DRC2_QR_DCY_WIDTH 2
> +#define MADERA_DRC2_HI_COMP_MASK 0x0038
> +#define MADERA_DRC2_HI_COMP_SHIFT 3
> +#define MADERA_DRC2_HI_COMP_WIDTH 3
> +#define MADERA_DRC2_LO_COMP_MASK 0x0007
> +#define MADERA_DRC2_LO_COMP_SHIFT 0
> +#define MADERA_DRC2_LO_COMP_WIDTH 3
> +
> +/* (0x0E8B) DRC2_ctrl4 */
> +#define MADERA_DRC2_KNEE_IP_MASK 0x07E0
> +#define MADERA_DRC2_KNEE_IP_SHIFT 5
> +#define MADERA_DRC2_KNEE_IP_WIDTH 6
> +#define MADERA_DRC2_KNEE_OP_MASK 0x001F
> +#define MADERA_DRC2_KNEE_OP_SHIFT 0
> +#define MADERA_DRC2_KNEE_OP_WIDTH 5
> +
> +/* (0x0E8C) DRC2_ctrl5 */
> +#define MADERA_DRC2_KNEE2_IP_MASK 0x03E0
> +#define MADERA_DRC2_KNEE2_IP_SHIFT 5
> +#define MADERA_DRC2_KNEE2_IP_WIDTH 5
> +#define MADERA_DRC2_KNEE2_OP_MASK 0x001F
> +#define MADERA_DRC2_KNEE2_OP_SHIFT 0
> +#define MADERA_DRC2_KNEE2_OP_WIDTH 5
> +
> +/* (0x0EC0) HPLPF1_1 */
> +#define MADERA_LHPF1_MODE 0x0002
> +#define MADERA_LHPF1_MODE_MASK 0x0002
> +#define MADERA_LHPF1_MODE_SHIFT 1
> +#define MADERA_LHPF1_MODE_WIDTH 1
> +#define MADERA_LHPF1_ENA 0x0001
> +#define MADERA_LHPF1_ENA_MASK 0x0001
> +#define MADERA_LHPF1_ENA_SHIFT 0
> +#define MADERA_LHPF1_ENA_WIDTH 1
> +
> +/* (0x0EC1) HPLPF1_2 */
> +#define MADERA_LHPF1_COEFF_MASK 0xFFFF
> +#define MADERA_LHPF1_COEFF_SHIFT 0
> +#define MADERA_LHPF1_COEFF_WIDTH 16
> +
> +/* (0x0EC4) HPLPF2_1 */
> +#define MADERA_LHPF2_MODE 0x0002
> +#define MADERA_LHPF2_MODE_MASK 0x0002
> +#define MADERA_LHPF2_MODE_SHIFT 1
> +#define MADERA_LHPF2_MODE_WIDTH 1
> +#define MADERA_LHPF2_ENA 0x0001
> +#define MADERA_LHPF2_ENA_MASK 0x0001
> +#define MADERA_LHPF2_ENA_SHIFT 0
> +#define MADERA_LHPF2_ENA_WIDTH 1
> +
> +/* (0x0EC5) HPLPF2_2 */
> +#define MADERA_LHPF2_COEFF_MASK 0xFFFF
> +#define MADERA_LHPF2_COEFF_SHIFT 0
> +#define MADERA_LHPF2_COEFF_WIDTH 16
> +
> +/* (0x0EC8) HPLPF3_1 */
> +#define MADERA_LHPF3_MODE 0x0002
> +#define MADERA_LHPF3_MODE_MASK 0x0002
> +#define MADERA_LHPF3_MODE_SHIFT 1
> +#define MADERA_LHPF3_MODE_WIDTH 1
> +#define MADERA_LHPF3_ENA 0x0001
> +#define MADERA_LHPF3_ENA_MASK 0x0001
> +#define MADERA_LHPF3_ENA_SHIFT 0
> +#define MADERA_LHPF3_ENA_WIDTH 1
> +
> +/* (0x0EC9) HPLPF3_2 */
> +#define MADERA_LHPF3_COEFF_MASK 0xFFFF
> +#define MADERA_LHPF3_COEFF_SHIFT 0
> +#define MADERA_LHPF3_COEFF_WIDTH 16
> +
> +/* (0x0ECC) HPLPF4_1 */
> +#define MADERA_LHPF4_MODE 0x0002
> +#define MADERA_LHPF4_MODE_MASK 0x0002
> +#define MADERA_LHPF4_MODE_SHIFT 1
> +#define MADERA_LHPF4_MODE_WIDTH 1
> +#define MADERA_LHPF4_ENA 0x0001
> +#define MADERA_LHPF4_ENA_MASK 0x0001
> +#define MADERA_LHPF4_ENA_SHIFT 0
> +#define MADERA_LHPF4_ENA_WIDTH 1
> +
> +/* (0x0ECD) HPLPF4_2 */
> +#define MADERA_LHPF4_COEFF_MASK 0xFFFF
> +#define MADERA_LHPF4_COEFF_SHIFT 0
> +#define MADERA_LHPF4_COEFF_WIDTH 16
> +
> +/* (0x0ED0) ASRC2_ENABLE */
> +#define MADERA_ASRC2_IN2L_ENA 0x0008
> +#define MADERA_ASRC2_IN2L_ENA_MASK 0x0008
> +#define MADERA_ASRC2_IN2L_ENA_SHIFT 3
> +#define MADERA_ASRC2_IN2L_ENA_WIDTH 1
> +#define MADERA_ASRC2_IN2R_ENA 0x0004
> +#define MADERA_ASRC2_IN2R_ENA_MASK 0x0004
> +#define MADERA_ASRC2_IN2R_ENA_SHIFT 2
> +#define MADERA_ASRC2_IN2R_ENA_WIDTH 1
> +#define MADERA_ASRC2_IN1L_ENA 0x0002
> +#define MADERA_ASRC2_IN1L_ENA_MASK 0x0002
> +#define MADERA_ASRC2_IN1L_ENA_SHIFT 1
> +#define MADERA_ASRC2_IN1L_ENA_WIDTH 1
> +#define MADERA_ASRC2_IN1R_ENA 0x0001
> +#define MADERA_ASRC2_IN1R_ENA_MASK 0x0001
> +#define MADERA_ASRC2_IN1R_ENA_SHIFT 0
> +#define MADERA_ASRC2_IN1R_ENA_WIDTH 1
> +
> +/* (0x0ED2) ASRC2_RATE1 */
> +#define MADERA_ASRC2_RATE1_MASK 0xF800
> +#define MADERA_ASRC2_RATE1_SHIFT 11
> +#define MADERA_ASRC2_RATE1_WIDTH 5
> +
> +/* (0x0ED3) ASRC2_RATE2 */
> +#define MADERA_ASRC2_RATE2_MASK 0xF800
> +#define MADERA_ASRC2_RATE2_SHIFT 11
> +#define MADERA_ASRC2_RATE2_WIDTH 5
> +
> +/* (0x0EE0) ASRC1_ENABLE */
> +#define MADERA_ASRC1_IN2L_ENA 0x0008
> +#define MADERA_ASRC1_IN2L_ENA_MASK 0x0008
> +#define MADERA_ASRC1_IN2L_ENA_SHIFT 3
> +#define MADERA_ASRC1_IN2L_ENA_WIDTH 1
> +#define MADERA_ASRC1_IN2R_ENA 0x0004
> +#define MADERA_ASRC1_IN2R_ENA_MASK 0x0004
> +#define MADERA_ASRC1_IN2R_ENA_SHIFT 2
> +#define MADERA_ASRC1_IN2R_ENA_WIDTH 1
> +#define MADERA_ASRC1_IN1L_ENA 0x0002
> +#define MADERA_ASRC1_IN1L_ENA_MASK 0x0002
> +#define MADERA_ASRC1_IN1L_ENA_SHIFT 1
> +#define MADERA_ASRC1_IN1L_ENA_WIDTH 1
> +#define MADERA_ASRC1_IN1R_ENA 0x0001
> +#define MADERA_ASRC1_IN1R_ENA_MASK 0x0001
> +#define MADERA_ASRC1_IN1R_ENA_SHIFT 0
> +#define MADERA_ASRC1_IN1R_ENA_WIDTH 1
> +
> +/* (0x0EE2) ASRC1_RATE1 */
> +#define MADERA_ASRC1_RATE1_MASK 0xF800
> +#define MADERA_ASRC1_RATE1_SHIFT 11
> +#define MADERA_ASRC1_RATE1_WIDTH 5
> +
> +/* (0x0EE3) ASRC1_RATE2 */
> +#define MADERA_ASRC1_RATE2_MASK 0xF800
> +#define MADERA_ASRC1_RATE2_SHIFT 11
> +#define MADERA_ASRC1_RATE2_WIDTH 5
> +
> +/* (0x0EF0) - ISRC1 CTRL 1 */
> +#define MADERA_ISRC1_FSH_MASK 0xF800
> +#define MADERA_ISRC1_FSH_SHIFT 11
> +#define MADERA_ISRC1_FSH_WIDTH 5
> +#define MADERA_ISRC1_CLK_SEL_MASK 0x0700
> +#define MADERA_ISRC1_CLK_SEL_SHIFT 8
> +#define MADERA_ISRC1_CLK_SEL_WIDTH 3
> +
> +/* (0x0EF1) ISRC1_CTRL_2 */
> +#define MADERA_ISRC1_FSL_MASK 0xF800
> +#define MADERA_ISRC1_FSL_SHIFT 11
> +#define MADERA_ISRC1_FSL_WIDTH 5
> +
> +/* (0x0EF2) ISRC1_CTRL_3 */
> +#define MADERA_ISRC1_INT1_ENA 0x8000
> +#define MADERA_ISRC1_INT1_ENA_MASK 0x8000
> +#define MADERA_ISRC1_INT1_ENA_SHIFT 15
> +#define MADERA_ISRC1_INT1_ENA_WIDTH 1
> +#define MADERA_ISRC1_INT2_ENA 0x4000
> +#define MADERA_ISRC1_INT2_ENA_MASK 0x4000
> +#define MADERA_ISRC1_INT2_ENA_SHIFT 14
> +#define MADERA_ISRC1_INT2_ENA_WIDTH 1
> +#define MADERA_ISRC1_INT3_ENA 0x2000
> +#define MADERA_ISRC1_INT3_ENA_MASK 0x2000
> +#define MADERA_ISRC1_INT3_ENA_SHIFT 13
> +#define MADERA_ISRC1_INT3_ENA_WIDTH 1
> +#define MADERA_ISRC1_INT4_ENA 0x1000
> +#define MADERA_ISRC1_INT4_ENA_MASK 0x1000
> +#define MADERA_ISRC1_INT4_ENA_SHIFT 12
> +#define MADERA_ISRC1_INT4_ENA_WIDTH 1
> +#define MADERA_ISRC1_DEC1_ENA 0x0200
> +#define MADERA_ISRC1_DEC1_ENA_MASK 0x0200
> +#define MADERA_ISRC1_DEC1_ENA_SHIFT 9
> +#define MADERA_ISRC1_DEC1_ENA_WIDTH 1
> +#define MADERA_ISRC1_DEC2_ENA 0x0100
> +#define MADERA_ISRC1_DEC2_ENA_MASK 0x0100
> +#define MADERA_ISRC1_DEC2_ENA_SHIFT 8
> +#define MADERA_ISRC1_DEC2_ENA_WIDTH 1
> +#define MADERA_ISRC1_DEC3_ENA 0x0080
> +#define MADERA_ISRC1_DEC3_ENA_MASK 0x0080
> +#define MADERA_ISRC1_DEC3_ENA_SHIFT 7
> +#define MADERA_ISRC1_DEC3_ENA_WIDTH 1
> +#define MADERA_ISRC1_DEC4_ENA 0x0040
> +#define MADERA_ISRC1_DEC4_ENA_MASK 0x0040
> +#define MADERA_ISRC1_DEC4_ENA_SHIFT 6
> +#define MADERA_ISRC1_DEC4_ENA_WIDTH 1
> +#define MADERA_ISRC1_NOTCH_ENA 0x0001
> +#define MADERA_ISRC1_NOTCH_ENA_MASK 0x0001
> +#define MADERA_ISRC1_NOTCH_ENA_SHIFT 0
> +#define MADERA_ISRC1_NOTCH_ENA_WIDTH 1
> +
> +/* (0x0EF3) ISRC2_CTRL_1 */
> +#define MADERA_ISRC2_FSH_MASK 0xF800
> +#define MADERA_ISRC2_FSH_SHIFT 11
> +#define MADERA_ISRC2_FSH_WIDTH 5
> +#define MADERA_ISRC2_CLK_SEL_MASK 0x0700
> +#define MADERA_ISRC2_CLK_SEL_SHIFT 8
> +#define MADERA_ISRC2_CLK_SEL_WIDTH 3
> +
> +/* (0x0EF4) ISRC2_CTRL_2 */
> +#define MADERA_ISRC2_FSL_MASK 0xF800
> +#define MADERA_ISRC2_FSL_SHIFT 11
> +#define MADERA_ISRC2_FSL_WIDTH 5
> +
> +/* (0x0EF5) ISRC2_CTRL_3 */
> +#define MADERA_ISRC2_INT1_ENA 0x8000
> +#define MADERA_ISRC2_INT1_ENA_MASK 0x8000
> +#define MADERA_ISRC2_INT1_ENA_SHIFT 15
> +#define MADERA_ISRC2_INT1_ENA_WIDTH 1
> +#define MADERA_ISRC2_INT2_ENA 0x4000
> +#define MADERA_ISRC2_INT2_ENA_MASK 0x4000
> +#define MADERA_ISRC2_INT2_ENA_SHIFT 14
> +#define MADERA_ISRC2_INT2_ENA_WIDTH 1
> +#define MADERA_ISRC2_INT3_ENA 0x2000
> +#define MADERA_ISRC2_INT3_ENA_MASK 0x2000
> +#define MADERA_ISRC2_INT3_ENA_SHIFT 13
> +#define MADERA_ISRC2_INT3_ENA_WIDTH 1
> +#define MADERA_ISRC2_INT4_ENA 0x1000
> +#define MADERA_ISRC2_INT4_ENA_MASK 0x1000
> +#define MADERA_ISRC2_INT4_ENA_SHIFT 12
> +#define MADERA_ISRC2_INT4_ENA_WIDTH 1
> +#define MADERA_ISRC2_DEC1_ENA 0x0200
> +#define MADERA_ISRC2_DEC1_ENA_MASK 0x0200
> +#define MADERA_ISRC2_DEC1_ENA_SHIFT 9
> +#define MADERA_ISRC2_DEC1_ENA_WIDTH 1
> +#define MADERA_ISRC2_DEC2_ENA 0x0100
> +#define MADERA_ISRC2_DEC2_ENA_MASK 0x0100
> +#define MADERA_ISRC2_DEC2_ENA_SHIFT 8
> +#define MADERA_ISRC2_DEC2_ENA_WIDTH 1
> +#define MADERA_ISRC2_DEC3_ENA 0x0080
> +#define MADERA_ISRC2_DEC3_ENA_MASK 0x0080
> +#define MADERA_ISRC2_DEC3_ENA_SHIFT 7
> +#define MADERA_ISRC2_DEC3_ENA_WIDTH 1
> +#define MADERA_ISRC2_DEC4_ENA 0x0040
> +#define MADERA_ISRC2_DEC4_ENA_MASK 0x0040
> +#define MADERA_ISRC2_DEC4_ENA_SHIFT 6
> +#define MADERA_ISRC2_DEC4_ENA_WIDTH 1
> +#define MADERA_ISRC2_NOTCH_ENA 0x0001
> +#define MADERA_ISRC2_NOTCH_ENA_MASK 0x0001
> +#define MADERA_ISRC2_NOTCH_ENA_SHIFT 0
> +#define MADERA_ISRC2_NOTCH_ENA_WIDTH 1
> +
> +/* (0x0EF6) ISRC3_CTRL_1 */
> +#define MADERA_ISRC3_FSH_MASK 0xF800
> +#define MADERA_ISRC3_FSH_SHIFT 11
> +#define MADERA_ISRC3_FSH_WIDTH 5
> +#define MADERA_ISRC3_CLK_SEL_MASK 0x0700
> +#define MADERA_ISRC3_CLK_SEL_SHIFT 8
> +#define MADERA_ISRC3_CLK_SEL_WIDTH 3
> +
> +/* (0x0EF7) ISRC3_CTRL_2 */
> +#define MADERA_ISRC3_FSL_MASK 0xF800
> +#define MADERA_ISRC3_FSL_SHIFT 11
> +#define MADERA_ISRC3_FSL_WIDTH 5
> +
> +/* (0x0EF8) ISRC3_CTRL_3 */
> +#define MADERA_ISRC3_INT1_ENA 0x8000
> +#define MADERA_ISRC3_INT1_ENA_MASK 0x8000
> +#define MADERA_ISRC3_INT1_ENA_SHIFT 15
> +#define MADERA_ISRC3_INT1_ENA_WIDTH 1
> +#define MADERA_ISRC3_INT2_ENA 0x4000
> +#define MADERA_ISRC3_INT2_ENA_MASK 0x4000
> +#define MADERA_ISRC3_INT2_ENA_SHIFT 14
> +#define MADERA_ISRC3_INT2_ENA_WIDTH 1
> +#define MADERA_ISRC3_INT3_ENA 0x2000
> +#define MADERA_ISRC3_INT3_ENA_MASK 0x2000
> +#define MADERA_ISRC3_INT3_ENA_SHIFT 13
> +#define MADERA_ISRC3_INT3_ENA_WIDTH 1
> +#define MADERA_ISRC3_INT4_ENA 0x1000
> +#define MADERA_ISRC3_INT4_ENA_MASK 0x1000
> +#define MADERA_ISRC3_INT4_ENA_SHIFT 12
> +#define MADERA_ISRC3_INT4_ENA_WIDTH 1
> +#define MADERA_ISRC3_DEC1_ENA 0x0200
> +#define MADERA_ISRC3_DEC1_ENA_MASK 0x0200
> +#define MADERA_ISRC3_DEC1_ENA_SHIFT 9
> +#define MADERA_ISRC3_DEC1_ENA_WIDTH 1
> +#define MADERA_ISRC3_DEC2_ENA 0x0100
> +#define MADERA_ISRC3_DEC2_ENA_MASK 0x0100
> +#define MADERA_ISRC3_DEC2_ENA_SHIFT 8
> +#define MADERA_ISRC3_DEC2_ENA_WIDTH 1
> +#define MADERA_ISRC3_DEC3_ENA 0x0080
> +#define MADERA_ISRC3_DEC3_ENA_MASK 0x0080
> +#define MADERA_ISRC3_DEC3_ENA_SHIFT 7
> +#define MADERA_ISRC3_DEC3_ENA_WIDTH 1
> +#define MADERA_ISRC3_DEC4_ENA 0x0040
> +#define MADERA_ISRC3_DEC4_ENA_MASK 0x0040
> +#define MADERA_ISRC3_DEC4_ENA_SHIFT 6
> +#define MADERA_ISRC3_DEC4_ENA_WIDTH 1
> +#define MADERA_ISRC3_NOTCH_ENA 0x0001
> +#define MADERA_ISRC3_NOTCH_ENA_MASK 0x0001
> +#define MADERA_ISRC3_NOTCH_ENA_SHIFT 0
> +#define MADERA_ISRC3_NOTCH_ENA_WIDTH 1
> +
> +/* (0x0EF9) ISRC4_CTRL_1 */
> +#define MADERA_ISRC4_FSH_MASK 0xF800
> +#define MADERA_ISRC4_FSH_SHIFT 11
> +#define MADERA_ISRC4_FSH_WIDTH 5
> +#define MADERA_ISRC4_CLK_SEL_MASK 0x0700
> +#define MADERA_ISRC4_CLK_SEL_SHIFT 8
> +#define MADERA_ISRC4_CLK_SEL_WIDTH 3
> +
> +/* (0x0EFA) ISRC4_CTRL_2 */
> +#define MADERA_ISRC4_FSL_MASK 0xF800
> +#define MADERA_ISRC4_FSL_SHIFT 11
> +#define MADERA_ISRC4_FSL_WIDTH 5
> +
> +/* (0x0EFB) ISRC4_CTRL_3 */
> +#define MADERA_ISRC4_INT1_ENA 0x8000
> +#define MADERA_ISRC4_INT1_ENA_MASK 0x8000
> +#define MADERA_ISRC4_INT1_ENA_SHIFT 15
> +#define MADERA_ISRC4_INT1_ENA_WIDTH 1
> +#define MADERA_ISRC4_INT2_ENA 0x4000
> +#define MADERA_ISRC4_INT2_ENA_MASK 0x4000
> +#define MADERA_ISRC4_INT2_ENA_SHIFT 14
> +#define MADERA_ISRC4_INT2_ENA_WIDTH 1
> +#define MADERA_ISRC4_INT3_ENA 0x2000
> +#define MADERA_ISRC4_INT3_ENA_MASK 0x2000
> +#define MADERA_ISRC4_INT3_ENA_SHIFT 13
> +#define MADERA_ISRC4_INT3_ENA_WIDTH 1
> +#define MADERA_ISRC4_INT4_ENA 0x1000
> +#define MADERA_ISRC4_INT4_ENA_MASK 0x1000
> +#define MADERA_ISRC4_INT4_ENA_SHIFT 12
> +#define MADERA_ISRC4_INT4_ENA_WIDTH 1
> +#define MADERA_ISRC4_DEC1_ENA 0x0200
> +#define MADERA_ISRC4_DEC1_ENA_MASK 0x0200
> +#define MADERA_ISRC4_DEC1_ENA_SHIFT 9
> +#define MADERA_ISRC4_DEC1_ENA_WIDTH 1
> +#define MADERA_ISRC4_DEC2_ENA 0x0100
> +#define MADERA_ISRC4_DEC2_ENA_MASK 0x0100
> +#define MADERA_ISRC4_DEC2_ENA_SHIFT 8
> +#define MADERA_ISRC4_DEC2_ENA_WIDTH 1
> +#define MADERA_ISRC4_DEC3_ENA 0x0080
> +#define MADERA_ISRC4_DEC3_ENA_MASK 0x0080
> +#define MADERA_ISRC4_DEC3_ENA_SHIFT 7
> +#define MADERA_ISRC4_DEC3_ENA_WIDTH 1
> +#define MADERA_ISRC4_DEC4_ENA 0x0040
> +#define MADERA_ISRC4_DEC4_ENA_MASK 0x0040
> +#define MADERA_ISRC4_DEC4_ENA_SHIFT 6
> +#define MADERA_ISRC4_DEC4_ENA_WIDTH 1
> +#define MADERA_ISRC4_NOTCH_ENA 0x0001
> +#define MADERA_ISRC4_NOTCH_ENA_MASK 0x0001
> +#define MADERA_ISRC4_NOTCH_ENA_SHIFT 0
> +#define MADERA_ISRC4_NOTCH_ENA_WIDTH 1
> +
> +/* (0x0F00) Clock_Control */
> +#define MADERA_EXT_NG_SEL_CLR 0x0080
> +#define MADERA_EXT_NG_SEL_CLR_MASK 0x0080
> +#define MADERA_EXT_NG_SEL_CLR_SHIFT 7
> +#define MADERA_EXT_NG_SEL_CLR_WIDTH 1
> +#define MADERA_EXT_NG_SEL_SET 0x0040
> +#define MADERA_EXT_NG_SEL_SET_MASK 0x0040
> +#define MADERA_EXT_NG_SEL_SET_SHIFT 6
> +#define MADERA_EXT_NG_SEL_SET_WIDTH 1
> +#define MADERA_CLK_R_ENA_CLR 0x0020
> +#define MADERA_CLK_R_ENA_CLR_MASK 0x0020
> +#define MADERA_CLK_R_ENA_CLR_SHIFT 5
> +#define MADERA_CLK_R_ENA_CLR_WIDTH 1
> +#define MADERA_CLK_R_ENA_SET 0x0010
> +#define MADERA_CLK_R_ENA_SET_MASK 0x0010
> +#define MADERA_CLK_R_ENA_SET_SHIFT 4
> +#define MADERA_CLK_R_ENA_SET_WIDTH 1
> +#define MADERA_CLK_NG_ENA_CLR 0x0008
> +#define MADERA_CLK_NG_ENA_CLR_MASK 0x0008
> +#define MADERA_CLK_NG_ENA_CLR_SHIFT 3
> +#define MADERA_CLK_NG_ENA_CLR_WIDTH 1
> +#define MADERA_CLK_NG_ENA_SET 0x0004
> +#define MADERA_CLK_NG_ENA_SET_MASK 0x0004
> +#define MADERA_CLK_NG_ENA_SET_SHIFT 2
> +#define MADERA_CLK_NG_ENA_SET_WIDTH 1
> +#define MADERA_CLK_L_ENA_CLR 0x0002
> +#define MADERA_CLK_L_ENA_CLR_MASK 0x0002
> +#define MADERA_CLK_L_ENA_CLR_SHIFT 1
> +#define MADERA_CLK_L_ENA_CLR_WIDTH 1
> +#define MADERA_CLK_L_ENA_SET 0x0001
> +#define MADERA_CLK_L_ENA_SET_MASK 0x0001
> +#define MADERA_CLK_L_ENA_SET_SHIFT 0
> +#define MADERA_CLK_L_ENA_SET_WIDTH 1
> +
> +/* (0x0F01) ANC_SRC */
> +#define MADERA_IN_RXANCR_SEL_MASK 0x0070
> +#define MADERA_IN_RXANCR_SEL_SHIFT 4
> +#define MADERA_IN_RXANCR_SEL_WIDTH 3
> +#define MADERA_IN_RXANCL_SEL_MASK 0x0007
> +#define MADERA_IN_RXANCL_SEL_SHIFT 0
> +#define MADERA_IN_RXANCL_SEL_WIDTH 3
> +
> +/* (0x0F17) FCL_ADC_reformatter_control */
> +#define MADERA_FCL_MIC_MODE_SEL 0x000C
> +#define MADERA_FCL_MIC_MODE_SEL_SHIFT 2
> +#define MADERA_FCL_MIC_MODE_SEL_WIDTH 2
> +
> +/* (0x0F73) FCR_ADC_reformatter_control */
> +#define MADERA_FCR_MIC_MODE_SEL 0x000C
> +#define MADERA_FCR_MIC_MODE_SEL_SHIFT 2
> +#define MADERA_FCR_MIC_MODE_SEL_WIDTH 2
> +
> +/* (0x1480) DFC1_CTRL_W0 */
> +#define MADERA_DFC1_RATE_MASK 0x007C
> +#define MADERA_DFC1_RATE_SHIFT 2
> +#define MADERA_DFC1_RATE_WIDTH 5
> +#define MADERA_DFC1_DITH_ENA 0x0002
> +#define MADERA_DFC1_DITH_ENA_MASK 0x0002
> +#define MADERA_DFC1_DITH_ENA_SHIFT 1
> +#define MADERA_DFC1_DITH_ENA_WIDTH 1
> +#define MADERA_DFC1_ENA 0x0001
> +#define MADERA_DFC1_ENA_MASK 0x0001
> +#define MADERA_DFC1_ENA_SHIFT 0
> +#define MADERA_DFC1_ENA_WIDTH 1
> +
> +/* (0x1482) DFC1_RX_W0 */
> +#define MADERA_DFC1_RX_DATA_WIDTH_MASK 0x1F00
> +#define MADERA_DFC1_RX_DATA_WIDTH_SHIFT 8
> +#define MADERA_DFC1_RX_DATA_WIDTH_WIDTH 5
> +
> +#define MADERA_DFC1_RX_DATA_TYPE_MASK 0x0007
> +#define MADERA_DFC1_RX_DATA_TYPE_SHIFT 0
> +#define MADERA_DFC1_RX_DATA_TYPE_WIDTH 3
> +
> +/* (0x1484) DFC1_TX_W0 */
> +#define MADERA_DFC1_TX_DATA_WIDTH_MASK 0x1F00
> +#define MADERA_DFC1_TX_DATA_WIDTH_SHIFT 8
> +#define MADERA_DFC1_TX_DATA_WIDTH_WIDTH 5
> +
> +#define MADERA_DFC1_TX_DATA_TYPE_MASK 0x0007
> +#define MADERA_DFC1_TX_DATA_TYPE_SHIFT 0
> +#define MADERA_DFC1_TX_DATA_TYPE_WIDTH 3
> +
> +/* (0x1600) ADSP2_IRQ0 */
> +#define MADERA_DSP_IRQ2 0x0002
> +#define MADERA_DSP_IRQ1 0x0001
> +
> +/* (0x1601) ADSP2_IRQ1 */
> +#define MADERA_DSP_IRQ4 0x0002
> +#define MADERA_DSP_IRQ3 0x0001
> +
> +/* (0x1602) ADSP2_IRQ2 */
> +#define MADERA_DSP_IRQ6 0x0002
> +#define MADERA_DSP_IRQ5 0x0001
> +
> +/* (0x1603) ADSP2_IRQ3 */
> +#define MADERA_DSP_IRQ8 0x0002
> +#define MADERA_DSP_IRQ7 0x0001
> +
> +/* (0x1604) ADSP2_IRQ4 */
> +#define MADERA_DSP_IRQ10 0x0002
> +#define MADERA_DSP_IRQ9 0x0001
> +
> +/* (0x1605) ADSP2_IRQ5 */
> +#define MADERA_DSP_IRQ12 0x0002
> +#define MADERA_DSP_IRQ11 0x0001
> +
> +/* (0x1606) ADSP2_IRQ6 */
> +#define MADERA_DSP_IRQ14 0x0002
> +#define MADERA_DSP_IRQ13 0x0001
> +
> +/* (0x1607) ADSP2_IRQ7 */
> +#define MADERA_DSP_IRQ16 0x0002
> +#define MADERA_DSP_IRQ15 0x0001
> +
> +/* (0x1700) GPIO1_CTRL_1 */
> +#define MADERA_GP1_LVL 0x8000
> +#define MADERA_GP1_LVL_MASK 0x8000
> +#define MADERA_GP1_LVL_SHIFT 15
> +#define MADERA_GP1_LVL_WIDTH 1
> +#define MADERA_GP1_OP_CFG 0x4000
> +#define MADERA_GP1_OP_CFG_MASK 0x4000
> +#define MADERA_GP1_OP_CFG_SHIFT 14
> +#define MADERA_GP1_OP_CFG_WIDTH 1
> +#define MADERA_GP1_DB 0x2000
> +#define MADERA_GP1_DB_MASK 0x2000
> +#define MADERA_GP1_DB_SHIFT 13
> +#define MADERA_GP1_DB_WIDTH 1
> +#define MADERA_GP1_POL 0x1000
> +#define MADERA_GP1_POL_MASK 0x1000
> +#define MADERA_GP1_POL_SHIFT 12
> +#define MADERA_GP1_POL_WIDTH 1
> +#define MADERA_GP1_IP_CFG 0x0800
> +#define MADERA_GP1_IP_CFG_MASK 0x0800
> +#define MADERA_GP1_IP_CFG_SHIFT 11
> +#define MADERA_GP1_IP_CFG_WIDTH 1
> +#define MADERA_GP1_FN_MASK 0x03FF
> +#define MADERA_GP1_FN_SHIFT 0
> +#define MADERA_GP1_FN_WIDTH 10
> +
> +/* (0x1701) GPIO1_CTRL_2 */
> +#define MADERA_GP1_DIR 0x8000
> +#define MADERA_GP1_DIR_MASK 0x8000
> +#define MADERA_GP1_DIR_SHIFT 15
> +#define MADERA_GP1_DIR_WIDTH 1
> +#define MADERA_GP1_PU 0x4000
> +#define MADERA_GP1_PU_MASK 0x4000
> +#define MADERA_GP1_PU_SHIFT 14
> +#define MADERA_GP1_PU_WIDTH 1
> +#define MADERA_GP1_PD 0x2000
> +#define MADERA_GP1_PD_MASK 0x2000
> +#define MADERA_GP1_PD_SHIFT 13
> +#define MADERA_GP1_PD_WIDTH 1
> +#define MADERA_GP1_DRV_STR_MASK 0x1800
> +#define MADERA_GP1_DRV_STR_SHIFT 11
> +#define MADERA_GP1_DRV_STR_WIDTH 2
> +
> +/* (0x1800) IRQ1_Status_1 */
> +#define MADERA_DSP_SHARED_WR_COLL_EINT1 0x8000
> +#define MADERA_DSP_SHARED_WR_COLL_EINT1_MASK 0x8000
> +#define MADERA_DSP_SHARED_WR_COLL_EINT1_SHIFT 15
> +#define MADERA_DSP_SHARED_WR_COLL_EINT1_WIDTH 1
> +#define MADERA_CTRLIF_ERR_EINT1 0x1000
> +#define MADERA_CTRLIF_ERR_EINT1_MASK 0x1000
> +#define MADERA_CTRLIF_ERR_EINT1_SHIFT 12
> +#define MADERA_CTRLIF_ERR_EINT1_WIDTH 1
> +#define MADERA_SYSCLK_FAIL_EINT1 0x0200
> +#define MADERA_SYSCLK_FAIL_EINT1_MASK 0x0200
> +#define MADERA_SYSCLK_FAIL_EINT1_SHIFT 9
> +#define MADERA_SYSCLK_FAIL_EINT1_WIDTH 1
> +#define MADERA_CLOCK_DETECT_EINT1 0x0100
> +#define MADERA_CLOCK_DETECT_EINT1_MASK 0x0100
> +#define MADERA_CLOCK_DETECT_EINT1_SHIFT 8
> +#define MADERA_CLOCK_DETECT_EINT1_WIDTH 1
> +#define MADERA_BOOT_DONE_EINT1 0x0080
> +#define MADERA_BOOT_DONE_EINT1_MASK 0x0080
> +#define MADERA_BOOT_DONE_EINT1_SHIFT 7
> +#define MADERA_BOOT_DONE_EINT1_WIDTH 1
> +
> +/* (0x1801) IRQ1_Status_2 */
> +#define MADERA_FLLAO_LOCK_EINT1 0x0800
> +#define MADERA_FLLAO_LOCK_EINT1_MASK 0x0800
> +#define MADERA_FLLAO_LOCK_EINT1_SHIFT 11
> +#define MADERA_FLLAO_LOCK_EINT1_WIDTH 1
> +#define MADERA_FLL3_LOCK_EINT1 0x0400
> +#define MADERA_FLL3_LOCK_EINT1_MASK 0x0400
> +#define MADERA_FLL3_LOCK_EINT1_SHIFT 10
> +#define MADERA_FLL3_LOCK_EINT1_WIDTH 1
> +#define MADERA_FLL2_LOCK_EINT1 0x0200
> +#define MADERA_FLL2_LOCK_EINT1_MASK 0x0200
> +#define MADERA_FLL2_LOCK_EINT1_SHIFT 9
> +#define MADERA_FLL2_LOCK_EINT1_WIDTH 1
> +#define MADERA_FLL1_LOCK_EINT1 0x0100
> +#define MADERA_FLL1_LOCK_EINT1_MASK 0x0100
> +#define MADERA_FLL1_LOCK_EINT1_SHIFT 8
> +#define MADERA_FLL1_LOCK_EINT1_WIDTH 1
> +
> +/* (0x1805) IRQ1_Status_6 */
> +#define MADERA_MICDET2_EINT1 0x0200
> +#define MADERA_MICDET2_EINT1_MASK 0x0200
> +#define MADERA_MICDET2_EINT1_SHIFT 9
> +#define MADERA_MICDET2_EINT1_WIDTH 1
> +#define MADERA_MICDET1_EINT1 0x0100
> +#define MADERA_MICDET1_EINT1_MASK 0x0100
> +#define MADERA_MICDET1_EINT1_SHIFT 8
> +#define MADERA_MICDET1_EINT1_WIDTH 1
> +#define MADERA_HPDET_EINT1 0x0001
> +#define MADERA_HPDET_EINT1_MASK 0x0001
> +#define MADERA_HPDET_EINT1_SHIFT 0
> +#define MADERA_HPDET_EINT1_WIDTH 1
> +
> +/* (0x1806) IRQ1_Status_7 */
> +#define MADERA_MICD_CLAMP_FALL_EINT1 0x0020
> +#define MADERA_MICD_CLAMP_FALL_EINT1_MASK 0x0020
> +#define MADERA_MICD_CLAMP_FALL_EINT1_SHIFT 5
> +#define MADERA_MICD_CLAMP_FALL_EINT1_WIDTH 1
> +#define MADERA_MICD_CLAMP_RISE_EINT1 0x0010
> +#define MADERA_MICD_CLAMP_RISE_EINT1_MASK 0x0010
> +#define MADERA_MICD_CLAMP_RISE_EINT1_SHIFT 4
> +#define MADERA_MICD_CLAMP_RISE_EINT1_WIDTH 1
> +#define MADERA_JD2_FALL_EINT1 0x0008
> +#define MADERA_JD2_FALL_EINT1_MASK 0x0008
> +#define MADERA_JD2_FALL_EINT1_SHIFT 3
> +#define MADERA_JD2_FALL_EINT1_WIDTH 1
> +#define MADERA_JD2_RISE_EINT1 0x0004
> +#define MADERA_JD2_RISE_EINT1_MASK 0x0004
> +#define MADERA_JD2_RISE_EINT1_SHIFT 2
> +#define MADERA_JD2_RISE_EINT1_WIDTH 1
> +#define MADERA_JD1_FALL_EINT1 0x0002
> +#define MADERA_JD1_FALL_EINT1_MASK 0x0002
> +#define MADERA_JD1_FALL_EINT1_SHIFT 1
> +#define MADERA_JD1_FALL_EINT1_WIDTH 1
> +#define MADERA_JD1_RISE_EINT1 0x0001
> +#define MADERA_JD1_RISE_EINT1_MASK 0x0001
> +#define MADERA_JD1_RISE_EINT1_SHIFT 0
> +#define MADERA_JD1_RISE_EINT1_WIDTH 1
> +
> +/* (0x1808) IRQ1_Status_9 */
> +#define MADERA_ASRC2_IN2_LOCK_EINT1 0x0800
> +#define MADERA_ASRC2_IN2_LOCK_EINT1_MASK 0x0800
> +#define MADERA_ASRC2_IN2_LOCK_EINT1_SHIFT 11
> +#define MADERA_ASRC2_IN2_LOCK_EINT1_WIDTH 1
> +#define MADERA_ASRC2_IN1_LOCK_EINT1 0x0400
> +#define MADERA_ASRC2_IN1_LOCK_EINT1_MASK 0x0400
> +#define MADERA_ASRC2_IN1_LOCK_EINT1_SHIFT 10
> +#define MADERA_ASRC2_IN1_LOCK_EINT1_WIDTH 1
> +#define MADERA_ASRC1_IN2_LOCK_EINT1 0x0200
> +#define MADERA_ASRC1_IN2_LOCK_EINT1_MASK 0x0200
> +#define MADERA_ASRC1_IN2_LOCK_EINT1_SHIFT 9
> +#define MADERA_ASRC1_IN2_LOCK_EINT1_WIDTH 1
> +#define MADERA_ASRC1_IN1_LOCK_EINT1 0x0100
> +#define MADERA_ASRC1_IN1_LOCK_EINT1_MASK 0x0100
> +#define MADERA_ASRC1_IN1_LOCK_EINT1_SHIFT 8
> +#define MADERA_ASRC1_IN1_LOCK_EINT1_WIDTH 1
> +#define MADERA_DRC2_SIG_DET_EINT1 0x0002
> +#define MADERA_DRC2_SIG_DET_EINT1_MASK 0x0002
> +#define MADERA_DRC2_SIG_DET_EINT1_SHIFT 1
> +#define MADERA_DRC2_SIG_DET_EINT1_WIDTH 1
> +#define MADERA_DRC1_SIG_DET_EINT1 0x0001
> +#define MADERA_DRC1_SIG_DET_EINT1_MASK 0x0001
> +#define MADERA_DRC1_SIG_DET_EINT1_SHIFT 0
> +#define MADERA_DRC1_SIG_DET_EINT1_WIDTH 1
> +
> +/* (0x180A) IRQ1_Status_11 */
> +#define MADERA_DSP_IRQ16_EINT1 0x8000
> +#define MADERA_DSP_IRQ16_EINT1_MASK 0x8000
> +#define MADERA_DSP_IRQ16_EINT1_SHIFT 15
> +#define MADERA_DSP_IRQ16_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ15_EINT1 0x4000
> +#define MADERA_DSP_IRQ15_EINT1_MASK 0x4000
> +#define MADERA_DSP_IRQ15_EINT1_SHIFT 14
> +#define MADERA_DSP_IRQ15_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ14_EINT1 0x2000
> +#define MADERA_DSP_IRQ14_EINT1_MASK 0x2000
> +#define MADERA_DSP_IRQ14_EINT1_SHIFT 13
> +#define MADERA_DSP_IRQ14_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ13_EINT1 0x1000
> +#define MADERA_DSP_IRQ13_EINT1_MASK 0x1000
> +#define MADERA_DSP_IRQ13_EINT1_SHIFT 12
> +#define MADERA_DSP_IRQ13_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ12_EINT1 0x0800
> +#define MADERA_DSP_IRQ12_EINT1_MASK 0x0800
> +#define MADERA_DSP_IRQ12_EINT1_SHIFT 11
> +#define MADERA_DSP_IRQ12_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ11_EINT1 0x0400
> +#define MADERA_DSP_IRQ11_EINT1_MASK 0x0400
> +#define MADERA_DSP_IRQ11_EINT1_SHIFT 10
> +#define MADERA_DSP_IRQ11_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ10_EINT1 0x0200
> +#define MADERA_DSP_IRQ10_EINT1_MASK 0x0200
> +#define MADERA_DSP_IRQ10_EINT1_SHIFT 9
> +#define MADERA_DSP_IRQ10_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ9_EINT1 0x0100
> +#define MADERA_DSP_IRQ9_EINT1_MASK 0x0100
> +#define MADERA_DSP_IRQ9_EINT1_SHIFT 8
> +#define MADERA_DSP_IRQ9_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ8_EINT1 0x0080
> +#define MADERA_DSP_IRQ8_EINT1_MASK 0x0080
> +#define MADERA_DSP_IRQ8_EINT1_SHIFT 7
> +#define MADERA_DSP_IRQ8_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ7_EINT1 0x0040
> +#define MADERA_DSP_IRQ7_EINT1_MASK 0x0040
> +#define MADERA_DSP_IRQ7_EINT1_SHIFT 6
> +#define MADERA_DSP_IRQ7_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ6_EINT1 0x0020
> +#define MADERA_DSP_IRQ6_EINT1_MASK 0x0020
> +#define MADERA_DSP_IRQ6_EINT1_SHIFT 5
> +#define MADERA_DSP_IRQ6_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ5_EINT1 0x0010
> +#define MADERA_DSP_IRQ5_EINT1_MASK 0x0010
> +#define MADERA_DSP_IRQ5_EINT1_SHIFT 4
> +#define MADERA_DSP_IRQ5_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ4_EINT1 0x0008
> +#define MADERA_DSP_IRQ4_EINT1_MASK 0x0008
> +#define MADERA_DSP_IRQ4_EINT1_SHIFT 3
> +#define MADERA_DSP_IRQ4_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ3_EINT1 0x0004
> +#define MADERA_DSP_IRQ3_EINT1_MASK 0x0004
> +#define MADERA_DSP_IRQ3_EINT1_SHIFT 2
> +#define MADERA_DSP_IRQ3_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ2_EINT1 0x0002
> +#define MADERA_DSP_IRQ2_EINT1_MASK 0x0002
> +#define MADERA_DSP_IRQ2_EINT1_SHIFT 1
> +#define MADERA_DSP_IRQ2_EINT1_WIDTH 1
> +#define MADERA_DSP_IRQ1_EINT1 0x0001
> +#define MADERA_DSP_IRQ1_EINT1_MASK 0x0001
> +#define MADERA_DSP_IRQ1_EINT1_SHIFT 0
> +#define MADERA_DSP_IRQ1_EINT1_WIDTH 1
> +
> +/* (0x180B) IRQ1_Status_12 */
> +#define MADERA_SPKOUTR_SC_EINT1 0x0080
> +#define MADERA_SPKOUTR_SC_EINT1_MASK 0x0080
> +#define MADERA_SPKOUTR_SC_EINT1_SHIFT 7
> +#define MADERA_SPKOUTR_SC_EINT1_WIDTH 1
> +#define MADERA_SPKOUTL_SC_EINT1 0x0040
> +#define MADERA_SPKOUTL_SC_EINT1_MASK 0x0040
> +#define MADERA_SPKOUTL_SC_EINT1_SHIFT 6
> +#define MADERA_SPKOUTL_SC_EINT1_WIDTH 1
> +#define MADERA_HP3R_SC_EINT1 0x0020
> +#define MADERA_HP3R_SC_EINT1_MASK 0x0020
> +#define MADERA_HP3R_SC_EINT1_SHIFT 5
> +#define MADERA_HP3R_SC_EINT1_WIDTH 1
> +#define MADERA_HP3L_SC_EINT1 0x0010
> +#define MADERA_HP3L_SC_EINT1_MASK 0x0010
> +#define MADERA_HP3L_SC_EINT1_SHIFT 4
> +#define MADERA_HP3L_SC_EINT1_WIDTH 1
> +#define MADERA_HP2R_SC_EINT1 0x0008
> +#define MADERA_HP2R_SC_EINT1_MASK 0x0008
> +#define MADERA_HP2R_SC_EINT1_SHIFT 3
> +#define MADERA_HP2R_SC_EINT1_WIDTH 1
> +#define MADERA_HP2L_SC_EINT1 0x0004
> +#define MADERA_HP2L_SC_EINT1_MASK 0x0004
> +#define MADERA_HP2L_SC_EINT1_SHIFT 2
> +#define MADERA_HP2L_SC_EINT1_WIDTH 1
> +#define MADERA_HP1R_SC_EINT1 0x0002
> +#define MADERA_HP1R_SC_EINT1_MASK 0x0002
> +#define MADERA_HP1R_SC_EINT1_SHIFT 1
> +#define MADERA_HP1R_SC_EINT1_WIDTH 1
> +#define MADERA_HP1L_SC_EINT1 0x0001
> +#define MADERA_HP1L_SC_EINT1_MASK 0x0001
> +#define MADERA_HP1L_SC_EINT1_SHIFT 0
> +#define MADERA_HP1L_SC_EINT1_WIDTH 1
> +
> +/* (0x180C) IRQ1_Status_13 */
> +#define MADERA_SPKOUTR_ENABLE_DONE_EINT1 0x0080
> +#define MADERA_SPKOUTR_ENABLE_DONE_EINT1_MASK 0x0080
> +#define MADERA_SPKOUTR_ENABLE_DONE_EINT1_SHIFT 7
> +#define MADERA_SPKOUTR_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_SPKOUTL_ENABLE_DONE_EINT1 0x0040
> +#define MADERA_SPKOUTL_ENABLE_DONE_EINT1_MASK 0x0040
> +#define MADERA_SPKOUTL_ENABLE_DONE_EINT1_SHIFT 6
> +#define MADERA_SPKOUTL_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_HP3R_ENABLE_DONE_EINT1 0x0020
> +#define MADERA_HP3R_ENABLE_DONE_EINT1_MASK 0x0020
> +#define MADERA_HP3R_ENABLE_DONE_EINT1_SHIFT 5
> +#define MADERA_HP3R_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_HP3L_ENABLE_DONE_EINT1 0x0010
> +#define MADERA_HP3L_ENABLE_DONE_EINT1_MASK 0x0010
> +#define MADERA_HP3L_ENABLE_DONE_EINT1_SHIFT 4
> +#define MADERA_HP3L_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_HP2R_ENABLE_DONE_EINT1 0x0008
> +#define MADERA_HP2R_ENABLE_DONE_EINT1_MASK 0x0008
> +#define MADERA_HP2R_ENABLE_DONE_EINT1_SHIFT 3
> +#define MADERA_HP2R_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_HP2L_ENABLE_DONE_EINT1 0x0004
> +#define MADERA_HP2L_ENABLE_DONE_EINT1_MASK 0x0004
> +#define MADERA_HP2L_ENABLE_DONE_EINT1_SHIFT 2
> +#define MADERA_HP2L_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_HP1R_ENABLE_DONE_EINT1 0x0002
> +#define MADERA_HP1R_ENABLE_DONE_EINT1_MASK 0x0002
> +#define MADERA_HP1R_ENABLE_DONE_EINT1_SHIFT 1
> +#define MADERA_HP1R_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_HP1L_ENABLE_DONE_EINT1 0x0001
> +#define MADERA_HP1L_ENABLE_DONE_EINT1_MASK 0x0001
> +#define MADERA_HP1L_ENABLE_DONE_EINT1_SHIFT 0
> +#define MADERA_HP1L_ENABLE_DONE_EINT1_WIDTH 1
> +
> +/* (0x180D) IRQ1_Status_14 */
> +#define MADERA_SPKOUTR_DISABLE_DONE_EINT1 0x0080
> +#define MADERA_SPKOUTR_DISABLE_DONE_EINT1_MASK 0x0080
> +#define MADERA_SPKOUTR_DISABLE_DONE_EINT1_SHIFT 7
> +#define MADERA_SPKOUTR_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_SPKOUTL_DISABLE_DONE_EINT1 0x0040
> +#define MADERA_SPKOUTL_DISABLE_DONE_EINT1_MASK 0x0040
> +#define MADERA_SPKOUTL_DISABLE_DONE_EINT1_SHIFT 6
> +#define MADERA_SPKOUTL_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_HP3R_DISABLE_DONE_EINT1 0x0020
> +#define MADERA_HP3R_DISABLE_DONE_EINT1_MASK 0x0020
> +#define MADERA_HP3R_DISABLE_DONE_EINT1_SHIFT 5
> +#define MADERA_HP3R_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_HP3L_DISABLE_DONE_EINT1 0x0010
> +#define MADERA_HP3L_DISABLE_DONE_EINT1_MASK 0x0010
> +#define MADERA_HP3L_DISABLE_DONE_EINT1_SHIFT 4
> +#define MADERA_HP3L_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_HP2R_DISABLE_DONE_EINT1 0x0008
> +#define MADERA_HP2R_DISABLE_DONE_EINT1_MASK 0x0008
> +#define MADERA_HP2R_DISABLE_DONE_EINT1_SHIFT 3
> +#define MADERA_HP2R_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_HP2L_DISABLE_DONE_EINT1 0x0004
> +#define MADERA_HP2L_DISABLE_DONE_EINT1_MASK 0x0004
> +#define MADERA_HP2L_DISABLE_DONE_EINT1_SHIFT 2
> +#define MADERA_HP2L_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_HP1R_DISABLE_DONE_EINT1 0x0002
> +#define MADERA_HP1R_DISABLE_DONE_EINT1_MASK 0x0002
> +#define MADERA_HP1R_DISABLE_DONE_EINT1_SHIFT 1
> +#define MADERA_HP1R_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_HP1L_DISABLE_DONE_EINT1 0x0001
> +#define MADERA_HP1L_DISABLE_DONE_EINT1_MASK 0x0001
> +#define MADERA_HP1L_DISABLE_DONE_EINT1_SHIFT 0
> +#define MADERA_HP1L_DISABLE_DONE_EINT1_WIDTH 1
> +
> +/* (0x180E) IRQ1_Status_15 */
> +#define MADERA_SPK_OVERHEAT_WARN_EINT1 0x0004
> +#define MADERA_SPK_OVERHEAT_WARN_EINT1_MASK 0x0004
> +#define MADERA_SPK_OVERHEAT_WARN_EINT1_SHIFT 2
> +#define MADERA_SPK_OVERHEAT_WARN_EINT1_WIDTH 1
> +#define MADERA_SPK_OVERHEAT_EINT1 0x0002
> +#define MADERA_SPK_OVERHEAT_EINT1_MASK 0x0002
> +#define MADERA_SPK_OVERHEAT_EINT1_SHIFT 1
> +#define MADERA_SPK_OVERHEAT_EINT1_WIDTH 1
> +#define MADERA_SPK_SHUTDOWN_EINT1 0x0001
> +#define MADERA_SPK_SHUTDOWN_EINT1_MASK 0x0001
> +#define MADERA_SPK_SHUTDOWN_EINT1_SHIFT 0
> +#define MADERA_SPK_SHUTDOWN_EINT1_WIDTH 1
> +
> +/* (0x1820) - IRQ1 Status 33 */
> +#define MADERA_ADSP_ERROR_STATUS_DSP7 0x0040
> +#define MADERA_ADSP_ERROR_STATUS_DSP7_MASK 0x0040
> +#define MADERA_ADSP_ERROR_STATUS_DSP7_SHIFT 6
> +#define MADERA_ADSP_ERROR_STATUS_DSP7_WIDTH 1
> +#define MADERA_ADSP_ERROR_STATUS_DSP6 0x0020
> +#define MADERA_ADSP_ERROR_STATUS_DSP6_MASK 0x0020
> +#define MADERA_ADSP_ERROR_STATUS_DSP6_SHIFT 5
> +#define MADERA_ADSP_ERROR_STATUS_DSP6_WIDTH 1
> +#define MADERA_ADSP_ERROR_STATUS_DSP5 0x0010
> +#define MADERA_ADSP_ERROR_STATUS_DSP5_MASK 0x0010
> +#define MADERA_ADSP_ERROR_STATUS_DSP5_SHIFT 4
> +#define MADERA_ADSP_ERROR_STATUS_DSP5_WIDTH 1
> +#define MADERA_ADSP_ERROR_STATUS_DSP4 0x0008
> +#define MADERA_ADSP_ERROR_STATUS_DSP4_MASK 0x0008
> +#define MADERA_ADSP_ERROR_STATUS_DSP4_SHIFT 3
> +#define MADERA_ADSP_ERROR_STATUS_DSP4_WIDTH 1
> +#define MADERA_ADSP_ERROR_STATUS_DSP3 0x0004
> +#define MADERA_ADSP_ERROR_STATUS_DSP3_MASK 0x0004
> +#define MADERA_ADSP_ERROR_STATUS_DSP3_SHIFT 2
> +#define MADERA_ADSP_ERROR_STATUS_DSP3_WIDTH 1
> +#define MADERA_ADSP_ERROR_STATUS_DSP2 0x0002
> +#define MADERA_ADSP_ERROR_STATUS_DSP2_MASK 0x0002
> +#define MADERA_ADSP_ERROR_STATUS_DSP2_SHIFT 1
> +#define MADERA_ADSP_ERROR_STATUS_DSP2_WIDTH 1
> +#define MADERA_ADSP_ERROR_STATUS_DSP1 0x0001
> +#define MADERA_ADSP_ERROR_STATUS_DSP1_MASK 0x0001
> +#define MADERA_ADSP_ERROR_STATUS_DSP1_SHIFT 0
> +#define MADERA_ADSP_ERROR_STATUS_DSP1_WIDTH 1
> +
> +/* (0x1840) IRQ1_Mask_1 */
> +#define MADERA_IM_DSP_SHARED_WR_COLL_EINT1 0x8000
> +#define MADERA_IM_DSP_SHARED_WR_COLL_EINT1_MASK 0x8000
> +#define MADERA_IM_DSP_SHARED_WR_COLL_EINT1_SHIFT 15
> +#define MADERA_IM_DSP_SHARED_WR_COLL_EINT1_WIDTH 1
> +#define MADERA_IM_CTRLIF_ERR_EINT1 0x1000
> +#define MADERA_IM_CTRLIF_ERR_EINT1_MASK 0x1000
> +#define MADERA_IM_CTRLIF_ERR_EINT1_SHIFT 12
> +#define MADERA_IM_CTRLIF_ERR_EINT1_WIDTH 1
> +#define MADERA_IM_SYSCLK_FAIL_EINT1 0x0200
> +#define MADERA_IM_SYSCLK_FAIL_EINT1_MASK 0x0200
> +#define MADERA_IM_SYSCLK_FAIL_EINT1_SHIFT 9
> +#define MADERA_IM_SYSCLK_FAIL_EINT1_WIDTH 1
> +#define MADERA_IM_CLOCK_DETECT_EINT1 0x0100
> +#define MADERA_IM_CLOCK_DETECT_EINT1_MASK 0x0100
> +#define MADERA_IM_CLOCK_DETECT_EINT1_SHIFT 8
> +#define MADERA_IM_CLOCK_DETECT_EINT1_WIDTH 1
> +#define MADERA_IM_BOOT_DONE_EINT1 0x0080
> +#define MADERA_IM_BOOT_DONE_EINT1_MASK 0x0080
> +#define MADERA_IM_BOOT_DONE_EINT1_SHIFT 7
> +#define MADERA_IM_BOOT_DONE_EINT1_WIDTH 1
> +
> +/* (0x1841) IRQ1_Mask_2 */
> +#define MADERA_IM_FLL3_LOCK_EINT1 0x0400
> +#define MADERA_IM_FLL3_LOCK_EINT1_MASK 0x0400
> +#define MADERA_IM_FLL3_LOCK_EINT1_SHIFT 10
> +#define MADERA_IM_FLL3_LOCK_EINT1_WIDTH 1
> +#define MADERA_IM_FLL2_LOCK_EINT1 0x0200
> +#define MADERA_IM_FLL2_LOCK_EINT1_MASK 0x0200
> +#define MADERA_IM_FLL2_LOCK_EINT1_SHIFT 9
> +#define MADERA_IM_FLL2_LOCK_EINT1_WIDTH 1
> +#define MADERA_IM_FLL1_LOCK_EINT1 0x0100
> +#define MADERA_IM_FLL1_LOCK_EINT1_MASK 0x0100
> +#define MADERA_IM_FLL1_LOCK_EINT1_SHIFT 8
> +#define MADERA_IM_FLL1_LOCK_EINT1_WIDTH 1
> +
> +/* (0x1845) IRQ1_Mask_6 */
> +#define MADERA_IM_MICDET2_EINT1 0x0200
> +#define MADERA_IM_MICDET2_EINT1_MASK 0x0200
> +#define MADERA_IM_MICDET2_EINT1_SHIFT 9
> +#define MADERA_IM_MICDET2_EINT1_WIDTH 1
> +#define MADERA_IM_MICDET1_EINT1 0x0100
> +#define MADERA_IM_MICDET1_EINT1_MASK 0x0100
> +#define MADERA_IM_MICDET1_EINT1_SHIFT 8
> +#define MADERA_IM_MICDET1_EINT1_WIDTH 1
> +#define MADERA_IM_HPDET_EINT1 0x0001
> +#define MADERA_IM_HPDET_EINT1_MASK 0x0001
> +#define MADERA_IM_HPDET_EINT1_SHIFT 0
> +#define MADERA_IM_HPDET_EINT1_WIDTH 1
> +
> +/* (0x1846) IRQ1_Mask_7 */
> +#define MADERA_IM_MICD_CLAMP_FALL_EINT1 0x0020
> +#define MADERA_IM_MICD_CLAMP_FALL_EINT1_MASK 0x0020
> +#define MADERA_IM_MICD_CLAMP_FALL_EINT1_SHIFT 5
> +#define MADERA_IM_MICD_CLAMP_FALL_EINT1_WIDTH 1
> +#define MADERA_IM_MICD_CLAMP_RISE_EINT1 0x0010
> +#define MADERA_IM_MICD_CLAMP_RISE_EINT1_MASK 0x0010
> +#define MADERA_IM_MICD_CLAMP_RISE_EINT1_SHIFT 4
> +#define MADERA_IM_MICD_CLAMP_RISE_EINT1_WIDTH 1
> +#define MADERA_IM_JD2_FALL_EINT1 0x0008
> +#define MADERA_IM_JD2_FALL_EINT1_MASK 0x0008
> +#define MADERA_IM_JD2_FALL_EINT1_SHIFT 3
> +#define MADERA_IM_JD2_FALL_EINT1_WIDTH 1
> +#define MADERA_IM_JD2_RISE_EINT1 0x0004
> +#define MADERA_IM_JD2_RISE_EINT1_MASK 0x0004
> +#define MADERA_IM_JD2_RISE_EINT1_SHIFT 2
> +#define MADERA_IM_JD2_RISE_EINT1_WIDTH 1
> +#define MADERA_IM_JD1_FALL_EINT1 0x0002
> +#define MADERA_IM_JD1_FALL_EINT1_MASK 0x0002
> +#define MADERA_IM_JD1_FALL_EINT1_SHIFT 1
> +#define MADERA_IM_JD1_FALL_EINT1_WIDTH 1
> +#define MADERA_IM_JD1_RISE_EINT1 0x0001
> +#define MADERA_IM_JD1_RISE_EINT1_MASK 0x0001
> +#define MADERA_IM_JD1_RISE_EINT1_SHIFT 0
> +#define MADERA_IM_JD1_RISE_EINT1_WIDTH 1
> +
> +/* (0x1848) IRQ1_Mask_9 */
> +#define MADERA_IM_ASRC2_IN2_LOCK_EINT1 0x0800
> +#define MADERA_IM_ASRC2_IN2_LOCK_EINT1_MASK 0x0800
> +#define MADERA_IM_ASRC2_IN2_LOCK_EINT1_SHIFT 11
> +#define MADERA_IM_ASRC2_IN2_LOCK_EINT1_WIDTH 1
> +#define MADERA_IM_ASRC2_IN1_LOCK_EINT1 0x0400
> +#define MADERA_IM_ASRC2_IN1_LOCK_EINT1_MASK 0x0400
> +#define MADERA_IM_ASRC2_IN1_LOCK_EINT1_SHIFT 10
> +#define MADERA_IM_ASRC2_IN1_LOCK_EINT1_WIDTH 1
> +#define MADERA_IM_ASRC1_IN2_LOCK_EINT1 0x0200
> +#define MADERA_IM_ASRC1_IN2_LOCK_EINT1_MASK 0x0200
> +#define MADERA_IM_ASRC1_IN2_LOCK_EINT1_SHIFT 9
> +#define MADERA_IM_ASRC1_IN2_LOCK_EINT1_WIDTH 1
> +#define MADERA_IM_ASRC1_IN1_LOCK_EINT1 0x0100
> +#define MADERA_IM_ASRC1_IN1_LOCK_EINT1_MASK 0x0100
> +#define MADERA_IM_ASRC1_IN1_LOCK_EINT1_SHIFT 8
> +#define MADERA_IM_ASRC1_IN1_LOCK_EINT1_WIDTH 1
> +#define MADERA_IM_DRC2_SIG_DET_EINT1 0x0002
> +#define MADERA_IM_DRC2_SIG_DET_EINT1_MASK 0x0002
> +#define MADERA_IM_DRC2_SIG_DET_EINT1_SHIFT 1
> +#define MADERA_IM_DRC2_SIG_DET_EINT1_WIDTH 1
> +#define MADERA_IM_DRC1_SIG_DET_EINT1 0x0001
> +#define MADERA_IM_DRC1_SIG_DET_EINT1_MASK 0x0001
> +#define MADERA_IM_DRC1_SIG_DET_EINT1_SHIFT 0
> +#define MADERA_IM_DRC1_SIG_DET_EINT1_WIDTH 1
> +
> +/* (0x184A) IRQ1_Mask_11 */
> +#define MADERA_IM_DSP_IRQ16_EINT1 0x8000
> +#define MADERA_IM_DSP_IRQ16_EINT1_MASK 0x8000
> +#define MADERA_IM_DSP_IRQ16_EINT1_SHIFT 15
> +#define MADERA_IM_DSP_IRQ16_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ15_EINT1 0x4000
> +#define MADERA_IM_DSP_IRQ15_EINT1_MASK 0x4000
> +#define MADERA_IM_DSP_IRQ15_EINT1_SHIFT 14
> +#define MADERA_IM_DSP_IRQ15_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ14_EINT1 0x2000
> +#define MADERA_IM_DSP_IRQ14_EINT1_MASK 0x2000
> +#define MADERA_IM_DSP_IRQ14_EINT1_SHIFT 13
> +#define MADERA_IM_DSP_IRQ14_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ13_EINT1 0x1000
> +#define MADERA_IM_DSP_IRQ13_EINT1_MASK 0x1000
> +#define MADERA_IM_DSP_IRQ13_EINT1_SHIFT 12
> +#define MADERA_IM_DSP_IRQ13_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ12_EINT1 0x0800
> +#define MADERA_IM_DSP_IRQ12_EINT1_MASK 0x0800
> +#define MADERA_IM_DSP_IRQ12_EINT1_SHIFT 11
> +#define MADERA_IM_DSP_IRQ12_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ11_EINT1 0x0400
> +#define MADERA_IM_DSP_IRQ11_EINT1_MASK 0x0400
> +#define MADERA_IM_DSP_IRQ11_EINT1_SHIFT 10
> +#define MADERA_IM_DSP_IRQ11_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ10_EINT1 0x0200
> +#define MADERA_IM_DSP_IRQ10_EINT1_MASK 0x0200
> +#define MADERA_IM_DSP_IRQ10_EINT1_SHIFT 9
> +#define MADERA_IM_DSP_IRQ10_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ9_EINT1 0x0100
> +#define MADERA_IM_DSP_IRQ9_EINT1_MASK 0x0100
> +#define MADERA_IM_DSP_IRQ9_EINT1_SHIFT 8
> +#define MADERA_IM_DSP_IRQ9_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ8_EINT1 0x0080
> +#define MADERA_IM_DSP_IRQ8_EINT1_MASK 0x0080
> +#define MADERA_IM_DSP_IRQ8_EINT1_SHIFT 7
> +#define MADERA_IM_DSP_IRQ8_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ7_EINT1 0x0040
> +#define MADERA_IM_DSP_IRQ7_EINT1_MASK 0x0040
> +#define MADERA_IM_DSP_IRQ7_EINT1_SHIFT 6
> +#define MADERA_IM_DSP_IRQ7_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ6_EINT1 0x0020
> +#define MADERA_IM_DSP_IRQ6_EINT1_MASK 0x0020
> +#define MADERA_IM_DSP_IRQ6_EINT1_SHIFT 5
> +#define MADERA_IM_DSP_IRQ6_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ5_EINT1 0x0010
> +#define MADERA_IM_DSP_IRQ5_EINT1_MASK 0x0010
> +#define MADERA_IM_DSP_IRQ5_EINT1_SHIFT 4
> +#define MADERA_IM_DSP_IRQ5_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ4_EINT1 0x0008
> +#define MADERA_IM_DSP_IRQ4_EINT1_MASK 0x0008
> +#define MADERA_IM_DSP_IRQ4_EINT1_SHIFT 3
> +#define MADERA_IM_DSP_IRQ4_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ3_EINT1 0x0004
> +#define MADERA_IM_DSP_IRQ3_EINT1_MASK 0x0004
> +#define MADERA_IM_DSP_IRQ3_EINT1_SHIFT 2
> +#define MADERA_IM_DSP_IRQ3_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ2_EINT1 0x0002
> +#define MADERA_IM_DSP_IRQ2_EINT1_MASK 0x0002
> +#define MADERA_IM_DSP_IRQ2_EINT1_SHIFT 1
> +#define MADERA_IM_DSP_IRQ2_EINT1_WIDTH 1
> +#define MADERA_IM_DSP_IRQ1_EINT1 0x0001
> +#define MADERA_IM_DSP_IRQ1_EINT1_MASK 0x0001
> +#define MADERA_IM_DSP_IRQ1_EINT1_SHIFT 0
> +#define MADERA_IM_DSP_IRQ1_EINT1_WIDTH 1
> +
> +/* (0x184B) IRQ1_Mask_12 */
> +#define MADERA_IM_SPKOUTR_SC_EINT1 0x0080
> +#define MADERA_IM_SPKOUTR_SC_EINT1_MASK 0x0080
> +#define MADERA_IM_SPKOUTR_SC_EINT1_SHIFT 7
> +#define MADERA_IM_SPKOUTR_SC_EINT1_WIDTH 1
> +#define MADERA_IM_SPKOUTL_SC_EINT1 0x0040
> +#define MADERA_IM_SPKOUTL_SC_EINT1_MASK 0x0040
> +#define MADERA_IM_SPKOUTL_SC_EINT1_SHIFT 6
> +#define MADERA_IM_SPKOUTL_SC_EINT1_WIDTH 1
> +#define MADERA_IM_HP3R_SC_EINT1 0x0020
> +#define MADERA_IM_HP3R_SC_EINT1_MASK 0x0020
> +#define MADERA_IM_HP3R_SC_EINT1_SHIFT 5
> +#define MADERA_IM_HP3R_SC_EINT1_WIDTH 1
> +#define MADERA_IM_HP3L_SC_EINT1 0x0010
> +#define MADERA_IM_HP3L_SC_EINT1_MASK 0x0010
> +#define MADERA_IM_HP3L_SC_EINT1_SHIFT 4
> +#define MADERA_IM_HP3L_SC_EINT1_WIDTH 1
> +#define MADERA_IM_HP2R_SC_EINT1 0x0008
> +#define MADERA_IM_HP2R_SC_EINT1_MASK 0x0008
> +#define MADERA_IM_HP2R_SC_EINT1_SHIFT 3
> +#define MADERA_IM_HP2R_SC_EINT1_WIDTH 1
> +#define MADERA_IM_HP2L_SC_EINT1 0x0004
> +#define MADERA_IM_HP2L_SC_EINT1_MASK 0x0004
> +#define MADERA_IM_HP2L_SC_EINT1_SHIFT 2
> +#define MADERA_IM_HP2L_SC_EINT1_WIDTH 1
> +#define MADERA_IM_HP1R_SC_EINT1 0x0002
> +#define MADERA_IM_HP1R_SC_EINT1_MASK 0x0002
> +#define MADERA_IM_HP1R_SC_EINT1_SHIFT 1
> +#define MADERA_IM_HP1R_SC_EINT1_WIDTH 1
> +#define MADERA_IM_HP1L_SC_EINT1 0x0001
> +#define MADERA_IM_HP1L_SC_EINT1_MASK 0x0001
> +#define MADERA_IM_HP1L_SC_EINT1_SHIFT 0
> +#define MADERA_IM_HP1L_SC_EINT1_WIDTH 1
> +
> +/* (0x184C) IRQ1_Mask_13 */
> +#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT1 0x0080
> +#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT1_MASK 0x0080
> +#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT1_SHIFT 7
> +#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT1 0x0040
> +#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT1_MASK 0x0040
> +#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT1_SHIFT 6
> +#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_HP3R_ENABLE_DONE_EINT1 0x0020
> +#define MADERA_IM_HP3R_ENABLE_DONE_EINT1_MASK 0x0020
> +#define MADERA_IM_HP3R_ENABLE_DONE_EINT1_SHIFT 5
> +#define MADERA_IM_HP3R_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_HP3L_ENABLE_DONE_EINT1 0x0010
> +#define MADERA_IM_HP3L_ENABLE_DONE_EINT1_MASK 0x0010
> +#define MADERA_IM_HP3L_ENABLE_DONE_EINT1_SHIFT 4
> +#define MADERA_IM_HP3L_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_HP2R_ENABLE_DONE_EINT1 0x0008
> +#define MADERA_IM_HP2R_ENABLE_DONE_EINT1_MASK 0x0008
> +#define MADERA_IM_HP2R_ENABLE_DONE_EINT1_SHIFT 3
> +#define MADERA_IM_HP2R_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_HP2L_ENABLE_DONE_EINT1 0x0004
> +#define MADERA_IM_HP2L_ENABLE_DONE_EINT1_MASK 0x0004
> +#define MADERA_IM_HP2L_ENABLE_DONE_EINT1_SHIFT 2
> +#define MADERA_IM_HP2L_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_HP1R_ENABLE_DONE_EINT1 0x0002
> +#define MADERA_IM_HP1R_ENABLE_DONE_EINT1_MASK 0x0002
> +#define MADERA_IM_HP1R_ENABLE_DONE_EINT1_SHIFT 1
> +#define MADERA_IM_HP1R_ENABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_HP1L_ENABLE_DONE_EINT1 0x0001
> +#define MADERA_IM_HP1L_ENABLE_DONE_EINT1_MASK 0x0001
> +#define MADERA_IM_HP1L_ENABLE_DONE_EINT1_SHIFT 0
> +#define MADERA_IM_HP1L_ENABLE_DONE_EINT1_WIDTH 1
> +
> +/* (0x184D) IRQ1_Mask_14 */
> +#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT1 0x0080
> +#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT1_MASK 0x0080
> +#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT1_SHIFT 7
> +#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT1 0x0040
> +#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT1_MASK 0x0040
> +#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT1_SHIFT 6
> +#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_HP3R_DISABLE_DONE_EINT1 0x0020
> +#define MADERA_IM_HP3R_DISABLE_DONE_EINT1_MASK 0x0020
> +#define MADERA_IM_HP3R_DISABLE_DONE_EINT1_SHIFT 5
> +#define MADERA_IM_HP3R_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_HP3L_DISABLE_DONE_EINT1 0x0010
> +#define MADERA_IM_HP3L_DISABLE_DONE_EINT1_MASK 0x0010
> +#define MADERA_IM_HP3L_DISABLE_DONE_EINT1_SHIFT 4
> +#define MADERA_IM_HP3L_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_HP2R_DISABLE_DONE_EINT1 0x0008
> +#define MADERA_IM_HP2R_DISABLE_DONE_EINT1_MASK 0x0008
> +#define MADERA_IM_HP2R_DISABLE_DONE_EINT1_SHIFT 3
> +#define MADERA_IM_HP2R_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_HP2L_DISABLE_DONE_EINT1 0x0004
> +#define MADERA_IM_HP2L_DISABLE_DONE_EINT1_MASK 0x0004
> +#define MADERA_IM_HP2L_DISABLE_DONE_EINT1_SHIFT 2
> +#define MADERA_IM_HP2L_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_HP1R_DISABLE_DONE_EINT1 0x0002
> +#define MADERA_IM_HP1R_DISABLE_DONE_EINT1_MASK 0x0002
> +#define MADERA_IM_HP1R_DISABLE_DONE_EINT1_SHIFT 1
> +#define MADERA_IM_HP1R_DISABLE_DONE_EINT1_WIDTH 1
> +#define MADERA_IM_HP1L_DISABLE_DONE_EINT1 0x0001
> +#define MADERA_IM_HP1L_DISABLE_DONE_EINT1_MASK 0x0001
> +#define MADERA_IM_HP1L_DISABLE_DONE_EINT1_SHIFT 0
> +#define MADERA_IM_HP1L_DISABLE_DONE_EINT1_WIDTH 1
> +
> +/* (0x184E) IRQ1_Mask_15 */
> +#define MADERA_IM_SPK_OVERHEAT_WARN_EINT1 0x0004
> +#define MADERA_IM_SPK_OVERHEAT_WARN_EINT1_MASK 0x0004
> +#define MADERA_IM_SPK_OVERHEAT_WARN_EINT1_SHIFT 2
> +#define MADERA_IM_SPK_OVERHEAT_WARN_EINT1_WIDTH 1
> +#define MADERA_IM_SPK_OVERHEAT_EINT1 0x0002
> +#define MADERA_IM_SPK_OVERHEAT_EINT1_MASK 0x0002
> +#define MADERA_IM_SPK_OVERHEAT_EINT1_SHIFT 1
> +#define MADERA_IM_SPK_OVERHEAT_EINT1_WIDTH 1
> +#define MADERA_IM_SPK_SHUTDOWN_EINT1 0x0001
> +#define MADERA_IM_SPK_SHUTDOWN_EINT1_MASK 0x0001
> +#define MADERA_IM_SPK_SHUTDOWN_EINT1_SHIFT 0
> +#define MADERA_IM_SPK_SHUTDOWN_EINT1_WIDTH 1
> +
> +/* (0x1880) - IRQ1 Raw Status 1 */
> +#define MADERA_DSP_SHARED_WR_COLL_STS1 0x8000
> +#define MADERA_DSP_SHARED_WR_COLL_STS1_MASK 0x8000
> +#define MADERA_DSP_SHARED_WR_COLL_STS1_SHIFT 15
> +#define MADERA_DSP_SHARED_WR_COLL_STS1_WIDTH 1
> +#define MADERA_CTRLIF_ERR_STS1 0x1000
> +#define MADERA_CTRLIF_ERR_STS1_MASK 0x1000
> +#define MADERA_CTRLIF_ERR_STS1_SHIFT 12
> +#define MADERA_CTRLIF_ERR_STS1_WIDTH 1
> +#define MADERA_SYSCLK_FAIL_STS1 0x0200
> +#define MADERA_SYSCLK_FAIL_STS1_MASK 0x0200
> +#define MADERA_SYSCLK_FAIL_STS1_SHIFT 9
> +#define MADERA_SYSCLK_FAIL_STS1_WIDTH 1
> +#define MADERA_CLOCK_DETECT_STS1 0x0100
> +#define MADERA_CLOCK_DETECT_STS1_MASK 0x0100
> +#define MADERA_CLOCK_DETECT_STS1_SHIFT 8
> +#define MADERA_CLOCK_DETECT_STS1_WIDTH 1
> +#define MADERA_BOOT_DONE_STS1 0x0080
> +#define MADERA_BOOT_DONE_STS1_MASK 0x0080
> +#define MADERA_BOOT_DONE_STS1_SHIFT 7
> +#define MADERA_BOOT_DONE_STS1_WIDTH 1
> +
> +/* (0x1881) - IRQ1 Raw Status 2 */
> +#define MADERA_FLL3_LOCK_STS1 0x0400
> +#define MADERA_FLL3_LOCK_STS1_MASK 0x0400
> +#define MADERA_FLL3_LOCK_STS1_SHIFT 10
> +#define MADERA_FLL3_LOCK_STS1_WIDTH 1
> +#define MADERA_FLL2_LOCK_STS1 0x0200
> +#define MADERA_FLL2_LOCK_STS1_MASK 0x0200
> +#define MADERA_FLL2_LOCK_STS1_SHIFT 9
> +#define MADERA_FLL2_LOCK_STS1_WIDTH 1
> +#define MADERA_FLL1_LOCK_STS1 0x0100
> +#define MADERA_FLL1_LOCK_STS1_MASK 0x0100
> +#define MADERA_FLL1_LOCK_STS1_SHIFT 8
> +#define MADERA_FLL1_LOCK_STS1_WIDTH 1
> +
> +/* (0x1886) - IRQ1 Raw Status 7 */
> +#define MADERA_MICD_CLAMP_FALL_STS1 0x0020
> +#define MADERA_MICD_CLAMP_FALL_STS1_MASK 0x0020
> +#define MADERA_MICD_CLAMP_FALL_STS1_SHIFT 5
> +#define MADERA_MICD_CLAMP_FALL_STS1_WIDTH 1
> +#define MADERA_MICD_CLAMP_RISE_STS1 0x0010
> +#define MADERA_MICD_CLAMP_RISE_STS1_MASK 0x0010
> +#define MADERA_MICD_CLAMP_RISE_STS1_SHIFT 4
> +#define MADERA_MICD_CLAMP_RISE_STS1_WIDTH 1
> +#define MADERA_JD2_FALL_STS1 0x0008
> +#define MADERA_JD2_FALL_STS1_MASK 0x0008
> +#define MADERA_JD2_FALL_STS1_SHIFT 3
> +#define MADERA_JD2_FALL_STS1_WIDTH 1
> +#define MADERA_JD2_RISE_STS1 0x0004
> +#define MADERA_JD2_RISE_STS1_MASK 0x0004
> +#define MADERA_JD2_RISE_STS1_SHIFT 2
> +#define MADERA_JD2_RISE_STS1_WIDTH 1
> +#define MADERA_JD1_FALL_STS1 0x0002
> +#define MADERA_JD1_FALL_STS1_MASK 0x0002
> +#define MADERA_JD1_FALL_STS1_SHIFT 1
> +#define MADERA_JD1_FALL_STS1_WIDTH 1
> +#define MADERA_JD1_RISE_STS1 0x0001
> +#define MADERA_JD1_RISE_STS1_MASK 0x0001
> +#define MADERA_JD1_RISE_STS1_SHIFT 0
> +#define MADERA_JD1_RISE_STS1_WIDTH 1
> +
> +/* (0x1888) - IRQ1 Raw Status 9 */
> +#define MADERA_ASRC2_IN2_LOCK_STS1 0x0800
> +#define MADERA_ASRC2_IN2_LOCK_STS1_MASK 0x0800
> +#define MADERA_ASRC2_IN2_LOCK_STS1_SHIFT 11
> +#define MADERA_ASRC2_IN2_LOCK_STS1_WIDTH 1
> +#define MADERA_ASRC2_IN1_LOCK_STS1 0x0400
> +#define MADERA_ASRC2_IN1_LOCK_STS1_MASK 0x0400
> +#define MADERA_ASRC2_IN1_LOCK_STS1_SHIFT 10
> +#define MADERA_ASRC2_IN1_LOCK_STS1_WIDTH 1
> +#define MADERA_ASRC1_IN2_LOCK_STS1 0x0200
> +#define MADERA_ASRC1_IN2_LOCK_STS1_MASK 0x0200
> +#define MADERA_ASRC1_IN2_LOCK_STS1_SHIFT 9
> +#define MADERA_ASRC1_IN2_LOCK_STS1_WIDTH 1
> +#define MADERA_ASRC1_IN1_LOCK_STS1 0x0100
> +#define MADERA_ASRC1_IN1_LOCK_STS1_MASK 0x0100
> +#define MADERA_ASRC1_IN1_LOCK_STS1_SHIFT 8
> +#define MADERA_ASRC1_IN1_LOCK_STS1_WIDTH 1
> +#define MADERA_DRC2_SIG_DET_STS1 0x0002
> +#define MADERA_DRC2_SIG_DET_STS1_MASK 0x0002
> +#define MADERA_DRC2_SIG_DET_STS1_SHIFT 1
> +#define MADERA_DRC2_SIG_DET_STS1_WIDTH 1
> +#define MADERA_DRC1_SIG_DET_STS1 0x0001
> +#define MADERA_DRC1_SIG_DET_STS1_MASK 0x0001
> +#define MADERA_DRC1_SIG_DET_STS1_SHIFT 0
> +#define MADERA_DRC1_SIG_DET_STS1_WIDTH 1
> +
> +/* (0x188A) - IRQ1 Raw Status 11 */
> +#define MADERA_DSP_IRQ16_STS1 0x8000
> +#define MADERA_DSP_IRQ16_STS1_MASK 0x8000
> +#define MADERA_DSP_IRQ16_STS1_SHIFT 15
> +#define MADERA_DSP_IRQ16_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ15_STS1 0x4000
> +#define MADERA_DSP_IRQ15_STS1_MASK 0x4000
> +#define MADERA_DSP_IRQ15_STS1_SHIFT 14
> +#define MADERA_DSP_IRQ15_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ14_STS1 0x2000
> +#define MADERA_DSP_IRQ14_STS1_MASK 0x2000
> +#define MADERA_DSP_IRQ14_STS1_SHIFT 13
> +#define MADERA_DSP_IRQ14_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ13_STS1 0x1000
> +#define MADERA_DSP_IRQ13_STS1_MASK 0x1000
> +#define MADERA_DSP_IRQ13_STS1_SHIFT 12
> +#define MADERA_DSP_IRQ13_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ12_STS1 0x0800
> +#define MADERA_DSP_IRQ12_STS1_MASK 0x0800
> +#define MADERA_DSP_IRQ12_STS1_SHIFT 11
> +#define MADERA_DSP_IRQ12_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ11_STS1 0x0400
> +#define MADERA_DSP_IRQ11_STS1_MASK 0x0400
> +#define MADERA_DSP_IRQ11_STS1_SHIFT 10
> +#define MADERA_DSP_IRQ11_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ10_STS1 0x0200
> +#define MADERA_DSP_IRQ10_STS1_MASK 0x0200
> +#define MADERA_DSP_IRQ10_STS1_SHIFT 9
> +#define MADERA_DSP_IRQ10_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ9_STS1 0x0100
> +#define MADERA_DSP_IRQ9_STS1_MASK 0x0100
> +#define MADERA_DSP_IRQ9_STS1_SHIFT 8
> +#define MADERA_DSP_IRQ9_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ8_STS1 0x0080
> +#define MADERA_DSP_IRQ8_STS1_MASK 0x0080
> +#define MADERA_DSP_IRQ8_STS1_SHIFT 7
> +#define MADERA_DSP_IRQ8_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ7_STS1 0x0040
> +#define MADERA_DSP_IRQ7_STS1_MASK 0x0040
> +#define MADERA_DSP_IRQ7_STS1_SHIFT 6
> +#define MADERA_DSP_IRQ7_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ6_STS1 0x0020
> +#define MADERA_DSP_IRQ6_STS1_MASK 0x0020
> +#define MADERA_DSP_IRQ6_STS1_SHIFT 5
> +#define MADERA_DSP_IRQ6_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ5_STS1 0x0010
> +#define MADERA_DSP_IRQ5_STS1_MASK 0x0010
> +#define MADERA_DSP_IRQ5_STS1_SHIFT 4
> +#define MADERA_DSP_IRQ5_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ4_STS1 0x0008
> +#define MADERA_DSP_IRQ4_STS1_MASK 0x0008
> +#define MADERA_DSP_IRQ4_STS1_SHIFT 3
> +#define MADERA_DSP_IRQ4_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ3_STS1 0x0004
> +#define MADERA_DSP_IRQ3_STS1_MASK 0x0004
> +#define MADERA_DSP_IRQ3_STS1_SHIFT 2
> +#define MADERA_DSP_IRQ3_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ2_STS1 0x0002
> +#define MADERA_DSP_IRQ2_STS1_MASK 0x0002
> +#define MADERA_DSP_IRQ2_STS1_SHIFT 1
> +#define MADERA_DSP_IRQ2_STS1_WIDTH 1
> +#define MADERA_DSP_IRQ1_STS1 0x0001
> +#define MADERA_DSP_IRQ1_STS1_MASK 0x0001
> +#define MADERA_DSP_IRQ1_STS1_SHIFT 0
> +#define MADERA_DSP_IRQ1_STS1_WIDTH 1
> +
> +/* (0x188B) - IRQ1 Raw Status 12 */
> +#define MADERA_SPKOUTR_SC_STS1 0x0080
> +#define MADERA_SPKOUTR_SC_STS1_MASK 0x0080
> +#define MADERA_SPKOUTR_SC_STS1_SHIFT 7
> +#define MADERA_SPKOUTR_SC_STS1_WIDTH 1
> +#define MADERA_SPKOUTL_SC_STS1 0x0040
> +#define MADERA_SPKOUTL_SC_STS1_MASK 0x0040
> +#define MADERA_SPKOUTL_SC_STS1_SHIFT 6
> +#define MADERA_SPKOUTL_SC_STS1_WIDTH 1
> +#define MADERA_HP3R_SC_STS1 0x0020
> +#define MADERA_HP3R_SC_STS1_MASK 0x0020
> +#define MADERA_HP3R_SC_STS1_SHIFT 5
> +#define MADERA_HP3R_SC_STS1_WIDTH 1
> +#define MADERA_HP3L_SC_STS1 0x0010
> +#define MADERA_HP3L_SC_STS1_MASK 0x0010
> +#define MADERA_HP3L_SC_STS1_SHIFT 4
> +#define MADERA_HP3L_SC_STS1_WIDTH 1
> +#define MADERA_HP2R_SC_STS1 0x0008
> +#define MADERA_HP2R_SC_STS1_MASK 0x0008
> +#define MADERA_HP2R_SC_STS1_SHIFT 3
> +#define MADERA_HP2R_SC_STS1_WIDTH 1
> +#define MADERA_HP2L_SC_STS1 0x0004
> +#define MADERA_HP2L_SC_STS1_MASK 0x0004
> +#define MADERA_HP2L_SC_STS1_SHIFT 2
> +#define MADERA_HP2L_SC_STS1_WIDTH 1
> +#define MADERA_HP1R_SC_STS1 0x0002
> +#define MADERA_HP1R_SC_STS1_MASK 0x0002
> +#define MADERA_HP1R_SC_STS1_SHIFT 1
> +#define MADERA_HP1R_SC_STS1_WIDTH 1
> +#define MADERA_HP1L_SC_STS1 0x0001
> +#define MADERA_HP1L_SC_STS1_MASK 0x0001
> +#define MADERA_HP1L_SC_STS1_SHIFT 0
> +#define MADERA_HP1L_SC_STS1_WIDTH 1
> +
> +/* (0x188C) - IRQ1 Raw Status 13 */
> +#define MADERA_SPKOUTR_ENABLE_DONE_STS1 0x0080
> +#define MADERA_SPKOUTR_ENABLE_DONE_STS1_MASK 0x0080
> +#define MADERA_SPKOUTR_ENABLE_DONE_STS1_SHIFT 7
> +#define MADERA_SPKOUTR_ENABLE_DONE_STS1_WIDTH 1
> +#define MADERA_SPKOUTL_ENABLE_DONE_STS1 0x0040
> +#define MADERA_SPKOUTL_ENABLE_DONE_STS1_MASK 0x0040
> +#define MADERA_SPKOUTL_ENABLE_DONE_STS1_SHIFT 6
> +#define MADERA_SPKOUTL_ENABLE_DONE_STS1_WIDTH 1
> +#define MADERA_HP3R_ENABLE_DONE_STS1 0x0020
> +#define MADERA_HP3R_ENABLE_DONE_STS1_MASK 0x0020
> +#define MADERA_HP3R_ENABLE_DONE_STS1_SHIFT 5
> +#define MADERA_HP3R_ENABLE_DONE_STS1_WIDTH 1
> +#define MADERA_HP3L_ENABLE_DONE_STS1 0x0010
> +#define MADERA_HP3L_ENABLE_DONE_STS1_MASK 0x0010
> +#define MADERA_HP3L_ENABLE_DONE_STS1_SHIFT 4
> +#define MADERA_HP3L_ENABLE_DONE_STS1_WIDTH 1
> +#define MADERA_HP2R_ENABLE_DONE_STS1 0x0008
> +#define MADERA_HP2R_ENABLE_DONE_STS1_MASK 0x0008
> +#define MADERA_HP2R_ENABLE_DONE_STS1_SHIFT 3
> +#define MADERA_HP2R_ENABLE_DONE_STS1_WIDTH 1
> +#define MADERA_HP2L_ENABLE_DONE_STS1 0x0004
> +#define MADERA_HP2L_ENABLE_DONE_STS1_MASK 0x0004
> +#define MADERA_HP2L_ENABLE_DONE_STS1_SHIFT 2
> +#define MADERA_HP2L_ENABLE_DONE_STS1_WIDTH 1
> +#define MADERA_HP1R_ENABLE_DONE_STS1 0x0002
> +#define MADERA_HP1R_ENABLE_DONE_STS1_MASK 0x0002
> +#define MADERA_HP1R_ENABLE_DONE_STS1_SHIFT 1
> +#define MADERA_HP1R_ENABLE_DONE_STS1_WIDTH 1
> +#define MADERA_HP1L_ENABLE_DONE_STS1 0x0001
> +#define MADERA_HP1L_ENABLE_DONE_STS1_MASK 0x0001
> +#define MADERA_HP1L_ENABLE_DONE_STS1_SHIFT 0
> +#define MADERA_HP1L_ENABLE_DONE_STS1_WIDTH 1
> +
> +/* (0x188D) - IRQ1 Raw Status 14 */
> +#define MADERA_SPKOUTR_DISABLE_DONE_STS1 0x0080
> +#define MADERA_SPKOUTR_DISABLE_DONE_STS1_MASK 0x0080
> +#define MADERA_SPKOUTR_DISABLE_DONE_STS1_SHIFT 7
> +#define MADERA_SPKOUTR_DISABLE_DONE_STS1_WIDTH 1
> +#define MADERA_SPKOUTL_DISABLE_DONE_STS1 0x0040
> +#define MADERA_SPKOUTL_DISABLE_DONE_STS1_MASK 0x0040
> +#define MADERA_SPKOUTL_DISABLE_DONE_STS1_SHIFT 6
> +#define MADERA_SPKOUTL_DISABLE_DONE_STS1_WIDTH 1
> +#define MADERA_HP3R_DISABLE_DONE_STS1 0x0020
> +#define MADERA_HP3R_DISABLE_DONE_STS1_MASK 0x0020
> +#define MADERA_HP3R_DISABLE_DONE_STS1_SHIFT 5
> +#define MADERA_HP3R_DISABLE_DONE_STS1_WIDTH 1
> +#define MADERA_HP3L_DISABLE_DONE_STS1 0x0010
> +#define MADERA_HP3L_DISABLE_DONE_STS1_MASK 0x0010
> +#define MADERA_HP3L_DISABLE_DONE_STS1_SHIFT 4
> +#define MADERA_HP3L_DISABLE_DONE_STS1_WIDTH 1
> +#define MADERA_HP2R_DISABLE_DONE_STS1 0x0008
> +#define MADERA_HP2R_DISABLE_DONE_STS1_MASK 0x0008
> +#define MADERA_HP2R_DISABLE_DONE_STS1_SHIFT 3
> +#define MADERA_HP2R_DISABLE_DONE_STS1_WIDTH 1
> +#define MADERA_HP2L_DISABLE_DONE_STS1 0x0004
> +#define MADERA_HP2L_DISABLE_DONE_STS1_MASK 0x0004
> +#define MADERA_HP2L_DISABLE_DONE_STS1_SHIFT 2
> +#define MADERA_HP2L_DISABLE_DONE_STS1_WIDTH 1
> +#define MADERA_HP1R_DISABLE_DONE_STS1 0x0002
> +#define MADERA_HP1R_DISABLE_DONE_STS1_MASK 0x0002
> +#define MADERA_HP1R_DISABLE_DONE_STS1_SHIFT 1
> +#define MADERA_HP1R_DISABLE_DONE_STS1_WIDTH 1
> +#define MADERA_HP1L_DISABLE_DONE_STS1 0x0001
> +#define MADERA_HP1L_DISABLE_DONE_STS1_MASK 0x0001
> +#define MADERA_HP1L_DISABLE_DONE_STS1_SHIFT 0
> +#define MADERA_HP1L_DISABLE_DONE_STS1_WIDTH 1
> +
> +/* (0x188E) - IRQ1 Raw Status 15 */
> +#define MADERA_SPK_OVERHEAT_WARN_STS1 0x0004
> +#define MADERA_SPK_OVERHEAT_WARN_STS1_MASK 0x0004
> +#define MADERA_SPK_OVERHEAT_WARN_STS1_SHIFT 2
> +#define MADERA_SPK_OVERHEAT_WARN_STS1_WIDTH 1
> +#define MADERA_SPK_OVERHEAT_STS1 0x0002
> +#define MADERA_SPK_OVERHEAT_STS1_MASK 0x0002
> +#define MADERA_SPK_OVERHEAT_STS1_SHIFT 1
> +#define MADERA_SPK_OVERHEAT_STS1_WIDTH 1
> +#define MADERA_SPK_SHUTDOWN_STS1 0x0001
> +#define MADERA_SPK_SHUTDOWN_STS1_MASK 0x0001
> +#define MADERA_SPK_SHUTDOWN_STS1_SHIFT 0
> +#define MADERA_SPK_SHUTDOWN_STS1_WIDTH 1
> +
> +/* (0x1900) IRQ2_Status_1 */
> +#define MADERA_DSP_SHARED_WR_COLL_EINT2 0x8000
> +#define MADERA_DSP_SHARED_WR_COLL_EINT2_MASK 0x8000
> +#define MADERA_DSP_SHARED_WR_COLL_EINT2_SHIFT 15
> +#define MADERA_DSP_SHARED_WR_COLL_EINT2_WIDTH 1
> +#define MADERA_CTRLIF_ERR_EINT2 0x1000
> +#define MADERA_CTRLIF_ERR_EINT2_MASK 0x1000
> +#define MADERA_CTRLIF_ERR_EINT2_SHIFT 12
> +#define MADERA_CTRLIF_ERR_EINT2_WIDTH 1
> +#define MADERA_SYSCLK_FAIL_EINT2 0x0200
> +#define MADERA_SYSCLK_FAIL_EINT2_MASK 0x0200
> +#define MADERA_SYSCLK_FAIL_EINT2_SHIFT 9
> +#define MADERA_SYSCLK_FAIL_EINT2_WIDTH 1
> +#define MADERA_CLOCK_DETECT_EINT2 0x0100
> +#define MADERA_CLOCK_DETECT_EINT2_MASK 0x0100
> +#define MADERA_CLOCK_DETECT_EINT2_SHIFT 8
> +#define MADERA_CLOCK_DETECT_EINT2_WIDTH 1
> +#define MADERA_BOOT_DONE_EINT2 0x0080
> +#define MADERA_BOOT_DONE_EINT2_MASK 0x0080
> +#define MADERA_BOOT_DONE_EINT2_SHIFT 7
> +#define MADERA_BOOT_DONE_EINT2_WIDTH 1
> +
> +/* (0x1901) IRQ2_Status_2 */
> +#define MADERA_FLL3_LOCK_EINT2 0x0400
> +#define MADERA_FLL3_LOCK_EINT2_MASK 0x0400
> +#define MADERA_FLL3_LOCK_EINT2_SHIFT 10
> +#define MADERA_FLL3_LOCK_EINT2_WIDTH 1
> +#define MADERA_FLL2_LOCK_EINT2 0x0200
> +#define MADERA_FLL2_LOCK_EINT2_MASK 0x0200
> +#define MADERA_FLL2_LOCK_EINT2_SHIFT 9
> +#define MADERA_FLL2_LOCK_EINT2_WIDTH 1
> +#define MADERA_FLL1_LOCK_EINT2 0x0100
> +#define MADERA_FLL1_LOCK_EINT2_MASK 0x0100
> +#define MADERA_FLL1_LOCK_EINT2_SHIFT 8
> +#define MADERA_FLL1_LOCK_EINT2_WIDTH 1
> +
> +/* (0x1905) IRQ2_Status_6 */
> +#define MADERA_MICDET2_EINT2 0x0200
> +#define MADERA_MICDET2_EINT2_MASK 0x0200
> +#define MADERA_MICDET2_EINT2_SHIFT 9
> +#define MADERA_MICDET2_EINT2_WIDTH 1
> +#define MADERA_MICDET1_EINT2 0x0100
> +#define MADERA_MICDET1_EINT2_MASK 0x0100
> +#define MADERA_MICDET1_EINT2_SHIFT 8
> +#define MADERA_MICDET1_EINT2_WIDTH 1
> +#define MADERA_HPDET_EINT2 0x0001
> +#define MADERA_HPDET_EINT2_MASK 0x0001
> +#define MADERA_HPDET_EINT2_SHIFT 0
> +#define MADERA_HPDET_EINT2_WIDTH 1
> +
> +/* (0x1906) IRQ2_Status_7 */
> +#define MADERA_MICD_CLAMP_FALL_EINT2 0x0020
> +#define MADERA_MICD_CLAMP_FALL_EINT2_MASK 0x0020
> +#define MADERA_MICD_CLAMP_FALL_EINT2_SHIFT 5
> +#define MADERA_MICD_CLAMP_FALL_EINT2_WIDTH 1
> +#define MADERA_MICD_CLAMP_RISE_EINT2 0x0010
> +#define MADERA_MICD_CLAMP_RISE_EINT2_MASK 0x0010
> +#define MADERA_MICD_CLAMP_RISE_EINT2_SHIFT 4
> +#define MADERA_MICD_CLAMP_RISE_EINT2_WIDTH 1
> +#define MADERA_JD2_FALL_EINT2 0x0008
> +#define MADERA_JD2_FALL_EINT2_MASK 0x0008
> +#define MADERA_JD2_FALL_EINT2_SHIFT 3
> +#define MADERA_JD2_FALL_EINT2_WIDTH 1
> +#define MADERA_JD2_RISE_EINT2 0x0004
> +#define MADERA_JD2_RISE_EINT2_MASK 0x0004
> +#define MADERA_JD2_RISE_EINT2_SHIFT 2
> +#define MADERA_JD2_RISE_EINT2_WIDTH 1
> +#define MADERA_JD1_FALL_EINT2 0x0002
> +#define MADERA_JD1_FALL_EINT2_MASK 0x0002
> +#define MADERA_JD1_FALL_EINT2_SHIFT 1
> +#define MADERA_JD1_FALL_EINT2_WIDTH 1
> +#define MADERA_JD1_RISE_EINT2 0x0001
> +#define MADERA_JD1_RISE_EINT2_MASK 0x0001
> +#define MADERA_JD1_RISE_EINT2_SHIFT 0
> +#define MADERA_JD1_RISE_EINT2_WIDTH 1
> +
> +/* (0x1908) IRQ2_Status_9 */
> +#define MADERA_ASRC2_IN2_LOCK_EINT2 0x0800
> +#define MADERA_ASRC2_IN2_LOCK_EINT2_MASK 0x0800
> +#define MADERA_ASRC2_IN2_LOCK_EINT2_SHIFT 11
> +#define MADERA_ASRC2_IN2_LOCK_EINT2_WIDTH 1
> +#define MADERA_ASRC2_IN1_LOCK_EINT2 0x0400
> +#define MADERA_ASRC2_IN1_LOCK_EINT2_MASK 0x0400
> +#define MADERA_ASRC2_IN1_LOCK_EINT2_SHIFT 10
> +#define MADERA_ASRC2_IN1_LOCK_EINT2_WIDTH 1
> +#define MADERA_ASRC1_IN2_LOCK_EINT2 0x0200
> +#define MADERA_ASRC1_IN2_LOCK_EINT2_MASK 0x0200
> +#define MADERA_ASRC1_IN2_LOCK_EINT2_SHIFT 9
> +#define MADERA_ASRC1_IN2_LOCK_EINT2_WIDTH 1
> +#define MADERA_ASRC1_IN1_LOCK_EINT2 0x0100
> +#define MADERA_ASRC1_IN1_LOCK_EINT2_MASK 0x0100
> +#define MADERA_ASRC1_IN1_LOCK_EINT2_SHIFT 8
> +#define MADERA_ASRC1_IN1_LOCK_EINT2_WIDTH 1
> +#define MADERA_DRC2_SIG_DET_EINT2 0x0002
> +#define MADERA_DRC2_SIG_DET_EINT2_MASK 0x0002
> +#define MADERA_DRC2_SIG_DET_EINT2_SHIFT 1
> +#define MADERA_DRC2_SIG_DET_EINT2_WIDTH 1
> +#define MADERA_DRC1_SIG_DET_EINT2 0x0001
> +#define MADERA_DRC1_SIG_DET_EINT2_MASK 0x0001
> +#define MADERA_DRC1_SIG_DET_EINT2_SHIFT 0
> +#define MADERA_DRC1_SIG_DET_EINT2_WIDTH 1
> +
> +/* (0x190A) IRQ2_Status_11 */
> +#define MADERA_DSP_IRQ16_EINT2 0x8000
> +#define MADERA_DSP_IRQ16_EINT2_MASK 0x8000
> +#define MADERA_DSP_IRQ16_EINT2_SHIFT 15
> +#define MADERA_DSP_IRQ16_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ15_EINT2 0x4000
> +#define MADERA_DSP_IRQ15_EINT2_MASK 0x4000
> +#define MADERA_DSP_IRQ15_EINT2_SHIFT 14
> +#define MADERA_DSP_IRQ15_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ14_EINT2 0x2000
> +#define MADERA_DSP_IRQ14_EINT2_MASK 0x2000
> +#define MADERA_DSP_IRQ14_EINT2_SHIFT 13
> +#define MADERA_DSP_IRQ14_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ13_EINT2 0x1000
> +#define MADERA_DSP_IRQ13_EINT2_MASK 0x1000
> +#define MADERA_DSP_IRQ13_EINT2_SHIFT 12
> +#define MADERA_DSP_IRQ13_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ12_EINT2 0x0800
> +#define MADERA_DSP_IRQ12_EINT2_MASK 0x0800
> +#define MADERA_DSP_IRQ12_EINT2_SHIFT 11
> +#define MADERA_DSP_IRQ12_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ11_EINT2 0x0400
> +#define MADERA_DSP_IRQ11_EINT2_MASK 0x0400
> +#define MADERA_DSP_IRQ11_EINT2_SHIFT 10
> +#define MADERA_DSP_IRQ11_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ10_EINT2 0x0200
> +#define MADERA_DSP_IRQ10_EINT2_MASK 0x0200
> +#define MADERA_DSP_IRQ10_EINT2_SHIFT 9
> +#define MADERA_DSP_IRQ10_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ9_EINT2 0x0100
> +#define MADERA_DSP_IRQ9_EINT2_MASK 0x0100
> +#define MADERA_DSP_IRQ9_EINT2_SHIFT 8
> +#define MADERA_DSP_IRQ9_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ8_EINT2 0x0080
> +#define MADERA_DSP_IRQ8_EINT2_MASK 0x0080
> +#define MADERA_DSP_IRQ8_EINT2_SHIFT 7
> +#define MADERA_DSP_IRQ8_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ7_EINT2 0x0040
> +#define MADERA_DSP_IRQ7_EINT2_MASK 0x0040
> +#define MADERA_DSP_IRQ7_EINT2_SHIFT 6
> +#define MADERA_DSP_IRQ7_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ6_EINT2 0x0020
> +#define MADERA_DSP_IRQ6_EINT2_MASK 0x0020
> +#define MADERA_DSP_IRQ6_EINT2_SHIFT 5
> +#define MADERA_DSP_IRQ6_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ5_EINT2 0x0010
> +#define MADERA_DSP_IRQ5_EINT2_MASK 0x0010
> +#define MADERA_DSP_IRQ5_EINT2_SHIFT 4
> +#define MADERA_DSP_IRQ5_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ4_EINT2 0x0008
> +#define MADERA_DSP_IRQ4_EINT2_MASK 0x0008
> +#define MADERA_DSP_IRQ4_EINT2_SHIFT 3
> +#define MADERA_DSP_IRQ4_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ3_EINT2 0x0004
> +#define MADERA_DSP_IRQ3_EINT2_MASK 0x0004
> +#define MADERA_DSP_IRQ3_EINT2_SHIFT 2
> +#define MADERA_DSP_IRQ3_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ2_EINT2 0x0002
> +#define MADERA_DSP_IRQ2_EINT2_MASK 0x0002
> +#define MADERA_DSP_IRQ2_EINT2_SHIFT 1
> +#define MADERA_DSP_IRQ2_EINT2_WIDTH 1
> +#define MADERA_DSP_IRQ1_EINT2 0x0001
> +#define MADERA_DSP_IRQ1_EINT2_MASK 0x0001
> +#define MADERA_DSP_IRQ1_EINT2_SHIFT 0
> +#define MADERA_DSP_IRQ1_EINT2_WIDTH 1
> +
> +/* (0x190B) IRQ2_Status_12 */
> +#define MADERA_SPKOUTR_SC_EINT2 0x0080
> +#define MADERA_SPKOUTR_SC_EINT2_MASK 0x0080
> +#define MADERA_SPKOUTR_SC_EINT2_SHIFT 7
> +#define MADERA_SPKOUTR_SC_EINT2_WIDTH 1
> +#define MADERA_SPKOUTL_SC_EINT2 0x0040
> +#define MADERA_SPKOUTL_SC_EINT2_MASK 0x0040
> +#define MADERA_SPKOUTL_SC_EINT2_SHIFT 6
> +#define MADERA_SPKOUTL_SC_EINT2_WIDTH 1
> +#define MADERA_HP3R_SC_EINT2 0x0020
> +#define MADERA_HP3R_SC_EINT2_MASK 0x0020
> +#define MADERA_HP3R_SC_EINT2_SHIFT 5
> +#define MADERA_HP3R_SC_EINT2_WIDTH 1
> +#define MADERA_HP3L_SC_EINT2 0x0010
> +#define MADERA_HP3L_SC_EINT2_MASK 0x0010
> +#define MADERA_HP3L_SC_EINT2_SHIFT 4
> +#define MADERA_HP3L_SC_EINT2_WIDTH 1
> +#define MADERA_HP2R_SC_EINT2 0x0008
> +#define MADERA_HP2R_SC_EINT2_MASK 0x0008
> +#define MADERA_HP2R_SC_EINT2_SHIFT 3
> +#define MADERA_HP2R_SC_EINT2_WIDTH 1
> +#define MADERA_HP2L_SC_EINT2 0x0004
> +#define MADERA_HP2L_SC_EINT2_MASK 0x0004
> +#define MADERA_HP2L_SC_EINT2_SHIFT 2
> +#define MADERA_HP2L_SC_EINT2_WIDTH 1
> +#define MADERA_HP1R_SC_EINT2 0x0002
> +#define MADERA_HP1R_SC_EINT2_MASK 0x0002
> +#define MADERA_HP1R_SC_EINT2_SHIFT 1
> +#define MADERA_HP1R_SC_EINT2_WIDTH 1
> +#define MADERA_HP1L_SC_EINT2 0x0001
> +#define MADERA_HP1L_SC_EINT2_MASK 0x0001
> +#define MADERA_HP1L_SC_EINT2_SHIFT 0
> +#define MADERA_HP1L_SC_EINT2_WIDTH 1
> +
> +/* (0x190C) IRQ2_Status_13 */
> +#define MADERA_SPKOUTR_ENABLE_DONE_EINT2 0x0080
> +#define MADERA_SPKOUTR_ENABLE_DONE_EINT2_MASK 0x0080
> +#define MADERA_SPKOUTR_ENABLE_DONE_EINT2_SHIFT 7
> +#define MADERA_SPKOUTR_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_SPKOUTL_ENABLE_DONE_EINT2 0x0040
> +#define MADERA_SPKOUTL_ENABLE_DONE_EINT2_MASK 0x0040
> +#define MADERA_SPKOUTL_ENABLE_DONE_EINT2_SHIFT 6
> +#define MADERA_SPKOUTL_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_HP3R_ENABLE_DONE_EINT2 0x0020
> +#define MADERA_HP3R_ENABLE_DONE_EINT2_MASK 0x0020
> +#define MADERA_HP3R_ENABLE_DONE_EINT2_SHIFT 5
> +#define MADERA_HP3R_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_HP3L_ENABLE_DONE_EINT2 0x0010
> +#define MADERA_HP3L_ENABLE_DONE_EINT2_MASK 0x0010
> +#define MADERA_HP3L_ENABLE_DONE_EINT2_SHIFT 4
> +#define MADERA_HP3L_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_HP2R_ENABLE_DONE_EINT2 0x0008
> +#define MADERA_HP2R_ENABLE_DONE_EINT2_MASK 0x0008
> +#define MADERA_HP2R_ENABLE_DONE_EINT2_SHIFT 3
> +#define MADERA_HP2R_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_HP2L_ENABLE_DONE_EINT2 0x0004
> +#define MADERA_HP2L_ENABLE_DONE_EINT2_MASK 0x0004
> +#define MADERA_HP2L_ENABLE_DONE_EINT2_SHIFT 2
> +#define MADERA_HP2L_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_HP1R_ENABLE_DONE_EINT2 0x0002
> +#define MADERA_HP1R_ENABLE_DONE_EINT2_MASK 0x0002
> +#define MADERA_HP1R_ENABLE_DONE_EINT2_SHIFT 1
> +#define MADERA_HP1R_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_HP1L_ENABLE_DONE_EINT2 0x0001
> +#define MADERA_HP1L_ENABLE_DONE_EINT2_MASK 0x0001
> +#define MADERA_HP1L_ENABLE_DONE_EINT2_SHIFT 0
> +#define MADERA_HP1L_ENABLE_DONE_EINT2_WIDTH 1
> +
> +/* (0x190D) IRQ2_Status_14 */
> +#define MADERA_SPKOUTR_DISABLE_DONE_EINT2 0x0080
> +#define MADERA_SPKOUTR_DISABLE_DONE_EINT2_MASK 0x0080
> +#define MADERA_SPKOUTR_DISABLE_DONE_EINT2_SHIFT 7
> +#define MADERA_SPKOUTR_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_SPKOUTL_DISABLE_DONE_EINT2 0x0040
> +#define MADERA_SPKOUTL_DISABLE_DONE_EINT2_MASK 0x0040
> +#define MADERA_SPKOUTL_DISABLE_DONE_EINT2_SHIFT 6
> +#define MADERA_SPKOUTL_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_HP3R_DISABLE_DONE_EINT2 0x0020
> +#define MADERA_HP3R_DISABLE_DONE_EINT2_MASK 0x0020
> +#define MADERA_HP3R_DISABLE_DONE_EINT2_SHIFT 5
> +#define MADERA_HP3R_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_HP3L_DISABLE_DONE_EINT2 0x0010
> +#define MADERA_HP3L_DISABLE_DONE_EINT2_MASK 0x0010
> +#define MADERA_HP3L_DISABLE_DONE_EINT2_SHIFT 4
> +#define MADERA_HP3L_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_HP2R_DISABLE_DONE_EINT2 0x0008
> +#define MADERA_HP2R_DISABLE_DONE_EINT2_MASK 0x0008
> +#define MADERA_HP2R_DISABLE_DONE_EINT2_SHIFT 3
> +#define MADERA_HP2R_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_HP2L_DISABLE_DONE_EINT2 0x0004
> +#define MADERA_HP2L_DISABLE_DONE_EINT2_MASK 0x0004
> +#define MADERA_HP2L_DISABLE_DONE_EINT2_SHIFT 2
> +#define MADERA_HP2L_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_HP1R_DISABLE_DONE_EINT2 0x0002
> +#define MADERA_HP1R_DISABLE_DONE_EINT2_MASK 0x0002
> +#define MADERA_HP1R_DISABLE_DONE_EINT2_SHIFT 1
> +#define MADERA_HP1R_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_HP1L_DISABLE_DONE_EINT2 0x0001
> +#define MADERA_HP1L_DISABLE_DONE_EINT2_MASK 0x0001
> +#define MADERA_HP1L_DISABLE_DONE_EINT2_SHIFT 0
> +#define MADERA_HP1L_DISABLE_DONE_EINT2_WIDTH 1
> +
> +/* (0x190E) IRQ2_Status_15 */
> +#define MADERA_SPK_OVERHEAT_WARN_EINT2 0x0004
> +#define MADERA_SPK_OVERHEAT_WARN_EINT2_MASK 0x0004
> +#define MADERA_SPK_OVERHEAT_WARN_EINT2_SHIFT 2
> +#define MADERA_SPK_OVERHEAT_WARN_EINT2_WIDTH 1
> +#define MADERA_SPK_OVERHEAT_EINT2 0x0002
> +#define MADERA_SPK_OVERHEAT_EINT2_MASK 0x0002
> +#define MADERA_SPK_OVERHEAT_EINT2_SHIFT 1
> +#define MADERA_SPK_OVERHEAT_EINT2_WIDTH 1
> +#define MADERA_SPK_SHUTDOWN_EINT2 0x0001
> +#define MADERA_SPK_SHUTDOWN_EINT2_MASK 0x0001
> +#define MADERA_SPK_SHUTDOWN_EINT2_SHIFT 0
> +#define MADERA_SPK_SHUTDOWN_EINT2_WIDTH 1
> +
> +/* (0x1940) IRQ2_Mask_1 */
> +#define MADERA_IM_DSP_SHARED_WR_COLL_EINT2 0x8000
> +#define MADERA_IM_DSP_SHARED_WR_COLL_EINT2_MASK 0x8000
> +#define MADERA_IM_DSP_SHARED_WR_COLL_EINT2_SHIFT 15
> +#define MADERA_IM_DSP_SHARED_WR_COLL_EINT2_WIDTH 1
> +#define MADERA_IM_CTRLIF_ERR_EINT2 0x1000
> +#define MADERA_IM_CTRLIF_ERR_EINT2_MASK 0x1000
> +#define MADERA_IM_CTRLIF_ERR_EINT2_SHIFT 12
> +#define MADERA_IM_CTRLIF_ERR_EINT2_WIDTH 1
> +#define MADERA_IM_SYSCLK_FAIL_EINT2 0x0200
> +#define MADERA_IM_SYSCLK_FAIL_EINT2_MASK 0x0200
> +#define MADERA_IM_SYSCLK_FAIL_EINT2_SHIFT 9
> +#define MADERA_IM_SYSCLK_FAIL_EINT2_WIDTH 1
> +#define MADERA_IM_CLOCK_DETECT_EINT2 0x0100
> +#define MADERA_IM_CLOCK_DETECT_EINT2_MASK 0x0100
> +#define MADERA_IM_CLOCK_DETECT_EINT2_SHIFT 8
> +#define MADERA_IM_CLOCK_DETECT_EINT2_WIDTH 1
> +#define MADERA_IM_BOOT_DONE_EINT2 0x0080
> +#define MADERA_IM_BOOT_DONE_EINT2_MASK 0x0080
> +#define MADERA_IM_BOOT_DONE_EINT2_SHIFT 7
> +#define MADERA_IM_BOOT_DONE_EINT2_WIDTH 1
> +
> +/* (0x1941) IRQ2_Mask_2 */
> +#define MADERA_IM_FLL3_LOCK_EINT2 0x0400
> +#define MADERA_IM_FLL3_LOCK_EINT2_MASK 0x0400
> +#define MADERA_IM_FLL3_LOCK_EINT2_SHIFT 10
> +#define MADERA_IM_FLL3_LOCK_EINT2_WIDTH 1
> +#define MADERA_IM_FLL2_LOCK_EINT2 0x0200
> +#define MADERA_IM_FLL2_LOCK_EINT2_MASK 0x0200
> +#define MADERA_IM_FLL2_LOCK_EINT2_SHIFT 9
> +#define MADERA_IM_FLL2_LOCK_EINT2_WIDTH 1
> +#define MADERA_IM_FLL1_LOCK_EINT2 0x0100
> +#define MADERA_IM_FLL1_LOCK_EINT2_MASK 0x0100
> +#define MADERA_IM_FLL1_LOCK_EINT2_SHIFT 8
> +#define MADERA_IM_FLL1_LOCK_EINT2_WIDTH 1
> +
> +/* (0x1945) IRQ2_Mask_6 */
> +#define MADERA_IM_MICDET2_EINT2 0x0200
> +#define MADERA_IM_MICDET2_EINT2_MASK 0x0200
> +#define MADERA_IM_MICDET2_EINT2_SHIFT 9
> +#define MADERA_IM_MICDET2_EINT2_WIDTH 1
> +#define MADERA_IM_MICDET1_EINT2 0x0100
> +#define MADERA_IM_MICDET1_EINT2_MASK 0x0100
> +#define MADERA_IM_MICDET1_EINT2_SHIFT 8
> +#define MADERA_IM_MICDET1_EINT2_WIDTH 1
> +#define MADERA_IM_HPDET_EINT2 0x0001
> +#define MADERA_IM_HPDET_EINT2_MASK 0x0001
> +#define MADERA_IM_HPDET_EINT2_SHIFT 0
> +#define MADERA_IM_HPDET_EINT2_WIDTH 1
> +
> +/* (0x1946) IRQ2_Mask_7 */
> +#define MADERA_IM_MICD_CLAMP_FALL_EINT2 0x0020
> +#define MADERA_IM_MICD_CLAMP_FALL_EINT2_MASK 0x0020
> +#define MADERA_IM_MICD_CLAMP_FALL_EINT2_SHIFT 5
> +#define MADERA_IM_MICD_CLAMP_FALL_EINT2_WIDTH 1
> +#define MADERA_IM_MICD_CLAMP_RISE_EINT2 0x0010
> +#define MADERA_IM_MICD_CLAMP_RISE_EINT2_MASK 0x0010
> +#define MADERA_IM_MICD_CLAMP_RISE_EINT2_SHIFT 4
> +#define MADERA_IM_MICD_CLAMP_RISE_EINT2_WIDTH 1
> +#define MADERA_IM_JD2_FALL_EINT2 0x0008
> +#define MADERA_IM_JD2_FALL_EINT2_MASK 0x0008
> +#define MADERA_IM_JD2_FALL_EINT2_SHIFT 3
> +#define MADERA_IM_JD2_FALL_EINT2_WIDTH 1
> +#define MADERA_IM_JD2_RISE_EINT2 0x0004
> +#define MADERA_IM_JD2_RISE_EINT2_MASK 0x0004
> +#define MADERA_IM_JD2_RISE_EINT2_SHIFT 2
> +#define MADERA_IM_JD2_RISE_EINT2_WIDTH 1
> +#define MADERA_IM_JD1_FALL_EINT2 0x0002
> +#define MADERA_IM_JD1_FALL_EINT2_MASK 0x0002
> +#define MADERA_IM_JD1_FALL_EINT2_SHIFT 1
> +#define MADERA_IM_JD1_FALL_EINT2_WIDTH 1
> +#define MADERA_IM_JD1_RISE_EINT2 0x0001
> +#define MADERA_IM_JD1_RISE_EINT2_MASK 0x0001
> +#define MADERA_IM_JD1_RISE_EINT2_SHIFT 0
> +#define MADERA_IM_JD1_RISE_EINT2_WIDTH 1
> +
> +/* (0x1948) IRQ2_Mask_9 */
> +#define MADERA_IM_ASRC2_IN2_LOCK_EINT2 0x0800
> +#define MADERA_IM_ASRC2_IN2_LOCK_EINT2_MASK 0x0800
> +#define MADERA_IM_ASRC2_IN2_LOCK_EINT2_SHIFT 11
> +#define MADERA_IM_ASRC2_IN2_LOCK_EINT2_WIDTH 1
> +#define MADERA_IM_ASRC2_IN1_LOCK_EINT2 0x0400
> +#define MADERA_IM_ASRC2_IN1_LOCK_EINT2_MASK 0x0400
> +#define MADERA_IM_ASRC2_IN1_LOCK_EINT2_SHIFT 10
> +#define MADERA_IM_ASRC2_IN1_LOCK_EINT2_WIDTH 1
> +#define MADERA_IM_ASRC1_IN2_LOCK_EINT2 0x0200
> +#define MADERA_IM_ASRC1_IN2_LOCK_EINT2_MASK 0x0200
> +#define MADERA_IM_ASRC1_IN2_LOCK_EINT2_SHIFT 9
> +#define MADERA_IM_ASRC1_IN2_LOCK_EINT2_WIDTH 1
> +#define MADERA_IM_ASRC1_IN1_LOCK_EINT2 0x0100
> +#define MADERA_IM_ASRC1_IN1_LOCK_EINT2_MASK 0x0100
> +#define MADERA_IM_ASRC1_IN1_LOCK_EINT2_SHIFT 8
> +#define MADERA_IM_ASRC1_IN1_LOCK_EINT2_WIDTH 1
> +#define MADERA_IM_DRC2_SIG_DET_EINT2 0x0002
> +#define MADERA_IM_DRC2_SIG_DET_EINT2_MASK 0x0002
> +#define MADERA_IM_DRC2_SIG_DET_EINT2_SHIFT 1
> +#define MADERA_IM_DRC2_SIG_DET_EINT2_WIDTH 1
> +#define MADERA_IM_DRC1_SIG_DET_EINT2 0x0001
> +#define MADERA_IM_DRC1_SIG_DET_EINT2_MASK 0x0001
> +#define MADERA_IM_DRC1_SIG_DET_EINT2_SHIFT 0
> +#define MADERA_IM_DRC1_SIG_DET_EINT2_WIDTH 1
> +
> +/* (0x194A) IRQ2_Mask_11 */
> +#define MADERA_IM_DSP_IRQ16_EINT2 0x8000
> +#define MADERA_IM_DSP_IRQ16_EINT2_MASK 0x8000
> +#define MADERA_IM_DSP_IRQ16_EINT2_SHIFT 15
> +#define MADERA_IM_DSP_IRQ16_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ15_EINT2 0x4000
> +#define MADERA_IM_DSP_IRQ15_EINT2_MASK 0x4000
> +#define MADERA_IM_DSP_IRQ15_EINT2_SHIFT 14
> +#define MADERA_IM_DSP_IRQ15_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ14_EINT2 0x2000
> +#define MADERA_IM_DSP_IRQ14_EINT2_MASK 0x2000
> +#define MADERA_IM_DSP_IRQ14_EINT2_SHIFT 13
> +#define MADERA_IM_DSP_IRQ14_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ13_EINT2 0x1000
> +#define MADERA_IM_DSP_IRQ13_EINT2_MASK 0x1000
> +#define MADERA_IM_DSP_IRQ13_EINT2_SHIFT 12
> +#define MADERA_IM_DSP_IRQ13_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ12_EINT2 0x0800
> +#define MADERA_IM_DSP_IRQ12_EINT2_MASK 0x0800
> +#define MADERA_IM_DSP_IRQ12_EINT2_SHIFT 11
> +#define MADERA_IM_DSP_IRQ12_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ11_EINT2 0x0400
> +#define MADERA_IM_DSP_IRQ11_EINT2_MASK 0x0400
> +#define MADERA_IM_DSP_IRQ11_EINT2_SHIFT 10
> +#define MADERA_IM_DSP_IRQ11_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ10_EINT2 0x0200
> +#define MADERA_IM_DSP_IRQ10_EINT2_MASK 0x0200
> +#define MADERA_IM_DSP_IRQ10_EINT2_SHIFT 9
> +#define MADERA_IM_DSP_IRQ10_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ9_EINT2 0x0100
> +#define MADERA_IM_DSP_IRQ9_EINT2_MASK 0x0100
> +#define MADERA_IM_DSP_IRQ9_EINT2_SHIFT 8
> +#define MADERA_IM_DSP_IRQ9_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ8_EINT2 0x0080
> +#define MADERA_IM_DSP_IRQ8_EINT2_MASK 0x0080
> +#define MADERA_IM_DSP_IRQ8_EINT2_SHIFT 7
> +#define MADERA_IM_DSP_IRQ8_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ7_EINT2 0x0040
> +#define MADERA_IM_DSP_IRQ7_EINT2_MASK 0x0040
> +#define MADERA_IM_DSP_IRQ7_EINT2_SHIFT 6
> +#define MADERA_IM_DSP_IRQ7_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ6_EINT2 0x0020
> +#define MADERA_IM_DSP_IRQ6_EINT2_MASK 0x0020
> +#define MADERA_IM_DSP_IRQ6_EINT2_SHIFT 5
> +#define MADERA_IM_DSP_IRQ6_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ5_EINT2 0x0010
> +#define MADERA_IM_DSP_IRQ5_EINT2_MASK 0x0010
> +#define MADERA_IM_DSP_IRQ5_EINT2_SHIFT 4
> +#define MADERA_IM_DSP_IRQ5_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ4_EINT2 0x0008
> +#define MADERA_IM_DSP_IRQ4_EINT2_MASK 0x0008
> +#define MADERA_IM_DSP_IRQ4_EINT2_SHIFT 3
> +#define MADERA_IM_DSP_IRQ4_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ3_EINT2 0x0004
> +#define MADERA_IM_DSP_IRQ3_EINT2_MASK 0x0004
> +#define MADERA_IM_DSP_IRQ3_EINT2_SHIFT 2
> +#define MADERA_IM_DSP_IRQ3_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ2_EINT2 0x0002
> +#define MADERA_IM_DSP_IRQ2_EINT2_MASK 0x0002
> +#define MADERA_IM_DSP_IRQ2_EINT2_SHIFT 1
> +#define MADERA_IM_DSP_IRQ2_EINT2_WIDTH 1
> +#define MADERA_IM_DSP_IRQ1_EINT2 0x0001
> +#define MADERA_IM_DSP_IRQ1_EINT2_MASK 0x0001
> +#define MADERA_IM_DSP_IRQ1_EINT2_SHIFT 0
> +#define MADERA_IM_DSP_IRQ1_EINT2_WIDTH 1
> +
> +/* (0x194B) IRQ2_Mask_12 */
> +#define MADERA_IM_SPKOUTR_SC_EINT2 0x0080
> +#define MADERA_IM_SPKOUTR_SC_EINT2_MASK 0x0080
> +#define MADERA_IM_SPKOUTR_SC_EINT2_SHIFT 7
> +#define MADERA_IM_SPKOUTR_SC_EINT2_WIDTH 1
> +#define MADERA_IM_SPKOUTL_SC_EINT2 0x0040
> +#define MADERA_IM_SPKOUTL_SC_EINT2_MASK 0x0040
> +#define MADERA_IM_SPKOUTL_SC_EINT2_SHIFT 6
> +#define MADERA_IM_SPKOUTL_SC_EINT2_WIDTH 1
> +#define MADERA_IM_HP3R_SC_EINT2 0x0020
> +#define MADERA_IM_HP3R_SC_EINT2_MASK 0x0020
> +#define MADERA_IM_HP3R_SC_EINT2_SHIFT 5
> +#define MADERA_IM_HP3R_SC_EINT2_WIDTH 1
> +#define MADERA_IM_HP3L_SC_EINT2 0x0010
> +#define MADERA_IM_HP3L_SC_EINT2_MASK 0x0010
> +#define MADERA_IM_HP3L_SC_EINT2_SHIFT 4
> +#define MADERA_IM_HP3L_SC_EINT2_WIDTH 1
> +#define MADERA_IM_HP2R_SC_EINT2 0x0008
> +#define MADERA_IM_HP2R_SC_EINT2_MASK 0x0008
> +#define MADERA_IM_HP2R_SC_EINT2_SHIFT 3
> +#define MADERA_IM_HP2R_SC_EINT2_WIDTH 1
> +#define MADERA_IM_HP2L_SC_EINT2 0x0004
> +#define MADERA_IM_HP2L_SC_EINT2_MASK 0x0004
> +#define MADERA_IM_HP2L_SC_EINT2_SHIFT 2
> +#define MADERA_IM_HP2L_SC_EINT2_WIDTH 1
> +#define MADERA_IM_HP1R_SC_EINT2 0x0002
> +#define MADERA_IM_HP1R_SC_EINT2_MASK 0x0002
> +#define MADERA_IM_HP1R_SC_EINT2_SHIFT 1
> +#define MADERA_IM_HP1R_SC_EINT2_WIDTH 1
> +#define MADERA_IM_HP1L_SC_EINT2 0x0001
> +#define MADERA_IM_HP1L_SC_EINT2_MASK 0x0001
> +#define MADERA_IM_HP1L_SC_EINT2_SHIFT 0
> +#define MADERA_IM_HP1L_SC_EINT2_WIDTH 1
> +
> +/* (0x194C) IRQ2_Mask_13 */
> +#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT2 0x0080
> +#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT2_MASK 0x0080
> +#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT2_SHIFT 7
> +#define MADERA_IM_SPKOUTR_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT2 0x0040
> +#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT2_MASK 0x0040
> +#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT2_SHIFT 6
> +#define MADERA_IM_SPKOUTL_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_HP3R_ENABLE_DONE_EINT2 0x0020
> +#define MADERA_IM_HP3R_ENABLE_DONE_EINT2_MASK 0x0020
> +#define MADERA_IM_HP3R_ENABLE_DONE_EINT2_SHIFT 5
> +#define MADERA_IM_HP3R_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_HP3L_ENABLE_DONE_EINT2 0x0010
> +#define MADERA_IM_HP3L_ENABLE_DONE_EINT2_MASK 0x0010
> +#define MADERA_IM_HP3L_ENABLE_DONE_EINT2_SHIFT 4
> +#define MADERA_IM_HP3L_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_HP2R_ENABLE_DONE_EINT2 0x0008
> +#define MADERA_IM_HP2R_ENABLE_DONE_EINT2_MASK 0x0008
> +#define MADERA_IM_HP2R_ENABLE_DONE_EINT2_SHIFT 3
> +#define MADERA_IM_HP2R_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_HP2L_ENABLE_DONE_EINT2 0x0004
> +#define MADERA_IM_HP2L_ENABLE_DONE_EINT2_MASK 0x0004
> +#define MADERA_IM_HP2L_ENABLE_DONE_EINT2_SHIFT 2
> +#define MADERA_IM_HP2L_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_HP1R_ENABLE_DONE_EINT2 0x0002
> +#define MADERA_IM_HP1R_ENABLE_DONE_EINT2_MASK 0x0002
> +#define MADERA_IM_HP1R_ENABLE_DONE_EINT2_SHIFT 1
> +#define MADERA_IM_HP1R_ENABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_HP1L_ENABLE_DONE_EINT2 0x0001
> +#define MADERA_IM_HP1L_ENABLE_DONE_EINT2_MASK 0x0001
> +#define MADERA_IM_HP1L_ENABLE_DONE_EINT2_SHIFT 0
> +#define MADERA_IM_HP1L_ENABLE_DONE_EINT2_WIDTH 1
> +
> +/* (0x194D) IRQ2_Mask_14 */
> +#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT2 0x0080
> +#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT2_MASK 0x0080
> +#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT2_SHIFT 7
> +#define MADERA_IM_SPKOUTR_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT2 0x0040
> +#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT2_MASK 0x0040
> +#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT2_SHIFT 6
> +#define MADERA_IM_SPKOUTL_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_HP3R_DISABLE_DONE_EINT2 0x0020
> +#define MADERA_IM_HP3R_DISABLE_DONE_EINT2_MASK 0x0020
> +#define MADERA_IM_HP3R_DISABLE_DONE_EINT2_SHIFT 5
> +#define MADERA_IM_HP3R_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_HP3L_DISABLE_DONE_EINT2 0x0010
> +#define MADERA_IM_HP3L_DISABLE_DONE_EINT2_MASK 0x0010
> +#define MADERA_IM_HP3L_DISABLE_DONE_EINT2_SHIFT 4
> +#define MADERA_IM_HP3L_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_HP2R_DISABLE_DONE_EINT2 0x0008
> +#define MADERA_IM_HP2R_DISABLE_DONE_EINT2_MASK 0x0008
> +#define MADERA_IM_HP2R_DISABLE_DONE_EINT2_SHIFT 3
> +#define MADERA_IM_HP2R_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_HP2L_DISABLE_DONE_EINT2 0x0004
> +#define MADERA_IM_HP2L_DISABLE_DONE_EINT2_MASK 0x0004
> +#define MADERA_IM_HP2L_DISABLE_DONE_EINT2_SHIFT 2
> +#define MADERA_IM_HP2L_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_HP1R_DISABLE_DONE_EINT2 0x0002
> +#define MADERA_IM_HP1R_DISABLE_DONE_EINT2_MASK 0x0002
> +#define MADERA_IM_HP1R_DISABLE_DONE_EINT2_SHIFT 1
> +#define MADERA_IM_HP1R_DISABLE_DONE_EINT2_WIDTH 1
> +#define MADERA_IM_HP1L_DISABLE_DONE_EINT2 0x0001
> +#define MADERA_IM_HP1L_DISABLE_DONE_EINT2_MASK 0x0001
> +#define MADERA_IM_HP1L_DISABLE_DONE_EINT2_SHIFT 0
> +#define MADERA_IM_HP1L_DISABLE_DONE_EINT2_WIDTH 1
> +
> +/* (0x194E) IRQ2_Mask_15 */
> +#define MADERA_IM_SPK_OVERHEAT_WARN_EINT2 0x0004
> +#define MADERA_IM_SPK_OVERHEAT_WARN_EINT2_MASK 0x0004
> +#define MADERA_IM_SPK_OVERHEAT_WARN_EINT2_SHIFT 2
> +#define MADERA_IM_SPK_OVERHEAT_WARN_EINT2_WIDTH 1
> +#define MADERA_IM_SPK_OVERHEAT_EINT2 0x0002
> +#define MADERA_IM_SPK_OVERHEAT_EINT2_MASK 0x0002
> +#define MADERA_IM_SPK_OVERHEAT_EINT2_SHIFT 1
> +#define MADERA_IM_SPK_OVERHEAT_EINT2_WIDTH 1
> +#define MADERA_IM_SPK_SHUTDOWN_EINT2 0x0001
> +#define MADERA_IM_SPK_SHUTDOWN_EINT2_MASK 0x0001
> +#define MADERA_IM_SPK_SHUTDOWN_EINT2_SHIFT 0
> +#define MADERA_IM_SPK_SHUTDOWN_EINT2_WIDTH 1
> +
> +/* (0x1980) IRQ2_Raw_Status_1 */
> +#define MADERA_DSP_SHARED_WR_COLL_STS2 0x8000
> +#define MADERA_DSP_SHARED_WR_COLL_STS2_MASK 0x8000
> +#define MADERA_DSP_SHARED_WR_COLL_STS2_SHIFT 15
> +#define MADERA_DSP_SHARED_WR_COLL_STS2_WIDTH 1
> +#define MADERA_CTRLIF_ERR_STS2 0x1000
> +#define MADERA_CTRLIF_ERR_STS2_MASK 0x1000
> +#define MADERA_CTRLIF_ERR_STS2_SHIFT 12
> +#define MADERA_CTRLIF_ERR_STS2_WIDTH 1
> +#define MADERA_SYSCLK_FAIL_STS2 0x0200
> +#define MADERA_SYSCLK_FAIL_STS2_MASK 0x0200
> +#define MADERA_SYSCLK_FAIL_STS2_SHIFT 9
> +#define MADERA_SYSCLK_FAIL_STS2_WIDTH 1
> +#define MADERA_CLOCK_DETECT_STS2 0x0100
> +#define MADERA_CLOCK_DETECT_STS2_MASK 0x0100
> +#define MADERA_CLOCK_DETECT_STS2_SHIFT 8
> +#define MADERA_CLOCK_DETECT_STS2_WIDTH 1
> +#define MADERA_BOOT_DONE_STS2 0x0080
> +#define MADERA_BOOT_DONE_STS2_MASK 0x0080
> +#define MADERA_BOOT_DONE_STS2_SHIFT 7
> +#define MADERA_BOOT_DONE_STS2_WIDTH 1
> +
> +/* (0x1981) IRQ2_Raw_Status_2 */
> +#define MADERA_FLL3_LOCK_STS2 0x0400
> +#define MADERA_FLL3_LOCK_STS2_MASK 0x0400
> +#define MADERA_FLL3_LOCK_STS2_SHIFT 10
> +#define MADERA_FLL3_LOCK_STS2_WIDTH 1
> +#define MADERA_FLL2_LOCK_STS2 0x0200
> +#define MADERA_FLL2_LOCK_STS2_MASK 0x0200
> +#define MADERA_FLL2_LOCK_STS2_SHIFT 9
> +#define MADERA_FLL2_LOCK_STS2_WIDTH 1
> +#define MADERA_FLL1_LOCK_STS2 0x0100
> +#define MADERA_FLL1_LOCK_STS2_MASK 0x0100
> +#define MADERA_FLL1_LOCK_STS2_SHIFT 8
> +#define MADERA_FLL1_LOCK_STS2_WIDTH 1
> +
> +/* (0x1986) IRQ2_Raw_Status_7 */
> +#define MADERA_MICD_CLAMP_FALL_STS2 0x0020
> +#define MADERA_MICD_CLAMP_FALL_STS2_MASK 0x0020
> +#define MADERA_MICD_CLAMP_FALL_STS2_SHIFT 5
> +#define MADERA_MICD_CLAMP_FALL_STS2_WIDTH 1
> +#define MADERA_MICD_CLAMP_RISE_STS2 0x0010
> +#define MADERA_MICD_CLAMP_RISE_STS2_MASK 0x0010
> +#define MADERA_MICD_CLAMP_RISE_STS2_SHIFT 4
> +#define MADERA_MICD_CLAMP_RISE_STS2_WIDTH 1
> +#define MADERA_JD2_FALL_STS2 0x0008
> +#define MADERA_JD2_FALL_STS2_MASK 0x0008
> +#define MADERA_JD2_FALL_STS2_SHIFT 3
> +#define MADERA_JD2_FALL_STS2_WIDTH 1
> +#define MADERA_JD2_RISE_STS2 0x0004
> +#define MADERA_JD2_RISE_STS2_MASK 0x0004
> +#define MADERA_JD2_RISE_STS2_SHIFT 2
> +#define MADERA_JD2_RISE_STS2_WIDTH 1
> +#define MADERA_JD1_FALL_STS2 0x0002
> +#define MADERA_JD1_FALL_STS2_MASK 0x0002
> +#define MADERA_JD1_FALL_STS2_SHIFT 1
> +#define MADERA_JD1_FALL_STS2_WIDTH 1
> +#define MADERA_JD1_RISE_STS2 0x0001
> +#define MADERA_JD1_RISE_STS2_MASK 0x0001
> +#define MADERA_JD1_RISE_STS2_SHIFT 0
> +#define MADERA_JD1_RISE_STS2_WIDTH 1
> +
> +/* (0x1988) IRQ2_Raw_Status_9 */
> +#define MADERA_ASRC2_IN2_LOCK_STS2 0x0800
> +#define MADERA_ASRC2_IN2_LOCK_STS2_MASK 0x0800
> +#define MADERA_ASRC2_IN2_LOCK_STS2_SHIFT 11
> +#define MADERA_ASRC2_IN2_LOCK_STS2_WIDTH 1
> +#define MADERA_ASRC2_IN1_LOCK_STS2 0x0400
> +#define MADERA_ASRC2_IN1_LOCK_STS2_MASK 0x0400
> +#define MADERA_ASRC2_IN1_LOCK_STS2_SHIFT 10
> +#define MADERA_ASRC2_IN1_LOCK_STS2_WIDTH 1
> +#define MADERA_ASRC1_IN2_LOCK_STS2 0x0200
> +#define MADERA_ASRC1_IN2_LOCK_STS2_MASK 0x0200
> +#define MADERA_ASRC1_IN2_LOCK_STS2_SHIFT 9
> +#define MADERA_ASRC1_IN2_LOCK_STS2_WIDTH 1
> +#define MADERA_ASRC1_IN1_LOCK_STS2 0x0100
> +#define MADERA_ASRC1_IN1_LOCK_STS2_MASK 0x0100
> +#define MADERA_ASRC1_IN1_LOCK_STS2_SHIFT 8
> +#define MADERA_ASRC1_IN1_LOCK_STS2_WIDTH 1
> +#define MADERA_DRC2_SIG_DET_STS2 0x0002
> +#define MADERA_DRC2_SIG_DET_STS2_MASK 0x0002
> +#define MADERA_DRC2_SIG_DET_STS2_SHIFT 1
> +#define MADERA_DRC2_SIG_DET_STS2_WIDTH 1
> +#define MADERA_DRC1_SIG_DET_STS2 0x0001
> +#define MADERA_DRC1_SIG_DET_STS2_MASK 0x0001
> +#define MADERA_DRC1_SIG_DET_STS2_SHIFT 0
> +#define MADERA_DRC1_SIG_DET_STS2_WIDTH 1
> +
> +/* (0x198A) - IRQ2 Raw Status 11 */
> +#define MADERA_DSP_IRQ26_STS2 0x8000
> +#define MADERA_DSP_IRQ26_STS2_MASK 0x8000
> +#define MADERA_DSP_IRQ26_STS2_SHIFT 15
> +#define MADERA_DSP_IRQ26_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ25_STS2 0x4000
> +#define MADERA_DSP_IRQ25_STS2_MASK 0x4000
> +#define MADERA_DSP_IRQ25_STS2_SHIFT 14
> +#define MADERA_DSP_IRQ25_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ24_STS2 0x2000
> +#define MADERA_DSP_IRQ24_STS2_MASK 0x2000
> +#define MADERA_DSP_IRQ24_STS2_SHIFT 13
> +#define MADERA_DSP_IRQ24_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ23_STS2 0x1000
> +#define MADERA_DSP_IRQ23_STS2_MASK 0x1000
> +#define MADERA_DSP_IRQ23_STS2_SHIFT 12
> +#define MADERA_DSP_IRQ23_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ22_STS2 0x0800
> +#define MADERA_DSP_IRQ22_STS2_MASK 0x0800
> +#define MADERA_DSP_IRQ22_STS2_SHIFT 11
> +#define MADERA_DSP_IRQ22_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ21_STS2 0x0400
> +#define MADERA_DSP_IRQ21_STS2_MASK 0x0400
> +#define MADERA_DSP_IRQ21_STS2_SHIFT 10
> +#define MADERA_DSP_IRQ21_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ20_STS2 0x0200
> +#define MADERA_DSP_IRQ20_STS2_MASK 0x0200
> +#define MADERA_DSP_IRQ20_STS2_SHIFT 9
> +#define MADERA_DSP_IRQ20_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ9_STS2 0x0100
> +#define MADERA_DSP_IRQ9_STS2_MASK 0x0100
> +#define MADERA_DSP_IRQ9_STS2_SHIFT 8
> +#define MADERA_DSP_IRQ9_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ8_STS2 0x0080
> +#define MADERA_DSP_IRQ8_STS2_MASK 0x0080
> +#define MADERA_DSP_IRQ8_STS2_SHIFT 7
> +#define MADERA_DSP_IRQ8_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ7_STS2 0x0040
> +#define MADERA_DSP_IRQ7_STS2_MASK 0x0040
> +#define MADERA_DSP_IRQ7_STS2_SHIFT 6
> +#define MADERA_DSP_IRQ7_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ6_STS2 0x0020
> +#define MADERA_DSP_IRQ6_STS2_MASK 0x0020
> +#define MADERA_DSP_IRQ6_STS2_SHIFT 5
> +#define MADERA_DSP_IRQ6_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ5_STS2 0x0010
> +#define MADERA_DSP_IRQ5_STS2_MASK 0x0010
> +#define MADERA_DSP_IRQ5_STS2_SHIFT 4
> +#define MADERA_DSP_IRQ5_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ4_STS2 0x0008
> +#define MADERA_DSP_IRQ4_STS2_MASK 0x0008
> +#define MADERA_DSP_IRQ4_STS2_SHIFT 3
> +#define MADERA_DSP_IRQ4_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ3_STS2 0x0004
> +#define MADERA_DSP_IRQ3_STS2_MASK 0x0004
> +#define MADERA_DSP_IRQ3_STS2_SHIFT 2
> +#define MADERA_DSP_IRQ3_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ2_STS2 0x0002
> +#define MADERA_DSP_IRQ2_STS2_MASK 0x0002
> +#define MADERA_DSP_IRQ2_STS2_SHIFT 1
> +#define MADERA_DSP_IRQ2_STS2_WIDTH 1
> +#define MADERA_DSP_IRQ1_STS2 0x0001
> +#define MADERA_DSP_IRQ1_STS2_MASK 0x0001
> +#define MADERA_DSP_IRQ1_STS2_SHIFT 0
> +#define MADERA_DSP_IRQ1_STS2_WIDTH 1
> +
> +/* (0x198B) IRQ2_Raw_Status_12 */
> +#define MADERA_SPKOUTR_SC_STS2 0x0080
> +#define MADERA_SPKOUTR_SC_STS2_MASK 0x0080
> +#define MADERA_SPKOUTR_SC_STS2_SHIFT 7
> +#define MADERA_SPKOUTR_SC_STS2_WIDTH 1
> +#define MADERA_SPKOUTL_SC_STS2 0x0040
> +#define MADERA_SPKOUTL_SC_STS2_MASK 0x0040
> +#define MADERA_SPKOUTL_SC_STS2_SHIFT 6
> +#define MADERA_SPKOUTL_SC_STS2_WIDTH 1
> +#define MADERA_HP3R_SC_STS2 0x0020
> +#define MADERA_HP3R_SC_STS2_MASK 0x0020
> +#define MADERA_HP3R_SC_STS2_SHIFT 5
> +#define MADERA_HP3R_SC_STS2_WIDTH 1
> +#define MADERA_HP3L_SC_STS2 0x0010
> +#define MADERA_HP3L_SC_STS2_MASK 0x0010
> +#define MADERA_HP3L_SC_STS2_SHIFT 4
> +#define MADERA_HP3L_SC_STS2_WIDTH 1
> +#define MADERA_HP2R_SC_STS2 0x0008
> +#define MADERA_HP2R_SC_STS2_MASK 0x0008
> +#define MADERA_HP2R_SC_STS2_SHIFT 3
> +#define MADERA_HP2R_SC_STS2_WIDTH 1
> +#define MADERA_HP2L_SC_STS2 0x0004
> +#define MADERA_HP2L_SC_STS2_MASK 0x0004
> +#define MADERA_HP2L_SC_STS2_SHIFT 2
> +#define MADERA_HP2L_SC_STS2_WIDTH 1
> +#define MADERA_HP1R_SC_STS2 0x0002
> +#define MADERA_HP1R_SC_STS2_MASK 0x0002
> +#define MADERA_HP1R_SC_STS2_SHIFT 1
> +#define MADERA_HP1R_SC_STS2_WIDTH 1
> +#define MADERA_HP1L_SC_STS2 0x0001
> +#define MADERA_HP1L_SC_STS2_MASK 0x0001
> +#define MADERA_HP1L_SC_STS2_SHIFT 0
> +#define MADERA_HP1L_SC_STS2_WIDTH 1
> +
> +/* (0x198C) IRQ2_Raw_Status_13 */
> +#define MADERA_SPKOUTR_ENABLE_DONE_STS2 0x0080
> +#define MADERA_SPKOUTR_ENABLE_DONE_STS2_MASK 0x0080
> +#define MADERA_SPKOUTR_ENABLE_DONE_STS2_SHIFT 7
> +#define MADERA_SPKOUTR_ENABLE_DONE_STS2_WIDTH 1
> +#define MADERA_SPKOUTL_ENABLE_DONE_STS2 0x0040
> +#define MADERA_SPKOUTL_ENABLE_DONE_STS2_MASK 0x0040
> +#define MADERA_SPKOUTL_ENABLE_DONE_STS2_SHIFT 6
> +#define MADERA_SPKOUTL_ENABLE_DONE_STS2_WIDTH 1
> +#define MADERA_HP3R_ENABLE_DONE_STS2 0x0020
> +#define MADERA_HP3R_ENABLE_DONE_STS2_MASK 0x0020
> +#define MADERA_HP3R_ENABLE_DONE_STS2_SHIFT 5
> +#define MADERA_HP3R_ENABLE_DONE_STS2_WIDTH 1
> +#define MADERA_HP3L_ENABLE_DONE_STS2 0x0010
> +#define MADERA_HP3L_ENABLE_DONE_STS2_MASK 0x0010
> +#define MADERA_HP3L_ENABLE_DONE_STS2_SHIFT 4
> +#define MADERA_HP3L_ENABLE_DONE_STS2_WIDTH 1
> +#define MADERA_HP2R_ENABLE_DONE_STS2 0x0008
> +#define MADERA_HP2R_ENABLE_DONE_STS2_MASK 0x0008
> +#define MADERA_HP2R_ENABLE_DONE_STS2_SHIFT 3
> +#define MADERA_HP2R_ENABLE_DONE_STS2_WIDTH 1
> +#define MADERA_HP2L_ENABLE_DONE_STS2 0x0004
> +#define MADERA_HP2L_ENABLE_DONE_STS2_MASK 0x0004
> +#define MADERA_HP2L_ENABLE_DONE_STS2_SHIFT 2
> +#define MADERA_HP2L_ENABLE_DONE_STS2_WIDTH 1
> +#define MADERA_HP1R_ENABLE_DONE_STS2 0x0002
> +#define MADERA_HP1R_ENABLE_DONE_STS2_MASK 0x0002
> +#define MADERA_HP1R_ENABLE_DONE_STS2_SHIFT 1
> +#define MADERA_HP1R_ENABLE_DONE_STS2_WIDTH 1
> +#define MADERA_HP1L_ENABLE_DONE_STS2 0x0001
> +#define MADERA_HP1L_ENABLE_DONE_STS2_MASK 0x0001
> +#define MADERA_HP1L_ENABLE_DONE_STS2_SHIFT 0
> +#define MADERA_HP1L_ENABLE_DONE_STS2_WIDTH 1
> +
> +/* (0x198D) IRQ2_Raw_Status_14 */
> +#define MADERA_SPKOUTR_DISABLE_DONE_STS2 0x0080
> +#define MADERA_SPKOUTR_DISABLE_DONE_STS2_MASK 0x0080
> +#define MADERA_SPKOUTR_DISABLE_DONE_STS2_SHIFT 7
> +#define MADERA_SPKOUTR_DISABLE_DONE_STS2_WIDTH 1
> +#define MADERA_SPKOUTL_DISABLE_DONE_STS2 0x0040
> +#define MADERA_SPKOUTL_DISABLE_DONE_STS2_MASK 0x0040
> +#define MADERA_SPKOUTL_DISABLE_DONE_STS2_SHIFT 6
> +#define MADERA_SPKOUTL_DISABLE_DONE_STS2_WIDTH 1
> +#define MADERA_HP3R_DISABLE_DONE_STS2 0x0020
> +#define MADERA_HP3R_DISABLE_DONE_STS2_MASK 0x0020
> +#define MADERA_HP3R_DISABLE_DONE_STS2_SHIFT 5
> +#define MADERA_HP3R_DISABLE_DONE_STS2_WIDTH 1
> +#define MADERA_HP3L_DISABLE_DONE_STS2 0x0010
> +#define MADERA_HP3L_DISABLE_DONE_STS2_MASK 0x0010
> +#define MADERA_HP3L_DISABLE_DONE_STS2_SHIFT 4
> +#define MADERA_HP3L_DISABLE_DONE_STS2_WIDTH 1
> +#define MADERA_HP2R_DISABLE_DONE_STS2 0x0008
> +#define MADERA_HP2R_DISABLE_DONE_STS2_MASK 0x0008
> +#define MADERA_HP2R_DISABLE_DONE_STS2_SHIFT 3
> +#define MADERA_HP2R_DISABLE_DONE_STS2_WIDTH 1
> +#define MADERA_HP2L_DISABLE_DONE_STS2 0x0004
> +#define MADERA_HP2L_DISABLE_DONE_STS2_MASK 0x0004
> +#define MADERA_HP2L_DISABLE_DONE_STS2_SHIFT 2
> +#define MADERA_HP2L_DISABLE_DONE_STS2_WIDTH 1
> +#define MADERA_HP1R_DISABLE_DONE_STS2 0x0002
> +#define MADERA_HP1R_DISABLE_DONE_STS2_MASK 0x0002
> +#define MADERA_HP1R_DISABLE_DONE_STS2_SHIFT 1
> +#define MADERA_HP1R_DISABLE_DONE_STS2_WIDTH 1
> +#define MADERA_HP1L_DISABLE_DONE_STS2 0x0001
> +#define MADERA_HP1L_DISABLE_DONE_STS2_MASK 0x0001
> +#define MADERA_HP1L_DISABLE_DONE_STS2_SHIFT 0
> +#define MADERA_HP1L_DISABLE_DONE_STS2_WIDTH 1
> +
> +/* (0x198E) IRQ2_Raw_Status_15 */
> +#define MADERA_SPK_OVERHEAT_WARN_STS2 0x0004
> +#define MADERA_SPK_OVERHEAT_WARN_STS2_MASK 0x0004
> +#define MADERA_SPK_OVERHEAT_WARN_STS2_SHIFT 2
> +#define MADERA_SPK_OVERHEAT_WARN_STS2_WIDTH 1
> +#define MADERA_SPK_OVERHEAT_STS2 0x0002
> +#define MADERA_SPK_OVERHEAT_STS2_MASK 0x0002
> +#define MADERA_SPK_OVERHEAT_STS2_SHIFT 1
> +#define MADERA_SPK_OVERHEAT_STS2_WIDTH 1
> +#define MADERA_SPK_SHUTDOWN_STS2 0x0001
> +#define MADERA_SPK_SHUTDOWN_STS2_MASK 0x0001
> +#define MADERA_SPK_SHUTDOWN_STS2_SHIFT 0
> +#define MADERA_SPK_SHUTDOWN_STS2_WIDTH 1
> +
> +/* (0x1A06) Interrupt_Debounce_7 */
> +#define MADERA_MICD_CLAMP_DB 0x0010
> +#define MADERA_MICD_CLAMP_DB_MASK 0x0010
> +#define MADERA_MICD_CLAMP_DB_SHIFT 4
> +#define MADERA_MICD_CLAMP_DB_WIDTH 1
> +#define MADERA_JD2_DB 0x0004
> +#define MADERA_JD2_DB_MASK 0x0004
> +#define MADERA_JD2_DB_SHIFT 2
> +#define MADERA_JD2_DB_WIDTH 1
> +#define MADERA_JD1_DB 0x0001
> +#define MADERA_JD1_DB_MASK 0x0001
> +#define MADERA_JD1_DB_SHIFT 0
> +#define MADERA_JD1_DB_WIDTH 1
> +
> +/* (0x1A0E) Interrupt_Debounce_15 */
> +#define MADERA_SPK_OVERHEAT_WARN_DB 0x0004
> +#define MADERA_SPK_OVERHEAT_WARN_DB_MASK 0x0004
> +#define MADERA_SPK_OVERHEAT_WARN_DB_SHIFT 2
> +#define MADERA_SPK_OVERHEAT_WARN_DB_WIDTH 1
> +#define MADERA_SPK_OVERHEAT_DB 0x0002
> +#define MADERA_SPK_OVERHEAT_DB_MASK 0x0002
> +#define MADERA_SPK_OVERHEAT_DB_SHIFT 1
> +#define MADERA_SPK_OVERHEAT_DB_WIDTH 1
> +
> +/* (0x1A80) IRQ1_CTRL */
> +#define MADERA_IM_IRQ1 0x0800
> +#define MADERA_IM_IRQ1_MASK 0x0800
> +#define MADERA_IM_IRQ1_SHIFT 11
> +#define MADERA_IM_IRQ1_WIDTH 1
> +#define MADERA_IRQ_POL 0x0400
> +#define MADERA_IRQ_POL_MASK 0x0400
> +#define MADERA_IRQ_POL_SHIFT 10
> +#define MADERA_IRQ_POL_WIDTH 1
> +
> +/* (0x20004) OTP_HPDET_Cal_1 */
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_11 0xFF000000
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_11_MASK 0xFF000000
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_11_SHIFT 24
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_11_WIDTH 8
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_10 0x00FF0000
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_10_MASK 0x00FF0000
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_10_SHIFT 16
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_10_WIDTH 8
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_01 0x0000FF00
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_01_MASK 0x0000FF00
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_01_SHIFT 8
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_01_WIDTH 8
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_00 0x000000FF
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_00_MASK 0x000000FF
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_00_SHIFT 0
> +#define MADERA_OTP_HPDET_CALIB_OFFSET_00_WIDTH 8
> +
> +/* (0x20006) OTP_HPDET_Cal_2 */
> +#define MADERA_OTP_HPDET_GRADIENT_1X 0x0000FF00
> +#define MADERA_OTP_HPDET_GRADIENT_1X_MASK 0x0000FF00
> +#define MADERA_OTP_HPDET_GRADIENT_1X_SHIFT 8
> +#define MADERA_OTP_HPDET_GRADIENT_1X_WIDTH 8
> +#define MADERA_OTP_HPDET_GRADIENT_0X 0x000000FF
> +#define MADERA_OTP_HPDET_GRADIENT_0X_MASK 0x000000FF
> +#define MADERA_OTP_HPDET_GRADIENT_0X_SHIFT 0
> +#define MADERA_OTP_HPDET_GRADIENT_0X_WIDTH 8
> +
> +#endif
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
On Wed, 05 Apr 2017, Richard Fitzgerald wrote:
> 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 <[email protected]>
> Signed-off-by: Nikesh Oswal <[email protected]>
> Signed-off-by: Richard Fitzgerald <[email protected]>
> ---
> Documentation/devicetree/bindings/mfd/madera.txt | 79 +++
> MAINTAINERS | 3 +
> drivers/mfd/Kconfig | 23 +
> drivers/mfd/Makefile | 4 +
> drivers/mfd/madera-core.c | 689 +++++++++++++++++++++++
> drivers/mfd/madera-i2c.c | 130 +++++
> drivers/mfd/madera-spi.c | 131 +++++
> drivers/mfd/madera.h | 52 ++
> include/linux/mfd/madera/core.h | 175 ++++++
> include/linux/mfd/madera/pdata.h | 88 +++
> 10 files changed, 1374 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mfd/madera.txt
> create mode 100644 drivers/mfd/madera-core.c
> create mode 100644 drivers/mfd/madera-i2c.c
> create mode 100644 drivers/mfd/madera-spi.c
> create mode 100644 drivers/mfd/madera.h
> create mode 100644 include/linux/mfd/madera/core.h
> create mode 100644 include/linux/mfd/madera/pdata.h
>
> diff --git a/Documentation/devicetree/bindings/mfd/madera.txt b/Documentation/devicetree/bindings/mfd/madera.txt
> new file mode 100644
> index 0000000..a6c3260
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/madera.txt
> @@ -0,0 +1,79 @@
> +Cirrus Logic Madera class audio codecs multi-function device
> +
> +These devices are audio SoCs with extensive digital capabilities and a range
> +of analogue I/O.
> +
> +See also the child driver bindings in:
> +bindings/extcon/extcon-madera.txt
> +bindings/gpio/gpio-madera.txt
> +bindings/interrupt-controller/cirrus,madera.txt
> +bindings/pinctrl/cirrus,madera-pinctrl.txt
> +bindings/regulator/madera-ldo1.txt
> +bindings/regulator/madera-micsupp.txt
> +bindings/sound/madera.txt
> +
> +Required properties:
> +
> + - compatible : One of the following chip-specific strings:
> + "cirrus,cs47l35"
> + "cirrus,cs47l85"
> + "cirrus,cs47l90"
> + "cirrus,cs47l91"
> + "cirrus,wm1840"
> +
> + - reg : I2C slave address when connected using I2C, chip select number when
> + using SPI.
> +
> + - DCVDD-supply : Power supply for the device as defined in
> + bindings/regulator/regulator.txt
> + Mandatory on CS47L35, CS47L90, CS47L91
> + Optional on CS47L85, WM1840
> +
> + - AVDD-supply, DBVDD1-supply, DBVDD2-supply, CPVDD1-supply, CPVDD2-supply :
> + Power supplies for the device
> +
> + - DBVDD3-supply, DBVDD4-supply : Power supplies for the device
> + (CS47L85, CS47L90, CS47L91, WM1840)
> +
> + - SPKVDDL-supply, SPKVDDR-supply : Power supplies for the device
> + (CS47L85, WM1840)
> +
> + - SPKVDD-supply : Power supply for the device
> + (CS47L35)
> +
> +Optional properties:
> +
> + - MICVDD-supply : Power supply, only need to be specified if
> + powered externally
> +
> + - reset-gpios : One entry specifying the GPIO controlling /RESET.
> + As defined in bindings/gpio.txt.
> + Although optional, it is strongly recommended to use a hardware reset
> +
> + - MICBIASx : Initial data for the MICBIAS regulators, as covered in
> + Documentation/devicetree/bindings/regulator/regulator.txt.
> + One for each MICBIAS generator (MICBIAS1, MICBIAS2, ...)
> + (all codecs)
> +
> + One for each output pin (MICBIAS1A, MIBCIAS1B, MICBIAS2A, ...)
> + (all except CS47L85, WM1840)
> +
> + The following following additional property is supported for the generator
> + nodes:
> + - cirrus,ext-cap : Set to 1 if the MICBIAS has external decoupling
> + capacitors attached.
> +
> +Example:
> +
> +codec: cs47l85@0 {
Node names should be generic.
You can swap these round if you want, so:
cs47l85: codec@0 {
... is valid.
> + compatible = "cirrus,cs47l85";
> + reg = <0>;
> +
> + reset-gpios = <&gpio 0>;
> +
> + MICBIAS1 {
> + regulator-min-microvolt = <900000>;
> + regulator-max-microvolt = <3300000>;
> + cirrus,ext-cap = <1>;
> + };
> +};
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 02995c9..d28e53f 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -3266,7 +3266,10 @@ L: [email protected]
> T: git https://github.com/CirrusLogic/linux-drivers.git
> W: https://github.com/CirrusLogic/linux-drivers/wiki
> S: Supported
> +F: Documentation/devicetree/bindings/mfd/madera.txt
> F: include/linux/mfd/madera/*
> +F: drivers/mfd/madera*
> +F: drivers/mfd/cs47l*
>
> CLEANCACHE API
> M: Konrad Rzeszutek Wilk <[email protected]>
> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index ce3a918..f0f9979 100644
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> @@ -203,6 +203,29 @@ config MFD_CROS_EC_SPI
> response time cannot be guaranteed, we support ignoring
> 'pre-amble' bytes before the response actually starts.
>
> +config MFD_MADERA
> + bool
> + select REGMAP
> + select MFD_CORE
> +
> +config MFD_MADERA_I2C
> + tristate "Cirrus Logic Madera codecs with I2C"
> + select MFD_MADERA
> + select REGMAP_I2C
> + depends on I2C
> + help
> + Support for the Cirrus Logic Madera platform audio SoC
> + core functionality controlled via I2C.
> +
> +config MFD_MADERA_SPI
> + tristate "Cirrus Logic Madera codecs with SPI"
> + select MFD_MADERA
> + select REGMAP_SPI
> + depends on SPI_MASTER
> + help
> + Support for the Cirrus Logic Madera platform audio SoC
> + core functionality controlled via SPI.
> +
> config MFD_ASIC3
> bool "Compaq ASIC3"
> depends on GPIOLIB && ARM
> diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
> index fa86dbe..c41f6c9 100644
> --- a/drivers/mfd/Makefile
> +++ b/drivers/mfd/Makefile
> @@ -72,6 +72,10 @@ obj-$(CONFIG_MFD_WM8350_I2C) += wm8350-i2c.o
> wm8994-objs := wm8994-core.o wm8994-irq.o wm8994-regmap.o
> obj-$(CONFIG_MFD_WM8994) += wm8994.o
>
> +obj-$(CONFIG_MFD_MADERA) += madera-core.o
> +obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o
> +obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
> +
> obj-$(CONFIG_TPS6105X) += tps6105x.o
> obj-$(CONFIG_TPS65010) += tps65010.o
> obj-$(CONFIG_TPS6507X) += tps6507x.o
> diff --git a/drivers/mfd/madera-core.c b/drivers/mfd/madera-core.c
> new file mode 100644
> index 0000000..ab5fe9b
> --- /dev/null
> +++ b/drivers/mfd/madera-core.c
> @@ -0,0 +1,689 @@
> +/*
> + * Core MFD support for Cirrus Logic Madera codecs
> + *
> + * Copyright 2015-2017 Cirrus Logic
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#include <linux/device.h>
> +#include <linux/delay.h>
> +#include <linux/err.h>
> +#include <linux/gpio.h>
> +#include <linux/mfd/core.h>
> +#include <linux/module.h>
> +#include <linux/notifier.h>
> +#include <linux/of.h>
> +#include <linux/of_device.h>
> +#include <linux/of_gpio.h>
> +#include <linux/platform_device.h>
> +#include <linux/pm_runtime.h>
> +#include <linux/regmap.h>
> +#include <linux/regulator/consumer.h>
> +#include <linux/regulator/machine.h>
> +#include <linux/regulator/of_regulator.h>
> +
> +#include <linux/mfd/madera/core.h>
> +#include <linux/mfd/madera/registers.h>
> +
> +#include "madera.h"
> +
> +#define CS47L35_SILICON_ID 0x6360
> +#define CS47L85_SILICON_ID 0x6338
> +#define CS47L90_SILICON_ID 0x6364
> +
> +#define MADERA_32KZ_MCLK2 1
> +
> +static const char * const madera_core_supplies[] = {
> + "AVDD",
> + "DBVDD1",
> +};
> +
> +static const struct mfd_cell madera_ldo1_devs[] = {
> + { .name = "madera-ldo1", .of_compatible = "cirrus,madera-ldo1" },
> +};
> +
> +static const struct mfd_cell cs47l35_devs[] = {
> + { .name = "madera-pinctrl", .of_compatible = "cirrus,madera-pinctrl" },
> + { .name = "madera-irq", },
I believe this should be "interrupt-controller".
irq is ambiguous.
Same goes for the ones below.
> + { .name = "madera-micsupp", .of_compatible = "cirrus,madera-micsupp" },
> + { .name = "madera-gpio", .of_compatible = "cirrus,madera-gpio" },
> + { .name = "madera-extcon", .of_compatible = "cirrus,madera-extcon" },
> + { .name = "cs47l35-codec", .of_compatible = "cirrus,cs47l35-codec" },
> + { .name = "madera-haptics", .of_compatible = "cirrus,madera-haptics" },
> +};
> +
> +static const struct mfd_cell cs47l85_devs[] = {
> + { .name = "madera-pinctrl", .of_compatible = "cirrus,madera-pinctrl" },
> + { .name = "madera-irq", },
> + { .name = "madera-micsupp", .of_compatible = "cirrus,madera-micsupp" },
> + { .name = "madera-gpio", .of_compatible = "cirrus,madera-gpio" },
> + { .name = "madera-extcon", .of_compatible = "cirrus,madera-extcon" },
> + { .name = "cs47l85-codec", .of_compatible = "cirrus,cs47l85-codec" },
> + { .name = "madera-haptics", .of_compatible = "cirrus,madera-haptics" },
> +};
> +
> +static const struct mfd_cell cs47l90_devs[] = {
> + { .name = "madera-pinctrl", .of_compatible = "cirrus,madera-pinctrl" },
> + { .name = "madera-irq", },
> + { .name = "madera-micsupp", .of_compatible = "cirrus,madera-micsupp" },
> + { .name = "madera-gpio", .of_compatible = "cirrus,madera-gpio" },
> + { .name = "madera-extcon", .of_compatible = "cirrus,madera-extcon" },
> + { .name = "cs47l90-codec", .of_compatible = "cirrus,cs47l90-codec" },
> + { .name = "madera-haptics", .of_compatible = "cirrus,madera-haptics" },
> +};
> +
> +const char *madera_name_from_type(enum madera_type type)
> +{
> + switch (type) {
> + case CS47L35:
> + return "CS47L35";
> + case CS47L85:
> + return "CS47L85";
> + case CS47L90:
> + return "CS47L90";
> + case CS47L91:
> + return "CS47L91";
> + case WM1840:
> + return "WM1840";
> + default:
> + return "Unknown";
> + }
> +}
> +EXPORT_SYMBOL_GPL(madera_name_from_type);
> +
> +#define MADERA_BOOT_POLL_MAX_INTERVAL_US 5000
> +#define MADERA_BOOT_POLL_TIMEOUT_US 25000
> +
> +static int madera_wait_for_boot(struct madera *madera)
> +{
> + unsigned int val;
> + int ret;
> +
> + /*
> + * We can't use an interrupt as we need to runtime resume to do so,
> + * so we poll the status bit. This won't race with the interrupt
> + * handler because it will be blocked on runtime resume.
> + */
> + ret = regmap_read_poll_timeout(madera->regmap,
> + MADERA_IRQ1_RAW_STATUS_1,
> + val,
> + (val & MADERA_BOOT_DONE_STS1),
> + MADERA_BOOT_POLL_MAX_INTERVAL_US,
> + MADERA_BOOT_POLL_TIMEOUT_US);
> + /*
> + * BOOT_DONE defaults to unmasked on boot so we must ack it.
> + * Do this unconditionally to avoid interrupt storms
> + */
> + regmap_write(madera->regmap, MADERA_IRQ1_STATUS_1,
> + MADERA_BOOT_DONE_EINT1);
> +
> + if (ret)
> + dev_err(madera->dev, "Polling BOOT_DONE_STS failed: %d\n", ret);
Why isn't this under the call to regmap_read_poll_timeout()?
> + pm_runtime_mark_last_busy(madera->dev);
> +
> + return ret;
> +}
> +
> +static int madera_soft_reset(struct madera *madera)
> +{
> + int ret;
> +
> + ret = regmap_write(madera->regmap, MADERA_SOFTWARE_RESET, 0);
> + if (ret != 0) {
> + dev_err(madera->dev, "Failed to soft reset device: %d\n", ret);
> + return ret;
> + }
> + usleep_range(1000, 2000);
Why have you chosen 1000 => 2000?
If you obtained specific information from the datasheet, please quote
it in the comment here.
> + return 0;
> +}
> +
> +static void madera_enable_hard_reset(struct madera *madera)
> +{
> + if (madera->reset_gpio)
> + gpiod_set_value_cansleep(madera->reset_gpio, 0);
> +}
> +
> +static void madera_disable_hard_reset(struct madera *madera)
> +{
> + if (madera->reset_gpio) {
> + gpiod_set_value_cansleep(madera->reset_gpio, 1);
> + usleep_range(1000, 2000);
> + }
> +}
> +
> +#ifdef CONFIG_PM
> +static int madera_runtime_resume(struct device *dev)
> +{
> + struct madera *madera = dev_get_drvdata(dev);
> + int ret;
> +
> + dev_dbg(madera->dev, "Leaving sleep mode\n");
Nit: Less code to just use 'dev', no?
> + ret = regulator_enable(madera->dcvdd);
> + if (ret) {
> + dev_err(madera->dev, "Failed to enable DCVDD: %d\n", ret);
> + return ret;
> + }
> +
> + regcache_cache_only(madera->regmap, false);
> + regcache_cache_only(madera->regmap_32bit, false);
> +
> + ret = madera_wait_for_boot(madera);
> + if (ret)
> + goto err;
> +
> + ret = regcache_sync(madera->regmap);
> + if (ret) {
> + dev_err(madera->dev,
> + "Failed to restore 16-bit register cache\n");
> + goto err;
> + }
> +
> + ret = regcache_sync(madera->regmap_32bit);
> + if (ret) {
> + dev_err(madera->dev,
> + "Failed to restore 32-bit register cache\n");
> + goto err;
> + }
> +
> + return 0;
> +
> +err:
> + regcache_cache_only(madera->regmap_32bit, true);
> + regcache_cache_only(madera->regmap, true);
> + regulator_disable(madera->dcvdd);
> +
> + return ret;
> +}
> +
> +static int madera_runtime_suspend(struct device *dev)
> +{
> + struct madera *madera = dev_get_drvdata(dev);
> +
> + dev_dbg(madera->dev, "Entering sleep mode\n");
> +
> + regcache_cache_only(madera->regmap, true);
> + regcache_mark_dirty(madera->regmap);
> + regcache_cache_only(madera->regmap_32bit, true);
> + regcache_mark_dirty(madera->regmap_32bit);
> +
> + regulator_disable(madera->dcvdd);
> +
> + return 0;
> +}
> +#endif
> +
> +const struct dev_pm_ops madera_pm_ops = {
> + SET_RUNTIME_PM_OPS(madera_runtime_suspend,
> + madera_runtime_resume,
> + NULL)
> +};
> +EXPORT_SYMBOL_GPL(madera_pm_ops);
> +
> +unsigned int madera_get_num_micbias(struct madera *madera)
> +{
> +
> + switch (madera->type) {
> + case CS47L35:
> + return 2;
> + case CS47L85:
> + case WM1840:
> + return 4;
> + case CS47L90:
> + case CS47L91:
> + return 2;
> + default:
> + dev_warn(madera->dev, "No micbias known for codec %s\n",
> + madera_name_from_type(madera->type));
> + return 0;
> + }
> +}
> +EXPORT_SYMBOL_GPL(madera_get_num_micbias);
Looks very subsystem specific. Where is this called from?
> +unsigned int madera_get_num_childbias(struct madera *madera,
> + unsigned int micbias)
> +{
> + /*
> + * micbias argument reserved for future codecs that don't
> + * have the same number of children on each micbias
> + */
> +
> + switch (madera->type) {
> + case CS47L35:
> + return 2;
> + case CS47L85:
> + case WM1840:
> + return 0;
> + case CS47L90:
> + case CS47L91:
> + return 4;
> + default:
> + dev_warn(madera->dev, "No child micbias known for codec %s\n",
> + madera_name_from_type(madera->type));
> + return 0;
> + }
> +}
> +EXPORT_SYMBOL_GPL(madera_get_num_childbias);
As above.
> +#ifdef CONFIG_OF
> +const struct of_device_id madera_of_match[] = {
> + { .compatible = "cirrus,cs47l35", .data = (void *)CS47L35 },
> + { .compatible = "cirrus,cs47l85", .data = (void *)CS47L85 },
> + { .compatible = "cirrus,cs47l90", .data = (void *)CS47L90 },
> + { .compatible = "cirrus,cs47l91", .data = (void *)CS47L91 },
> + { .compatible = "cirrus,wm1840", .data = (void *)WM1840 },
> + {},
> +};
> +EXPORT_SYMBOL_GPL(madera_of_match);
> +
> +unsigned long madera_of_get_type(struct device *dev)
> +{
> + const struct of_device_id *id = of_match_device(madera_of_match, dev);
> +
> + if (id)
> + return (unsigned long)id->data;
> + else
> + return 0;
> +}
> +EXPORT_SYMBOL_GPL(madera_of_get_type);
> +#endif
> +
> +static int madera_prop_get_core_pdata(struct madera *madera)
Will this ever do more than obtain a GPIO?
If not, please consider renaming the function.
> +{
> + int ret;
> +
> + madera->reset_gpio = devm_gpiod_get_optional(madera->dev,
> + "reset",
> + GPIOD_OUT_LOW);
> + if (IS_ERR(madera->reset_gpio)) {
> + ret = PTR_ERR(madera->reset_gpio);
> +
> + if (ret == -EPROBE_DEFER)
> + return ret;
> + else if ((ret < 0) && (ret != -EINVAL))
> + dev_warn(madera->dev,
> + "DT property reset-gpio is malformed: %d\n",
> + ret);
> + }
This hunk looks like it could be simplified.
> + return 0;
> +}
> +
> +static void madera_configure_micbias(struct madera *madera)
> +{
> + unsigned int num_micbias = madera_get_num_micbias(madera);
> + struct madera_micbias_pdata *pdata;
> + struct regulator_init_data *init_data;
> + unsigned int num_child_micbias;
> + unsigned int val, mask, reg;
> + int i, j, ret;
> +
> + for (i = 0; i < num_micbias; i++) {
> + pdata = &madera->pdata.micbias[i];
> + init_data = &pdata->init_data;
> +
> + if (!init_data->constraints.max_uV &&
> + !init_data->constraints.valid_ops_mask)
> + continue; /* pdata not set */
> +
> + /* Apply default for bypass mode */
> + if (!init_data->constraints.max_uV)
> + init_data->constraints.max_uV = 2800;
> +
> + val = (init_data->constraints.max_uV - 1500000) / 100000;
> + val <<= MADERA_MICB1_LVL_SHIFT;
> +
> + mask = MADERA_MICB1_LVL_MASK | MADERA_MICB1_EXT_CAP |
> + MADERA_MICB1_BYPASS | MADERA_MICB1_RATE;
> +
> + if (pdata->ext_cap)
> + val |= MADERA_MICB1_EXT_CAP;
> +
> + /* if no child biases the discharge is set in the parent */
> + num_child_micbias = madera_get_num_childbias(madera, i + 1);
> + if (num_child_micbias == 0) {
> + mask |= MADERA_MICB1_DISCH;
> +
> + switch (init_data->constraints.active_discharge) {
> + case REGULATOR_ACTIVE_DISCHARGE_ENABLE:
> + val |= MADERA_MICB1_DISCH;
> + break;
> + default:
> + break;
> + }
> + }
> +
> + if (init_data->constraints.soft_start)
> + val |= MADERA_MICB1_RATE;
> +
> + if (init_data->constraints.valid_ops_mask &
> + REGULATOR_CHANGE_BYPASS)
> + val |= MADERA_MICB1_BYPASS;
> +
> + reg = MADERA_MIC_BIAS_CTRL_1 + i;
> + ret = regmap_update_bits(madera->regmap, reg, mask, val);
> + if (ret)
> + dev_warn(madera->dev, "Failed to write 0x%x (%d)\n",
> + reg, ret);
> +
> + dev_dbg(madera->dev, "Set MICBIAS_CTRL_%d mask=0x%x val=0x%x\n",
> + i + 1, mask, val);
> +
> + /* Configure the child micbias pins */
> + val = 0;
> + mask = 0;
> + for (j = 0; j < num_child_micbias; j++) {
> + mask |= (MADERA_MICB1A_DISCH << (j * 4));
> +
> + init_data = &pdata->pin[j].init_data;
> + switch (init_data->constraints.active_discharge) {
> + case REGULATOR_ACTIVE_DISCHARGE_ENABLE:
> + val |= (MADERA_MICB1A_DISCH << (j * 4));
> + break;
> + default:
> + break;
> + }
> + }
> +
> + if (mask) {
> + reg = MADERA_MIC_BIAS_CTRL_5 + (i * 2);
> + ret = regmap_update_bits(madera->regmap, reg, mask, val);
> + if (ret)
> + dev_warn(madera->dev,
> + "Failed to write 0x%x (%d)\n",
> + reg, ret);
> +
> + dev_dbg(madera->dev,
> + "Set MICBIAS_CTRL_%d mask=0x%x val=0x%x\n",
> + i + 5, mask, val);
> + }
> + }
> +}
This 'stuff' looks like it should be moved out to the sub-device
drivers.
> +int madera_dev_init(struct madera *madera)
> +{
> + struct device *dev = madera->dev;
> + const char *name;
> + unsigned int hwid;
> + int (*patch_fn)(struct madera *) = NULL;
> + const struct mfd_cell *mfd_devs;
> + int n_devs = 0;
> + int i, ret;
> +
> + dev_set_drvdata(madera->dev, madera);
> + BLOCKING_INIT_NOTIFIER_HEAD(&madera->notifier);
> +
> + if (dev_get_platdata(madera->dev)) {
> + memcpy(&madera->pdata, dev_get_platdata(madera->dev),
> + sizeof(madera->pdata));
> +
> + /* We use 0 in pdata to indicate a GPIO has not been set */
> + if (madera->pdata.reset > 0) {
> + /* Start out with /RESET asserted */
> + ret = devm_gpio_request_one(madera->dev,
> + madera->pdata.reset,
> + GPIOF_DIR_OUT | GPIOF_INIT_LOW,
> + "madera reset");
> + if (ret) {
> + dev_err(dev, "Failed to request /RESET: %d\n",
> + ret);
> + return ret;
> + }
> +
> + madera->reset_gpio = gpio_to_desc(madera->pdata.reset);
> + }
> + } else {
> + ret = madera_prop_get_core_pdata(madera);
> + if (ret)
> + return ret;
> + }
> +
> + if (!madera->reset_gpio)
> + dev_warn(madera->dev,
> + "Running without reset GPIO is not recommended\n");
I suggest moving all of the above into madera_prop_get_core_pdata()
and renaming it to madera_get_gpio().
It also looks like it could be simplified to reduce indentation.
> + regcache_cache_only(madera->regmap, true);
> + regcache_cache_only(madera->regmap_32bit, true);
> +
> + for (i = 0; i < ARRAY_SIZE(madera_core_supplies); i++)
> + madera->core_supplies[i].supply = madera_core_supplies[i];
> +
> + madera->num_core_supplies = ARRAY_SIZE(madera_core_supplies);
> +
> + switch (madera->type) {
> + case CS47L35:
> + case CS47L90:
> + case CS47L91:
Perhaps a comment here to say why these devices do not require LDO1
devices.
> + break;
> + case CS47L85:
> + case WM1840:
> + ret = mfd_add_devices(madera->dev, PLATFORM_DEVID_NONE,
> + madera_ldo1_devs,
> + ARRAY_SIZE(madera_ldo1_devs),
> + NULL, 0, NULL);
> + if (ret != 0) {
Please use these checks in order of preference:
if (ret)
if (ret < 0)
if (ret != 0)
... depending on the situation.
Here the former will do.
> + dev_err(dev, "Failed to add LDO1 child: %d\n", ret);
> + return ret;
> + }
> + break;
> + default:
> + dev_err(madera->dev, "Unknown device type %d\n", madera->type);
> + return -ENODEV;
> + }
> +
> + ret = devm_regulator_bulk_get(dev, madera->num_core_supplies,
> + madera->core_supplies);
> + if (ret) {
> + dev_err(dev, "Failed to request core supplies: %d\n", ret);
> + goto err_devs;
> + }
> +
> + /*
> + * Don't use devres here because the only device we have to get
> + * against is the MFD device and DCVDD will likely be supplied by
> + * one of its children. Meaning that the regulator will be
> + * destroyed by the time devres calls regulator put.
> + */
> + madera->dcvdd = regulator_get_exclusive(madera->dev, "DCVDD");
> + if (IS_ERR(madera->dcvdd)) {
> + ret = PTR_ERR(madera->dcvdd);
> + dev_err(dev, "Failed to request DCVDD: %d\n", ret);
> + goto err_devs;
> + }
> +
> + ret = regulator_bulk_enable(madera->num_core_supplies,
> + madera->core_supplies);
> + if (ret) {
> + dev_err(dev, "Failed to enable core supplies: %d\n", ret);
> + goto err_dcvdd;
> + }
> +
> + ret = regulator_enable(madera->dcvdd);
> + if (ret) {
> + dev_err(dev, "Failed to enable DCVDD: %d\n", ret);
> + goto err_enable;
> + }
> +
> + madera_disable_hard_reset(madera);
> +
> + regcache_cache_only(madera->regmap, false);
> + regcache_cache_only(madera->regmap_32bit, false);
> +
> + /*
> + * Verify that this is a chip we know about before we
> + * starting doing any writes to its registers
> + */
> + ret = regmap_read(madera->regmap, MADERA_SOFTWARE_RESET, &hwid);
> + if (ret) {
> + dev_err(dev, "Failed to read ID register: %d\n", ret);
> + goto err_reset;
> + }
> +
> + switch (hwid) {
> + case CS47L35_SILICON_ID:
> + case CS47L85_SILICON_ID:
> + case CS47L90_SILICON_ID:
> + break;
> + default:
> + dev_err(madera->dev, "Unknown device ID: %x\n", hwid);
> + ret = -EINVAL;
> + goto err_reset;
> + }
> +
> + /* If we don't have a reset GPIO use a soft reset */
> + if (!madera->reset_gpio) {
> + ret = madera_soft_reset(madera);
> + if (ret)
> + goto err_reset;
> + }
> +
> + ret = madera_wait_for_boot(madera);
> + if (ret) {
> + dev_err(madera->dev, "Device failed initial boot: %d\n", ret);
> + goto err_reset;
> + }
> +
> + ret = regmap_read(madera->regmap, MADERA_HARDWARE_REVISION,
> + &madera->rev);
> + if (ret) {
> + dev_err(dev, "Failed to read revision register: %d\n", ret);
> + goto err_reset;
> + }
> + madera->rev &= MADERA_HW_REVISION_MASK;
> +
> + name = madera_name_from_type(madera->type);
> +
> + switch (hwid) {
> + case CS47L35_SILICON_ID:
> + if (IS_ENABLED(CONFIG_MFD_CS47L35)) {
> + switch (madera->type) {
> + case CS47L35:
> + patch_fn = cs47l35_patch;
> + mfd_devs = cs47l35_devs;
> + n_devs = ARRAY_SIZE(cs47l35_devs);
> + break;
> + default:
> + break;
> + }
> + }
> + break;
> + case CS47L85_SILICON_ID:
> + if (IS_ENABLED(CONFIG_MFD_CS47L85)) {
> + switch (madera->type) {
> + case CS47L85:
> + case WM1840:
> + patch_fn = cs47l85_patch;
> + mfd_devs = cs47l85_devs;
> + n_devs = ARRAY_SIZE(cs47l85_devs);
> + break;
> + default:
> + break;
> + }
> + }
> + break;
> + case CS47L90_SILICON_ID:
> + if (IS_ENABLED(CONFIG_MFD_CS47L90)) {
> + switch (madera->type) {
> + case CS47L90:
> + case CS47L91:
> + patch_fn = cs47l90_patch;
> + mfd_devs = cs47l90_devs;
> + n_devs = ARRAY_SIZE(cs47l90_devs);
> + break;
> + default:
> + break;
> + }
> + }
> + break;
> + default:
> + break;
> + }
> +
> + if (!n_devs) {
> + dev_err(madera->dev, "Device ID 0x%x not a %s\n", hwid, name);
> + ret = -ENODEV;
> + goto err_reset;
> + }
> +
> + dev_info(dev, "%s silicon revision %d\n", name, madera->rev);
> +
> + /* Apply hardware patch */
> + if (patch_fn) {
> + ret = patch_fn(madera);
> + if (ret) {
> + dev_err(madera->dev, "Failed to apply patch %d\n", ret);
> + goto err_reset;
> + }
> + }
> +
> + /* Init 32k clock sourced from MCLK2 */
> + ret = regmap_update_bits(madera->regmap,
> + MADERA_CLOCK_32K_1,
> + MADERA_CLK_32K_ENA_MASK | MADERA_CLK_32K_SRC_MASK,
> + MADERA_CLK_32K_ENA | MADERA_32KZ_MCLK2);
> + if (ret) {
> + dev_err(madera->dev, "Failed to init 32k clock: %d\n", ret);
> + goto err_reset;
> + }
> +
> + madera_configure_micbias(madera);
> +
> + pm_runtime_set_active(madera->dev);
> + pm_runtime_enable(madera->dev);
> + pm_runtime_set_autosuspend_delay(madera->dev, 100);
> + pm_runtime_use_autosuspend(madera->dev);
> +
> + ret = mfd_add_devices(madera->dev, PLATFORM_DEVID_NONE,
> + mfd_devs, n_devs,
> + NULL, 0, NULL);
> + if (ret) {
> + dev_err(madera->dev, "Failed to add subdevices: %d\n", ret);
> + goto err_pm_runtime;
> + }
> +
> + return 0;
> +
> +err_pm_runtime:
> + pm_runtime_disable(madera->dev);
> +err_reset:
> + madera_enable_hard_reset(madera);
> + regulator_disable(madera->dcvdd);
> +err_enable:
> + regulator_bulk_disable(madera->num_core_supplies,
> + madera->core_supplies);
> +err_dcvdd:
> + regulator_put(madera->dcvdd);
> +err_devs:
> + mfd_remove_devices(dev);
> +
> + return ret;
> +}
> +EXPORT_SYMBOL_GPL(madera_dev_init);
> +
> +int madera_dev_exit(struct madera *madera)
> +{
> + /* Prevent any IRQs being serviced while we clean up */
> + disable_irq(madera->irq);
> +
> + /*
> + * DCVDD could be supplied by a child node, we must disable it before
> + * removing the children, and prevent PM runtime from turning it back on
> + */
> + pm_runtime_disable(madera->dev);
> +
> + regulator_disable(madera->dcvdd);
> + regulator_put(madera->dcvdd);
> +
> + mfd_remove_devices(madera->dev);
> + madera_enable_hard_reset(madera);
> +
> + regulator_bulk_disable(madera->num_core_supplies,
> + madera->core_supplies);
> + return 0;
> +}
> +EXPORT_SYMBOL_GPL(madera_dev_exit);
> diff --git a/drivers/mfd/madera-i2c.c b/drivers/mfd/madera-i2c.c
> new file mode 100644
> index 0000000..8c90780
> --- /dev/null
> +++ b/drivers/mfd/madera-i2c.c
> @@ -0,0 +1,130 @@
> +/*
> + * I2C bus interface to Cirrus Logic Madera codecs
> + *
> + * Copyright 2015-2017 Cirrus Logic
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#include <linux/device.h>
> +#include <linux/err.h>
> +#include <linux/i2c.h>
> +#include <linux/module.h>
> +#include <linux/regmap.h>
> +#include <linux/of.h>
> +
> +#include <linux/mfd/madera/core.h>
> +
> +#include "madera.h"
> +
> +static int madera_i2c_probe(struct i2c_client *i2c,
> + const struct i2c_device_id *id)
> +{
> + struct madera *madera;
> + const struct regmap_config *regmap_16bit_config = NULL;
> + const struct regmap_config *regmap_32bit_config = NULL;
> + unsigned long type;
> + int ret;
> +
> + if (i2c->dev.of_node)
> + type = madera_of_get_type(&i2c->dev);
Just call this madera_get_type() and do the OF || !OF checking in
there.
> + else
> + type = id->driver_data;
> +
> + switch (type) {
> + case CS47L35:
> + if (IS_ENABLED(CONFIG_MFD_CS47L35)) {
> + regmap_16bit_config = &cs47l35_16bit_i2c_regmap;
> + regmap_32bit_config = &cs47l35_32bit_i2c_regmap;
> + }
> + break;
> + case CS47L85:
> + case WM1840:
> + if (IS_ENABLED(CONFIG_MFD_CS47L85)) {
> + regmap_16bit_config = &cs47l85_16bit_i2c_regmap;
> + regmap_32bit_config = &cs47l85_32bit_i2c_regmap;
> + }
> + break;
> + case CS47L90:
> + case CS47L91:
> + if (IS_ENABLED(CONFIG_MFD_CS47L90)) {
> + regmap_16bit_config = &cs47l90_16bit_i2c_regmap;
> + regmap_32bit_config = &cs47l90_32bit_i2c_regmap;
> + }
> + break;
> + default:
> + dev_err(&i2c->dev,
> + "Unknown Madera I2C device type %ld\n", type);
> + return -EINVAL;
> + }
> +
> + if (!regmap_16bit_config) {
> + dev_err(&i2c->dev,
> + "Kernel does not include support for %s\n",
> + madera_name_from_type(type));
> + return -EINVAL;
> + }
> +
> + madera = devm_kzalloc(&i2c->dev, sizeof(*madera), GFP_KERNEL);
> + if (!madera)
> + return -ENOMEM;
> +
> + madera->regmap = devm_regmap_init_i2c(i2c, regmap_16bit_config);
> + if (IS_ERR(madera->regmap)) {
> + ret = PTR_ERR(madera->regmap);
> + dev_err(&i2c->dev,
> + "Failed to allocate 16-bit register map: %d\n", ret);
> + return ret;
> + }
> +
> + madera->regmap_32bit = devm_regmap_init_i2c(i2c, regmap_32bit_config);
> + if (IS_ERR(madera->regmap_32bit)) {
> + ret = PTR_ERR(madera->regmap_32bit);
> + dev_err(&i2c->dev,
> + "Failed to allocate 32-bit register map: %d\n", ret);
> + return ret;
> + }
> +
> + madera->type = type;
> + madera->dev = &i2c->dev;
> + madera->irq = i2c->irq;
> +
> + return madera_dev_init(madera);
> +}
> +
> +static int madera_i2c_remove(struct i2c_client *i2c)
> +{
> + struct madera *madera = dev_get_drvdata(&i2c->dev);
> +
> + madera_dev_exit(madera);
Nit: \n here please.
> + return 0;
> +}
> +
> +static const struct i2c_device_id madera_i2c_id[] = {
> + { "cs47l35", CS47L35 },
> + { "cs47l85", CS47L85 },
> + { "cs47l90", CS47L90 },
> + { "cs47l91", CS47L91 },
> + { "wm1840", WM1840 },
> + { }
> +};
> +MODULE_DEVICE_TABLE(i2c, madera_i2c_id);
> +
> +static struct i2c_driver madera_i2c_driver = {
> + .driver = {
> + .name = "madera",
> + .pm = &madera_pm_ops,
> + .of_match_table = of_match_ptr(madera_of_match),
> + },
> + .probe = madera_i2c_probe,
> + .remove = madera_i2c_remove,
> + .id_table = madera_i2c_id,
> +};
> +
> +module_i2c_driver(madera_i2c_driver);
> +
> +MODULE_DESCRIPTION("Madera I2C bus interface");
> +MODULE_AUTHOR("Richard Fitzgerald <[email protected]>");
> +MODULE_LICENSE("GPL v2");
> diff --git a/drivers/mfd/madera-spi.c b/drivers/mfd/madera-spi.c
> new file mode 100644
> index 0000000..e7e13f0
> --- /dev/null
> +++ b/drivers/mfd/madera-spi.c
> @@ -0,0 +1,131 @@
> +/*
> + * SPI bus interface to Cirrus Logic Madera codecs
> + *
> + * Copyright 2015-2017 Cirrus Logic
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#include <linux/device.h>
> +#include <linux/err.h>
> +#include <linux/module.h>
> +#include <linux/regmap.h>
> +#include <linux/of.h>
> +#include <linux/spi/spi.h>
> +
> +#include <linux/mfd/madera/core.h>
> +
> +#include "madera.h"
> +
> +static int madera_spi_probe(struct spi_device *spi)
> +{
> + const struct spi_device_id *id = spi_get_device_id(spi);
> + struct madera *madera;
> + const struct regmap_config *regmap_16bit_config = NULL;
> + const struct regmap_config *regmap_32bit_config = NULL;
> + unsigned long type;
> + int ret;
> +
> + if (spi->dev.of_node)
> + type = madera_of_get_type(&spi->dev);
> + else
> + type = id->driver_data;
As above.
> + switch (type) {
> + case CS47L35:
> + if (IS_ENABLED(CONFIG_MFD_CS47L35)) {
> + regmap_16bit_config = &cs47l35_16bit_spi_regmap;
> + regmap_32bit_config = &cs47l35_32bit_spi_regmap;
> + }
> + break;
> + case CS47L85:
> + case WM1840:
> + if (IS_ENABLED(CONFIG_MFD_CS47L85)) {
> + regmap_16bit_config = &cs47l85_16bit_spi_regmap;
> + regmap_32bit_config = &cs47l85_32bit_spi_regmap;
> + }
> + break;
> + case CS47L90:
> + case CS47L91:
> + if (IS_ENABLED(CONFIG_MFD_CS47L90)) {
> + regmap_16bit_config = &cs47l90_16bit_spi_regmap;
> + regmap_32bit_config = &cs47l90_32bit_spi_regmap;
> + }
> + break;
> + default:
> + dev_err(&spi->dev,
> + "Unknown Madera SPI device type %ld\n", type);
> + return -EINVAL;
> + }
> +
> + if (!regmap_16bit_config) {
> + dev_err(&spi->dev,
> + "Kernel does not include support for %s\n",
> + madera_name_from_type(type));
> + return -EINVAL;
> + }
> +
> + madera = devm_kzalloc(&spi->dev, sizeof(*madera), GFP_KERNEL);
> + if (!madera)
> + return -ENOMEM;
> +
> + madera->regmap = devm_regmap_init_spi(spi, regmap_16bit_config);
> + if (IS_ERR(madera->regmap)) {
> + ret = PTR_ERR(madera->regmap);
> + dev_err(&spi->dev,
> + "Failed to allocate 16-bit register map: %d\n", ret);
> + return ret;
> + }
> +
> + madera->regmap_32bit = devm_regmap_init_spi(spi, regmap_32bit_config);
> + if (IS_ERR(madera->regmap_32bit)) {
> + ret = PTR_ERR(madera->regmap_32bit);
> + dev_err(&spi->dev,
> + "Failed to allocate 32-bit register map: %d\n", ret);
> + return ret;
> + }
> +
> + madera->type = type;
> + madera->dev = &spi->dev;
> + madera->irq = spi->irq;
> +
> + return madera_dev_init(madera);
> +}
> +
> +static int madera_spi_remove(struct spi_device *spi)
> +{
> + struct madera *madera = spi_get_drvdata(spi);
> +
> + madera_dev_exit(madera);
As above.
> + return 0;
> +}
> +
> +static const struct spi_device_id madera_spi_ids[] = {
> + { "cs47l35", CS47L35 },
> + { "cs47l85", CS47L85 },
> + { "cs47l90", CS47L90 },
> + { "cs47l91", CS47L91 },
> + { "wm1840", WM1840 },
> + { },
> +};
> +MODULE_DEVICE_TABLE(spi, madera_spi_ids);
> +
> +static struct spi_driver madera_spi_driver = {
> + .driver = {
> + .name = "madera",
> + .owner = THIS_MODULE,
> + .pm = &madera_pm_ops,
> + .of_match_table = of_match_ptr(madera_of_match),
> + },
> + .probe = madera_spi_probe,
> + .remove = madera_spi_remove,
> + .id_table = madera_spi_ids,
> +};
> +
> +module_spi_driver(madera_spi_driver);
> +
> +MODULE_DESCRIPTION("Madera SPI bus interface");
> +MODULE_AUTHOR("Richard Fitzgerald <[email protected]>");
> +MODULE_LICENSE("GPL v2");
> diff --git a/drivers/mfd/madera.h b/drivers/mfd/madera.h
> new file mode 100644
> index 0000000..57f6add
> --- /dev/null
> +++ b/drivers/mfd/madera.h
> @@ -0,0 +1,52 @@
> +/*
> + * madera.h -- MFD internals for Cirrus Logic Madera codecs
Please remove the file name from this header.
> + * Copyright 2015-2016 Cirrus Logic
This needs updating.
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#ifndef MADERA_MFD_H
> +#define MADERA_MFD_H
> +
> +#include <linux/pm.h>
> +#include <linux/of.h>
Alphabetical.
> +struct madera;
> +
> +extern const struct dev_pm_ops madera_pm_ops;
> +extern const struct of_device_id madera_of_match[];
> +
> +int madera_dev_init(struct madera *madera);
> +int madera_dev_exit(struct madera *madera);
> +
> +#ifdef CONFIG_OF
> +unsigned long madera_of_get_type(struct device *dev);
> +#else
> +static inline unsigned long madera_of_get_type(struct device *dev)
> +{
> + return 0;
> +}
> +#endif
If you move to a generic get_type approach you can remove these
lines.
> +extern const struct regmap_config cs47l35_16bit_spi_regmap;
> +extern const struct regmap_config cs47l35_32bit_spi_regmap;
> +extern const struct regmap_config cs47l35_16bit_i2c_regmap;
> +extern const struct regmap_config cs47l35_32bit_i2c_regmap;
> +int cs47l35_patch(struct madera *madera);
> +
> +extern const struct regmap_config cs47l85_16bit_spi_regmap;
> +extern const struct regmap_config cs47l85_32bit_spi_regmap;
> +extern const struct regmap_config cs47l85_16bit_i2c_regmap;
> +extern const struct regmap_config cs47l85_32bit_i2c_regmap;
> +int cs47l85_patch(struct madera *madera);
> +
> +extern const struct regmap_config cs47l90_16bit_spi_regmap;
> +extern const struct regmap_config cs47l90_32bit_spi_regmap;
> +extern const struct regmap_config cs47l90_16bit_i2c_regmap;
> +extern const struct regmap_config cs47l90_32bit_i2c_regmap;
> +int cs47l90_patch(struct madera *madera);
Where do these live?
> +#endif
> diff --git a/include/linux/mfd/madera/core.h b/include/linux/mfd/madera/core.h
> new file mode 100644
> index 0000000..59b05f8
> --- /dev/null
> +++ b/include/linux/mfd/madera/core.h
> @@ -0,0 +1,175 @@
> +/*
> + * MFD internals for Cirrus Logic Madera codecs
> + *
> + * Copyright 2015-2017 Cirrus Logic
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#ifndef MADERA_CORE_H
> +#define MADERA_CORE_H
> +
> +#include <linux/interrupt.h>
> +#include <linux/regmap.h>
> +#include <linux/notifier.h>
> +#include <linux/gpio/consumer.h>
> +#include <linux/regulator/consumer.h>
> +#include <linux/mfd/madera/pdata.h>
> +#include <linux/irqchip/irq-madera.h>
> +#include <sound/madera-pdata.h>
Alphabetical.
> +enum madera_type {
> + CS47L35 = 1,
> + CS47L85 = 2,
> + CS47L90 = 3,
> + CS47L91 = 4,
> + WM1840 = 7,
> +};
> +
> +#define MADERA_MAX_CORE_SUPPLIES 2
> +#define MADERA_MAX_GPIOS 40
> +
> +#define CS47L35_NUM_GPIOS 16
> +#define CS47L85_NUM_GPIOS 40
> +#define CS47L90_NUM_GPIOS 38
> +
> +
> +/* Notifier events */
> +#define MADERA_NOTIFY_VOICE_TRIGGER 0x1
> +#define MADERA_NOTIFY_HPDET 0x2
> +#define MADERA_NOTIFY_MICDET 0x4
> +
> +/* GPIO Function Definitions */
> +#define MADERA_GP_FN_ALTERNATE 0x00
> +#define MADERA_GP_FN_GPIO 0x01
> +#define MADERA_GP_FN_DSP_GPIO 0x02
> +#define MADERA_GP_FN_IRQ1 0x03
> +#define MADERA_GP_FN_IRQ2 0x04
> +#define MADERA_GP_FN_FLL1_CLOCK 0x10
> +#define MADERA_GP_FN_FLL2_CLOCK 0x11
> +#define MADERA_GP_FN_FLL3_CLOCK 0x12
> +#define MADERA_GP_FN_FLLAO_CLOCK 0x13
> +#define MADERA_GP_FN_FLL1_LOCK 0x18
> +#define MADERA_GP_FN_FLL2_LOCK 0x19
> +#define MADERA_GP_FN_FLL3_LOCK 0x1A
> +#define MADERA_GP_FN_FLLAO_LOCK 0x1B
> +#define MADERA_GP_FN_OPCLK_OUT 0x40
> +#define MADERA_GP_FN_OPCLK_ASYNC_OUT 0x41
> +#define MADERA_GP_FN_PWM1 0x48
> +#define MADERA_GP_FN_PWM2 0x49
> +#define MADERA_GP_FN_SPDIF_OUT 0x4C
> +#define MADERA_GP_FN_HEADPHONE_DET 0x50
> +#define MADERA_GP_FN_MIC_DET 0x58
> +#define MADERA_GP_FN_DRC1_SIGNAL_DETECT 0x80
> +#define MADERA_GP_FN_DRC2_SIGNAL_DETECT 0x81
> +#define MADERA_GP_FN_ASRC1_IN1_LOCK 0x88
> +#define MADERA_GP_FN_ASRC1_IN2_LOCK 0x89
> +#define MADERA_GP_FN_ASRC2_IN1_LOCK 0x8A
> +#define MADERA_GP_FN_ASRC2_IN2_LOCK 0x8B
> +#define MADERA_GP_FN_DSP_IRQ1 0xA0
> +#define MADERA_GP_FN_DSP_IRQ2 0xA1
> +#define MADERA_GP_FN_DSP_IRQ3 0xA2
> +#define MADERA_GP_FN_DSP_IRQ4 0xA3
> +#define MADERA_GP_FN_DSP_IRQ5 0xA4
> +#define MADERA_GP_FN_DSP_IRQ6 0xA5
> +#define MADERA_GP_FN_DSP_IRQ7 0xA6
> +#define MADERA_GP_FN_DSP_IRQ8 0xA7
> +#define MADERA_GP_FN_DSP_IRQ9 0xA8
> +#define MADERA_GP_FN_DSP_IRQ10 0xA9
> +#define MADERA_GP_FN_DSP_IRQ11 0xAA
> +#define MADERA_GP_FN_DSP_IRQ12 0xAB
> +#define MADERA_GP_FN_DSP_IRQ13 0xAC
> +#define MADERA_GP_FN_DSP_IRQ14 0xAD
> +#define MADERA_GP_FN_DSP_IRQ15 0xAE
> +#define MADERA_GP_FN_DSP_IRQ16 0xAF
> +#define MADERA_GP_FN_HPOUT1L_SC 0xB0
> +#define MADERA_GP_FN_HPOUT1R_SC 0xB1
> +#define MADERA_GP_FN_HPOUT2L_SC 0xB2
> +#define MADERA_GP_FN_HPOUT2R_SC 0xB3
> +#define MADERA_GP_FN_HPOUT3L_SC 0xB4
> +#define MADERA_GP_FN_HPOUT4R_SC 0xB5
> +#define MADERA_GP_FN_SPKOUTL_SC 0xB6
> +#define MADERA_GP_FN_SPKOUTR_SC 0xB7
> +#define MADERA_GP_FN_HPOUT1L_ENA 0xC0
> +#define MADERA_GP_FN_HPOUT1R_ENA 0xC1
> +#define MADERA_GP_FN_HPOUT2L_ENA 0xC2
> +#define MADERA_GP_FN_HPOUT2R_ENA 0xC3
> +#define MADERA_GP_FN_HPOUT3L_ENA 0xC4
> +#define MADERA_GP_FN_HPOUT4R_ENA 0xC5
> +#define MADERA_GP_FN_SPKOUTL_ENA 0xC6
> +#define MADERA_GP_FN_SPKOUTR_ENA 0xC7
> +#define MADERA_GP_FN_HPOUT1L_DIS 0xD0
> +#define MADERA_GP_FN_HPOUT1R_DIS 0xD1
> +#define MADERA_GP_FN_HPOUT2L_DIS 0xD2
> +#define MADERA_GP_FN_HPOUT2R_DIS 0xD3
> +#define MADERA_GP_FN_HPOUT3L_DIS 0xD4
> +#define MADERA_GP_FN_HPOUT4R_DIS 0xD5
> +#define MADERA_GP_FN_SPKOUTL_DIS 0xD6
> +#define MADERA_GP_FN_SPKOUTR_DIS 0xD7
> +#define MADERA_GP_FN_SPK_SHUTDOWN 0xE0
> +#define MADERA_GP_FN_SPK_OVH_SHUTDOWN 0xE1
> +#define MADERA_GP_FN_SPK_OVH_WARN 0xE2
> +#define MADERA_GP_FN_TIMER1_STATUS 0x140
> +#define MADERA_GP_FN_TIMER2_STATUS 0x141
> +#define MADERA_GP_FN_TIMER3_STATUS 0x142
> +#define MADERA_GP_FN_TIMER4_STATUS 0x143
> +#define MADERA_GP_FN_TIMER5_STATUS 0x144
> +#define MADERA_GP_FN_TIMER6_STATUS 0x145
> +#define MADERA_GP_FN_TIMER7_STATUS 0x146
> +#define MADERA_GP_FN_TIMER8_STATUS 0x147
> +#define MADERA_GP_FN_EVENTLOG1_FIFO_STS 0x150
> +#define MADERA_GP_FN_EVENTLOG2_FIFO_STS 0x151
> +#define MADERA_GP_FN_EVENTLOG3_FIFO_STS 0x152
> +#define MADERA_GP_FN_EVENTLOG4_FIFO_STS 0x153
> +#define MADERA_GP_FN_EVENTLOG5_FIFO_STS 0x154
> +#define MADERA_GP_FN_EVENTLOG6_FIFO_STS 0x155
> +#define MADERA_GP_FN_EVENTLOG7_FIFO_STS 0x156
> +#define MADERA_GP_FN_EVENTLOG8_FIFO_STS 0x157
> +
> +struct snd_soc_dapm_context;
> +
> +struct madera {
> + struct regmap *regmap;
> + struct regmap *regmap_32bit;
> +
> + struct device *dev;
> +
> + enum madera_type type;
> + unsigned int rev;
> +
> + struct gpio_desc *reset_gpio;
> +
> + int num_core_supplies;
> + struct regulator_bulk_data core_supplies[MADERA_MAX_CORE_SUPPLIES];
> + struct regulator *dcvdd;
> + bool internal_dcvdd;
> +
> + struct madera_pdata pdata;
> +
> + struct device *irq_dev;
> + int irq;
> +
> + unsigned int out_clamp[MADERA_MAX_OUTPUT];
> + unsigned int out_shorted[MADERA_MAX_OUTPUT];
> + unsigned int hp_ena;
> +
> + struct snd_soc_dapm_context *dapm;
> +
> + struct blocking_notifier_head notifier;
> +};
Please supply a kerneldoc header for this struct.
> +unsigned int madera_get_num_micbias(struct madera *madera);
> +unsigned int madera_get_num_childbias(struct madera *madera,
> + unsigned int micbias);
> +
> +const char *madera_name_from_type(enum madera_type type);
> +
> +static inline int madera_call_notifiers(struct madera *madera,
> + unsigned long event,
> + void *data)
> +{
> + return blocking_notifier_call_chain(&madera->notifier, event, data);
> +}
> +#endif
> diff --git a/include/linux/mfd/madera/pdata.h b/include/linux/mfd/madera/pdata.h
> new file mode 100644
> index 0000000..6d930aa
> --- /dev/null
> +++ b/include/linux/mfd/madera/pdata.h
> @@ -0,0 +1,88 @@
> +/*
> + * Platform data for Cirrus Logic Madera codecs
> + *
> + * Copyright 2015-2017 Cirrus Logic
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#ifndef MADERA_PDATA_H
> +#define MADERA_PDATA_H
> +
> +#include <linux/kernel.h>
> +#include <linux/regulator/machine.h>
> +
Why the '\n'?
> +#include <linux/regulator/madera-ldo1.h>
> +#include <linux/regulator/madera-micsupp.h>
> +#include <linux/irqchip/irq-madera-pdata.h>
> +#include <sound/madera-pdata.h>
Alphabetical
> +#define MADERA_MAX_MICBIAS 4
> +#define MADERA_MAX_CHILD_MICBIAS 4
> +
> +#define MADERA_MAX_GPSW 2
> +
> +struct pinctrl_map;
> +
> +/** MICBIAS pin configuration */
Kerneldoc comment with no kerneldoc ??
Same as below.
> +struct madera_micbias_pin_pdata {
> + /** Regulator configuration for pin switch */
Just use Kerneldoc instead.
Same for all of these structs.
> + struct regulator_init_data init_data;
> +};
> +
> +/** Regulator configuration for an on-chip MICBIAS */
> +struct madera_micbias_pdata {
> + /** Configuration of the MICBIAS generator */
> + struct regulator_init_data init_data;
> +
> + bool ext_cap; /** External capacitor fitted */
> +
> + /**
> + * Configuration for each output pin from this MICBIAS
> + * (Not used on CS47L85 and WM1840)
> + */
> + struct madera_micbias_pin_pdata pin[MADERA_MAX_CHILD_MICBIAS];
> +};
> +
> +struct madera_pdata {
> + /** GPIO controlling /RESET, if any */
> + int reset;
> +
> + /** Substruct of pdata for the LDO1 regulator */
> + struct madera_ldo1_pdata ldo1;
> +
> + /** Substruct of pdata for the MICSUPP regulator */
> + struct madera_micsupp_pdata micsupp;
> +
> + /** Substruct of pdata for the irqchip driver */
> + struct madera_irqchip_pdata irqchip;
> +
> + /** Base GPIO */
> + int gpio_base;
> +
> + /**
> + * Array of GPIO configurations
> + * See Documentation/pinctrl.txt
> + */
> + const struct pinctrl_map *gpio_configs;
> + int n_gpio_configs;
> +
> + /** MICBIAS configurations */
> + struct madera_micbias_pdata micbias[MADERA_MAX_MICBIAS];
> +
> + /**
> + * Substructure of pdata for the ASoC codec driver
> + * See include/sound/madera-pdata.h
> + */
> + struct madera_codec_pdata codec;
> +
> + /**
> + * General purpose switch mode setting
> + * See the SW1_MODE field in the datasheet for the available values
> + */
> + u32 gpsw[MADERA_MAX_GPSW];
> +};
> +
> +#endif
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
On Wed, 05 Apr 2017, Richard Fitzgerald wrote:
> Regmap configuration tables for Cirrus Logic CS47L35 codecs.
>
> Signed-off-by: Piotr Stankiewicz <[email protected]>
> Signed-off-by: Richard Fitzgerald <[email protected]>
> Signed-off-by: Charles Keepax <[email protected]>
> ---
> drivers/mfd/Kconfig | 6 +
> drivers/mfd/Makefile | 3 +
> drivers/mfd/cs47l35-tables.c | 1688 ++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 1697 insertions(+)
> create mode 100644 drivers/mfd/cs47l35-tables.c
>
> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index f0f9979..5aa62f4 100644
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> @@ -226,6 +226,12 @@ config MFD_MADERA_SPI
> Support for the Cirrus Logic Madera platform audio SoC
> core functionality controlled via SPI.
>
> +config MFD_CS47L35
> + bool "Cirrus Logic CS47L35"
> + depends on MFD_MADERA
> + help
> + Support for Cirrus Logic CS47L35 Smart Codec
> +
> config MFD_ASIC3
> bool "Compaq ASIC3"
> depends on GPIOLIB && ARM
> diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
> index c41f6c9..c14a86d 100644
> --- a/drivers/mfd/Makefile
> +++ b/drivers/mfd/Makefile
> @@ -73,6 +73,9 @@ wm8994-objs := wm8994-core.o wm8994-irq.o wm8994-regmap.o
> obj-$(CONFIG_MFD_WM8994) += wm8994.o
>
> obj-$(CONFIG_MFD_MADERA) += madera-core.o
> +ifeq ($(CONFIG_MFD_CS47L35),y)
> +obj-$(CONFIG_MFD_MADERA) += cs47l35-tables.o
> +endif
> obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o
> obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
>
> diff --git a/drivers/mfd/cs47l35-tables.c b/drivers/mfd/cs47l35-tables.c
> new file mode 100644
> index 0000000..1336c60
> --- /dev/null
> +++ b/drivers/mfd/cs47l35-tables.c
> @@ -0,0 +1,1688 @@
> +/*
> + * Regmap tables for CS47L35 codec
> + *
> + * Copyright 2015-2016 Cirrus Logic
Nit: This needs updating.
Apart from that:
For my own reference:
Acked-for-MFD-by: Lee Jones <[email protected]>
> + * Author: Piotr Stankiewicz <[email protected]>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#include <linux/device.h>
> +#include <linux/module.h>
> +#include <linux/regmap.h>
> +
> +#include <linux/mfd/madera/core.h>
> +#include <linux/mfd/madera/registers.h>
> +
> +#include "madera.h"
> +
> +static const struct reg_sequence cs47l35_reva_16_patch[] = {
> + { 0x460, 0x0c40 },
> + { 0x461, 0xcd1a },
> + { 0x462, 0x0c40 },
> + { 0x463, 0xb53b },
> + { 0x464, 0x0c40 },
> + { 0x465, 0x7503 },
> + { 0x466, 0x0c40 },
> + { 0x467, 0x4a41 },
> + { 0x468, 0x0041 },
> + { 0x469, 0x3491 },
> + { 0x46a, 0x0841 },
> + { 0x46b, 0x1f50 },
> + { 0x46c, 0x0446 },
> + { 0x46d, 0x14ed },
> + { 0x46e, 0x0446 },
> + { 0x46f, 0x1455 },
> + { 0x470, 0x04c6 },
> + { 0x471, 0x1220 },
> + { 0x472, 0x04c6 },
> + { 0x473, 0x040f },
> + { 0x474, 0x04ce },
> + { 0x475, 0x0339 },
> + { 0x476, 0x05df },
> + { 0x477, 0x028f },
> + { 0x478, 0x05df },
> + { 0x479, 0x0209 },
> + { 0x47a, 0x05df },
> + { 0x47b, 0x00cf },
> + { 0x47c, 0x05df },
> + { 0x47d, 0x0001 },
> + { 0x47e, 0x07ff },
> +};
> +
> +int cs47l35_patch(struct madera *madera)
> +{
> + int ret;
> +
> + ret = regmap_register_patch(madera->regmap, cs47l35_reva_16_patch,
> + ARRAY_SIZE(cs47l35_reva_16_patch));
> + if (ret < 0)
> + dev_err(madera->dev, "Error applying patch: %d\n", ret);
> +
> + return ret;
> +}
> +EXPORT_SYMBOL_GPL(cs47l35_patch);
> +
> +static const struct reg_default cs47l35_reg_default[] = {
> + { 0x00000020, 0x0000 }, /* R32 (0x20) - Tone Generator 1 */
> + { 0x00000021, 0x1000 }, /* R33 (0x21) - Tone Generator 2 */
> + { 0x00000022, 0x0000 }, /* R34 (0x22) - Tone Generator 3 */
> + { 0x00000023, 0x1000 }, /* R35 (0x23) - Tone Generator 4 */
> + { 0x00000024, 0x0000 }, /* R36 (0x24) - Tone Generator 5 */
> + { 0x00000030, 0x0000 }, /* R48 (0x30) - PWM Drive 1 */
> + { 0x00000031, 0x0100 }, /* R49 (0x31) - PWM Drive 2 */
> + { 0x00000032, 0x0100 }, /* R50 (0x32) - PWM Drive 3 */
> + { 0x00000061, 0x01ff }, /* R97 (0x61) - Sample Rate Sequence Select 1 */
> + { 0x00000062, 0x01ff }, /* R98 (0x62) - Sample Rate Sequence Select 2 */
> + { 0x00000063, 0x01ff }, /* R99 (0x63) - Sample Rate Sequence Select 3 */
> + { 0x00000064, 0x01ff }, /* R100 (0x64) - Sample Rate Sequence Select 4*/
> + { 0x00000066, 0x01ff }, /* R102 (0x66) - Always On Triggers Sequence Select 1*/
> + { 0x00000067, 0x01ff }, /* R103 (0x67) - Always On Triggers Sequence Select 2*/
> + { 0x00000090, 0x0000 }, /* R144 (0x90) - Haptics Control 1 */
> + { 0x00000091, 0x7fff }, /* R145 (0x91) - Haptics Control 2 */
> + { 0x00000092, 0x0000 }, /* R146 (0x92) - Haptics phase 1 intensity */
> + { 0x00000093, 0x0000 }, /* R147 (0x93) - Haptics phase 1 duration */
> + { 0x00000094, 0x0000 }, /* R148 (0x94) - Haptics phase 2 intensity */
> + { 0x00000095, 0x0000 }, /* R149 (0x95) - Haptics phase 2 duration */
> + { 0x00000096, 0x0000 }, /* R150 (0x96) - Haptics phase 3 intensity */
> + { 0x00000097, 0x0000 }, /* R151 (0x97) - Haptics phase 3 duration */
> + { 0x000000A0, 0x0000 }, /* R160 (0xa0) - Comfort Noise Generator */
> + { 0x00000100, 0x0002 }, /* R256 (0x100) - Clock 32k 1 */
> + { 0x00000101, 0x0404 }, /* R257 (0x101) - System Clock 1 */
> + { 0x00000102, 0x0011 }, /* R258 (0x102) - Sample rate 1 */
> + { 0x00000103, 0x0011 }, /* R259 (0x103) - Sample rate 2 */
> + { 0x00000104, 0x0011 }, /* R260 (0x104) - Sample rate 3 */
> + { 0x00000120, 0x0305 }, /* R288 (0x120) - DSP Clock 1 */
> + { 0x00000122, 0x0000 }, /* R290 (0x122) - DSP Clock 2 */
> + { 0x00000149, 0x0000 }, /* R329 (0x149) - Output system clock */
> + { 0x0000014a, 0x0000 }, /* R330 (0x14a) - Output async clock */
> + { 0x00000152, 0x0000 }, /* R338 (0x152) - Rate Estimator 1 */
> + { 0x00000153, 0x0000 }, /* R339 (0x153) - Rate Estimator 2 */
> + { 0x00000154, 0x0000 }, /* R340 (0x154) - Rate Estimator 3 */
> + { 0x00000155, 0x0000 }, /* R341 (0x155) - Rate Estimator 4 */
> + { 0x00000156, 0x0000 }, /* R342 (0x156) - Rate Estimator 5 */
> + { 0x00000171, 0x0002 }, /* R369 (0x171) - FLL1 Control 1 */
> + { 0x00000172, 0x0008 }, /* R370 (0x172) - FLL1 Control 2 */
> + { 0x00000173, 0x0018 }, /* R371 (0x173) - FLL1 Control 3 */
> + { 0x00000174, 0x007d }, /* R372 (0x174) - FLL1 Control 4 */
> + { 0x00000175, 0x0000 }, /* R373 (0x175) - FLL1 Control 5 */
> + { 0x00000176, 0x0000 }, /* R374 (0x176) - FLL1 Control 6 */
> + { 0x00000177, 0x0281 }, /* R375 (0x177) - FLL1 Loop Filter Test 1 */
> + { 0x00000179, 0x0000 }, /* R377 (0x179) - FLL1 Control 7 */
> + { 0x0000017f, 0x0000 }, /* R383 (0x17f) - FLL1 Synchroniser 1 */
> + { 0x00000180, 0x0000 }, /* R384 (0x180) - FLL1 Synchroniser 2 */
> + { 0x00000181, 0x0000 }, /* R385 (0x181) - FLL1 Synchroniser 3 */
> + { 0x00000182, 0x0000 }, /* R386 (0x182) - FLL1 Synchroniser 4 */
> + { 0x00000183, 0x0000 }, /* R387 (0x183) - FLL1 Synchroniser 5 */
> + { 0x00000184, 0x0000 }, /* R388 (0x184) - FLL1 Synchroniser 6 */
> + { 0x00000185, 0x0001 }, /* R389 (0x185) - FLL1 Synchroniser 7 */
> + { 0x00000187, 0x0000 }, /* R391 (0x187) - FLL1 Spread Spectrum */
> + { 0x00000188, 0x000c }, /* R392 (0x188) - FLL1 GPIO Clock */
> + { 0x00000200, 0x0006 }, /* R512 (0x200) - Mic Charge Pump 1 */
> + { 0x0000020b, 0x0400 }, /* R523 (0x20b) - HP Charge Pump 8 */
> + { 0x00000213, 0x03e4 }, /* R531 (0x213) - LDO2 Control 1 */
> + { 0x00000218, 0x00e6 }, /* R536 (0x218) - Mic Bias Ctrl 1 */
> + { 0x00000219, 0x00e6 }, /* R537 (0x219) - Mic Bias Ctrl 2 */
> + { 0x0000021c, 0x0022 }, /* R540 (0x21c) - Mic Bias Ctrl 5 */
> + { 0x0000021e, 0x0022 }, /* R542 (0x21e) - Mic Bias Ctrl 6 */
> + { 0x0000027e, 0x0000 }, /* R638 (0x27e) - EDRE HP stereo control */
> + { 0x00000293, 0x0080 }, /* R659 (0x293) - Accessory Detect Mode 1 */
> + { 0x0000029b, 0x0000 }, /* R667 (0x29b) - Headphone Detect 1 */
> + { 0x000002a3, 0x1102 }, /* R675 (0x2a3) - Mic Detect Control 1 */
> + { 0x000002a4, 0x009f }, /* R676 (0x2a4) - Mic Detect Control 2 */
> + { 0x000002a6, 0x3d3d }, /* R678 (0x2a6) - Mic Detect Level 1 */
> + { 0x000002a7, 0x3d3d }, /* R679 (0x2a7) - Mic Detect Level 2 */
> + { 0x000002a8, 0x333d }, /* R680 (0x2a8) - Mic Detect Level 3 */
> + { 0x000002a9, 0x202d }, /* R681 (0x2a9) - Mic Detect Level 4 */
> + { 0x000002c6, 0x0010 }, /* R710 (0x2c5) - Mic Clamp control */
> + { 0x000002c8, 0x0000 }, /* R712 (0x2c8) - GP switch 1 */
> + { 0x000002d3, 0x0000 }, /* R723 (0x2d3) - Jack detect analogue */
> + { 0x00000300, 0x0000 }, /* R768 (0x300) - Input Enables */
> + { 0x00000308, 0x0000 }, /* R776 (0x308) - Input Rate */
> + { 0x00000309, 0x0022 }, /* R777 (0x309) - Input Volume Ramp */
> + { 0x0000030c, 0x0002 }, /* R780 (0x30c) - HPF Control */
> + { 0x00000310, 0x0080 }, /* R784 (0x310) - IN1L Control */
> + { 0x00000311, 0x0180 }, /* R785 (0x311) - ADC Digital Volume 1L */
> + { 0x00000312, 0x0500 }, /* R786 (0x312) - DMIC1L Control */
> + { 0x00000314, 0x0080 }, /* R788 (0x314) - IN1R Control */
> + { 0x00000315, 0x0180 }, /* R789 (0x315) - ADC Digital Volume 1R */
> + { 0x00000316, 0x0000 }, /* R790 (0x316) - DMIC1R Control */
> + { 0x00000318, 0x0080 }, /* R792 (0x318) - IN2L Control */
> + { 0x00000319, 0x0180 }, /* R793 (0x319) - ADC Digital Volume 2L */
> + { 0x0000031a, 0x0500 }, /* R794 (0x31a) - DMIC2L Control */
> + { 0x0000031c, 0x0080 }, /* R796 (0x31c) - IN2R Control */
> + { 0x0000031d, 0x0180 }, /* R797 (0x31d) - ADC Digital Volume 2R */
> + { 0x0000031e, 0x0000 }, /* R798 (0x31e) - DMIC2R Control */
> + { 0x00000400, 0x0000 }, /* R1024 (0x400) - Output Enables 1 */
> + { 0x00000408, 0x0000 }, /* R1032 (0x408) - Output Rate 1 */
> + { 0x00000409, 0x0022 }, /* R1033 (0x409) - Output Volume Ramp */
> + { 0x00000410, 0x0080 }, /* R1040 (0x410) - Output Path Config 1L */
> + { 0x00000411, 0x0180 }, /* R1041 (0x411) - DAC Digital Volume 1L */
> + { 0x00000413, 0x0001 }, /* R1043 (0x413) - Noise Gate Select 1L */
> + { 0x00000414, 0x0080 }, /* R1044 (0x414) - Output Path Config 1R */
> + { 0x00000415, 0x0180 }, /* R1045 (0x415) - DAC Digital Volume 1R */
> + { 0x00000417, 0x0002 }, /* R1047 (0x417) - Noise Gate Select 1R */
> + { 0x00000428, 0x0000 }, /* R1064 (0x428) - Output Path Config 4L */
> + { 0x00000429, 0x0180 }, /* R1065 (0x429) - DAC Digital Volume 4L */
> + { 0x0000042b, 0x0040 }, /* R1067 (0x42b) - Noise Gate Select 4L */
> + { 0x00000430, 0x0000 }, /* R1072 (0x430) - Output Path Config 5L */
> + { 0x00000431, 0x0180 }, /* R1073 (0x431) - DAC Digital Volume 5L */
> + { 0x00000433, 0x0100 }, /* R1075 (0x433) - Noise Gate Select 5L */
> + { 0x00000434, 0x0000 }, /* R1076 (0x434) - Output Path Config 5R */
> + { 0x00000435, 0x0180 }, /* R1077 (0x435) - DAC Digital Volume 5R */
> + { 0x00000437, 0x0200 }, /* R1079 (0x437) - Noise Gate Select 5R */
> + { 0x00000440, 0x0003 }, /* R1088 (0x440) - DRE Enable */
> + { 0x00000448, 0x0a83 }, /* R1096 (0x448) - eDRE Enable */
> + { 0x0000044a, 0x0000 }, /* R1098 (0x44a) - eDRE Manual */
> + { 0x00000450, 0x0000 }, /* R1104 (0x450) - DAC AEC Control 1 */
> + { 0x00000458, 0x0000 }, /* R1112 (0x458) - Noise Gate Control */
> + { 0x00000490, 0x0069 }, /* R1168 (0x490) - PDM SPK1 CTRL 1 */
> + { 0x00000491, 0x0000 }, /* R1169 (0x491) - PDM SPK1 CTRL 2 */
> + { 0x000004a0, 0x3080 }, /* R1184 (0x4a0) - HP1 Short Circuit Ctrl */
> + { 0x000004a8, 0x7120 }, /* R1192 (0x4a8) - HP Test Ctrl 5 */
> + { 0x000004a9, 0x7120 }, /* R1193 (0x4a9) - HP Test Ctrl 6 */
> + { 0x00000500, 0x000c }, /* R1280 (0x500) - AIF1 BCLK Ctrl */
> + { 0x00000501, 0x0000 }, /* R1281 (0x501) - AIF1 Tx Pin Ctrl */
> + { 0x00000502, 0x0000 }, /* R1282 (0x502) - AIF1 Rx Pin Ctrl */
> + { 0x00000503, 0x0000 }, /* R1283 (0x503) - AIF1 Rate Ctrl */
> + { 0x00000504, 0x0000 }, /* R1284 (0x504) - AIF1 Format */
> + { 0x00000506, 0x0040 }, /* R1286 (0x506) - AIF1 Rx BCLK Rate */
> + { 0x00000507, 0x1818 }, /* R1287 (0x507) - AIF1 Frame Ctrl 1 */
> + { 0x00000508, 0x1818 }, /* R1288 (0x508) - AIF1 Frame Ctrl 2 */
> + { 0x00000509, 0x0000 }, /* R1289 (0x509) - AIF1 Frame Ctrl 3 */
> + { 0x0000050a, 0x0001 }, /* R1290 (0x50a) - AIF1 Frame Ctrl 4 */
> + { 0x0000050b, 0x0002 }, /* R1291 (0x50b) - AIF1 Frame Ctrl 5 */
> + { 0x0000050c, 0x0003 }, /* R1292 (0x50c) - AIF1 Frame Ctrl 6 */
> + { 0x0000050d, 0x0004 }, /* R1293 (0x50d) - AIF1 Frame Ctrl 7 */
> + { 0x0000050e, 0x0005 }, /* R1294 (0x50e) - AIF1 Frame Ctrl 8 */
> + { 0x00000511, 0x0000 }, /* R1297 (0x511) - AIF1 Frame Ctrl 11 */
> + { 0x00000512, 0x0001 }, /* R1298 (0x512) - AIF1 Frame Ctrl 12 */
> + { 0x00000513, 0x0002 }, /* R1299 (0x513) - AIF1 Frame Ctrl 13 */
> + { 0x00000514, 0x0003 }, /* R1300 (0x514) - AIF1 Frame Ctrl 14 */
> + { 0x00000515, 0x0004 }, /* R1301 (0x515) - AIF1 Frame Ctrl 15 */
> + { 0x00000516, 0x0005 }, /* R1302 (0x516) - AIF1 Frame Ctrl 16 */
> + { 0x00000519, 0x0000 }, /* R1305 (0x519) - AIF1 Tx Enables */
> + { 0x0000051a, 0x0000 }, /* R1306 (0x51a) - AIF1 Rx Enables */
> + { 0x00000540, 0x000c }, /* R1344 (0x540) - AIF2 BCLK Ctrl */
> + { 0x00000541, 0x0000 }, /* R1345 (0x541) - AIF2 Tx Pin Ctrl */
> + { 0x00000542, 0x0000 }, /* R1346 (0x542) - AIF2 Rx Pin Ctrl */
> + { 0x00000543, 0x0000 }, /* R1347 (0x543) - AIF2 Rate Ctrl */
> + { 0x00000544, 0x0000 }, /* R1348 (0x544) - AIF2 Format */
> + { 0x00000546, 0x0040 }, /* R1350 (0x546) - AIF2 Rx BCLK Rate */
> + { 0x00000547, 0x1818 }, /* R1351 (0x547) - AIF2 Frame Ctrl 1 */
> + { 0x00000548, 0x1818 }, /* R1352 (0x548) - AIF2 Frame Ctrl 2 */
> + { 0x00000549, 0x0000 }, /* R1353 (0x549) - AIF2 Frame Ctrl 3 */
> + { 0x0000054a, 0x0001 }, /* R1354 (0x54a) - AIF2 Frame Ctrl 4 */
> + { 0x00000551, 0x0000 }, /* R1361 (0x551) - AIF2 Frame Ctrl 11 */
> + { 0x00000552, 0x0001 }, /* R1362 (0x552) - AIF2 Frame Ctrl 12 */
> + { 0x00000559, 0x0000 }, /* R1369 (0x559) - AIF2 Tx Enables */
> + { 0x0000055a, 0x0000 }, /* R1370 (0x55a) - AIF2 Rx Enables */
> + { 0x00000580, 0x000c }, /* R1408 (0x580) - AIF3 BCLK Ctrl */
> + { 0x00000581, 0x0000 }, /* R1409 (0x581) - AIF3 Tx Pin Ctrl */
> + { 0x00000582, 0x0000 }, /* R1410 (0x582) - AIF3 Rx Pin Ctrl */
> + { 0x00000583, 0x0000 }, /* R1411 (0x583) - AIF3 Rate Ctrl */
> + { 0x00000584, 0x0000 }, /* R1412 (0x584) - AIF3 Format */
> + { 0x00000586, 0x0040 }, /* R1414 (0x586) - AIF3 Rx BCLK Rate */
> + { 0x00000587, 0x1818 }, /* R1415 (0x587) - AIF3 Frame Ctrl 1 */
> + { 0x00000588, 0x1818 }, /* R1416 (0x588) - AIF3 Frame Ctrl 2 */
> + { 0x00000589, 0x0000 }, /* R1417 (0x589) - AIF3 Frame Ctrl 3 */
> + { 0x0000058a, 0x0001 }, /* R1418 (0x58a) - AIF3 Frame Ctrl 4 */
> + { 0x00000591, 0x0000 }, /* R1425 (0x591) - AIF3 Frame Ctrl 11 */
> + { 0x00000592, 0x0001 }, /* R1426 (0x592) - AIF3 Frame Ctrl 12 */
> + { 0x00000599, 0x0000 }, /* R1433 (0x599) - AIF3 Tx Enables */
> + { 0x0000059a, 0x0000 }, /* R1434 (0x59a) - AIF3 Rx Enables */
> + { 0x000005c2, 0x0000 }, /* R1474 (0x5c2) - SPD1 TX Control */
> + { 0x000005e3, 0x0000 }, /* R1507 (0x5e3) - SLIMbus Framer Ref Gear */
> + { 0x000005e5, 0x0000 }, /* R1509 (0x5e5) - SLIMbus Rates 1 */
> + { 0x000005e6, 0x0000 }, /* R1510 (0x5e6) - SLIMbus Rates 2 */
> + { 0x000005e7, 0x0000 }, /* R1511 (0x5e7) - SLIMbus Rates 3 */
> + { 0x000005e9, 0x0000 }, /* R1513 (0x5e9) - SLIMbus Rates 5 */
> + { 0x000005ea, 0x0000 }, /* R1514 (0x5ea) - SLIMbus Rates 6 */
> + { 0x000005eb, 0x0000 }, /* R1515 (0x5eb) - SLIMbus Rates 7 */
> + { 0x000005f5, 0x0000 }, /* R1525 (0x5f5) - SLIMbus RX Channel Enable */
> + { 0x000005f6, 0x0000 }, /* R1526 (0x5f6) - SLIMbus TX Channel Enable */
> + { 0x00000640, 0x0000 }, /* R1600 (0x640) - PWM1MIX Input 1 Source */
> + { 0x00000641, 0x0080 }, /* R1601 (0x641) - PWM1MIX Input 1 Volume */
> + { 0x00000642, 0x0000 }, /* R1602 (0x642) - PWM1MIX Input 2 Source */
> + { 0x00000643, 0x0080 }, /* R1603 (0x643) - PWM1MIX Input 2 Volume */
> + { 0x00000644, 0x0000 }, /* R1604 (0x644) - PWM1MIX Input 3 Source */
> + { 0x00000645, 0x0080 }, /* R1605 (0x645) - PWM1MIX Input 3 Volume */
> + { 0x00000646, 0x0000 }, /* R1606 (0x646) - PWM1MIX Input 4 Source */
> + { 0x00000647, 0x0080 }, /* R1607 (0x647) - PWM1MIX Input 4 Volume */
> + { 0x00000648, 0x0000 }, /* R1608 (0x648) - PWM2MIX Input 1 Source */
> + { 0x00000649, 0x0080 }, /* R1609 (0x649) - PWM2MIX Input 1 Volume */
> + { 0x0000064a, 0x0000 }, /* R1610 (0x64a) - PWM2MIX Input 2 Source */
> + { 0x0000064b, 0x0080 }, /* R1611 (0x64b) - PWM2MIX Input 2 Volume */
> + { 0x0000064c, 0x0000 }, /* R1612 (0x64c) - PWM2MIX Input 3 Source */
> + { 0x0000064d, 0x0080 }, /* R1613 (0x64d) - PWM2MIX Input 3 Volume */
> + { 0x0000064e, 0x0000 }, /* R1614 (0x64e) - PWM2MIX Input 4 Source */
> + { 0x0000064f, 0x0080 }, /* R1615 (0x64f) - PWM2MIX Input 4 Volume */
> + { 0x00000680, 0x0000 }, /* R1664 (0x680) - OUT1LMIX Input 1 Source */
> + { 0x00000681, 0x0080 }, /* R1665 (0x681) - OUT1LMIX Input 1 Volume */
> + { 0x00000682, 0x0000 }, /* R1666 (0x682) - OUT1LMIX Input 2 Source */
> + { 0x00000683, 0x0080 }, /* R1667 (0x683) - OUT1LMIX Input 2 Volume */
> + { 0x00000684, 0x0000 }, /* R1668 (0x684) - OUT1LMIX Input 3 Source */
> + { 0x00000685, 0x0080 }, /* R1669 (0x685) - OUT1LMIX Input 3 Volume */
> + { 0x00000686, 0x0000 }, /* R1670 (0x686) - OUT1LMIX Input 4 Source */
> + { 0x00000687, 0x0080 }, /* R1671 (0x687) - OUT1LMIX Input 4 Volume */
> + { 0x00000688, 0x0000 }, /* R1672 (0x688) - OUT1RMIX Input 1 Source */
> + { 0x00000689, 0x0080 }, /* R1673 (0x689) - OUT1RMIX Input 1 Volume */
> + { 0x0000068a, 0x0000 }, /* R1674 (0x68a) - OUT1RMIX Input 2 Source */
> + { 0x0000068b, 0x0080 }, /* R1675 (0x68b) - OUT1RMIX Input 2 Volume */
> + { 0x0000068c, 0x0000 }, /* R1672 (0x68c) - OUT1RMIX Input 3 Source */
> + { 0x0000068d, 0x0080 }, /* R1673 (0x68d) - OUT1RMIX Input 3 Volume */
> + { 0x0000068e, 0x0000 }, /* R1674 (0x68e) - OUT1RMIX Input 4 Source */
> + { 0x0000068f, 0x0080 }, /* R1675 (0x68f) - OUT1RMIX Input 4 Volume */
> + { 0x000006b0, 0x0000 }, /* R1712 (0x6b0) - OUT4LMIX Input 1 Source */
> + { 0x000006b1, 0x0080 }, /* R1713 (0x6b1) - OUT4LMIX Input 1 Volume */
> + { 0x000006b2, 0x0000 }, /* R1714 (0x6b2) - OUT4LMIX Input 2 Source */
> + { 0x000006b3, 0x0080 }, /* R1715 (0x6b3) - OUT4LMIX Input 2 Volume */
> + { 0x000006b4, 0x0000 }, /* R1716 (0x6b4) - OUT4LMIX Input 3 Source */
> + { 0x000006b5, 0x0080 }, /* R1717 (0x6b5) - OUT4LMIX Input 3 Volume */
> + { 0x000006b6, 0x0000 }, /* R1718 (0x6b6) - OUT4LMIX Input 4 Source */
> + { 0x000006b7, 0x0080 }, /* R1719 (0x6b7) - OUT4LMIX Input 4 Volume */
> + { 0x000006c0, 0x0000 }, /* R1728 (0x6c0) - OUT5LMIX Input 1 Source */
> + { 0x000006c1, 0x0080 }, /* R1729 (0x6c1) - OUT5LMIX Input 1 Volume */
> + { 0x000006c2, 0x0000 }, /* R1730 (0x6c2) - OUT5LMIX Input 2 Source */
> + { 0x000006c3, 0x0080 }, /* R1731 (0x6c3) - OUT5LMIX Input 2 Volume */
> + { 0x000006c4, 0x0000 }, /* R1732 (0x6c4) - OUT5LMIX Input 3 Source */
> + { 0x000006c5, 0x0080 }, /* R1733 (0x6c5) - OUT5LMIX Input 3 Volume */
> + { 0x000006c6, 0x0000 }, /* R1734 (0x6c6) - OUT5LMIX Input 4 Source */
> + { 0x000006c7, 0x0080 }, /* R1735 (0x6c7) - OUT5LMIX Input 4 Volume */
> + { 0x000006c8, 0x0000 }, /* R1736 (0x6c8) - OUT5RMIX Input 1 Source */
> + { 0x000006c9, 0x0080 }, /* R1737 (0x6c9) - OUT5RMIX Input 1 Volume */
> + { 0x000006ca, 0x0000 }, /* R1738 (0x6ca) - OUT5RMIX Input 2 Source */
> + { 0x000006cb, 0x0080 }, /* R1739 (0x6cb) - OUT5RMIX Input 2 Volume */
> + { 0x000006cc, 0x0000 }, /* R1740 (0x6cc) - OUT5RMIX Input 3 Source */
> + { 0x000006cd, 0x0080 }, /* R1741 (0x6cd) - OUT5RMIX Input 3 Volume */
> + { 0x000006ce, 0x0000 }, /* R1742 (0x6ce) - OUT5RMIX Input 4 Source */
> + { 0x000006cf, 0x0080 }, /* R1743 (0x6cf) - OUT5RMIX Input 4 Volume */
> + { 0x00000700, 0x0000 }, /* R1792 (0x700) - AIF1TX1MIX Input 1 Source */
> + { 0x00000701, 0x0080 }, /* R1793 (0x701) - AIF1TX1MIX Input 1 Volume */
> + { 0x00000702, 0x0000 }, /* R1794 (0x702) - AIF1TX1MIX Input 2 Source */
> + { 0x00000703, 0x0080 }, /* R1795 (0x703) - AIF1TX1MIX Input 2 Volume */
> + { 0x00000704, 0x0000 }, /* R1796 (0x704) - AIF1TX1MIX Input 3 Source */
> + { 0x00000705, 0x0080 }, /* R1797 (0x705) - AIF1TX1MIX Input 3 Volume */
> + { 0x00000706, 0x0000 }, /* R1798 (0x706) - AIF1TX1MIX Input 4 Source */
> + { 0x00000707, 0x0080 }, /* R1799 (0x707) - AIF1TX1MIX Input 4 Volume */
> + { 0x00000708, 0x0000 }, /* R1800 (0x708) - AIF1TX2MIX Input 1 Source */
> + { 0x00000709, 0x0080 }, /* R1801 (0x709) - AIF1TX2MIX Input 1 Volume */
> + { 0x0000070a, 0x0000 }, /* R1802 (0x70a) - AIF1TX2MIX Input 2 Source */
> + { 0x0000070b, 0x0080 }, /* R1803 (0x70b) - AIF1TX2MIX Input 2 Volume */
> + { 0x0000070c, 0x0000 }, /* R1804 (0x70c) - AIF1TX2MIX Input 3 Source */
> + { 0x0000070d, 0x0080 }, /* R1805 (0x70d) - AIF1TX2MIX Input 3 Volume */
> + { 0x0000070e, 0x0000 }, /* R1806 (0x70e) - AIF1TX2MIX Input 4 Source */
> + { 0x0000070f, 0x0080 }, /* R1807 (0x70f) - AIF1TX2MIX Input 4 Volume */
> + { 0x00000710, 0x0000 }, /* R1808 (0x710) - AIF1TX3MIX Input 1 Source */
> + { 0x00000711, 0x0080 }, /* R1809 (0x711) - AIF1TX3MIX Input 1 Volume */
> + { 0x00000712, 0x0000 }, /* R1810 (0x712) - AIF1TX3MIX Input 2 Source */
> + { 0x00000713, 0x0080 }, /* R1811 (0x713) - AIF1TX3MIX Input 2 Volume */
> + { 0x00000714, 0x0000 }, /* R1812 (0x714) - AIF1TX3MIX Input 3 Source */
> + { 0x00000715, 0x0080 }, /* R1813 (0x715) - AIF1TX3MIX Input 3 Volume */
> + { 0x00000716, 0x0000 }, /* R1814 (0x716) - AIF1TX3MIX Input 4 Source */
> + { 0x00000717, 0x0080 }, /* R1815 (0x717) - AIF1TX3MIX Input 4 Volume */
> + { 0x00000718, 0x0000 }, /* R1816 (0x718) - AIF1TX4MIX Input 1 Source */
> + { 0x00000719, 0x0080 }, /* R1817 (0x719) - AIF1TX4MIX Input 1 Volume */
> + { 0x0000071a, 0x0000 }, /* R1818 (0x71a) - AIF1TX4MIX Input 2 Source */
> + { 0x0000071b, 0x0080 }, /* R1819 (0x71b) - AIF1TX4MIX Input 2 Volume */
> + { 0x0000071c, 0x0000 }, /* R1820 (0x71c) - AIF1TX4MIX Input 3 Source */
> + { 0x0000071d, 0x0080 }, /* R1821 (0x71d) - AIF1TX4MIX Input 3 Volume */
> + { 0x0000071e, 0x0000 }, /* R1822 (0x71e) - AIF1TX4MIX Input 4 Source */
> + { 0x0000071f, 0x0080 }, /* R1823 (0x71f) - AIF1TX4MIX Input 4 Volume */
> + { 0x00000720, 0x0000 }, /* R1824 (0x720) - AIF1TX5MIX Input 1 Source */
> + { 0x00000721, 0x0080 }, /* R1825 (0x721) - AIF1TX5MIX Input 1 Volume */
> + { 0x00000722, 0x0000 }, /* R1826 (0x722) - AIF1TX5MIX Input 2 Source */
> + { 0x00000723, 0x0080 }, /* R1827 (0x723) - AIF1TX5MIX Input 2 Volume */
> + { 0x00000724, 0x0000 }, /* R1828 (0x724) - AIF1TX5MIX Input 3 Source */
> + { 0x00000725, 0x0080 }, /* R1829 (0x725) - AIF1TX5MIX Input 3 Volume */
> + { 0x00000726, 0x0000 }, /* R1830 (0x726) - AIF1TX5MIX Input 4 Source */
> + { 0x00000727, 0x0080 }, /* R1831 (0x727) - AIF1TX5MIX Input 4 Volume */
> + { 0x00000728, 0x0000 }, /* R1832 (0x728) - AIF1TX6MIX Input 1 Source */
> + { 0x00000729, 0x0080 }, /* R1833 (0x729) - AIF1TX6MIX Input 1 Volume */
> + { 0x0000072a, 0x0000 }, /* R1834 (0x72a) - AIF1TX6MIX Input 2 Source */
> + { 0x0000072b, 0x0080 }, /* R1835 (0x72b) - AIF1TX6MIX Input 2 Volume */
> + { 0x0000072c, 0x0000 }, /* R1836 (0x72c) - AIF1TX6MIX Input 3 Source */
> + { 0x0000072d, 0x0080 }, /* R1837 (0x72d) - AIF1TX6MIX Input 3 Volume */
> + { 0x0000072e, 0x0000 }, /* R1838 (0x72e) - AIF1TX6MIX Input 4 Source */
> + { 0x0000072f, 0x0080 }, /* R1839 (0x72f) - AIF1TX6MIX Input 4 Volume */
> + { 0x00000740, 0x0000 }, /* R1856 (0x740) - AIF2TX1MIX Input 1 Source */
> + { 0x00000741, 0x0080 }, /* R1857 (0x741) - AIF2TX1MIX Input 1 Volume */
> + { 0x00000742, 0x0000 }, /* R1858 (0x742) - AIF2TX1MIX Input 2 Source */
> + { 0x00000743, 0x0080 }, /* R1859 (0x743) - AIF2TX1MIX Input 2 Volume */
> + { 0x00000744, 0x0000 }, /* R1860 (0x744) - AIF2TX1MIX Input 3 Source */
> + { 0x00000745, 0x0080 }, /* R1861 (0x745) - AIF2TX1MIX Input 3 Volume */
> + { 0x00000746, 0x0000 }, /* R1862 (0x746) - AIF2TX1MIX Input 4 Source */
> + { 0x00000747, 0x0080 }, /* R1863 (0x747) - AIF2TX1MIX Input 4 Volume */
> + { 0x00000748, 0x0000 }, /* R1864 (0x748) - AIF2TX2MIX Input 1 Source */
> + { 0x00000749, 0x0080 }, /* R1865 (0x749) - AIF2TX2MIX Input 1 Volume */
> + { 0x0000074a, 0x0000 }, /* R1866 (0x74a) - AIF2TX2MIX Input 2 Source */
> + { 0x0000074b, 0x0080 }, /* R1867 (0x74b) - AIF2TX2MIX Input 2 Volume */
> + { 0x0000074c, 0x0000 }, /* R1868 (0x74c) - AIF2TX2MIX Input 3 Source */
> + { 0x0000074d, 0x0080 }, /* R1869 (0x74d) - AIF2TX2MIX Input 3 Volume */
> + { 0x0000074e, 0x0000 }, /* R1870 (0x74e) - AIF2TX2MIX Input 4 Source */
> + { 0x0000074f, 0x0080 }, /* R1871 (0x74f) - AIF2TX2MIX Input 4 Volume */
> + { 0x00000780, 0x0000 }, /* R1920 (0x780) - AIF3TX1MIX Input 1 Source */
> + { 0x00000781, 0x0080 }, /* R1921 (0x781) - AIF3TX1MIX Input 1 Volume */
> + { 0x00000782, 0x0000 }, /* R1922 (0x782) - AIF3TX1MIX Input 2 Source */
> + { 0x00000783, 0x0080 }, /* R1923 (0x783) - AIF3TX1MIX Input 2 Volume */
> + { 0x00000784, 0x0000 }, /* R1924 (0x784) - AIF3TX1MIX Input 3 Source */
> + { 0x00000785, 0x0080 }, /* R1925 (0x785) - AIF3TX1MIX Input 3 Volume */
> + { 0x00000786, 0x0000 }, /* R1926 (0x786) - AIF3TX1MIX Input 4 Source */
> + { 0x00000787, 0x0080 }, /* R1927 (0x787) - AIF3TX1MIX Input 4 Volume */
> + { 0x00000788, 0x0000 }, /* R1928 (0x788) - AIF3TX2MIX Input 1 Source */
> + { 0x00000789, 0x0080 }, /* R1929 (0x789) - AIF3TX2MIX Input 1 Volume */
> + { 0x0000078a, 0x0000 }, /* R1930 (0x78a) - AIF3TX2MIX Input 2 Source */
> + { 0x0000078b, 0x0080 }, /* R1931 (0x78b) - AIF3TX2MIX Input 2 Volume */
> + { 0x0000078c, 0x0000 }, /* R1932 (0x78c) - AIF3TX2MIX Input 3 Source */
> + { 0x0000078d, 0x0080 }, /* R1933 (0x78d) - AIF3TX2MIX Input 3 Volume */
> + { 0x0000078e, 0x0000 }, /* R1934 (0x78e) - AIF3TX2MIX Input 4 Source */
> + { 0x0000078f, 0x0080 }, /* R1935 (0x78f) - AIF3TX2MIX Input 4 Volume */
> + { 0x000007c0, 0x0000 }, /* R1984 (0x7c0) - SLIMTX1MIX Input 1 Source */
> + { 0x000007c1, 0x0080 }, /* R1985 (0x7c1) - SLIMTX1MIX Input 1 Volume */
> + { 0x000007c2, 0x0000 }, /* R1986 (0x7c2) - SLIMTX1MIX Input 2 Source */
> + { 0x000007c3, 0x0080 }, /* R1987 (0x7c3) - SLIMTX1MIX Input 2 Volume */
> + { 0x000007c4, 0x0000 }, /* R1988 (0x7c4) - SLIMTX1MIX Input 3 Source */
> + { 0x000007c5, 0x0080 }, /* R1989 (0x7c5) - SLIMTX1MIX Input 3 Volume */
> + { 0x000007c6, 0x0000 }, /* R1990 (0x7c6) - SLIMTX1MIX Input 4 Source */
> + { 0x000007c7, 0x0080 }, /* R1991 (0x7c7) - SLIMTX1MIX Input 4 Volume */
> + { 0x000007c8, 0x0000 }, /* R1992 (0x7c8) - SLIMTX2MIX Input 1 Source */
> + { 0x000007c9, 0x0080 }, /* R1993 (0x7c9) - SLIMTX2MIX Input 1 Volume */
> + { 0x000007ca, 0x0000 }, /* R1994 (0x7ca) - SLIMTX2MIX Input 2 Source */
> + { 0x000007cb, 0x0080 }, /* R1995 (0x7cb) - SLIMTX2MIX Input 2 Volume */
> + { 0x000007cc, 0x0000 }, /* R1996 (0x7cc) - SLIMTX2MIX Input 3 Source */
> + { 0x000007cd, 0x0080 }, /* R1997 (0x7cd) - SLIMTX2MIX Input 3 Volume */
> + { 0x000007ce, 0x0000 }, /* R1998 (0x7ce) - SLIMTX2MIX Input 4 Source */
> + { 0x000007cf, 0x0080 }, /* R1999 (0x7cf) - SLIMTX2MIX Input 4 Volume */
> + { 0x000007d0, 0x0000 }, /* R2000 (0x7d0) - SLIMTX3MIX Input 1 Source */
> + { 0x000007d1, 0x0080 }, /* R2001 (0x7d1) - SLIMTX3MIX Input 1 Volume */
> + { 0x000007d2, 0x0000 }, /* R2002 (0x7d2) - SLIMTX3MIX Input 2 Source */
> + { 0x000007d3, 0x0080 }, /* R2003 (0x7d3) - SLIMTX3MIX Input 2 Volume */
> + { 0x000007d4, 0x0000 }, /* R2004 (0x7d4) - SLIMTX3MIX Input 3 Source */
> + { 0x000007d5, 0x0080 }, /* R2005 (0x7d5) - SLIMTX3MIX Input 3 Volume */
> + { 0x000007d6, 0x0000 }, /* R2006 (0x7d6) - SLIMTX3MIX Input 4 Source */
> + { 0x000007d7, 0x0080 }, /* R2007 (0x7d7) - SLIMTX3MIX Input 4 Volume */
> + { 0x000007d8, 0x0000 }, /* R2008 (0x7d8) - SLIMTX4MIX Input 1 Source */
> + { 0x000007d9, 0x0080 }, /* R2009 (0x7d9) - SLIMTX4MIX Input 1 Volume */
> + { 0x000007da, 0x0000 }, /* R2010 (0x7da) - SLIMTX4MIX Input 2 Source */
> + { 0x000007db, 0x0080 }, /* R2011 (0x7db) - SLIMTX4MIX Input 2 Volume */
> + { 0x000007dc, 0x0000 }, /* R2012 (0x7dc) - SLIMTX4MIX Input 3 Source */
> + { 0x000007dd, 0x0080 }, /* R2013 (0x7dd) - SLIMTX4MIX Input 3 Volume */
> + { 0x000007de, 0x0000 }, /* R2014 (0x7de) - SLIMTX4MIX Input 4 Source */
> + { 0x000007df, 0x0080 }, /* R2015 (0x7df) - SLIMTX4MIX Input 4 Volume */
> + { 0x000007e0, 0x0000 }, /* R2016 (0x7e0) - SLIMTX5MIX Input 1 Source */
> + { 0x000007e1, 0x0080 }, /* R2017 (0x7e1) - SLIMTX5MIX Input 1 Volume */
> + { 0x000007e2, 0x0000 }, /* R2018 (0x7e2) - SLIMTX5MIX Input 2 Source */
> + { 0x000007e3, 0x0080 }, /* R2019 (0x7e3) - SLIMTX5MIX Input 2 Volume */
> + { 0x000007e4, 0x0000 }, /* R2020 (0x7e4) - SLIMTX5MIX Input 3 Source */
> + { 0x000007e5, 0x0080 }, /* R2021 (0x7e5) - SLIMTX5MIX Input 3 Volume */
> + { 0x000007e6, 0x0000 }, /* R2022 (0x7e6) - SLIMTX5MIX Input 4 Source */
> + { 0x000007e7, 0x0080 }, /* R2023 (0x7e7) - SLIMTX5MIX Input 4 Volume */
> + { 0x000007e8, 0x0000 }, /* R2024 (0x7e8) - SLIMTX6MIX Input 1 Source */
> + { 0x000007e9, 0x0080 }, /* R2025 (0x7e9) - SLIMTX6MIX Input 1 Volume */
> + { 0x000007ea, 0x0000 }, /* R2026 (0x7ea) - SLIMTX6MIX Input 2 Source */
> + { 0x000007eb, 0x0080 }, /* R2027 (0x7eb) - SLIMTX6MIX Input 2 Volume */
> + { 0x000007ec, 0x0000 }, /* R2028 (0x7ec) - SLIMTX6MIX Input 3 Source */
> + { 0x000007ed, 0x0080 }, /* R2029 (0x7ed) - SLIMTX6MIX Input 3 Volume */
> + { 0x000007ee, 0x0000 }, /* R2030 (0x7ee) - SLIMTX6MIX Input 4 Source */
> + { 0x000007ef, 0x0080 }, /* R2031 (0x7ef) - SLIMTX6MIX Input 4 Volume */
> + { 0x00000800, 0x0000 }, /* R2048 (0x800) - SPDIF1TX1MIX Input 1 Source*/
> + { 0x00000801, 0x0080 }, /* R2049 (0x801) - SPDIF1TX1MIX Input 1 Volume*/
> + { 0x00000808, 0x0000 }, /* R2056 (0x808) - SPDIF1TX2MIX Input 1 Source*/
> + { 0x00000809, 0x0080 }, /* R2057 (0x809) - SPDIF1TX2MIX Input 1 Volume*/
> + { 0x00000880, 0x0000 }, /* R2176 (0x880) - EQ1MIX Input 1 Source */
> + { 0x00000881, 0x0080 }, /* R2177 (0x881) - EQ1MIX Input 1 Volume */
> + { 0x00000882, 0x0000 }, /* R2178 (0x882) - EQ1MIX Input 2 Source */
> + { 0x00000883, 0x0080 }, /* R2179 (0x883) - EQ1MIX Input 2 Volume */
> + { 0x00000884, 0x0000 }, /* R2180 (0x884) - EQ1MIX Input 3 Source */
> + { 0x00000885, 0x0080 }, /* R2181 (0x885) - EQ1MIX Input 3 Volume */
> + { 0x00000886, 0x0000 }, /* R2182 (0x886) - EQ1MIX Input 4 Source */
> + { 0x00000887, 0x0080 }, /* R2183 (0x887) - EQ1MIX Input 4 Volume */
> + { 0x00000888, 0x0000 }, /* R2184 (0x888) - EQ2MIX Input 1 Source */
> + { 0x00000889, 0x0080 }, /* R2185 (0x889) - EQ2MIX Input 1 Volume */
> + { 0x0000088a, 0x0000 }, /* R2186 (0x88a) - EQ2MIX Input 2 Source */
> + { 0x0000088b, 0x0080 }, /* R2187 (0x88b) - EQ2MIX Input 2 Volume */
> + { 0x0000088c, 0x0000 }, /* R2188 (0x88c) - EQ2MIX Input 3 Source */
> + { 0x0000088d, 0x0080 }, /* R2189 (0x88d) - EQ2MIX Input 3 Volume */
> + { 0x0000088e, 0x0000 }, /* R2190 (0x88e) - EQ2MIX Input 4 Source */
> + { 0x0000088f, 0x0080 }, /* R2191 (0x88f) - EQ2MIX Input 4 Volume */
> + { 0x00000890, 0x0000 }, /* R2192 (0x890) - EQ3MIX Input 1 Source */
> + { 0x00000891, 0x0080 }, /* R2193 (0x891) - EQ3MIX Input 1 Volume */
> + { 0x00000892, 0x0000 }, /* R2194 (0x892) - EQ3MIX Input 2 Source */
> + { 0x00000893, 0x0080 }, /* R2195 (0x893) - EQ3MIX Input 2 Volume */
> + { 0x00000894, 0x0000 }, /* R2196 (0x894) - EQ3MIX Input 3 Source */
> + { 0x00000895, 0x0080 }, /* R2197 (0x895) - EQ3MIX Input 3 Volume */
> + { 0x00000896, 0x0000 }, /* R2198 (0x896) - EQ3MIX Input 4 Source */
> + { 0x00000897, 0x0080 }, /* R2199 (0x897) - EQ3MIX Input 4 Volume */
> + { 0x00000898, 0x0000 }, /* R2200 (0x898) - EQ4MIX Input 1 Source */
> + { 0x00000899, 0x0080 }, /* R2201 (0x899) - EQ4MIX Input 1 Volume */
> + { 0x0000089a, 0x0000 }, /* R2202 (0x89a) - EQ4MIX Input 2 Source */
> + { 0x0000089b, 0x0080 }, /* R2203 (0x89b) - EQ4MIX Input 2 Volume */
> + { 0x0000089c, 0x0000 }, /* R2204 (0x89c) - EQ4MIX Input 3 Source */
> + { 0x0000089d, 0x0080 }, /* R2205 (0x89d) - EQ4MIX Input 3 Volume */
> + { 0x0000089e, 0x0000 }, /* R2206 (0x89e) - EQ4MIX Input 4 Source */
> + { 0x0000089f, 0x0080 }, /* R2207 (0x89f) - EQ4MIX Input 4 Volume */
> + { 0x000008c0, 0x0000 }, /* R2240 (0x8c0) - DRC1LMIX Input 1 Source */
> + { 0x000008c1, 0x0080 }, /* R2241 (0x8c1) - DRC1LMIX Input 1 Volume */
> + { 0x000008c2, 0x0000 }, /* R2242 (0x8c2) - DRC1LMIX Input 2 Source */
> + { 0x000008c3, 0x0080 }, /* R2243 (0x8c3) - DRC1LMIX Input 2 Volume */
> + { 0x000008c4, 0x0000 }, /* R2244 (0x8c4) - DRC1LMIX Input 3 Source */
> + { 0x000008c5, 0x0080 }, /* R2245 (0x8c5) - DRC1LMIX Input 3 Volume */
> + { 0x000008c6, 0x0000 }, /* R2246 (0x8c6) - DRC1LMIX Input 4 Source */
> + { 0x000008c7, 0x0080 }, /* R2247 (0x8c7) - DRC1LMIX Input 4 Volume */
> + { 0x000008c8, 0x0000 }, /* R2248 (0x8c8) - DRC1RMIX Input 1 Source */
> + { 0x000008c9, 0x0080 }, /* R2249 (0x8c9) - DRC1RMIX Input 1 Volume */
> + { 0x000008ca, 0x0000 }, /* R2250 (0x8ca) - DRC1RMIX Input 2 Source */
> + { 0x000008cb, 0x0080 }, /* R2251 (0x8cb) - DRC1RMIX Input 2 Volume */
> + { 0x000008cc, 0x0000 }, /* R2252 (0x8cc) - DRC1RMIX Input 3 Source */
> + { 0x000008cd, 0x0080 }, /* R2253 (0x8cd) - DRC1RMIX Input 3 Volume */
> + { 0x000008ce, 0x0000 }, /* R2254 (0x8ce) - DRC1RMIX Input 4 Source */
> + { 0x000008cf, 0x0080 }, /* R2255 (0x8cf) - DRC1RMIX Input 4 Volume */
> + { 0x000008d0, 0x0000 }, /* R2256 (0x8d0) - DRC2LMIX Input 1 Source */
> + { 0x000008d1, 0x0080 }, /* R2257 (0x8d1) - DRC2LMIX Input 1 Volume */
> + { 0x000008d2, 0x0000 }, /* R2258 (0x8d2) - DRC2LMIX Input 2 Source */
> + { 0x000008d3, 0x0080 }, /* R2259 (0x8d3) - DRC2LMIX Input 2 Volume */
> + { 0x000008d4, 0x0000 }, /* R2260 (0x8d4) - DRC2LMIX Input 3 Source */
> + { 0x000008d5, 0x0080 }, /* R2261 (0x8d5) - DRC2LMIX Input 3 Volume */
> + { 0x000008d6, 0x0000 }, /* R2262 (0x8d6) - DRC2LMIX Input 4 Source */
> + { 0x000008d7, 0x0080 }, /* R2263 (0x8d7) - DRC2LMIX Input 4 Volume */
> + { 0x000008d8, 0x0000 }, /* R2264 (0x8d8) - DRC2RMIX Input 1 Source */
> + { 0x000008d9, 0x0080 }, /* R2265 (0x8d9) - DRC2RMIX Input 1 Volume */
> + { 0x000008da, 0x0000 }, /* R2266 (0x8da) - DRC2RMIX Input 2 Source */
> + { 0x000008db, 0x0080 }, /* R2267 (0x8db) - DRC2RMIX Input 2 Volume */
> + { 0x000008dc, 0x0000 }, /* R2268 (0x8dc) - DRC2RMIX Input 3 Source */
> + { 0x000008dd, 0x0080 }, /* R2269 (0x8dd) - DRC2RMIX Input 3 Volume */
> + { 0x000008de, 0x0000 }, /* R2270 (0x8de) - DRC2RMIX Input 4 Source */
> + { 0x000008df, 0x0080 }, /* R2271 (0x8df) - DRC2RMIX Input 4 Volume */
> + { 0x00000900, 0x0000 }, /* R2304 (0x900) - HPLP1MIX Input 1 Source */
> + { 0x00000901, 0x0080 }, /* R2305 (0x901) - HPLP1MIX Input 1 Volume */
> + { 0x00000902, 0x0000 }, /* R2306 (0x902) - HPLP1MIX Input 2 Source */
> + { 0x00000903, 0x0080 }, /* R2307 (0x903) - HPLP1MIX Input 2 Volume */
> + { 0x00000904, 0x0000 }, /* R2308 (0x904) - HPLP1MIX Input 3 Source */
> + { 0x00000905, 0x0080 }, /* R2309 (0x905) - HPLP1MIX Input 3 Volume */
> + { 0x00000906, 0x0000 }, /* R2310 (0x906) - HPLP1MIX Input 4 Source */
> + { 0x00000907, 0x0080 }, /* R2311 (0x907) - HPLP1MIX Input 4 Volume */
> + { 0x00000908, 0x0000 }, /* R2312 (0x908) - HPLP2MIX Input 1 Source */
> + { 0x00000909, 0x0080 }, /* R2313 (0x909) - HPLP2MIX Input 1 Volume */
> + { 0x0000090a, 0x0000 }, /* R2314 (0x90a) - HPLP2MIX Input 2 Source */
> + { 0x0000090b, 0x0080 }, /* R2315 (0x90b) - HPLP2MIX Input 2 Volume */
> + { 0x0000090c, 0x0000 }, /* R2316 (0x90c) - HPLP2MIX Input 3 Source */
> + { 0x0000090d, 0x0080 }, /* R2317 (0x90d) - HPLP2MIX Input 3 Volume */
> + { 0x0000090e, 0x0000 }, /* R2318 (0x90e) - HPLP2MIX Input 4 Source */
> + { 0x0000090f, 0x0080 }, /* R2319 (0x90f) - HPLP2MIX Input 4 Volume */
> + { 0x00000910, 0x0000 }, /* R2320 (0x910) - HPLP3MIX Input 1 Source */
> + { 0x00000911, 0x0080 }, /* R2321 (0x911) - HPLP3MIX Input 1 Volume */
> + { 0x00000912, 0x0000 }, /* R2322 (0x912) - HPLP3MIX Input 2 Source */
> + { 0x00000913, 0x0080 }, /* R2323 (0x913) - HPLP3MIX Input 2 Volume */
> + { 0x00000914, 0x0000 }, /* R2324 (0x914) - HPLP3MIX Input 3 Source */
> + { 0x00000915, 0x0080 }, /* R2325 (0x915) - HPLP3MIX Input 3 Volume */
> + { 0x00000916, 0x0000 }, /* R2326 (0x916) - HPLP3MIX Input 4 Source */
> + { 0x00000917, 0x0080 }, /* R2327 (0x917) - HPLP3MIX Input 4 Volume */
> + { 0x00000918, 0x0000 }, /* R2328 (0x918) - HPLP4MIX Input 1 Source */
> + { 0x00000919, 0x0080 }, /* R2329 (0x919) - HPLP4MIX Input 1 Volume */
> + { 0x0000091a, 0x0000 }, /* R2330 (0x91a) - HPLP4MIX Input 2 Source */
> + { 0x0000091b, 0x0080 }, /* R2331 (0x91b) - HPLP4MIX Input 2 Volume */
> + { 0x0000091c, 0x0000 }, /* R2332 (0x91c) - HPLP4MIX Input 3 Source */
> + { 0x0000091d, 0x0080 }, /* R2333 (0x91d) - HPLP4MIX Input 3 Volume */
> + { 0x0000091e, 0x0000 }, /* R2334 (0x91e) - HPLP4MIX Input 4 Source */
> + { 0x0000091f, 0x0080 }, /* R2335 (0x91f) - HPLP4MIX Input 4 Volume */
> + { 0x00000940, 0x0000 }, /* R2368 (0x940) - DSP1LMIX Input 1 Source */
> + { 0x00000941, 0x0080 }, /* R2369 (0x941) - DSP1LMIX Input 1 Volume */
> + { 0x00000942, 0x0000 }, /* R2370 (0x942) - DSP1LMIX Input 2 Source */
> + { 0x00000943, 0x0080 }, /* R2371 (0x943) - DSP1LMIX Input 2 Volume */
> + { 0x00000944, 0x0000 }, /* R2372 (0x944) - DSP1LMIX Input 3 Source */
> + { 0x00000945, 0x0080 }, /* R2373 (0x945) - DSP1LMIX Input 3 Volume */
> + { 0x00000946, 0x0000 }, /* R2374 (0x946) - DSP1LMIX Input 4 Source */
> + { 0x00000947, 0x0080 }, /* R2375 (0x947) - DSP1LMIX Input 4 Volume */
> + { 0x00000948, 0x0000 }, /* R2376 (0x948) - DSP1RMIX Input 1 Source */
> + { 0x00000949, 0x0080 }, /* R2377 (0x949) - DSP1RMIX Input 1 Volume */
> + { 0x0000094a, 0x0000 }, /* R2378 (0x94a) - DSP1RMIX Input 2 Source */
> + { 0x0000094b, 0x0080 }, /* R2379 (0x94b) - DSP1RMIX Input 2 Volume */
> + { 0x0000094c, 0x0000 }, /* R2380 (0x94c) - DSP1RMIX Input 3 Source */
> + { 0x0000094d, 0x0080 }, /* R2381 (0x94d) - DSP1RMIX Input 3 Volume */
> + { 0x0000094e, 0x0000 }, /* R2382 (0x94e) - DSP1RMIX Input 4 Source */
> + { 0x0000094f, 0x0080 }, /* R2383 (0x94f) - DSP1RMIX Input 4 Volume */
> + { 0x00000950, 0x0000 }, /* R2384 (0x950) - DSP1AUX1MIX Input 1 Source */
> + { 0x00000958, 0x0000 }, /* R2392 (0x958) - DSP1AUX2MIX Input 1 Source */
> + { 0x00000960, 0x0000 }, /* R2400 (0x960) - DSP1AUX3MIX Input 1 Source */
> + { 0x00000968, 0x0000 }, /* R2408 (0x968) - DSP1AUX4MIX Input 1 Source */
> + { 0x00000970, 0x0000 }, /* R2416 (0x970) - DSP1AUX5MIX Input 1 Source */
> + { 0x00000978, 0x0000 }, /* R2424 (0x978) - DSP1AUX6MIX Input 1 Source */
> + { 0x00000980, 0x0000 }, /* R2432 (0x980) - DSP2LMIX Input 1 Source */
> + { 0x00000981, 0x0080 }, /* R2433 (0x981) - DSP2LMIX Input 1 Volume */
> + { 0x00000982, 0x0000 }, /* R2434 (0x982) - DSP2LMIX Input 2 Source */
> + { 0x00000983, 0x0080 }, /* R2435 (0x983) - DSP2LMIX Input 2 Volume */
> + { 0x00000984, 0x0000 }, /* R2436 (0x984) - DSP2LMIX Input 3 Source */
> + { 0x00000985, 0x0080 }, /* R2437 (0x985) - DSP2LMIX Input 3 Volume */
> + { 0x00000986, 0x0000 }, /* R2438 (0x986) - DSP2LMIX Input 4 Source */
> + { 0x00000987, 0x0080 }, /* R2439 (0x987) - DSP2LMIX Input 4 Volume */
> + { 0x00000988, 0x0000 }, /* R2440 (0x988) - DSP2RMIX Input 1 Source */
> + { 0x00000989, 0x0080 }, /* R2441 (0x989) - DSP2RMIX Input 1 Volume */
> + { 0x0000098a, 0x0000 }, /* R2442 (0x98a) - DSP2RMIX Input 2 Source */
> + { 0x0000098b, 0x0080 }, /* R2443 (0x98b) - DSP2RMIX Input 2 Volume */
> + { 0x0000098c, 0x0000 }, /* R2444 (0x98c) - DSP2RMIX Input 3 Source */
> + { 0x0000098d, 0x0080 }, /* R2445 (0x98d) - DSP2RMIX Input 3 Volume */
> + { 0x0000098e, 0x0000 }, /* R2446 (0x98e) - DSP2RMIX Input 4 Source */
> + { 0x0000098f, 0x0080 }, /* R2447 (0x98f) - DSP2RMIX Input 4 Volume */
> + { 0x00000990, 0x0000 }, /* R2448 (0x990) - DSP2AUX1MIX Input 1 Source */
> + { 0x00000998, 0x0000 }, /* R2456 (0x998) - DSP2AUX2MIX Input 1 Source */
> + { 0x000009a0, 0x0000 }, /* R2464 (0x9a0) - DSP2AUX3MIX Input 1 Source */
> + { 0x000009a8, 0x0000 }, /* R2472 (0x9a8) - DSP2AUX4MIX Input 1 Source */
> + { 0x000009b0, 0x0000 }, /* R2480 (0x9b0) - DSP2AUX5MIX Input 1 Source */
> + { 0x000009b8, 0x0000 }, /* R2488 (0x9b8) - DSP2AUX6MIX Input 1 Source */
> + { 0x000009c0, 0x0000 }, /* R2496 (0x9c0) - DSP3LMIX Input 1 Source */
> + { 0x000009c1, 0x0080 }, /* R2497 (0x9c1) - DSP3LMIX Input 1 Volume */
> + { 0x000009c2, 0x0000 }, /* R2498 (0x9c2) - DSP3LMIX Input 2 Source */
> + { 0x000009c3, 0x0080 }, /* R2499 (0x9c3) - DSP3LMIX Input 2 Volume */
> + { 0x000009c4, 0x0000 }, /* R2500 (0x9c4) - DSP3LMIX Input 3 Source */
> + { 0x000009c5, 0x0080 }, /* R2501 (0x9c5) - DSP3LMIX Input 3 Volume */
> + { 0x000009c6, 0x0000 }, /* R2502 (0x9c6) - DSP3LMIX Input 4 Source */
> + { 0x000009c7, 0x0080 }, /* R2503 (0x9c7) - DSP3LMIX Input 4 Volume */
> + { 0x000009c8, 0x0000 }, /* R2504 (0x9c8) - DSP3RMIX Input 1 Source */
> + { 0x000009c9, 0x0080 }, /* R2505 (0x9c9) - DSP3RMIX Input 1 Volume */
> + { 0x000009ca, 0x0000 }, /* R2506 (0x9ca) - DSP3RMIX Input 2 Source */
> + { 0x000009cb, 0x0080 }, /* R2507 (0x9cb) - DSP3RMIX Input 2 Volume */
> + { 0x000009cc, 0x0000 }, /* R2508 (0x9cc) - DSP3RMIX Input 3 Source */
> + { 0x000009cd, 0x0080 }, /* R2509 (0x9cd) - DSP3RMIX Input 3 Volume */
> + { 0x000009ce, 0x0000 }, /* R2510 (0x9ce) - DSP3RMIX Input 4 Source */
> + { 0x000009cf, 0x0080 }, /* R2511 (0x9cf) - DSP3RMIX Input 4 Volume */
> + { 0x000009d0, 0x0000 }, /* R2512 (0x9d0) - DSP3AUX1MIX Input 1 Source */
> + { 0x000009d8, 0x0000 }, /* R2520 (0x9d8) - DSP3AUX2MIX Input 1 Source */
> + { 0x000009e0, 0x0000 }, /* R2528 (0x9e0) - DSP3AUX3MIX Input 1 Source */
> + { 0x000009e8, 0x0000 }, /* R2536 (0x9e8) - DSP3AUX4MIX Input 1 Source */
> + { 0x000009f0, 0x0000 }, /* R2544 (0x9f0) - DSP3AUX5MIX Input 1 Source */
> + { 0x000009f8, 0x0000 }, /* R2552 (0x9f8) - DSP3AUX6MIX Input 1 Source */
> + { 0x00000b00, 0x0000 }, /* R2816 (0xb00) - ISRC1DEC1MIX Input 1 Source*/
> + { 0x00000b08, 0x0000 }, /* R2824 (0xb08) - ISRC1DEC2MIX Input 1 Source*/
> + { 0x00000b10, 0x0000 }, /* R2832 (0xb10) - ISRC1DEC3MIX Input 1 Source*/
> + { 0x00000b18, 0x0000 }, /* R2840 (0xb18) - ISRC1DEC4MIX Input 1 Source*/
> + { 0x00000b20, 0x0000 }, /* R2848 (0xb20) - ISRC1INT1MIX Input 1 Source*/
> + { 0x00000b28, 0x0000 }, /* R2856 (0xb28) - ISRC1INT2MIX Input 1 Source*/
> + { 0x00000b30, 0x0000 }, /* R2864 (0xb30) - ISRC1INT3MIX Input 1 Source*/
> + { 0x00000b38, 0x0000 }, /* R2872 (0xb38) - ISRC1INT4MIX Input 1 Source*/
> + { 0x00000b40, 0x0000 }, /* R2880 (0xb40) - ISRC2DEC1MIX Input 1 Source*/
> + { 0x00000b48, 0x0000 }, /* R2888 (0xb48) - ISRC2DEC2MIX Input 1 Source*/
> + { 0x00000b50, 0x0000 }, /* R2896 (0xb50) - ISRC2DEC3MIX Input 1 Source*/
> + { 0x00000b58, 0x0000 }, /* R2904 (0xb58) - ISRC2DEC4MIX Input 1 Source*/
> + { 0x00000b60, 0x0000 }, /* R2912 (0xb60) - ISRC2INT1MIX Input 1 Source*/
> + { 0x00000b68, 0x0000 }, /* R2920 (0xb68) - ISRC2INT2MIX Input 1 Source*/
> + { 0x00000b70, 0x0000 }, /* R2928 (0xb70) - ISRC2INT3MIX Input 1 Source*/
> + { 0x00000b78, 0x0000 }, /* R2936 (0xb78) - ISRC2INT4MIX Input 1 Source*/
> + { 0x00000e00, 0x0000 }, /* R3584 (0xe00) - FX Ctrl1 */
> + { 0x00000e10, 0x6318 }, /* R3600 (0xe10) - EQ1_1 */
> + { 0x00000e11, 0x6300 }, /* R3601 (0xe11) - EQ1_2 */
> + { 0x00000e12, 0x0fc8 }, /* R3602 (0xe12) - EQ1_3 */
> + { 0x00000e13, 0x03fe }, /* R3603 (0xe13) - EQ1_4 */
> + { 0x00000e14, 0x00e0 }, /* R3604 (0xe14) - EQ1_5 */
> + { 0x00000e15, 0x1ec4 }, /* R3605 (0xe15) - EQ1_6 */
> + { 0x00000e16, 0xf136 }, /* R3606 (0xe16) - EQ1_7 */
> + { 0x00000e17, 0x0409 }, /* R3607 (0xe17) - EQ1_8 */
> + { 0x00000e18, 0x04cc }, /* R3608 (0xe18) - EQ1_9 */
> + { 0x00000e19, 0x1c9b }, /* R3609 (0xe19) - EQ1_10 */
> + { 0x00000e1a, 0xf337 }, /* R3610 (0xe1a) - EQ1_11 */
> + { 0x00000e1b, 0x040b }, /* R3611 (0xe1b) - EQ1_12 */
> + { 0x00000e1c, 0x0cbb }, /* R3612 (0xe1c) - EQ1_13 */
> + { 0x00000e1d, 0x16f8 }, /* R3613 (0xe1d) - EQ1_14 */
> + { 0x00000e1e, 0xf7d9 }, /* R3614 (0xe1e) - EQ1_15 */
> + { 0x00000e1f, 0x040a }, /* R3615 (0xe1f) - EQ1_16 */
> + { 0x00000e20, 0x1f14 }, /* R3616 (0xe20) - EQ1_17 */
> + { 0x00000e21, 0x058c }, /* R3617 (0xe21) - EQ1_18 */
> + { 0x00000e22, 0x0563 }, /* R3618 (0xe22) - EQ1_19 */
> + { 0x00000e23, 0x4000 }, /* R3619 (0xe23) - EQ1_20 */
> + { 0x00000e24, 0x0b75 }, /* R3620 (0xe24) - EQ1_21 */
> + { 0x00000e26, 0x6318 }, /* R3622 (0xe26) - EQ2_1 */
> + { 0x00000e27, 0x6300 }, /* R3623 (0xe27) - EQ2_2 */
> + { 0x00000e28, 0x0fc8 }, /* R3624 (0xe28) - EQ2_3 */
> + { 0x00000e29, 0x03fe }, /* R3625 (0xe29) - EQ2_4 */
> + { 0x00000e2a, 0x00e0 }, /* R3626 (0xe2a) - EQ2_5 */
> + { 0x00000e2b, 0x1ec4 }, /* R3627 (0xe2b) - EQ2_6 */
> + { 0x00000e2c, 0xf136 }, /* R3628 (0xe2c) - EQ2_7 */
> + { 0x00000e2d, 0x0409 }, /* R3629 (0xe2d) - EQ2_8 */
> + { 0x00000e2e, 0x04cc }, /* R3630 (0xe2e) - EQ2_9 */
> + { 0x00000e2f, 0x1c9b }, /* R3631 (0xe2f) - EQ2_10 */
> + { 0x00000e30, 0xf337 }, /* R3632 (0xe30) - EQ2_11 */
> + { 0x00000e31, 0x040b }, /* R3633 (0xe31) - EQ2_12 */
> + { 0x00000e32, 0x0cbb }, /* R3634 (0xe32) - EQ2_13 */
> + { 0x00000e33, 0x16f8 }, /* R3635 (0xe33) - EQ2_14 */
> + { 0x00000e34, 0xf7d9 }, /* R3636 (0xe34) - EQ2_15 */
> + { 0x00000e35, 0x040a }, /* R3637 (0xe35) - EQ2_16 */
> + { 0x00000e36, 0x1f14 }, /* R3638 (0xe36) - EQ2_17 */
> + { 0x00000e37, 0x058c }, /* R3639 (0xe37) - EQ2_18 */
> + { 0x00000e38, 0x0563 }, /* R3640 (0xe38) - EQ2_19 */
> + { 0x00000e39, 0x4000 }, /* R3641 (0xe39) - EQ2_20 */
> + { 0x00000e3a, 0x0b75 }, /* R3642 (0xe3a) - EQ2_21 */
> + { 0x00000e3c, 0x6318 }, /* R3644 (0xe3c) - EQ3_1 */
> + { 0x00000e3d, 0x6300 }, /* R3645 (0xe3d) - EQ3_2 */
> + { 0x00000e3e, 0x0fc8 }, /* R3646 (0xe3e) - EQ3_3 */
> + { 0x00000e3f, 0x03fe }, /* R3647 (0xe3f) - EQ3_4 */
> + { 0x00000e40, 0x00e0 }, /* R3648 (0xe40) - EQ3_5 */
> + { 0x00000e41, 0x1ec4 }, /* R3649 (0xe41) - EQ3_6 */
> + { 0x00000e42, 0xf136 }, /* R3650 (0xe42) - EQ3_7 */
> + { 0x00000e43, 0x0409 }, /* R3651 (0xe43) - EQ3_8 */
> + { 0x00000e44, 0x04cc }, /* R3652 (0xe44) - EQ3_9 */
> + { 0x00000e45, 0x1c9b }, /* R3653 (0xe45) - EQ3_10 */
> + { 0x00000e46, 0xf337 }, /* R3654 (0xe46) - EQ3_11 */
> + { 0x00000e47, 0x040b }, /* R3655 (0xe47) - EQ3_12 */
> + { 0x00000e48, 0x0cbb }, /* R3656 (0xe48) - EQ3_13 */
> + { 0x00000e49, 0x16f8 }, /* R3657 (0xe49) - EQ3_14 */
> + { 0x00000e4a, 0xf7d9 }, /* R3658 (0xe4a) - EQ3_15 */
> + { 0x00000e4b, 0x040a }, /* R3659 (0xe4b) - EQ3_16 */
> + { 0x00000e4c, 0x1f14 }, /* R3660 (0xe4c) - EQ3_17 */
> + { 0x00000e4d, 0x058c }, /* R3661 (0xe4d) - EQ3_18 */
> + { 0x00000e4e, 0x0563 }, /* R3662 (0xe4e) - EQ3_19 */
> + { 0x00000e4f, 0x4000 }, /* R3663 (0xe4f) - EQ3_20 */
> + { 0x00000e50, 0x0b75 }, /* R3664 (0xe50) - EQ3_21 */
> + { 0x00000e52, 0x6318 }, /* R3666 (0xe52) - EQ4_1 */
> + { 0x00000e53, 0x6300 }, /* R3667 (0xe53) - EQ4_2 */
> + { 0x00000e54, 0x0fc8 }, /* R3668 (0xe54) - EQ4_3 */
> + { 0x00000e55, 0x03fe }, /* R3669 (0xe55) - EQ4_4 */
> + { 0x00000e56, 0x00e0 }, /* R3670 (0xe56) - EQ4_5 */
> + { 0x00000e57, 0x1ec4 }, /* R3671 (0xe57) - EQ4_6 */
> + { 0x00000e58, 0xf136 }, /* R3672 (0xe58) - EQ4_7 */
> + { 0x00000e59, 0x0409 }, /* R3673 (0xe59) - EQ4_8 */
> + { 0x00000e5a, 0x04cc }, /* R3674 (0xe5a) - EQ4_9 */
> + { 0x00000e5b, 0x1c9b }, /* R3675 (0xe5b) - EQ4_10 */
> + { 0x00000e5c, 0xf337 }, /* R3676 (0xe5c) - EQ4_11 */
> + { 0x00000e5d, 0x040b }, /* R3677 (0xe5d) - EQ4_12 */
> + { 0x00000e5e, 0x0cbb }, /* R3678 (0xe5e) - EQ4_13 */
> + { 0x00000e5f, 0x16f8 }, /* R3679 (0xe5f) - EQ4_14 */
> + { 0x00000e60, 0xf7d9 }, /* R3680 (0xe60) - EQ4_15 */
> + { 0x00000e61, 0x040a }, /* R3681 (0xe61) - EQ4_16 */
> + { 0x00000e62, 0x1f14 }, /* R3682 (0xe62) - EQ4_17 */
> + { 0x00000e63, 0x058c }, /* R3683 (0xe63) - EQ4_18 */
> + { 0x00000e64, 0x0563 }, /* R3684 (0xe64) - EQ4_19 */
> + { 0x00000e65, 0x4000 }, /* R3685 (0xe65) - EQ4_20 */
> + { 0x00000e66, 0x0b75 }, /* R3686 (0xe66) - EQ4_21 */
> + { 0x00000e80, 0x0018 }, /* R3712 (0xe80) - DRC1 ctrl1 */
> + { 0x00000e81, 0x0933 }, /* R3713 (0xe81) - DRC1 ctrl2 */
> + { 0x00000e82, 0x0018 }, /* R3714 (0xe82) - DRC1 ctrl3 */
> + { 0x00000e83, 0x0000 }, /* R3715 (0xe83) - DRC1 ctrl4 */
> + { 0x00000e84, 0x0000 }, /* R3716 (0xe84) - DRC1 ctrl5 */
> + { 0x00000e88, 0x0018 }, /* R3720 (0xe88) - DRC2 ctrl1 */
> + { 0x00000e89, 0x0933 }, /* R3721 (0xe89) - DRC2 ctrl2 */
> + { 0x00000e8a, 0x0018 }, /* R3722 (0xe8a) - DRC2 ctrl3 */
> + { 0x00000e8b, 0x0000 }, /* R3723 (0xe8b) - DRC2 ctrl4 */
> + { 0x00000e8c, 0x0000 }, /* R3724 (0xe8c) - DRC2 ctrl5 */
> + { 0x00000ec0, 0x0000 }, /* R3776 (0xec0) - HPLPF1_1 */
> + { 0x00000ec1, 0x0000 }, /* R3777 (0xec1) - HPLPF1_2 */
> + { 0x00000ec4, 0x0000 }, /* R3780 (0xec4) - HPLPF2_1 */
> + { 0x00000ec5, 0x0000 }, /* R3781 (0xec5) - HPLPF2_2 */
> + { 0x00000ec8, 0x0000 }, /* R3784 (0xec8) - HPLPF3_1 */
> + { 0x00000ec9, 0x0000 }, /* R3785 (0xec9) - HPLPF3_2 */
> + { 0x00000ecc, 0x0000 }, /* R3788 (0xecc) - HPLPF4_1 */
> + { 0x00000ecd, 0x0000 }, /* R3789 (0xecd) - HPLPF4_2 */
> + { 0x00000ef0, 0x0000 }, /* R3824 (0xef0) - ISRC 1 CTRL 1 */
> + { 0x00000ef1, 0x0001 }, /* R3825 (0xef1) - ISRC 1 CTRL 2 */
> + { 0x00000ef2, 0x0000 }, /* R3826 (0xef2) - ISRC 1 CTRL 3 */
> + { 0x00000ef3, 0x0000 }, /* R3827 (0xef3) - ISRC 2 CTRL 1 */
> + { 0x00000ef4, 0x0001 }, /* R3828 (0xef4) - ISRC 2 CTRL 2 */
> + { 0x00000ef5, 0x0000 }, /* R3829 (0xef5) - ISRC 2 CTRL 3 */
> + { 0x00001300, 0x0000 }, /* R4864 (0x1300) - DAC Comp 1 */
> + { 0x00001302, 0x0000 }, /* R4866 (0x1302) - DAC Comp 2 */
> + { 0x00001380, 0x0000 }, /* R4992 (0x1380) - FRF Coefficient 1L 1 */
> + { 0x00001381, 0x0000 }, /* R4993 (0x1381) - FRF Coefficient 1L 2 */
> + { 0x00001382, 0x0000 }, /* R4994 (0x1382) - FRF Coefficient 1L 3 */
> + { 0x00001383, 0x0000 }, /* R4995 (0x1383) - FRF Coefficient 1L 4 */
> + { 0x00001390, 0x0000 }, /* R5008 (0x1390) - FRF Coefficient 1R 1 */
> + { 0x00001391, 0x0000 }, /* R5009 (0x1391) - FRF Coefficient 1R 2 */
> + { 0x00001392, 0x0000 }, /* R5010 (0x1392) - FRF Coefficient 1R 3 */
> + { 0x00001393, 0x0000 }, /* R5011 (0x1393) - FRF Coefficient 1R 4 */
> + { 0x000013a0, 0x0000 }, /* R5024 (0x13a0) - FRF Coefficient 4L 1 */
> + { 0x000013a1, 0x0000 }, /* R5025 (0x13a1) - FRF Coefficient 4L 2 */
> + { 0x000013a2, 0x0000 }, /* R5026 (0x13a2) - FRF Coefficient 4L 3 */
> + { 0x000013a3, 0x0000 }, /* R5027 (0x13a3) - FRF Coefficient 4L 4 */
> + { 0x000013b0, 0x0000 }, /* R5040 (0x13b0) - FRF Coefficient 5L 1 */
> + { 0x000013b1, 0x0000 }, /* R5041 (0x13b1) - FRF Coefficient 5L 2 */
> + { 0x000013b2, 0x0000 }, /* R5042 (0x13b2) - FRF Coefficient 5L 3 */
> + { 0x000013b3, 0x0000 }, /* R5043 (0x13b3) - FRF Coefficient 5L 4 */
> + { 0x000013c0, 0x0000 }, /* R5040 (0x13c0) - FRF Coefficient 5R 1 */
> + { 0x000013c1, 0x0000 }, /* R5041 (0x13c1) - FRF Coefficient 5R 2 */
> + { 0x000013c2, 0x0000 }, /* R5042 (0x13c2) - FRF Coefficient 5R 3 */
> + { 0x000013c3, 0x0000 }, /* R5043 (0x13c3) - FRF Coefficient 5R 4 */
> + { 0x00001700, 0x2001 }, /* R5888 (0x1700) - GPIO1 Control 1 */
> + { 0x00001701, 0xf000 }, /* R5889 (0x1701) - GPIO1 Control 2 */
> + { 0x00001702, 0x2001 }, /* R5890 (0x1702) - GPIO2 Control 1 */
> + { 0x00001703, 0xf000 }, /* R5891 (0x1703) - GPIO2 Control 2 */
> + { 0x00001704, 0x2001 }, /* R5892 (0x1704) - GPIO3 Control 1 */
> + { 0x00001705, 0xf000 }, /* R5893 (0x1705) - GPIO3 Control 2 */
> + { 0x00001706, 0x2001 }, /* R5894 (0x1706) - GPIO4 Control 1 */
> + { 0x00001707, 0xf000 }, /* R5895 (0x1707) - GPIO4 Control 2 */
> + { 0x00001708, 0x2001 }, /* R5896 (0x1708) - GPIO5 Control 1 */
> + { 0x00001709, 0xf000 }, /* R5897 (0x1709) - GPIO5 Control 2 */
> + { 0x0000170a, 0x2001 }, /* R5898 (0x170a) - GPIO6 Control 1 */
> + { 0x0000170b, 0xf000 }, /* R5899 (0x170b) - GPIO6 Control 2 */
> + { 0x0000170c, 0x2001 }, /* R5900 (0x170c) - GPIO7 Control 1 */
> + { 0x0000170d, 0xf000 }, /* R5901 (0x170d) - GPIO7 Control 2 */
> + { 0x0000170e, 0x2001 }, /* R5902 (0x170e) - GPIO8 Control 1 */
> + { 0x0000170f, 0xf000 }, /* R5903 (0x170f) - GPIO8 Control 2 */
> + { 0x00001710, 0x2001 }, /* R5904 (0x1710) - GPIO9 Control 1 */
> + { 0x00001711, 0xf000 }, /* R5905 (0x1711) - GPIO9 Control 2 */
> + { 0x00001712, 0x2001 }, /* R5906 (0x1712) - GPIO10 Control 1 */
> + { 0x00001713, 0xf000 }, /* R5907 (0x1713) - GPIO10 Control 2 */
> + { 0x00001714, 0x2001 }, /* R5908 (0x1714) - GPIO11 Control 1 */
> + { 0x00001715, 0xf000 }, /* R5909 (0x1715) - GPIO11 Control 2 */
> + { 0x00001716, 0x2001 }, /* R5910 (0x1716) - GPIO12 Control 1 */
> + { 0x00001717, 0xf000 }, /* R5911 (0x1717) - GPIO12 Control 2 */
> + { 0x00001718, 0x2001 }, /* R5912 (0x1718) - GPIO13 Control 1 */
> + { 0x00001719, 0xf000 }, /* R5913 (0x1719) - GPIO13 Control 2 */
> + { 0x0000171a, 0x2001 }, /* R5914 (0x171a) - GPIO14 Control 1 */
> + { 0x0000171b, 0xf000 }, /* R5915 (0x171b) - GPIO14 Control 2 */
> + { 0x0000171c, 0x2001 }, /* R5916 (0x171c) - GPIO15 Control 1 */
> + { 0x0000171d, 0xf000 }, /* R5917 (0x171d) - GPIO15 Control 2 */
> + { 0x0000171e, 0x2001 }, /* R5918 (0x171e) - GPIO16 Control 1 */
> + { 0x0000171f, 0xf000 }, /* R5919 (0x171f) - GPIO16 Control 2 */
> + { 0x00001840, 0xffff }, /* R6208 (0x1840) - IRQ1 Mask 1 */
> + { 0x00001841, 0xffff }, /* R6209 (0x1841) - IRQ1 Mask 2 */
> + { 0x00001842, 0xffff }, /* R6210 (0x1842) - IRQ1 Mask 3 */
> + { 0x00001843, 0xffff }, /* R6211 (0x1843) - IRQ1 Mask 4 */
> + { 0x00001844, 0xffff }, /* R6212 (0x1844) - IRQ1 Mask 5 */
> + { 0x00001845, 0xffff }, /* R6213 (0x1845) - IRQ1 Mask 6 */
> + { 0x00001846, 0xffff }, /* R6214 (0x1846) - IRQ1 Mask 7 */
> + { 0x00001847, 0xffff }, /* R6215 (0x1847) - IRQ1 Mask 8 */
> + { 0x00001848, 0xffff }, /* R6216 (0x1848) - IRQ1 Mask 9 */
> + { 0x00001849, 0xffff }, /* R6217 (0x1849) - IRQ1 Mask 10 */
> + { 0x0000184a, 0xffff }, /* R6218 (0x184a) - IRQ1 Mask 11 */
> + { 0x0000184b, 0xffff }, /* R6219 (0x184b) - IRQ1 Mask 12 */
> + { 0x0000184c, 0xffff }, /* R6220 (0x184c) - IRQ1 Mask 13 */
> + { 0x0000184d, 0xffff }, /* R6221 (0x184d) - IRQ1 Mask 14 */
> + { 0x0000184e, 0xffff }, /* R6222 (0x184e) - IRQ1 Mask 15 */
> + { 0x0000184f, 0xffff }, /* R6223 (0x184f) - IRQ1 Mask 16 */
> + { 0x00001850, 0xffff }, /* R6224 (0x1850) - IRQ1 Mask 17 */
> + { 0x00001851, 0xffff }, /* R6225 (0x1851) - IRQ1 Mask 18 */
> + { 0x00001852, 0xffff }, /* R6226 (0x1852) - IRQ1 Mask 19 */
> + { 0x00001853, 0xffff }, /* R6227 (0x1853) - IRQ1 Mask 20 */
> + { 0x00001854, 0xffff }, /* R6228 (0x1854) - IRQ1 Mask 21 */
> + { 0x00001855, 0xffff }, /* R6229 (0x1855) - IRQ1 Mask 22 */
> + { 0x00001856, 0xffff }, /* R6230 (0x1856) - IRQ1 Mask 23 */
> + { 0x00001857, 0xffff }, /* R6231 (0x1857) - IRQ1 Mask 24 */
> + { 0x00001858, 0xffff }, /* R6232 (0x1858) - IRQ1 Mask 25 */
> + { 0x00001859, 0xffff }, /* R6233 (0x1859) - IRQ1 Mask 26 */
> + { 0x0000185a, 0xffff }, /* R6234 (0x185a) - IRQ1 Mask 27 */
> + { 0x0000185b, 0xffff }, /* R6235 (0x185b) - IRQ1 Mask 28 */
> + { 0x0000185c, 0xffff }, /* R6236 (0x185c) - IRQ1 Mask 29 */
> + { 0x0000185d, 0xffff }, /* R6237 (0x185d) - IRQ1 Mask 30 */
> + { 0x0000185e, 0xffff }, /* R6238 (0x185e) - IRQ1 Mask 31 */
> + { 0x0000185f, 0xffff }, /* R6239 (0x185f) - IRQ1 Mask 32 */
> + { 0x00001860, 0xffff }, /* R6240 (0x1860) - IRQ1 Mask 33 */
> + { 0x00001a06, 0x0000 }, /* R6662 (0x1a06) - Interrupt Debounce 7 */
> + { 0x00001a80, 0x4400 }, /* R6784 (0x1a80) - IRQ1 CTRL */
> +};
> +
> +static bool cs47l35_is_adsp_memory(unsigned int reg)
> +{
> + switch (reg) {
> + case 0x080000 ... 0x085ffe:
> + case 0x0a0000 ... 0x0a7ffe:
> + case 0x0c0000 ... 0x0c1ffe:
> + case 0x0e0000 ... 0x0e1ffe:
> + case 0x100000 ... 0x10effe:
> + case 0x120000 ... 0x12bffe:
> + case 0x136000 ... 0x137ffe:
> + case 0x140000 ... 0x14bffe:
> + case 0x160000 ... 0x161ffe:
> + case 0x180000 ... 0x18effe:
> + case 0x1a0000 ... 0x1b1ffe:
> + case 0x1b6000 ... 0x1b7ffe:
> + case 0x1c0000 ... 0x1cbffe:
> + case 0x1e0000 ... 0x1e1ffe:
> + return true;
> + default:
> + return false;
> + }
> +}
> +
> +static bool cs47l35_16bit_readable_register(struct device *dev,
> + unsigned int reg)
> +{
> + switch (reg) {
> + case MADERA_SOFTWARE_RESET:
> + case MADERA_HARDWARE_REVISION:
> + case MADERA_WRITE_SEQUENCER_CTRL_0:
> + case MADERA_WRITE_SEQUENCER_CTRL_1:
> + case MADERA_WRITE_SEQUENCER_CTRL_2:
> + case MADERA_TONE_GENERATOR_1:
> + case MADERA_TONE_GENERATOR_2:
> + case MADERA_TONE_GENERATOR_3:
> + case MADERA_TONE_GENERATOR_4:
> + case MADERA_TONE_GENERATOR_5:
> + case MADERA_PWM_DRIVE_1:
> + case MADERA_PWM_DRIVE_2:
> + case MADERA_PWM_DRIVE_3:
> + case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_1:
> + case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_2:
> + case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_3:
> + case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_4:
> + case MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_1:
> + case MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_2:
> + case MADERA_HAPTICS_CONTROL_1:
> + case MADERA_HAPTICS_CONTROL_2:
> + case MADERA_HAPTICS_PHASE_1_INTENSITY:
> + case MADERA_HAPTICS_PHASE_1_DURATION:
> + case MADERA_HAPTICS_PHASE_2_INTENSITY:
> + case MADERA_HAPTICS_PHASE_2_DURATION:
> + case MADERA_HAPTICS_PHASE_3_INTENSITY:
> + case MADERA_HAPTICS_PHASE_3_DURATION:
> + case MADERA_HAPTICS_STATUS:
> + case MADERA_COMFORT_NOISE_GENERATOR:
> + case MADERA_CLOCK_32K_1:
> + case MADERA_SYSTEM_CLOCK_1:
> + case MADERA_SAMPLE_RATE_1:
> + case MADERA_SAMPLE_RATE_2:
> + case MADERA_SAMPLE_RATE_3:
> + case MADERA_SAMPLE_RATE_1_STATUS:
> + case MADERA_SAMPLE_RATE_2_STATUS:
> + case MADERA_SAMPLE_RATE_3_STATUS:
> + case MADERA_DSP_CLOCK_1:
> + case MADERA_DSP_CLOCK_2:
> + case MADERA_OUTPUT_SYSTEM_CLOCK:
> + case MADERA_OUTPUT_ASYNC_CLOCK:
> + case MADERA_RATE_ESTIMATOR_1:
> + case MADERA_RATE_ESTIMATOR_2:
> + case MADERA_RATE_ESTIMATOR_3:
> + case MADERA_RATE_ESTIMATOR_4:
> + case MADERA_RATE_ESTIMATOR_5:
> + case MADERA_FLL1_CONTROL_1:
> + case MADERA_FLL1_CONTROL_2:
> + case MADERA_FLL1_CONTROL_3:
> + case MADERA_FLL1_CONTROL_4:
> + case MADERA_FLL1_CONTROL_5:
> + case MADERA_FLL1_CONTROL_6:
> + case MADERA_FLL1_CONTROL_7:
> + case MADERA_FLL1_LOOP_FILTER_TEST_1:
> + case CS47L35_FLL1_SYNCHRONISER_1:
> + case CS47L35_FLL1_SYNCHRONISER_2:
> + case CS47L35_FLL1_SYNCHRONISER_3:
> + case CS47L35_FLL1_SYNCHRONISER_4:
> + case CS47L35_FLL1_SYNCHRONISER_5:
> + case CS47L35_FLL1_SYNCHRONISER_6:
> + case CS47L35_FLL1_SYNCHRONISER_7:
> + case CS47L35_FLL1_SPREAD_SPECTRUM:
> + case CS47L35_FLL1_GPIO_CLOCK:
> + case MADERA_MIC_CHARGE_PUMP_1:
> + case MADERA_HP_CHARGE_PUMP_8:
> + case MADERA_LDO2_CONTROL_1:
> + case MADERA_MIC_BIAS_CTRL_1:
> + case MADERA_MIC_BIAS_CTRL_2:
> + case MADERA_MIC_BIAS_CTRL_5:
> + case MADERA_MIC_BIAS_CTRL_6:
> + case MADERA_HP_CTRL_1L:
> + case MADERA_HP_CTRL_1R:
> + case MADERA_DCS_HP1L_CONTROL:
> + case MADERA_DCS_HP1R_CONTROL:
> + case MADERA_EDRE_HP_STEREO_CONTROL:
> + case MADERA_ACCESSORY_DETECT_MODE_1:
> + case MADERA_HEADPHONE_DETECT_1:
> + case MADERA_HEADPHONE_DETECT_2:
> + case MADERA_HEADPHONE_DETECT_3:
> + case MADERA_HEADPHONE_DETECT_5:
> + case MADERA_MICD_CLAMP_CONTROL:
> + case MADERA_MIC_DETECT_1_CONTROL_1:
> + case MADERA_MIC_DETECT_1_CONTROL_2:
> + case MADERA_MIC_DETECT_1_CONTROL_3:
> + case MADERA_MIC_DETECT_1_LEVEL_1:
> + case MADERA_MIC_DETECT_1_LEVEL_2:
> + case MADERA_MIC_DETECT_1_LEVEL_3:
> + case MADERA_MIC_DETECT_1_LEVEL_4:
> + case MADERA_MIC_DETECT_1_CONTROL_4:
> + case MADERA_GP_SWITCH_1:
> + case MADERA_JACK_DETECT_ANALOGUE:
> + case MADERA_INPUT_ENABLES:
> + case MADERA_INPUT_ENABLES_STATUS:
> + case MADERA_INPUT_RATE:
> + case MADERA_INPUT_VOLUME_RAMP:
> + case MADERA_HPF_CONTROL:
> + case MADERA_IN1L_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_1L:
> + case MADERA_DMIC1L_CONTROL:
> + case MADERA_IN1R_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_1R:
> + case MADERA_DMIC1R_CONTROL:
> + case MADERA_IN2L_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_2L:
> + case MADERA_DMIC2L_CONTROL:
> + case MADERA_IN2R_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_2R:
> + case MADERA_DMIC2R_CONTROL:
> + case MADERA_OUTPUT_ENABLES_1:
> + case MADERA_OUTPUT_STATUS_1:
> + case MADERA_RAW_OUTPUT_STATUS_1:
> + case MADERA_OUTPUT_RATE_1:
> + case MADERA_OUTPUT_VOLUME_RAMP:
> + case MADERA_OUTPUT_PATH_CONFIG_1L:
> + case MADERA_DAC_DIGITAL_VOLUME_1L:
> + case MADERA_NOISE_GATE_SELECT_1L:
> + case MADERA_OUTPUT_PATH_CONFIG_1R:
> + case MADERA_DAC_DIGITAL_VOLUME_1R:
> + case MADERA_NOISE_GATE_SELECT_1R:
> + case MADERA_OUTPUT_PATH_CONFIG_4L:
> + case MADERA_DAC_DIGITAL_VOLUME_4L:
> + case MADERA_NOISE_GATE_SELECT_4L:
> + case MADERA_OUTPUT_PATH_CONFIG_5L:
> + case MADERA_DAC_DIGITAL_VOLUME_5L:
> + case MADERA_NOISE_GATE_SELECT_5L:
> + case MADERA_OUTPUT_PATH_CONFIG_5R:
> + case MADERA_DAC_DIGITAL_VOLUME_5R:
> + case MADERA_NOISE_GATE_SELECT_5R:
> + case MADERA_DRE_ENABLE:
> + case MADERA_EDRE_ENABLE:
> + case MADERA_EDRE_MANUAL:
> + case MADERA_DAC_AEC_CONTROL_1:
> + case MADERA_NOISE_GATE_CONTROL:
> + case MADERA_PDM_SPK1_CTRL_1:
> + case MADERA_PDM_SPK1_CTRL_2:
> + case MADERA_HP1_SHORT_CIRCUIT_CTRL:
> + case MADERA_HP_TEST_CTRL_5:
> + case MADERA_HP_TEST_CTRL_6:
> + case MADERA_AIF1_BCLK_CTRL:
> + case MADERA_AIF1_TX_PIN_CTRL:
> + case MADERA_AIF1_RX_PIN_CTRL:
> + case MADERA_AIF1_RATE_CTRL:
> + case MADERA_AIF1_FORMAT:
> + case MADERA_AIF1_RX_BCLK_RATE:
> + case MADERA_AIF1_FRAME_CTRL_1:
> + case MADERA_AIF1_FRAME_CTRL_2:
> + case MADERA_AIF1_FRAME_CTRL_3:
> + case MADERA_AIF1_FRAME_CTRL_4:
> + case MADERA_AIF1_FRAME_CTRL_5:
> + case MADERA_AIF1_FRAME_CTRL_6:
> + case MADERA_AIF1_FRAME_CTRL_7:
> + case MADERA_AIF1_FRAME_CTRL_8:
> + case MADERA_AIF1_FRAME_CTRL_11:
> + case MADERA_AIF1_FRAME_CTRL_12:
> + case MADERA_AIF1_FRAME_CTRL_13:
> + case MADERA_AIF1_FRAME_CTRL_14:
> + case MADERA_AIF1_FRAME_CTRL_15:
> + case MADERA_AIF1_FRAME_CTRL_16:
> + case MADERA_AIF1_TX_ENABLES:
> + case MADERA_AIF1_RX_ENABLES:
> + case MADERA_AIF2_BCLK_CTRL:
> + case MADERA_AIF2_TX_PIN_CTRL:
> + case MADERA_AIF2_RX_PIN_CTRL:
> + case MADERA_AIF2_RATE_CTRL:
> + case MADERA_AIF2_FORMAT:
> + case MADERA_AIF2_RX_BCLK_RATE:
> + case MADERA_AIF2_FRAME_CTRL_1:
> + case MADERA_AIF2_FRAME_CTRL_2:
> + case MADERA_AIF2_FRAME_CTRL_3:
> + case MADERA_AIF2_FRAME_CTRL_4:
> + case MADERA_AIF2_FRAME_CTRL_11:
> + case MADERA_AIF2_FRAME_CTRL_12:
> + case MADERA_AIF2_TX_ENABLES:
> + case MADERA_AIF2_RX_ENABLES:
> + case MADERA_AIF3_BCLK_CTRL:
> + case MADERA_AIF3_TX_PIN_CTRL:
> + case MADERA_AIF3_RX_PIN_CTRL:
> + case MADERA_AIF3_RATE_CTRL:
> + case MADERA_AIF3_FORMAT:
> + case MADERA_AIF3_RX_BCLK_RATE:
> + case MADERA_AIF3_FRAME_CTRL_1:
> + case MADERA_AIF3_FRAME_CTRL_2:
> + case MADERA_AIF3_FRAME_CTRL_3:
> + case MADERA_AIF3_FRAME_CTRL_4:
> + case MADERA_AIF3_FRAME_CTRL_11:
> + case MADERA_AIF3_FRAME_CTRL_12:
> + case MADERA_AIF3_TX_ENABLES:
> + case MADERA_AIF3_RX_ENABLES:
> + case MADERA_SPD1_TX_CONTROL:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_1:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_2:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_3:
> + case MADERA_SLIMBUS_FRAMER_REF_GEAR:
> + case MADERA_SLIMBUS_RATES_1:
> + case MADERA_SLIMBUS_RATES_2:
> + case MADERA_SLIMBUS_RATES_3:
> + case MADERA_SLIMBUS_RATES_5:
> + case MADERA_SLIMBUS_RATES_6:
> + case MADERA_SLIMBUS_RATES_7:
> + case MADERA_SLIMBUS_RX_CHANNEL_ENABLE:
> + case MADERA_SLIMBUS_TX_CHANNEL_ENABLE:
> + case MADERA_SLIMBUS_RX_PORT_STATUS:
> + case MADERA_SLIMBUS_TX_PORT_STATUS:
> + case MADERA_PWM1MIX_INPUT_1_SOURCE:
> + case MADERA_PWM1MIX_INPUT_1_VOLUME:
> + case MADERA_PWM1MIX_INPUT_2_SOURCE:
> + case MADERA_PWM1MIX_INPUT_2_VOLUME:
> + case MADERA_PWM1MIX_INPUT_3_SOURCE:
> + case MADERA_PWM1MIX_INPUT_3_VOLUME:
> + case MADERA_PWM1MIX_INPUT_4_SOURCE:
> + case MADERA_PWM1MIX_INPUT_4_VOLUME:
> + case MADERA_PWM2MIX_INPUT_1_SOURCE:
> + case MADERA_PWM2MIX_INPUT_1_VOLUME:
> + case MADERA_PWM2MIX_INPUT_2_SOURCE:
> + case MADERA_PWM2MIX_INPUT_2_VOLUME:
> + case MADERA_PWM2MIX_INPUT_3_SOURCE:
> + case MADERA_PWM2MIX_INPUT_3_VOLUME:
> + case MADERA_PWM2MIX_INPUT_4_SOURCE:
> + case MADERA_PWM2MIX_INPUT_4_VOLUME:
> + case MADERA_OUT1LMIX_INPUT_1_SOURCE:
> + case MADERA_OUT1LMIX_INPUT_1_VOLUME:
> + case MADERA_OUT1LMIX_INPUT_2_SOURCE:
> + case MADERA_OUT1LMIX_INPUT_2_VOLUME:
> + case MADERA_OUT1LMIX_INPUT_3_SOURCE:
> + case MADERA_OUT1LMIX_INPUT_3_VOLUME:
> + case MADERA_OUT1LMIX_INPUT_4_SOURCE:
> + case MADERA_OUT1LMIX_INPUT_4_VOLUME:
> + case MADERA_OUT1RMIX_INPUT_1_SOURCE:
> + case MADERA_OUT1RMIX_INPUT_1_VOLUME:
> + case MADERA_OUT1RMIX_INPUT_2_SOURCE:
> + case MADERA_OUT1RMIX_INPUT_2_VOLUME:
> + case MADERA_OUT1RMIX_INPUT_3_SOURCE:
> + case MADERA_OUT1RMIX_INPUT_3_VOLUME:
> + case MADERA_OUT1RMIX_INPUT_4_SOURCE:
> + case MADERA_OUT1RMIX_INPUT_4_VOLUME:
> + case MADERA_OUT4LMIX_INPUT_1_SOURCE:
> + case MADERA_OUT4LMIX_INPUT_1_VOLUME:
> + case MADERA_OUT4LMIX_INPUT_2_SOURCE:
> + case MADERA_OUT4LMIX_INPUT_2_VOLUME:
> + case MADERA_OUT4LMIX_INPUT_3_SOURCE:
> + case MADERA_OUT4LMIX_INPUT_3_VOLUME:
> + case MADERA_OUT4LMIX_INPUT_4_SOURCE:
> + case MADERA_OUT4LMIX_INPUT_4_VOLUME:
> + case MADERA_OUT5LMIX_INPUT_1_SOURCE:
> + case MADERA_OUT5LMIX_INPUT_1_VOLUME:
> + case MADERA_OUT5LMIX_INPUT_2_SOURCE:
> + case MADERA_OUT5LMIX_INPUT_2_VOLUME:
> + case MADERA_OUT5LMIX_INPUT_3_SOURCE:
> + case MADERA_OUT5LMIX_INPUT_3_VOLUME:
> + case MADERA_OUT5LMIX_INPUT_4_SOURCE:
> + case MADERA_OUT5LMIX_INPUT_4_VOLUME:
> + case MADERA_OUT5RMIX_INPUT_1_SOURCE:
> + case MADERA_OUT5RMIX_INPUT_1_VOLUME:
> + case MADERA_OUT5RMIX_INPUT_2_SOURCE:
> + case MADERA_OUT5RMIX_INPUT_2_VOLUME:
> + case MADERA_OUT5RMIX_INPUT_3_SOURCE:
> + case MADERA_OUT5RMIX_INPUT_3_VOLUME:
> + case MADERA_OUT5RMIX_INPUT_4_SOURCE:
> + case MADERA_OUT5RMIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX1MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX1MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX1MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX1MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX1MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX1MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX1MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX1MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX2MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX2MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX2MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX2MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX2MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX2MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX2MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX2MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX3MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX3MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX3MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX3MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX3MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX3MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX3MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX3MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX4MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX4MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX4MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX4MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX4MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX4MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX4MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX4MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX5MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX5MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX5MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX5MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX5MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX5MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX5MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX5MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX6MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX6MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX6MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX6MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX6MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX6MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX6MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX6MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX1MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX1MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX1MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX1MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX1MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX1MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX1MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX1MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX2MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX2MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX2MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX2MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX2MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX2MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX2MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX2MIX_INPUT_4_VOLUME:
> + case MADERA_AIF3TX1MIX_INPUT_1_SOURCE:
> + case MADERA_AIF3TX1MIX_INPUT_1_VOLUME:
> + case MADERA_AIF3TX1MIX_INPUT_2_SOURCE:
> + case MADERA_AIF3TX1MIX_INPUT_2_VOLUME:
> + case MADERA_AIF3TX1MIX_INPUT_3_SOURCE:
> + case MADERA_AIF3TX1MIX_INPUT_3_VOLUME:
> + case MADERA_AIF3TX1MIX_INPUT_4_SOURCE:
> + case MADERA_AIF3TX1MIX_INPUT_4_VOLUME:
> + case MADERA_AIF3TX2MIX_INPUT_1_SOURCE:
> + case MADERA_AIF3TX2MIX_INPUT_1_VOLUME:
> + case MADERA_AIF3TX2MIX_INPUT_2_SOURCE:
> + case MADERA_AIF3TX2MIX_INPUT_2_VOLUME:
> + case MADERA_AIF3TX2MIX_INPUT_3_SOURCE:
> + case MADERA_AIF3TX2MIX_INPUT_3_VOLUME:
> + case MADERA_AIF3TX2MIX_INPUT_4_SOURCE:
> + case MADERA_AIF3TX2MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX1MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX1MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX1MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX1MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX1MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX1MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX1MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX1MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX2MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX2MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX2MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX2MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX2MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX2MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX2MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX2MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX3MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX3MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX3MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX3MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX3MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX3MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX3MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX3MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX4MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX4MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX4MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX4MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX4MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX4MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX4MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX4MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX5MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX5MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX5MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX5MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX5MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX5MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX5MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX5MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX6MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX6MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX6MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX6MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX6MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX6MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX6MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX6MIX_INPUT_4_VOLUME:
> + case MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE:
> + case MADERA_SPDIF1TX1MIX_INPUT_1_VOLUME:
> + case MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE:
> + case MADERA_SPDIF1TX2MIX_INPUT_1_VOLUME:
> + case MADERA_EQ1MIX_INPUT_1_SOURCE:
> + case MADERA_EQ1MIX_INPUT_1_VOLUME:
> + case MADERA_EQ1MIX_INPUT_2_SOURCE:
> + case MADERA_EQ1MIX_INPUT_2_VOLUME:
> + case MADERA_EQ1MIX_INPUT_3_SOURCE:
> + case MADERA_EQ1MIX_INPUT_3_VOLUME:
> + case MADERA_EQ1MIX_INPUT_4_SOURCE:
> + case MADERA_EQ1MIX_INPUT_4_VOLUME:
> + case MADERA_EQ2MIX_INPUT_1_SOURCE:
> + case MADERA_EQ2MIX_INPUT_1_VOLUME:
> + case MADERA_EQ2MIX_INPUT_2_SOURCE:
> + case MADERA_EQ2MIX_INPUT_2_VOLUME:
> + case MADERA_EQ2MIX_INPUT_3_SOURCE:
> + case MADERA_EQ2MIX_INPUT_3_VOLUME:
> + case MADERA_EQ2MIX_INPUT_4_SOURCE:
> + case MADERA_EQ2MIX_INPUT_4_VOLUME:
> + case MADERA_EQ3MIX_INPUT_1_SOURCE:
> + case MADERA_EQ3MIX_INPUT_1_VOLUME:
> + case MADERA_EQ3MIX_INPUT_2_SOURCE:
> + case MADERA_EQ3MIX_INPUT_2_VOLUME:
> + case MADERA_EQ3MIX_INPUT_3_SOURCE:
> + case MADERA_EQ3MIX_INPUT_3_VOLUME:
> + case MADERA_EQ3MIX_INPUT_4_SOURCE:
> + case MADERA_EQ3MIX_INPUT_4_VOLUME:
> + case MADERA_EQ4MIX_INPUT_1_SOURCE:
> + case MADERA_EQ4MIX_INPUT_1_VOLUME:
> + case MADERA_EQ4MIX_INPUT_2_SOURCE:
> + case MADERA_EQ4MIX_INPUT_2_VOLUME:
> + case MADERA_EQ4MIX_INPUT_3_SOURCE:
> + case MADERA_EQ4MIX_INPUT_3_VOLUME:
> + case MADERA_EQ4MIX_INPUT_4_SOURCE:
> + case MADERA_EQ4MIX_INPUT_4_VOLUME:
> + case MADERA_DRC1LMIX_INPUT_1_SOURCE:
> + case MADERA_DRC1LMIX_INPUT_1_VOLUME:
> + case MADERA_DRC1LMIX_INPUT_2_SOURCE:
> + case MADERA_DRC1LMIX_INPUT_2_VOLUME:
> + case MADERA_DRC1LMIX_INPUT_3_SOURCE:
> + case MADERA_DRC1LMIX_INPUT_3_VOLUME:
> + case MADERA_DRC1LMIX_INPUT_4_SOURCE:
> + case MADERA_DRC1LMIX_INPUT_4_VOLUME:
> + case MADERA_DRC1RMIX_INPUT_1_SOURCE:
> + case MADERA_DRC1RMIX_INPUT_1_VOLUME:
> + case MADERA_DRC1RMIX_INPUT_2_SOURCE:
> + case MADERA_DRC1RMIX_INPUT_2_VOLUME:
> + case MADERA_DRC1RMIX_INPUT_3_SOURCE:
> + case MADERA_DRC1RMIX_INPUT_3_VOLUME:
> + case MADERA_DRC1RMIX_INPUT_4_SOURCE:
> + case MADERA_DRC1RMIX_INPUT_4_VOLUME:
> + case MADERA_DRC2LMIX_INPUT_1_SOURCE:
> + case MADERA_DRC2LMIX_INPUT_1_VOLUME:
> + case MADERA_DRC2LMIX_INPUT_2_SOURCE:
> + case MADERA_DRC2LMIX_INPUT_2_VOLUME:
> + case MADERA_DRC2LMIX_INPUT_3_SOURCE:
> + case MADERA_DRC2LMIX_INPUT_3_VOLUME:
> + case MADERA_DRC2LMIX_INPUT_4_SOURCE:
> + case MADERA_DRC2LMIX_INPUT_4_VOLUME:
> + case MADERA_DRC2RMIX_INPUT_1_SOURCE:
> + case MADERA_DRC2RMIX_INPUT_1_VOLUME:
> + case MADERA_DRC2RMIX_INPUT_2_SOURCE:
> + case MADERA_DRC2RMIX_INPUT_2_VOLUME:
> + case MADERA_DRC2RMIX_INPUT_3_SOURCE:
> + case MADERA_DRC2RMIX_INPUT_3_VOLUME:
> + case MADERA_DRC2RMIX_INPUT_4_SOURCE:
> + case MADERA_DRC2RMIX_INPUT_4_VOLUME:
> + case MADERA_HPLP1MIX_INPUT_1_SOURCE:
> + case MADERA_HPLP1MIX_INPUT_1_VOLUME:
> + case MADERA_HPLP1MIX_INPUT_2_SOURCE:
> + case MADERA_HPLP1MIX_INPUT_2_VOLUME:
> + case MADERA_HPLP1MIX_INPUT_3_SOURCE:
> + case MADERA_HPLP1MIX_INPUT_3_VOLUME:
> + case MADERA_HPLP1MIX_INPUT_4_SOURCE:
> + case MADERA_HPLP1MIX_INPUT_4_VOLUME:
> + case MADERA_HPLP2MIX_INPUT_1_SOURCE:
> + case MADERA_HPLP2MIX_INPUT_1_VOLUME:
> + case MADERA_HPLP2MIX_INPUT_2_SOURCE:
> + case MADERA_HPLP2MIX_INPUT_2_VOLUME:
> + case MADERA_HPLP2MIX_INPUT_3_SOURCE:
> + case MADERA_HPLP2MIX_INPUT_3_VOLUME:
> + case MADERA_HPLP2MIX_INPUT_4_SOURCE:
> + case MADERA_HPLP2MIX_INPUT_4_VOLUME:
> + case MADERA_HPLP3MIX_INPUT_1_SOURCE:
> + case MADERA_HPLP3MIX_INPUT_1_VOLUME:
> + case MADERA_HPLP3MIX_INPUT_2_SOURCE:
> + case MADERA_HPLP3MIX_INPUT_2_VOLUME:
> + case MADERA_HPLP3MIX_INPUT_3_SOURCE:
> + case MADERA_HPLP3MIX_INPUT_3_VOLUME:
> + case MADERA_HPLP3MIX_INPUT_4_SOURCE:
> + case MADERA_HPLP3MIX_INPUT_4_VOLUME:
> + case MADERA_HPLP4MIX_INPUT_1_SOURCE:
> + case MADERA_HPLP4MIX_INPUT_1_VOLUME:
> + case MADERA_HPLP4MIX_INPUT_2_SOURCE:
> + case MADERA_HPLP4MIX_INPUT_2_VOLUME:
> + case MADERA_HPLP4MIX_INPUT_3_SOURCE:
> + case MADERA_HPLP4MIX_INPUT_3_VOLUME:
> + case MADERA_HPLP4MIX_INPUT_4_SOURCE:
> + case MADERA_HPLP4MIX_INPUT_4_VOLUME:
> + case MADERA_DSP1LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP1LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP1LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP1LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP1LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP1LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP1LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP1LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP1RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP1RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP1RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP1RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP1RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP1RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP1RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP1RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP1AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP2LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP2LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP2LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP2RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP2RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP2RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP2RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP2RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP2RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP2RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP2RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP2AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP3LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP3LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP3LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP3RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP3RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP3RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP3RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP3RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP3RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP3RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP3RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP3AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1DEC1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1DEC2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1DEC3MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1DEC4MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1INT1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1INT2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1INT3MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1INT4MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2DEC1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2DEC2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2DEC3MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2DEC4MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2INT1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2INT2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2INT3MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2INT4MIX_INPUT_1_SOURCE:
> + case MADERA_FX_CTRL1:
> + case MADERA_FX_CTRL2:
> + case MADERA_EQ1_1:
> + case MADERA_EQ1_2:
> + case MADERA_EQ1_3:
> + case MADERA_EQ1_4:
> + case MADERA_EQ1_5:
> + case MADERA_EQ1_6:
> + case MADERA_EQ1_7:
> + case MADERA_EQ1_8:
> + case MADERA_EQ1_9:
> + case MADERA_EQ1_10:
> + case MADERA_EQ1_11:
> + case MADERA_EQ1_12:
> + case MADERA_EQ1_13:
> + case MADERA_EQ1_14:
> + case MADERA_EQ1_15:
> + case MADERA_EQ1_16:
> + case MADERA_EQ1_17:
> + case MADERA_EQ1_18:
> + case MADERA_EQ1_19:
> + case MADERA_EQ1_20:
> + case MADERA_EQ1_21:
> + case MADERA_EQ2_1:
> + case MADERA_EQ2_2:
> + case MADERA_EQ2_3:
> + case MADERA_EQ2_4:
> + case MADERA_EQ2_5:
> + case MADERA_EQ2_6:
> + case MADERA_EQ2_7:
> + case MADERA_EQ2_8:
> + case MADERA_EQ2_9:
> + case MADERA_EQ2_10:
> + case MADERA_EQ2_11:
> + case MADERA_EQ2_12:
> + case MADERA_EQ2_13:
> + case MADERA_EQ2_14:
> + case MADERA_EQ2_15:
> + case MADERA_EQ2_16:
> + case MADERA_EQ2_17:
> + case MADERA_EQ2_18:
> + case MADERA_EQ2_19:
> + case MADERA_EQ2_20:
> + case MADERA_EQ2_21:
> + case MADERA_EQ3_1:
> + case MADERA_EQ3_2:
> + case MADERA_EQ3_3:
> + case MADERA_EQ3_4:
> + case MADERA_EQ3_5:
> + case MADERA_EQ3_6:
> + case MADERA_EQ3_7:
> + case MADERA_EQ3_8:
> + case MADERA_EQ3_9:
> + case MADERA_EQ3_10:
> + case MADERA_EQ3_11:
> + case MADERA_EQ3_12:
> + case MADERA_EQ3_13:
> + case MADERA_EQ3_14:
> + case MADERA_EQ3_15:
> + case MADERA_EQ3_16:
> + case MADERA_EQ3_17:
> + case MADERA_EQ3_18:
> + case MADERA_EQ3_19:
> + case MADERA_EQ3_20:
> + case MADERA_EQ3_21:
> + case MADERA_EQ4_1:
> + case MADERA_EQ4_2:
> + case MADERA_EQ4_3:
> + case MADERA_EQ4_4:
> + case MADERA_EQ4_5:
> + case MADERA_EQ4_6:
> + case MADERA_EQ4_7:
> + case MADERA_EQ4_8:
> + case MADERA_EQ4_9:
> + case MADERA_EQ4_10:
> + case MADERA_EQ4_11:
> + case MADERA_EQ4_12:
> + case MADERA_EQ4_13:
> + case MADERA_EQ4_14:
> + case MADERA_EQ4_15:
> + case MADERA_EQ4_16:
> + case MADERA_EQ4_17:
> + case MADERA_EQ4_18:
> + case MADERA_EQ4_19:
> + case MADERA_EQ4_20:
> + case MADERA_EQ4_21:
> + case MADERA_DRC1_CTRL1:
> + case MADERA_DRC1_CTRL2:
> + case MADERA_DRC1_CTRL3:
> + case MADERA_DRC1_CTRL4:
> + case MADERA_DRC1_CTRL5:
> + case MADERA_DRC2_CTRL1:
> + case MADERA_DRC2_CTRL2:
> + case MADERA_DRC2_CTRL3:
> + case MADERA_DRC2_CTRL4:
> + case MADERA_DRC2_CTRL5:
> + case MADERA_HPLPF1_1:
> + case MADERA_HPLPF1_2:
> + case MADERA_HPLPF2_1:
> + case MADERA_HPLPF2_2:
> + case MADERA_HPLPF3_1:
> + case MADERA_HPLPF3_2:
> + case MADERA_HPLPF4_1:
> + case MADERA_HPLPF4_2:
> + case MADERA_ISRC_1_CTRL_1:
> + case MADERA_ISRC_1_CTRL_2:
> + case MADERA_ISRC_1_CTRL_3:
> + case MADERA_ISRC_2_CTRL_1:
> + case MADERA_ISRC_2_CTRL_2:
> + case MADERA_ISRC_2_CTRL_3:
> + case MADERA_DAC_COMP_1:
> + case MADERA_DAC_COMP_2:
> + case MADERA_FRF_COEFFICIENT_1L_1:
> + case MADERA_FRF_COEFFICIENT_1L_2:
> + case MADERA_FRF_COEFFICIENT_1L_3:
> + case MADERA_FRF_COEFFICIENT_1L_4:
> + case MADERA_FRF_COEFFICIENT_1R_1:
> + case MADERA_FRF_COEFFICIENT_1R_2:
> + case MADERA_FRF_COEFFICIENT_1R_3:
> + case MADERA_FRF_COEFFICIENT_1R_4:
> + case CS47L35_FRF_COEFFICIENT_4L_1:
> + case CS47L35_FRF_COEFFICIENT_4L_2:
> + case CS47L35_FRF_COEFFICIENT_4L_3:
> + case CS47L35_FRF_COEFFICIENT_4L_4:
> + case CS47L35_FRF_COEFFICIENT_5L_1:
> + case CS47L35_FRF_COEFFICIENT_5L_2:
> + case CS47L35_FRF_COEFFICIENT_5L_3:
> + case CS47L35_FRF_COEFFICIENT_5L_4:
> + case CS47L35_FRF_COEFFICIENT_5R_1:
> + case CS47L35_FRF_COEFFICIENT_5R_2:
> + case CS47L35_FRF_COEFFICIENT_5R_3:
> + case CS47L35_FRF_COEFFICIENT_5R_4:
> + case MADERA_GPIO1_CTRL_1 ... MADERA_GPIO16_CTRL_2:
> + case MADERA_IRQ1_STATUS_1 ... MADERA_IRQ1_STATUS_33:
> + case MADERA_IRQ1_MASK_1 ... MADERA_IRQ1_MASK_33:
> + case MADERA_IRQ1_RAW_STATUS_1 ... MADERA_IRQ1_RAW_STATUS_33:
> + case MADERA_INTERRUPT_DEBOUNCE_7:
> + case MADERA_IRQ1_CTRL:
> + return true;
> + default:
> + return false;
> + }
> +}
> +
> +static bool cs47l35_16bit_volatile_register(struct device *dev,
> + unsigned int reg)
> +{
> + switch (reg) {
> + case MADERA_SOFTWARE_RESET:
> + case MADERA_HARDWARE_REVISION:
> + case MADERA_WRITE_SEQUENCER_CTRL_0:
> + case MADERA_WRITE_SEQUENCER_CTRL_1:
> + case MADERA_WRITE_SEQUENCER_CTRL_2:
> + case MADERA_HAPTICS_STATUS:
> + case MADERA_SAMPLE_RATE_1_STATUS:
> + case MADERA_SAMPLE_RATE_2_STATUS:
> + case MADERA_SAMPLE_RATE_3_STATUS:
> + case MADERA_HP_CTRL_1L:
> + case MADERA_HP_CTRL_1R:
> + case MADERA_DCS_HP1L_CONTROL:
> + case MADERA_DCS_HP1R_CONTROL:
> + case MADERA_MIC_DETECT_1_CONTROL_3:
> + case MADERA_MIC_DETECT_1_CONTROL_4:
> + case MADERA_HEADPHONE_DETECT_2:
> + case MADERA_HEADPHONE_DETECT_3:
> + case MADERA_HEADPHONE_DETECT_5:
> + case MADERA_INPUT_ENABLES_STATUS:
> + case MADERA_OUTPUT_STATUS_1:
> + case MADERA_RAW_OUTPUT_STATUS_1:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_1:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_2:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_3:
> + case MADERA_SLIMBUS_RX_PORT_STATUS:
> + case MADERA_SLIMBUS_TX_PORT_STATUS:
> + case MADERA_FX_CTRL2:
> + case MADERA_IRQ1_STATUS_1 ... MADERA_IRQ1_STATUS_33:
> + case MADERA_IRQ1_RAW_STATUS_1 ... MADERA_IRQ1_RAW_STATUS_33:
> + return true;
> + default:
> + return false;
> + }
> +}
> +
> +static bool cs47l35_32bit_readable_register(struct device *dev,
> + unsigned int reg)
> +{
> + switch (reg) {
> + case MADERA_WSEQ_SEQUENCE_1 ... MADERA_WSEQ_SEQUENCE_252:
> + case CS47L35_OTP_HPDET_CAL_1 ... CS47L35_OTP_HPDET_CAL_2:
> + case MADERA_DSP1_CONFIG_1 ... MADERA_DSP1_SCRATCH_2:
> + case MADERA_DSP2_CONFIG_1 ... MADERA_DSP2_SCRATCH_2:
> + case MADERA_DSP3_CONFIG_1 ... MADERA_DSP3_SCRATCH_2:
> + return true;
> + default:
> + return cs47l35_is_adsp_memory(reg);
> + }
> +}
> +
> +static bool cs47l35_32bit_volatile_register(struct device *dev,
> + unsigned int reg)
> +{
> + switch (reg) {
> + case MADERA_WSEQ_SEQUENCE_1 ... MADERA_WSEQ_SEQUENCE_252:
> + case CS47L35_OTP_HPDET_CAL_1 ... CS47L35_OTP_HPDET_CAL_2:
> + case MADERA_DSP1_CONFIG_1 ... MADERA_DSP1_SCRATCH_2:
> + case MADERA_DSP2_CONFIG_1 ... MADERA_DSP2_SCRATCH_2:
> + case MADERA_DSP3_CONFIG_1 ... MADERA_DSP3_SCRATCH_2:
> + return true;
> + default:
> + return cs47l35_is_adsp_memory(reg);
> + }
> +}
> +
> +const struct regmap_config cs47l35_16bit_spi_regmap = {
> + .name = "cs47l35_16bit",
> + .reg_bits = 32,
> + .pad_bits = 16,
> + .val_bits = 16,
> + .reg_format_endian = REGMAP_ENDIAN_BIG,
> + .val_format_endian = REGMAP_ENDIAN_BIG,
> +
> + .max_register = 0x1b00,
> + .readable_reg = cs47l35_16bit_readable_register,
> + .volatile_reg = cs47l35_16bit_volatile_register,
> +
> + .cache_type = REGCACHE_RBTREE,
> + .reg_defaults = cs47l35_reg_default,
> + .num_reg_defaults = ARRAY_SIZE(cs47l35_reg_default),
> +};
> +EXPORT_SYMBOL_GPL(cs47l35_16bit_spi_regmap);
> +
> +const struct regmap_config cs47l35_16bit_i2c_regmap = {
> + .name = "cs47l35_16bit",
> + .reg_bits = 32,
> + .val_bits = 16,
> + .reg_format_endian = REGMAP_ENDIAN_BIG,
> + .val_format_endian = REGMAP_ENDIAN_BIG,
> +
> + .max_register = 0x1b00,
> + .readable_reg = cs47l35_16bit_readable_register,
> + .volatile_reg = cs47l35_16bit_volatile_register,
> +
> + .cache_type = REGCACHE_RBTREE,
> + .reg_defaults = cs47l35_reg_default,
> + .num_reg_defaults = ARRAY_SIZE(cs47l35_reg_default),
> +};
> +EXPORT_SYMBOL_GPL(cs47l35_16bit_i2c_regmap);
> +
> +const struct regmap_config cs47l35_32bit_spi_regmap = {
> + .name = "cs47l35_32bit",
> + .reg_bits = 32,
> + .reg_stride = 2,
> + .pad_bits = 16,
> + .val_bits = 32,
> + .reg_format_endian = REGMAP_ENDIAN_BIG,
> + .val_format_endian = REGMAP_ENDIAN_BIG,
> +
> + .max_register = MADERA_DSP3_SCRATCH_2,
> + .readable_reg = cs47l35_32bit_readable_register,
> + .volatile_reg = cs47l35_32bit_volatile_register,
> +
> + .cache_type = REGCACHE_RBTREE,
> +};
> +EXPORT_SYMBOL_GPL(cs47l35_32bit_spi_regmap);
> +
> +const struct regmap_config cs47l35_32bit_i2c_regmap = {
> + .name = "cs47l35_32bit",
> + .reg_bits = 32,
> + .reg_stride = 2,
> + .val_bits = 32,
> + .reg_format_endian = REGMAP_ENDIAN_BIG,
> + .val_format_endian = REGMAP_ENDIAN_BIG,
> +
> + .max_register = MADERA_DSP3_SCRATCH_2,
> + .readable_reg = cs47l35_32bit_readable_register,
> + .volatile_reg = cs47l35_32bit_volatile_register,
> +
> + .cache_type = REGCACHE_RBTREE,
> +};
> +EXPORT_SYMBOL_GPL(cs47l35_32bit_i2c_regmap);
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
On Wed, 05 Apr 2017, Richard Fitzgerald wrote:
> Regmap configuration tables for Cirrus Logic CS47L85 codecs.
>
> Signed-off-by: Nariman Poushin <[email protected]>
> Signed-off-by: Richard Fitzgerald <[email protected]>
> Signed-off-by: Charles Keepax <[email protected]>
> ---
> drivers/mfd/Kconfig | 6 +
> drivers/mfd/Makefile | 3 +
> drivers/mfd/cs47l85-tables.c | 3169 ++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 3178 insertions(+)
> create mode 100644 drivers/mfd/cs47l85-tables.c
Please update the Copywrite date, then apply my:
For my own reference:
Acked-for-MFD-by: Lee Jones <[email protected]>
> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index 5aa62f4..6618972 100644
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> @@ -232,6 +232,12 @@ config MFD_CS47L35
> help
> Support for Cirrus Logic CS47L35 Smart Codec
>
> +config MFD_CS47L85
> + bool "Cirrus Logic CS47L85"
> + depends on MFD_MADERA
> + help
> + Support for Cirrus Logic CS47L85 Smart Codec
> +
> config MFD_ASIC3
> bool "Compaq ASIC3"
> depends on GPIOLIB && ARM
> diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
> index c14a86d..9fdca9a 100644
> --- a/drivers/mfd/Makefile
> +++ b/drivers/mfd/Makefile
> @@ -76,6 +76,9 @@ obj-$(CONFIG_MFD_MADERA) += madera-core.o
> ifeq ($(CONFIG_MFD_CS47L35),y)
> obj-$(CONFIG_MFD_MADERA) += cs47l35-tables.o
> endif
> +ifeq ($(CONFIG_MFD_CS47L85),y)
> +obj-$(CONFIG_MFD_MADERA) += cs47l85-tables.o
> +endif
> obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o
> obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
>
> diff --git a/drivers/mfd/cs47l85-tables.c b/drivers/mfd/cs47l85-tables.c
> new file mode 100644
> index 0000000..92512d5
> --- /dev/null
> +++ b/drivers/mfd/cs47l85-tables.c
> @@ -0,0 +1,3169 @@
> +/*
> + * Regmap tables for CS47L85 codec
> + *
> + * Copyright 2015-2016 Cirrus Logic
> + *
> + * Author: Nariman Poushin <[email protected]>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#include <linux/device.h>
> +#include <linux/module.h>
> +#include <linux/regmap.h>
> +
> +#include <linux/mfd/madera/core.h>
> +#include <linux/mfd/madera/registers.h>
> +
> +#include "madera.h"
> +
> +static const struct reg_sequence cs47l85_reva_16_patch[] = {
> + { 0x80, 0x0003 },
> + { 0x213, 0x03E4 },
> + { 0x177, 0x0281 },
> + { 0x197, 0x0281 },
> + { 0x1B7, 0x0281 },
> + { 0x4B1, 0x010A },
> + { 0x4CF, 0x0933 },
> + { 0x36C, 0x011B },
> + { 0x4B8, 0x1120 },
> + { 0x4A0, 0x3280 },
> + { 0x4A1, 0x3200 },
> + { 0x4A2, 0x3200 },
> + { 0x441, 0xC050 },
> + { 0x4A4, 0x000B },
> + { 0x4A5, 0x000B },
> + { 0x4A6, 0x000B },
> + { 0x4E2, 0x1E1D },
> + { 0x4E3, 0x1E1D },
> + { 0x4E4, 0x1E1D },
> + { 0x293, 0x0080 },
> + { 0x17D, 0x0303 },
> + { 0x19D, 0x0303 },
> + { 0x27E, 0x0000 },
> + { 0x80, 0x0000 },
> + { 0x80, 0x0000 },
> + { 0x448, 0x003f },
> +};
> +
> +static const struct reg_sequence cs47l85_revc_16_patch[] = {
> + { 0x27E, 0x0000 },
> + { 0x2C2, 0x0005 },
> + { 0x448, 0x003f },
> +};
> +
> +static const struct reg_sequence cs47l85_reva_32_patch[] = {
> + { 0x3000, 0xC2253632 },
> + { 0x3002, 0xC2300001 },
> + { 0x3004, 0x8225100E },
> + { 0x3006, 0x22251803 },
> + { 0x3008, 0x82310B00 },
> + { 0x300A, 0xE231023B },
> + { 0x300C, 0x02313B01 },
> + { 0x300E, 0x62300000 },
> + { 0x3010, 0xE2314288 },
> + { 0x3012, 0x02310B00 },
> + { 0x3014, 0x02310B00 },
> + { 0x3016, 0x04050100 },
> + { 0x3018, 0x42310C02 },
> + { 0x301A, 0xE2310227 },
> + { 0x301C, 0x02313B01 },
> + { 0x301E, 0xE2314266 },
> + { 0x3020, 0xE2315294 },
> + { 0x3022, 0x02310B00 },
> + { 0x3024, 0x02310B00 },
> + { 0x3026, 0x02251100 },
> + { 0x3028, 0x02251401 },
> + { 0x302A, 0x02250200 },
> + { 0x302C, 0x02251001 },
> + { 0x302E, 0x02250200 },
> + { 0x3030, 0xE2310266 },
> + { 0x3032, 0x82314B15 },
> + { 0x3034, 0x82310B15 },
> + { 0x3036, 0xE2315294 },
> + { 0x3038, 0x02310B00 },
> + { 0x303A, 0x8225160D },
> + { 0x303C, 0x0225F501 },
> + { 0x303E, 0x8225061C },
> + { 0x3040, 0x02251000 },
> + { 0x3042, 0x04051101 },
> + { 0x3044, 0x02251800 },
> + { 0x3046, 0x42251203 },
> + { 0x3048, 0x02251101 },
> + { 0x304A, 0xC2251300 },
> + { 0x304C, 0x2225FB02 },
> + { 0x3050, 0xC2263632 },
> + { 0x3052, 0xC2300001 },
> + { 0x3054, 0x8226100E },
> + { 0x3056, 0x22261803 },
> + { 0x3058, 0x82310B02 },
> + { 0x305A, 0xE231023B },
> + { 0x305C, 0x02313B01 },
> + { 0x305E, 0x62300000 },
> + { 0x3060, 0xE2314288 },
> + { 0x3062, 0x02310B00 },
> + { 0x3064, 0x02310B00 },
> + { 0x3066, 0x04050000 },
> + { 0x3068, 0x42310C03 },
> + { 0x306A, 0xE2310227 },
> + { 0x306C, 0x02313B01 },
> + { 0x306E, 0xE2314266 },
> + { 0x3070, 0xE2315294 },
> + { 0x3072, 0x02310B00 },
> + { 0x3074, 0x02310B00 },
> + { 0x3076, 0x02261100 },
> + { 0x3078, 0x02261401 },
> + { 0x307A, 0x02260200 },
> + { 0x307C, 0x02261001 },
> + { 0x307E, 0x02260200 },
> + { 0x3080, 0xE2310266 },
> + { 0x3082, 0x82314B17 },
> + { 0x3084, 0x82310B17 },
> + { 0x3086, 0xE2315294 },
> + { 0x3088, 0x02310B00 },
> + { 0x308A, 0x8226160D },
> + { 0x308C, 0x0226F501 },
> + { 0x308E, 0x8226061C },
> + { 0x3090, 0x02261000 },
> + { 0x3092, 0x04051101 },
> + { 0x3094, 0x02261800 },
> + { 0x3096, 0x42261203 },
> + { 0x3098, 0x02261101 },
> + { 0x309A, 0xC2261300 },
> + { 0x309C, 0x2226FB02 },
> + { 0x309E, 0x0000F000 },
> + { 0x30A0, 0xC2273632 },
> + { 0x30A2, 0xC2400001 },
> + { 0x30A4, 0x8227100E },
> + { 0x30A6, 0x22271803 },
> + { 0x30A8, 0x82410B00 },
> + { 0x30AA, 0xE241023B },
> + { 0x30AC, 0x02413B01 },
> + { 0x30AE, 0x62400000 },
> + { 0x30B0, 0xE2414288 },
> + { 0x30B2, 0x02410B00 },
> + { 0x30B4, 0x02410B00 },
> + { 0x30B6, 0x04050300 },
> + { 0x30B8, 0x42410C02 },
> + { 0x30BA, 0xE2410227 },
> + { 0x30BC, 0x02413B01 },
> + { 0x30BE, 0xE2414266 },
> + { 0x30C0, 0xE2415294 },
> + { 0x30C2, 0x02410B00 },
> + { 0x30C4, 0x02410B00 },
> + { 0x30C6, 0x02271100 },
> + { 0x30C8, 0x02271401 },
> + { 0x30CA, 0x02270200 },
> + { 0x30CC, 0x02271001 },
> + { 0x30CE, 0x02270200 },
> + { 0x30D0, 0xE2410266 },
> + { 0x30D2, 0x82414B15 },
> + { 0x30D4, 0x82410B15 },
> + { 0x30D6, 0xE2415294 },
> + { 0x30D8, 0x02410B00 },
> + { 0x30DA, 0x8227160D },
> + { 0x30DC, 0x0227F501 },
> + { 0x30DE, 0x8227061C },
> + { 0x30E0, 0x02271000 },
> + { 0x30E2, 0x04051101 },
> + { 0x30E4, 0x02271800 },
> + { 0x30E6, 0x42271203 },
> + { 0x30E8, 0x02271101 },
> + { 0x30EA, 0xC2271300 },
> + { 0x30EC, 0x2227FB02 },
> + { 0x30F0, 0xC2283632 },
> + { 0x30F2, 0xC2400001 },
> + { 0x30F4, 0x8228100E },
> + { 0x30F6, 0x22281803 },
> + { 0x30F8, 0x82410B02 },
> + { 0x30FA, 0xE241023B },
> + { 0x30FC, 0x02413B01 },
> + { 0x30FE, 0x62400000 },
> + { 0x3100, 0xE2414288 },
> + { 0x3102, 0x02410B00 },
> + { 0x3104, 0x02410B00 },
> + { 0x3106, 0x04050200 },
> + { 0x3108, 0x42410C03 },
> + { 0x310A, 0xE2410227 },
> + { 0x310C, 0x02413B01 },
> + { 0x310E, 0xE2414266 },
> + { 0x3110, 0xE2415294 },
> + { 0x3112, 0x02410B00 },
> + { 0x3114, 0x02410B00 },
> + { 0x3116, 0x02281100 },
> + { 0x3118, 0x02281401 },
> + { 0x311A, 0x02280200 },
> + { 0x311C, 0x02281001 },
> + { 0x311E, 0x02280200 },
> + { 0x3120, 0xE2410266 },
> + { 0x3122, 0x82414B17 },
> + { 0x3124, 0x82410B17 },
> + { 0x3126, 0xE2415294 },
> + { 0x3128, 0x02410B00 },
> + { 0x312A, 0x8228160D },
> + { 0x312C, 0x0228F501 },
> + { 0x312E, 0x8228061C },
> + { 0x3130, 0x02281000 },
> + { 0x3132, 0x04051101 },
> + { 0x3134, 0x02281800 },
> + { 0x3136, 0x42281203 },
> + { 0x3138, 0x02281101 },
> + { 0x313A, 0xC2281300 },
> + { 0x313C, 0x2228FB02 },
> + { 0x3140, 0xC2293632 },
> + { 0x3142, 0xC2500001 },
> + { 0x3144, 0x8229100E },
> + { 0x3146, 0x22291803 },
> + { 0x3148, 0x82510B00 },
> + { 0x314A, 0xE251023B },
> + { 0x314C, 0x02513B01 },
> + { 0x314E, 0x62500000 },
> + { 0x3150, 0xE2514288 },
> + { 0x3152, 0x02510B00 },
> + { 0x3154, 0x02510B00 },
> + { 0x3156, 0x04050500 },
> + { 0x3158, 0x42510C02 },
> + { 0x315A, 0xE2510227 },
> + { 0x315C, 0x02513B01 },
> + { 0x315E, 0xE2514266 },
> + { 0x3160, 0xE2515294 },
> + { 0x3162, 0x02510B00 },
> + { 0x3164, 0x02510B00 },
> + { 0x3166, 0x02291100 },
> + { 0x3168, 0x02291401 },
> + { 0x316A, 0x02290200 },
> + { 0x316C, 0x02291001 },
> + { 0x316E, 0x02290200 },
> + { 0x3170, 0xE2510266 },
> + { 0x3172, 0x82514B15 },
> + { 0x3174, 0x82510B15 },
> + { 0x3176, 0xE2515294 },
> + { 0x3178, 0x02510B00 },
> + { 0x317A, 0x8229160D },
> + { 0x317C, 0x0229F501 },
> + { 0x317E, 0x8229061C },
> + { 0x3180, 0x02291000 },
> + { 0x3182, 0x04051101 },
> + { 0x3184, 0x02291800 },
> + { 0x3186, 0x42291203 },
> + { 0x3188, 0x02291101 },
> + { 0x318A, 0xC2291300 },
> + { 0x318C, 0x2229FB02 },
> + { 0x3190, 0xC22A3632 },
> + { 0x3192, 0xC2500001 },
> + { 0x3194, 0x822A100E },
> + { 0x3196, 0x222A1803 },
> + { 0x3198, 0x82510B02 },
> + { 0x319A, 0xE251023B },
> + { 0x319C, 0x02513B01 },
> + { 0x319E, 0x62500000 },
> + { 0x31A0, 0xE2514288 },
> + { 0x31A2, 0x02510B00 },
> + { 0x31A4, 0x02510B00 },
> + { 0x31A6, 0x04050400 },
> + { 0x31A8, 0x42510C03 },
> + { 0x31AA, 0xE2510227 },
> + { 0x31AC, 0x02513B01 },
> + { 0x31AE, 0xE2514266 },
> + { 0x31B0, 0xE2515294 },
> + { 0x31B2, 0x02510B00 },
> + { 0x31B4, 0x02510B00 },
> + { 0x31B6, 0x022A1100 },
> + { 0x31B8, 0x022A1401 },
> + { 0x31BA, 0x022A0200 },
> + { 0x31BC, 0x022A1001 },
> + { 0x31BE, 0x022A0200 },
> + { 0x31C0, 0xE2510266 },
> + { 0x31C2, 0x82514B17 },
> + { 0x31C4, 0x82510B17 },
> + { 0x31C6, 0xE2515294 },
> + { 0x31C8, 0x02510B00 },
> + { 0x31CA, 0x822A160D },
> + { 0x31CC, 0x022AF501 },
> + { 0x31CE, 0x822A061C },
> + { 0x31D0, 0x022A1000 },
> + { 0x31D2, 0x04051101 },
> + { 0x31D4, 0x022A1800 },
> + { 0x31D6, 0x422A1203 },
> + { 0x31D8, 0x022A1101 },
> + { 0x31DA, 0xC22A1300 },
> + { 0x31DC, 0x222AFB02 },
> +};
> +
> +static const struct reg_sequence cs47l85_revc_32_patch[] = {
> + { 0x3380, 0xE4103066 },
> + { 0x3382, 0xE4103070 },
> + { 0x3384, 0xE4103078 },
> + { 0x3386, 0xE4103080 },
> + { 0x3388, 0xE410F080 },
> + { 0x338A, 0xE4143066 },
> + { 0x338C, 0xE4143070 },
> + { 0x338E, 0xE4143078 },
> + { 0x3390, 0xE4143080 },
> + { 0x3392, 0xE414F080 },
> + { 0x3394, 0xE4103078 },
> + { 0x3396, 0xE4103070 },
> + { 0x3398, 0xE4103066 },
> + { 0x339A, 0xE410F056 },
> + { 0x339C, 0xE4143078 },
> + { 0x339E, 0xE4143070 },
> + { 0x33A0, 0xE4143066 },
> + { 0x33A2, 0xE414F056 },
> +};
> +
> +int cs47l85_patch(struct madera *madera)
> +{
> + int ret = 0;
> + const struct reg_sequence *patch16;
> + const struct reg_sequence *patch32;
> + unsigned int num16, num32;
> +
> + switch (madera->rev) {
> + case 0:
> + case 1:
> + patch16 = cs47l85_reva_16_patch;
> + num16 = ARRAY_SIZE(cs47l85_reva_16_patch);
> +
> + patch32 = cs47l85_reva_32_patch;
> + num32 = ARRAY_SIZE(cs47l85_reva_32_patch);
> + break;
> + default:
> + patch16 = cs47l85_revc_16_patch;
> + num16 = ARRAY_SIZE(cs47l85_revc_16_patch);
> +
> + patch32 = cs47l85_revc_32_patch;
> + num32 = ARRAY_SIZE(cs47l85_revc_32_patch);
> + break;
> + }
> +
> + ret = regmap_register_patch(madera->regmap, patch16, num16);
> + if (ret < 0) {
> + dev_err(madera->dev,
> + "Error in applying 16-bit patch: %d\n", ret);
> + return ret;
> + }
> +
> + ret = regmap_register_patch(madera->regmap_32bit, patch32, num32);
> + if (ret < 0) {
> + dev_err(madera->dev,
> + "Error in applying 32-bit patch: %d\n", ret);
> + return ret;
> + }
> +
> + return 0;
> +}
> +EXPORT_SYMBOL_GPL(cs47l85_patch);
> +
> +static const struct reg_default cs47l85_reg_default[] = {
> + { 0x00000020, 0x0000 }, /* R32 (0x20) - Tone Generator 1 */
> + { 0x00000021, 0x1000 }, /* R33 (0x21) - Tone Generator 2 */
> + { 0x00000022, 0x0000 }, /* R34 (0x22) - Tone Generator 3 */
> + { 0x00000023, 0x1000 }, /* R35 (0x23) - Tone Generator 4 */
> + { 0x00000024, 0x0000 }, /* R36 (0x24) - Tone Generator 5 */
> + { 0x00000030, 0x0000 }, /* R48 (0x30) - PWM Drive 1 */
> + { 0x00000031, 0x0100 }, /* R49 (0x31) - PWM Drive 2 */
> + { 0x00000032, 0x0100 }, /* R50 (0x32) - PWM Drive 3 */
> + { 0x00000061, 0x01ff }, /* R97 (0x61) - Sample Rate Sequence Select 1 */
> + { 0x00000062, 0x01ff }, /* R98 (0x62) - Sample Rate Sequence Select 2 */
> + { 0x00000063, 0x01ff }, /* R99 (0x63) - Sample Rate Sequence Select 3 */
> + { 0x00000064, 0x01ff }, /* R100 (0x64) - Sample Rate Sequence Select 4 */
> + { 0x00000066, 0x01ff }, /* R102 (0x66) - Always On Triggers Sequence Select 1*/
> + { 0x00000067, 0x01ff }, /* R103 (0x67) - Always On Triggers Sequence Select 2*/
> + { 0x00000090, 0x0000 }, /* R144 (0x90) - Haptics Control 1 */
> + { 0x00000091, 0x7fff }, /* R145 (0x91) - Haptics Control 2 */
> + { 0x00000092, 0x0000 }, /* R146 (0x92) - Haptics phase 1 intensity */
> + { 0x00000093, 0x0000 }, /* R147 (0x93) - Haptics phase 1 duration */
> + { 0x00000094, 0x0000 }, /* R148 (0x94) - Haptics phase 2 intensity */
> + { 0x00000095, 0x0000 }, /* R149 (0x95) - Haptics phase 2 duration */
> + { 0x00000096, 0x0000 }, /* R150 (0x96) - Haptics phase 3 intensity */
> + { 0x00000097, 0x0000 }, /* R151 (0x97) - Haptics phase 3 duration */
> + { 0x000000a0, 0x0000 }, /* R160 (0xa0) - Comfort Noise Generator */
> + { 0x00000100, 0x0002 }, /* R256 (0x100) - Clock 32k 1 */
> + { 0x00000101, 0x0404 }, /* R257 (0x101) - System Clock 1 */
> + { 0x00000102, 0x0011 }, /* R258 (0x102) - Sample rate 1 */
> + { 0x00000103, 0x0011 }, /* R259 (0x103) - Sample rate 2 */
> + { 0x00000104, 0x0011 }, /* R260 (0x104) - Sample rate 3 */
> + { 0x00000112, 0x0305 }, /* R274 (0x112) - Async clock 1 */
> + { 0x00000113, 0x0011 }, /* R275 (0x113) - Async sample rate 1 */
> + { 0x00000114, 0x0011 }, /* R276 (0x114) - Async sample rate 2 */
> + { 0x00000120, 0x0305 }, /* R288 (0x120) - DSP Clock 1 */
> + { 0x00000122, 0x0000 }, /* R290 (0x122) - DSP Clock 2 */
> + { 0x00000149, 0x0000 }, /* R329 (0x149) - Output system clock */
> + { 0x0000014a, 0x0000 }, /* R330 (0x14a) - Output async clock */
> + { 0x00000152, 0x0000 }, /* R338 (0x152) - Rate Estimator 1 */
> + { 0x00000153, 0x0000 }, /* R339 (0x153) - Rate Estimator 2 */
> + { 0x00000154, 0x0000 }, /* R340 (0x154) - Rate Estimator 3 */
> + { 0x00000155, 0x0000 }, /* R341 (0x155) - Rate Estimator 4 */
> + { 0x00000156, 0x0000 }, /* R342 (0x156) - Rate Estimator 5 */
> + { 0x00000171, 0x0002 }, /* R369 (0x171) - FLL1 Control 1 */
> + { 0x00000172, 0x0008 }, /* R370 (0x172) - FLL1 Control 2 */
> + { 0x00000173, 0x0018 }, /* R371 (0x173) - FLL1 Control 3 */
> + { 0x00000174, 0x007d }, /* R372 (0x174) - FLL1 Control 4 */
> + { 0x00000175, 0x0000 }, /* R373 (0x175) - FLL1 Control 5 */
> + { 0x00000176, 0x0000 }, /* R374 (0x176) - FLL1 Control 6 */
> + { 0x00000177, 0x0281 }, /* R375 (0x177) - FLL1 Loop Filter Test 1 */
> + { 0x00000179, 0x0000 }, /* R377 (0x179) - FLL1 Control 7 */
> + { 0x00000181, 0x0000 }, /* R385 (0x181) - FLL1 Synchroniser 1 */
> + { 0x00000182, 0x0000 }, /* R386 (0x182) - FLL1 Synchroniser 2 */
> + { 0x00000183, 0x0000 }, /* R387 (0x183) - FLL1 Synchroniser 3 */
> + { 0x00000184, 0x0000 }, /* R388 (0x184) - FLL1 Synchroniser 4 */
> + { 0x00000185, 0x0000 }, /* R389 (0x185) - FLL1 Synchroniser 5 */
> + { 0x00000186, 0x0000 }, /* R390 (0x186) - FLL1 Synchroniser 6 */
> + { 0x00000187, 0x0001 }, /* R391 (0x187) - FLL1 Synchroniser 7 */
> + { 0x00000189, 0x0000 }, /* R393 (0x189) - FLL1 Spread Spectrum */
> + { 0x0000018a, 0x000c }, /* R394 (0x18a) - FLL1 GPIO Clock */
> + { 0x00000191, 0x0002 }, /* R401 (0x191) - FLL2 Control 1 */
> + { 0x00000192, 0x0008 }, /* R402 (0x192) - FLL2 Control 2 */
> + { 0x00000193, 0x0018 }, /* R403 (0x193) - FLL2 Control 3 */
> + { 0x00000194, 0x007d }, /* R404 (0x194) - FLL2 Control 4 */
> + { 0x00000195, 0x0000 }, /* R405 (0x195) - FLL2 Control 5 */
> + { 0x00000196, 0x0000 }, /* R406 (0x196) - FLL2 Control 6 */
> + { 0x00000197, 0x0281 }, /* R407 (0x197) - FLL2 Loop Filter Test 1 */
> + { 0x00000199, 0x0000 }, /* R409 (0x199) - FLL2 Control 7 */
> + { 0x000001a1, 0x0000 }, /* R417 (0x1a1) - FLL2 Synchroniser 1 */
> + { 0x000001a2, 0x0000 }, /* R418 (0x1a2) - FLL2 Synchroniser 2 */
> + { 0x000001a3, 0x0000 }, /* R419 (0x1a3) - FLL2 Synchroniser 3 */
> + { 0x000001a4, 0x0000 }, /* R420 (0x1a4) - FLL2 Synchroniser 4 */
> + { 0x000001a5, 0x0000 }, /* R421 (0x1a5) - FLL2 Synchroniser 5 */
> + { 0x000001a6, 0x0000 }, /* R422 (0x1a6) - FLL2 Synchroniser 6 */
> + { 0x000001a7, 0x0001 }, /* R423 (0x1a7) - FLL2 Synchroniser 7 */
> + { 0x000001a9, 0x0000 }, /* R425 (0x1a9) - FLL2 Spread Spectrum */
> + { 0x000001aa, 0x000c }, /* R426 (0x1aa) - FLL2 GPIO Clock */
> + { 0x000001b1, 0x0002 }, /* R433 (0x1b1) - FLL3 Control 1 */
> + { 0x000001b2, 0x0008 }, /* R434 (0x1b2) - FLL3 Control 2 */
> + { 0x000001b3, 0x0018 }, /* R435 (0x1b3) - FLL3 Control 3 */
> + { 0x000001b4, 0x007d }, /* R436 (0x1b4) - FLL3 Control 4 */
> + { 0x000001b5, 0x0000 }, /* R437 (0x1b5) - FLL3 Control 5 */
> + { 0x000001b6, 0x0000 }, /* R438 (0x1b6) - FLL3 Control 6 */
> + { 0x000001b7, 0x0281 }, /* R439 (0x1b7) - FLL3 Loop Filter Test 1 */
> + { 0x000001b9, 0x0000 }, /* R441 (0x1b9) - FLL3 Control 7 */
> + { 0x000001c1, 0x0000 }, /* R449 (0x1c1) - FLL3 Synchroniser 1 */
> + { 0x000001c2, 0x0000 }, /* R450 (0x1c2) - FLL3 Synchroniser 2 */
> + { 0x000001c3, 0x0000 }, /* R451 (0x1c3) - FLL3 Synchroniser 3 */
> + { 0x000001c4, 0x0000 }, /* R452 (0x1c4) - FLL3 Synchroniser 4 */
> + { 0x000001c5, 0x0000 }, /* R453 (0x1c5) - FLL3 Synchroniser 5 */
> + { 0x000001c6, 0x0000 }, /* R454 (0x1c6) - FLL3 Synchroniser 6 */
> + { 0x000001c7, 0x0001 }, /* R455 (0x1c7) - FLL3 Synchroniser 7 */
> + { 0x000001c9, 0x0000 }, /* R457 (0x1c9) - FLL3 Spread Spectrum */
> + { 0x000001ca, 0x000C }, /* R458 (0x1ca) - FLL3 GPIO Clock */
> + { 0x00000200, 0x0006 }, /* R512 (0x200) - Mic Charge Pump 1 */
> + { 0x0000020b, 0x0400 }, /* R523 (0x20B) - HP Charge Pump 8 */
> + { 0x00000210, 0x0184 }, /* R528 (0x210) - LDO1 Control 1 */
> + { 0x00000213, 0x03e4 }, /* R531 (0x213) - LDO2 Control 1 */
> + { 0x00000218, 0x00e6 }, /* R536 (0x218) - Mic Bias Ctrl 1 */
> + { 0x00000219, 0x00e6 }, /* R537 (0x219) - Mic Bias Ctrl 2 */
> + { 0x0000021a, 0x00e6 }, /* R538 (0x21a) - Mic Bias Ctrl 3 */
> + { 0x0000021b, 0x00e6 }, /* R539 (0x21b) - Mic Bias Ctrl 4 */
> + { 0x0000027e, 0x0000 }, /* R638 (0x27e) - EDRE HP stereo control */
> + { 0x00000293, 0x0000 }, /* R659 (0x293) - Accessory Detect Mode 1 */
> + { 0x0000029b, 0x0000 }, /* R667 (0x29b) - Headphone Detect 1 */
> + { 0x000002a3, 0x1102 }, /* R675 (0x2a3) - Mic Detect Control 1 */
> + { 0x000002a4, 0x009f }, /* R676 (0x2a4) - Mic Detect Control 2 */
> + { 0x000002a6, 0x3737 }, /* R678 (0x2a6) - Mic Detect Level 1 */
> + { 0x000002a7, 0x2c37 }, /* R679 (0x2a7) - Mic Detect Level 2 */
> + { 0x000002a8, 0x1422 }, /* R680 (0x2a8) - Mic Detect Level 3 */
> + { 0x000002a9, 0x030a }, /* R681 (0x2a9) - Mic Detect Level 4 */
> + { 0x000002c6, 0x0010 }, /* R710 (0x2c6) - Mic Clamp control */
> + { 0x000002c8, 0x0000 }, /* R712 (0x2c8) - GP switch 1 */
> + { 0x000002d3, 0x0000 }, /* R723 (0x2d3) - Jack detect analogue */
> + { 0x00000300, 0x0000 }, /* R768 (0x300) - Input Enables */
> + { 0x00000308, 0x0000 }, /* R776 (0x308) - Input Rate */
> + { 0x00000309, 0x0022 }, /* R777 (0x309) - Input Volume Ramp */
> + { 0x0000030c, 0x0002 }, /* R780 (0x30c) - HPF Control */
> + { 0x00000310, 0x0080 }, /* R784 (0x310) - IN1L Control */
> + { 0x00000311, 0x0180 }, /* R785 (0x311) - ADC Digital Volume 1L */
> + { 0x00000312, 0x0500 }, /* R786 (0x312) - DMIC1L Control */
> + { 0x00000314, 0x0080 }, /* R788 (0x314) - IN1R Control */
> + { 0x00000315, 0x0180 }, /* R789 (0x315) - ADC Digital Volume 1R */
> + { 0x00000316, 0x0000 }, /* R790 (0x316) - DMIC1R Control */
> + { 0x00000318, 0x0080 }, /* R792 (0x318) - IN2L Control */
> + { 0x00000319, 0x0180 }, /* R793 (0x319) - ADC Digital Volume 2L */
> + { 0x0000031a, 0x0500 }, /* R794 (0x31a) - DMIC2L Control */
> + { 0x0000031c, 0x0080 }, /* R796 (0x31c) - IN2R Control */
> + { 0x0000031d, 0x0180 }, /* R797 (0x31d) - ADC Digital Volume 2R */
> + { 0x0000031e, 0x0000 }, /* R798 (0x31e) - DMIC2R Control */
> + { 0x00000320, 0x0080 }, /* R800 (0x320) - IN3L Control */
> + { 0x00000321, 0x0180 }, /* R801 (0x321) - ADC Digital Volume 3L */
> + { 0x00000322, 0x0500 }, /* R802 (0x322) - DMIC3L Control */
> + { 0x00000324, 0x0080 }, /* R804 (0x324) - IN3R Control */
> + { 0x00000325, 0x0180 }, /* R805 (0x325) - ADC Digital Volume 3R */
> + { 0x00000326, 0x0000 }, /* R806 (0x326) - DMIC3R Control */
> + { 0x00000328, 0x0000 }, /* R808 (0x328) - IN4 Control */
> + { 0x00000329, 0x0180 }, /* R809 (0x329) - ADC Digital Volume 4L */
> + { 0x0000032a, 0x0500 }, /* R810 (0x32a) - DMIC4L Control */
> + { 0x0000032c, 0x0000 }, /* R812 (0x32c) - IN4R Control */
> + { 0x0000032d, 0x0180 }, /* R813 (0x32d) - ADC Digital Volume 4R */
> + { 0x0000032e, 0x0000 }, /* R814 (0x32e) - DMIC4R Control */
> + { 0x00000330, 0x0000 }, /* R816 (0x330) - IN5L Control */
> + { 0x00000331, 0x0180 }, /* R817 (0x331) - ADC Digital Volume 5L */
> + { 0x00000332, 0x0500 }, /* R818 (0x332) - DMIC5L Control */
> + { 0x00000334, 0x0000 }, /* R820 (0x334) - IN5R Control */
> + { 0x00000335, 0x0180 }, /* R821 (0x335) - ADC Digital Volume 5R */
> + { 0x00000336, 0x0000 }, /* R822 (0x336) - DMIC5R Control */
> + { 0x00000338, 0x0000 }, /* R824 (0x338) - IN6L Control */
> + { 0x00000339, 0x0180 }, /* R825 (0x339) - ADC Digital Volume 6L */
> + { 0x0000033a, 0x0500 }, /* R826 (0x33a) - DMIC6L Control */
> + { 0x0000033c, 0x0000 }, /* R828 (0x33c) - IN6R Control */
> + { 0x0000033d, 0x0180 }, /* R829 (0x33d) - ADC Digital Volume 6R */
> + { 0x0000033e, 0x0000 }, /* R830 (0x33e) - DMIC6R Control */
> + { 0x00000400, 0x0000 }, /* R1024 (0x400) - Output Enables 1 */
> + { 0x00000408, 0x0000 }, /* R1032 (0x408) - Output Rate 1 */
> + { 0x00000409, 0x0022 }, /* R1033 (0x409) - Output Volume Ramp */
> + { 0x00000410, 0x0080 }, /* R1040 (0x410) - Output Path Config 1L */
> + { 0x00000411, 0x0180 }, /* R1041 (0x411) - DAC Digital Volume 1L */
> + { 0x00000413, 0x0001 }, /* R1043 (0x413) - Noise Gate Select 1L */
> + { 0x00000414, 0x0080 }, /* R1044 (0x414) - Output Path Config 1R */
> + { 0x00000415, 0x0180 }, /* R1045 (0x415) - DAC Digital Volume 1R */
> + { 0x00000417, 0x0002 }, /* R1047 (0x417) - Noise Gate Select 1R */
> + { 0x00000418, 0x0080 }, /* R1048 (0x418) - Output Path Config 2L */
> + { 0x00000419, 0x0180 }, /* R1049 (0x419) - DAC Digital Volume 2L */
> + { 0x0000041b, 0x0004 }, /* R1051 (0x41b) - Noise Gate Select 2L */
> + { 0x0000041c, 0x0080 }, /* R1052 (0x41c) - Output Path Config 2R */
> + { 0x0000041d, 0x0180 }, /* R1053 (0x41d) - DAC Digital Volume 2R */
> + { 0x0000041f, 0x0008 }, /* R1055 (0x41f) - Noise Gate Select 2R */
> + { 0x00000420, 0x0080 }, /* R1056 (0x420) - Output Path Config 3L */
> + { 0x00000421, 0x0180 }, /* R1057 (0x421) - DAC Digital Volume 3L */
> + { 0x00000423, 0x0010 }, /* R1059 (0x423) - Noise Gate Select 3L */
> + { 0x00000424, 0x0080 }, /* R1060 (0x424) - Output Path Config 3R */
> + { 0x00000425, 0x0180 }, /* R1061 (0x425) - DAC Digital Volume 3R */
> + { 0x00000427, 0x0020 }, /* R1063 (0x427) - Noise Gate Select 3R */
> + { 0x00000428, 0x0000 }, /* R1064 (0x428) - Output Path Config 4L */
> + { 0x00000429, 0x0180 }, /* R1065 (0x429) - DAC Digital Volume 4L */
> + { 0x0000042b, 0x0040 }, /* R1067 (0x42b) - Noise Gate Select 4L */
> + { 0x0000042c, 0x0000 }, /* R1068 (0x42c) - Output Path Config 4R */
> + { 0x0000042d, 0x0180 }, /* R1069 (0x42d) - DAC Digital Volume 4R */
> + { 0x0000042f, 0x0080 }, /* R1071 (0x42f) - Noise Gate Select 4R */
> + { 0x00000430, 0x0000 }, /* R1072 (0x430) - Output Path Config 5L */
> + { 0x00000431, 0x0180 }, /* R1073 (0x431) - DAC Digital Volume 5L */
> + { 0x00000433, 0x0100 }, /* R1075 (0x433) - Noise Gate Select 5L */
> + { 0x00000434, 0x0000 }, /* R1076 (0x434) - Output Path Config 5R */
> + { 0x00000435, 0x0180 }, /* R1077 (0x435) - DAC Digital Volume 5R */
> + { 0x00000437, 0x0200 }, /* R1079 (0x437) - Noise Gate Select 5R */
> + { 0x00000438, 0x0000 }, /* R1080 (0x438) - Output Path Config 6L */
> + { 0x00000439, 0x0180 }, /* R1081 (0x439) - DAC Digital Volume 6L */
> + { 0x0000043b, 0x0400 }, /* R1083 (0x43b) - Noise Gate Select 6L */
> + { 0x0000043c, 0x0000 }, /* R1084 (0x43c) - Output Path Config 6R */
> + { 0x0000043d, 0x0180 }, /* R1085 (0x43d) - DAC Digital Volume 6R */
> + { 0x0000043f, 0x0800 }, /* R1087 (0x43f) - Noise Gate Select 6R */
> + { 0x00000440, 0x003f }, /* R1088 (0x440) - DRE Enable */
> + { 0x00000448, 0x003f }, /* R1096 (0x448) - EDRE Enable */
> + { 0x0000044a, 0x0000 }, /* R1098 (0x44a) - EDRE Manual */
> + { 0x00000450, 0x0000 }, /* R1104 (0x450) - DAC AEC Control 1 */
> + { 0x00000451, 0x0000 }, /* R1105 (0x451) - DAC AEC Control 2 */
> + { 0x00000458, 0x0000 }, /* R1112 (0x458) - Noise Gate Control */
> + { 0x00000490, 0x0069 }, /* R1168 (0x490) - PDM SPK1 CTRL 1 */
> + { 0x00000491, 0x0000 }, /* R1169 (0x491) - PDM SPK1 CTRL 2 */
> + { 0x00000492, 0x0069 }, /* R1170 (0x492) - PDM SPK2 CTRL 1 */
> + { 0x00000493, 0x0000 }, /* R1171 (0x493) - PDM SPK2 CTRL 2 */
> + { 0x000004a0, 0x3210 }, /* R1184 (0x4a0) - HP1 Short Circuit Ctrl */
> + { 0x000004a1, 0x3200 }, /* R1185 (0x4a1) - HP2 Short Circuit Ctrl */
> + { 0x000004a2, 0x3200 }, /* R1186 (0x4a2) - HP3 Short Circuit Ctrl */
> + { 0x000004a8, 0x7020 }, /* R1192 (0x4a8) - HP Test Ctrl 5 */
> + { 0x000004a9, 0x7020 }, /* R1193 (0x4a9) - HP Test Ctrl 6 */
> + { 0x00000500, 0x000c }, /* R1280 (0x500) - AIF1 BCLK Ctrl */
> + { 0x00000501, 0x0000 }, /* R1281 (0x501) - AIF1 Tx Pin Ctrl */
> + { 0x00000502, 0x0000 }, /* R1282 (0x502) - AIF1 Rx Pin Ctrl */
> + { 0x00000503, 0x0000 }, /* R1283 (0x503) - AIF1 Rate Ctrl */
> + { 0x00000504, 0x0000 }, /* R1284 (0x504) - AIF1 Format */
> + { 0x00000506, 0x0040 }, /* R1286 (0x506) - AIF1 Rx BCLK Rate */
> + { 0x00000507, 0x1818 }, /* R1287 (0x507) - AIF1 Frame Ctrl 1 */
> + { 0x00000508, 0x1818 }, /* R1288 (0x508) - AIF1 Frame Ctrl 2 */
> + { 0x00000509, 0x0000 }, /* R1289 (0x509) - AIF1 Frame Ctrl 3 */
> + { 0x0000050a, 0x0001 }, /* R1290 (0x50a) - AIF1 Frame Ctrl 4 */
> + { 0x0000050b, 0x0002 }, /* R1291 (0x50b) - AIF1 Frame Ctrl 5 */
> + { 0x0000050c, 0x0003 }, /* R1292 (0x50c) - AIF1 Frame Ctrl 6 */
> + { 0x0000050d, 0x0004 }, /* R1293 (0x50d) - AIF1 Frame Ctrl 7 */
> + { 0x0000050e, 0x0005 }, /* R1294 (0x50e) - AIF1 Frame Ctrl 8 */
> + { 0x0000050f, 0x0006 }, /* R1295 (0x50f) - AIF1 Frame Ctrl 9 */
> + { 0x00000510, 0x0007 }, /* R1296 (0x510) - AIF1 Frame Ctrl 10 */
> + { 0x00000511, 0x0000 }, /* R1297 (0x511) - AIF1 Frame Ctrl 11 */
> + { 0x00000512, 0x0001 }, /* R1298 (0x512) - AIF1 Frame Ctrl 12 */
> + { 0x00000513, 0x0002 }, /* R1299 (0x513) - AIF1 Frame Ctrl 13 */
> + { 0x00000514, 0x0003 }, /* R1300 (0x514) - AIF1 Frame Ctrl 14 */
> + { 0x00000515, 0x0004 }, /* R1301 (0x515) - AIF1 Frame Ctrl 15 */
> + { 0x00000516, 0x0005 }, /* R1302 (0x516) - AIF1 Frame Ctrl 16 */
> + { 0x00000517, 0x0006 }, /* R1303 (0x517) - AIF1 Frame Ctrl 17 */
> + { 0x00000518, 0x0007 }, /* R1304 (0x518) - AIF1 Frame Ctrl 18 */
> + { 0x00000519, 0x0000 }, /* R1305 (0x519) - AIF1 Tx Enables */
> + { 0x0000051a, 0x0000 }, /* R1306 (0x51a) - AIF1 Rx Enables */
> + { 0x00000540, 0x000c }, /* R1344 (0x540) - AIF2 BCLK Ctrl */
> + { 0x00000541, 0x0000 }, /* R1345 (0x541) - AIF2 Tx Pin Ctrl */
> + { 0x00000542, 0x0000 }, /* R1346 (0x542) - AIF2 Rx Pin Ctrl */
> + { 0x00000543, 0x0000 }, /* R1347 (0x543) - AIF2 Rate Ctrl */
> + { 0x00000544, 0x0000 }, /* R1348 (0x544) - AIF2 Format */
> + { 0x00000546, 0x0040 }, /* R1350 (0x546) - AIF2 Rx BCLK Rate */
> + { 0x00000547, 0x1818 }, /* R1351 (0x547) - AIF2 Frame Ctrl 1 */
> + { 0x00000548, 0x1818 }, /* R1352 (0x548) - AIF2 Frame Ctrl 2 */
> + { 0x00000549, 0x0000 }, /* R1353 (0x549) - AIF2 Frame Ctrl 3 */
> + { 0x0000054a, 0x0001 }, /* R1354 (0x54a) - AIF2 Frame Ctrl 4 */
> + { 0x0000054b, 0x0002 }, /* R1355 (0x54b) - AIF2 Frame Ctrl 5 */
> + { 0x0000054c, 0x0003 }, /* R1356 (0x54c) - AIF2 Frame Ctrl 6 */
> + { 0x0000054d, 0x0004 }, /* R1357 (0x54d) - AIF2 Frame Ctrl 7 */
> + { 0x0000054e, 0x0005 }, /* R1358 (0x54e) - AIF2 Frame Ctrl 8 */
> + { 0x0000054f, 0x0006 }, /* R1359 (0x54f) - AIF2 Frame Ctrl 9 */
> + { 0x00000550, 0x0007 }, /* R1360 (0x550) - AIF2 Frame Ctrl 10 */
> + { 0x00000551, 0x0000 }, /* R1361 (0x551) - AIF2 Frame Ctrl 11 */
> + { 0x00000552, 0x0001 }, /* R1362 (0x552) - AIF2 Frame Ctrl 12 */
> + { 0x00000553, 0x0002 }, /* R1363 (0x553) - AIF2 Frame Ctrl 13 */
> + { 0x00000554, 0x0003 }, /* R1364 (0x554) - AIF2 Frame Ctrl 14 */
> + { 0x00000555, 0x0004 }, /* R1365 (0x555) - AIF2 Frame Ctrl 15 */
> + { 0x00000556, 0x0005 }, /* R1366 (0x556) - AIF2 Frame Ctrl 16 */
> + { 0x00000557, 0x0006 }, /* R1367 (0x557) - AIF2 Frame Ctrl 17 */
> + { 0x00000558, 0x0007 }, /* R1368 (0x558) - AIF2 Frame Ctrl 18 */
> + { 0x00000559, 0x0000 }, /* R1369 (0x559) - AIF2 Tx Enables */
> + { 0x0000055a, 0x0000 }, /* R1370 (0x55a) - AIF2 Rx Enables */
> + { 0x00000580, 0x000c }, /* R1408 (0x580) - AIF3 BCLK Ctrl */
> + { 0x00000581, 0x0000 }, /* R1409 (0x581) - AIF3 Tx Pin Ctrl */
> + { 0x00000582, 0x0000 }, /* R1410 (0x582) - AIF3 Rx Pin Ctrl */
> + { 0x00000583, 0x0000 }, /* R1411 (0x583) - AIF3 Rate Ctrl */
> + { 0x00000584, 0x0000 }, /* R1412 (0x584) - AIF3 Format */
> + { 0x00000586, 0x0040 }, /* R1414 (0x586) - AIF3 Rx BCLK Rate */
> + { 0x00000587, 0x1818 }, /* R1415 (0x587) - AIF3 Frame Ctrl 1 */
> + { 0x00000588, 0x1818 }, /* R1416 (0x588) - AIF3 Frame Ctrl 2 */
> + { 0x00000589, 0x0000 }, /* R1417 (0x589) - AIF3 Frame Ctrl 3 */
> + { 0x0000058a, 0x0001 }, /* R1418 (0x58a) - AIF3 Frame Ctrl 4 */
> + { 0x00000591, 0x0000 }, /* R1425 (0x591) - AIF3 Frame Ctrl 11 */
> + { 0x00000592, 0x0001 }, /* R1426 (0x592) - AIF3 Frame Ctrl 12 */
> + { 0x00000599, 0x0000 }, /* R1433 (0x599) - AIF3 Tx Enables */
> + { 0x0000059a, 0x0000 }, /* R1434 (0x59a) - AIF3 Rx Enables */
> + { 0x000005a0, 0x000c }, /* R1440 (0x5a0) - AIF4 BCLK Ctrl */
> + { 0x000005a1, 0x0000 }, /* R1441 (0x5a1) - AIF4 Tx Pin Ctrl */
> + { 0x000005a2, 0x0000 }, /* R1442 (0x5a2) - AIF4 Rx Pin Ctrl */
> + { 0x000005a3, 0x0000 }, /* R1443 (0x5a3) - AIF4 Rate Ctrl */
> + { 0x000005a4, 0x0000 }, /* R1444 (0x5a4) - AIF4 Format */
> + { 0x000005a6, 0x0040 }, /* R1446 (0x5a6) - AIF4 Rx BCLK Rate */
> + { 0x000005a7, 0x1818 }, /* R1447 (0x5a7) - AIF4 Frame Ctrl 1 */
> + { 0x000005a8, 0x1818 }, /* R1448 (0x5a8) - AIF4 Frame Ctrl 2 */
> + { 0x000005a9, 0x0000 }, /* R1449 (0x5a9) - AIF4 Frame Ctrl 3 */
> + { 0x000005aa, 0x0001 }, /* R1450 (0x5aa) - AIF4 Frame Ctrl 4 */
> + { 0x000005b1, 0x0000 }, /* R1457 (0x5b1) - AIF4 Frame Ctrl 11 */
> + { 0x000005b2, 0x0001 }, /* R1458 (0x5b2) - AIF4 Frame Ctrl 12 */
> + { 0x000005b9, 0x0000 }, /* R1465 (0x5b9) - AIF4 Tx Enables */
> + { 0x000005ba, 0x0000 }, /* R1466 (0x5ba) - AIF4 Rx Enables */
> + { 0x000005c2, 0x0000 }, /* R1474 (0x5c2) - SPD1 TX Control */
> + { 0x000005e3, 0x0000 }, /* R1507 (0x5e3) - SLIMbus Framer Ref Gear */
> + { 0x000005e5, 0x0000 }, /* R1509 (0x5e5) - SLIMbus Rates 1 */
> + { 0x000005e6, 0x0000 }, /* R1510 (0x5e6) - SLIMbus Rates 2 */
> + { 0x000005e7, 0x0000 }, /* R1511 (0x5e7) - SLIMbus Rates 3 */
> + { 0x000005e8, 0x0000 }, /* R1512 (0x5e8) - SLIMbus Rates 4 */
> + { 0x000005e9, 0x0000 }, /* R1513 (0x5e9) - SLIMbus Rates 5 */
> + { 0x000005ea, 0x0000 }, /* R1514 (0x5ea) - SLIMbus Rates 6 */
> + { 0x000005eb, 0x0000 }, /* R1515 (0x5eb) - SLIMbus Rates 7 */
> + { 0x000005ec, 0x0000 }, /* R1516 (0x5ec) - SLIMbus Rates 8 */
> + { 0x000005f5, 0x0000 }, /* R1525 (0x5f5) - SLIMbus RX Channel Enable */
> + { 0x000005f6, 0x0000 }, /* R1526 (0x5F6) - SLIMbus TX Channel Enable */
> + { 0x00000640, 0x0000 }, /* R1600 (0x640) - PWM1MIX Input 1 Source */
> + { 0x00000641, 0x0080 }, /* R1601 (0x641) - PWM1MIX Input 1 Volume */
> + { 0x00000642, 0x0000 }, /* R1602 (0x642) - PWM1MIX Input 2 Source */
> + { 0x00000643, 0x0080 }, /* R1603 (0x643) - PWM1MIX Input 2 Volume */
> + { 0x00000644, 0x0000 }, /* R1604 (0x644) - PWM1MIX Input 3 Source */
> + { 0x00000645, 0x0080 }, /* R1605 (0x645) - PWM1MIX Input 3 Volume */
> + { 0x00000646, 0x0000 }, /* R1606 (0x646) - PWM1MIX Input 4 Source */
> + { 0x00000647, 0x0080 }, /* R1607 (0x647) - PWM1MIX Input 4 Volume */
> + { 0x00000648, 0x0000 }, /* R1608 (0x648) - PWM2MIX Input 1 Source */
> + { 0x00000649, 0x0080 }, /* R1609 (0x649) - PWM2MIX Input 1 Volume */
> + { 0x0000064a, 0x0000 }, /* R1610 (0x64a) - PWM2MIX Input 2 Source */
> + { 0x0000064b, 0x0080 }, /* R1611 (0x64b) - PWM2MIX Input 2 Volume */
> + { 0x0000064c, 0x0000 }, /* R1612 (0x64c) - PWM2MIX Input 3 Source */
> + { 0x0000064d, 0x0080 }, /* R1613 (0x64d) - PWM2MIX Input 3 Volume */
> + { 0x0000064e, 0x0000 }, /* R1614 (0x64e) - PWM2MIX Input 4 Source */
> + { 0x0000064f, 0x0080 }, /* R1615 (0x64f) - PWM2MIX Input 4 Volume */
> + { 0x00000680, 0x0000 }, /* R1664 (0x680) - OUT1LMIX Input 1 Source */
> + { 0x00000681, 0x0080 }, /* R1665 (0x681) - OUT1LMIX Input 1 Volume */
> + { 0x00000682, 0x0000 }, /* R1666 (0x682) - OUT1LMIX Input 2 Source */
> + { 0x00000683, 0x0080 }, /* R1667 (0x683) - OUT1LMIX Input 2 Volume */
> + { 0x00000684, 0x0000 }, /* R1668 (0x684) - OUT1LMIX Input 3 Source */
> + { 0x00000685, 0x0080 }, /* R1669 (0x685) - OUT1LMIX Input 3 Volume */
> + { 0x00000686, 0x0000 }, /* R1670 (0x686) - OUT1LMIX Input 4 Source */
> + { 0x00000687, 0x0080 }, /* R1671 (0x687) - OUT1LMIX Input 4 Volume */
> + { 0x00000688, 0x0000 }, /* R1672 (0x688) - OUT1RMIX Input 1 Source */
> + { 0x00000689, 0x0080 }, /* R1673 (0x689) - OUT1RMIX Input 1 Volume */
> + { 0x0000068a, 0x0000 }, /* R1674 (0x68a) - OUT1RMIX Input 2 Source */
> + { 0x0000068b, 0x0080 }, /* R1675 (0x68b) - OUT1RMIX Input 2 Volume */
> + { 0x0000068c, 0x0000 }, /* R1672 (0x68c) - OUT1RMIX Input 3 Source */
> + { 0x0000068d, 0x0080 }, /* R1673 (0x68d) - OUT1RMIX Input 3 Volume */
> + { 0x0000068e, 0x0000 }, /* R1674 (0x68e) - OUT1RMIX Input 4 Source */
> + { 0x0000068f, 0x0080 }, /* R1675 (0x68f) - OUT1RMIX Input 4 Volume */
> + { 0x00000690, 0x0000 }, /* R1680 (0x690) - OUT2LMIX Input 1 Source */
> + { 0x00000691, 0x0080 }, /* R1681 (0x691) - OUT2LMIX Input 1 Volume */
> + { 0x00000692, 0x0000 }, /* R1682 (0x692) - OUT2LMIX Input 2 Source */
> + { 0x00000693, 0x0080 }, /* R1683 (0x693) - OUT2LMIX Input 2 Volume */
> + { 0x00000694, 0x0000 }, /* R1684 (0x694) - OUT2LMIX Input 3 Source */
> + { 0x00000695, 0x0080 }, /* R1685 (0x695) - OUT2LMIX Input 3 Volume */
> + { 0x00000696, 0x0000 }, /* R1686 (0x696) - OUT2LMIX Input 4 Source */
> + { 0x00000697, 0x0080 }, /* R1687 (0x697) - OUT2LMIX Input 4 Volume */
> + { 0x00000698, 0x0000 }, /* R1688 (0x698) - OUT2RMIX Input 1 Source */
> + { 0x00000699, 0x0080 }, /* R1689 (0x699) - OUT2RMIX Input 1 Volume */
> + { 0x0000069a, 0x0000 }, /* R1690 (0x69a) - OUT2RMIX Input 2 Source */
> + { 0x0000069b, 0x0080 }, /* R1691 (0x69b) - OUT2RMIX Input 2 Volume */
> + { 0x0000069c, 0x0000 }, /* R1692 (0x69c) - OUT2RMIX Input 3 Source */
> + { 0x0000069d, 0x0080 }, /* R1693 (0x69d) - OUT2RMIX Input 3 Volume */
> + { 0x0000069e, 0x0000 }, /* R1694 (0x69e) - OUT2RMIX Input 4 Source */
> + { 0x0000069f, 0x0080 }, /* R1695 (0x69f) - OUT2RMIX Input 4 Volume */
> + { 0x000006a0, 0x0000 }, /* R1696 (0x6a0) - OUT3LMIX Input 1 Source */
> + { 0x000006a1, 0x0080 }, /* R1697 (0x6a1) - OUT3LMIX Input 1 Volume */
> + { 0x000006a2, 0x0000 }, /* R1698 (0x6a2) - OUT3LMIX Input 2 Source */
> + { 0x000006a3, 0x0080 }, /* R1699 (0x6a3) - OUT3LMIX Input 2 Volume */
> + { 0x000006a4, 0x0000 }, /* R1700 (0x6a4) - OUT3LMIX Input 3 Source */
> + { 0x000006a5, 0x0080 }, /* R1701 (0x6a5) - OUT3LMIX Input 3 Volume */
> + { 0x000006a6, 0x0000 }, /* R1702 (0x6a6) - OUT3LMIX Input 4 Source */
> + { 0x000006a7, 0x0080 }, /* R1703 (0x6a7) - OUT3LMIX Input 4 Volume */
> + { 0x000006a8, 0x0000 }, /* R1704 (0x6a8) - OUT3RMIX Input 1 Source */
> + { 0x000006a9, 0x0080 }, /* R1705 (0x6a9) - OUT3RMIX Input 1 Volume */
> + { 0x000006aa, 0x0000 }, /* R1706 (0x6aa) - OUT3RMIX Input 2 Source */
> + { 0x000006ab, 0x0080 }, /* R1707 (0x6ab) - OUT3RMIX Input 2 Volume */
> + { 0x000006ac, 0x0000 }, /* R1708 (0x6ac) - OUT3RMIX Input 3 Source */
> + { 0x000006ad, 0x0080 }, /* R1709 (0x6ad) - OUT3RMIX Input 3 Volume */
> + { 0x000006ae, 0x0000 }, /* R1710 (0x6ae) - OUT3RMIX Input 4 Source */
> + { 0x000006af, 0x0080 }, /* R1711 (0x6af) - OUT3RMIX Input 4 Volume */
> + { 0x000006b0, 0x0000 }, /* R1712 (0x6b0) - OUT4LMIX Input 1 Source */
> + { 0x000006b1, 0x0080 }, /* R1713 (0x6b1) - OUT4LMIX Input 1 Volume */
> + { 0x000006b2, 0x0000 }, /* R1714 (0x6b2) - OUT4LMIX Input 2 Source */
> + { 0x000006b3, 0x0080 }, /* R1715 (0x6b3) - OUT4LMIX Input 2 Volume */
> + { 0x000006b4, 0x0000 }, /* R1716 (0x6b4) - OUT4LMIX Input 3 Source */
> + { 0x000006b5, 0x0080 }, /* R1717 (0x6b5) - OUT4LMIX Input 3 Volume */
> + { 0x000006b6, 0x0000 }, /* R1718 (0x6b6) - OUT4LMIX Input 4 Source */
> + { 0x000006b7, 0x0080 }, /* R1719 (0x6b7) - OUT4LMIX Input 4 Volume */
> + { 0x000006b8, 0x0000 }, /* R1720 (0x6b8) - OUT4RMIX Input 1 Source */
> + { 0x000006b9, 0x0080 }, /* R1721 (0x6b9) - OUT4RMIX Input 1 Volume */
> + { 0x000006ba, 0x0000 }, /* R1722 (0x6ba) - OUT4RMIX Input 2 Source */
> + { 0x000006bb, 0x0080 }, /* R1723 (0x6bb) - OUT4RMIX Input 2 Volume */
> + { 0x000006bc, 0x0000 }, /* R1724 (0x6bc) - OUT4RMIX Input 3 Source */
> + { 0x000006bd, 0x0080 }, /* R1725 (0x6bd) - OUT4RMIX Input 3 Volume */
> + { 0x000006be, 0x0000 }, /* R1726 (0x6be) - OUT4RMIX Input 4 Source */
> + { 0x000006bf, 0x0080 }, /* R1727 (0x6bf) - OUT4RMIX Input 4 Volume */
> + { 0x000006c0, 0x0000 }, /* R1728 (0x6c0) - OUT5LMIX Input 1 Source */
> + { 0x000006c1, 0x0080 }, /* R1729 (0x6c1) - OUT5LMIX Input 1 Volume */
> + { 0x000006c2, 0x0000 }, /* R1730 (0x6c2) - OUT5LMIX Input 2 Source */
> + { 0x000006c3, 0x0080 }, /* R1731 (0x6c3) - OUT5LMIX Input 2 Volume */
> + { 0x000006c4, 0x0000 }, /* R1732 (0x6c4) - OUT5LMIX Input 3 Source */
> + { 0x000006c5, 0x0080 }, /* R1733 (0x6c5) - OUT5LMIX Input 3 Volume */
> + { 0x000006c6, 0x0000 }, /* R1734 (0x6c6) - OUT5LMIX Input 4 Source */
> + { 0x000006c7, 0x0080 }, /* R1735 (0x6c7) - OUT5LMIX Input 4 Volume */
> + { 0x000006c8, 0x0000 }, /* R1736 (0x6c8) - OUT5RMIX Input 1 Source */
> + { 0x000006c9, 0x0080 }, /* R1737 (0x6c9) - OUT5RMIX Input 1 Volume */
> + { 0x000006ca, 0x0000 }, /* R1738 (0x6ca) - OUT5RMIX Input 2 Source */
> + { 0x000006cb, 0x0080 }, /* R1739 (0x6cb) - OUT5RMIX Input 2 Volume */
> + { 0x000006cc, 0x0000 }, /* R1740 (0x6cc) - OUT5RMIX Input 3 Source */
> + { 0x000006cd, 0x0080 }, /* R1741 (0x6cd) - OUT5RMIX Input 3 Volume */
> + { 0x000006ce, 0x0000 }, /* R1742 (0x6ce) - OUT5RMIX Input 4 Source */
> + { 0x000006cf, 0x0080 }, /* R1743 (0x6cf) - OUT5RMIX Input 4 Volume */
> + { 0x000006d0, 0x0000 }, /* R1744 (0x6d0) - OUT6LMIX Input 1 Source */
> + { 0x000006d1, 0x0080 }, /* R1745 (0x6d1) - OUT6LMIX Input 1 Volume */
> + { 0x000006d2, 0x0000 }, /* R1746 (0x6d2) - OUT6LMIX Input 2 Source */
> + { 0x000006d3, 0x0080 }, /* R1747 (0x6d3) - OUT6LMIX Input 2 Volume */
> + { 0x000006d4, 0x0000 }, /* R1748 (0x6d4) - OUT6LMIX Input 3 Source */
> + { 0x000006d5, 0x0080 }, /* R1749 (0x6d5) - OUT6LMIX Input 3 Volume */
> + { 0x000006d6, 0x0000 }, /* R1750 (0x6d6) - OUT6LMIX Input 4 Source */
> + { 0x000006d7, 0x0080 }, /* R1751 (0x6d7) - OUT6LMIX Input 4 Volume */
> + { 0x000006d8, 0x0000 }, /* R1752 (0x6d8) - OUT6RMIX Input 1 Source */
> + { 0x000006d9, 0x0080 }, /* R1753 (0x6d9) - OUT6RMIX Input 1 Volume */
> + { 0x000006da, 0x0000 }, /* R1754 (0x6da) - OUT6RMIX Input 2 Source */
> + { 0x000006db, 0x0080 }, /* R1755 (0x6db) - OUT6RMIX Input 2 Volume */
> + { 0x000006dc, 0x0000 }, /* R1756 (0x6dc) - OUT6RMIX Input 3 Source */
> + { 0x000006dd, 0x0080 }, /* R1757 (0x6dd) - OUT6RMIX Input 3 Volume */
> + { 0x000006de, 0x0000 }, /* R1758 (0x6de) - OUT6RMIX Input 4 Source */
> + { 0x000006df, 0x0080 }, /* R1759 (0x6df) - OUT6RMIX Input 4 Volume */
> + { 0x00000700, 0x0000 }, /* R1792 (0x700) - AIF1TX1MIX Input 1 Source */
> + { 0x00000701, 0x0080 }, /* R1793 (0x701) - AIF1TX1MIX Input 1 Volume */
> + { 0x00000702, 0x0000 }, /* R1794 (0x702) - AIF1TX1MIX Input 2 Source */
> + { 0x00000703, 0x0080 }, /* R1795 (0x703) - AIF1TX1MIX Input 2 Volume */
> + { 0x00000704, 0x0000 }, /* R1796 (0x704) - AIF1TX1MIX Input 3 Source */
> + { 0x00000705, 0x0080 }, /* R1797 (0x705) - AIF1TX1MIX Input 3 Volume */
> + { 0x00000706, 0x0000 }, /* R1798 (0x706) - AIF1TX1MIX Input 4 Source */
> + { 0x00000707, 0x0080 }, /* R1799 (0x707) - AIF1TX1MIX Input 4 Volume */
> + { 0x00000708, 0x0000 }, /* R1800 (0x708) - AIF1TX2MIX Input 1 Source */
> + { 0x00000709, 0x0080 }, /* R1801 (0x709) - AIF1TX2MIX Input 1 Volume */
> + { 0x0000070a, 0x0000 }, /* R1802 (0x70a) - AIF1TX2MIX Input 2 Source */
> + { 0x0000070b, 0x0080 }, /* R1803 (0x70b) - AIF1TX2MIX Input 2 Volume */
> + { 0x0000070c, 0x0000 }, /* R1804 (0x70c) - AIF1TX2MIX Input 3 Source */
> + { 0x0000070d, 0x0080 }, /* R1805 (0x70d) - AIF1TX2MIX Input 3 Volume */
> + { 0x0000070e, 0x0000 }, /* R1806 (0x70e) - AIF1TX2MIX Input 4 Source */
> + { 0x0000070f, 0x0080 }, /* R1807 (0x70f) - AIF1TX2MIX Input 4 Volume */
> + { 0x00000710, 0x0000 }, /* R1808 (0x710) - AIF1TX3MIX Input 1 Source */
> + { 0x00000711, 0x0080 }, /* R1809 (0x711) - AIF1TX3MIX Input 1 Volume */
> + { 0x00000712, 0x0000 }, /* R1810 (0x712) - AIF1TX3MIX Input 2 Source */
> + { 0x00000713, 0x0080 }, /* R1811 (0x713) - AIF1TX3MIX Input 2 Volume */
> + { 0x00000714, 0x0000 }, /* R1812 (0x714) - AIF1TX3MIX Input 3 Source */
> + { 0x00000715, 0x0080 }, /* R1813 (0x715) - AIF1TX3MIX Input 3 Volume */
> + { 0x00000716, 0x0000 }, /* R1814 (0x716) - AIF1TX3MIX Input 4 Source */
> + { 0x00000717, 0x0080 }, /* R1815 (0x717) - AIF1TX3MIX Input 4 Volume */
> + { 0x00000718, 0x0000 }, /* R1816 (0x718) - AIF1TX4MIX Input 1 Source */
> + { 0x00000719, 0x0080 }, /* R1817 (0x719) - AIF1TX4MIX Input 1 Volume */
> + { 0x0000071a, 0x0000 }, /* R1818 (0x71a) - AIF1TX4MIX Input 2 Source */
> + { 0x0000071b, 0x0080 }, /* R1819 (0x71b) - AIF1TX4MIX Input 2 Volume */
> + { 0x0000071c, 0x0000 }, /* R1820 (0x71c) - AIF1TX4MIX Input 3 Source */
> + { 0x0000071d, 0x0080 }, /* R1821 (0x71d) - AIF1TX4MIX Input 3 Volume */
> + { 0x0000071e, 0x0000 }, /* R1822 (0x71e) - AIF1TX4MIX Input 4 Source */
> + { 0x0000071f, 0x0080 }, /* R1823 (0x71f) - AIF1TX4MIX Input 4 Volume */
> + { 0x00000720, 0x0000 }, /* R1824 (0x720) - AIF1TX5MIX Input 1 Source */
> + { 0x00000721, 0x0080 }, /* R1825 (0x721) - AIF1TX5MIX Input 1 Volume */
> + { 0x00000722, 0x0000 }, /* R1826 (0x722) - AIF1TX5MIX Input 2 Source */
> + { 0x00000723, 0x0080 }, /* R1827 (0x723) - AIF1TX5MIX Input 2 Volume */
> + { 0x00000724, 0x0000 }, /* R1828 (0x724) - AIF1TX5MIX Input 3 Source */
> + { 0x00000725, 0x0080 }, /* R1829 (0x725) - AIF1TX5MIX Input 3 Volume */
> + { 0x00000726, 0x0000 }, /* R1830 (0x726) - AIF1TX5MIX Input 4 Source */
> + { 0x00000727, 0x0080 }, /* R1831 (0x727) - AIF1TX5MIX Input 4 Volume */
> + { 0x00000728, 0x0000 }, /* R1832 (0x728) - AIF1TX6MIX Input 1 Source */
> + { 0x00000729, 0x0080 }, /* R1833 (0x729) - AIF1TX6MIX Input 1 Volume */
> + { 0x0000072a, 0x0000 }, /* R1834 (0x72a) - AIF1TX6MIX Input 2 Source */
> + { 0x0000072b, 0x0080 }, /* R1835 (0x72b) - AIF1TX6MIX Input 2 Volume */
> + { 0x0000072c, 0x0000 }, /* R1836 (0x72c) - AIF1TX6MIX Input 3 Source */
> + { 0x0000072d, 0x0080 }, /* R1837 (0x72d) - AIF1TX6MIX Input 3 Volume */
> + { 0x0000072e, 0x0000 }, /* R1838 (0x72e) - AIF1TX6MIX Input 4 Source */
> + { 0x0000072f, 0x0080 }, /* R1839 (0x72f) - AIF1TX6MIX Input 4 Volume */
> + { 0x00000730, 0x0000 }, /* R1840 (0x730) - AIF1TX7MIX Input 1 Source */
> + { 0x00000731, 0x0080 }, /* R1841 (0x731) - AIF1TX7MIX Input 1 Volume */
> + { 0x00000732, 0x0000 }, /* R1842 (0x732) - AIF1TX7MIX Input 2 Source */
> + { 0x00000733, 0x0080 }, /* R1843 (0x733) - AIF1TX7MIX Input 2 Volume */
> + { 0x00000734, 0x0000 }, /* R1844 (0x734) - AIF1TX7MIX Input 3 Source */
> + { 0x00000735, 0x0080 }, /* R1845 (0x735) - AIF1TX7MIX Input 3 Volume */
> + { 0x00000736, 0x0000 }, /* R1846 (0x736) - AIF1TX7MIX Input 4 Source */
> + { 0x00000737, 0x0080 }, /* R1847 (0x737) - AIF1TX7MIX Input 4 Volume */
> + { 0x00000738, 0x0000 }, /* R1848 (0x738) - AIF1TX8MIX Input 1 Source */
> + { 0x00000739, 0x0080 }, /* R1849 (0x739) - AIF1TX8MIX Input 1 Volume */
> + { 0x0000073a, 0x0000 }, /* R1850 (0x73a) - AIF1TX8MIX Input 2 Source */
> + { 0x0000073b, 0x0080 }, /* R1851 (0x73b) - AIF1TX8MIX Input 2 Volume */
> + { 0x0000073c, 0x0000 }, /* R1852 (0x73c) - AIF1TX8MIX Input 3 Source */
> + { 0x0000073d, 0x0080 }, /* R1853 (0x73d) - AIF1TX8MIX Input 3 Volume */
> + { 0x0000073e, 0x0000 }, /* R1854 (0x73e) - AIF1TX8MIX Input 4 Source */
> + { 0x0000073f, 0x0080 }, /* R1855 (0x73f) - AIF1TX8MIX Input 4 Volume */
> + { 0x00000740, 0x0000 }, /* R1856 (0x740) - AIF2TX1MIX Input 1 Source */
> + { 0x00000741, 0x0080 }, /* R1857 (0x741) - AIF2TX1MIX Input 1 Volume */
> + { 0x00000742, 0x0000 }, /* R1858 (0x742) - AIF2TX1MIX Input 2 Source */
> + { 0x00000743, 0x0080 }, /* R1859 (0x743) - AIF2TX1MIX Input 2 Volume */
> + { 0x00000744, 0x0000 }, /* R1860 (0x744) - AIF2TX1MIX Input 3 Source */
> + { 0x00000745, 0x0080 }, /* R1861 (0x745) - AIF2TX1MIX Input 3 Volume */
> + { 0x00000746, 0x0000 }, /* R1862 (0x746) - AIF2TX1MIX Input 4 Source */
> + { 0x00000747, 0x0080 }, /* R1863 (0x747) - AIF2TX1MIX Input 4 Volume */
> + { 0x00000748, 0x0000 }, /* R1864 (0x748) - AIF2TX2MIX Input 1 Source */
> + { 0x00000749, 0x0080 }, /* R1865 (0x749) - AIF2TX2MIX Input 1 Volume */
> + { 0x0000074a, 0x0000 }, /* R1866 (0x74a) - AIF2TX2MIX Input 2 Source */
> + { 0x0000074b, 0x0080 }, /* R1867 (0x74b) - AIF2TX2MIX Input 2 Volume */
> + { 0x0000074c, 0x0000 }, /* R1868 (0x74c) - AIF2TX2MIX Input 3 Source */
> + { 0x0000074d, 0x0080 }, /* R1869 (0x74d) - AIF2TX2MIX Input 3 Volume */
> + { 0x0000074e, 0x0000 }, /* R1870 (0x74e) - AIF2TX2MIX Input 4 Source */
> + { 0x0000074f, 0x0080 }, /* R1871 (0x74f) - AIF2TX2MIX Input 4 Volume */
> + { 0x00000750, 0x0000 }, /* R1872 (0x750) - AIF2TX3MIX Input 1 Source */
> + { 0x00000751, 0x0080 }, /* R1873 (0x751) - AIF2TX3MIX Input 1 Volume */
> + { 0x00000752, 0x0000 }, /* R1874 (0x752) - AIF2TX3MIX Input 2 Source */
> + { 0x00000753, 0x0080 }, /* R1875 (0x753) - AIF2TX3MIX Input 2 Volume */
> + { 0x00000754, 0x0000 }, /* R1876 (0x754) - AIF2TX3MIX Input 3 Source */
> + { 0x00000755, 0x0080 }, /* R1877 (0x755) - AIF2TX3MIX Input 3 Volume */
> + { 0x00000756, 0x0000 }, /* R1878 (0x756) - AIF2TX3MIX Input 4 Source */
> + { 0x00000757, 0x0080 }, /* R1879 (0x757) - AIF2TX3MIX Input 4 Volume */
> + { 0x00000758, 0x0000 }, /* R1880 (0x758) - AIF2TX4MIX Input 1 Source */
> + { 0x00000759, 0x0080 }, /* R1881 (0x759) - AIF2TX4MIX Input 1 Volume */
> + { 0x0000075a, 0x0000 }, /* R1882 (0x75a) - AIF2TX4MIX Input 2 Source */
> + { 0x0000075b, 0x0080 }, /* R1883 (0x75b) - AIF2TX4MIX Input 2 Volume */
> + { 0x0000075c, 0x0000 }, /* R1884 (0x75c) - AIF2TX4MIX Input 3 Source */
> + { 0x0000075d, 0x0080 }, /* R1885 (0x75d) - AIF2TX4MIX Input 3 Volume */
> + { 0x0000075e, 0x0000 }, /* R1886 (0x75e) - AIF2TX4MIX Input 4 Source */
> + { 0x0000075f, 0x0080 }, /* R1887 (0x75f) - AIF2TX4MIX Input 4 Volume */
> + { 0x00000760, 0x0000 }, /* R1888 (0x760) - AIF2TX5MIX Input 1 Source */
> + { 0x00000761, 0x0080 }, /* R1889 (0x761) - AIF2TX5MIX Input 1 Volume */
> + { 0x00000762, 0x0000 }, /* R1890 (0x762) - AIF2TX5MIX Input 2 Source */
> + { 0x00000763, 0x0080 }, /* R1891 (0x763) - AIF2TX5MIX Input 2 Volume */
> + { 0x00000764, 0x0000 }, /* R1892 (0x764) - AIF2TX5MIX Input 3 Source */
> + { 0x00000765, 0x0080 }, /* R1893 (0x765) - AIF2TX5MIX Input 3 Volume */
> + { 0x00000766, 0x0000 }, /* R1894 (0x766) - AIF2TX5MIX Input 4 Source */
> + { 0x00000767, 0x0080 }, /* R1895 (0x767) - AIF2TX5MIX Input 4 Volume */
> + { 0x00000768, 0x0000 }, /* R1896 (0x768) - AIF2TX6MIX Input 1 Source */
> + { 0x00000769, 0x0080 }, /* R1897 (0x769) - AIF2TX6MIX Input 1 Volume */
> + { 0x0000076a, 0x0000 }, /* R1898 (0x76a) - AIF2TX6MIX Input 2 Source */
> + { 0x0000076b, 0x0080 }, /* R1899 (0x76b) - AIF2TX6MIX Input 2 Volume */
> + { 0x0000076c, 0x0000 }, /* R1900 (0x76c) - AIF2TX6MIX Input 3 Source */
> + { 0x0000076d, 0x0080 }, /* R1901 (0x76d) - AIF2TX6MIX Input 3 Volume */
> + { 0x0000076e, 0x0000 }, /* R1902 (0x76e) - AIF2TX6MIX Input 4 Source */
> + { 0x0000076f, 0x0080 }, /* R1903 (0x76f) - AIF2TX6MIX Input 4 Volume */
> + { 0x00000770, 0x0000 }, /* R1904 (0x770) - AIF2TX7MIX Input 1 Source */
> + { 0x00000771, 0x0080 }, /* R1905 (0x771) - AIF2TX7MIX Input 1 Volume */
> + { 0x00000772, 0x0000 }, /* R1906 (0x772) - AIF2TX7MIX Input 2 Source */
> + { 0x00000773, 0x0080 }, /* R1907 (0x773) - AIF2TX7MIX Input 2 Volume */
> + { 0x00000774, 0x0000 }, /* R1908 (0x774) - AIF2TX7MIX Input 3 Source */
> + { 0x00000775, 0x0080 }, /* R1909 (0x775) - AIF2TX7MIX Input 3 Volume */
> + { 0x00000776, 0x0000 }, /* R1910 (0x776) - AIF2TX7MIX Input 4 Source */
> + { 0x00000777, 0x0080 }, /* R1911 (0x777) - AIF2TX7MIX Input 4 Volume */
> + { 0x00000778, 0x0000 }, /* R1912 (0x778) - AIF2TX8MIX Input 1 Source */
> + { 0x00000779, 0x0080 }, /* R1913 (0x779) - AIF2TX8MIX Input 1 Volume */
> + { 0x0000077a, 0x0000 }, /* R1914 (0x77a) - AIF2TX8MIX Input 2 Source */
> + { 0x0000077b, 0x0080 }, /* R1915 (0x77b) - AIF2TX8MIX Input 2 Volume */
> + { 0x0000077c, 0x0000 }, /* R1916 (0x77c) - AIF2TX8MIX Input 3 Source */
> + { 0x0000077d, 0x0080 }, /* R1917 (0x77d) - AIF2TX8MIX Input 3 Volume */
> + { 0x0000077e, 0x0000 }, /* R1918 (0x77e) - AIF2TX8MIX Input 4 Source */
> + { 0x0000077f, 0x0080 }, /* R1919 (0x77f) - AIF2TX8MIX Input 4 Volume */
> + { 0x00000780, 0x0000 }, /* R1920 (0x780) - AIF3TX1MIX Input 1 Source */
> + { 0x00000781, 0x0080 }, /* R1921 (0x781) - AIF3TX1MIX Input 1 Volume */
> + { 0x00000782, 0x0000 }, /* R1922 (0x782) - AIF3TX1MIX Input 2 Source */
> + { 0x00000783, 0x0080 }, /* R1923 (0x783) - AIF3TX1MIX Input 2 Volume */
> + { 0x00000784, 0x0000 }, /* R1924 (0x784) - AIF3TX1MIX Input 3 Source */
> + { 0x00000785, 0x0080 }, /* R1925 (0x785) - AIF3TX1MIX Input 3 Volume */
> + { 0x00000786, 0x0000 }, /* R1926 (0x786) - AIF3TX1MIX Input 4 Source */
> + { 0x00000787, 0x0080 }, /* R1927 (0x787) - AIF3TX1MIX Input 4 Volume */
> + { 0x00000788, 0x0000 }, /* R1928 (0x788) - AIF3TX2MIX Input 1 Source */
> + { 0x00000789, 0x0080 }, /* R1929 (0x789) - AIF3TX2MIX Input 1 Volume */
> + { 0x0000078a, 0x0000 }, /* R1930 (0x78a) - AIF3TX2MIX Input 2 Source */
> + { 0x0000078b, 0x0080 }, /* R1931 (0x78b) - AIF3TX2MIX Input 2 Volume */
> + { 0x0000078c, 0x0000 }, /* R1932 (0x78c) - AIF3TX2MIX Input 3 Source */
> + { 0x0000078d, 0x0080 }, /* R1933 (0x78d) - AIF3TX2MIX Input 3 Volume */
> + { 0x0000078e, 0x0000 }, /* R1934 (0x78e) - AIF3TX2MIX Input 4 Source */
> + { 0x0000078f, 0x0080 }, /* R1935 (0x78f) - AIF3TX2MIX Input 4 Volume */
> + { 0x000007a0, 0x0000 }, /* R1952 (0x7a0) - AIF4TX1MIX Input 1 Source */
> + { 0x000007a1, 0x0080 }, /* R1953 (0x7a1) - AIF4TX1MIX Input 1 Volume */
> + { 0x000007a2, 0x0000 }, /* R1954 (0x7a2) - AIF4TX1MIX Input 2 Source */
> + { 0x000007a3, 0x0080 }, /* R1955 (0x7a3) - AIF4TX1MIX Input 2 Volume */
> + { 0x000007a4, 0x0000 }, /* R1956 (0x7a4) - AIF4TX1MIX Input 3 Source */
> + { 0x000007a5, 0x0080 }, /* R1957 (0x7a5) - AIF4TX1MIX Input 3 Volume */
> + { 0x000007a6, 0x0000 }, /* R1958 (0x7a6) - AIF4TX1MIX Input 4 Source */
> + { 0x000007a7, 0x0080 }, /* R1959 (0x7a7) - AIF4TX1MIX Input 4 Volume */
> + { 0x000007a8, 0x0000 }, /* R1960 (0x7a8) - AIF4TX2MIX Input 1 Source */
> + { 0x000007a9, 0x0080 }, /* R1961 (0x7a9) - AIF4TX2MIX Input 1 Volume */
> + { 0x000007aa, 0x0000 }, /* R1962 (0x7aa) - AIF4TX2MIX Input 2 Source */
> + { 0x000007ab, 0x0080 }, /* R1963 (0x7ab) - AIF4TX2MIX Input 2 Volume */
> + { 0x000007ac, 0x0000 }, /* R1964 (0x7ac) - AIF4TX2MIX Input 3 Source */
> + { 0x000007ad, 0x0080 }, /* R1965 (0x7ad) - AIF4TX2MIX Input 3 Volume */
> + { 0x000007ae, 0x0000 }, /* R1966 (0x7ae) - AIF4TX2MIX Input 4 Source */
> + { 0x000007af, 0x0080 }, /* R1967 (0x7af) - AIF4TX2MIX Input 4 Volume */
> + { 0x000007c0, 0x0000 }, /* R1984 (0x7c0) - SLIMTX1MIX Input 1 Source */
> + { 0x000007c1, 0x0080 }, /* R1985 (0x7c1) - SLIMTX1MIX Input 1 Volume */
> + { 0x000007c2, 0x0000 }, /* R1986 (0x7c2) - SLIMTX1MIX Input 2 Source */
> + { 0x000007c3, 0x0080 }, /* R1987 (0x7c3) - SLIMTX1MIX Input 2 Volume */
> + { 0x000007c4, 0x0000 }, /* R1988 (0x7c4) - SLIMTX1MIX Input 3 Source */
> + { 0x000007c5, 0x0080 }, /* R1989 (0x7c5) - SLIMTX1MIX Input 3 Volume */
> + { 0x000007c6, 0x0000 }, /* R1990 (0x7c6) - SLIMTX1MIX Input 4 Source */
> + { 0x000007c7, 0x0080 }, /* R1991 (0x7c7) - SLIMTX1MIX Input 4 Volume */
> + { 0x000007c8, 0x0000 }, /* R1992 (0x7c8) - SLIMTX2MIX Input 1 Source */
> + { 0x000007c9, 0x0080 }, /* R1993 (0x7c9) - SLIMTX2MIX Input 1 Volume */
> + { 0x000007ca, 0x0000 }, /* R1994 (0x7ca) - SLIMTX2MIX Input 2 Source */
> + { 0x000007cb, 0x0080 }, /* R1995 (0x7cb) - SLIMTX2MIX Input 2 Volume */
> + { 0x000007cc, 0x0000 }, /* R1996 (0x7cc) - SLIMTX2MIX Input 3 Source */
> + { 0x000007cd, 0x0080 }, /* R1997 (0x7cd) - SLIMTX2MIX Input 3 Volume */
> + { 0x000007ce, 0x0000 }, /* R1998 (0x7ce) - SLIMTX2MIX Input 4 Source */
> + { 0x000007cf, 0x0080 }, /* R1999 (0x7cf) - SLIMTX2MIX Input 4 Volume */
> + { 0x000007d0, 0x0000 }, /* R2000 (0x7d0) - SLIMTX3MIX Input 1 Source */
> + { 0x000007d1, 0x0080 }, /* R2001 (0x7d1) - SLIMTX3MIX Input 1 Volume */
> + { 0x000007d2, 0x0000 }, /* R2002 (0x7d2) - SLIMTX3MIX Input 2 Source */
> + { 0x000007d3, 0x0080 }, /* R2003 (0x7d3) - SLIMTX3MIX Input 2 Volume */
> + { 0x000007d4, 0x0000 }, /* R2004 (0x7d4) - SLIMTX3MIX Input 3 Source */
> + { 0x000007d5, 0x0080 }, /* R2005 (0x7d5) - SLIMTX3MIX Input 3 Volume */
> + { 0x000007d6, 0x0000 }, /* R2006 (0x7d6) - SLIMTX3MIX Input 4 Source */
> + { 0x000007d7, 0x0080 }, /* R2007 (0x7d7) - SLIMTX3MIX Input 4 Volume */
> + { 0x000007d8, 0x0000 }, /* R2008 (0x7d8) - SLIMTX4MIX Input 1 Source */
> + { 0x000007d9, 0x0080 }, /* R2009 (0x7d9) - SLIMTX4MIX Input 1 Volume */
> + { 0x000007da, 0x0000 }, /* R2010 (0x7da) - SLIMTX4MIX Input 2 Source */
> + { 0x000007db, 0x0080 }, /* R2011 (0x7db) - SLIMTX4MIX Input 2 Volume */
> + { 0x000007dc, 0x0000 }, /* R2012 (0x7dc) - SLIMTX4MIX Input 3 Source */
> + { 0x000007dd, 0x0080 }, /* R2013 (0x7dd) - SLIMTX4MIX Input 3 Volume */
> + { 0x000007de, 0x0000 }, /* R2014 (0x7de) - SLIMTX4MIX Input 4 Source */
> + { 0x000007df, 0x0080 }, /* R2015 (0x7df) - SLIMTX4MIX Input 4 Volume */
> + { 0x000007e0, 0x0000 }, /* R2016 (0x7e0) - SLIMTX5MIX Input 1 Source */
> + { 0x000007e1, 0x0080 }, /* R2017 (0x7e1) - SLIMTX5MIX Input 1 Volume */
> + { 0x000007e2, 0x0000 }, /* R2018 (0x7e2) - SLIMTX5MIX Input 2 Source */
> + { 0x000007e3, 0x0080 }, /* R2019 (0x7e3) - SLIMTX5MIX Input 2 Volume */
> + { 0x000007e4, 0x0000 }, /* R2020 (0x7e4) - SLIMTX5MIX Input 3 Source */
> + { 0x000007e5, 0x0080 }, /* R2021 (0x7e5) - SLIMTX5MIX Input 3 Volume */
> + { 0x000007e6, 0x0000 }, /* R2022 (0x7e6) - SLIMTX5MIX Input 4 Source */
> + { 0x000007e7, 0x0080 }, /* R2023 (0x7e7) - SLIMTX5MIX Input 4 Volume */
> + { 0x000007e8, 0x0000 }, /* R2024 (0x7e8) - SLIMTX6MIX Input 1 Source */
> + { 0x000007e9, 0x0080 }, /* R2025 (0x7e9) - SLIMTX6MIX Input 1 Volume */
> + { 0x000007ea, 0x0000 }, /* R2026 (0x7ea) - SLIMTX6MIX Input 2 Source */
> + { 0x000007eb, 0x0080 }, /* R2027 (0x7eb) - SLIMTX6MIX Input 2 Volume */
> + { 0x000007ec, 0x0000 }, /* R2028 (0x7ec) - SLIMTX6MIX Input 3 Source */
> + { 0x000007ed, 0x0080 }, /* R2029 (0x7ed) - SLIMTX6MIX Input 3 Volume */
> + { 0x000007ee, 0x0000 }, /* R2030 (0x7ee) - SLIMTX6MIX Input 4 Source */
> + { 0x000007ef, 0x0080 }, /* R2031 (0x7ef) - SLIMTX6MIX Input 4 Volume */
> + { 0x000007f0, 0x0000 }, /* R2032 (0x7f0) - SLIMTX7MIX Input 1 Source */
> + { 0x000007f1, 0x0080 }, /* R2033 (0x7f1) - SLIMTX7MIX Input 1 Volume */
> + { 0x000007f2, 0x0000 }, /* R2034 (0x7f2) - SLIMTX7MIX Input 2 Source */
> + { 0x000007f3, 0x0080 }, /* R2035 (0x7f3) - SLIMTX7MIX Input 2 Volume */
> + { 0x000007f4, 0x0000 }, /* R2036 (0x7f4) - SLIMTX7MIX Input 3 Source */
> + { 0x000007f5, 0x0080 }, /* R2037 (0x7f5) - SLIMTX7MIX Input 3 Volume */
> + { 0x000007f6, 0x0000 }, /* R2038 (0x7f6) - SLIMTX7MIX Input 4 Source */
> + { 0x000007f7, 0x0080 }, /* R2039 (0x7f7) - SLIMTX7MIX Input 4 Volume */
> + { 0x000007f8, 0x0000 }, /* R2040 (0x7f8) - SLIMTX8MIX Input 1 Source */
> + { 0x000007f9, 0x0080 }, /* R2041 (0x7f9) - SLIMTX8MIX Input 1 Volume */
> + { 0x000007fa, 0x0000 }, /* R2042 (0x7fa) - SLIMTX8MIX Input 2 Source */
> + { 0x000007fb, 0x0080 }, /* R2043 (0x7fb) - SLIMTX8MIX Input 2 Volume */
> + { 0x000007fc, 0x0000 }, /* R2044 (0x7fc) - SLIMTX8MIX Input 3 Source */
> + { 0x000007fd, 0x0080 }, /* R2045 (0x7fd) - SLIMTX8MIX Input 3 Volume */
> + { 0x000007fe, 0x0000 }, /* R2046 (0x7fe) - SLIMTX8MIX Input 4 Source */
> + { 0x000007ff, 0x0080 }, /* R2047 (0x7ff) - SLIMTX8MIX Input 4 Volume */
> + { 0x00000800, 0x0000 }, /* R2048 (0x800) - SPDIF1TX1MIX Input 1 Source */
> + { 0x00000801, 0x0080 }, /* R2049 (0x801) - SPDIF1TX1MIX Input 1 Volume */
> + { 0x00000808, 0x0000 }, /* R2056 (0x808) - SPDIF1TX2MIX Input 1 Source */
> + { 0x00000809, 0x0080 }, /* R2057 (0x809) - SPDIF1TX2MIX Input 1 Volume */
> + { 0x00000880, 0x0000 }, /* R2176 (0x880) - EQ1MIX Input 1 Source */
> + { 0x00000881, 0x0080 }, /* R2177 (0x881) - EQ1MIX Input 1 Volume */
> + { 0x00000882, 0x0000 }, /* R2178 (0x882) - EQ1MIX Input 2 Source */
> + { 0x00000883, 0x0080 }, /* R2179 (0x883) - EQ1MIX Input 2 Volume */
> + { 0x00000884, 0x0000 }, /* R2180 (0x884) - EQ1MIX Input 3 Source */
> + { 0x00000885, 0x0080 }, /* R2181 (0x885) - EQ1MIX Input 3 Volume */
> + { 0x00000886, 0x0000 }, /* R2182 (0x886) - EQ1MIX Input 4 Source */
> + { 0x00000887, 0x0080 }, /* R2183 (0x887) - EQ1MIX Input 4 Volume */
> + { 0x00000888, 0x0000 }, /* R2184 (0x888) - EQ2MIX Input 1 Source */
> + { 0x00000889, 0x0080 }, /* R2185 (0x889) - EQ2MIX Input 1 Volume */
> + { 0x0000088a, 0x0000 }, /* R2186 (0x88a) - EQ2MIX Input 2 Source */
> + { 0x0000088b, 0x0080 }, /* R2187 (0x88b) - EQ2MIX Input 2 Volume */
> + { 0x0000088c, 0x0000 }, /* R2188 (0x88c) - EQ2MIX Input 3 Source */
> + { 0x0000088d, 0x0080 }, /* R2189 (0x88d) - EQ2MIX Input 3 Volume */
> + { 0x0000088e, 0x0000 }, /* R2190 (0x88e) - EQ2MIX Input 4 Source */
> + { 0x0000088f, 0x0080 }, /* R2191 (0x88f) - EQ2MIX Input 4 Volume */
> + { 0x00000890, 0x0000 }, /* R2192 (0x890) - EQ3MIX Input 1 Source */
> + { 0x00000891, 0x0080 }, /* R2193 (0x891) - EQ3MIX Input 1 Volume */
> + { 0x00000892, 0x0000 }, /* R2194 (0x892) - EQ3MIX Input 2 Source */
> + { 0x00000893, 0x0080 }, /* R2195 (0x893) - EQ3MIX Input 2 Volume */
> + { 0x00000894, 0x0000 }, /* R2196 (0x894) - EQ3MIX Input 3 Source */
> + { 0x00000895, 0x0080 }, /* R2197 (0x895) - EQ3MIX Input 3 Volume */
> + { 0x00000896, 0x0000 }, /* R2198 (0x896) - EQ3MIX Input 4 Source */
> + { 0x00000897, 0x0080 }, /* R2199 (0x897) - EQ3MIX Input 4 Volume */
> + { 0x00000898, 0x0000 }, /* R2200 (0x898) - EQ4MIX Input 1 Source */
> + { 0x00000899, 0x0080 }, /* R2201 (0x899) - EQ4MIX Input 1 Volume */
> + { 0x0000089a, 0x0000 }, /* R2202 (0x89a) - EQ4MIX Input 2 Source */
> + { 0x0000089b, 0x0080 }, /* R2203 (0x89b) - EQ4MIX Input 2 Volume */
> + { 0x0000089c, 0x0000 }, /* R2204 (0x89c) - EQ4MIX Input 3 Source */
> + { 0x0000089d, 0x0080 }, /* R2205 (0x89d) - EQ4MIX Input 3 Volume */
> + { 0x0000089e, 0x0000 }, /* R2206 (0x89e) - EQ4MIX Input 4 Source */
> + { 0x0000089f, 0x0080 }, /* R2207 (0x89f) - EQ4MIX Input 4 Volume */
> + { 0x000008c0, 0x0000 }, /* R2240 (0x8c0) - DRC1LMIX Input 1 Source */
> + { 0x000008c1, 0x0080 }, /* R2241 (0x8c1) - DRC1LMIX Input 1 Volume */
> + { 0x000008c2, 0x0000 }, /* R2242 (0x8c2) - DRC1LMIX Input 2 Source */
> + { 0x000008c3, 0x0080 }, /* R2243 (0x8c3) - DRC1LMIX Input 2 Volume */
> + { 0x000008c4, 0x0000 }, /* R2244 (0x8c4) - DRC1LMIX Input 3 Source */
> + { 0x000008c5, 0x0080 }, /* R2245 (0x8c5) - DRC1LMIX Input 3 Volume */
> + { 0x000008c6, 0x0000 }, /* R2246 (0x8c6) - DRC1LMIX Input 4 Source */
> + { 0x000008c7, 0x0080 }, /* R2247 (0x8c7) - DRC1LMIX Input 4 Volume */
> + { 0x000008c8, 0x0000 }, /* R2248 (0x8c8) - DRC1RMIX Input 1 Source */
> + { 0x000008c9, 0x0080 }, /* R2249 (0x8c9) - DRC1RMIX Input 1 Volume */
> + { 0x000008ca, 0x0000 }, /* R2250 (0x8ca) - DRC1RMIX Input 2 Source */
> + { 0x000008cb, 0x0080 }, /* R2251 (0x8cb) - DRC1RMIX Input 2 Volume */
> + { 0x000008cc, 0x0000 }, /* R2252 (0x8cc) - DRC1RMIX Input 3 Source */
> + { 0x000008cd, 0x0080 }, /* R2253 (0x8cd) - DRC1RMIX Input 3 Volume */
> + { 0x000008ce, 0x0000 }, /* R2254 (0x8ce) - DRC1RMIX Input 4 Source */
> + { 0x000008cf, 0x0080 }, /* R2255 (0x8cf) - DRC1RMIX Input 4 Volume */
> + { 0x000008d0, 0x0000 }, /* R2256 (0x8d0) - DRC2LMIX Input 1 Source */
> + { 0x000008d1, 0x0080 }, /* R2257 (0x8d1) - DRC2LMIX Input 1 Volume */
> + { 0x000008d2, 0x0000 }, /* R2258 (0x8d2) - DRC2LMIX Input 2 Source */
> + { 0x000008d3, 0x0080 }, /* R2259 (0x8d3) - DRC2LMIX Input 2 Volume */
> + { 0x000008d4, 0x0000 }, /* R2260 (0x8d4) - DRC2LMIX Input 3 Source */
> + { 0x000008d5, 0x0080 }, /* R2261 (0x8d5) - DRC2LMIX Input 3 Volume */
> + { 0x000008d6, 0x0000 }, /* R2262 (0x8d6) - DRC2LMIX Input 4 Source */
> + { 0x000008d7, 0x0080 }, /* R2263 (0x8d7) - DRC2LMIX Input 4 Volume */
> + { 0x000008d8, 0x0000 }, /* R2264 (0x8d8) - DRC2RMIX Input 1 Source */
> + { 0x000008d9, 0x0080 }, /* R2265 (0x8d9) - DRC2RMIX Input 1 Volume */
> + { 0x000008da, 0x0000 }, /* R2266 (0x8da) - DRC2RMIX Input 2 Source */
> + { 0x000008db, 0x0080 }, /* R2267 (0x8db) - DRC2RMIX Input 2 Volume */
> + { 0x000008dc, 0x0000 }, /* R2268 (0x8dc) - DRC2RMIX Input 3 Source */
> + { 0x000008dd, 0x0080 }, /* R2269 (0x8dd) - DRC2RMIX Input 3 Volume */
> + { 0x000008de, 0x0000 }, /* R2270 (0x8de) - DRC2RMIX Input 4 Source */
> + { 0x000008df, 0x0080 }, /* R2271 (0x8df) - DRC2RMIX Input 4 Volume */
> + { 0x00000900, 0x0000 }, /* R2304 (0x900) - HPLP1MIX Input 1 Source */
> + { 0x00000901, 0x0080 }, /* R2305 (0x901) - HPLP1MIX Input 1 Volume */
> + { 0x00000902, 0x0000 }, /* R2306 (0x902) - HPLP1MIX Input 2 Source */
> + { 0x00000903, 0x0080 }, /* R2307 (0x903) - HPLP1MIX Input 2 Volume */
> + { 0x00000904, 0x0000 }, /* R2308 (0x904) - HPLP1MIX Input 3 Source */
> + { 0x00000905, 0x0080 }, /* R2309 (0x905) - HPLP1MIX Input 3 Volume */
> + { 0x00000906, 0x0000 }, /* R2310 (0x906) - HPLP1MIX Input 4 Source */
> + { 0x00000907, 0x0080 }, /* R2311 (0x907) - HPLP1MIX Input 4 Volume */
> + { 0x00000908, 0x0000 }, /* R2312 (0x908) - HPLP2MIX Input 1 Source */
> + { 0x00000909, 0x0080 }, /* R2313 (0x909) - HPLP2MIX Input 1 Volume */
> + { 0x0000090a, 0x0000 }, /* R2314 (0x90a) - HPLP2MIX Input 2 Source */
> + { 0x0000090b, 0x0080 }, /* R2315 (0x90b) - HPLP2MIX Input 2 Volume */
> + { 0x0000090c, 0x0000 }, /* R2316 (0x90c) - HPLP2MIX Input 3 Source */
> + { 0x0000090d, 0x0080 }, /* R2317 (0x90d) - HPLP2MIX Input 3 Volume */
> + { 0x0000090e, 0x0000 }, /* R2318 (0x90e) - HPLP2MIX Input 4 Source */
> + { 0x0000090f, 0x0080 }, /* R2319 (0x90f) - HPLP2MIX Input 4 Volume */
> + { 0x00000910, 0x0000 }, /* R2320 (0x910) - HPLP3MIX Input 1 Source */
> + { 0x00000911, 0x0080 }, /* R2321 (0x911) - HPLP3MIX Input 1 Volume */
> + { 0x00000912, 0x0000 }, /* R2322 (0x912) - HPLP3MIX Input 2 Source */
> + { 0x00000913, 0x0080 }, /* R2323 (0x913) - HPLP3MIX Input 2 Volume */
> + { 0x00000914, 0x0000 }, /* R2324 (0x914) - HPLP3MIX Input 3 Source */
> + { 0x00000915, 0x0080 }, /* R2325 (0x915) - HPLP3MIX Input 3 Volume */
> + { 0x00000916, 0x0000 }, /* R2326 (0x916) - HPLP3MIX Input 4 Source */
> + { 0x00000917, 0x0080 }, /* R2327 (0x917) - HPLP3MIX Input 4 Volume */
> + { 0x00000918, 0x0000 }, /* R2328 (0x918) - HPLP4MIX Input 1 Source */
> + { 0x00000919, 0x0080 }, /* R2329 (0x919) - HPLP4MIX Input 1 Volume */
> + { 0x0000091a, 0x0000 }, /* R2330 (0x91a) - HPLP4MIX Input 2 Source */
> + { 0x0000091b, 0x0080 }, /* R2331 (0x91b) - HPLP4MIX Input 2 Volume */
> + { 0x0000091c, 0x0000 }, /* R2332 (0x91c) - HPLP4MIX Input 3 Source */
> + { 0x0000091d, 0x0080 }, /* R2333 (0x91d) - HPLP4MIX Input 3 Volume */
> + { 0x0000091e, 0x0000 }, /* R2334 (0x91e) - HPLP4MIX Input 4 Source */
> + { 0x0000091f, 0x0080 }, /* R2335 (0x91f) - HPLP4MIX Input 4 Volume */
> + { 0x00000940, 0x0000 }, /* R2368 (0x940) - DSP1LMIX Input 1 Source */
> + { 0x00000941, 0x0080 }, /* R2369 (0x941) - DSP1LMIX Input 1 Volume */
> + { 0x00000942, 0x0000 }, /* R2370 (0x942) - DSP1LMIX Input 2 Source */
> + { 0x00000943, 0x0080 }, /* R2371 (0x943) - DSP1LMIX Input 2 Volume */
> + { 0x00000944, 0x0000 }, /* R2372 (0x944) - DSP1LMIX Input 3 Source */
> + { 0x00000945, 0x0080 }, /* R2373 (0x945) - DSP1LMIX Input 3 Volume */
> + { 0x00000946, 0x0000 }, /* R2374 (0x946) - DSP1LMIX Input 4 Source */
> + { 0x00000947, 0x0080 }, /* R2375 (0x947) - DSP1LMIX Input 4 Volume */
> + { 0x00000948, 0x0000 }, /* R2376 (0x948) - DSP1RMIX Input 1 Source */
> + { 0x00000949, 0x0080 }, /* R2377 (0x949) - DSP1RMIX Input 1 Volume */
> + { 0x0000094a, 0x0000 }, /* R2378 (0x94a) - DSP1RMIX Input 2 Source */
> + { 0x0000094b, 0x0080 }, /* R2379 (0x94b) - DSP1RMIX Input 2 Volume */
> + { 0x0000094c, 0x0000 }, /* R2380 (0x94c) - DSP1RMIX Input 3 Source */
> + { 0x0000094d, 0x0080 }, /* R2381 (0x94d) - DSP1RMIX Input 3 Volume */
> + { 0x0000094e, 0x0000 }, /* R2382 (0x94e) - DSP1RMIX Input 4 Source */
> + { 0x0000094f, 0x0080 }, /* R2383 (0x94f) - DSP1RMIX Input 4 Volume */
> + { 0x00000950, 0x0000 }, /* R2384 (0x950) - DSP1AUX1MIX Input 1 Source */
> + { 0x00000958, 0x0000 }, /* R2392 (0x958) - DSP1AUX2MIX Input 1 Source */
> + { 0x00000960, 0x0000 }, /* R2400 (0x960) - DSP1AUX3MIX Input 1 Source */
> + { 0x00000968, 0x0000 }, /* R2408 (0x968) - DSP1AUX4MIX Input 1 Source */
> + { 0x00000970, 0x0000 }, /* R2416 (0x970) - DSP1AUX5MIX Input 1 Source */
> + { 0x00000978, 0x0000 }, /* R2424 (0x978) - DSP1AUX6MIX Input 1 Source */
> + { 0x00000980, 0x0000 }, /* R2432 (0x980) - DSP2LMIX Input 1 Source */
> + { 0x00000981, 0x0080 }, /* R2433 (0x981) - DSP2LMIX Input 1 Volume */
> + { 0x00000982, 0x0000 }, /* R2434 (0x982) - DSP2LMIX Input 2 Source */
> + { 0x00000983, 0x0080 }, /* R2435 (0x983) - DSP2LMIX Input 2 Volume */
> + { 0x00000984, 0x0000 }, /* R2436 (0x984) - DSP2LMIX Input 3 Source */
> + { 0x00000985, 0x0080 }, /* R2437 (0x985) - DSP2LMIX Input 3 Volume */
> + { 0x00000986, 0x0000 }, /* R2438 (0x986) - DSP2LMIX Input 4 Source */
> + { 0x00000987, 0x0080 }, /* R2439 (0x987) - DSP2LMIX Input 4 Volume */
> + { 0x00000988, 0x0000 }, /* R2440 (0x988) - DSP2RMIX Input 1 Source */
> + { 0x00000989, 0x0080 }, /* R2441 (0x989) - DSP2RMIX Input 1 Volume */
> + { 0x0000098a, 0x0000 }, /* R2442 (0x98a) - DSP2RMIX Input 2 Source */
> + { 0x0000098b, 0x0080 }, /* R2443 (0x98b) - DSP2RMIX Input 2 Volume */
> + { 0x0000098c, 0x0000 }, /* R2444 (0x98c) - DSP2RMIX Input 3 Source */
> + { 0x0000098d, 0x0080 }, /* R2445 (0x98d) - DSP2RMIX Input 3 Volume */
> + { 0x0000098e, 0x0000 }, /* R2446 (0x98e) - DSP2RMIX Input 4 Source */
> + { 0x0000098f, 0x0080 }, /* R2447 (0x98f) - DSP2RMIX Input 4 Volume */
> + { 0x00000990, 0x0000 }, /* R2448 (0x990) - DSP2AUX1MIX Input 1 Source */
> + { 0x00000998, 0x0000 }, /* R2456 (0x998) - DSP2AUX2MIX Input 1 Source */
> + { 0x000009a0, 0x0000 }, /* R2464 (0x9a0) - DSP2AUX3MIX Input 1 Source */
> + { 0x000009a8, 0x0000 }, /* R2472 (0x9a8) - DSP2AUX4MIX Input 1 Source */
> + { 0x000009b0, 0x0000 }, /* R2480 (0x9b0) - DSP2AUX5MIX Input 1 Source */
> + { 0x000009b8, 0x0000 }, /* R2488 (0x9b8) - DSP2AUX6MIX Input 1 Source */
> + { 0x000009c0, 0x0000 }, /* R2496 (0x9c0) - DSP3LMIX Input 1 Source */
> + { 0x000009c1, 0x0080 }, /* R2497 (0x9c1) - DSP3LMIX Input 1 Volume */
> + { 0x000009c2, 0x0000 }, /* R2498 (0x9c2) - DSP3LMIX Input 2 Source */
> + { 0x000009c3, 0x0080 }, /* R2499 (0x9c3) - DSP3LMIX Input 2 Volume */
> + { 0x000009c4, 0x0000 }, /* R2500 (0x9c4) - DSP3LMIX Input 3 Source */
> + { 0x000009c5, 0x0080 }, /* R2501 (0x9c5) - DSP3LMIX Input 3 Volume */
> + { 0x000009c6, 0x0000 }, /* R2502 (0x9c6) - DSP3LMIX Input 4 Source */
> + { 0x000009c7, 0x0080 }, /* R2503 (0x9c7) - DSP3LMIX Input 4 Volume */
> + { 0x000009c8, 0x0000 }, /* R2504 (0x9c8) - DSP3RMIX Input 1 Source */
> + { 0x000009c9, 0x0080 }, /* R2505 (0x9c9) - DSP3RMIX Input 1 Volume */
> + { 0x000009ca, 0x0000 }, /* R2506 (0x9ca) - DSP3RMIX Input 2 Source */
> + { 0x000009cb, 0x0080 }, /* R2507 (0x9cb) - DSP3RMIX Input 2 Volume */
> + { 0x000009cc, 0x0000 }, /* R2508 (0x9cc) - DSP3RMIX Input 3 Source */
> + { 0x000009cd, 0x0080 }, /* R2509 (0x9cd) - DSP3RMIX Input 3 Volume */
> + { 0x000009ce, 0x0000 }, /* R2510 (0x9ce) - DSP3RMIX Input 4 Source */
> + { 0x000009cf, 0x0080 }, /* R2511 (0x9cf) - DSP3RMIX Input 4 Volume */
> + { 0x000009d0, 0x0000 }, /* R2512 (0x9d0) - DSP3AUX1MIX Input 1 Source */
> + { 0x000009d8, 0x0000 }, /* R2520 (0x9d8) - DSP3AUX2MIX Input 1 Source */
> + { 0x000009e0, 0x0000 }, /* R2528 (0x9e0) - DSP3AUX3MIX Input 1 Source */
> + { 0x000009e8, 0x0000 }, /* R2536 (0x9e8) - DSP3AUX4MIX Input 1 Source */
> + { 0x000009f0, 0x0000 }, /* R2544 (0x9f0) - DSP3AUX5MIX Input 1 Source */
> + { 0x000009f8, 0x0000 }, /* R2552 (0x9f8) - DSP3AUX6MIX Input 1 Source */
> + { 0x00000a00, 0x0000 }, /* R2560 (0xa00) - DSP4LMIX Input 1 Source */
> + { 0x00000a01, 0x0080 }, /* R2561 (0xa01) - DSP4LMIX Input 1 Volume */
> + { 0x00000a02, 0x0000 }, /* R2562 (0xa02) - DSP4LMIX Input 2 Source */
> + { 0x00000a03, 0x0080 }, /* R2563 (0xa03) - DSP4LMIX Input 2 Volume */
> + { 0x00000a04, 0x0000 }, /* R2564 (0xa04) - DSP4LMIX Input 3 Source */
> + { 0x00000a05, 0x0080 }, /* R2565 (0xa05) - DSP4LMIX Input 3 Volume */
> + { 0x00000a06, 0x0000 }, /* R2566 (0xa06) - DSP4LMIX Input 4 Source */
> + { 0x00000a07, 0x0080 }, /* R2567 (0xa07) - DSP4LMIX Input 4 Volume */
> + { 0x00000a08, 0x0000 }, /* R2568 (0xa08) - DSP4RMIX Input 1 Source */
> + { 0x00000a09, 0x0080 }, /* R2569 (0xa09) - DSP4RMIX Input 1 Volume */
> + { 0x00000a0a, 0x0000 }, /* R2570 (0xa0a) - DSP4RMIX Input 2 Source */
> + { 0x00000a0b, 0x0080 }, /* R2571 (0xa0b) - DSP4RMIX Input 2 Volume */
> + { 0x00000a0c, 0x0000 }, /* R2572 (0xa0c) - DSP4RMIX Input 3 Source */
> + { 0x00000a0d, 0x0080 }, /* R2573 (0xa0d) - DSP4RMIX Input 3 Volume */
> + { 0x00000a0e, 0x0000 }, /* R2574 (0xa0e) - DSP4RMIX Input 4 Source */
> + { 0x00000a0f, 0x0080 }, /* R2575 (0xa0f) - DSP4RMIX Input 4 Volume */
> + { 0x00000a10, 0x0000 }, /* R2576 (0xa10) - DSP4AUX1MIX Input 1 Source */
> + { 0x00000a18, 0x0000 }, /* R2584 (0xa18) - DSP4AUX2MIX Input 1 Source */
> + { 0x00000a20, 0x0000 }, /* R2592 (0xa20) - DSP4AUX3MIX Input 1 Source */
> + { 0x00000a28, 0x0000 }, /* R2600 (0xa28) - DSP4AUX4MIX Input 1 Source */
> + { 0x00000a30, 0x0000 }, /* R2608 (0xa30) - DSP4AUX5MIX Input 1 Source */
> + { 0x00000a38, 0x0000 }, /* R2616 (0xa38) - DSP4AUX6MIX Input 1 Source */
> + { 0x00000a40, 0x0000 }, /* R2624 (0xa40) - DSP5LMIX Input 1 Source */
> + { 0x00000a41, 0x0080 }, /* R2625 (0xa41) - DSP5LMIX Input 1 Volume */
> + { 0x00000a42, 0x0000 }, /* R2626 (0xa42) - DSP5LMIX Input 2 Source */
> + { 0x00000a43, 0x0080 }, /* R2627 (0xa43) - DSP5LMIX Input 2 Volume */
> + { 0x00000a44, 0x0000 }, /* R2628 (0xa44) - DSP5LMIX Input 3 Source */
> + { 0x00000a45, 0x0080 }, /* R2629 (0xa45) - DSP5LMIX Input 3 Volume */
> + { 0x00000a46, 0x0000 }, /* R2630 (0xa46) - DSP5LMIX Input 4 Source */
> + { 0x00000a47, 0x0080 }, /* R2631 (0xa47) - DSP5LMIX Input 4 Volume */
> + { 0x00000a48, 0x0000 }, /* R2632 (0xa48) - DSP5RMIX Input 1 Source */
> + { 0x00000a49, 0x0080 }, /* R2633 (0xa49) - DSP5RMIX Input 1 Volume */
> + { 0x00000a4a, 0x0000 }, /* R2634 (0xa4a) - DSP5RMIX Input 2 Source */
> + { 0x00000a4b, 0x0080 }, /* R2635 (0xa4b) - DSP5RMIX Input 2 Volume */
> + { 0x00000a4c, 0x0000 }, /* R2636 (0xa4c) - DSP5RMIX Input 3 Source */
> + { 0x00000a4d, 0x0080 }, /* R2637 (0xa4d) - DSP5RMIX Input 3 Volume */
> + { 0x00000a4e, 0x0000 }, /* R2638 (0xa4e) - DSP5RMIX Input 4 Source */
> + { 0x00000a4f, 0x0080 }, /* R2639 (0xa4f) - DSP5RMIX Input 4 Volume */
> + { 0x00000a50, 0x0000 }, /* R2640 (0xa50) - DSP5AUX1MIX Input 1 Source */
> + { 0x00000a58, 0x0000 }, /* R2658 (0xa58) - DSP5AUX2MIX Input 1 Source */
> + { 0x00000a60, 0x0000 }, /* R2656 (0xa60) - DSP5AUX3MIX Input 1 Source */
> + { 0x00000a68, 0x0000 }, /* R2664 (0xa68) - DSP5AUX4MIX Input 1 Source */
> + { 0x00000a70, 0x0000 }, /* R2672 (0xa70) - DSP5AUX5MIX Input 1 Source */
> + { 0x00000a78, 0x0000 }, /* R2680 (0xa78) - DSP5AUX6MIX Input 1 Source */
> + { 0x00000a80, 0x0000 }, /* R2688 (0xa80) - ASRC1_1LMIX Input 1 Source */
> + { 0x00000a88, 0x0000 }, /* R2696 (0xa88) - ASRC1_1RMIX Input 1 Source */
> + { 0x00000a90, 0x0000 }, /* R2704 (0xa90) - ASRC1_2LMIX Input 1 Source */
> + { 0x00000a98, 0x0000 }, /* R2712 (0xa98) - ASRC1_2RMIX Input 1 Source */
> + { 0x00000aa0, 0x0000 }, /* R2720 (0xaa0) - ASRC2_1LMIX Input 1 Source */
> + { 0x00000aa8, 0x0000 }, /* R2728 (0xaa8) - ASRC2_1RMIX Input 1 Source */
> + { 0x00000ab0, 0x0000 }, /* R2736 (0xab0) - ASRC2_2LMIX Input 1 Source */
> + { 0x00000ab8, 0x0000 }, /* R2744 (0xab8) - ASRC2_2RMIX Input 1 Source */
> + { 0x00000b00, 0x0000 }, /* R2816 (0xb00) - ISRC1DEC1MIX Input 1 Source*/
> + { 0x00000b08, 0x0000 }, /* R2824 (0xb08) - ISRC1DEC2MIX Input 1 Source*/
> + { 0x00000b10, 0x0000 }, /* R2832 (0xb10) - ISRC1DEC3MIX Input 1 Source*/
> + { 0x00000b18, 0x0000 }, /* R2840 (0xb18) - ISRC1DEC4MIX Input 1 Source*/
> + { 0x00000b20, 0x0000 }, /* R2848 (0xb20) - ISRC1INT1MIX Input 1 Source*/
> + { 0x00000b28, 0x0000 }, /* R2856 (0xb28) - ISRC1INT2MIX Input 1 Source*/
> + { 0x00000b30, 0x0000 }, /* R2864 (0xb30) - ISRC1INT3MIX Input 1 Source*/
> + { 0x00000b38, 0x0000 }, /* R2872 (0xb38) - ISRC1INT4MIX Input 1 Source*/
> + { 0x00000b40, 0x0000 }, /* R2880 (0xb40) - ISRC2DEC1MIX Input 1 Source*/
> + { 0x00000b48, 0x0000 }, /* R2888 (0xb48) - ISRC2DEC2MIX Input 1 Source*/
> + { 0x00000b50, 0x0000 }, /* R2896 (0xb50) - ISRC2DEC3MIX Input 1 Source*/
> + { 0x00000b58, 0x0000 }, /* R2904 (0xb58) - ISRC2DEC4MIX Input 1 Source*/
> + { 0x00000b60, 0x0000 }, /* R2912 (0xb60) - ISRC2INT1MIX Input 1 Source*/
> + { 0x00000b68, 0x0000 }, /* R2920 (0xb68) - ISRC2INT2MIX Input 1 Source*/
> + { 0x00000b70, 0x0000 }, /* R2928 (0xb70) - ISRC2INT3MIX Input 1 Source*/
> + { 0x00000b78, 0x0000 }, /* R2936 (0xb78) - ISRC2INT4MIX Input 1 Source*/
> + { 0x00000b80, 0x0000 }, /* R2944 (0xb80) - ISRC3DEC1MIX Input 1 Source*/
> + { 0x00000b88, 0x0000 }, /* R2952 (0xb88) - ISRC3DEC2MIX Input 1 Source*/
> + { 0x00000ba0, 0x0000 }, /* R2976 (0xb80) - ISRC3INT1MIX Input 1 Source*/
> + { 0x00000ba8, 0x0000 }, /* R2984 (0xb88) - ISRC3INT2MIX Input 1 Source*/
> + { 0x00000bc0, 0x0000 }, /* R3008 (0xbc0) - ISRC4DEC1MIX Input 1 Source */
> + { 0x00000bc8, 0x0000 }, /* R3016 (0xbc8) - ISRC4DEC2MIX Input 1 Source */
> + { 0x00000be0, 0x0000 }, /* R3040 (0xbe0) - ISRC4INT1MIX Input 1 Source */
> + { 0x00000be8, 0x0000 }, /* R3048 (0xbe8) - ISRC4INT2MIX Input 1 Source */
> + { 0x00000c00, 0x0000 }, /* R3072 (0xc00) - DSP6LMIX Input 1 Source */
> + { 0x00000c01, 0x0080 }, /* R3073 (0xc01) - DSP6LMIX Input 1 Volume */
> + { 0x00000c02, 0x0000 }, /* R3074 (0xc02) - DSP6LMIX Input 2 Source */
> + { 0x00000c03, 0x0080 }, /* R3075 (0xc03) - DSP6LMIX Input 2 Volume */
> + { 0x00000c04, 0x0000 }, /* R3076 (0xc04) - DSP6LMIX Input 3 Source */
> + { 0x00000c05, 0x0080 }, /* R3077 (0xc05) - DSP6LMIX Input 3 Volume */
> + { 0x00000c06, 0x0000 }, /* R3078 (0xc06) - DSP6LMIX Input 4 Source */
> + { 0x00000c07, 0x0080 }, /* R3079 (0xc07) - DSP6LMIX Input 4 Volume */
> + { 0x00000c08, 0x0000 }, /* R3080 (0xc08) - DSP6RMIX Input 1 Source */
> + { 0x00000c09, 0x0080 }, /* R3081 (0xc09) - DSP6RMIX Input 1 Volume */
> + { 0x00000c0a, 0x0000 }, /* R3082 (0xc0a) - DSP6RMIX Input 2 Source */
> + { 0x00000c0b, 0x0080 }, /* R3083 (0xc0b) - DSP6RMIX Input 2 Volume */
> + { 0x00000c0c, 0x0000 }, /* R3084 (0xc0c) - DSP6RMIX Input 3 Source */
> + { 0x00000c0d, 0x0080 }, /* R3085 (0xc0d) - DSP6RMIX Input 3 Volume */
> + { 0x00000c0e, 0x0000 }, /* R3086 (0xc0e) - DSP6RMIX Input 4 Source */
> + { 0x00000c0f, 0x0080 }, /* R3087 (0xc0f) - DSP6RMIX Input 4 Volume */
> + { 0x00000c10, 0x0000 }, /* R3088 (0xc10) - DSP6AUX1MIX Input 1 Source */
> + { 0x00000c18, 0x0000 }, /* R3088 (0xc18) - DSP6AUX2MIX Input 1 Source */
> + { 0x00000c20, 0x0000 }, /* R3088 (0xc20) - DSP6AUX3MIX Input 1 Source */
> + { 0x00000c28, 0x0000 }, /* R3088 (0xc28) - DSP6AUX4MIX Input 1 Source */
> + { 0x00000c30, 0x0000 }, /* R3088 (0xc30) - DSP6AUX5MIX Input 1 Source */
> + { 0x00000c38, 0x0000 }, /* R3088 (0xc38) - DSP6AUX6MIX Input 1 Source */
> + { 0x00000c40, 0x0000 }, /* R3136 (0xc40) - DSP7LMIX Input 1 Source */
> + { 0x00000c41, 0x0080 }, /* R3137 (0xc41) - DSP7LMIX Input 1 Volume */
> + { 0x00000c42, 0x0000 }, /* R3138 (0xc42) - DSP7LMIX Input 2 Source */
> + { 0x00000c43, 0x0080 }, /* R3139 (0xc43) - DSP7LMIX Input 2 Volume */
> + { 0x00000c44, 0x0000 }, /* R3140 (0xc44) - DSP7LMIX Input 3 Source */
> + { 0x00000c45, 0x0080 }, /* R3141 (0xc45) - DSP7lMIX Input 3 Volume */
> + { 0x00000c46, 0x0000 }, /* R3142 (0xc46) - DSP7lMIX Input 4 Source */
> + { 0x00000c47, 0x0080 }, /* R3143 (0xc47) - DSP7LMIX Input 4 Volume */
> + { 0x00000c48, 0x0000 }, /* R3144 (0xc48) - DSP7RMIX Input 1 Source */
> + { 0x00000c49, 0x0080 }, /* R3145 (0xc49) - DSP7RMIX Input 1 Volume */
> + { 0x00000c4a, 0x0000 }, /* R3146 (0xc4a) - DSP7RMIX Input 2 Source */
> + { 0x00000c4b, 0x0080 }, /* R3147 (0xc4b) - DSP7RMIX Input 2 Volume */
> + { 0x00000c4c, 0x0000 }, /* R3148 (0xc4c) - DSP7RMIX Input 3 Source */
> + { 0x00000c4d, 0x0080 }, /* R3159 (0xc4d) - DSP7RMIX Input 3 Volume */
> + { 0x00000c4e, 0x0000 }, /* R3150 (0xc4e) - DSP7RMIX Input 4 Source */
> + { 0x00000c4f, 0x0080 }, /* R3151 (0xc4f) - DSP7RMIX Input 4 Volume */
> + { 0x00000c50, 0x0000 }, /* R3152 (0xc50) - DSP7AUX1MIX Input 1 Source */
> + { 0x00000c58, 0x0000 }, /* R3160 (0xc58) - DSP7AUX2MIX Input 1 Source */
> + { 0x00000c60, 0x0000 }, /* R3168 (0xc60) - DSP7AUX3MIX Input 1 Source */
> + { 0x00000c68, 0x0000 }, /* R3176 (0xc68) - DSP7AUX4MIX Input 1 Source */
> + { 0x00000c70, 0x0000 }, /* R3184 (0xc70) - DSP7AUX5MIX Input 1 Source */
> + { 0x00000c78, 0x0000 }, /* R3192 (0xc78) - DSP7AUX6MIX Input 1 Source */
> + { 0x00000e00, 0x0000 }, /* R3584 (0xe00) - FX Ctrl1 */
> + { 0x00000e10, 0x6318 }, /* R3600 (0xe10) - EQ1_1 */
> + { 0x00000e11, 0x6300 }, /* R3601 (0xe11) - EQ1_2 */
> + { 0x00000e12, 0x0fc8 }, /* R3602 (0xe12) - EQ1_3 */
> + { 0x00000e13, 0x03fe }, /* R3603 (0xe13) - EQ1_4 */
> + { 0x00000e14, 0x00e0 }, /* R3604 (0xe14) - EQ1_5 */
> + { 0x00000e15, 0x1ec4 }, /* R3605 (0xe15) - EQ1_6 */
> + { 0x00000e16, 0xf136 }, /* R3606 (0xe16) - EQ1_7 */
> + { 0x00000e17, 0x0409 }, /* R3607 (0xe17) - EQ1_8 */
> + { 0x00000e18, 0x04cc }, /* R3608 (0xe18) - EQ1_9 */
> + { 0x00000e19, 0x1c9b }, /* R3609 (0xe19) - EQ1_10 */
> + { 0x00000e1a, 0xf337 }, /* R3610 (0xe1a) - EQ1_11 */
> + { 0x00000e1b, 0x040b }, /* R3611 (0xe1b) - EQ1_12 */
> + { 0x00000e1c, 0x0cbb }, /* R3612 (0xe1c) - EQ1_13 */
> + { 0x00000e1d, 0x16f8 }, /* R3613 (0xe1d) - EQ1_14 */
> + { 0x00000e1e, 0xf7d9 }, /* R3614 (0xe1e) - EQ1_15 */
> + { 0x00000e1f, 0x040a }, /* R3615 (0xe1f) - EQ1_16 */
> + { 0x00000e20, 0x1f14 }, /* R3616 (0xe20) - EQ1_17 */
> + { 0x00000e21, 0x058c }, /* R3617 (0xe21) - EQ1_18 */
> + { 0x00000e22, 0x0563 }, /* R3618 (0xe22) - EQ1_19 */
> + { 0x00000e23, 0x4000 }, /* R3619 (0xe23) - EQ1_20 */
> + { 0x00000e24, 0x0b75 }, /* R3620 (0xe24) - EQ1_21 */
> + { 0x00000e26, 0x6318 }, /* R3622 (0xe26) - EQ2_1 */
> + { 0x00000e27, 0x6300 }, /* R3623 (0xe27) - EQ2_2 */
> + { 0x00000e28, 0x0fc8 }, /* R3624 (0xe28) - EQ2_3 */
> + { 0x00000e29, 0x03fe }, /* R3625 (0xe29) - EQ2_4 */
> + { 0x00000e2a, 0x00e0 }, /* R3626 (0xe2a) - EQ2_5 */
> + { 0x00000e2b, 0x1ec4 }, /* R3627 (0xe2b) - EQ2_6 */
> + { 0x00000e2c, 0xf136 }, /* R3628 (0xe2c) - EQ2_7 */
> + { 0x00000e2d, 0x0409 }, /* R3629 (0xe2d) - EQ2_8 */
> + { 0x00000e2e, 0x04cc }, /* R3630 (0xe2e) - EQ2_9 */
> + { 0x00000e2f, 0x1c9b }, /* R3631 (0xe2f) - EQ2_10 */
> + { 0x00000e30, 0xf337 }, /* R3632 (0xe30) - EQ2_11 */
> + { 0x00000e31, 0x040b }, /* R3633 (0xe31) - EQ2_12 */
> + { 0x00000e32, 0x0cbb }, /* R3634 (0xe32) - EQ2_13 */
> + { 0x00000e33, 0x16f8 }, /* R3635 (0xe33) - EQ2_14 */
> + { 0x00000e34, 0xf7d9 }, /* R3636 (0xe34) - EQ2_15 */
> + { 0x00000e35, 0x040a }, /* R3637 (0xe35) - EQ2_16 */
> + { 0x00000e36, 0x1f14 }, /* R3638 (0xe36) - EQ2_17 */
> + { 0x00000e37, 0x058c }, /* R3639 (0xe37) - EQ2_18 */
> + { 0x00000e38, 0x0563 }, /* R3640 (0xe38) - EQ2_19 */
> + { 0x00000e39, 0x4000 }, /* R3641 (0xe39) - EQ2_20 */
> + { 0x00000e3a, 0x0b75 }, /* R3642 (0xe3a) - EQ2_21 */
> + { 0x00000e3c, 0x6318 }, /* R3644 (0xe3c) - EQ3_1 */
> + { 0x00000e3d, 0x6300 }, /* R3645 (0xe3d) - EQ3_2 */
> + { 0x00000e3e, 0x0fc8 }, /* R3646 (0xe3e) - EQ3_3 */
> + { 0x00000e3f, 0x03fe }, /* R3647 (0xe3f) - EQ3_4 */
> + { 0x00000e40, 0x00e0 }, /* R3648 (0xe40) - EQ3_5 */
> + { 0x00000e41, 0x1ec4 }, /* R3649 (0xe41) - EQ3_6 */
> + { 0x00000e42, 0xf136 }, /* R3650 (0xe42) - EQ3_7 */
> + { 0x00000e43, 0x0409 }, /* R3651 (0xe43) - EQ3_8 */
> + { 0x00000e44, 0x04cc }, /* R3652 (0xe44) - EQ3_9 */
> + { 0x00000e45, 0x1c9b }, /* R3653 (0xe45) - EQ3_10 */
> + { 0x00000e46, 0xf337 }, /* R3654 (0xe46) - EQ3_11 */
> + { 0x00000e47, 0x040b }, /* R3655 (0xe47) - EQ3_12 */
> + { 0x00000e48, 0x0cbb }, /* R3656 (0xe48) - EQ3_13 */
> + { 0x00000e49, 0x16f8 }, /* R3657 (0xe49) - EQ3_14 */
> + { 0x00000e4a, 0xf7d9 }, /* R3658 (0xe4a) - EQ3_15 */
> + { 0x00000e4b, 0x040a }, /* R3659 (0xe4b) - EQ3_16 */
> + { 0x00000e4c, 0x1f14 }, /* R3660 (0xe4c) - EQ3_17 */
> + { 0x00000e4d, 0x058c }, /* R3661 (0xe4d) - EQ3_18 */
> + { 0x00000e4e, 0x0563 }, /* R3662 (0xe4e) - EQ3_19 */
> + { 0x00000e4f, 0x4000 }, /* R3663 (0xe4f) - EQ3_20 */
> + { 0x00000e50, 0x0b75 }, /* R3664 (0xe50) - EQ3_21 */
> + { 0x00000e52, 0x6318 }, /* R3666 (0xe52) - EQ4_1 */
> + { 0x00000e53, 0x6300 }, /* R3667 (0xe53) - EQ4_2 */
> + { 0x00000e54, 0x0fc8 }, /* R3668 (0xe54) - EQ4_3 */
> + { 0x00000e55, 0x03fe }, /* R3669 (0xe55) - EQ4_4 */
> + { 0x00000e56, 0x00e0 }, /* R3670 (0xe56) - EQ4_5 */
> + { 0x00000e57, 0x1ec4 }, /* R3671 (0xe57) - EQ4_6 */
> + { 0x00000e58, 0xf136 }, /* R3672 (0xe58) - EQ4_7 */
> + { 0x00000e59, 0x0409 }, /* R3673 (0xe59) - EQ4_8 */
> + { 0x00000e5a, 0x04cc }, /* R3674 (0xe5a) - EQ4_9 */
> + { 0x00000e5b, 0x1c9b }, /* R3675 (0xe5b) - EQ4_10 */
> + { 0x00000e5c, 0xf337 }, /* R3676 (0xe5c) - EQ4_11 */
> + { 0x00000e5d, 0x040b }, /* R3677 (0xe5d) - EQ4_12 */
> + { 0x00000e5e, 0x0cbb }, /* R3678 (0xe5e) - EQ4_13 */
> + { 0x00000e5f, 0x16f8 }, /* R3679 (0xe5f) - EQ4_14 */
> + { 0x00000e60, 0xf7d9 }, /* R3680 (0xe60) - EQ4_15 */
> + { 0x00000e61, 0x040a }, /* R3681 (0xe61) - EQ4_16 */
> + { 0x00000e62, 0x1f14 }, /* R3682 (0xe62) - EQ4_17 */
> + { 0x00000e63, 0x058c }, /* R3683 (0xe63) - EQ4_18 */
> + { 0x00000e64, 0x0563 }, /* R3684 (0xe64) - EQ4_19 */
> + { 0x00000e65, 0x4000 }, /* R3685 (0xe65) - EQ4_20 */
> + { 0x00000e66, 0x0b75 }, /* R3686 (0xe66) - EQ4_21 */
> + { 0x00000e80, 0x0018 }, /* R3712 (0xe80) - DRC1 ctrl1 */
> + { 0x00000e81, 0x0933 }, /* R3713 (0xe81) - DRC1 ctrl2 */
> + { 0x00000e82, 0x0018 }, /* R3714 (0xe82) - DRC1 ctrl3 */
> + { 0x00000e83, 0x0000 }, /* R3715 (0xe83) - DRC1 ctrl4 */
> + { 0x00000e84, 0x0000 }, /* R3716 (0xe84) - DRC1 ctrl5 */
> + { 0x00000e88, 0x0933 }, /* R3720 (0xe88) - DRC2 ctrl1 */
> + { 0x00000e89, 0x0018 }, /* R3721 (0xe89) - DRC2 ctrl2 */
> + { 0x00000e8a, 0x0000 }, /* R3722 (0xe8a) - DRC2 ctrl3 */
> + { 0x00000e8b, 0x0000 }, /* R3723 (0xe8b) - DRC2 ctrl4 */
> + { 0x00000e8c, 0x0040 }, /* R3724 (0xe8c) - DRC2 ctrl5 */
> + { 0x00000ec0, 0x0000 }, /* R3776 (0xec0) - HPLPF1_1 */
> + { 0x00000ec1, 0x0000 }, /* R3777 (0xec1) - HPLPF1_2 */
> + { 0x00000ec4, 0x0000 }, /* R3780 (0xec4) - HPLPF2_1 */
> + { 0x00000ec5, 0x0000 }, /* R3781 (0xec5) - HPLPF2_2 */
> + { 0x00000ec8, 0x0000 }, /* R3784 (0xec8) - HPLPF3_1 */
> + { 0x00000ec9, 0x0000 }, /* R3785 (0xec9) - HPLPF3_2 */
> + { 0x00000ecc, 0x0000 }, /* R3788 (0xecc) - HPLPF4_1 */
> + { 0x00000ecd, 0x0000 }, /* R3789 (0xecd) - HPLPF4_2 */
> + { 0x00000ed0, 0x0000 }, /* R3792 (0xed0) - ASRC2_ENABLE */
> + { 0x00000ed2, 0x0000 }, /* R3794 (0xed2) - ASRC2_RATE1 */
> + { 0x00000ed3, 0x4000 }, /* R3795 (0xed3) - ASRC2_RATE2 */
> + { 0x00000ee0, 0x0000 }, /* R3808 (0xee0) - ASRC1_ENABLE */
> + { 0x00000ee2, 0x0000 }, /* R3810 (0xee2) - ASRC1_RATE1 */
> + { 0x00000ee3, 0x4000 }, /* R3811 (0xee3) - ASRC1_RATE2 */
> + { 0x00000ef0, 0x0000 }, /* R3824 (0xef0) - ISRC 1 CTRL 1 */
> + { 0x00000ef1, 0x0001 }, /* R3825 (0xef1) - ISRC 1 CTRL 2 */
> + { 0x00000ef2, 0x0000 }, /* R3826 (0xef2) - ISRC 1 CTRL 3 */
> + { 0x00000ef3, 0x0000 }, /* R3827 (0xef3) - ISRC 2 CTRL 1 */
> + { 0x00000ef4, 0x0001 }, /* R3828 (0xef4) - ISRC 2 CTRL 2 */
> + { 0x00000ef5, 0x0000 }, /* R3829 (0xef5) - ISRC 2 CTRL 3 */
> + { 0x00000ef6, 0x0000 }, /* R3830 (0xef6) - ISRC 3 CTRL 1 */
> + { 0x00000ef7, 0x0001 }, /* R3831 (0xef7) - ISRC 3 CTRL 2 */
> + { 0x00000ef8, 0x0000 }, /* R3832 (0xef8) - ISRC 3 CTRL 3 */
> + { 0x00000ef9, 0x0000 }, /* R3833 (0xef9) - ISRC 4 CTRL 1 */
> + { 0x00000efa, 0x0001 }, /* R3834 (0xefa) - ISRC 4 CTRL 2 */
> + { 0x00000efb, 0x0000 }, /* R3835 (0xefb) - ISRC 4 CTRL 3 */
> + { 0x00000f01, 0x0000 }, /* R3841 (0xf01) - ANC_SRC */
> + { 0x00000f02, 0x0000 }, /* R3842 (0xf02) - DSP Status */
> + { 0x00000f08, 0x001c }, /* R3848 (0xf08) - ANC Coefficient */
> + { 0x00000f09, 0x0000 }, /* R3849 (0xf09) - ANC Coefficient */
> + { 0x00000f0a, 0x0000 }, /* R3850 (0xf0a) - ANC Coefficient */
> + { 0x00000f0b, 0x0000 }, /* R3851 (0xf0b) - ANC Coefficient */
> + { 0x00000f0c, 0x0000 }, /* R3852 (0xf0c) - ANC Coefficient */
> + { 0x00000f0d, 0x0000 }, /* R3853 (0xf0d) - ANC Coefficient */
> + { 0x00000f0e, 0x0000 }, /* R3854 (0xf0e) - ANC Coefficient */
> + { 0x00000f0f, 0x0000 }, /* R3855 (0xf0f) - ANC Coefficient */
> + { 0x00000f10, 0x0000 }, /* R3856 (0xf10) - ANC Coefficient */
> + { 0x00000f11, 0x0000 }, /* R3857 (0xf11) - ANC Coefficient */
> + { 0x00000f12, 0x0000 }, /* R3858 (0xf12) - ANC Coefficient */
> + { 0x00000f15, 0x0000 }, /* R3861 (0xf15) - FCL Filter Control */
> + { 0x00000f17, 0x0004 }, /* R3863 (0xf17) - FCL ADC Reformatter Control */
> + { 0x00000f18, 0x0004 }, /* R3864 (0xf18) - ANC Coefficient */
> + { 0x00000f19, 0x0002 }, /* R3865 (0xf19) - ANC Coefficient */
> + { 0x00000f1a, 0x0000 }, /* R3866 (0xf1a) - ANC Coefficient */
> + { 0x00000f1b, 0x0010 }, /* R3867 (0xf1b) - ANC Coefficient */
> + { 0x00000f1c, 0x0000 }, /* R3868 (0xf1c) - ANC Coefficient */
> + { 0x00000f1d, 0x0000 }, /* R3869 (0xf1d) - ANC Coefficient */
> + { 0x00000f1e, 0x0000 }, /* R3870 (0xf1e) - ANC Coefficient */
> + { 0x00000f1f, 0x0000 }, /* R3871 (0xf1f) - ANC Coefficient */
> + { 0x00000f20, 0x0000 }, /* R3872 (0xf20) - ANC Coefficient */
> + { 0x00000f21, 0x0000 }, /* R3873 (0xf21) - ANC Coefficient */
> + { 0x00000f22, 0x0000 }, /* R3874 (0xf22) - ANC Coefficient */
> + { 0x00000f23, 0x0000 }, /* R3875 (0xf23) - ANC Coefficient */
> + { 0x00000f24, 0x0000 }, /* R3876 (0xf24) - ANC Coefficient */
> + { 0x00000f25, 0x0000 }, /* R3877 (0xf25) - ANC Coefficient */
> + { 0x00000f26, 0x0000 }, /* R3878 (0xf26) - ANC Coefficient */
> + { 0x00000f27, 0x0000 }, /* R3879 (0xf27) - ANC Coefficient */
> + { 0x00000f28, 0x0000 }, /* R3880 (0xf28) - ANC Coefficient */
> + { 0x00000f29, 0x0000 }, /* R3881 (0xf29) - ANC Coefficient */
> + { 0x00000f2a, 0x0000 }, /* R3882 (0xf2a) - ANC Coefficient */
> + { 0x00000f2b, 0x0000 }, /* R3883 (0xf2b) - ANC Coefficient */
> + { 0x00000f2c, 0x0000 }, /* R3884 (0xf2c) - ANC Coefficient */
> + { 0x00000f2d, 0x0000 }, /* R3885 (0xf2d) - ANC Coefficient */
> + { 0x00000f2e, 0x0000 }, /* R3886 (0xf2e) - ANC Coefficient */
> + { 0x00000f2f, 0x0000 }, /* R3887 (0xf2f) - ANC Coefficient */
> + { 0x00000f30, 0x0000 }, /* R3888 (0xf30) - ANC Coefficient */
> + { 0x00000f31, 0x0000 }, /* R3889 (0xf31) - ANC Coefficient */
> + { 0x00000f32, 0x0000 }, /* R3890 (0xf32) - ANC Coefficient */
> + { 0x00000f33, 0x0000 }, /* R3891 (0xf33) - ANC Coefficient */
> + { 0x00000f34, 0x0000 }, /* R3892 (0xf34) - ANC Coefficient */
> + { 0x00000f35, 0x0000 }, /* R3893 (0xf35) - ANC Coefficient */
> + { 0x00000f36, 0x0000 }, /* R3894 (0xf36) - ANC Coefficient */
> + { 0x00000f37, 0x0000 }, /* R3895 (0xf37) - ANC Coefficient */
> + { 0x00000f38, 0x0000 }, /* R3896 (0xf38) - ANC Coefficient */
> + { 0x00000f39, 0x0000 }, /* R3897 (0xf39) - ANC Coefficient */
> + { 0x00000f3a, 0x0000 }, /* R3898 (0xf3a) - ANC Coefficient */
> + { 0x00000f3b, 0x0000 }, /* R3899 (0xf3b) - ANC Coefficient */
> + { 0x00000f3c, 0x0000 }, /* R3900 (0xf3c) - ANC Coefficient */
> + { 0x00000f3d, 0x0000 }, /* R3901 (0xf3d) - ANC Coefficient */
> + { 0x00000f3e, 0x0000 }, /* R3902 (0xf3e) - ANC Coefficient */
> + { 0x00000f3f, 0x0000 }, /* R3903 (0xf3f) - ANC Coefficient */
> + { 0x00000f40, 0x0000 }, /* R3904 (0xf40) - ANC Coefficient */
> + { 0x00000f41, 0x0000 }, /* R3905 (0xf41) - ANC Coefficient */
> + { 0x00000f42, 0x0000 }, /* R3906 (0xf42) - ANC Coefficient */
> + { 0x00000f43, 0x0000 }, /* R3907 (0xf43) - ANC Coefficient */
> + { 0x00000f44, 0x0000 }, /* R3908 (0xf44) - ANC Coefficient */
> + { 0x00000f45, 0x0000 }, /* R3909 (0xf45) - ANC Coefficient */
> + { 0x00000f46, 0x0000 }, /* R3910 (0xf46) - ANC Coefficient */
> + { 0x00000f47, 0x0000 }, /* R3911 (0xf47) - ANC Coefficient */
> + { 0x00000f48, 0x0000 }, /* R3912 (0xf48) - ANC Coefficient */
> + { 0x00000f49, 0x0000 }, /* R3913 (0xf49) - ANC Coefficient */
> + { 0x00000f4a, 0x0000 }, /* R3914 (0xf4a) - ANC Coefficient */
> + { 0x00000f4b, 0x0000 }, /* R3915 (0xf4b) - ANC Coefficient */
> + { 0x00000f4c, 0x0000 }, /* R3916 (0xf4c) - ANC Coefficient */
> + { 0x00000f4d, 0x0000 }, /* R3917 (0xf4d) - ANC Coefficient */
> + { 0x00000f4e, 0x0000 }, /* R3918 (0xf4e) - ANC Coefficient */
> + { 0x00000f4f, 0x0000 }, /* R3919 (0xf4f) - ANC Coefficient */
> + { 0x00000f50, 0x0000 }, /* R3920 (0xf50) - ANC Coefficient */
> + { 0x00000f51, 0x0000 }, /* R3921 (0xf51) - ANC Coefficient */
> + { 0x00000f52, 0x0000 }, /* R3922 (0xf52) - ANC Coefficient */
> + { 0x00000f53, 0x0000 }, /* R3923 (0xf53) - ANC Coefficient */
> + { 0x00000f54, 0x0000 }, /* R3924 (0xf54) - ANC Coefficient */
> + { 0x00000f55, 0x0000 }, /* R3925 (0xf55) - ANC Coefficient */
> + { 0x00000f56, 0x0000 }, /* R3926 (0xf56) - ANC Coefficient */
> + { 0x00000f57, 0x0000 }, /* R3927 (0xf57) - ANC Coefficient */
> + { 0x00000f58, 0x0000 }, /* R3928 (0xf58) - ANC Coefficient */
> + { 0x00000f59, 0x0000 }, /* R3929 (0xf59) - ANC Coefficient */
> + { 0x00000f5a, 0x0000 }, /* R3930 (0xf5a) - ANC Coefficient */
> + { 0x00000f5b, 0x0000 }, /* R3931 (0xf5b) - ANC Coefficient */
> + { 0x00000f5c, 0x0000 }, /* R3932 (0xf5c) - ANC Coefficient */
> + { 0x00000f5d, 0x0000 }, /* R3933 (0xf5d) - ANC Coefficient */
> + { 0x00000f5e, 0x0000 }, /* R3934 (0xf5e) - ANC Coefficient */
> + { 0x00000f5f, 0x0000 }, /* R3935 (0xf5f) - ANC Coefficient */
> + { 0x00000f60, 0x0000 }, /* R3936 (0xf60) - ANC Coefficient */
> + { 0x00000f61, 0x0000 }, /* R3937 (0xf61) - ANC Coefficient */
> + { 0x00000f62, 0x0000 }, /* R3938 (0xf62) - ANC Coefficient */
> + { 0x00000f63, 0x0000 }, /* R3939 (0xf63) - ANC Coefficient */
> + { 0x00000f64, 0x0000 }, /* R3940 (0xf64) - ANC Coefficient */
> + { 0x00000f65, 0x0000 }, /* R3941 (0xf65) - ANC Coefficient */
> + { 0x00000f66, 0x0000 }, /* R3942 (0xf66) - ANC Coefficient */
> + { 0x00000f67, 0x0000 }, /* R3943 (0xf67) - ANC Coefficient */
> + { 0x00000f68, 0x0000 }, /* R3944 (0xf68) - ANC Coefficient */
> + { 0x00000f69, 0x0000 }, /* R3945 (0xf69) - ANC Coefficient */
> + { 0x00000f71, 0x0000 }, /* R3953 (0xf71) - FCR Filter Control */
> + { 0x00000f73, 0x0004 }, /* R3955 (0xf73) - FCR ADC Reformatter Control */
> + { 0x00000f74, 0x0004 }, /* R3956 (0xf74) - ANC Coefficient */
> + { 0x00000f75, 0x0002 }, /* R3957 (0xf75) - ANC Coefficient */
> + { 0x00000f76, 0x0000 }, /* R3958 (0xf76) - ANC Coefficient */
> + { 0x00000f77, 0x0010 }, /* R3959 (0xf77) - ANC Coefficient */
> + { 0x00000f78, 0x0000 }, /* R3960 (0xf78) - ANC Coefficient */
> + { 0x00000f79, 0x0000 }, /* R3961 (0xf79) - ANC Coefficient */
> + { 0x00000f7a, 0x0000 }, /* R3962 (0xf7a) - ANC Coefficient */
> + { 0x00000f7b, 0x0000 }, /* R3963 (0xf7b) - ANC Coefficient */
> + { 0x00000f7c, 0x0000 }, /* R3964 (0xf7c) - ANC Coefficient */
> + { 0x00000f7d, 0x0000 }, /* R3965 (0xf7d) - ANC Coefficient */
> + { 0x00000f7e, 0x0000 }, /* R3966 (0xf7e) - ANC Coefficient */
> + { 0x00000f7f, 0x0000 }, /* R3967 (0xf7f) - ANC Coefficient */
> + { 0x00000f80, 0x0000 }, /* R3968 (0xf80) - ANC Coefficient */
> + { 0x00000f81, 0x0000 }, /* R3969 (0xf81) - ANC Coefficient */
> + { 0x00000f82, 0x0000 }, /* R3970 (0xf82) - ANC Coefficient */
> + { 0x00000f83, 0x0000 }, /* R3971 (0xf83) - ANC Coefficient */
> + { 0x00000f84, 0x0000 }, /* R3972 (0xf84) - ANC Coefficient */
> + { 0x00000f85, 0x0000 }, /* R3973 (0xf85) - ANC Coefficient */
> + { 0x00000f86, 0x0000 }, /* R3974 (0xf86) - ANC Coefficient */
> + { 0x00000f87, 0x0000 }, /* R3975 (0xf87) - ANC Coefficient */
> + { 0x00000f88, 0x0000 }, /* R3976 (0xf88) - ANC Coefficient */
> + { 0x00000f89, 0x0000 }, /* R3977 (0xf89) - ANC Coefficient */
> + { 0x00000f8a, 0x0000 }, /* R3978 (0xf8a) - ANC Coefficient */
> + { 0x00000f8b, 0x0000 }, /* R3979 (0xf8b) - ANC Coefficient */
> + { 0x00000f8c, 0x0000 }, /* R3980 (0xf8c) - ANC Coefficient */
> + { 0x00000f8d, 0x0000 }, /* R3981 (0xf8d) - ANC Coefficient */
> + { 0x00000f8e, 0x0000 }, /* R3982 (0xf8e) - ANC Coefficient */
> + { 0x00000f8f, 0x0000 }, /* R3983 (0xf8f) - ANC Coefficient */
> + { 0x00000f90, 0x0000 }, /* R3984 (0xf90) - ANC Coefficient */
> + { 0x00000f91, 0x0000 }, /* R3985 (0xf91) - ANC Coefficient */
> + { 0x00000f92, 0x0000 }, /* R3986 (0xf92) - ANC Coefficient */
> + { 0x00000f93, 0x0000 }, /* R3987 (0xf93) - ANC Coefficient */
> + { 0x00000f94, 0x0000 }, /* R3988 (0xf94) - ANC Coefficient */
> + { 0x00000f95, 0x0000 }, /* R3989 (0xf95) - ANC Coefficient */
> + { 0x00000f96, 0x0000 }, /* R3990 (0xf96) - ANC Coefficient */
> + { 0x00000f97, 0x0000 }, /* R3991 (0xf97) - ANC Coefficient */
> + { 0x00000f98, 0x0000 }, /* R3992 (0xf98) - ANC Coefficient */
> + { 0x00000f99, 0x0000 }, /* R3993 (0xf99) - ANC Coefficient */
> + { 0x00000f9a, 0x0000 }, /* R3994 (0xf9a) - ANC Coefficient */
> + { 0x00000f9b, 0x0000 }, /* R3995 (0xf9b) - ANC Coefficient */
> + { 0x00000f9c, 0x0000 }, /* R3996 (0xf9c) - ANC Coefficient */
> + { 0x00000f9d, 0x0000 }, /* R3997 (0xf9d) - ANC Coefficient */
> + { 0x00000f9e, 0x0000 }, /* R3998 (0xf9e) - ANC Coefficient */
> + { 0x00000f9f, 0x0000 }, /* R3999 (0xf9f) - ANC Coefficient */
> + { 0x00000fa0, 0x0000 }, /* R4000 (0xfa0) - ANC Coefficient */
> + { 0x00000fa1, 0x0000 }, /* R4001 (0xfa1) - ANC Coefficient */
> + { 0x00000fa2, 0x0000 }, /* R4002 (0xfa2) - ANC Coefficient */
> + { 0x00000fa3, 0x0000 }, /* R4003 (0xfa3) - ANC Coefficient */
> + { 0x00000fa4, 0x0000 }, /* R4004 (0xfa4) - ANC Coefficient */
> + { 0x00000fa5, 0x0000 }, /* R4005 (0xfa5) - ANC Coefficient */
> + { 0x00000fa6, 0x0000 }, /* R4006 (0xfa6) - ANC Coefficient */
> + { 0x00000fa7, 0x0000 }, /* R4007 (0xfa7) - ANC Coefficient */
> + { 0x00000fa8, 0x0000 }, /* R4008 (0xfa8) - ANC Coefficient */
> + { 0x00000fa9, 0x0000 }, /* R4009 (0xfa9) - ANC Coefficient */
> + { 0x00000faa, 0x0000 }, /* R4010 (0xfaa) - ANC Coefficient */
> + { 0x00000fab, 0x0000 }, /* R4011 (0xfab) - ANC Coefficient */
> + { 0x00000fac, 0x0000 }, /* R4012 (0xfac) - ANC Coefficient */
> + { 0x00000fad, 0x0000 }, /* R4013 (0xfad) - ANC Coefficient */
> + { 0x00000fae, 0x0000 }, /* R4014 (0xfae) - ANC Coefficient */
> + { 0x00000faf, 0x0000 }, /* R4015 (0xfaf) - ANC Coefficient */
> + { 0x00000fb0, 0x0000 }, /* R4016 (0xfb0) - ANC Coefficient */
> + { 0x00000fb1, 0x0000 }, /* R4017 (0xfb1) - ANC Coefficient */
> + { 0x00000fb2, 0x0000 }, /* R4018 (0xfb2) - ANC Coefficient */
> + { 0x00000fb3, 0x0000 }, /* R4019 (0xfb3) - ANC Coefficient */
> + { 0x00000fb4, 0x0000 }, /* R4020 (0xfb4) - ANC Coefficient */
> + { 0x00000fb5, 0x0000 }, /* R4021 (0xfb5) - ANC Coefficient */
> + { 0x00000fb6, 0x0000 }, /* R4022 (0xfb6) - ANC Coefficient */
> + { 0x00000fb7, 0x0000 }, /* R4023 (0xfb7) - ANC Coefficient */
> + { 0x00000fb8, 0x0000 }, /* R4024 (0xfb8) - ANC Coefficient */
> + { 0x00000fb9, 0x0000 }, /* R4025 (0xfb9) - ANC Coefficient */
> + { 0x00000fba, 0x0000 }, /* R4026 (0xfba) - ANC Coefficient */
> + { 0x00000fbb, 0x0000 }, /* R4027 (0xfbb) - ANC Coefficient */
> + { 0x00000fbc, 0x0000 }, /* R4028 (0xfbc) - ANC Coefficient */
> + { 0x00000fbd, 0x0000 }, /* R4029 (0xfbd) - ANC Coefficient */
> + { 0x00000fbe, 0x0000 }, /* R4030 (0xfbe) - ANC Coefficient */
> + { 0x00000fbf, 0x0000 }, /* R4031 (0xfbf) - ANC Coefficient */
> + { 0x00000fc0, 0x0000 }, /* R4032 (0xfc0) - ANC Coefficient */
> + { 0x00000fc1, 0x0000 }, /* R4033 (0xfc1) - ANC Coefficient */
> + { 0x00000fc2, 0x0000 }, /* R4034 (0xfc2) - ANC Coefficient */
> + { 0x00000fc3, 0x0000 }, /* R4035 (0xfc3) - ANC Coefficient */
> + { 0x00000fc4, 0x0000 }, /* R4036 (0xfc4) - ANC Coefficient */
> + { 0x00000fc5, 0x0000 }, /* R4037 (0xfc5) - ANC Coefficient */
> + { 0x00001300, 0x0000 }, /* R4864 (0x1300) - DAC Comp 1 */
> + { 0x00001302, 0x0000 }, /* R4866 (0x1302) - DAC Comp 2 */
> + { 0x00001380, 0x0000 }, /* R4992 (0x1380) - FRF Coefficient 1L 1 */
> + { 0x00001381, 0x0000 }, /* R4993 (0x1381) - FRF Coefficient 1L 2 */
> + { 0x00001382, 0x0000 }, /* R4994 (0x1382) - FRF Coefficient 1L 3 */
> + { 0x00001383, 0x0000 }, /* R4995 (0x1383) - FRF Coefficient 1L 4 */
> + { 0x00001390, 0x0000 }, /* R5008 (0x1390) - FRF Coefficient 1R 1 */
> + { 0x00001391, 0x0000 }, /* R5009 (0x1391) - FRF Coefficient 1R 2 */
> + { 0x00001392, 0x0000 }, /* R5010 (0x1392) - FRF Coefficient 1R 3 */
> + { 0x00001393, 0x0000 }, /* R5011 (0x1393) - FRF Coefficient 1R 4 */
> + { 0x000013a0, 0x0000 }, /* R5024 (0x13a0) - FRF Coefficient 2L 1 */
> + { 0x000013a1, 0x0000 }, /* R5025 (0x13a1) - FRF Coefficient 2L 2 */
> + { 0x000013a2, 0x0000 }, /* R5026 (0x13a2) - FRF Coefficient 2L 3 */
> + { 0x000013a3, 0x0000 }, /* R5027 (0x13a3) - FRF Coefficient 2L 4 */
> + { 0x000013b0, 0x0000 }, /* R5040 (0x13b0) - FRF Coefficient 2R 1 */
> + { 0x000013b1, 0x0000 }, /* R5041 (0x13b1) - FRF Coefficient 2R 2 */
> + { 0x000013b2, 0x0000 }, /* R5042 (0x13b2) - FRF Coefficient 2R 3 */
> + { 0x000013b3, 0x0000 }, /* R5043 (0x13b3) - FRF Coefficient 2R 4 */
> + { 0x000013c0, 0x0000 }, /* R5040 (0x13c0) - FRF Coefficient 3L 1 */
> + { 0x000013c1, 0x0000 }, /* R5041 (0x13c1) - FRF Coefficient 3L 2 */
> + { 0x000013c2, 0x0000 }, /* R5042 (0x13c2) - FRF Coefficient 3L 3 */
> + { 0x000013c3, 0x0000 }, /* R5043 (0x13c3) - FRF Coefficient 3L 4 */
> + { 0x000013d0, 0x0000 }, /* R5072 (0x13d0) - FRF Coefficient 3R 1 */
> + { 0x000013d1, 0x0000 }, /* R5073 (0x13d1) - FRF Coefficient 3R 2 */
> + { 0x000013d2, 0x0000 }, /* R5074 (0x13d2) - FRF Coefficient 3R 3 */
> + { 0x000013d3, 0x0000 }, /* R5075 (0x13d3) - FRF Coefficient 3R 4 */
> + { 0x000013e0, 0x0000 }, /* R5088 (0x13e0) - FRF Coefficient 4L 1 */
> + { 0x000013e1, 0x0000 }, /* R5089 (0x13e1) - FRF Coefficient 4L 2 */
> + { 0x000013e2, 0x0000 }, /* R5090 (0x13e2) - FRF Coefficient 4L 3 */
> + { 0x000013e3, 0x0000 }, /* R5091 (0x13e3) - FRF Coefficient 4L 4 */
> + { 0x000013f0, 0x0000 }, /* R5104 (0x13f0) - FRF Coefficient 4R 1 */
> + { 0x000013f1, 0x0000 }, /* R5105 (0x13f1) - FRF Coefficient 4R 2 */
> + { 0x000013f2, 0x0000 }, /* R5106 (0x13f2) - FRF Coefficient 4R 3 */
> + { 0x000013f3, 0x0000 }, /* R5107 (0x13f3) - FRF Coefficient 4R 4 */
> + { 0x00001400, 0x0000 }, /* R5120 (0x1400) - FRF Coefficient 5L 1 */
> + { 0x00001401, 0x0000 }, /* R5121 (0x1401) - FRF Coefficient 5L 2 */
> + { 0x00001402, 0x0000 }, /* R5122 (0x1402) - FRF Coefficient 5L 3 */
> + { 0x00001403, 0x0000 }, /* R5123 (0x1403) - FRF Coefficient 5L 4 */
> + { 0x00001410, 0x0000 }, /* R5136 (0x1410) - FRF Coefficient 5R 1 */
> + { 0x00001411, 0x0000 }, /* R5137 (0x1411) - FRF Coefficient 5R 2 */
> + { 0x00001412, 0x0000 }, /* R5138 (0x1412) - FRF Coefficient 5R 3 */
> + { 0x00001413, 0x0000 }, /* R5139 (0x1413) - FRF Coefficient 5R 4 */
> + { 0x00001420, 0x0000 }, /* R5152 (0x1420) - FRF Coefficient 6L 1 */
> + { 0x00001421, 0x0000 }, /* R5153 (0x1421) - FRF Coefficient 6L 2 */
> + { 0x00001422, 0x0000 }, /* R5154 (0x1422) - FRF Coefficient 6L 3 */
> + { 0x00001423, 0x0000 }, /* R5155 (0x1423) - FRF Coefficient 6L 4 */
> + { 0x00001430, 0x0000 }, /* R5168 (0x1430) - FRF Coefficient 6R 1 */
> + { 0x00001431, 0x0000 }, /* R5169 (0x1431) - FRF Coefficient 6R 2 */
> + { 0x00001432, 0x0000 }, /* R5170 (0x1432) - FRF Coefficient 6R 3 */
> + { 0x00001433, 0x0000 }, /* R5171 (0x1433) - FRF Coefficient 6R 4 */
> + { 0x00001700, 0x2001 }, /* R5888 (0x1700) - GPIO1 Control 1 */
> + { 0x00001701, 0xe000 }, /* R5889 (0x1701) - GPIO1 Control 2 */
> + { 0x00001702, 0x2001 }, /* R5890 (0x1702) - GPIO2 Control 1 */
> + { 0x00001703, 0xe000 }, /* R5891 (0x1703) - GPIO2 Control 2 */
> + { 0x00001704, 0x2001 }, /* R5892 (0x1704) - GPIO3 Control 1 */
> + { 0x00001705, 0xe000 }, /* R5893 (0x1705) - GPIO3 Control 2 */
> + { 0x00001706, 0x2001 }, /* R5894 (0x1706) - GPIO4 Control 1 */
> + { 0x00001707, 0xe000 }, /* R5895 (0x1707) - GPIO4 Control 2 */
> + { 0x00001708, 0x2001 }, /* R5896 (0x1708) - GPIO5 Control 1 */
> + { 0x00001709, 0xe000 }, /* R5897 (0x1709) - GPIO5 Control 2 */
> + { 0x0000170a, 0x2001 }, /* R5898 (0x170a) - GPIO6 Control 1 */
> + { 0x0000170b, 0xe000 }, /* R5899 (0x170b) - GPIO6 Control 2 */
> + { 0x0000170c, 0x2001 }, /* R5900 (0x170c) - GPIO7 Control 1 */
> + { 0x0000170d, 0xe000 }, /* R5901 (0x170d) - GPIO7 Control 2 */
> + { 0x0000170e, 0x2001 }, /* R5902 (0x170e) - GPIO8 Control 1 */
> + { 0x0000170f, 0xe000 }, /* R5903 (0x170f) - GPIO8 Control 2 */
> + { 0x00001710, 0x2001 }, /* R5904 (0x1710) - GPIO9 Control 1 */
> + { 0x00001711, 0xe000 }, /* R5905 (0x1711) - GPIO9 Control 2 */
> + { 0x00001712, 0x2001 }, /* R5906 (0x1712) - GPIO10 Control 1 */
> + { 0x00001713, 0xe000 }, /* R5907 (0x1713) - GPIO10 Control 2 */
> + { 0x00001714, 0x2001 }, /* R5908 (0x1714) - GPIO11 Control 1 */
> + { 0x00001715, 0xe000 }, /* R5909 (0x1715) - GPIO11 Control 2 */
> + { 0x00001716, 0x2001 }, /* R5910 (0x1716) - GPIO12 Control 1 */
> + { 0x00001717, 0xe000 }, /* R5911 (0x1717) - GPIO12 Control 2 */
> + { 0x00001718, 0x2001 }, /* R5912 (0x1718) - GPIO13 Control 1 */
> + { 0x00001719, 0xE000 }, /* R5913 (0x1719) - GPIO13 Control 2 */
> + { 0x0000171a, 0x2001 }, /* R5914 (0x171a) - GPIO14 Control 1 */
> + { 0x0000171b, 0xE000 }, /* R5915 (0x171b) - GPIO14 Control 2 */
> + { 0x0000171c, 0x2001 }, /* R5916 (0x171c) - GPIO15 Control 1 */
> + { 0x0000171d, 0xE000 }, /* R5917 (0x171d) - GPIO15 Control 2 */
> + { 0x0000171e, 0x2001 }, /* R5918 (0x171e) - GPIO16 Control 1 */
> + { 0x0000171f, 0xE000 }, /* R5919 (0x171f) - GPIO16 Control 2 */
> + { 0x00001720, 0x2001 }, /* R5920 (0x1720) - GPIO17 Control 1 */
> + { 0x00001721, 0xe000 }, /* R5921 (0x1721) - GPIO17 Control 2 */
> + { 0x00001722, 0x2001 }, /* R5922 (0x1722) - GPIO18 Control 1 */
> + { 0x00001723, 0xe000 }, /* R5923 (0x1723) - GPIO18 Control 2 */
> + { 0x00001724, 0x2001 }, /* R5924 (0x1724) - GPIO19 Control 1 */
> + { 0x00001725, 0xe000 }, /* R5925 (0x1725) - GPIO19 Control 2 */
> + { 0x00001726, 0x2001 }, /* R5926 (0x1726) - GPIO20 Control 1 */
> + { 0x00001727, 0xe000 }, /* R5927 (0x1727) - GPIO20 Control 2 */
> + { 0x00001728, 0x2001 }, /* R5928 (0x1728) - GPIO21 Control 1 */
> + { 0x00001729, 0xe000 }, /* R5929 (0x1729) - GPIO21 Control 2 */
> + { 0x0000172a, 0x2001 }, /* R5930 (0x172a) - GPIO22 Control 1 */
> + { 0x0000172b, 0xe000 }, /* R5931 (0x172b) - GPIO22 Control 2 */
> + { 0x0000172c, 0x2001 }, /* R5932 (0x172c) - GPIO23 Control 1 */
> + { 0x0000172d, 0xe000 }, /* R5933 (0x172d) - GPIO23 Control 2 */
> + { 0x0000172e, 0x2001 }, /* R5934 (0x172e) - GPIO24 Control 1 */
> + { 0x0000172f, 0xe000 }, /* R5935 (0x172f) - GPIO24 Control 2 */
> + { 0x00001730, 0x2001 }, /* R5936 (0x1730) - GPIO25 Control 1 */
> + { 0x00001731, 0xe000 }, /* R5937 (0x1731) - GPIO25 Control 2 */
> + { 0x00001732, 0x2001 }, /* R5938 (0x1732) - GPIO26 Control 1 */
> + { 0x00001733, 0xe000 }, /* R5939 (0x1733) - GPIO26 Control 2 */
> + { 0x00001734, 0x2001 }, /* R5940 (0x1734) - GPIO27 Control 1 */
> + { 0x00001735, 0xe000 }, /* R5941 (0x1735) - GPIO27 Control 2 */
> + { 0x00001736, 0x2001 }, /* R5942 (0x1736) - GPIO28 Control 1 */
> + { 0x00001737, 0xe000 }, /* R5943 (0x1737) - GPIO28 Control 2 */
> + { 0x00001738, 0x2001 }, /* R5944 (0x1738) - GPIO29 Control 1 */
> + { 0x00001739, 0xe000 }, /* R5945 (0x1739) - GPIO29 Control 2 */
> + { 0x0000173a, 0x2001 }, /* R5946 (0x173a) - GPIO30 Control 1 */
> + { 0x0000173b, 0xe000 }, /* R5947 (0x173b) - GPIO30 Control 2 */
> + { 0x0000173c, 0x2001 }, /* R5948 (0x173c) - GPIO31 Control 1 */
> + { 0x0000173d, 0xe000 }, /* R5949 (0x173d) - GPIO31 Control 2 */
> + { 0x0000173e, 0x2001 }, /* R5950 (0x173e) - GPIO32 Control 1 */
> + { 0x0000173f, 0xe000 }, /* R5951 (0x173f) - GPIO32 Control 2 */
> + { 0x00001740, 0x2001 }, /* R5952 (0x1740) - GPIO33 Control 1 */
> + { 0x00001741, 0xe000 }, /* R5953 (0x1741) - GPIO33 Control 2 */
> + { 0x00001742, 0x2001 }, /* R5954 (0x1742) - GPIO34 Control 1 */
> + { 0x00001743, 0xe000 }, /* R5955 (0x1743) - GPIO34 Control 2 */
> + { 0x00001744, 0x2001 }, /* R5956 (0x1744) - GPIO35 Control 1 */
> + { 0x00001745, 0xe000 }, /* R5957 (0x1745) - GPIO35 Control 2 */
> + { 0x00001746, 0x2001 }, /* R5958 (0x1746) - GPIO36 Control 1 */
> + { 0x00001747, 0xe000 }, /* R5959 (0x1747) - GPIO36 Control 2 */
> + { 0x00001748, 0x2001 }, /* R5960 (0x1748) - GPIO37 Control 1 */
> + { 0x00001749, 0xe000 }, /* R5961 (0x1749) - GPIO37 Control 2 */
> + { 0x0000174a, 0x2001 }, /* R5962 (0x174a) - GPIO38 Control 1 */
> + { 0x0000174b, 0xe000 }, /* R5963 (0x174b) - GPIO38 Control 2 */
> + { 0x0000174c, 0x2001 }, /* R5964 (0x174c) - GPIO39 Control 1 */
> + { 0x0000174d, 0xe000 }, /* R5965 (0x174d) - GPIO39 Control 2 */
> + { 0x0000174e, 0x2001 }, /* R5966 (0x174e) - GPIO40 Control 1 */
> + { 0x0000174f, 0xe000 }, /* R5967 (0x174f) - GPIO40 Control 2 */
> + { 0x00001840, 0xffff }, /* R6208 (0x1840) - IRQ1 Mask 1 */
> + { 0x00001841, 0xffff }, /* R6209 (0x1841) - IRQ1 Mask 2 */
> + { 0x00001842, 0xffff }, /* R6210 (0x1842) - IRQ1 Mask 3 */
> + { 0x00001843, 0xffff }, /* R6211 (0x1843) - IRQ1 Mask 4 */
> + { 0x00001844, 0xffff }, /* R6212 (0x1844) - IRQ1 Mask 5 */
> + { 0x00001845, 0xffff }, /* R6213 (0x1845) - IRQ1 Mask 6 */
> + { 0x00001846, 0xffff }, /* R6214 (0x1846) - IRQ1 Mask 7 */
> + { 0x00001847, 0xffff }, /* R6215 (0x1847) - IRQ1 Mask 8 */
> + { 0x00001848, 0xffff }, /* R6216 (0x1848) - IRQ1 Mask 9 */
> + { 0x00001849, 0xffff }, /* R6217 (0x1849) - IRQ1 Mask 10 */
> + { 0x0000184a, 0xffff }, /* R6218 (0x184a) - IRQ1 Mask 11 */
> + { 0x0000184b, 0xffff }, /* R6219 (0x184b) - IRQ1 Mask 12 */
> + { 0x0000184c, 0xffff }, /* R6220 (0x184c) - IRQ1 Mask 13 */
> + { 0x0000184d, 0xffff }, /* R6221 (0x184d) - IRQ1 Mask 14 */
> + { 0x0000184e, 0xffff }, /* R6222 (0x184e) - IRQ1 Mask 15 */
> + { 0x0000184f, 0xffff }, /* R6223 (0x184f) - IRQ1 Mask 16 */
> + { 0x00001850, 0xffff }, /* R6224 (0x1850) - IRQ1 Mask 17 */
> + { 0x00001851, 0xffff }, /* R6225 (0x1851) - IRQ1 Mask 18 */
> + { 0x00001852, 0xffff }, /* R6226 (0x1852) - IRQ1 Mask 19 */
> + { 0x00001853, 0xffff }, /* R6227 (0x1853) - IRQ1 Mask 20 */
> + { 0x00001854, 0xffff }, /* R6228 (0x1854) - IRQ1 Mask 21 */
> + { 0x00001855, 0xffff }, /* R6229 (0x1855) - IRQ1 Mask 22 */
> + { 0x00001856, 0xffff }, /* R6230 (0x1856) - IRQ1 Mask 23 */
> + { 0x00001857, 0xffff }, /* R6231 (0x1857) - IRQ1 Mask 24 */
> + { 0x00001858, 0xffff }, /* R6232 (0x1858) - IRQ1 Mask 25 */
> + { 0x00001859, 0xffff }, /* R6233 (0x1859) - IRQ1 Mask 26 */
> + { 0x0000185a, 0xffff }, /* R6234 (0x185a) - IRQ1 Mask 27 */
> + { 0x0000185b, 0xffff }, /* R6235 (0x185b) - IRQ1 Mask 28 */
> + { 0x0000185c, 0xffff }, /* R6236 (0x185c) - IRQ1 Mask 29 */
> + { 0x0000185d, 0xffff }, /* R6237 (0x185d) - IRQ1 Mask 30 */
> + { 0x0000185e, 0xffff }, /* R6238 (0x185e) - IRQ1 Mask 31 */
> + { 0x0000185f, 0xffff }, /* R6239 (0x185f) - IRQ1 Mask 32 */
> + { 0x00001860, 0xffff }, /* R6240 (0x1860) - IRQ1 Mask 33 */
> + { 0x00001a06, 0x0000 }, /* R6662 (0x1a06) - Interrupt Debounce 7 */
> + { 0x00001a80, 0x4400 }, /* R6784 (0x1a80) - IRQ1 CTRL */
> +};
> +
> +static bool cs47l85_is_adsp_memory(unsigned int reg)
> +{
> + switch (reg) {
> + case 0x080000 ... 0x085ffe:
> + case 0x0a0000 ... 0x0a7ffe:
> + case 0x0c0000 ... 0x0c1ffe:
> + case 0x0e0000 ... 0x0e1ffe:
> + case 0x100000 ... 0x10effe:
> + case 0x120000 ... 0x12bffe:
> + case 0x136000 ... 0x137ffe:
> + case 0x140000 ... 0x14bffe:
> + case 0x160000 ... 0x161ffe:
> + case 0x180000 ... 0x18effe:
> + case 0x1a0000 ... 0x1b1ffe:
> + case 0x1b6000 ... 0x1b7ffe:
> + case 0x1c0000 ... 0x1cbffe:
> + case 0x1e0000 ... 0x1e1ffe:
> + case 0x200000 ... 0x208ffe:
> + case 0x220000 ... 0x231ffe:
> + case 0x240000 ... 0x24bffe:
> + case 0x260000 ... 0x261ffe:
> + case 0x280000 ... 0x288ffe:
> + case 0x2a0000 ... 0x2a9ffe:
> + case 0x2c0000 ... 0x2c3ffe:
> + case 0x2e0000 ... 0x2e1ffe:
> + case 0x300000 ... 0x305ffe:
> + case 0x320000 ... 0x333ffe:
> + case 0x340000 ... 0x34bffe:
> + case 0x360000 ... 0x361ffe:
> + case 0x380000 ... 0x388ffe:
> + case 0x3a0000 ... 0x3a7ffe:
> + case 0x3c0000 ... 0x3c1ffe:
> + case 0x3e0000 ... 0x3e1ffe:
> + return true;
> + default:
> + return false;
> + }
> +}
> +
> +static bool cs47l85_16bit_readable_register(struct device *dev,
> + unsigned int reg)
> +{
> + switch (reg) {
> + case MADERA_SOFTWARE_RESET:
> + case MADERA_HARDWARE_REVISION:
> + case MADERA_WRITE_SEQUENCER_CTRL_0:
> + case MADERA_WRITE_SEQUENCER_CTRL_1:
> + case MADERA_WRITE_SEQUENCER_CTRL_2:
> + case MADERA_TONE_GENERATOR_1:
> + case MADERA_TONE_GENERATOR_2:
> + case MADERA_TONE_GENERATOR_3:
> + case MADERA_TONE_GENERATOR_4:
> + case MADERA_TONE_GENERATOR_5:
> + case MADERA_PWM_DRIVE_1:
> + case MADERA_PWM_DRIVE_2:
> + case MADERA_PWM_DRIVE_3:
> + case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_1:
> + case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_2:
> + case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_3:
> + case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_4:
> + case MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_1:
> + case MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_2:
> + case MADERA_HAPTICS_CONTROL_1:
> + case MADERA_HAPTICS_CONTROL_2:
> + case MADERA_HAPTICS_PHASE_1_INTENSITY:
> + case MADERA_HAPTICS_PHASE_1_DURATION:
> + case MADERA_HAPTICS_PHASE_2_INTENSITY:
> + case MADERA_HAPTICS_PHASE_2_DURATION:
> + case MADERA_HAPTICS_PHASE_3_INTENSITY:
> + case MADERA_HAPTICS_PHASE_3_DURATION:
> + case MADERA_HAPTICS_STATUS:
> + case MADERA_COMFORT_NOISE_GENERATOR:
> + case MADERA_CLOCK_32K_1:
> + case MADERA_SYSTEM_CLOCK_1:
> + case MADERA_SAMPLE_RATE_1:
> + case MADERA_SAMPLE_RATE_2:
> + case MADERA_SAMPLE_RATE_3:
> + case MADERA_SAMPLE_RATE_1_STATUS:
> + case MADERA_SAMPLE_RATE_2_STATUS:
> + case MADERA_SAMPLE_RATE_3_STATUS:
> + case MADERA_ASYNC_CLOCK_1:
> + case MADERA_ASYNC_SAMPLE_RATE_1:
> + case MADERA_ASYNC_SAMPLE_RATE_1_STATUS:
> + case MADERA_ASYNC_SAMPLE_RATE_2:
> + case MADERA_ASYNC_SAMPLE_RATE_2_STATUS:
> + case MADERA_DSP_CLOCK_1:
> + case MADERA_DSP_CLOCK_2:
> + case MADERA_OUTPUT_SYSTEM_CLOCK:
> + case MADERA_OUTPUT_ASYNC_CLOCK:
> + case MADERA_RATE_ESTIMATOR_1:
> + case MADERA_RATE_ESTIMATOR_2:
> + case MADERA_RATE_ESTIMATOR_3:
> + case MADERA_RATE_ESTIMATOR_4:
> + case MADERA_RATE_ESTIMATOR_5:
> + case MADERA_FLL1_CONTROL_1:
> + case MADERA_FLL1_CONTROL_2:
> + case MADERA_FLL1_CONTROL_3:
> + case MADERA_FLL1_CONTROL_4:
> + case MADERA_FLL1_CONTROL_5:
> + case MADERA_FLL1_CONTROL_6:
> + case MADERA_FLL1_CONTROL_7:
> + case MADERA_FLL1_LOOP_FILTER_TEST_1:
> + case MADERA_FLL1_SYNCHRONISER_1:
> + case MADERA_FLL1_SYNCHRONISER_2:
> + case MADERA_FLL1_SYNCHRONISER_3:
> + case MADERA_FLL1_SYNCHRONISER_4:
> + case MADERA_FLL1_SYNCHRONISER_5:
> + case MADERA_FLL1_SYNCHRONISER_6:
> + case MADERA_FLL1_SYNCHRONISER_7:
> + case MADERA_FLL1_SPREAD_SPECTRUM:
> + case MADERA_FLL1_GPIO_CLOCK:
> + case MADERA_FLL2_CONTROL_1:
> + case MADERA_FLL2_CONTROL_2:
> + case MADERA_FLL2_CONTROL_3:
> + case MADERA_FLL2_CONTROL_4:
> + case MADERA_FLL2_CONTROL_5:
> + case MADERA_FLL2_CONTROL_6:
> + case MADERA_FLL2_CONTROL_7:
> + case MADERA_FLL2_LOOP_FILTER_TEST_1:
> + case MADERA_FLL2_SYNCHRONISER_1:
> + case MADERA_FLL2_SYNCHRONISER_2:
> + case MADERA_FLL2_SYNCHRONISER_3:
> + case MADERA_FLL2_SYNCHRONISER_4:
> + case MADERA_FLL2_SYNCHRONISER_5:
> + case MADERA_FLL2_SYNCHRONISER_6:
> + case MADERA_FLL2_SYNCHRONISER_7:
> + case MADERA_FLL2_SPREAD_SPECTRUM:
> + case MADERA_FLL2_GPIO_CLOCK:
> + case MADERA_FLL3_CONTROL_1:
> + case MADERA_FLL3_CONTROL_2:
> + case MADERA_FLL3_CONTROL_3:
> + case MADERA_FLL3_CONTROL_4:
> + case MADERA_FLL3_CONTROL_5:
> + case MADERA_FLL3_CONTROL_6:
> + case MADERA_FLL3_CONTROL_7:
> + case MADERA_FLL3_LOOP_FILTER_TEST_1:
> + case MADERA_FLL3_SYNCHRONISER_1:
> + case MADERA_FLL3_SYNCHRONISER_2:
> + case MADERA_FLL3_SYNCHRONISER_3:
> + case MADERA_FLL3_SYNCHRONISER_4:
> + case MADERA_FLL3_SYNCHRONISER_5:
> + case MADERA_FLL3_SYNCHRONISER_6:
> + case MADERA_FLL3_SYNCHRONISER_7:
> + case MADERA_FLL3_SPREAD_SPECTRUM:
> + case MADERA_FLL3_GPIO_CLOCK:
> + case MADERA_MIC_CHARGE_PUMP_1:
> + case MADERA_HP_CHARGE_PUMP_8:
> + case MADERA_LDO1_CONTROL_1:
> + case MADERA_LDO2_CONTROL_1:
> + case MADERA_MIC_BIAS_CTRL_1:
> + case MADERA_MIC_BIAS_CTRL_2:
> + case MADERA_MIC_BIAS_CTRL_3:
> + case MADERA_MIC_BIAS_CTRL_4:
> + case MADERA_HP_CTRL_1L:
> + case MADERA_HP_CTRL_1R:
> + case MADERA_HP_CTRL_2L:
> + case MADERA_HP_CTRL_2R:
> + case MADERA_HP_CTRL_3L:
> + case MADERA_HP_CTRL_3R:
> + case MADERA_DCS_HP1L_CONTROL:
> + case MADERA_DCS_HP1R_CONTROL:
> + case MADERA_EDRE_HP_STEREO_CONTROL:
> + case MADERA_ACCESSORY_DETECT_MODE_1:
> + case MADERA_HEADPHONE_DETECT_1:
> + case MADERA_HEADPHONE_DETECT_2:
> + case MADERA_HEADPHONE_DETECT_3:
> + case MADERA_HEADPHONE_DETECT_5:
> + case MADERA_MICD_CLAMP_CONTROL:
> + case MADERA_MIC_DETECT_1_CONTROL_1:
> + case MADERA_MIC_DETECT_1_CONTROL_2:
> + case MADERA_MIC_DETECT_1_CONTROL_3:
> + case MADERA_MIC_DETECT_1_LEVEL_1:
> + case MADERA_MIC_DETECT_1_LEVEL_2:
> + case MADERA_MIC_DETECT_1_LEVEL_3:
> + case MADERA_MIC_DETECT_1_LEVEL_4:
> + case MADERA_MIC_DETECT_1_CONTROL_4:
> + case MADERA_GP_SWITCH_1:
> + case MADERA_JACK_DETECT_ANALOGUE:
> + case MADERA_INPUT_ENABLES:
> + case MADERA_INPUT_ENABLES_STATUS:
> + case MADERA_INPUT_RATE:
> + case MADERA_INPUT_VOLUME_RAMP:
> + case MADERA_HPF_CONTROL:
> + case MADERA_IN1L_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_1L:
> + case MADERA_DMIC1L_CONTROL:
> + case MADERA_IN1R_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_1R:
> + case MADERA_DMIC1R_CONTROL:
> + case MADERA_IN2L_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_2L:
> + case MADERA_DMIC2L_CONTROL:
> + case MADERA_IN2R_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_2R:
> + case MADERA_DMIC2R_CONTROL:
> + case MADERA_IN3L_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_3L:
> + case MADERA_DMIC3L_CONTROL:
> + case MADERA_IN3R_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_3R:
> + case MADERA_DMIC3R_CONTROL:
> + case MADERA_IN4L_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_4L:
> + case MADERA_DMIC4L_CONTROL:
> + case MADERA_IN4R_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_4R:
> + case MADERA_DMIC4R_CONTROL:
> + case MADERA_IN5L_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_5L:
> + case MADERA_DMIC5L_CONTROL:
> + case MADERA_IN5R_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_5R:
> + case MADERA_DMIC5R_CONTROL:
> + case MADERA_IN6L_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_6L:
> + case MADERA_DMIC6L_CONTROL:
> + case MADERA_IN6R_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_6R:
> + case MADERA_DMIC6R_CONTROL:
> + case MADERA_OUTPUT_ENABLES_1:
> + case MADERA_OUTPUT_STATUS_1:
> + case MADERA_RAW_OUTPUT_STATUS_1:
> + case MADERA_OUTPUT_RATE_1:
> + case MADERA_OUTPUT_VOLUME_RAMP:
> + case MADERA_OUTPUT_PATH_CONFIG_1L:
> + case MADERA_DAC_DIGITAL_VOLUME_1L:
> + case MADERA_NOISE_GATE_SELECT_1L:
> + case MADERA_OUTPUT_PATH_CONFIG_1R:
> + case MADERA_DAC_DIGITAL_VOLUME_1R:
> + case MADERA_NOISE_GATE_SELECT_1R:
> + case MADERA_OUTPUT_PATH_CONFIG_2L:
> + case MADERA_DAC_DIGITAL_VOLUME_2L:
> + case MADERA_NOISE_GATE_SELECT_2L:
> + case MADERA_OUTPUT_PATH_CONFIG_2R:
> + case MADERA_DAC_DIGITAL_VOLUME_2R:
> + case MADERA_NOISE_GATE_SELECT_2R:
> + case MADERA_OUTPUT_PATH_CONFIG_3L:
> + case MADERA_DAC_DIGITAL_VOLUME_3L:
> + case MADERA_NOISE_GATE_SELECT_3L:
> + case MADERA_OUTPUT_PATH_CONFIG_3R:
> + case MADERA_DAC_DIGITAL_VOLUME_3R:
> + case MADERA_NOISE_GATE_SELECT_3R:
> + case MADERA_OUTPUT_PATH_CONFIG_4L:
> + case MADERA_DAC_DIGITAL_VOLUME_4L:
> + case MADERA_NOISE_GATE_SELECT_4L:
> + case MADERA_OUTPUT_PATH_CONFIG_4R:
> + case MADERA_DAC_DIGITAL_VOLUME_4R:
> + case MADERA_NOISE_GATE_SELECT_4R:
> + case MADERA_OUTPUT_PATH_CONFIG_5L:
> + case MADERA_DAC_DIGITAL_VOLUME_5L:
> + case MADERA_NOISE_GATE_SELECT_5L:
> + case MADERA_OUTPUT_PATH_CONFIG_5R:
> + case MADERA_DAC_DIGITAL_VOLUME_5R:
> + case MADERA_NOISE_GATE_SELECT_5R:
> + case MADERA_OUTPUT_PATH_CONFIG_6L:
> + case MADERA_DAC_DIGITAL_VOLUME_6L:
> + case MADERA_NOISE_GATE_SELECT_6L:
> + case MADERA_OUTPUT_PATH_CONFIG_6R:
> + case MADERA_DAC_DIGITAL_VOLUME_6R:
> + case MADERA_NOISE_GATE_SELECT_6R:
> + case MADERA_DRE_ENABLE:
> + case MADERA_EDRE_ENABLE:
> + case MADERA_EDRE_MANUAL:
> + case MADERA_DAC_AEC_CONTROL_1:
> + case MADERA_DAC_AEC_CONTROL_2:
> + case MADERA_NOISE_GATE_CONTROL:
> + case MADERA_PDM_SPK1_CTRL_1:
> + case MADERA_PDM_SPK1_CTRL_2:
> + case MADERA_PDM_SPK2_CTRL_1:
> + case MADERA_PDM_SPK2_CTRL_2:
> + case MADERA_HP1_SHORT_CIRCUIT_CTRL:
> + case MADERA_HP2_SHORT_CIRCUIT_CTRL:
> + case MADERA_HP3_SHORT_CIRCUIT_CTRL:
> + case MADERA_HP_TEST_CTRL_5:
> + case MADERA_HP_TEST_CTRL_6:
> + case MADERA_AIF1_BCLK_CTRL:
> + case MADERA_AIF1_TX_PIN_CTRL:
> + case MADERA_AIF1_RX_PIN_CTRL:
> + case MADERA_AIF1_RATE_CTRL:
> + case MADERA_AIF1_FORMAT:
> + case MADERA_AIF1_RX_BCLK_RATE:
> + case MADERA_AIF1_FRAME_CTRL_1:
> + case MADERA_AIF1_FRAME_CTRL_2:
> + case MADERA_AIF1_FRAME_CTRL_3:
> + case MADERA_AIF1_FRAME_CTRL_4:
> + case MADERA_AIF1_FRAME_CTRL_5:
> + case MADERA_AIF1_FRAME_CTRL_6:
> + case MADERA_AIF1_FRAME_CTRL_7:
> + case MADERA_AIF1_FRAME_CTRL_8:
> + case MADERA_AIF1_FRAME_CTRL_9:
> + case MADERA_AIF1_FRAME_CTRL_10:
> + case MADERA_AIF1_FRAME_CTRL_11:
> + case MADERA_AIF1_FRAME_CTRL_12:
> + case MADERA_AIF1_FRAME_CTRL_13:
> + case MADERA_AIF1_FRAME_CTRL_14:
> + case MADERA_AIF1_FRAME_CTRL_15:
> + case MADERA_AIF1_FRAME_CTRL_16:
> + case MADERA_AIF1_FRAME_CTRL_17:
> + case MADERA_AIF1_FRAME_CTRL_18:
> + case MADERA_AIF1_TX_ENABLES:
> + case MADERA_AIF1_RX_ENABLES:
> + case MADERA_AIF2_BCLK_CTRL:
> + case MADERA_AIF2_TX_PIN_CTRL:
> + case MADERA_AIF2_RX_PIN_CTRL:
> + case MADERA_AIF2_RATE_CTRL:
> + case MADERA_AIF2_FORMAT:
> + case MADERA_AIF2_RX_BCLK_RATE:
> + case MADERA_AIF2_FRAME_CTRL_1:
> + case MADERA_AIF2_FRAME_CTRL_2:
> + case MADERA_AIF2_FRAME_CTRL_3:
> + case MADERA_AIF2_FRAME_CTRL_4:
> + case MADERA_AIF2_FRAME_CTRL_5:
> + case MADERA_AIF2_FRAME_CTRL_6:
> + case MADERA_AIF2_FRAME_CTRL_7:
> + case MADERA_AIF2_FRAME_CTRL_8:
> + case MADERA_AIF2_FRAME_CTRL_9:
> + case MADERA_AIF2_FRAME_CTRL_10:
> + case MADERA_AIF2_FRAME_CTRL_11:
> + case MADERA_AIF2_FRAME_CTRL_12:
> + case MADERA_AIF2_FRAME_CTRL_13:
> + case MADERA_AIF2_FRAME_CTRL_14:
> + case MADERA_AIF2_FRAME_CTRL_15:
> + case MADERA_AIF2_FRAME_CTRL_16:
> + case MADERA_AIF2_FRAME_CTRL_17:
> + case MADERA_AIF2_FRAME_CTRL_18:
> + case MADERA_AIF2_TX_ENABLES:
> + case MADERA_AIF2_RX_ENABLES:
> + case MADERA_AIF3_BCLK_CTRL:
> + case MADERA_AIF3_TX_PIN_CTRL:
> + case MADERA_AIF3_RX_PIN_CTRL:
> + case MADERA_AIF3_RATE_CTRL:
> + case MADERA_AIF3_FORMAT:
> + case MADERA_AIF3_RX_BCLK_RATE:
> + case MADERA_AIF3_FRAME_CTRL_1:
> + case MADERA_AIF3_FRAME_CTRL_2:
> + case MADERA_AIF3_FRAME_CTRL_3:
> + case MADERA_AIF3_FRAME_CTRL_4:
> + case MADERA_AIF3_FRAME_CTRL_11:
> + case MADERA_AIF3_FRAME_CTRL_12:
> + case MADERA_AIF3_TX_ENABLES:
> + case MADERA_AIF3_RX_ENABLES:
> + case MADERA_AIF4_BCLK_CTRL:
> + case MADERA_AIF4_TX_PIN_CTRL:
> + case MADERA_AIF4_RX_PIN_CTRL:
> + case MADERA_AIF4_RATE_CTRL:
> + case MADERA_AIF4_FORMAT:
> + case MADERA_AIF4_RX_BCLK_RATE:
> + case MADERA_AIF4_FRAME_CTRL_1:
> + case MADERA_AIF4_FRAME_CTRL_2:
> + case MADERA_AIF4_FRAME_CTRL_3:
> + case MADERA_AIF4_FRAME_CTRL_4:
> + case MADERA_AIF4_FRAME_CTRL_11:
> + case MADERA_AIF4_FRAME_CTRL_12:
> + case MADERA_AIF4_TX_ENABLES:
> + case MADERA_AIF4_RX_ENABLES:
> + case MADERA_SPD1_TX_CONTROL:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_1:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_2:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_3:
> + case MADERA_SLIMBUS_FRAMER_REF_GEAR:
> + case MADERA_SLIMBUS_RATES_1:
> + case MADERA_SLIMBUS_RATES_2:
> + case MADERA_SLIMBUS_RATES_3:
> + case MADERA_SLIMBUS_RATES_4:
> + case MADERA_SLIMBUS_RATES_5:
> + case MADERA_SLIMBUS_RATES_6:
> + case MADERA_SLIMBUS_RATES_7:
> + case MADERA_SLIMBUS_RATES_8:
> + case MADERA_SLIMBUS_RX_CHANNEL_ENABLE:
> + case MADERA_SLIMBUS_TX_CHANNEL_ENABLE:
> + case MADERA_SLIMBUS_RX_PORT_STATUS:
> + case MADERA_SLIMBUS_TX_PORT_STATUS:
> + case MADERA_PWM1MIX_INPUT_1_SOURCE:
> + case MADERA_PWM1MIX_INPUT_1_VOLUME:
> + case MADERA_PWM1MIX_INPUT_2_SOURCE:
> + case MADERA_PWM1MIX_INPUT_2_VOLUME:
> + case MADERA_PWM1MIX_INPUT_3_SOURCE:
> + case MADERA_PWM1MIX_INPUT_3_VOLUME:
> + case MADERA_PWM1MIX_INPUT_4_SOURCE:
> + case MADERA_PWM1MIX_INPUT_4_VOLUME:
> + case MADERA_PWM2MIX_INPUT_1_SOURCE:
> + case MADERA_PWM2MIX_INPUT_1_VOLUME:
> + case MADERA_PWM2MIX_INPUT_2_SOURCE:
> + case MADERA_PWM2MIX_INPUT_2_VOLUME:
> + case MADERA_PWM2MIX_INPUT_3_SOURCE:
> + case MADERA_PWM2MIX_INPUT_3_VOLUME:
> + case MADERA_PWM2MIX_INPUT_4_SOURCE:
> + case MADERA_PWM2MIX_INPUT_4_VOLUME:
> + case MADERA_OUT1LMIX_INPUT_1_SOURCE:
> + case MADERA_OUT1LMIX_INPUT_1_VOLUME:
> + case MADERA_OUT1LMIX_INPUT_2_SOURCE:
> + case MADERA_OUT1LMIX_INPUT_2_VOLUME:
> + case MADERA_OUT1LMIX_INPUT_3_SOURCE:
> + case MADERA_OUT1LMIX_INPUT_3_VOLUME:
> + case MADERA_OUT1LMIX_INPUT_4_SOURCE:
> + case MADERA_OUT1LMIX_INPUT_4_VOLUME:
> + case MADERA_OUT1RMIX_INPUT_1_SOURCE:
> + case MADERA_OUT1RMIX_INPUT_1_VOLUME:
> + case MADERA_OUT1RMIX_INPUT_2_SOURCE:
> + case MADERA_OUT1RMIX_INPUT_2_VOLUME:
> + case MADERA_OUT1RMIX_INPUT_3_SOURCE:
> + case MADERA_OUT1RMIX_INPUT_3_VOLUME:
> + case MADERA_OUT1RMIX_INPUT_4_SOURCE:
> + case MADERA_OUT1RMIX_INPUT_4_VOLUME:
> + case MADERA_OUT2LMIX_INPUT_1_SOURCE:
> + case MADERA_OUT2LMIX_INPUT_1_VOLUME:
> + case MADERA_OUT2LMIX_INPUT_2_SOURCE:
> + case MADERA_OUT2LMIX_INPUT_2_VOLUME:
> + case MADERA_OUT2LMIX_INPUT_3_SOURCE:
> + case MADERA_OUT2LMIX_INPUT_3_VOLUME:
> + case MADERA_OUT2LMIX_INPUT_4_SOURCE:
> + case MADERA_OUT2LMIX_INPUT_4_VOLUME:
> + case MADERA_OUT2RMIX_INPUT_1_SOURCE:
> + case MADERA_OUT2RMIX_INPUT_1_VOLUME:
> + case MADERA_OUT2RMIX_INPUT_2_SOURCE:
> + case MADERA_OUT2RMIX_INPUT_2_VOLUME:
> + case MADERA_OUT2RMIX_INPUT_3_SOURCE:
> + case MADERA_OUT2RMIX_INPUT_3_VOLUME:
> + case MADERA_OUT2RMIX_INPUT_4_SOURCE:
> + case MADERA_OUT2RMIX_INPUT_4_VOLUME:
> + case MADERA_OUT3LMIX_INPUT_1_SOURCE:
> + case MADERA_OUT3LMIX_INPUT_1_VOLUME:
> + case MADERA_OUT3LMIX_INPUT_2_SOURCE:
> + case MADERA_OUT3LMIX_INPUT_2_VOLUME:
> + case MADERA_OUT3LMIX_INPUT_3_SOURCE:
> + case MADERA_OUT3LMIX_INPUT_3_VOLUME:
> + case MADERA_OUT3LMIX_INPUT_4_SOURCE:
> + case MADERA_OUT3LMIX_INPUT_4_VOLUME:
> + case MADERA_OUT3RMIX_INPUT_1_SOURCE:
> + case MADERA_OUT3RMIX_INPUT_1_VOLUME:
> + case MADERA_OUT3RMIX_INPUT_2_SOURCE:
> + case MADERA_OUT3RMIX_INPUT_2_VOLUME:
> + case MADERA_OUT3RMIX_INPUT_3_SOURCE:
> + case MADERA_OUT3RMIX_INPUT_3_VOLUME:
> + case MADERA_OUT3RMIX_INPUT_4_SOURCE:
> + case MADERA_OUT3RMIX_INPUT_4_VOLUME:
> + case MADERA_OUT4LMIX_INPUT_1_SOURCE:
> + case MADERA_OUT4LMIX_INPUT_1_VOLUME:
> + case MADERA_OUT4LMIX_INPUT_2_SOURCE:
> + case MADERA_OUT4LMIX_INPUT_2_VOLUME:
> + case MADERA_OUT4LMIX_INPUT_3_SOURCE:
> + case MADERA_OUT4LMIX_INPUT_3_VOLUME:
> + case MADERA_OUT4LMIX_INPUT_4_SOURCE:
> + case MADERA_OUT4LMIX_INPUT_4_VOLUME:
> + case MADERA_OUT4RMIX_INPUT_1_SOURCE:
> + case MADERA_OUT4RMIX_INPUT_1_VOLUME:
> + case MADERA_OUT4RMIX_INPUT_2_SOURCE:
> + case MADERA_OUT4RMIX_INPUT_2_VOLUME:
> + case MADERA_OUT4RMIX_INPUT_3_SOURCE:
> + case MADERA_OUT4RMIX_INPUT_3_VOLUME:
> + case MADERA_OUT4RMIX_INPUT_4_SOURCE:
> + case MADERA_OUT4RMIX_INPUT_4_VOLUME:
> + case MADERA_OUT5LMIX_INPUT_1_SOURCE:
> + case MADERA_OUT5LMIX_INPUT_1_VOLUME:
> + case MADERA_OUT5LMIX_INPUT_2_SOURCE:
> + case MADERA_OUT5LMIX_INPUT_2_VOLUME:
> + case MADERA_OUT5LMIX_INPUT_3_SOURCE:
> + case MADERA_OUT5LMIX_INPUT_3_VOLUME:
> + case MADERA_OUT5LMIX_INPUT_4_SOURCE:
> + case MADERA_OUT5LMIX_INPUT_4_VOLUME:
> + case MADERA_OUT5RMIX_INPUT_1_SOURCE:
> + case MADERA_OUT5RMIX_INPUT_1_VOLUME:
> + case MADERA_OUT5RMIX_INPUT_2_SOURCE:
> + case MADERA_OUT5RMIX_INPUT_2_VOLUME:
> + case MADERA_OUT5RMIX_INPUT_3_SOURCE:
> + case MADERA_OUT5RMIX_INPUT_3_VOLUME:
> + case MADERA_OUT5RMIX_INPUT_4_SOURCE:
> + case MADERA_OUT5RMIX_INPUT_4_VOLUME:
> + case MADERA_OUT6LMIX_INPUT_1_SOURCE:
> + case MADERA_OUT6LMIX_INPUT_1_VOLUME:
> + case MADERA_OUT6LMIX_INPUT_2_SOURCE:
> + case MADERA_OUT6LMIX_INPUT_2_VOLUME:
> + case MADERA_OUT6LMIX_INPUT_3_SOURCE:
> + case MADERA_OUT6LMIX_INPUT_3_VOLUME:
> + case MADERA_OUT6LMIX_INPUT_4_SOURCE:
> + case MADERA_OUT6LMIX_INPUT_4_VOLUME:
> + case MADERA_OUT6RMIX_INPUT_1_SOURCE:
> + case MADERA_OUT6RMIX_INPUT_1_VOLUME:
> + case MADERA_OUT6RMIX_INPUT_2_SOURCE:
> + case MADERA_OUT6RMIX_INPUT_2_VOLUME:
> + case MADERA_OUT6RMIX_INPUT_3_SOURCE:
> + case MADERA_OUT6RMIX_INPUT_3_VOLUME:
> + case MADERA_OUT6RMIX_INPUT_4_SOURCE:
> + case MADERA_OUT6RMIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX1MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX1MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX1MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX1MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX1MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX1MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX1MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX1MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX2MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX2MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX2MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX2MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX2MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX2MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX2MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX2MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX3MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX3MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX3MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX3MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX3MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX3MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX3MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX3MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX4MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX4MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX4MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX4MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX4MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX4MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX4MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX4MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX5MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX5MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX5MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX5MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX5MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX5MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX5MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX5MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX6MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX6MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX6MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX6MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX6MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX6MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX6MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX6MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX7MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX7MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX7MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX7MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX7MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX7MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX7MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX7MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX8MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX8MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX8MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX8MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX8MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX8MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX8MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX8MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX1MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX1MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX1MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX1MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX1MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX1MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX1MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX1MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX2MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX2MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX2MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX2MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX2MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX2MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX2MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX2MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX3MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX3MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX3MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX3MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX3MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX3MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX3MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX3MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX4MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX4MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX4MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX4MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX4MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX4MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX4MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX4MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX5MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX5MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX5MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX5MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX5MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX5MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX5MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX5MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX6MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX6MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX6MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX6MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX6MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX6MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX6MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX6MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX7MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX7MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX7MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX7MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX7MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX7MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX7MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX7MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX8MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX8MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX8MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX8MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX8MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX8MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX8MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX8MIX_INPUT_4_VOLUME:
> + case MADERA_AIF3TX1MIX_INPUT_1_SOURCE:
> + case MADERA_AIF3TX1MIX_INPUT_1_VOLUME:
> + case MADERA_AIF3TX1MIX_INPUT_2_SOURCE:
> + case MADERA_AIF3TX1MIX_INPUT_2_VOLUME:
> + case MADERA_AIF3TX1MIX_INPUT_3_SOURCE:
> + case MADERA_AIF3TX1MIX_INPUT_3_VOLUME:
> + case MADERA_AIF3TX1MIX_INPUT_4_SOURCE:
> + case MADERA_AIF3TX1MIX_INPUT_4_VOLUME:
> + case MADERA_AIF3TX2MIX_INPUT_1_SOURCE:
> + case MADERA_AIF3TX2MIX_INPUT_1_VOLUME:
> + case MADERA_AIF3TX2MIX_INPUT_2_SOURCE:
> + case MADERA_AIF3TX2MIX_INPUT_2_VOLUME:
> + case MADERA_AIF3TX2MIX_INPUT_3_SOURCE:
> + case MADERA_AIF3TX2MIX_INPUT_3_VOLUME:
> + case MADERA_AIF3TX2MIX_INPUT_4_SOURCE:
> + case MADERA_AIF3TX2MIX_INPUT_4_VOLUME:
> + case MADERA_AIF4TX1MIX_INPUT_1_SOURCE:
> + case MADERA_AIF4TX1MIX_INPUT_1_VOLUME:
> + case MADERA_AIF4TX1MIX_INPUT_2_SOURCE:
> + case MADERA_AIF4TX1MIX_INPUT_2_VOLUME:
> + case MADERA_AIF4TX1MIX_INPUT_3_SOURCE:
> + case MADERA_AIF4TX1MIX_INPUT_3_VOLUME:
> + case MADERA_AIF4TX1MIX_INPUT_4_SOURCE:
> + case MADERA_AIF4TX1MIX_INPUT_4_VOLUME:
> + case MADERA_AIF4TX2MIX_INPUT_1_SOURCE:
> + case MADERA_AIF4TX2MIX_INPUT_1_VOLUME:
> + case MADERA_AIF4TX2MIX_INPUT_2_SOURCE:
> + case MADERA_AIF4TX2MIX_INPUT_2_VOLUME:
> + case MADERA_AIF4TX2MIX_INPUT_3_SOURCE:
> + case MADERA_AIF4TX2MIX_INPUT_3_VOLUME:
> + case MADERA_AIF4TX2MIX_INPUT_4_SOURCE:
> + case MADERA_AIF4TX2MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX1MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX1MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX1MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX1MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX1MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX1MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX1MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX1MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX2MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX2MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX2MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX2MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX2MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX2MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX2MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX2MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX3MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX3MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX3MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX3MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX3MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX3MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX3MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX3MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX4MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX4MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX4MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX4MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX4MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX4MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX4MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX4MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX5MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX5MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX5MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX5MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX5MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX5MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX5MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX5MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX6MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX6MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX6MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX6MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX6MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX6MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX6MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX6MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX7MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX7MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX7MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX7MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX7MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX7MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX7MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX7MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX8MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX8MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX8MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX8MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX8MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX8MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX8MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX8MIX_INPUT_4_VOLUME:
> + case MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE:
> + case MADERA_SPDIF1TX1MIX_INPUT_1_VOLUME:
> + case MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE:
> + case MADERA_SPDIF1TX2MIX_INPUT_1_VOLUME:
> + case MADERA_EQ1MIX_INPUT_1_SOURCE:
> + case MADERA_EQ1MIX_INPUT_1_VOLUME:
> + case MADERA_EQ1MIX_INPUT_2_SOURCE:
> + case MADERA_EQ1MIX_INPUT_2_VOLUME:
> + case MADERA_EQ1MIX_INPUT_3_SOURCE:
> + case MADERA_EQ1MIX_INPUT_3_VOLUME:
> + case MADERA_EQ1MIX_INPUT_4_SOURCE:
> + case MADERA_EQ1MIX_INPUT_4_VOLUME:
> + case MADERA_EQ2MIX_INPUT_1_SOURCE:
> + case MADERA_EQ2MIX_INPUT_1_VOLUME:
> + case MADERA_EQ2MIX_INPUT_2_SOURCE:
> + case MADERA_EQ2MIX_INPUT_2_VOLUME:
> + case MADERA_EQ2MIX_INPUT_3_SOURCE:
> + case MADERA_EQ2MIX_INPUT_3_VOLUME:
> + case MADERA_EQ2MIX_INPUT_4_SOURCE:
> + case MADERA_EQ2MIX_INPUT_4_VOLUME:
> + case MADERA_EQ3MIX_INPUT_1_SOURCE:
> + case MADERA_EQ3MIX_INPUT_1_VOLUME:
> + case MADERA_EQ3MIX_INPUT_2_SOURCE:
> + case MADERA_EQ3MIX_INPUT_2_VOLUME:
> + case MADERA_EQ3MIX_INPUT_3_SOURCE:
> + case MADERA_EQ3MIX_INPUT_3_VOLUME:
> + case MADERA_EQ3MIX_INPUT_4_SOURCE:
> + case MADERA_EQ3MIX_INPUT_4_VOLUME:
> + case MADERA_EQ4MIX_INPUT_1_SOURCE:
> + case MADERA_EQ4MIX_INPUT_1_VOLUME:
> + case MADERA_EQ4MIX_INPUT_2_SOURCE:
> + case MADERA_EQ4MIX_INPUT_2_VOLUME:
> + case MADERA_EQ4MIX_INPUT_3_SOURCE:
> + case MADERA_EQ4MIX_INPUT_3_VOLUME:
> + case MADERA_EQ4MIX_INPUT_4_SOURCE:
> + case MADERA_EQ4MIX_INPUT_4_VOLUME:
> + case MADERA_DRC1LMIX_INPUT_1_SOURCE:
> + case MADERA_DRC1LMIX_INPUT_1_VOLUME:
> + case MADERA_DRC1LMIX_INPUT_2_SOURCE:
> + case MADERA_DRC1LMIX_INPUT_2_VOLUME:
> + case MADERA_DRC1LMIX_INPUT_3_SOURCE:
> + case MADERA_DRC1LMIX_INPUT_3_VOLUME:
> + case MADERA_DRC1LMIX_INPUT_4_SOURCE:
> + case MADERA_DRC1LMIX_INPUT_4_VOLUME:
> + case MADERA_DRC1RMIX_INPUT_1_SOURCE:
> + case MADERA_DRC1RMIX_INPUT_1_VOLUME:
> + case MADERA_DRC1RMIX_INPUT_2_SOURCE:
> + case MADERA_DRC1RMIX_INPUT_2_VOLUME:
> + case MADERA_DRC1RMIX_INPUT_3_SOURCE:
> + case MADERA_DRC1RMIX_INPUT_3_VOLUME:
> + case MADERA_DRC1RMIX_INPUT_4_SOURCE:
> + case MADERA_DRC1RMIX_INPUT_4_VOLUME:
> + case MADERA_DRC2LMIX_INPUT_1_SOURCE:
> + case MADERA_DRC2LMIX_INPUT_1_VOLUME:
> + case MADERA_DRC2LMIX_INPUT_2_SOURCE:
> + case MADERA_DRC2LMIX_INPUT_2_VOLUME:
> + case MADERA_DRC2LMIX_INPUT_3_SOURCE:
> + case MADERA_DRC2LMIX_INPUT_3_VOLUME:
> + case MADERA_DRC2LMIX_INPUT_4_SOURCE:
> + case MADERA_DRC2LMIX_INPUT_4_VOLUME:
> + case MADERA_DRC2RMIX_INPUT_1_SOURCE:
> + case MADERA_DRC2RMIX_INPUT_1_VOLUME:
> + case MADERA_DRC2RMIX_INPUT_2_SOURCE:
> + case MADERA_DRC2RMIX_INPUT_2_VOLUME:
> + case MADERA_DRC2RMIX_INPUT_3_SOURCE:
> + case MADERA_DRC2RMIX_INPUT_3_VOLUME:
> + case MADERA_DRC2RMIX_INPUT_4_SOURCE:
> + case MADERA_DRC2RMIX_INPUT_4_VOLUME:
> + case MADERA_HPLP1MIX_INPUT_1_SOURCE:
> + case MADERA_HPLP1MIX_INPUT_1_VOLUME:
> + case MADERA_HPLP1MIX_INPUT_2_SOURCE:
> + case MADERA_HPLP1MIX_INPUT_2_VOLUME:
> + case MADERA_HPLP1MIX_INPUT_3_SOURCE:
> + case MADERA_HPLP1MIX_INPUT_3_VOLUME:
> + case MADERA_HPLP1MIX_INPUT_4_SOURCE:
> + case MADERA_HPLP1MIX_INPUT_4_VOLUME:
> + case MADERA_HPLP2MIX_INPUT_1_SOURCE:
> + case MADERA_HPLP2MIX_INPUT_1_VOLUME:
> + case MADERA_HPLP2MIX_INPUT_2_SOURCE:
> + case MADERA_HPLP2MIX_INPUT_2_VOLUME:
> + case MADERA_HPLP2MIX_INPUT_3_SOURCE:
> + case MADERA_HPLP2MIX_INPUT_3_VOLUME:
> + case MADERA_HPLP2MIX_INPUT_4_SOURCE:
> + case MADERA_HPLP2MIX_INPUT_4_VOLUME:
> + case MADERA_HPLP3MIX_INPUT_1_SOURCE:
> + case MADERA_HPLP3MIX_INPUT_1_VOLUME:
> + case MADERA_HPLP3MIX_INPUT_2_SOURCE:
> + case MADERA_HPLP3MIX_INPUT_2_VOLUME:
> + case MADERA_HPLP3MIX_INPUT_3_SOURCE:
> + case MADERA_HPLP3MIX_INPUT_3_VOLUME:
> + case MADERA_HPLP3MIX_INPUT_4_SOURCE:
> + case MADERA_HPLP3MIX_INPUT_4_VOLUME:
> + case MADERA_HPLP4MIX_INPUT_1_SOURCE:
> + case MADERA_HPLP4MIX_INPUT_1_VOLUME:
> + case MADERA_HPLP4MIX_INPUT_2_SOURCE:
> + case MADERA_HPLP4MIX_INPUT_2_VOLUME:
> + case MADERA_HPLP4MIX_INPUT_3_SOURCE:
> + case MADERA_HPLP4MIX_INPUT_3_VOLUME:
> + case MADERA_HPLP4MIX_INPUT_4_SOURCE:
> + case MADERA_HPLP4MIX_INPUT_4_VOLUME:
> + case MADERA_DSP1LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP1LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP1LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP1LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP1LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP1LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP1LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP1LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP1RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP1RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP1RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP1RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP1RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP1RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP1RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP1RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP1AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP2LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP2LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP2LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP2RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP2RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP2RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP2RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP2RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP2RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP2RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP2RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP2AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP3LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP3LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP3LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP3RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP3RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP3RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP3RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP3RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP3RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP3RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP3RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP3AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_DSP4LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP4LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP4LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP4LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP4LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP4LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP4LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP4LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP4RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP4RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP4RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP4RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP4RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP4RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP4RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP4RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP4AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP4AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP4AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP4AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP4AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP4AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_DSP5LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP5LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP5LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP5LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP5LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP5LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP5LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP5LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP5RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP5RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP5RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP5RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP5RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP5RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP5RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP5RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP5AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP5AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP5AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP5AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP5AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP5AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_ASRC1_1LMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC1_1RMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC1_2LMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC1_2RMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC2_1LMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC2_1RMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC2_2LMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC2_2RMIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1DEC1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1DEC2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1DEC3MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1DEC4MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1INT1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1INT2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1INT3MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1INT4MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2DEC1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2DEC2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2DEC3MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2DEC4MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2INT1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2INT2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2INT3MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2INT4MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC3DEC1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC3DEC2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC3INT1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC3INT2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC4DEC1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC4DEC2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC4INT1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC4INT2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP6LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP6LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP6LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP6LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP6LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP6LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP6LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP6LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP6RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP6RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP6RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP6RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP6RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP6RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP6RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP6RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP6AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP6AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP6AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP6AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP6AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP6AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_DSP7LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP7LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP7LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP7LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP7LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP7LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP7LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP7LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP7RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP7RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP7RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP7RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP7RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP7RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP7RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP7RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP7AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP7AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP7AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP7AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP7AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP7AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_FX_CTRL1:
> + case MADERA_FX_CTRL2:
> + case MADERA_EQ1_1:
> + case MADERA_EQ1_2:
> + case MADERA_EQ1_3:
> + case MADERA_EQ1_4:
> + case MADERA_EQ1_5:
> + case MADERA_EQ1_6:
> + case MADERA_EQ1_7:
> + case MADERA_EQ1_8:
> + case MADERA_EQ1_9:
> + case MADERA_EQ1_10:
> + case MADERA_EQ1_11:
> + case MADERA_EQ1_12:
> + case MADERA_EQ1_13:
> + case MADERA_EQ1_14:
> + case MADERA_EQ1_15:
> + case MADERA_EQ1_16:
> + case MADERA_EQ1_17:
> + case MADERA_EQ1_18:
> + case MADERA_EQ1_19:
> + case MADERA_EQ1_20:
> + case MADERA_EQ1_21:
> + case MADERA_EQ2_1:
> + case MADERA_EQ2_2:
> + case MADERA_EQ2_3:
> + case MADERA_EQ2_4:
> + case MADERA_EQ2_5:
> + case MADERA_EQ2_6:
> + case MADERA_EQ2_7:
> + case MADERA_EQ2_8:
> + case MADERA_EQ2_9:
> + case MADERA_EQ2_10:
> + case MADERA_EQ2_11:
> + case MADERA_EQ2_12:
> + case MADERA_EQ2_13:
> + case MADERA_EQ2_14:
> + case MADERA_EQ2_15:
> + case MADERA_EQ2_16:
> + case MADERA_EQ2_17:
> + case MADERA_EQ2_18:
> + case MADERA_EQ2_19:
> + case MADERA_EQ2_20:
> + case MADERA_EQ2_21:
> + case MADERA_EQ3_1:
> + case MADERA_EQ3_2:
> + case MADERA_EQ3_3:
> + case MADERA_EQ3_4:
> + case MADERA_EQ3_5:
> + case MADERA_EQ3_6:
> + case MADERA_EQ3_7:
> + case MADERA_EQ3_8:
> + case MADERA_EQ3_9:
> + case MADERA_EQ3_10:
> + case MADERA_EQ3_11:
> + case MADERA_EQ3_12:
> + case MADERA_EQ3_13:
> + case MADERA_EQ3_14:
> + case MADERA_EQ3_15:
> + case MADERA_EQ3_16:
> + case MADERA_EQ3_17:
> + case MADERA_EQ3_18:
> + case MADERA_EQ3_19:
> + case MADERA_EQ3_20:
> + case MADERA_EQ3_21:
> + case MADERA_EQ4_1:
> + case MADERA_EQ4_2:
> + case MADERA_EQ4_3:
> + case MADERA_EQ4_4:
> + case MADERA_EQ4_5:
> + case MADERA_EQ4_6:
> + case MADERA_EQ4_7:
> + case MADERA_EQ4_8:
> + case MADERA_EQ4_9:
> + case MADERA_EQ4_10:
> + case MADERA_EQ4_11:
> + case MADERA_EQ4_12:
> + case MADERA_EQ4_13:
> + case MADERA_EQ4_14:
> + case MADERA_EQ4_15:
> + case MADERA_EQ4_16:
> + case MADERA_EQ4_17:
> + case MADERA_EQ4_18:
> + case MADERA_EQ4_19:
> + case MADERA_EQ4_20:
> + case MADERA_EQ4_21:
> + case MADERA_DRC1_CTRL1:
> + case MADERA_DRC1_CTRL2:
> + case MADERA_DRC1_CTRL3:
> + case MADERA_DRC1_CTRL4:
> + case MADERA_DRC1_CTRL5:
> + case MADERA_DRC2_CTRL1:
> + case MADERA_DRC2_CTRL2:
> + case MADERA_DRC2_CTRL3:
> + case MADERA_DRC2_CTRL4:
> + case MADERA_DRC2_CTRL5:
> + case MADERA_HPLPF1_1:
> + case MADERA_HPLPF1_2:
> + case MADERA_HPLPF2_1:
> + case MADERA_HPLPF2_2:
> + case MADERA_HPLPF3_1:
> + case MADERA_HPLPF3_2:
> + case MADERA_HPLPF4_1:
> + case MADERA_HPLPF4_2:
> + case MADERA_ASRC1_ENABLE:
> + case MADERA_ASRC1_STATUS:
> + case MADERA_ASRC1_RATE1:
> + case MADERA_ASRC1_RATE2:
> + case MADERA_ASRC2_ENABLE:
> + case MADERA_ASRC2_STATUS:
> + case MADERA_ASRC2_RATE1:
> + case MADERA_ASRC2_RATE2:
> + case MADERA_ISRC_1_CTRL_1:
> + case MADERA_ISRC_1_CTRL_2:
> + case MADERA_ISRC_1_CTRL_3:
> + case MADERA_ISRC_2_CTRL_1:
> + case MADERA_ISRC_2_CTRL_2:
> + case MADERA_ISRC_2_CTRL_3:
> + case MADERA_ISRC_3_CTRL_1:
> + case MADERA_ISRC_3_CTRL_2:
> + case MADERA_ISRC_3_CTRL_3:
> + case MADERA_ISRC_4_CTRL_1:
> + case MADERA_ISRC_4_CTRL_2:
> + case MADERA_ISRC_4_CTRL_3:
> + case MADERA_CLOCK_CONTROL:
> + case MADERA_ANC_SRC:
> + case MADERA_DSP_STATUS:
> + case MADERA_ANC_COEFF_START ... MADERA_ANC_COEFF_END:
> + case MADERA_FCL_FILTER_CONTROL:
> + case MADERA_FCL_ADC_REFORMATTER_CONTROL:
> + case MADERA_FCL_COEFF_START ... MADERA_FCL_COEFF_END:
> + case MADERA_FCR_FILTER_CONTROL:
> + case MADERA_FCR_ADC_REFORMATTER_CONTROL:
> + case MADERA_FCR_COEFF_START ... MADERA_FCR_COEFF_END:
> + case MADERA_DAC_COMP_1:
> + case MADERA_DAC_COMP_2:
> + case MADERA_FRF_COEFFICIENT_1L_1:
> + case MADERA_FRF_COEFFICIENT_1L_2:
> + case MADERA_FRF_COEFFICIENT_1L_3:
> + case MADERA_FRF_COEFFICIENT_1L_4:
> + case MADERA_FRF_COEFFICIENT_1R_1:
> + case MADERA_FRF_COEFFICIENT_1R_2:
> + case MADERA_FRF_COEFFICIENT_1R_3:
> + case MADERA_FRF_COEFFICIENT_1R_4:
> + case MADERA_FRF_COEFFICIENT_2L_1:
> + case MADERA_FRF_COEFFICIENT_2L_2:
> + case MADERA_FRF_COEFFICIENT_2L_3:
> + case MADERA_FRF_COEFFICIENT_2L_4:
> + case MADERA_FRF_COEFFICIENT_2R_1:
> + case MADERA_FRF_COEFFICIENT_2R_2:
> + case MADERA_FRF_COEFFICIENT_2R_3:
> + case MADERA_FRF_COEFFICIENT_2R_4:
> + case MADERA_FRF_COEFFICIENT_3L_1:
> + case MADERA_FRF_COEFFICIENT_3L_2:
> + case MADERA_FRF_COEFFICIENT_3L_3:
> + case MADERA_FRF_COEFFICIENT_3L_4:
> + case MADERA_FRF_COEFFICIENT_3R_1:
> + case MADERA_FRF_COEFFICIENT_3R_2:
> + case MADERA_FRF_COEFFICIENT_3R_3:
> + case MADERA_FRF_COEFFICIENT_3R_4:
> + case MADERA_FRF_COEFFICIENT_4L_1:
> + case MADERA_FRF_COEFFICIENT_4L_2:
> + case MADERA_FRF_COEFFICIENT_4L_3:
> + case MADERA_FRF_COEFFICIENT_4L_4:
> + case MADERA_FRF_COEFFICIENT_4R_1:
> + case MADERA_FRF_COEFFICIENT_4R_2:
> + case MADERA_FRF_COEFFICIENT_4R_3:
> + case MADERA_FRF_COEFFICIENT_4R_4:
> + case MADERA_FRF_COEFFICIENT_5L_1:
> + case MADERA_FRF_COEFFICIENT_5L_2:
> + case MADERA_FRF_COEFFICIENT_5L_3:
> + case MADERA_FRF_COEFFICIENT_5L_4:
> + case MADERA_FRF_COEFFICIENT_5R_1:
> + case MADERA_FRF_COEFFICIENT_5R_2:
> + case MADERA_FRF_COEFFICIENT_5R_3:
> + case MADERA_FRF_COEFFICIENT_5R_4:
> + case MADERA_FRF_COEFFICIENT_6L_1:
> + case MADERA_FRF_COEFFICIENT_6L_2:
> + case MADERA_FRF_COEFFICIENT_6L_3:
> + case MADERA_FRF_COEFFICIENT_6L_4:
> + case MADERA_FRF_COEFFICIENT_6R_1:
> + case MADERA_FRF_COEFFICIENT_6R_2:
> + case MADERA_FRF_COEFFICIENT_6R_3:
> + case MADERA_FRF_COEFFICIENT_6R_4:
> + case MADERA_GPIO1_CTRL_1:
> + case MADERA_GPIO1_CTRL_2:
> + case MADERA_GPIO2_CTRL_1:
> + case MADERA_GPIO2_CTRL_2:
> + case MADERA_GPIO3_CTRL_1:
> + case MADERA_GPIO3_CTRL_2:
> + case MADERA_GPIO4_CTRL_1:
> + case MADERA_GPIO4_CTRL_2:
> + case MADERA_GPIO5_CTRL_1:
> + case MADERA_GPIO5_CTRL_2:
> + case MADERA_GPIO6_CTRL_1:
> + case MADERA_GPIO6_CTRL_2:
> + case MADERA_GPIO7_CTRL_1:
> + case MADERA_GPIO7_CTRL_2:
> + case MADERA_GPIO8_CTRL_1:
> + case MADERA_GPIO8_CTRL_2:
> + case MADERA_GPIO9_CTRL_1:
> + case MADERA_GPIO9_CTRL_2:
> + case MADERA_GPIO10_CTRL_1:
> + case MADERA_GPIO10_CTRL_2:
> + case MADERA_GPIO11_CTRL_1:
> + case MADERA_GPIO11_CTRL_2:
> + case MADERA_GPIO12_CTRL_1:
> + case MADERA_GPIO12_CTRL_2:
> + case MADERA_GPIO13_CTRL_1:
> + case MADERA_GPIO13_CTRL_2:
> + case MADERA_GPIO14_CTRL_1:
> + case MADERA_GPIO14_CTRL_2:
> + case MADERA_GPIO15_CTRL_1:
> + case MADERA_GPIO15_CTRL_2:
> + case MADERA_GPIO16_CTRL_1:
> + case MADERA_GPIO16_CTRL_2:
> + case MADERA_GPIO17_CTRL_1:
> + case MADERA_GPIO17_CTRL_2:
> + case MADERA_GPIO18_CTRL_1:
> + case MADERA_GPIO18_CTRL_2:
> + case MADERA_GPIO19_CTRL_1:
> + case MADERA_GPIO19_CTRL_2:
> + case MADERA_GPIO20_CTRL_1:
> + case MADERA_GPIO20_CTRL_2:
> + case MADERA_GPIO21_CTRL_1:
> + case MADERA_GPIO21_CTRL_2:
> + case MADERA_GPIO22_CTRL_1:
> + case MADERA_GPIO22_CTRL_2:
> + case MADERA_GPIO23_CTRL_1:
> + case MADERA_GPIO23_CTRL_2:
> + case MADERA_GPIO24_CTRL_1:
> + case MADERA_GPIO24_CTRL_2:
> + case MADERA_GPIO25_CTRL_1:
> + case MADERA_GPIO25_CTRL_2:
> + case MADERA_GPIO26_CTRL_1:
> + case MADERA_GPIO26_CTRL_2:
> + case MADERA_GPIO27_CTRL_1:
> + case MADERA_GPIO27_CTRL_2:
> + case MADERA_GPIO28_CTRL_1:
> + case MADERA_GPIO28_CTRL_2:
> + case MADERA_GPIO29_CTRL_1:
> + case MADERA_GPIO29_CTRL_2:
> + case MADERA_GPIO30_CTRL_1:
> + case MADERA_GPIO30_CTRL_2:
> + case MADERA_GPIO31_CTRL_1:
> + case MADERA_GPIO31_CTRL_2:
> + case MADERA_GPIO32_CTRL_1:
> + case MADERA_GPIO32_CTRL_2:
> + case MADERA_GPIO33_CTRL_1:
> + case MADERA_GPIO33_CTRL_2:
> + case MADERA_GPIO34_CTRL_1:
> + case MADERA_GPIO34_CTRL_2:
> + case MADERA_GPIO35_CTRL_1:
> + case MADERA_GPIO35_CTRL_2:
> + case MADERA_GPIO36_CTRL_1:
> + case MADERA_GPIO36_CTRL_2:
> + case MADERA_GPIO37_CTRL_1:
> + case MADERA_GPIO37_CTRL_2:
> + case MADERA_GPIO38_CTRL_1:
> + case MADERA_GPIO38_CTRL_2:
> + case MADERA_GPIO39_CTRL_1:
> + case MADERA_GPIO39_CTRL_2:
> + case MADERA_GPIO40_CTRL_1:
> + case MADERA_GPIO40_CTRL_2:
> + case MADERA_IRQ1_STATUS_1 ... MADERA_IRQ1_STATUS_33:
> + case MADERA_IRQ1_MASK_1 ... MADERA_IRQ1_MASK_33:
> + case MADERA_IRQ1_RAW_STATUS_1 ... MADERA_IRQ1_RAW_STATUS_33:
> + case MADERA_INTERRUPT_DEBOUNCE_7:
> + case MADERA_IRQ1_CTRL:
> + return true;
> + default:
> + return false;
> + }
> +}
> +
> +static bool cs47l85_16bit_volatile_register(struct device *dev,
> + unsigned int reg)
> +{
> + switch (reg) {
> + case MADERA_SOFTWARE_RESET:
> + case MADERA_HARDWARE_REVISION:
> + case MADERA_WRITE_SEQUENCER_CTRL_0:
> + case MADERA_WRITE_SEQUENCER_CTRL_1:
> + case MADERA_WRITE_SEQUENCER_CTRL_2:
> + case MADERA_HAPTICS_STATUS:
> + case MADERA_SAMPLE_RATE_1_STATUS:
> + case MADERA_SAMPLE_RATE_2_STATUS:
> + case MADERA_SAMPLE_RATE_3_STATUS:
> + case MADERA_ASYNC_SAMPLE_RATE_1_STATUS:
> + case MADERA_ASYNC_SAMPLE_RATE_2_STATUS:
> + case MADERA_HP_CTRL_1L:
> + case MADERA_HP_CTRL_1R:
> + case MADERA_HP_CTRL_2L:
> + case MADERA_HP_CTRL_2R:
> + case MADERA_HP_CTRL_3L:
> + case MADERA_HP_CTRL_3R:
> + case MADERA_DCS_HP1L_CONTROL:
> + case MADERA_DCS_HP1R_CONTROL:
> + case MADERA_MIC_DETECT_1_CONTROL_3:
> + case MADERA_MIC_DETECT_1_CONTROL_4:
> + case MADERA_HEADPHONE_DETECT_2:
> + case MADERA_HEADPHONE_DETECT_3:
> + case MADERA_HEADPHONE_DETECT_5:
> + case MADERA_INPUT_ENABLES_STATUS:
> + case MADERA_OUTPUT_STATUS_1:
> + case MADERA_RAW_OUTPUT_STATUS_1:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_1:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_2:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_3:
> + case MADERA_SLIMBUS_RX_PORT_STATUS:
> + case MADERA_SLIMBUS_TX_PORT_STATUS:
> + case MADERA_FX_CTRL2:
> + case MADERA_ASRC2_STATUS:
> + case MADERA_ASRC1_STATUS:
> + case MADERA_CLOCK_CONTROL:
> + case MADERA_IRQ1_STATUS_1 ...MADERA_IRQ1_STATUS_33:
> + case MADERA_IRQ1_RAW_STATUS_1 ... MADERA_IRQ1_RAW_STATUS_33:
> + return true;
> + default:
> + return false;
> + }
> +}
> +
> +static bool cs47l85_32bit_readable_register(struct device *dev,
> + unsigned int reg)
> +{
> + switch (reg) {
> + case MADERA_WSEQ_SEQUENCE_1 ... MADERA_WSEQ_SEQUENCE_508:
> + case CS47L85_OTP_HPDET_CAL_1 ... CS47L85_OTP_HPDET_CAL_2:
> + case MADERA_DSP1_CONFIG_1 ... MADERA_DSP1_SCRATCH_2:
> + case MADERA_DSP2_CONFIG_1 ... MADERA_DSP2_SCRATCH_2:
> + case MADERA_DSP3_CONFIG_1 ... MADERA_DSP3_SCRATCH_2:
> + case MADERA_DSP4_CONFIG_1 ... MADERA_DSP4_SCRATCH_2:
> + case MADERA_DSP5_CONFIG_1 ... MADERA_DSP5_SCRATCH_2:
> + case MADERA_DSP6_CONFIG_1 ... MADERA_DSP6_SCRATCH_2:
> + case MADERA_DSP7_CONFIG_1 ... MADERA_DSP7_SCRATCH_2:
> + return true;
> + default:
> + return cs47l85_is_adsp_memory(reg);
> + }
> +}
> +
> +static bool cs47l85_32bit_volatile_register(struct device *dev,
> + unsigned int reg)
> +{
> + switch (reg) {
> + case MADERA_WSEQ_SEQUENCE_1 ... MADERA_WSEQ_SEQUENCE_508:
> + case CS47L85_OTP_HPDET_CAL_1 ... CS47L85_OTP_HPDET_CAL_2:
> + case MADERA_DSP1_CONFIG_1 ... MADERA_DSP1_SCRATCH_2:
> + case MADERA_DSP2_CONFIG_1 ... MADERA_DSP2_SCRATCH_2:
> + case MADERA_DSP3_CONFIG_1 ... MADERA_DSP3_SCRATCH_2:
> + case MADERA_DSP4_CONFIG_1 ... MADERA_DSP4_SCRATCH_2:
> + case MADERA_DSP5_CONFIG_1 ... MADERA_DSP5_SCRATCH_2:
> + case MADERA_DSP6_CONFIG_1 ... MADERA_DSP6_SCRATCH_2:
> + case MADERA_DSP7_CONFIG_1 ... MADERA_DSP7_SCRATCH_2:
> + return true;
> + default:
> + return cs47l85_is_adsp_memory(reg);
> + }
> +}
> +
> +const struct regmap_config cs47l85_16bit_spi_regmap = {
> + .name = "cs47l85_16bit",
> + .reg_bits = 32,
> + .pad_bits = 16,
> + .val_bits = 16,
> + .reg_format_endian = REGMAP_ENDIAN_BIG,
> + .val_format_endian = REGMAP_ENDIAN_BIG,
> +
> + .max_register = 0x2fff,
> + .readable_reg = cs47l85_16bit_readable_register,
> + .volatile_reg = cs47l85_16bit_volatile_register,
> +
> + .cache_type = REGCACHE_RBTREE,
> + .reg_defaults = cs47l85_reg_default,
> + .num_reg_defaults = ARRAY_SIZE(cs47l85_reg_default),
> +};
> +EXPORT_SYMBOL_GPL(cs47l85_16bit_spi_regmap);
> +
> +const struct regmap_config cs47l85_16bit_i2c_regmap = {
> + .name = "cs47l85_16bit",
> + .reg_bits = 32,
> + .val_bits = 16,
> + .reg_format_endian = REGMAP_ENDIAN_BIG,
> + .val_format_endian = REGMAP_ENDIAN_BIG,
> +
> + .max_register = 0x2fff,
> + .readable_reg = cs47l85_16bit_readable_register,
> + .volatile_reg = cs47l85_16bit_volatile_register,
> +
> + .cache_type = REGCACHE_RBTREE,
> + .reg_defaults = cs47l85_reg_default,
> + .num_reg_defaults = ARRAY_SIZE(cs47l85_reg_default),
> +};
> +EXPORT_SYMBOL_GPL(cs47l85_16bit_i2c_regmap);
> +
> +const struct regmap_config cs47l85_32bit_spi_regmap = {
> + .name = "cs47l85_32bit",
> + .reg_bits = 32,
> + .reg_stride = 2,
> + .pad_bits = 16,
> + .val_bits = 32,
> + .reg_format_endian = REGMAP_ENDIAN_BIG,
> + .val_format_endian = REGMAP_ENDIAN_BIG,
> +
> + .max_register = MADERA_DSP7_SCRATCH_2,
> + .readable_reg = cs47l85_32bit_readable_register,
> + .volatile_reg = cs47l85_32bit_volatile_register,
> +
> + .cache_type = REGCACHE_RBTREE,
> +};
> +EXPORT_SYMBOL_GPL(cs47l85_32bit_spi_regmap);
> +
> +const struct regmap_config cs47l85_32bit_i2c_regmap = {
> + .name = "cs47l85_32bit",
> + .reg_bits = 32,
> + .reg_stride = 2,
> + .val_bits = 32,
> + .reg_format_endian = REGMAP_ENDIAN_BIG,
> + .val_format_endian = REGMAP_ENDIAN_BIG,
> +
> + .max_register = MADERA_DSP7_SCRATCH_2,
> + .readable_reg = cs47l85_32bit_readable_register,
> + .volatile_reg = cs47l85_32bit_volatile_register,
> +
> + .cache_type = REGCACHE_RBTREE,
> +};
> +EXPORT_SYMBOL_GPL(cs47l85_32bit_i2c_regmap);
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
On Wed, 05 Apr 2017, Richard Fitzgerald wrote:
> Regmap configuration tables for Cirrus Logic CS47L90 and CS47L91 codecs.
>
> Signed-off-by: Nikesh Oswal <[email protected]>
> Signed-off-by: Richard Fitzgerald <[email protected]>
> Signed-off-by: Charles Keepax <[email protected]>
> ---
> drivers/mfd/Kconfig | 6 +
> drivers/mfd/Makefile | 3 +
> drivers/mfd/cs47l90-tables.c | 2830 ++++++++++++++++++++++++++++++++++++++++++
> 3 files changed, 2839 insertions(+)
> create mode 100644 drivers/mfd/cs47l90-tables.c
Same as patch 3 and 4.
> diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> index 6618972..f7cb99c 100644
> --- a/drivers/mfd/Kconfig
> +++ b/drivers/mfd/Kconfig
> @@ -238,6 +238,12 @@ config MFD_CS47L85
> help
> Support for Cirrus Logic CS47L85 Smart Codec
>
> +config MFD_CS47L90
> + bool "Cirrus Logic CS47L90/91"
> + depends on MFD_MADERA
> + help
> + Support for Cirrus Logic CS47L90 and CS47L91 Smart Codecs
> +
> config MFD_ASIC3
> bool "Compaq ASIC3"
> depends on GPIOLIB && ARM
> diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
> index 9fdca9a..542da6d 100644
> --- a/drivers/mfd/Makefile
> +++ b/drivers/mfd/Makefile
> @@ -79,6 +79,9 @@ endif
> ifeq ($(CONFIG_MFD_CS47L85),y)
> obj-$(CONFIG_MFD_MADERA) += cs47l85-tables.o
> endif
> +ifeq ($(CONFIG_MFD_CS47L90),y)
> +obj-$(CONFIG_MFD_MADERA) += cs47l90-tables.o
> +endif
> obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o
> obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
>
> diff --git a/drivers/mfd/cs47l90-tables.c b/drivers/mfd/cs47l90-tables.c
> new file mode 100644
> index 0000000..52ce50f
> --- /dev/null
> +++ b/drivers/mfd/cs47l90-tables.c
> @@ -0,0 +1,2830 @@
> +/*
> + * Regmap tables for CS47L90 codec
> + *
> + * Copyright 2015-2016 Cirrus Logic
> + *
> + * Author: Nikesh Oswal <[email protected]>
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#include <linux/device.h>
> +#include <linux/module.h>
> +#include <linux/regmap.h>
> +
> +#include <linux/mfd/madera/core.h>
> +#include <linux/mfd/madera/registers.h>
> +
> +#include "madera.h"
> +
> +static const struct reg_sequence cs47l90_reva_16_patch[] = {
> + { 0x8A, 0x5555 },
> + { 0x8A, 0xAAAA },
> + { 0x4CF, 0x0700 },
> + { 0x171, 0x0003 },
> + { 0x101, 0x0444 },
> + { 0x159, 0x0002 },
> + { 0x120, 0x0444 },
> + { 0x1D1, 0x0004 },
> + { 0x1E0, 0xC084 },
> + { 0x159, 0x0000 },
> + { 0x120, 0x0404 },
> + { 0x101, 0x0404 },
> + { 0x171, 0x0002 },
> + { 0x17A, 0x2906 },
> + { 0x19A, 0x2906 },
> + { 0x441, 0xC750 },
> + { 0x340, 0x0001 },
> + { 0x112, 0x0405 },
> + { 0x124, 0x0C49 },
> + { 0x1300, 0x050E },
> + { 0x1302, 0x0101 },
> + { 0x1380, 0x0425 },
> + { 0x1381, 0xF6D8 },
> + { 0x1382, 0x0632 },
> + { 0x1383, 0xFEC8 },
> + { 0x1390, 0x042F },
> + { 0x1391, 0xF6CA },
> + { 0x1392, 0x0637 },
> + { 0x1393, 0xFEC8 },
> + { 0x281, 0x0000 },
> + { 0x282, 0x0000 },
> + { 0x4EA, 0x0100 },
> + { 0x8A, 0xCCCC },
> + { 0x8A, 0x3333 },
> +};
> +
> +int cs47l90_patch(struct madera *madera)
> +{
> + int ret;
> +
> + ret = regmap_register_patch(madera->regmap,
> + cs47l90_reva_16_patch,
> + ARRAY_SIZE(cs47l90_reva_16_patch));
> + if (ret < 0) {
> + dev_err(madera->dev,
> + "Error in applying 16-bit patch: %d\n", ret);
> + return ret;
> + }
> +
> + return 0;
> +}
> +EXPORT_SYMBOL_GPL(cs47l90_patch);
> +
> +static const struct reg_default cs47l90_reg_default[] = {
> + { 0x00000020, 0x0000 }, /* R32 (0x20) - Tone Generator 1 */
> + { 0x00000021, 0x1000 }, /* R33 (0x21) - Tone Generator 2 */
> + { 0x00000022, 0x0000 }, /* R34 (0x22) - Tone Generator 3 */
> + { 0x00000023, 0x1000 }, /* R35 (0x23) - Tone Generator 4 */
> + { 0x00000024, 0x0000 }, /* R36 (0x24) - Tone Generator 5 */
> + { 0x00000030, 0x0000 }, /* R48 (0x30) - PWM Drive 1 */
> + { 0x00000031, 0x0100 }, /* R49 (0x31) - PWM Drive 2 */
> + { 0x00000032, 0x0100 }, /* R50 (0x32) - PWM Drive 3 */
> + { 0x00000061, 0x01ff }, /* R97 (0x61) - Sample Rate Sequence Select 1 */
> + { 0x00000062, 0x01ff }, /* R98 (0x62) - Sample Rate Sequence Select 2 */
> + { 0x00000063, 0x01ff }, /* R99 (0x63) - Sample Rate Sequence Select 3 */
> + { 0x00000064, 0x01ff }, /* R100 (0x64) - Sample Rate Sequence Select 4 */
> + { 0x00000066, 0x01ff }, /* R102 (0x66) - Always On Triggers Sequence Select 1 */
> + { 0x00000067, 0x01ff }, /* R103 (0x67) - Always On Triggers Sequence Select 2 */
> + { 0x00000090, 0x0000 }, /* R144 (0x90) - Haptics Control 1 */
> + { 0x00000091, 0x7fff }, /* R145 (0x91) - Haptics Control 2 */
> + { 0x00000092, 0x0000 }, /* R146 (0x92) - Haptics phase 1 intensity */
> + { 0x00000093, 0x0000 }, /* R147 (0x93) - Haptics phase 1 duration */
> + { 0x00000094, 0x0000 }, /* R148 (0x94) - Haptics phase 2 intensity */
> + { 0x00000095, 0x0000 }, /* R149 (0x95) - Haptics phase 2 duration */
> + { 0x00000096, 0x0000 }, /* R150 (0x96) - Haptics phase 3 intensity */
> + { 0x00000097, 0x0000 }, /* R151 (0x97) - Haptics phase 3 duration */
> + { 0x000000a0, 0x0000 }, /* R160 (0xa0) - Comfort Noise Generator */
> + { 0x00000100, 0x0002 }, /* R256 (0x100) - Clock 32k 1 */
> + { 0x00000101, 0x0404 }, /* R257 (0x101) - System Clock 1 */
> + { 0x00000102, 0x0011 }, /* R258 (0x102) - Sample rate 1 */
> + { 0x00000103, 0x0011 }, /* R259 (0x103) - Sample rate 2 */
> + { 0x00000104, 0x0011 }, /* R260 (0x104) - Sample rate 3 */
> + { 0x00000112, 0x0405 }, /* R274 (0x112) - Async clock 1 */
> + { 0x00000113, 0x0011 }, /* R275 (0x113) - Async sample rate 1 */
> + { 0x00000114, 0x0011 }, /* R276 (0x114) - Async sample rate 2 */
> + { 0x00000120, 0x0404 }, /* R288 (0x120) - DSP Clock 1 */
> + { 0x00000122, 0x0000 }, /* R290 (0x122) - DSP Clock 2 */
> + { 0x00000149, 0x0000 }, /* R329 (0x149) - Output system clock */
> + { 0x0000014a, 0x0000 }, /* R330 (0x14a) - Output async clock */
> + { 0x00000152, 0x0000 }, /* R338 (0x152) - Rate Estimator 1 */
> + { 0x00000153, 0x0000 }, /* R339 (0x153) - Rate Estimator 2 */
> + { 0x00000154, 0x0000 }, /* R340 (0x154) - Rate Estimator 3 */
> + { 0x00000155, 0x0000 }, /* R341 (0x155) - Rate Estimator 4 */
> + { 0x00000156, 0x0000 }, /* R342 (0x156) - Rate Estimator 5 */
> + { 0x00000171, 0x0002 }, /* R369 (0x171) - FLL1 Control 1 */
> + { 0x00000172, 0x0008 }, /* R370 (0x172) - FLL1 Control 2 */
> + { 0x00000173, 0x0018 }, /* R371 (0x173) - FLL1 Control 3 */
> + { 0x00000174, 0x007d }, /* R372 (0x174) - FLL1 Control 4 */
> + { 0x00000175, 0x0000 }, /* R373 (0x175) - FLL1 Control 5 */
> + { 0x00000176, 0x0000 }, /* R374 (0x176) - FLL1 Control 6 */
> + { 0x00000177, 0x0281 }, /* R375 (0x177) - FLL1 Loop Filter Test 1 */
> + { 0x00000179, 0x0000 }, /* R377 (0x179) - FLL1 Control 7 */
> + { 0x0000017a, 0x2906 }, /* R377 (0x17a) - FLL1 Efs 2 */
> + { 0x00000181, 0x0000 }, /* R385 (0x181) - FLL1 Synchroniser 1 */
> + { 0x00000182, 0x0000 }, /* R386 (0x182) - FLL1 Synchroniser 2 */
> + { 0x00000183, 0x0000 }, /* R387 (0x183) - FLL1 Synchroniser 3 */
> + { 0x00000184, 0x0000 }, /* R388 (0x184) - FLL1 Synchroniser 4 */
> + { 0x00000185, 0x0000 }, /* R389 (0x185) - FLL1 Synchroniser 5 */
> + { 0x00000186, 0x0000 }, /* R390 (0x186) - FLL1 Synchroniser 6 */
> + { 0x00000187, 0x0001 }, /* R391 (0x187) - FLL1 Synchroniser 7 */
> + { 0x00000189, 0x0000 }, /* R393 (0x189) - FLL1 Spread Spectrum */
> + { 0x0000018a, 0x0004 }, /* R394 (0x18a) - FLL1 GPIO Clock */
> + { 0x00000191, 0x0002 }, /* R401 (0x191) - FLL2 Control 1 */
> + { 0x00000192, 0x0008 }, /* R402 (0x192) - FLL2 Control 2 */
> + { 0x00000193, 0x0018 }, /* R403 (0x193) - FLL2 Control 3 */
> + { 0x00000194, 0x007d }, /* R404 (0x194) - FLL2 Control 4 */
> + { 0x00000195, 0x0000 }, /* R405 (0x195) - FLL2 Control 5 */
> + { 0x00000196, 0x0000 }, /* R406 (0x196) - FLL2 Control 6 */
> + { 0x00000197, 0x0281 }, /* R407 (0x197) - FLL2 Loop Filter Test 1 */
> + { 0x00000199, 0x0000 }, /* R409 (0x199) - FLL2 Control 7 */
> + { 0x0000019a, 0x2906 }, /* R410 (0x19a) - FLL2 Efs 2 */
> + { 0x000001a1, 0x0000 }, /* R417 (0x1a1) - FLL2 Synchroniser 1 */
> + { 0x000001a2, 0x0000 }, /* R418 (0x1a2) - FLL2 Synchroniser 2 */
> + { 0x000001a3, 0x0000 }, /* R419 (0x1a3) - FLL2 Synchroniser 3 */
> + { 0x000001a4, 0x0000 }, /* R420 (0x1a4) - FLL2 Synchroniser 4 */
> + { 0x000001a5, 0x0000 }, /* R421 (0x1a5) - FLL2 Synchroniser 5 */
> + { 0x000001a6, 0x0000 }, /* R422 (0x1a6) - FLL2 Synchroniser 6 */
> + { 0x000001a7, 0x0001 }, /* R423 (0x1a7) - FLL2 Synchroniser 7 */
> + { 0x000001a9, 0x0000 }, /* R425 (0x1a9) - FLL2 Spread Spectrum */
> + { 0x000001aa, 0x0004 }, /* R426 (0x1aa) - FLL2 GPIO Clock */
> + { 0x000001d1, 0x0004 }, /* R465 (0x1d1) - FLLAO_CONTROL_1 */
> + { 0x000001d2, 0x0004 }, /* R466 (0x1d2) - FLLAO_CONTROL_2 */
> + { 0x000001d3, 0x0000 }, /* R467 (0x1d3) - FLLAO_CONTROL_3 */
> + { 0x000001d4, 0x0000 }, /* R468 (0x1d4) - FLLAO_CONTROL_4 */
> + { 0x000001d5, 0x0001 }, /* R469 (0x1d5) - FLLAO_CONTROL_5 */
> + { 0x000001d6, 0x8004 }, /* R470 (0x1d6) - FLLAO_CONTROL_6 */
> + { 0x000001d8, 0x0000 }, /* R472 (0x1d8) - FLLAO_CONTROL_7 */
> + { 0x000001da, 0x0070 }, /* R474 (0x1da) - FLLAO_CONTROL_8 */
> + { 0x000001db, 0x0000 }, /* R475 (0x1db) - FLLAO_CONTROL_9 */
> + { 0x000001dc, 0x06da }, /* R476 (0x1dc) - FLLAO_CONTROL_10 */
> + { 0x000001dd, 0x0011 }, /* R477 (0x1dd) - FLLAO_CONTROL_11 */
> + { 0x00000200, 0x0006 }, /* R512 (0x200) - Mic Charge Pump 1 */
> + { 0x00000213, 0x03e4 }, /* R531 (0x213) - LDO2 Control 1 */
> + { 0x00000218, 0x00e6 }, /* R536 (0x218) - Mic Bias Ctrl 1 */
> + { 0x00000219, 0x00e6 }, /* R537 (0x219) - Mic Bias Ctrl 2 */
> + { 0x0000021c, 0x2222 }, /* R540 (0x21c) - Mic Bias Ctrl 5 */
> + { 0x0000021e, 0x2222 }, /* R542 (0x21e) - Mic Bias Ctrl 6 */
> + { 0x0000027e, 0x0000 }, /* R638 (0x27e) - EDRE HP stereo control */
> + { 0x00000293, 0x0080 }, /* R659 (0x293) - Accessory Detect Mode 1 */
> + { 0x00000299, 0x0000 }, /* R665 (0x299) - Headphone Detect 0 */
> + { 0x0000029b, 0x0000 }, /* R667 (0x29b) - Headphone Detect 1 */
> + { 0x000002a2, 0x0010 }, /* R674 (0x2a2) - Mic Detect 1 Control 0 */
> + { 0x000002a3, 0x1102 }, /* R675 (0x2a3) - Mic Detect 1 Control 1 */
> + { 0x000002a4, 0x009f }, /* R676 (0x2a4) - Mic Detect 1 Control 2 */
> + { 0x000002a6, 0x3d3d }, /* R678 (0x2a6) - Mic Detect 1 Level 1 */
> + { 0x000002a7, 0x3d3d }, /* R679 (0x2a7) - Mic Detect 1 Level 2 */
> + { 0x000002a8, 0x333d }, /* R680 (0x2a8) - Mic Detect 1 Level 3 */
> + { 0x000002a9, 0x202d }, /* R681 (0x2a9) - Mic Detect 1 Level 4 */
> + { 0x000002b2, 0x0010 }, /* R690 (0x2b2) - Mic Detect 2 Control 0 */
> + { 0x000002b3, 0x1102 }, /* R691 (0x2b3) - Mic Detect 2 Control 1 */
> + { 0x000002b4, 0x009f }, /* R692 (0x2b4) - Mic Detect 2 Control 2 */
> + { 0x000002b6, 0x3d3d }, /* R694 (0x2b6) - Mic Detect 2 Level 1 */
> + { 0x000002b7, 0x3d3d }, /* R695 (0x2b7) - Mic Detect 2 Level 2 */
> + { 0x000002b8, 0x333d }, /* R696 (0x2b8) - Mic Detect 2 Level 3 */
> + { 0x000002b9, 0x202d }, /* R697 (0x2b9) - Mic Detect 2 Level 4 */
> + { 0x000002c6, 0x0010 }, /* R710 (0x2c6) - Mic Clamp control */
> + { 0x000002c8, 0x0000 }, /* R712 (0x2c8) - GP switch 1 */
> + { 0x000002d3, 0x0000 }, /* R723 (0x2d3) - Jack detect analogue */
> + { 0x00000300, 0x0000 }, /* R768 (0x300) - Input Enables */
> + { 0x00000308, 0x0400 }, /* R776 (0x308) - Input Rate */
> + { 0x00000309, 0x0022 }, /* R777 (0x309) - Input Volume Ramp */
> + { 0x0000030c, 0x0002 }, /* R780 (0x30C) - HPF Control */
> + { 0x00000310, 0x0080 }, /* R784 (0x310) - IN1L Control */
> + { 0x00000311, 0x0180 }, /* R785 (0x311) - ADC Digital Volume 1L */
> + { 0x00000312, 0x0500 }, /* R786 (0x312) - DMIC1L Control */
> + { 0x00000313, 0x0000 }, /* R787 (0x313) - IN1L Rate Control */
> + { 0x00000314, 0x0080 }, /* R788 (0x314) - IN1R Control */
> + { 0x00000315, 0x0180 }, /* R789 (0x315) - ADC Digital Volume 1R */
> + { 0x00000316, 0x0000 }, /* R790 (0x316) - DMIC1R Control */
> + { 0x00000317, 0x0000 }, /* R791 (0x317) - IN1R Rate Control */
> + { 0x00000318, 0x0080 }, /* R792 (0x318) - IN2L Control */
> + { 0x00000319, 0x0180 }, /* R793 (0x319) - ADC Digital Volume 2L */
> + { 0x0000031a, 0x0500 }, /* R794 (0x31a) - DMIC2L Control */
> + { 0x0000031b, 0x0000 }, /* R795 (0x31b) - IN2L Rate Control */
> + { 0x0000031c, 0x0080 }, /* R796 (0x31c) - IN2R Control */
> + { 0x0000031d, 0x0180 }, /* R797 (0x31d) - ADC Digital Volume 2R */
> + { 0x0000031e, 0x0000 }, /* R798 (0x31e) - DMIC2R Control */
> + { 0x0000031f, 0x0000 }, /* R799 (0x31f) - IN2R Rate Control */
> + { 0x00000320, 0x0000 }, /* R800 (0x320) - IN3L Control */
> + { 0x00000321, 0x0180 }, /* R801 (0x321) - ADC Digital Volume 3L */
> + { 0x00000322, 0x0500 }, /* R802 (0x322) - DMIC3L Control */
> + { 0x00000323, 0x0000 }, /* R803 (0x323) - IN3L Rate Control */
> + { 0x00000324, 0x0000 }, /* R804 (0x324) - IN3R Control */
> + { 0x00000325, 0x0180 }, /* R805 (0x325) - ADC Digital Volume 3R */
> + { 0x00000326, 0x0000 }, /* R806 (0x326) - DMIC3R Control */
> + { 0x00000327, 0x0000 }, /* R807 (0x327) - IN3R Rate Control */
> + { 0x00000328, 0x0000 }, /* R808 (0x328) - IN4 Control */
> + { 0x00000329, 0x0180 }, /* R809 (0x329) - ADC Digital Volume 4L */
> + { 0x0000032a, 0x0500 }, /* R810 (0x32a) - DMIC4L Control */
> + { 0x0000032b, 0x0000 }, /* R811 (0x32b) - IN4L Rate Control */
> + { 0x0000032c, 0x0000 }, /* R812 (0x32c) - IN4R Control */
> + { 0x0000032d, 0x0180 }, /* R813 (0x32d) - ADC Digital Volume 4R */
> + { 0x0000032e, 0x0000 }, /* R814 (0x32e) - DMIC4R Control */
> + { 0x0000032f, 0x0000 }, /* R815 (0x32f) - IN4R Rate Control */
> + { 0x00000330, 0x0000 }, /* R816 (0x330) - IN5L Control */
> + { 0x00000331, 0x0180 }, /* R817 (0x331) - ADC Digital Volume 5L */
> + { 0x00000332, 0x0500 }, /* R818 (0x332) - DMIC5L Control */
> + { 0x00000333, 0x0000 }, /* R819 (0x333) - IN5L Rate Control */
> + { 0x00000334, 0x0000 }, /* R820 (0x334) - IN5R Control */
> + { 0x00000335, 0x0180 }, /* R821 (0x335) - ADC Digital Volume 5R */
> + { 0x00000336, 0x0000 }, /* R822 (0x336) - DMIC5R Control */
> + { 0x00000337, 0x0000 }, /* R823 (0x337) - IN5R Rate Control */
> + { 0x00000400, 0x0000 }, /* R1024 (0x400) - Output Enables 1 */
> + { 0x00000408, 0x0000 }, /* R1032 (0x408) - Output Rate 1 */
> + { 0x00000409, 0x0022 }, /* R1033 (0x409) - Output Volume Ramp */
> + { 0x00000410, 0x0080 }, /* R1040 (0x410) - Output Path Config 1L */
> + { 0x00000411, 0x0180 }, /* R1041 (0x411) - DAC Digital Volume 1L */
> + { 0x00000412, 0x0000 }, /* R1042 (0x412) - Output Path Config 1 */
> + { 0x00000413, 0x0001 }, /* R1043 (0x413) - Noise Gate Select 1L */
> + { 0x00000414, 0x0080 }, /* R1044 (0x414) - Output Path Config 1R */
> + { 0x00000415, 0x0180 }, /* R1045 (0x415) - DAC Digital Volume 1R */
> + { 0x00000417, 0x0002 }, /* R1047 (0x417) - Noise Gate Select 1R */
> + { 0x00000418, 0x0080 }, /* R1048 (0x418) - Output Path Config 2L */
> + { 0x00000419, 0x0180 }, /* R1049 (0x419) - DAC Digital Volume 2L */
> + { 0x0000041a, 0x0002 }, /* R1050 (0x41a) - Output Path Config 2 */
> + { 0x0000041b, 0x0004 }, /* R1051 (0x41b) - Noise Gate Select 2L */
> + { 0x0000041c, 0x0080 }, /* R1052 (0x41c) - Output Path Config 2R */
> + { 0x0000041d, 0x0180 }, /* R1053 (0x41d) - DAC Digital Volume 2R */
> + { 0x0000041f, 0x0008 }, /* R1055 (0x41f) - Noise Gate Select 2R */
> + { 0x00000420, 0x0080 }, /* R1056 (0x420) - Output Path Config 3L */
> + { 0x00000421, 0x0180 }, /* R1057 (0x421) - DAC Digital Volume 3L */
> + { 0x00000423, 0x0010 }, /* R1059 (0x423) - Noise Gate Select 3L */
> + { 0x00000424, 0x0080 }, /* R1060 (0x424) - Output Path Config 3R */
> + { 0x00000425, 0x0180 }, /* R1061 (0x425) - DAC Digital Volume 3R */
> + { 0x00000427, 0x0020 }, /* R1063 (0x427) - Noise Gate Select 3R */
> + { 0x00000430, 0x0000 }, /* R1072 (0x430) - Output Path Config 5L */
> + { 0x00000431, 0x0180 }, /* R1073 (0x431) - DAC Digital Volume 5L */
> + { 0x00000433, 0x0100 }, /* R1075 (0x433) - Noise Gate Select 5L */
> + { 0x00000434, 0x0000 }, /* R1076 (0x434) - Output Path Config 5R */
> + { 0x00000435, 0x0180 }, /* R1077 (0x435) - DAC Digital Volume 5R */
> + { 0x00000437, 0x0200 }, /* R1079 (0x437) - Noise Gate Select 5R */
> + { 0x00000440, 0x003f }, /* R1088 (0x440) - DRE Enable */
> + { 0x00000448, 0x003f }, /* R1096 (0x448) - eDRE Enable */
> + { 0x00000450, 0x0000 }, /* R1104 (0x450) - DAC AEC Control 1 */
> + { 0x00000458, 0x0000 }, /* R1112 (0x458) - Noise Gate Control */
> + { 0x00000490, 0x0069 }, /* R1168 (0x490) - PDM SPK1 CTRL 1 */
> + { 0x00000491, 0x0000 }, /* R1169 (0x491) - PDM SPK1 CTRL 2 */
> + { 0x000004a0, 0x3080 }, /* R1184 (0x4a0) - HP1 Short Circuit Ctrl */
> + { 0x000004a1, 0x3000 }, /* R1185 (0x4a1) - HP2 Short Circuit Ctrl */
> + { 0x000004a2, 0x3000 }, /* R1186 (0x4a2) - HP3 Short Circuit Ctrl */
> + { 0x00000500, 0x000c }, /* R1280 (0x500) - AIF1 BCLK Ctrl */
> + { 0x00000501, 0x0000 }, /* R1281 (0x501) - AIF1 Tx Pin Ctrl */
> + { 0x00000502, 0x0000 }, /* R1282 (0x502) - AIF1 Rx Pin Ctrl */
> + { 0x00000503, 0x0000 }, /* R1283 (0x503) - AIF1 Rate Ctrl */
> + { 0x00000504, 0x0000 }, /* R1284 (0x504) - AIF1 Format */
> + { 0x00000506, 0x0040 }, /* R1286 (0x506) - AIF1 Rx BCLK Rate */
> + { 0x00000507, 0x1818 }, /* R1287 (0x507) - AIF1 Frame Ctrl 1 */
> + { 0x00000508, 0x1818 }, /* R1288 (0x508) - AIF1 Frame Ctrl 2 */
> + { 0x00000509, 0x0000 }, /* R1289 (0x509) - AIF1 Frame Ctrl 3 */
> + { 0x0000050a, 0x0001 }, /* R1290 (0x50a) - AIF1 Frame Ctrl 4 */
> + { 0x0000050b, 0x0002 }, /* R1291 (0x50b) - AIF1 Frame Ctrl 5 */
> + { 0x0000050c, 0x0003 }, /* R1292 (0x50c) - AIF1 Frame Ctrl 6 */
> + { 0x0000050d, 0x0004 }, /* R1293 (0x50d) - AIF1 Frame Ctrl 7 */
> + { 0x0000050e, 0x0005 }, /* R1294 (0x50e) - AIF1 Frame Ctrl 8 */
> + { 0x0000050f, 0x0006 }, /* R1295 (0x50f) - AIF1 Frame Ctrl 9 */
> + { 0x00000510, 0x0007 }, /* R1296 (0x510) - AIF1 Frame Ctrl 10 */
> + { 0x00000511, 0x0000 }, /* R1297 (0x511) - AIF1 Frame Ctrl 11 */
> + { 0x00000512, 0x0001 }, /* R1298 (0x512) - AIF1 Frame Ctrl 12 */
> + { 0x00000513, 0x0002 }, /* R1299 (0x513) - AIF1 Frame Ctrl 13 */
> + { 0x00000514, 0x0003 }, /* R1300 (0x514) - AIF1 Frame Ctrl 14 */
> + { 0x00000515, 0x0004 }, /* R1301 (0x515) - AIF1 Frame Ctrl 15 */
> + { 0x00000516, 0x0005 }, /* R1302 (0x516) - AIF1 Frame Ctrl 16 */
> + { 0x00000517, 0x0006 }, /* R1303 (0x517) - AIF1 Frame Ctrl 17 */
> + { 0x00000518, 0x0007 }, /* R1304 (0x518) - AIF1 Frame Ctrl 18 */
> + { 0x00000519, 0x0000 }, /* R1305 (0x519) - AIF1 Tx Enables */
> + { 0x0000051a, 0x0000 }, /* R1306 (0x51a) - AIF1 Rx Enables */
> + { 0x00000540, 0x000c }, /* R1344 (0x540) - AIF2 BCLK Ctrl */
> + { 0x00000541, 0x0000 }, /* R1345 (0x541) - AIF2 Tx Pin Ctrl */
> + { 0x00000542, 0x0000 }, /* R1346 (0x542) - AIF2 Rx Pin Ctrl */
> + { 0x00000543, 0x0000 }, /* R1347 (0x543) - AIF2 Rate Ctrl */
> + { 0x00000544, 0x0000 }, /* R1348 (0x544) - AIF2 Format */
> + { 0x00000546, 0x0040 }, /* R1350 (0x546) - AIF2 Rx BCLK Rate */
> + { 0x00000547, 0x1818 }, /* R1351 (0x547) - AIF2 Frame Ctrl 1 */
> + { 0x00000548, 0x1818 }, /* R1352 (0x548) - AIF2 Frame Ctrl 2 */
> + { 0x00000549, 0x0000 }, /* R1353 (0x549) - AIF2 Frame Ctrl 3 */
> + { 0x0000054a, 0x0001 }, /* R1354 (0x54a) - AIF2 Frame Ctrl 4 */
> + { 0x0000054b, 0x0002 }, /* R1355 (0x54b) - AIF2 Frame Ctrl 5 */
> + { 0x0000054c, 0x0003 }, /* R1356 (0x54c) - AIF2 Frame Ctrl 6 */
> + { 0x0000054d, 0x0004 }, /* R1357 (0x54d) - AIF2 Frame Ctrl 7 */
> + { 0x0000054e, 0x0005 }, /* R1358 (0x54e) - AIF2 Frame Ctrl 8 */
> + { 0x0000054f, 0x0006 }, /* R1359 (0x54f) - AIF2 Frame Ctrl 9 */
> + { 0x00000550, 0x0007 }, /* R1360 (0x550) - AIF2 Frame Ctrl 10 */
> + { 0x00000551, 0x0000 }, /* R1361 (0x551) - AIF2 Frame Ctrl 11 */
> + { 0x00000552, 0x0001 }, /* R1362 (0x552) - AIF2 Frame Ctrl 12 */
> + { 0x00000553, 0x0002 }, /* R1363 (0x553) - AIF2 Frame Ctrl 13 */
> + { 0x00000554, 0x0003 }, /* R1364 (0x554) - AIF2 Frame Ctrl 14 */
> + { 0x00000555, 0x0004 }, /* R1365 (0x555) - AIF2 Frame Ctrl 15 */
> + { 0x00000556, 0x0005 }, /* R1366 (0x556) - AIF2 Frame Ctrl 16 */
> + { 0x00000557, 0x0006 }, /* R1367 (0x557) - AIF2 Frame Ctrl 17 */
> + { 0x00000558, 0x0007 }, /* R1368 (0x558) - AIF2 Frame Ctrl 18 */
> + { 0x00000559, 0x0000 }, /* R1369 (0x559) - AIF2 Tx Enables */
> + { 0x0000055a, 0x0000 }, /* R1370 (0x55a) - AIF2 Rx Enables */
> + { 0x00000580, 0x000c }, /* R1408 (0x580) - AIF3 BCLK Ctrl */
> + { 0x00000581, 0x0000 }, /* R1409 (0x581) - AIF3 Tx Pin Ctrl */
> + { 0x00000582, 0x0000 }, /* R1410 (0x582) - AIF3 Rx Pin Ctrl */
> + { 0x00000583, 0x0000 }, /* R1411 (0x583) - AIF3 Rate Ctrl */
> + { 0x00000584, 0x0000 }, /* R1412 (0x584) - AIF3 Format */
> + { 0x00000586, 0x0040 }, /* R1414 (0x586) - AIF3 Rx BCLK Rate */
> + { 0x00000587, 0x1818 }, /* R1415 (0x587) - AIF3 Frame Ctrl 1 */
> + { 0x00000588, 0x1818 }, /* R1416 (0x588) - AIF3 Frame Ctrl 2 */
> + { 0x00000589, 0x0000 }, /* R1417 (0x589) - AIF3 Frame Ctrl 3 */
> + { 0x0000058a, 0x0001 }, /* R1418 (0x58a) - AIF3 Frame Ctrl 4 */
> + { 0x00000591, 0x0000 }, /* R1425 (0x591) - AIF3 Frame Ctrl 11 */
> + { 0x00000592, 0x0001 }, /* R1426 (0x592) - AIF3 Frame Ctrl 12 */
> + { 0x00000599, 0x0000 }, /* R1433 (0x599) - AIF3 Tx Enables */
> + { 0x0000059a, 0x0000 }, /* R1434 (0x59a) - AIF3 Rx Enables */
> + { 0x000005a0, 0x000c }, /* R1440 (0x5a0) - AIF4 BCLK Ctrl */
> + { 0x000005a1, 0x0000 }, /* R1441 (0x5a1) - AIF4 Tx Pin Ctrl */
> + { 0x000005a2, 0x0000 }, /* R1442 (0x5a2) - AIF4 Rx Pin Ctrl */
> + { 0x000005a3, 0x0000 }, /* R1443 (0x5a3) - AIF4 Rate Ctrl */
> + { 0x000005a4, 0x0000 }, /* R1444 (0x5a4) - AIF4 Format */
> + { 0x000005a6, 0x0040 }, /* R1446 (0x5a6) - AIF4 Rx BCLK Rate */
> + { 0x000005a7, 0x1818 }, /* R1447 (0x5a7) - AIF4 Frame Ctrl 1 */
> + { 0x000005a8, 0x1818 }, /* R1448 (0x5a8) - AIF4 Frame Ctrl 2 */
> + { 0x000005a9, 0x0000 }, /* R1449 (0x5a9) - AIF4 Frame Ctrl 3 */
> + { 0x000005aa, 0x0001 }, /* R1450 (0x5aa) - AIF4 Frame Ctrl 4 */
> + { 0x000005b1, 0x0000 }, /* R1457 (0x5b1) - AIF4 Frame Ctrl 11 */
> + { 0x000005b2, 0x0001 }, /* R1458 (0x5b2) - AIF4 Frame Ctrl 12 */
> + { 0x000005b9, 0x0000 }, /* R1465 (0x5b9) - AIF4 Tx Enables */
> + { 0x000005ba, 0x0000 }, /* R1466 (0x5ba) - AIF4 Rx Enables */
> + { 0x000005c2, 0x0000 }, /* R1474 (0x5c2) - SPD1 TX Control */
> + { 0x000005e3, 0x0000 }, /* R1507 (0x5e3) - SLIMbus Framer Ref Gear */
> + { 0x000005e5, 0x0000 }, /* R1509 (0x5e5) - SLIMbus Rates 1 */
> + { 0x000005e6, 0x0000 }, /* R1510 (0x5e6) - SLIMbus Rates 2 */
> + { 0x000005e7, 0x0000 }, /* R1511 (0x5e7) - SLIMbus Rates 3 */
> + { 0x000005e8, 0x0000 }, /* R1512 (0x5e8) - SLIMbus Rates 4 */
> + { 0x000005e9, 0x0000 }, /* R1513 (0x5e9) - SLIMbus Rates 5 */
> + { 0x000005ea, 0x0000 }, /* R1514 (0x5ea) - SLIMbus Rates 6 */
> + { 0x000005eb, 0x0000 }, /* R1515 (0x5eb) - SLIMbus Rates 7 */
> + { 0x000005ec, 0x0000 }, /* R1516 (0x5ec) - SLIMbus Rates 8 */
> + { 0x000005f5, 0x0000 }, /* R1525 (0x5f5) - SLIMbus RX Channel Enable */
> + { 0x000005f6, 0x0000 }, /* R1526 (0x5F6) - SLIMbus TX Channel Enable */
> + { 0x00000640, 0x0000 }, /* R1600 (0x640) - PWM1MIX Input 1 Source */
> + { 0x00000641, 0x0080 }, /* R1601 (0x641) - PWM1MIX Input 1 Volume */
> + { 0x00000642, 0x0000 }, /* R1602 (0x642) - PWM1MIX Input 2 Source */
> + { 0x00000643, 0x0080 }, /* R1603 (0x643) - PWM1MIX Input 2 Volume */
> + { 0x00000644, 0x0000 }, /* R1604 (0x644) - PWM1MIX Input 3 Source */
> + { 0x00000645, 0x0080 }, /* R1605 (0x645) - PWM1MIX Input 3 Volume */
> + { 0x00000646, 0x0000 }, /* R1606 (0x646) - PWM1MIX Input 4 Source */
> + { 0x00000647, 0x0080 }, /* R1607 (0x647) - PWM1MIX Input 4 Volume */
> + { 0x00000648, 0x0000 }, /* R1608 (0x648) - PWM2MIX Input 1 Source */
> + { 0x00000649, 0x0080 }, /* R1609 (0x649) - PWM2MIX Input 1 Volume */
> + { 0x0000064a, 0x0000 }, /* R1610 (0x64a) - PWM2MIX Input 2 Source */
> + { 0x0000064b, 0x0080 }, /* R1611 (0x64b) - PWM2MIX Input 2 Volume */
> + { 0x0000064c, 0x0000 }, /* R1612 (0x64c) - PWM2MIX Input 3 Source */
> + { 0x0000064d, 0x0080 }, /* R1613 (0x64d) - PWM2MIX Input 3 Volume */
> + { 0x0000064e, 0x0000 }, /* R1614 (0x64e) - PWM2MIX Input 4 Source */
> + { 0x0000064f, 0x0080 }, /* R1615 (0x64f) - PWM2MIX Input 4 Volume */
> + { 0x00000680, 0x0000 }, /* R1664 (0x680) - OUT1LMIX Input 1 Source */
> + { 0x00000681, 0x0080 }, /* R1665 (0x681) - OUT1LMIX Input 1 Volume */
> + { 0x00000682, 0x0000 }, /* R1666 (0x682) - OUT1LMIX Input 2 Source */
> + { 0x00000683, 0x0080 }, /* R1667 (0x683) - OUT1LMIX Input 2 Volume */
> + { 0x00000684, 0x0000 }, /* R1668 (0x684) - OUT1LMIX Input 3 Source */
> + { 0x00000685, 0x0080 }, /* R1669 (0x685) - OUT1LMIX Input 3 Volume */
> + { 0x00000686, 0x0000 }, /* R1670 (0x686) - OUT1LMIX Input 4 Source */
> + { 0x00000687, 0x0080 }, /* R1671 (0x687) - OUT1LMIX Input 4 Volume */
> + { 0x00000688, 0x0000 }, /* R1672 (0x688) - OUT1RMIX Input 1 Source */
> + { 0x00000689, 0x0080 }, /* R1673 (0x689) - OUT1RMIX Input 1 Volume */
> + { 0x0000068a, 0x0000 }, /* R1674 (0x68a) - OUT1RMIX Input 2 Source */
> + { 0x0000068b, 0x0080 }, /* R1675 (0x68b) - OUT1RMIX Input 2 Volume */
> + { 0x0000068c, 0x0000 }, /* R1672 (0x68c) - OUT1RMIX Input 3 Source */
> + { 0x0000068d, 0x0080 }, /* R1673 (0x68d) - OUT1RMIX Input 3 Volume */
> + { 0x0000068e, 0x0000 }, /* R1674 (0x68e) - OUT1RMIX Input 4 Source */
> + { 0x0000068f, 0x0080 }, /* R1675 (0x68f) - OUT1RMIX Input 4 Volume */
> + { 0x00000690, 0x0000 }, /* R1680 (0x690) - OUT2LMIX Input 1 Source */
> + { 0x00000691, 0x0080 }, /* R1681 (0x691) - OUT2LMIX Input 1 Volume */
> + { 0x00000692, 0x0000 }, /* R1682 (0x692) - OUT2LMIX Input 2 Source */
> + { 0x00000693, 0x0080 }, /* R1683 (0x693) - OUT2LMIX Input 2 Volume */
> + { 0x00000694, 0x0000 }, /* R1684 (0x694) - OUT2LMIX Input 3 Source */
> + { 0x00000695, 0x0080 }, /* R1685 (0x695) - OUT2LMIX Input 3 Volume */
> + { 0x00000696, 0x0000 }, /* R1686 (0x696) - OUT2LMIX Input 4 Source */
> + { 0x00000697, 0x0080 }, /* R1687 (0x697) - OUT2LMIX Input 4 Volume */
> + { 0x00000698, 0x0000 }, /* R1688 (0x698) - OUT2RMIX Input 1 Source */
> + { 0x00000699, 0x0080 }, /* R1689 (0x699) - OUT2RMIX Input 1 Volume */
> + { 0x0000069a, 0x0000 }, /* R1690 (0x69a) - OUT2RMIX Input 2 Source */
> + { 0x0000069b, 0x0080 }, /* R1691 (0x69b) - OUT2RMIX Input 2 Volume */
> + { 0x0000069c, 0x0000 }, /* R1692 (0x69c) - OUT2RMIX Input 3 Source */
> + { 0x0000069d, 0x0080 }, /* R1693 (0x69d) - OUT2RMIX Input 3 Volume */
> + { 0x0000069e, 0x0000 }, /* R1694 (0x69e) - OUT2RMIX Input 4 Source */
> + { 0x0000069f, 0x0080 }, /* R1695 (0x69f) - OUT2RMIX Input 4 Volume */
> + { 0x000006a0, 0x0000 }, /* R1696 (0x6a0) - OUT3LMIX Input 1 Source */
> + { 0x000006a1, 0x0080 }, /* R1697 (0x6a1) - OUT3LMIX Input 1 Volume */
> + { 0x000006a2, 0x0000 }, /* R1698 (0x6a2) - OUT3LMIX Input 2 Source */
> + { 0x000006a3, 0x0080 }, /* R1699 (0x6a3) - OUT3LMIX Input 2 Volume */
> + { 0x000006a4, 0x0000 }, /* R1700 (0x6a4) - OUT3LMIX Input 3 Source */
> + { 0x000006a5, 0x0080 }, /* R1701 (0x6a5) - OUT3LMIX Input 3 Volume */
> + { 0x000006a6, 0x0000 }, /* R1702 (0x6a6) - OUT3LMIX Input 4 Source */
> + { 0x000006a7, 0x0080 }, /* R1703 (0x6a7) - OUT3LMIX Input 4 Volume */
> + { 0x000006a8, 0x0000 }, /* R1704 (0x6a8) - OUT3RMIX Input 1 Source */
> + { 0x000006a9, 0x0080 }, /* R1705 (0x6a9) - OUT3RMIX Input 1 Volume */
> + { 0x000006aa, 0x0000 }, /* R1706 (0x6aa) - OUT3RMIX Input 2 Source */
> + { 0x000006ab, 0x0080 }, /* R1707 (0x6ab) - OUT3RMIX Input 2 Volume */
> + { 0x000006ac, 0x0000 }, /* R1708 (0x6ac) - OUT3RMIX Input 3 Source */
> + { 0x000006ad, 0x0080 }, /* R1709 (0x6ad) - OUT3RMIX Input 3 Volume */
> + { 0x000006ae, 0x0000 }, /* R1710 (0x6ae) - OUT3RMIX Input 4 Source */
> + { 0x000006af, 0x0080 }, /* R1711 (0x6af) - OUT3RMIX Input 4 Volume */
> + { 0x000006c0, 0x0000 }, /* R1728 (0x6c0) - OUT5LMIX Input 1 Source */
> + { 0x000006c1, 0x0080 }, /* R1729 (0x6c1) - OUT5LMIX Input 1 Volume */
> + { 0x000006c2, 0x0000 }, /* R1730 (0x6c2) - OUT5LMIX Input 2 Source */
> + { 0x000006c3, 0x0080 }, /* R1731 (0x6c3) - OUT5LMIX Input 2 Volume */
> + { 0x000006c4, 0x0000 }, /* R1732 (0x6c4) - OUT5LMIX Input 3 Source */
> + { 0x000006c5, 0x0080 }, /* R1733 (0x6c5) - OUT5LMIX Input 3 Volume */
> + { 0x000006c6, 0x0000 }, /* R1734 (0x6c6) - OUT5LMIX Input 4 Source */
> + { 0x000006c7, 0x0080 }, /* R1735 (0x6c7) - OUT5LMIX Input 4 Volume */
> + { 0x000006c8, 0x0000 }, /* R1736 (0x6c8) - OUT5RMIX Input 1 Source */
> + { 0x000006c9, 0x0080 }, /* R1737 (0x6c9) - OUT5RMIX Input 1 Volume */
> + { 0x000006ca, 0x0000 }, /* R1738 (0x6ca) - OUT5RMIX Input 2 Source */
> + { 0x000006cb, 0x0080 }, /* R1739 (0x6cb) - OUT5RMIX Input 2 Volume */
> + { 0x000006cc, 0x0000 }, /* R1740 (0x6cc) - OUT5RMIX Input 3 Source */
> + { 0x000006cd, 0x0080 }, /* R1741 (0x6cd) - OUT5RMIX Input 3 Volume */
> + { 0x000006ce, 0x0000 }, /* R1742 (0x6ce) - OUT5RMIX Input 4 Source */
> + { 0x000006cf, 0x0080 }, /* R1743 (0x6cf) - OUT5RMIX Input 4 Volume */
> + { 0x00000700, 0x0000 }, /* R1792 (0x700) - AIF1TX1MIX Input 1 Source */
> + { 0x00000701, 0x0080 }, /* R1793 (0x701) - AIF1TX1MIX Input 1 Volume */
> + { 0x00000702, 0x0000 }, /* R1794 (0x702) - AIF1TX1MIX Input 2 Source */
> + { 0x00000703, 0x0080 }, /* R1795 (0x703) - AIF1TX1MIX Input 2 Volume */
> + { 0x00000704, 0x0000 }, /* R1796 (0x704) - AIF1TX1MIX Input 3 Source */
> + { 0x00000705, 0x0080 }, /* R1797 (0x705) - AIF1TX1MIX Input 3 Volume */
> + { 0x00000706, 0x0000 }, /* R1798 (0x706) - AIF1TX1MIX Input 4 Source */
> + { 0x00000707, 0x0080 }, /* R1799 (0x707) - AIF1TX1MIX Input 4 Volume */
> + { 0x00000708, 0x0000 }, /* R1800 (0x708) - AIF1TX2MIX Input 1 Source */
> + { 0x00000709, 0x0080 }, /* R1801 (0x709) - AIF1TX2MIX Input 1 Volume */
> + { 0x0000070a, 0x0000 }, /* R1802 (0x70a) - AIF1TX2MIX Input 2 Source */
> + { 0x0000070b, 0x0080 }, /* R1803 (0x70b) - AIF1TX2MIX Input 2 Volume */
> + { 0x0000070c, 0x0000 }, /* R1804 (0x70c) - AIF1TX2MIX Input 3 Source */
> + { 0x0000070d, 0x0080 }, /* R1805 (0x70d) - AIF1TX2MIX Input 3 Volume */
> + { 0x0000070e, 0x0000 }, /* R1806 (0x70e) - AIF1TX2MIX Input 4 Source */
> + { 0x0000070f, 0x0080 }, /* R1807 (0x70f) - AIF1TX2MIX Input 4 Volume */
> + { 0x00000710, 0x0000 }, /* R1808 (0x710) - AIF1TX3MIX Input 1 Source */
> + { 0x00000711, 0x0080 }, /* R1809 (0x711) - AIF1TX3MIX Input 1 Volume */
> + { 0x00000712, 0x0000 }, /* R1810 (0x712) - AIF1TX3MIX Input 2 Source */
> + { 0x00000713, 0x0080 }, /* R1811 (0x713) - AIF1TX3MIX Input 2 Volume */
> + { 0x00000714, 0x0000 }, /* R1812 (0x714) - AIF1TX3MIX Input 3 Source */
> + { 0x00000715, 0x0080 }, /* R1813 (0x715) - AIF1TX3MIX Input 3 Volume */
> + { 0x00000716, 0x0000 }, /* R1814 (0x716) - AIF1TX3MIX Input 4 Source */
> + { 0x00000717, 0x0080 }, /* R1815 (0x717) - AIF1TX3MIX Input 4 Volume */
> + { 0x00000718, 0x0000 }, /* R1816 (0x718) - AIF1TX4MIX Input 1 Source */
> + { 0x00000719, 0x0080 }, /* R1817 (0x719) - AIF1TX4MIX Input 1 Volume */
> + { 0x0000071a, 0x0000 }, /* R1818 (0x71a) - AIF1TX4MIX Input 2 Source */
> + { 0x0000071b, 0x0080 }, /* R1819 (0x71b) - AIF1TX4MIX Input 2 Volume */
> + { 0x0000071c, 0x0000 }, /* R1820 (0x71c) - AIF1TX4MIX Input 3 Source */
> + { 0x0000071d, 0x0080 }, /* R1821 (0x71d) - AIF1TX4MIX Input 3 Volume */
> + { 0x0000071e, 0x0000 }, /* R1822 (0x71e) - AIF1TX4MIX Input 4 Source */
> + { 0x0000071f, 0x0080 }, /* R1823 (0x71f) - AIF1TX4MIX Input 4 Volume */
> + { 0x00000720, 0x0000 }, /* R1824 (0x720) - AIF1TX5MIX Input 1 Source */
> + { 0x00000721, 0x0080 }, /* R1825 (0x721) - AIF1TX5MIX Input 1 Volume */
> + { 0x00000722, 0x0000 }, /* R1826 (0x722) - AIF1TX5MIX Input 2 Source */
> + { 0x00000723, 0x0080 }, /* R1827 (0x723) - AIF1TX5MIX Input 2 Volume */
> + { 0x00000724, 0x0000 }, /* R1828 (0x724) - AIF1TX5MIX Input 3 Source */
> + { 0x00000725, 0x0080 }, /* R1829 (0x725) - AIF1TX5MIX Input 3 Volume */
> + { 0x00000726, 0x0000 }, /* R1830 (0x726) - AIF1TX5MIX Input 4 Source */
> + { 0x00000727, 0x0080 }, /* R1831 (0x727) - AIF1TX5MIX Input 4 Volume */
> + { 0x00000728, 0x0000 }, /* R1832 (0x728) - AIF1TX6MIX Input 1 Source */
> + { 0x00000729, 0x0080 }, /* R1833 (0x729) - AIF1TX6MIX Input 1 Volume */
> + { 0x0000072a, 0x0000 }, /* R1834 (0x72a) - AIF1TX6MIX Input 2 Source */
> + { 0x0000072b, 0x0080 }, /* R1835 (0x72b) - AIF1TX6MIX Input 2 Volume */
> + { 0x0000072c, 0x0000 }, /* R1836 (0x72c) - AIF1TX6MIX Input 3 Source */
> + { 0x0000072d, 0x0080 }, /* R1837 (0x72d) - AIF1TX6MIX Input 3 Volume */
> + { 0x0000072e, 0x0000 }, /* R1838 (0x72e) - AIF1TX6MIX Input 4 Source */
> + { 0x0000072f, 0x0080 }, /* R1839 (0x72f) - AIF1TX6MIX Input 4 Volume */
> + { 0x00000730, 0x0000 }, /* R1840 (0x730) - AIF1TX7MIX Input 1 Source */
> + { 0x00000731, 0x0080 }, /* R1841 (0x731) - AIF1TX7MIX Input 1 Volume */
> + { 0x00000732, 0x0000 }, /* R1842 (0x732) - AIF1TX7MIX Input 2 Source */
> + { 0x00000733, 0x0080 }, /* R1843 (0x733) - AIF1TX7MIX Input 2 Volume */
> + { 0x00000734, 0x0000 }, /* R1844 (0x734) - AIF1TX7MIX Input 3 Source */
> + { 0x00000735, 0x0080 }, /* R1845 (0x735) - AIF1TX7MIX Input 3 Volume */
> + { 0x00000736, 0x0000 }, /* R1846 (0x736) - AIF1TX7MIX Input 4 Source */
> + { 0x00000737, 0x0080 }, /* R1847 (0x737) - AIF1TX7MIX Input 4 Volume */
> + { 0x00000738, 0x0000 }, /* R1848 (0x738) - AIF1TX8MIX Input 1 Source */
> + { 0x00000739, 0x0080 }, /* R1849 (0x739) - AIF1TX8MIX Input 1 Volume */
> + { 0x0000073a, 0x0000 }, /* R1850 (0x73a) - AIF1TX8MIX Input 2 Source */
> + { 0x0000073b, 0x0080 }, /* R1851 (0x73b) - AIF1TX8MIX Input 2 Volume */
> + { 0x0000073c, 0x0000 }, /* R1852 (0x73c) - AIF1TX8MIX Input 3 Source */
> + { 0x0000073d, 0x0080 }, /* R1853 (0x73d) - AIF1TX8MIX Input 3 Volume */
> + { 0x0000073e, 0x0000 }, /* R1854 (0x73e) - AIF1TX8MIX Input 4 Source */
> + { 0x0000073f, 0x0080 }, /* R1855 (0x73f) - AIF1TX8MIX Input 4 Volume */
> + { 0x00000740, 0x0000 }, /* R1856 (0x740) - AIF2TX1MIX Input 1 Source */
> + { 0x00000741, 0x0080 }, /* R1857 (0x741) - AIF2TX1MIX Input 1 Volume */
> + { 0x00000742, 0x0000 }, /* R1858 (0x742) - AIF2TX1MIX Input 2 Source */
> + { 0x00000743, 0x0080 }, /* R1859 (0x743) - AIF2TX1MIX Input 2 Volume */
> + { 0x00000744, 0x0000 }, /* R1860 (0x744) - AIF2TX1MIX Input 3 Source */
> + { 0x00000745, 0x0080 }, /* R1861 (0x745) - AIF2TX1MIX Input 3 Volume */
> + { 0x00000746, 0x0000 }, /* R1862 (0x746) - AIF2TX1MIX Input 4 Source */
> + { 0x00000747, 0x0080 }, /* R1863 (0x747) - AIF2TX1MIX Input 4 Volume */
> + { 0x00000748, 0x0000 }, /* R1864 (0x748) - AIF2TX2MIX Input 1 Source */
> + { 0x00000749, 0x0080 }, /* R1865 (0x749) - AIF2TX2MIX Input 1 Volume */
> + { 0x0000074a, 0x0000 }, /* R1866 (0x74a) - AIF2TX2MIX Input 2 Source */
> + { 0x0000074b, 0x0080 }, /* R1867 (0x74b) - AIF2TX2MIX Input 2 Volume */
> + { 0x0000074c, 0x0000 }, /* R1868 (0x74c) - AIF2TX2MIX Input 3 Source */
> + { 0x0000074d, 0x0080 }, /* R1869 (0x74d) - AIF2TX2MIX Input 3 Volume */
> + { 0x0000074e, 0x0000 }, /* R1870 (0x74e) - AIF2TX2MIX Input 4 Source */
> + { 0x0000074f, 0x0080 }, /* R1871 (0x74f) - AIF2TX2MIX Input 4 Volume */
> + { 0x00000750, 0x0000 }, /* R1872 (0x750) - AIF2TX3MIX Input 1 Source */
> + { 0x00000751, 0x0080 }, /* R1873 (0x751) - AIF2TX3MIX Input 1 Volume */
> + { 0x00000752, 0x0000 }, /* R1874 (0x752) - AIF2TX3MIX Input 2 Source */
> + { 0x00000753, 0x0080 }, /* R1875 (0x753) - AIF2TX3MIX Input 2 Volume */
> + { 0x00000754, 0x0000 }, /* R1876 (0x754) - AIF2TX3MIX Input 3 Source */
> + { 0x00000755, 0x0080 }, /* R1877 (0x755) - AIF2TX3MIX Input 3 Volume */
> + { 0x00000756, 0x0000 }, /* R1878 (0x756) - AIF2TX3MIX Input 4 Source */
> + { 0x00000757, 0x0080 }, /* R1879 (0x757) - AIF2TX3MIX Input 4 Volume */
> + { 0x00000758, 0x0000 }, /* R1880 (0x758) - AIF2TX4MIX Input 1 Source */
> + { 0x00000759, 0x0080 }, /* R1881 (0x759) - AIF2TX4MIX Input 1 Volume */
> + { 0x0000075a, 0x0000 }, /* R1882 (0x75a) - AIF2TX4MIX Input 2 Source */
> + { 0x0000075b, 0x0080 }, /* R1883 (0x75b) - AIF2TX4MIX Input 2 Volume */
> + { 0x0000075c, 0x0000 }, /* R1884 (0x75c) - AIF2TX4MIX Input 3 Source */
> + { 0x0000075d, 0x0080 }, /* R1885 (0x75d) - AIF2TX4MIX Input 3 Volume */
> + { 0x0000075e, 0x0000 }, /* R1886 (0x75e) - AIF2TX4MIX Input 4 Source */
> + { 0x0000075f, 0x0080 }, /* R1887 (0x75f) - AIF2TX4MIX Input 4 Volume */
> + { 0x00000760, 0x0000 }, /* R1888 (0x760) - AIF2TX5MIX Input 1 Source */
> + { 0x00000761, 0x0080 }, /* R1889 (0x761) - AIF2TX5MIX Input 1 Volume */
> + { 0x00000762, 0x0000 }, /* R1890 (0x762) - AIF2TX5MIX Input 2 Source */
> + { 0x00000763, 0x0080 }, /* R1891 (0x763) - AIF2TX5MIX Input 2 Volume */
> + { 0x00000764, 0x0000 }, /* R1892 (0x764) - AIF2TX5MIX Input 3 Source */
> + { 0x00000765, 0x0080 }, /* R1893 (0x765) - AIF2TX5MIX Input 3 Volume */
> + { 0x00000766, 0x0000 }, /* R1894 (0x766) - AIF2TX5MIX Input 4 Source */
> + { 0x00000767, 0x0080 }, /* R1895 (0x767) - AIF2TX5MIX Input 4 Volume */
> + { 0x00000768, 0x0000 }, /* R1896 (0x768) - AIF2TX6MIX Input 1 Source */
> + { 0x00000769, 0x0080 }, /* R1897 (0x769) - AIF2TX6MIX Input 1 Volume */
> + { 0x0000076a, 0x0000 }, /* R1898 (0x76a) - AIF2TX6MIX Input 2 Source */
> + { 0x0000076b, 0x0080 }, /* R1899 (0x76b) - AIF2TX6MIX Input 2 Volume */
> + { 0x0000076c, 0x0000 }, /* R1900 (0x76c) - AIF2TX6MIX Input 3 Source */
> + { 0x0000076d, 0x0080 }, /* R1901 (0x76d) - AIF2TX6MIX Input 3 Volume */
> + { 0x0000076e, 0x0000 }, /* R1902 (0x76e) - AIF2TX6MIX Input 4 Source */
> + { 0x0000076f, 0x0080 }, /* R1903 (0x76f) - AIF2TX6MIX Input 4 Volume */
> + { 0x00000770, 0x0000 }, /* R1904 (0x770) - AIF2TX7MIX Input 1 Source */
> + { 0x00000771, 0x0080 }, /* R1905 (0x771) - AIF2TX7MIX Input 1 Volume */
> + { 0x00000772, 0x0000 }, /* R1906 (0x772) - AIF2TX7MIX Input 2 Source */
> + { 0x00000773, 0x0080 }, /* R1907 (0x773) - AIF2TX7MIX Input 2 Volume */
> + { 0x00000774, 0x0000 }, /* R1908 (0x774) - AIF2TX7MIX Input 3 Source */
> + { 0x00000775, 0x0080 }, /* R1909 (0x775) - AIF2TX7MIX Input 3 Volume */
> + { 0x00000776, 0x0000 }, /* R1910 (0x776) - AIF2TX7MIX Input 4 Source */
> + { 0x00000777, 0x0080 }, /* R1911 (0x777) - AIF2TX7MIX Input 4 Volume */
> + { 0x00000778, 0x0000 }, /* R1912 (0x778) - AIF2TX8MIX Input 1 Source */
> + { 0x00000779, 0x0080 }, /* R1913 (0x779) - AIF2TX8MIX Input 1 Volume */
> + { 0x0000077a, 0x0000 }, /* R1914 (0x77a) - AIF2TX8MIX Input 2 Source */
> + { 0x0000077b, 0x0080 }, /* R1915 (0x77b) - AIF2TX8MIX Input 2 Volume */
> + { 0x0000077c, 0x0000 }, /* R1916 (0x77c) - AIF2TX8MIX Input 3 Source */
> + { 0x0000077d, 0x0080 }, /* R1917 (0x77d) - AIF2TX8MIX Input 3 Volume */
> + { 0x0000077e, 0x0000 }, /* R1918 (0x77e) - AIF2TX8MIX Input 4 Source */
> + { 0x0000077f, 0x0080 }, /* R1919 (0x77f) - AIF2TX8MIX Input 4 Volume */
> + { 0x00000780, 0x0000 }, /* R1920 (0x780) - AIF3TX1MIX Input 1 Source */
> + { 0x00000781, 0x0080 }, /* R1921 (0x781) - AIF3TX1MIX Input 1 Volume */
> + { 0x00000782, 0x0000 }, /* R1922 (0x782) - AIF3TX1MIX Input 2 Source */
> + { 0x00000783, 0x0080 }, /* R1923 (0x783) - AIF3TX1MIX Input 2 Volume */
> + { 0x00000784, 0x0000 }, /* R1924 (0x784) - AIF3TX1MIX Input 3 Source */
> + { 0x00000785, 0x0080 }, /* R1925 (0x785) - AIF3TX1MIX Input 3 Volume */
> + { 0x00000786, 0x0000 }, /* R1926 (0x786) - AIF3TX1MIX Input 4 Source */
> + { 0x00000787, 0x0080 }, /* R1927 (0x787) - AIF3TX1MIX Input 4 Volume */
> + { 0x00000788, 0x0000 }, /* R1928 (0x788) - AIF3TX2MIX Input 1 Source */
> + { 0x00000789, 0x0080 }, /* R1929 (0x789) - AIF3TX2MIX Input 1 Volume */
> + { 0x0000078a, 0x0000 }, /* R1930 (0x78a) - AIF3TX2MIX Input 2 Source */
> + { 0x0000078b, 0x0080 }, /* R1931 (0x78b) - AIF3TX2MIX Input 2 Volume */
> + { 0x0000078c, 0x0000 }, /* R1932 (0x78c) - AIF3TX2MIX Input 3 Source */
> + { 0x0000078d, 0x0080 }, /* R1933 (0x78d) - AIF3TX2MIX Input 3 Volume */
> + { 0x0000078e, 0x0000 }, /* R1934 (0x78e) - AIF3TX2MIX Input 4 Source */
> + { 0x0000078f, 0x0080 }, /* R1935 (0x78f) - AIF3TX2MIX Input 4 Volume */
> + { 0x000007a0, 0x0000 }, /* R1952 (0x7a0) - AIF4TX1MIX Input 1 Source */
> + { 0x000007a1, 0x0080 }, /* R1953 (0x7a1) - AIF4TX1MIX Input 1 Volume */
> + { 0x000007a2, 0x0000 }, /* R1954 (0x7a2) - AIF4TX1MIX Input 2 Source */
> + { 0x000007a3, 0x0080 }, /* R1955 (0x7a3) - AIF4TX1MIX Input 2 Volume */
> + { 0x000007a4, 0x0000 }, /* R1956 (0x7a4) - AIF4TX1MIX Input 3 Source */
> + { 0x000007a5, 0x0080 }, /* R1957 (0x7a5) - AIF4TX1MIX Input 3 Volume */
> + { 0x000007a6, 0x0000 }, /* R1958 (0x7a6) - AIF4TX1MIX Input 4 Source */
> + { 0x000007a7, 0x0080 }, /* R1959 (0x7a7) - AIF4TX1MIX Input 4 Volume */
> + { 0x000007a8, 0x0000 }, /* R1960 (0x7a8) - AIF4TX2MIX Input 1 Source */
> + { 0x000007a9, 0x0080 }, /* R1961 (0x7a9) - AIF4TX2MIX Input 1 Volume */
> + { 0x000007aa, 0x0000 }, /* R1962 (0x7aa) - AIF4TX2MIX Input 2 Source */
> + { 0x000007ab, 0x0080 }, /* R1963 (0x7ab) - AIF4TX2MIX Input 2 Volume */
> + { 0x000007ac, 0x0000 }, /* R1964 (0x7ac) - AIF4TX2MIX Input 3 Source */
> + { 0x000007ad, 0x0080 }, /* R1965 (0x7ad) - AIF4TX2MIX Input 3 Volume */
> + { 0x000007ae, 0x0000 }, /* R1966 (0x7ae) - AIF4TX2MIX Input 4 Source */
> + { 0x000007af, 0x0080 }, /* R1967 (0x7af) - AIF4TX2MIX Input 4 Volume */
> + { 0x000007c0, 0x0000 }, /* R1984 (0x7c0) - SLIMTX1MIX Input 1 Source */
> + { 0x000007c1, 0x0080 }, /* R1985 (0x7c1) - SLIMTX1MIX Input 1 Volume */
> + { 0x000007c2, 0x0000 }, /* R1986 (0x7c2) - SLIMTX1MIX Input 2 Source */
> + { 0x000007c3, 0x0080 }, /* R1987 (0x7c3) - SLIMTX1MIX Input 2 Volume */
> + { 0x000007c4, 0x0000 }, /* R1988 (0x7c4) - SLIMTX1MIX Input 3 Source */
> + { 0x000007c5, 0x0080 }, /* R1989 (0x7c5) - SLIMTX1MIX Input 3 Volume */
> + { 0x000007c6, 0x0000 }, /* R1990 (0x7c6) - SLIMTX1MIX Input 4 Source */
> + { 0x000007c7, 0x0080 }, /* R1991 (0x7c7) - SLIMTX1MIX Input 4 Volume */
> + { 0x000007c8, 0x0000 }, /* R1992 (0x7c8) - SLIMTX2MIX Input 1 Source */
> + { 0x000007c9, 0x0080 }, /* R1993 (0x7c9) - SLIMTX2MIX Input 1 Volume */
> + { 0x000007ca, 0x0000 }, /* R1994 (0x7ca) - SLIMTX2MIX Input 2 Source */
> + { 0x000007cb, 0x0080 }, /* R1995 (0x7cb) - SLIMTX2MIX Input 2 Volume */
> + { 0x000007cc, 0x0000 }, /* R1996 (0x7cc) - SLIMTX2MIX Input 3 Source */
> + { 0x000007cd, 0x0080 }, /* R1997 (0x7cd) - SLIMTX2MIX Input 3 Volume */
> + { 0x000007ce, 0x0000 }, /* R1998 (0x7ce) - SLIMTX2MIX Input 4 Source */
> + { 0x000007cf, 0x0080 }, /* R1999 (0x7cf) - SLIMTX2MIX Input 4 Volume */
> + { 0x000007d0, 0x0000 }, /* R2000 (0x7d0) - SLIMTX3MIX Input 1 Source */
> + { 0x000007d1, 0x0080 }, /* R2001 (0x7d1) - SLIMTX3MIX Input 1 Volume */
> + { 0x000007d2, 0x0000 }, /* R2002 (0x7d2) - SLIMTX3MIX Input 2 Source */
> + { 0x000007d3, 0x0080 }, /* R2003 (0x7d3) - SLIMTX3MIX Input 2 Volume */
> + { 0x000007d4, 0x0000 }, /* R2004 (0x7d4) - SLIMTX3MIX Input 3 Source */
> + { 0x000007d5, 0x0080 }, /* R2005 (0x7d5) - SLIMTX3MIX Input 3 Volume */
> + { 0x000007d6, 0x0000 }, /* R2006 (0x7d6) - SLIMTX3MIX Input 4 Source */
> + { 0x000007d7, 0x0080 }, /* R2007 (0x7d7) - SLIMTX3MIX Input 4 Volume */
> + { 0x000007d8, 0x0000 }, /* R2008 (0x7d8) - SLIMTX4MIX Input 1 Source */
> + { 0x000007d9, 0x0080 }, /* R2009 (0x7d9) - SLIMTX4MIX Input 1 Volume */
> + { 0x000007da, 0x0000 }, /* R2010 (0x7da) - SLIMTX4MIX Input 2 Source */
> + { 0x000007db, 0x0080 }, /* R2011 (0x7db) - SLIMTX4MIX Input 2 Volume */
> + { 0x000007dc, 0x0000 }, /* R2012 (0x7dc) - SLIMTX4MIX Input 3 Source */
> + { 0x000007dd, 0x0080 }, /* R2013 (0x7dd) - SLIMTX4MIX Input 3 Volume */
> + { 0x000007de, 0x0000 }, /* R2014 (0x7de) - SLIMTX4MIX Input 4 Source */
> + { 0x000007df, 0x0080 }, /* R2015 (0x7df) - SLIMTX4MIX Input 4 Volume */
> + { 0x000007e0, 0x0000 }, /* R2016 (0x7e0) - SLIMTX5MIX Input 1 Source */
> + { 0x000007e1, 0x0080 }, /* R2017 (0x7e1) - SLIMTX5MIX Input 1 Volume */
> + { 0x000007e2, 0x0000 }, /* R2018 (0x7e2) - SLIMTX5MIX Input 2 Source */
> + { 0x000007e3, 0x0080 }, /* R2019 (0x7e3) - SLIMTX5MIX Input 2 Volume */
> + { 0x000007e4, 0x0000 }, /* R2020 (0x7e4) - SLIMTX5MIX Input 3 Source */
> + { 0x000007e5, 0x0080 }, /* R2021 (0x7e5) - SLIMTX5MIX Input 3 Volume */
> + { 0x000007e6, 0x0000 }, /* R2022 (0x7e6) - SLIMTX5MIX Input 4 Source */
> + { 0x000007e7, 0x0080 }, /* R2023 (0x7e7) - SLIMTX5MIX Input 4 Volume */
> + { 0x000007e8, 0x0000 }, /* R2024 (0x7e8) - SLIMTX6MIX Input 1 Source */
> + { 0x000007e9, 0x0080 }, /* R2025 (0x7e9) - SLIMTX6MIX Input 1 Volume */
> + { 0x000007ea, 0x0000 }, /* R2026 (0x7ea) - SLIMTX6MIX Input 2 Source */
> + { 0x000007eb, 0x0080 }, /* R2027 (0x7eb) - SLIMTX6MIX Input 2 Volume */
> + { 0x000007ec, 0x0000 }, /* R2028 (0x7ec) - SLIMTX6MIX Input 3 Source */
> + { 0x000007ed, 0x0080 }, /* R2029 (0x7ed) - SLIMTX6MIX Input 3 Volume */
> + { 0x000007ee, 0x0000 }, /* R2030 (0x7ee) - SLIMTX6MIX Input 4 Source */
> + { 0x000007ef, 0x0080 }, /* R2031 (0x7ef) - SLIMTX6MIX Input 4 Volume */
> + { 0x000007f0, 0x0000 }, /* R2032 (0x7f0) - SLIMTX7MIX Input 1 Source */
> + { 0x000007f1, 0x0080 }, /* R2033 (0x7f1) - SLIMTX7MIX Input 1 Volume */
> + { 0x000007f2, 0x0000 }, /* R2034 (0x7f2) - SLIMTX7MIX Input 2 Source */
> + { 0x000007f3, 0x0080 }, /* R2035 (0x7f3) - SLIMTX7MIX Input 2 Volume */
> + { 0x000007f4, 0x0000 }, /* R2036 (0x7f4) - SLIMTX7MIX Input 3 Source */
> + { 0x000007f5, 0x0080 }, /* R2037 (0x7f5) - SLIMTX7MIX Input 3 Volume */
> + { 0x000007f6, 0x0000 }, /* R2038 (0x7f6) - SLIMTX7MIX Input 4 Source */
> + { 0x000007f7, 0x0080 }, /* R2039 (0x7f7) - SLIMTX7MIX Input 4 Volume */
> + { 0x000007f8, 0x0000 }, /* R2040 (0x7f8) - SLIMTX8MIX Input 1 Source */
> + { 0x000007f9, 0x0080 }, /* R2041 (0x7f9) - SLIMTX8MIX Input 1 Volume */
> + { 0x000007fa, 0x0000 }, /* R2042 (0x7fa) - SLIMTX8MIX Input 2 Source */
> + { 0x000007fb, 0x0080 }, /* R2043 (0x7fb) - SLIMTX8MIX Input 2 Volume */
> + { 0x000007fc, 0x0000 }, /* R2044 (0x7fc) - SLIMTX8MIX Input 3 Source */
> + { 0x000007fd, 0x0080 }, /* R2045 (0x7fd) - SLIMTX8MIX Input 3 Volume */
> + { 0x000007fe, 0x0000 }, /* R2046 (0x7fe) - SLIMTX8MIX Input 4 Source */
> + { 0x000007ff, 0x0080 }, /* R2047 (0x7ff) - SLIMTX8MIX Input 4 Volume */
> + { 0x00000800, 0x0000 }, /* R2048 (0x800) - SPDIF1TX1MIX Input 1 Source */
> + { 0x00000801, 0x0080 }, /* R2049 (0x801) - SPDIF1TX1MIX Input 1 Volume */
> + { 0x00000808, 0x0000 }, /* R2056 (0x808) - SPDIF1TX2MIX Input 1 Source */
> + { 0x00000809, 0x0080 }, /* R2057 (0x809) - SPDIF1TX2MIX Input 1 Volume */
> + { 0x00000880, 0x0000 }, /* R2176 (0x880) - EQ1MIX Input 1 Source */
> + { 0x00000881, 0x0080 }, /* R2177 (0x881) - EQ1MIX Input 1 Volume */
> + { 0x00000882, 0x0000 }, /* R2178 (0x882) - EQ1MIX Input 2 Source */
> + { 0x00000883, 0x0080 }, /* R2179 (0x883) - EQ1MIX Input 2 Volume */
> + { 0x00000884, 0x0000 }, /* R2180 (0x884) - EQ1MIX Input 3 Source */
> + { 0x00000885, 0x0080 }, /* R2181 (0x885) - EQ1MIX Input 3 Volume */
> + { 0x00000886, 0x0000 }, /* R2182 (0x886) - EQ1MIX Input 4 Source */
> + { 0x00000887, 0x0080 }, /* R2183 (0x887) - EQ1MIX Input 4 Volume */
> + { 0x00000888, 0x0000 }, /* R2184 (0x888) - EQ2MIX Input 1 Source */
> + { 0x00000889, 0x0080 }, /* R2185 (0x889) - EQ2MIX Input 1 Volume */
> + { 0x0000088a, 0x0000 }, /* R2186 (0x88a) - EQ2MIX Input 2 Source */
> + { 0x0000088b, 0x0080 }, /* R2187 (0x88b) - EQ2MIX Input 2 Volume */
> + { 0x0000088c, 0x0000 }, /* R2188 (0x88c) - EQ2MIX Input 3 Source */
> + { 0x0000088d, 0x0080 }, /* R2189 (0x88d) - EQ2MIX Input 3 Volume */
> + { 0x0000088e, 0x0000 }, /* R2190 (0x88e) - EQ2MIX Input 4 Source */
> + { 0x0000088f, 0x0080 }, /* R2191 (0x88f) - EQ2MIX Input 4 Volume */
> + { 0x00000890, 0x0000 }, /* R2192 (0x890) - EQ3MIX Input 1 Source */
> + { 0x00000891, 0x0080 }, /* R2193 (0x891) - EQ3MIX Input 1 Volume */
> + { 0x00000892, 0x0000 }, /* R2194 (0x892) - EQ3MIX Input 2 Source */
> + { 0x00000893, 0x0080 }, /* R2195 (0x893) - EQ3MIX Input 2 Volume */
> + { 0x00000894, 0x0000 }, /* R2196 (0x894) - EQ3MIX Input 3 Source */
> + { 0x00000895, 0x0080 }, /* R2197 (0x895) - EQ3MIX Input 3 Volume */
> + { 0x00000896, 0x0000 }, /* R2198 (0x896) - EQ3MIX Input 4 Source */
> + { 0x00000897, 0x0080 }, /* R2199 (0x897) - EQ3MIX Input 4 Volume */
> + { 0x00000898, 0x0000 }, /* R2200 (0x898) - EQ4MIX Input 1 Source */
> + { 0x00000899, 0x0080 }, /* R2201 (0x899) - EQ4MIX Input 1 Volume */
> + { 0x0000089a, 0x0000 }, /* R2202 (0x89a) - EQ4MIX Input 2 Source */
> + { 0x0000089b, 0x0080 }, /* R2203 (0x89b) - EQ4MIX Input 2 Volume */
> + { 0x0000089c, 0x0000 }, /* R2204 (0x89c) - EQ4MIX Input 3 Source */
> + { 0x0000089d, 0x0080 }, /* R2205 (0x89d) - EQ4MIX Input 3 Volume */
> + { 0x0000089e, 0x0000 }, /* R2206 (0x89e) - EQ4MIX Input 4 Source */
> + { 0x0000089f, 0x0080 }, /* R2207 (0x89f) - EQ4MIX Input 4 Volume */
> + { 0x000008c0, 0x0000 }, /* R2240 (0x8c0) - DRC1LMIX Input 1 Source */
> + { 0x000008c1, 0x0080 }, /* R2241 (0x8c1) - DRC1LMIX Input 1 Volume */
> + { 0x000008c2, 0x0000 }, /* R2242 (0x8c2) - DRC1LMIX Input 2 Source */
> + { 0x000008c3, 0x0080 }, /* R2243 (0x8c3) - DRC1LMIX Input 2 Volume */
> + { 0x000008c4, 0x0000 }, /* R2244 (0x8c4) - DRC1LMIX Input 3 Source */
> + { 0x000008c5, 0x0080 }, /* R2245 (0x8c5) - DRC1LMIX Input 3 Volume */
> + { 0x000008c6, 0x0000 }, /* R2246 (0x8c6) - DRC1LMIX Input 4 Source */
> + { 0x000008c7, 0x0080 }, /* R2247 (0x8c7) - DRC1LMIX Input 4 Volume */
> + { 0x000008c8, 0x0000 }, /* R2248 (0x8c8) - DRC1RMIX Input 1 Source */
> + { 0x000008c9, 0x0080 }, /* R2249 (0x8c9) - DRC1RMIX Input 1 Volume */
> + { 0x000008ca, 0x0000 }, /* R2250 (0x8ca) - DRC1RMIX Input 2 Source */
> + { 0x000008cb, 0x0080 }, /* R2251 (0x8cb) - DRC1RMIX Input 2 Volume */
> + { 0x000008cc, 0x0000 }, /* R2252 (0x8cc) - DRC1RMIX Input 3 Source */
> + { 0x000008cd, 0x0080 }, /* R2253 (0x8cd) - DRC1RMIX Input 3 Volume */
> + { 0x000008ce, 0x0000 }, /* R2254 (0x8ce) - DRC1RMIX Input 4 Source */
> + { 0x000008cf, 0x0080 }, /* R2255 (0x8cf) - DRC1RMIX Input 4 Volume */
> + { 0x000008d0, 0x0000 }, /* R2256 (0x8d0) - DRC2LMIX Input 1 Source */
> + { 0x000008d1, 0x0080 }, /* R2257 (0x8d1) - DRC2LMIX Input 1 Volume */
> + { 0x000008d2, 0x0000 }, /* R2258 (0x8d2) - DRC2LMIX Input 2 Source */
> + { 0x000008d3, 0x0080 }, /* R2259 (0x8d3) - DRC2LMIX Input 2 Volume */
> + { 0x000008d4, 0x0000 }, /* R2260 (0x8d4) - DRC2LMIX Input 3 Source */
> + { 0x000008d5, 0x0080 }, /* R2261 (0x8d5) - DRC2LMIX Input 3 Volume */
> + { 0x000008d6, 0x0000 }, /* R2262 (0x8d6) - DRC2LMIX Input 4 Source */
> + { 0x000008d7, 0x0080 }, /* R2263 (0x8d7) - DRC2LMIX Input 4 Volume */
> + { 0x000008d8, 0x0000 }, /* R2264 (0x8d8) - DRC2RMIX Input 1 Source */
> + { 0x000008d9, 0x0080 }, /* R2265 (0x8d9) - DRC2RMIX Input 1 Volume */
> + { 0x000008da, 0x0000 }, /* R2266 (0x8da) - DRC2RMIX Input 2 Source */
> + { 0x000008db, 0x0080 }, /* R2267 (0x8db) - DRC2RMIX Input 2 Volume */
> + { 0x000008dc, 0x0000 }, /* R2268 (0x8dc) - DRC2RMIX Input 3 Source */
> + { 0x000008dd, 0x0080 }, /* R2269 (0x8dd) - DRC2RMIX Input 3 Volume */
> + { 0x000008de, 0x0000 }, /* R2270 (0x8de) - DRC2RMIX Input 4 Source */
> + { 0x000008df, 0x0080 }, /* R2271 (0x8df) - DRC2RMIX Input 4 Volume */
> + { 0x00000900, 0x0000 }, /* R2304 (0x900) - HPLP1MIX Input 1 Source */
> + { 0x00000901, 0x0080 }, /* R2305 (0x901) - HPLP1MIX Input 1 Volume */
> + { 0x00000902, 0x0000 }, /* R2306 (0x902) - HPLP1MIX Input 2 Source */
> + { 0x00000903, 0x0080 }, /* R2307 (0x903) - HPLP1MIX Input 2 Volume */
> + { 0x00000904, 0x0000 }, /* R2308 (0x904) - HPLP1MIX Input 3 Source */
> + { 0x00000905, 0x0080 }, /* R2309 (0x905) - HPLP1MIX Input 3 Volume */
> + { 0x00000906, 0x0000 }, /* R2310 (0x906) - HPLP1MIX Input 4 Source */
> + { 0x00000907, 0x0080 }, /* R2311 (0x907) - HPLP1MIX Input 4 Volume */
> + { 0x00000908, 0x0000 }, /* R2312 (0x908) - HPLP2MIX Input 1 Source */
> + { 0x00000909, 0x0080 }, /* R2313 (0x909) - HPLP2MIX Input 1 Volume */
> + { 0x0000090a, 0x0000 }, /* R2314 (0x90a) - HPLP2MIX Input 2 Source */
> + { 0x0000090b, 0x0080 }, /* R2315 (0x90b) - HPLP2MIX Input 2 Volume */
> + { 0x0000090c, 0x0000 }, /* R2316 (0x90c) - HPLP2MIX Input 3 Source */
> + { 0x0000090d, 0x0080 }, /* R2317 (0x90d) - HPLP2MIX Input 3 Volume */
> + { 0x0000090e, 0x0000 }, /* R2318 (0x90e) - HPLP2MIX Input 4 Source */
> + { 0x0000090f, 0x0080 }, /* R2319 (0x90f) - HPLP2MIX Input 4 Volume */
> + { 0x00000910, 0x0000 }, /* R2320 (0x910) - HPLP3MIX Input 1 Source */
> + { 0x00000911, 0x0080 }, /* R2321 (0x911) - HPLP3MIX Input 1 Volume */
> + { 0x00000912, 0x0000 }, /* R2322 (0x912) - HPLP3MIX Input 2 Source */
> + { 0x00000913, 0x0080 }, /* R2323 (0x913) - HPLP3MIX Input 2 Volume */
> + { 0x00000914, 0x0000 }, /* R2324 (0x914) - HPLP3MIX Input 3 Source */
> + { 0x00000915, 0x0080 }, /* R2325 (0x915) - HPLP3MIX Input 3 Volume */
> + { 0x00000916, 0x0000 }, /* R2326 (0x916) - HPLP3MIX Input 4 Source */
> + { 0x00000917, 0x0080 }, /* R2327 (0x917) - HPLP3MIX Input 4 Volume */
> + { 0x00000918, 0x0000 }, /* R2328 (0x918) - HPLP4MIX Input 1 Source */
> + { 0x00000919, 0x0080 }, /* R2329 (0x919) - HPLP4MIX Input 1 Volume */
> + { 0x0000091a, 0x0000 }, /* R2330 (0x91a) - HPLP4MIX Input 2 Source */
> + { 0x0000091b, 0x0080 }, /* R2331 (0x91b) - HPLP4MIX Input 2 Volume */
> + { 0x0000091c, 0x0000 }, /* R2332 (0x91c) - HPLP4MIX Input 3 Source */
> + { 0x0000091d, 0x0080 }, /* R2333 (0x91d) - HPLP4MIX Input 3 Volume */
> + { 0x0000091e, 0x0000 }, /* R2334 (0x91e) - HPLP4MIX Input 4 Source */
> + { 0x0000091f, 0x0080 }, /* R2335 (0x91f) - HPLP4MIX Input 4 Volume */
> + { 0x00000940, 0x0000 }, /* R2368 (0x940) - DSP1LMIX Input 1 Source */
> + { 0x00000941, 0x0080 }, /* R2369 (0x941) - DSP1LMIX Input 1 Volume */
> + { 0x00000942, 0x0000 }, /* R2370 (0x942) - DSP1LMIX Input 2 Source */
> + { 0x00000943, 0x0080 }, /* R2371 (0x943) - DSP1LMIX Input 2 Volume */
> + { 0x00000944, 0x0000 }, /* R2372 (0x944) - DSP1LMIX Input 3 Source */
> + { 0x00000945, 0x0080 }, /* R2373 (0x945) - DSP1LMIX Input 3 Volume */
> + { 0x00000946, 0x0000 }, /* R2374 (0x946) - DSP1LMIX Input 4 Source */
> + { 0x00000947, 0x0080 }, /* R2375 (0x947) - DSP1LMIX Input 4 Volume */
> + { 0x00000948, 0x0000 }, /* R2376 (0x948) - DSP1RMIX Input 1 Source */
> + { 0x00000949, 0x0080 }, /* R2377 (0x949) - DSP1RMIX Input 1 Volume */
> + { 0x0000094a, 0x0000 }, /* R2378 (0x94a) - DSP1RMIX Input 2 Source */
> + { 0x0000094b, 0x0080 }, /* R2379 (0x94b) - DSP1RMIX Input 2 Volume */
> + { 0x0000094c, 0x0000 }, /* R2380 (0x94c) - DSP1RMIX Input 3 Source */
> + { 0x0000094d, 0x0080 }, /* R2381 (0x94d) - DSP1RMIX Input 3 Volume */
> + { 0x0000094e, 0x0000 }, /* R2382 (0x94e) - DSP1RMIX Input 4 Source */
> + { 0x0000094f, 0x0080 }, /* R2383 (0x94f) - DSP1RMIX Input 4 Volume */
> + { 0x00000950, 0x0000 }, /* R2384 (0x950) - DSP1AUX1MIX Input 1 Source */
> + { 0x00000958, 0x0000 }, /* R2392 (0x958) - DSP1AUX2MIX Input 1 Source */
> + { 0x00000960, 0x0000 }, /* R2400 (0x960) - DSP1AUX3MIX Input 1 Source */
> + { 0x00000968, 0x0000 }, /* R2408 (0x968) - DSP1AUX4MIX Input 1 Source */
> + { 0x00000970, 0x0000 }, /* R2416 (0x970) - DSP1AUX5MIX Input 1 Source */
> + { 0x00000978, 0x0000 }, /* R2424 (0x978) - DSP1AUX6MIX Input 1 Source */
> + { 0x00000980, 0x0000 }, /* R2432 (0x980) - DSP2LMIX Input 1 Source */
> + { 0x00000981, 0x0080 }, /* R2433 (0x981) - DSP2LMIX Input 1 Volume */
> + { 0x00000982, 0x0000 }, /* R2434 (0x982) - DSP2LMIX Input 2 Source */
> + { 0x00000983, 0x0080 }, /* R2435 (0x983) - DSP2LMIX Input 2 Volume */
> + { 0x00000984, 0x0000 }, /* R2436 (0x984) - DSP2LMIX Input 3 Source */
> + { 0x00000985, 0x0080 }, /* R2437 (0x985) - DSP2LMIX Input 3 Volume */
> + { 0x00000986, 0x0000 }, /* R2438 (0x986) - DSP2LMIX Input 4 Source */
> + { 0x00000987, 0x0080 }, /* R2439 (0x987) - DSP2LMIX Input 4 Volume */
> + { 0x00000988, 0x0000 }, /* R2440 (0x988) - DSP2RMIX Input 1 Source */
> + { 0x00000989, 0x0080 }, /* R2441 (0x989) - DSP2RMIX Input 1 Volume */
> + { 0x0000098a, 0x0000 }, /* R2442 (0x98a) - DSP2RMIX Input 2 Source */
> + { 0x0000098b, 0x0080 }, /* R2443 (0x98b) - DSP2RMIX Input 2 Volume */
> + { 0x0000098c, 0x0000 }, /* R2444 (0x98c) - DSP2RMIX Input 3 Source */
> + { 0x0000098d, 0x0080 }, /* R2445 (0x98d) - DSP2RMIX Input 3 Volume */
> + { 0x0000098e, 0x0000 }, /* R2446 (0x98e) - DSP2RMIX Input 4 Source */
> + { 0x0000098f, 0x0080 }, /* R2447 (0x98f) - DSP2RMIX Input 4 Volume */
> + { 0x00000990, 0x0000 }, /* R2448 (0x990) - DSP2AUX1MIX Input 1 Source */
> + { 0x00000998, 0x0000 }, /* R2456 (0x998) - DSP2AUX2MIX Input 1 Source */
> + { 0x000009a0, 0x0000 }, /* R2464 (0x9a0) - DSP2AUX3MIX Input 1 Source */
> + { 0x000009a8, 0x0000 }, /* R2472 (0x9a8) - DSP2AUX4MIX Input 1 Source */
> + { 0x000009b0, 0x0000 }, /* R2480 (0x9b0) - DSP2AUX5MIX Input 1 Source */
> + { 0x000009b8, 0x0000 }, /* R2488 (0x9b8) - DSP2AUX6MIX Input 1 Source */
> + { 0x000009c0, 0x0000 }, /* R2496 (0x9c0) - DSP3LMIX Input 1 Source */
> + { 0x000009c1, 0x0080 }, /* R2497 (0x9c1) - DSP3LMIX Input 1 Volume */
> + { 0x000009c2, 0x0000 }, /* R2498 (0x9c2) - DSP3LMIX Input 2 Source */
> + { 0x000009c3, 0x0080 }, /* R2499 (0x9c3) - DSP3LMIX Input 2 Volume */
> + { 0x000009c4, 0x0000 }, /* R2500 (0x9c4) - DSP3LMIX Input 3 Source */
> + { 0x000009c5, 0x0080 }, /* R2501 (0x9c5) - DSP3LMIX Input 3 Volume */
> + { 0x000009c6, 0x0000 }, /* R2502 (0x9c6) - DSP3LMIX Input 4 Source */
> + { 0x000009c7, 0x0080 }, /* R2503 (0x9c7) - DSP3LMIX Input 4 Volume */
> + { 0x000009c8, 0x0000 }, /* R2504 (0x9c8) - DSP3RMIX Input 1 Source */
> + { 0x000009c9, 0x0080 }, /* R2505 (0x9c9) - DSP3RMIX Input 1 Volume */
> + { 0x000009ca, 0x0000 }, /* R2506 (0x9ca) - DSP3RMIX Input 2 Source */
> + { 0x000009cb, 0x0080 }, /* R2507 (0x9cb) - DSP3RMIX Input 2 Volume */
> + { 0x000009cc, 0x0000 }, /* R2508 (0x9cc) - DSP3RMIX Input 3 Source */
> + { 0x000009cd, 0x0080 }, /* R2509 (0x9cd) - DSP3RMIX Input 3 Volume */
> + { 0x000009ce, 0x0000 }, /* R2510 (0x9ce) - DSP3RMIX Input 4 Source */
> + { 0x000009cf, 0x0080 }, /* R2511 (0x9cf) - DSP3RMIX Input 4 Volume */
> + { 0x000009d0, 0x0000 }, /* R2512 (0x9d0) - DSP3AUX1MIX Input 1 Source */
> + { 0x000009d8, 0x0000 }, /* R2520 (0x9d8) - DSP3AUX2MIX Input 1 Source */
> + { 0x000009e0, 0x0000 }, /* R2528 (0x9e0) - DSP3AUX3MIX Input 1 Source */
> + { 0x000009e8, 0x0000 }, /* R2536 (0x9e8) - DSP3AUX4MIX Input 1 Source */
> + { 0x000009f0, 0x0000 }, /* R2544 (0x9f0) - DSP3AUX5MIX Input 1 Source */
> + { 0x000009f8, 0x0000 }, /* R2552 (0x9f8) - DSP3AUX6MIX Input 1 Source */
> + { 0x00000a00, 0x0000 }, /* R2560 (0xa00) - DSP4LMIX Input 1 Source */
> + { 0x00000a01, 0x0080 }, /* R2561 (0xa01) - DSP4LMIX Input 1 Volume */
> + { 0x00000a02, 0x0000 }, /* R2562 (0xa02) - DSP4LMIX Input 2 Source */
> + { 0x00000a03, 0x0080 }, /* R2563 (0xa03) - DSP4LMIX Input 2 Volume */
> + { 0x00000a04, 0x0000 }, /* R2564 (0xa04) - DSP4LMIX Input 3 Source */
> + { 0x00000a05, 0x0080 }, /* R2565 (0xa05) - DSP4LMIX Input 3 Volume */
> + { 0x00000a06, 0x0000 }, /* R2566 (0xa06) - DSP4LMIX Input 4 Source */
> + { 0x00000a07, 0x0080 }, /* R2567 (0xa07) - DSP4LMIX Input 4 Volume */
> + { 0x00000a08, 0x0000 }, /* R2568 (0xa08) - DSP4RMIX Input 1 Source */
> + { 0x00000a09, 0x0080 }, /* R2569 (0xa09) - DSP4RMIX Input 1 Volume */
> + { 0x00000a0a, 0x0000 }, /* R2570 (0xa0a) - DSP4RMIX Input 2 Source */
> + { 0x00000a0b, 0x0080 }, /* R2571 (0xa0b) - DSP4RMIX Input 2 Volume */
> + { 0x00000a0c, 0x0000 }, /* R2572 (0xa0c) - DSP4RMIX Input 3 Source */
> + { 0x00000a0d, 0x0080 }, /* R2573 (0xa0d) - DSP4RMIX Input 3 Volume */
> + { 0x00000a0e, 0x0000 }, /* R2574 (0xa0e) - DSP4RMIX Input 4 Source */
> + { 0x00000a0f, 0x0080 }, /* R2575 (0xa0f) - DSP4RMIX Input 4 Volume */
> + { 0x00000a10, 0x0000 }, /* R2576 (0xa10) - DSP4AUX1MIX Input 1 Source */
> + { 0x00000a18, 0x0000 }, /* R2584 (0xa18) - DSP4AUX2MIX Input 1 Source */
> + { 0x00000a20, 0x0000 }, /* R2592 (0xa20) - DSP4AUX3MIX Input 1 Source */
> + { 0x00000a28, 0x0000 }, /* R2600 (0xa28) - DSP4AUX4MIX Input 1 Source */
> + { 0x00000a30, 0x0000 }, /* R2608 (0xa30) - DSP4AUX5MIX Input 1 Source */
> + { 0x00000a38, 0x0000 }, /* R2616 (0xa38) - DSP4AUX6MIX Input 1 Source */
> + { 0x00000a40, 0x0000 }, /* R2624 (0xa40) - DSP5LMIX Input 1 Source */
> + { 0x00000a41, 0x0080 }, /* R2625 (0xa41) - DSP5LMIX Input 1 Volume */
> + { 0x00000a42, 0x0000 }, /* R2626 (0xa42) - DSP5LMIX Input 2 Source */
> + { 0x00000a43, 0x0080 }, /* R2627 (0xa43) - DSP5LMIX Input 2 Volume */
> + { 0x00000a44, 0x0000 }, /* R2628 (0xa44) - DSP5LMIX Input 3 Source */
> + { 0x00000a45, 0x0080 }, /* R2629 (0xa45) - DSP5LMIX Input 3 Volume */
> + { 0x00000a46, 0x0000 }, /* R2630 (0xa46) - DSP5LMIX Input 4 Source */
> + { 0x00000a47, 0x0080 }, /* R2631 (0xa47) - DSP5LMIX Input 4 Volume */
> + { 0x00000a48, 0x0000 }, /* R2632 (0xa48) - DSP5RMIX Input 1 Source */
> + { 0x00000a49, 0x0080 }, /* R2633 (0xa49) - DSP5RMIX Input 1 Volume */
> + { 0x00000a4a, 0x0000 }, /* R2634 (0xa4a) - DSP5RMIX Input 2 Source */
> + { 0x00000a4b, 0x0080 }, /* R2635 (0xa4b) - DSP5RMIX Input 2 Volume */
> + { 0x00000a4c, 0x0000 }, /* R2636 (0xa4c) - DSP5RMIX Input 3 Source */
> + { 0x00000a4d, 0x0080 }, /* R2637 (0xa4d) - DSP5RMIX Input 3 Volume */
> + { 0x00000a4e, 0x0000 }, /* R2638 (0xa4e) - DSP5RMIX Input 4 Source */
> + { 0x00000a4f, 0x0080 }, /* R2639 (0xa4f) - DSP5RMIX Input 4 Volume */
> + { 0x00000a50, 0x0000 }, /* R2640 (0xa50) - DSP5AUX1MIX Input 1 Source */
> + { 0x00000a58, 0x0000 }, /* R2658 (0xa58) - DSP5AUX2MIX Input 1 Source */
> + { 0x00000a60, 0x0000 }, /* R2656 (0xa60) - DSP5AUX3MIX Input 1 Source */
> + { 0x00000a68, 0x0000 }, /* R2664 (0xa68) - DSP5AUX4MIX Input 1 Source */
> + { 0x00000a70, 0x0000 }, /* R2672 (0xa70) - DSP5AUX5MIX Input 1 Source */
> + { 0x00000a78, 0x0000 }, /* R2680 (0xa78) - DSP5AUX6MIX Input 1 Source */
> + { 0x00000a80, 0x0000 }, /* R2688 (0xa80) - ASRC1_1LMIX Input 1 Source */
> + { 0x00000a88, 0x0000 }, /* R2696 (0xa88) - ASRC1_1RMIX Input 1 Source */
> + { 0x00000a90, 0x0000 }, /* R2704 (0xa90) - ASRC1_2LMIX Input 1 Source */
> + { 0x00000a98, 0x0000 }, /* R2712 (0xa98) - ASRC1_2RMIX Input 1 Source */
> + { 0x00000aa0, 0x0000 }, /* R2720 (0xaa0) - ASRC2_1LMIX Input 1 Source */
> + { 0x00000aa8, 0x0000 }, /* R2728 (0xaa8) - ASRC2_1RMIX Input 1 Source */
> + { 0x00000ab0, 0x0000 }, /* R2736 (0xab0) - ASRC2_2LMIX Input 1 Source */
> + { 0x00000ab8, 0x0000 }, /* R2744 (0xab8) - ASRC2_2RMIX Input 1 Source */
> + { 0x00000b00, 0x0000 }, /* R2816 (0xb00) - ISRC1DEC1MIX Input 1 Source*/
> + { 0x00000b08, 0x0000 }, /* R2824 (0xb08) - ISRC1DEC2MIX Input 1 Source*/
> + { 0x00000b10, 0x0000 }, /* R2832 (0xb10) - ISRC1DEC3MIX Input 1 Source*/
> + { 0x00000b18, 0x0000 }, /* R2840 (0xb18) - ISRC1DEC4MIX Input 1 Source*/
> + { 0x00000b20, 0x0000 }, /* R2848 (0xb20) - ISRC1INT1MIX Input 1 Source*/
> + { 0x00000b28, 0x0000 }, /* R2856 (0xb28) - ISRC1INT2MIX Input 1 Source*/
> + { 0x00000b30, 0x0000 }, /* R2864 (0xb30) - ISRC1INT3MIX Input 1 Source*/
> + { 0x00000b38, 0x0000 }, /* R2872 (0xb38) - ISRC1INT4MIX Input 1 Source*/
> + { 0x00000b40, 0x0000 }, /* R2880 (0xb40) - ISRC2DEC1MIX Input 1 Source*/
> + { 0x00000b48, 0x0000 }, /* R2888 (0xb48) - ISRC2DEC2MIX Input 1 Source*/
> + { 0x00000b50, 0x0000 }, /* R2896 (0xb50) - ISRC2DEC3MIX Input 1 Source*/
> + { 0x00000b58, 0x0000 }, /* R2904 (0xb58) - ISRC2DEC4MIX Input 1 Source*/
> + { 0x00000b60, 0x0000 }, /* R2912 (0xb60) - ISRC2INT1MIX Input 1 Source*/
> + { 0x00000b68, 0x0000 }, /* R2920 (0xb68) - ISRC2INT2MIX Input 1 Source*/
> + { 0x00000b70, 0x0000 }, /* R2928 (0xb70) - ISRC2INT3MIX Input 1 Source*/
> + { 0x00000b78, 0x0000 }, /* R2936 (0xb78) - ISRC2INT4MIX Input 1 Source*/
> + { 0x00000b80, 0x0000 }, /* R2944 (0xb80) - ISRC3DEC1MIX Input 1 Source*/
> + { 0x00000b88, 0x0000 }, /* R2952 (0xb88) - ISRC3DEC2MIX Input 1 Source*/
> + { 0x00000ba0, 0x0000 }, /* R2976 (0xb80) - ISRC3INT1MIX Input 1 Source*/
> + { 0x00000ba8, 0x0000 }, /* R2984 (0xb88) - ISRC3INT2MIX Input 1 Source*/
> + { 0x00000bc0, 0x0000 }, /* R3008 (0xbc0) - ISRC4DEC1MIX Input 1 Source */
> + { 0x00000bc8, 0x0000 }, /* R3016 (0xbc8) - ISRC4DEC2MIX Input 1 Source */
> + { 0x00000be0, 0x0000 }, /* R3040 (0xbe0) - ISRC4INT1MIX Input 1 Source */
> + { 0x00000be8, 0x0000 }, /* R3048 (0xbe8) - ISRC4INT2MIX Input 1 Source */
> + { 0x00000c00, 0x0000 }, /* R3072 (0xc00) - DSP6LMIX Input 1 Source */
> + { 0x00000c01, 0x0080 }, /* R3073 (0xc01) - DSP6LMIX Input 1 Volume */
> + { 0x00000c02, 0x0000 }, /* R3074 (0xc02) - DSP6LMIX Input 2 Source */
> + { 0x00000c03, 0x0080 }, /* R3075 (0xc03) - DSP6LMIX Input 2 Volume */
> + { 0x00000c04, 0x0000 }, /* R3076 (0xc04) - DSP6LMIX Input 3 Source */
> + { 0x00000c05, 0x0080 }, /* R3077 (0xc05) - DSP6LMIX Input 3 Volume */
> + { 0x00000c06, 0x0000 }, /* R3078 (0xc06) - DSP6LMIX Input 4 Source */
> + { 0x00000c07, 0x0080 }, /* R3079 (0xc07) - DSP6LMIX Input 4 Volume */
> + { 0x00000c08, 0x0000 }, /* R3080 (0xc08) - DSP6RMIX Input 1 Source */
> + { 0x00000c09, 0x0080 }, /* R3081 (0xc09) - DSP6RMIX Input 1 Volume */
> + { 0x00000c0a, 0x0000 }, /* R3082 (0xc0a) - DSP6RMIX Input 2 Source */
> + { 0x00000c0b, 0x0080 }, /* R3083 (0xc0b) - DSP6RMIX Input 2 Volume */
> + { 0x00000c0c, 0x0000 }, /* R3084 (0xc0c) - DSP6RMIX Input 3 Source */
> + { 0x00000c0d, 0x0080 }, /* R3085 (0xc0d) - DSP6RMIX Input 3 Volume */
> + { 0x00000c0e, 0x0000 }, /* R3086 (0xc0e) - DSP6RMIX Input 4 Source */
> + { 0x00000c0f, 0x0080 }, /* R3087 (0xc0f) - DSP6RMIX Input 4 Volume */
> + { 0x00000c10, 0x0000 }, /* R3088 (0xc10) - DSP6AUX1MIX Input 1 Source */
> + { 0x00000c18, 0x0000 }, /* R3088 (0xc18) - DSP6AUX2MIX Input 1 Source */
> + { 0x00000c20, 0x0000 }, /* R3088 (0xc20) - DSP6AUX3MIX Input 1 Source */
> + { 0x00000c28, 0x0000 }, /* R3088 (0xc28) - DSP6AUX4MIX Input 1 Source */
> + { 0x00000c30, 0x0000 }, /* R3088 (0xc30) - DSP6AUX5MIX Input 1 Source */
> + { 0x00000c38, 0x0000 }, /* R3088 (0xc38) - DSP6AUX6MIX Input 1 Source */
> + { 0x00000c40, 0x0000 }, /* R3136 (0xc40) - DSP7LMIX Input 1 Source */
> + { 0x00000c41, 0x0080 }, /* R3137 (0xc41) - DSP7LMIX Input 1 Volume */
> + { 0x00000c42, 0x0000 }, /* R3138 (0xc42) - DSP7LMIX Input 2 Source */
> + { 0x00000c43, 0x0080 }, /* R3139 (0xc43) - DSP7LMIX Input 2 Volume */
> + { 0x00000c44, 0x0000 }, /* R3140 (0xc44) - DSP7LMIX Input 3 Source */
> + { 0x00000c45, 0x0080 }, /* R3141 (0xc45) - DSP7lMIX Input 3 Volume */
> + { 0x00000c46, 0x0000 }, /* R3142 (0xc46) - DSP7lMIX Input 4 Source */
> + { 0x00000c47, 0x0080 }, /* R3143 (0xc47) - DSP7LMIX Input 4 Volume */
> + { 0x00000c48, 0x0000 }, /* R3144 (0xc48) - DSP7RMIX Input 1 Source */
> + { 0x00000c49, 0x0080 }, /* R3145 (0xc49) - DSP7RMIX Input 1 Volume */
> + { 0x00000c4a, 0x0000 }, /* R3146 (0xc4a) - DSP7RMIX Input 2 Source */
> + { 0x00000c4b, 0x0080 }, /* R3147 (0xc4b) - DSP7RMIX Input 2 Volume */
> + { 0x00000c4c, 0x0000 }, /* R3148 (0xc4c) - DSP7RMIX Input 3 Source */
> + { 0x00000c4d, 0x0080 }, /* R3159 (0xc4d) - DSP7RMIX Input 3 Volume */
> + { 0x00000c4e, 0x0000 }, /* R3150 (0xc4e) - DSP7RMIX Input 4 Source */
> + { 0x00000c4f, 0x0080 }, /* R3151 (0xc4f) - DSP7RMIX Input 4 Volume */
> + { 0x00000c50, 0x0000 }, /* R3152 (0xc50) - DSP7AUX1MIX Input 1 Source */
> + { 0x00000c58, 0x0000 }, /* R3160 (0xc58) - DSP7AUX2MIX Input 1 Source */
> + { 0x00000c60, 0x0000 }, /* R3168 (0xc60) - DSP7AUX3MIX Input 1 Source */
> + { 0x00000c68, 0x0000 }, /* R3176 (0xc68) - DSP7AUX4MIX Input 1 Source */
> + { 0x00000c70, 0x0000 }, /* R3184 (0xc70) - DSP7AUX5MIX Input 1 Source */
> + { 0x00000c78, 0x0000 }, /* R3192 (0xc78) - DSP7AUX6MIX Input 1 Source */
> + { 0x00000dc0, 0x0000 }, /* R3520 (0xdc0) - DFC1MIX Input 1 Source */
> + { 0x00000dc8, 0x0000 }, /* R3528 (0xdc8) - DFC2MIX Input 1 Source */
> + { 0x00000dd0, 0x0000 }, /* R3536 (0xdd0) - DFC3MIX Input 1 Source */
> + { 0x00000dd8, 0x0000 }, /* R3544 (0xdd8) - DFC4MIX Input 1 Source */
> + { 0x00000de0, 0x0000 }, /* R3552 (0xde0) - DFC5MIX Input 1 Source */
> + { 0x00000de8, 0x0000 }, /* R3560 (0xde8) - DFC6MIX Input 1 Source */
> + { 0x00000df0, 0x0000 }, /* R3568 (0xdf0) - DFC7MIX Input 1 Source */
> + { 0x00000df8, 0x0000 }, /* R3576 (0xdf8) - DFC8MIX Input 1 Source */
> + { 0x00000e00, 0x0000 }, /* R3584 (0xe00) - FX_Ctrl1 */
> + { 0x00000e10, 0x6318 }, /* R3600 (0xe10) - EQ1_1 */
> + { 0x00000e11, 0x6300 }, /* R3601 (0xe11) - EQ1_2 */
> + { 0x00000e12, 0x0fc8 }, /* R3602 (0xe12) - EQ1_3 */
> + { 0x00000e13, 0x03fe }, /* R3603 (0xe13) - EQ1_4 */
> + { 0x00000e14, 0x00e0 }, /* R3604 (0xe14) - EQ1_5 */
> + { 0x00000e15, 0x1ec4 }, /* R3605 (0xe15) - EQ1_6 */
> + { 0x00000e16, 0xf136 }, /* R3606 (0xe16) - EQ1_7 */
> + { 0x00000e17, 0x0409 }, /* R3607 (0xe17) - EQ1_8 */
> + { 0x00000e18, 0x04cc }, /* R3608 (0xe18) - EQ1_9 */
> + { 0x00000e19, 0x1c9b }, /* R3609 (0xe19) - EQ1_10 */
> + { 0x00000e1a, 0xf337 }, /* R3610 (0xe1a) - EQ1_11 */
> + { 0x00000e1b, 0x040b }, /* R3611 (0xe1b) - EQ1_12 */
> + { 0x00000e1c, 0x0cbb }, /* R3612 (0xe1c) - EQ1_13 */
> + { 0x00000e1d, 0x16f8 }, /* R3613 (0xe1d) - EQ1_14 */
> + { 0x00000e1e, 0xf7d9 }, /* R3614 (0xe1e) - EQ1_15 */
> + { 0x00000e1f, 0x040a }, /* R3615 (0xe1f) - EQ1_16 */
> + { 0x00000e20, 0x1f14 }, /* R3616 (0xe20) - EQ1_17 */
> + { 0x00000e21, 0x058c }, /* R3617 (0xe21) - EQ1_18 */
> + { 0x00000e22, 0x0563 }, /* R3618 (0xe22) - EQ1_19 */
> + { 0x00000e23, 0x4000 }, /* R3619 (0xe23) - EQ1_20 */
> + { 0x00000e24, 0x0b75 }, /* R3620 (0xe24) - EQ1_21 */
> + { 0x00000e26, 0x6318 }, /* R3622 (0xe26) - EQ2_1 */
> + { 0x00000e27, 0x6300 }, /* R3623 (0xe27) - EQ2_2 */
> + { 0x00000e28, 0x0fc8 }, /* R3624 (0xe28) - EQ2_3 */
> + { 0x00000e29, 0x03fe }, /* R3625 (0xe29) - EQ2_4 */
> + { 0x00000e2a, 0x00e0 }, /* R3626 (0xe2a) - EQ2_5 */
> + { 0x00000e2b, 0x1ec4 }, /* R3627 (0xe2b) - EQ2_6 */
> + { 0x00000e2c, 0xf136 }, /* R3628 (0xe2c) - EQ2_7 */
> + { 0x00000e2d, 0x0409 }, /* R3629 (0xe2d) - EQ2_8 */
> + { 0x00000e2e, 0x04cc }, /* R3630 (0xe2e) - EQ2_9 */
> + { 0x00000e2f, 0x1c9b }, /* R3631 (0xe2f) - EQ2_10 */
> + { 0x00000e30, 0xf337 }, /* R3632 (0xe30) - EQ2_11 */
> + { 0x00000e31, 0x040b }, /* R3633 (0xe31) - EQ2_12 */
> + { 0x00000e32, 0x0cbb }, /* R3634 (0xe32) - EQ2_13 */
> + { 0x00000e33, 0x16f8 }, /* R3635 (0xe33) - EQ2_14 */
> + { 0x00000e34, 0xf7d9 }, /* R3636 (0xe34) - EQ2_15 */
> + { 0x00000e35, 0x040a }, /* R3637 (0xe35) - EQ2_16 */
> + { 0x00000e36, 0x1f14 }, /* R3638 (0xe36) - EQ2_17 */
> + { 0x00000e37, 0x058c }, /* R3639 (0xe37) - EQ2_18 */
> + { 0x00000e38, 0x0563 }, /* R3640 (0xe38) - EQ2_19 */
> + { 0x00000e39, 0x4000 }, /* R3641 (0xe39) - EQ2_20 */
> + { 0x00000e3a, 0x0b75 }, /* R3642 (0xe3a) - EQ2_21 */
> + { 0x00000e3c, 0x6318 }, /* R3644 (0xe3c) - EQ3_1 */
> + { 0x00000e3d, 0x6300 }, /* R3645 (0xe3d) - EQ3_2 */
> + { 0x00000e3e, 0x0fc8 }, /* R3646 (0xe3e) - EQ3_3 */
> + { 0x00000e3f, 0x03fe }, /* R3647 (0xe3f) - EQ3_4 */
> + { 0x00000e40, 0x00e0 }, /* R3648 (0xe40) - EQ3_5 */
> + { 0x00000e41, 0x1ec4 }, /* R3649 (0xe41) - EQ3_6 */
> + { 0x00000e42, 0xf136 }, /* R3650 (0xe42) - EQ3_7 */
> + { 0x00000e43, 0x0409 }, /* R3651 (0xe43) - EQ3_8 */
> + { 0x00000e44, 0x04cc }, /* R3652 (0xe44) - EQ3_9 */
> + { 0x00000e45, 0x1c9b }, /* R3653 (0xe45) - EQ3_10 */
> + { 0x00000e46, 0xf337 }, /* R3654 (0xe46) - EQ3_11 */
> + { 0x00000e47, 0x040b }, /* R3655 (0xe47) - EQ3_12 */
> + { 0x00000e48, 0x0cbb }, /* R3656 (0xe48) - EQ3_13 */
> + { 0x00000e49, 0x16f8 }, /* R3657 (0xe49) - EQ3_14 */
> + { 0x00000e4a, 0xf7d9 }, /* R3658 (0xe4a) - EQ3_15 */
> + { 0x00000e4b, 0x040a }, /* R3659 (0xe4b) - EQ3_16 */
> + { 0x00000e4c, 0x1f14 }, /* R3660 (0xe4c) - EQ3_17 */
> + { 0x00000e4d, 0x058c }, /* R3661 (0xe4d) - EQ3_18 */
> + { 0x00000e4e, 0x0563 }, /* R3662 (0xe4e) - EQ3_19 */
> + { 0x00000e4f, 0x4000 }, /* R3663 (0xe4f) - EQ3_20 */
> + { 0x00000e50, 0x0b75 }, /* R3664 (0xe50) - EQ3_21 */
> + { 0x00000e52, 0x6318 }, /* R3666 (0xe52) - EQ4_1 */
> + { 0x00000e53, 0x6300 }, /* R3667 (0xe53) - EQ4_2 */
> + { 0x00000e54, 0x0fc8 }, /* R3668 (0xe54) - EQ4_3 */
> + { 0x00000e55, 0x03fe }, /* R3669 (0xe55) - EQ4_4 */
> + { 0x00000e56, 0x00e0 }, /* R3670 (0xe56) - EQ4_5 */
> + { 0x00000e57, 0x1ec4 }, /* R3671 (0xe57) - EQ4_6 */
> + { 0x00000e58, 0xf136 }, /* R3672 (0xe58) - EQ4_7 */
> + { 0x00000e59, 0x0409 }, /* R3673 (0xe59) - EQ4_8 */
> + { 0x00000e5a, 0x04cc }, /* R3674 (0xe5a) - EQ4_9 */
> + { 0x00000e5b, 0x1c9b }, /* R3675 (0xe5b) - EQ4_10 */
> + { 0x00000e5c, 0xf337 }, /* R3676 (0xe5c) - EQ4_11 */
> + { 0x00000e5d, 0x040b }, /* R3677 (0xe5d) - EQ4_12 */
> + { 0x00000e5e, 0x0cbb }, /* R3678 (0xe5e) - EQ4_13 */
> + { 0x00000e5f, 0x16f8 }, /* R3679 (0xe5f) - EQ4_14 */
> + { 0x00000e60, 0xf7d9 }, /* R3680 (0xe60) - EQ4_15 */
> + { 0x00000e61, 0x040a }, /* R3681 (0xe61) - EQ4_16 */
> + { 0x00000e62, 0x1f14 }, /* R3682 (0xe62) - EQ4_17 */
> + { 0x00000e63, 0x058c }, /* R3683 (0xe63) - EQ4_18 */
> + { 0x00000e64, 0x0563 }, /* R3684 (0xe64) - EQ4_19 */
> + { 0x00000e65, 0x4000 }, /* R3685 (0xe65) - EQ4_20 */
> + { 0x00000e66, 0x0b75 }, /* R3686 (0xe66) - EQ4_21 */
> + { 0x00000e80, 0x0018 }, /* R3712 (0xe80) - DRC1 ctrl1 */
> + { 0x00000e81, 0x0933 }, /* R3713 (0xe81) - DRC1 ctrl2 */
> + { 0x00000e82, 0x0018 }, /* R3714 (0xe82) - DRC1 ctrl3 */
> + { 0x00000e83, 0x0000 }, /* R3715 (0xe83) - DRC1 ctrl4 */
> + { 0x00000e84, 0x0000 }, /* R3716 (0xe84) - DRC1 ctrl5 */
> + { 0x00000e88, 0x0018 }, /* R3720 (0xe88) - DRC2 ctrl1 */
> + { 0x00000e89, 0x0933 }, /* R3721 (0xe89) - DRC2 ctrl2 */
> + { 0x00000e8a, 0x0018 }, /* R3722 (0xe8a) - DRC2 ctrl3 */
> + { 0x00000e8b, 0x0000 }, /* R3723 (0xe8b) - DRC2 ctrl4 */
> + { 0x00000e8c, 0x0000 }, /* R3724 (0xe8c) - DRC2 ctrl5 */
> + { 0x00000ec0, 0x0000 }, /* R3776 (0xec0) - HPLPF1_1 */
> + { 0x00000ec1, 0x0000 }, /* R3777 (0xec1) - HPLPF1_2 */
> + { 0x00000ec4, 0x0000 }, /* R3780 (0xec4) - HPLPF2_1 */
> + { 0x00000ec5, 0x0000 }, /* R3781 (0xec5) - HPLPF2_2 */
> + { 0x00000ec8, 0x0000 }, /* R3784 (0xec8) - HPLPF3_1 */
> + { 0x00000ec9, 0x0000 }, /* R3785 (0xec9) - HPLPF3_2 */
> + { 0x00000ecc, 0x0000 }, /* R3788 (0xecc) - HPLPF4_1 */
> + { 0x00000ecd, 0x0000 }, /* R3789 (0xecd) - HPLPF4_2 */
> + { 0x00000ed0, 0x0000 }, /* R3792 (0xed0) - ASRC2_ENABLE */
> + { 0x00000ed2, 0x0000 }, /* R3794 (0xed2) - ASRC2_RATE1 */
> + { 0x00000ed3, 0x4000 }, /* R3795 (0xed3) - ASRC2_RATE2 */
> + { 0x00000ee0, 0x0000 }, /* R3808 (0xee0) - ASRC1_ENABLE */
> + { 0x00000ee2, 0x0000 }, /* R3810 (0xee2) - ASRC1_RATE1 */
> + { 0x00000ee3, 0x4000 }, /* R3811 (0xee3) - ASRC1_RATE2 */
> + { 0x00000ef0, 0x0000 }, /* R3824 (0xef0) - ISRC 1 CTRL 1 */
> + { 0x00000ef1, 0x0001 }, /* R3825 (0xef1) - ISRC 1 CTRL 2 */
> + { 0x00000ef2, 0x0000 }, /* R3826 (0xef2) - ISRC 1 CTRL 3 */
> + { 0x00000ef3, 0x0000 }, /* R3827 (0xef3) - ISRC 2 CTRL 1 */
> + { 0x00000ef4, 0x0001 }, /* R3828 (0xef4) - ISRC 2 CTRL 2 */
> + { 0x00000ef5, 0x0000 }, /* R3829 (0xef5) - ISRC 2 CTRL 3 */
> + { 0x00000ef6, 0x0000 }, /* R3830 (0xef6) - ISRC 3 CTRL 1 */
> + { 0x00000ef7, 0x0001 }, /* R3831 (0xef7) - ISRC 3 CTRL 2 */
> + { 0x00000ef8, 0x0000 }, /* R3832 (0xef8) - ISRC 3 CTRL 3 */
> + { 0x00000ef9, 0x0000 }, /* R3833 (0xef9) - ISRC 4 CTRL 1 */
> + { 0x00000efa, 0x0001 }, /* R3834 (0xefa) - ISRC 4 CTRL 2 */
> + { 0x00000efb, 0x0000 }, /* R3835 (0xefb) - ISRC 4 CTRL 3 */
> + { 0x00000f01, 0x0000 }, /* R3841 (0xf01) - ANC_SRC */
> + { 0x00000f02, 0x0000 }, /* R3842 (0xf02) - DSP Status */
> + { 0x00000f08, 0x001c }, /* R3848 (0xf08) - ANC Coefficient */
> + { 0x00000f09, 0x0000 }, /* R3849 (0xf09) - ANC Coefficient */
> + { 0x00000f0a, 0x0000 }, /* R3850 (0xf0a) - ANC Coefficient */
> + { 0x00000f0b, 0x0000 }, /* R3851 (0xf0b) - ANC Coefficient */
> + { 0x00000f0c, 0x0000 }, /* R3852 (0xf0c) - ANC Coefficient */
> + { 0x00000f0d, 0x0000 }, /* R3853 (0xf0d) - ANC Coefficient */
> + { 0x00000f0e, 0x0000 }, /* R3854 (0xf0e) - ANC Coefficient */
> + { 0x00000f0f, 0x0000 }, /* R3855 (0xf0f) - ANC Coefficient */
> + { 0x00000f10, 0x0000 }, /* R3856 (0xf10) - ANC Coefficient */
> + { 0x00000f11, 0x0000 }, /* R3857 (0xf11) - ANC Coefficient */
> + { 0x00000f12, 0x0000 }, /* R3858 (0xf12) - ANC Coefficient */
> + { 0x00000f15, 0x0000 }, /* R3861 (0xf15) - FCL Filter Control */
> + { 0x00000f17, 0x0004 }, /* R3863 (0xf17) - FCL ADC Reformatter Control */
> + { 0x00000f18, 0x0004 }, /* R3864 (0xf18) - ANC Coefficient */
> + { 0x00000f19, 0x0002 }, /* R3865 (0xf19) - ANC Coefficient */
> + { 0x00000f1a, 0x0000 }, /* R3866 (0xf1a) - ANC Coefficient */
> + { 0x00000f1b, 0x0010 }, /* R3867 (0xf1b) - ANC Coefficient */
> + { 0x00000f1c, 0x0000 }, /* R3868 (0xf1c) - ANC Coefficient */
> + { 0x00000f1d, 0x0000 }, /* R3869 (0xf1d) - ANC Coefficient */
> + { 0x00000f1e, 0x0000 }, /* R3870 (0xf1e) - ANC Coefficient */
> + { 0x00000f1f, 0x0000 }, /* R3871 (0xf1f) - ANC Coefficient */
> + { 0x00000f20, 0x0000 }, /* R3872 (0xf20) - ANC Coefficient */
> + { 0x00000f21, 0x0000 }, /* R3873 (0xf21) - ANC Coefficient */
> + { 0x00000f22, 0x0000 }, /* R3874 (0xf22) - ANC Coefficient */
> + { 0x00000f23, 0x0000 }, /* R3875 (0xf23) - ANC Coefficient */
> + { 0x00000f24, 0x0000 }, /* R3876 (0xf24) - ANC Coefficient */
> + { 0x00000f25, 0x0000 }, /* R3877 (0xf25) - ANC Coefficient */
> + { 0x00000f26, 0x0000 }, /* R3878 (0xf26) - ANC Coefficient */
> + { 0x00000f27, 0x0000 }, /* R3879 (0xf27) - ANC Coefficient */
> + { 0x00000f28, 0x0000 }, /* R3880 (0xf28) - ANC Coefficient */
> + { 0x00000f29, 0x0000 }, /* R3881 (0xf29) - ANC Coefficient */
> + { 0x00000f2a, 0x0000 }, /* R3882 (0xf2a) - ANC Coefficient */
> + { 0x00000f2b, 0x0000 }, /* R3883 (0xf2b) - ANC Coefficient */
> + { 0x00000f2c, 0x0000 }, /* R3884 (0xf2c) - ANC Coefficient */
> + { 0x00000f2d, 0x0000 }, /* R3885 (0xf2d) - ANC Coefficient */
> + { 0x00000f2e, 0x0000 }, /* R3886 (0xf2e) - ANC Coefficient */
> + { 0x00000f2f, 0x0000 }, /* R3887 (0xf2f) - ANC Coefficient */
> + { 0x00000f30, 0x0000 }, /* R3888 (0xf30) - ANC Coefficient */
> + { 0x00000f31, 0x0000 }, /* R3889 (0xf31) - ANC Coefficient */
> + { 0x00000f32, 0x0000 }, /* R3890 (0xf32) - ANC Coefficient */
> + { 0x00000f33, 0x0000 }, /* R3891 (0xf33) - ANC Coefficient */
> + { 0x00000f34, 0x0000 }, /* R3892 (0xf34) - ANC Coefficient */
> + { 0x00000f35, 0x0000 }, /* R3893 (0xf35) - ANC Coefficient */
> + { 0x00000f36, 0x0000 }, /* R3894 (0xf36) - ANC Coefficient */
> + { 0x00000f37, 0x0000 }, /* R3895 (0xf37) - ANC Coefficient */
> + { 0x00000f38, 0x0000 }, /* R3896 (0xf38) - ANC Coefficient */
> + { 0x00000f39, 0x0000 }, /* R3897 (0xf39) - ANC Coefficient */
> + { 0x00000f3a, 0x0000 }, /* R3898 (0xf3a) - ANC Coefficient */
> + { 0x00000f3b, 0x0000 }, /* R3899 (0xf3b) - ANC Coefficient */
> + { 0x00000f3c, 0x0000 }, /* R3900 (0xf3c) - ANC Coefficient */
> + { 0x00000f3d, 0x0000 }, /* R3901 (0xf3d) - ANC Coefficient */
> + { 0x00000f3e, 0x0000 }, /* R3902 (0xf3e) - ANC Coefficient */
> + { 0x00000f3f, 0x0000 }, /* R3903 (0xf3f) - ANC Coefficient */
> + { 0x00000f40, 0x0000 }, /* R3904 (0xf40) - ANC Coefficient */
> + { 0x00000f41, 0x0000 }, /* R3905 (0xf41) - ANC Coefficient */
> + { 0x00000f42, 0x0000 }, /* R3906 (0xf42) - ANC Coefficient */
> + { 0x00000f43, 0x0000 }, /* R3907 (0xf43) - ANC Coefficient */
> + { 0x00000f44, 0x0000 }, /* R3908 (0xf44) - ANC Coefficient */
> + { 0x00000f45, 0x0000 }, /* R3909 (0xf45) - ANC Coefficient */
> + { 0x00000f46, 0x0000 }, /* R3910 (0xf46) - ANC Coefficient */
> + { 0x00000f47, 0x0000 }, /* R3911 (0xf47) - ANC Coefficient */
> + { 0x00000f48, 0x0000 }, /* R3912 (0xf48) - ANC Coefficient */
> + { 0x00000f49, 0x0000 }, /* R3913 (0xf49) - ANC Coefficient */
> + { 0x00000f4a, 0x0000 }, /* R3914 (0xf4a) - ANC Coefficient */
> + { 0x00000f4b, 0x0000 }, /* R3915 (0xf4b) - ANC Coefficient */
> + { 0x00000f4c, 0x0000 }, /* R3916 (0xf4c) - ANC Coefficient */
> + { 0x00000f4d, 0x0000 }, /* R3917 (0xf4d) - ANC Coefficient */
> + { 0x00000f4e, 0x0000 }, /* R3918 (0xf4e) - ANC Coefficient */
> + { 0x00000f4f, 0x0000 }, /* R3919 (0xf4f) - ANC Coefficient */
> + { 0x00000f50, 0x0000 }, /* R3920 (0xf50) - ANC Coefficient */
> + { 0x00000f51, 0x0000 }, /* R3921 (0xf51) - ANC Coefficient */
> + { 0x00000f52, 0x0000 }, /* R3922 (0xf52) - ANC Coefficient */
> + { 0x00000f53, 0x0000 }, /* R3923 (0xf53) - ANC Coefficient */
> + { 0x00000f54, 0x0000 }, /* R3924 (0xf54) - ANC Coefficient */
> + { 0x00000f55, 0x0000 }, /* R3925 (0xf55) - ANC Coefficient */
> + { 0x00000f56, 0x0000 }, /* R3926 (0xf56) - ANC Coefficient */
> + { 0x00000f57, 0x0000 }, /* R3927 (0xf57) - ANC Coefficient */
> + { 0x00000f58, 0x0000 }, /* R3928 (0xf58) - ANC Coefficient */
> + { 0x00000f59, 0x0000 }, /* R3929 (0xf59) - ANC Coefficient */
> + { 0x00000f5a, 0x0000 }, /* R3930 (0xf5a) - ANC Coefficient */
> + { 0x00000f5b, 0x0000 }, /* R3931 (0xf5b) - ANC Coefficient */
> + { 0x00000f5c, 0x0000 }, /* R3932 (0xf5c) - ANC Coefficient */
> + { 0x00000f5d, 0x0000 }, /* R3933 (0xf5d) - ANC Coefficient */
> + { 0x00000f5e, 0x0000 }, /* R3934 (0xf5e) - ANC Coefficient */
> + { 0x00000f5f, 0x0000 }, /* R3935 (0xf5f) - ANC Coefficient */
> + { 0x00000f60, 0x0000 }, /* R3936 (0xf60) - ANC Coefficient */
> + { 0x00000f61, 0x0000 }, /* R3937 (0xf61) - ANC Coefficient */
> + { 0x00000f62, 0x0000 }, /* R3938 (0xf62) - ANC Coefficient */
> + { 0x00000f63, 0x0000 }, /* R3939 (0xf63) - ANC Coefficient */
> + { 0x00000f64, 0x0000 }, /* R3940 (0xf64) - ANC Coefficient */
> + { 0x00000f65, 0x0000 }, /* R3941 (0xf65) - ANC Coefficient */
> + { 0x00000f66, 0x0000 }, /* R3942 (0xf66) - ANC Coefficient */
> + { 0x00000f67, 0x0000 }, /* R3943 (0xf67) - ANC Coefficient */
> + { 0x00000f68, 0x0000 }, /* R3944 (0xf68) - ANC Coefficient */
> + { 0x00000f69, 0x0000 }, /* R3945 (0xf69) - ANC Coefficient */
> + { 0x00000f71, 0x0000 }, /* R3953 (0xf71) - FCR Filter Control */
> + { 0x00000f73, 0x0004 }, /* R3955 (0xf73) - FCR ADC Reformatter Control */
> + { 0x00000f74, 0x0004 }, /* R3956 (0xf74) - ANC Coefficient */
> + { 0x00000f75, 0x0002 }, /* R3957 (0xf75) - ANC Coefficient */
> + { 0x00000f76, 0x0000 }, /* R3958 (0xf76) - ANC Coefficient */
> + { 0x00000f77, 0x0010 }, /* R3959 (0xf77) - ANC Coefficient */
> + { 0x00000f78, 0x0000 }, /* R3960 (0xf78) - ANC Coefficient */
> + { 0x00000f79, 0x0000 }, /* R3961 (0xf79) - ANC Coefficient */
> + { 0x00000f7a, 0x0000 }, /* R3962 (0xf7a) - ANC Coefficient */
> + { 0x00000f7b, 0x0000 }, /* R3963 (0xf7b) - ANC Coefficient */
> + { 0x00000f7c, 0x0000 }, /* R3964 (0xf7c) - ANC Coefficient */
> + { 0x00000f7d, 0x0000 }, /* R3965 (0xf7d) - ANC Coefficient */
> + { 0x00000f7e, 0x0000 }, /* R3966 (0xf7e) - ANC Coefficient */
> + { 0x00000f7f, 0x0000 }, /* R3967 (0xf7f) - ANC Coefficient */
> + { 0x00000f80, 0x0000 }, /* R3968 (0xf80) - ANC Coefficient */
> + { 0x00000f81, 0x0000 }, /* R3969 (0xf81) - ANC Coefficient */
> + { 0x00000f82, 0x0000 }, /* R3970 (0xf82) - ANC Coefficient */
> + { 0x00000f83, 0x0000 }, /* R3971 (0xf83) - ANC Coefficient */
> + { 0x00000f84, 0x0000 }, /* R3972 (0xf84) - ANC Coefficient */
> + { 0x00000f85, 0x0000 }, /* R3973 (0xf85) - ANC Coefficient */
> + { 0x00000f86, 0x0000 }, /* R3974 (0xf86) - ANC Coefficient */
> + { 0x00000f87, 0x0000 }, /* R3975 (0xf87) - ANC Coefficient */
> + { 0x00000f88, 0x0000 }, /* R3976 (0xf88) - ANC Coefficient */
> + { 0x00000f89, 0x0000 }, /* R3977 (0xf89) - ANC Coefficient */
> + { 0x00000f8a, 0x0000 }, /* R3978 (0xf8a) - ANC Coefficient */
> + { 0x00000f8b, 0x0000 }, /* R3979 (0xf8b) - ANC Coefficient */
> + { 0x00000f8c, 0x0000 }, /* R3980 (0xf8c) - ANC Coefficient */
> + { 0x00000f8d, 0x0000 }, /* R3981 (0xf8d) - ANC Coefficient */
> + { 0x00000f8e, 0x0000 }, /* R3982 (0xf8e) - ANC Coefficient */
> + { 0x00000f8f, 0x0000 }, /* R3983 (0xf8f) - ANC Coefficient */
> + { 0x00000f90, 0x0000 }, /* R3984 (0xf90) - ANC Coefficient */
> + { 0x00000f91, 0x0000 }, /* R3985 (0xf91) - ANC Coefficient */
> + { 0x00000f92, 0x0000 }, /* R3986 (0xf92) - ANC Coefficient */
> + { 0x00000f93, 0x0000 }, /* R3987 (0xf93) - ANC Coefficient */
> + { 0x00000f94, 0x0000 }, /* R3988 (0xf94) - ANC Coefficient */
> + { 0x00000f95, 0x0000 }, /* R3989 (0xf95) - ANC Coefficient */
> + { 0x00000f96, 0x0000 }, /* R3990 (0xf96) - ANC Coefficient */
> + { 0x00000f97, 0x0000 }, /* R3991 (0xf97) - ANC Coefficient */
> + { 0x00000f98, 0x0000 }, /* R3992 (0xf98) - ANC Coefficient */
> + { 0x00000f99, 0x0000 }, /* R3993 (0xf99) - ANC Coefficient */
> + { 0x00000f9a, 0x0000 }, /* R3994 (0xf9a) - ANC Coefficient */
> + { 0x00000f9b, 0x0000 }, /* R3995 (0xf9b) - ANC Coefficient */
> + { 0x00000f9c, 0x0000 }, /* R3996 (0xf9c) - ANC Coefficient */
> + { 0x00000f9d, 0x0000 }, /* R3997 (0xf9d) - ANC Coefficient */
> + { 0x00000f9e, 0x0000 }, /* R3998 (0xf9e) - ANC Coefficient */
> + { 0x00000f9f, 0x0000 }, /* R3999 (0xf9f) - ANC Coefficient */
> + { 0x00000fa0, 0x0000 }, /* R4000 (0xfa0) - ANC Coefficient */
> + { 0x00000fa1, 0x0000 }, /* R4001 (0xfa1) - ANC Coefficient */
> + { 0x00000fa2, 0x0000 }, /* R4002 (0xfa2) - ANC Coefficient */
> + { 0x00000fa3, 0x0000 }, /* R4003 (0xfa3) - ANC Coefficient */
> + { 0x00000fa4, 0x0000 }, /* R4004 (0xfa4) - ANC Coefficient */
> + { 0x00000fa5, 0x0000 }, /* R4005 (0xfa5) - ANC Coefficient */
> + { 0x00000fa6, 0x0000 }, /* R4006 (0xfa6) - ANC Coefficient */
> + { 0x00000fa7, 0x0000 }, /* R4007 (0xfa7) - ANC Coefficient */
> + { 0x00000fa8, 0x0000 }, /* R4008 (0xfa8) - ANC Coefficient */
> + { 0x00000fa9, 0x0000 }, /* R4009 (0xfa9) - ANC Coefficient */
> + { 0x00000faa, 0x0000 }, /* R4010 (0xfaa) - ANC Coefficient */
> + { 0x00000fab, 0x0000 }, /* R4011 (0xfab) - ANC Coefficient */
> + { 0x00000fac, 0x0000 }, /* R4012 (0xfac) - ANC Coefficient */
> + { 0x00000fad, 0x0000 }, /* R4013 (0xfad) - ANC Coefficient */
> + { 0x00000fae, 0x0000 }, /* R4014 (0xfae) - ANC Coefficient */
> + { 0x00000faf, 0x0000 }, /* R4015 (0xfaf) - ANC Coefficient */
> + { 0x00000fb0, 0x0000 }, /* R4016 (0xfb0) - ANC Coefficient */
> + { 0x00000fb1, 0x0000 }, /* R4017 (0xfb1) - ANC Coefficient */
> + { 0x00000fb2, 0x0000 }, /* R4018 (0xfb2) - ANC Coefficient */
> + { 0x00000fb3, 0x0000 }, /* R4019 (0xfb3) - ANC Coefficient */
> + { 0x00000fb4, 0x0000 }, /* R4020 (0xfb4) - ANC Coefficient */
> + { 0x00000fb5, 0x0000 }, /* R4021 (0xfb5) - ANC Coefficient */
> + { 0x00000fb6, 0x0000 }, /* R4022 (0xfb6) - ANC Coefficient */
> + { 0x00000fb7, 0x0000 }, /* R4023 (0xfb7) - ANC Coefficient */
> + { 0x00000fb8, 0x0000 }, /* R4024 (0xfb8) - ANC Coefficient */
> + { 0x00000fb9, 0x0000 }, /* R4025 (0xfb9) - ANC Coefficient */
> + { 0x00000fba, 0x0000 }, /* R4026 (0xfba) - ANC Coefficient */
> + { 0x00000fbb, 0x0000 }, /* R4027 (0xfbb) - ANC Coefficient */
> + { 0x00000fbc, 0x0000 }, /* R4028 (0xfbc) - ANC Coefficient */
> + { 0x00000fbd, 0x0000 }, /* R4029 (0xfbd) - ANC Coefficient */
> + { 0x00000fbe, 0x0000 }, /* R4030 (0xfbe) - ANC Coefficient */
> + { 0x00000fbf, 0x0000 }, /* R4031 (0xfbf) - ANC Coefficient */
> + { 0x00000fc0, 0x0000 }, /* R4032 (0xfc0) - ANC Coefficient */
> + { 0x00000fc1, 0x0000 }, /* R4033 (0xfc1) - ANC Coefficient */
> + { 0x00000fc2, 0x0000 }, /* R4034 (0xfc2) - ANC Coefficient */
> + { 0x00000fc3, 0x0000 }, /* R4035 (0xfc3) - ANC Coefficient */
> + { 0x00000fc4, 0x0000 }, /* R4036 (0xfc4) - ANC Coefficient */
> + { 0x00000fc5, 0x0000 }, /* R4037 (0xfc5) - ANC Coefficient */
> + { 0x00001300, 0x050E }, /* R4864 (0x1300) - DAC Comp 1 */
> + { 0x00001302, 0x0101 }, /* R4866 (0x1302) - DAC Comp 2 */
> + { 0x00001380, 0x0425 }, /* R4992 (0x1380) - FRF Coefficient 1L 1 */
> + { 0x00001381, 0xF6D8 }, /* R4993 (0x1381) - FRF Coefficient 1L 2 */
> + { 0x00001382, 0x0632 }, /* R4994 (0x1382) - FRF Coefficient 1L 3 */
> + { 0x00001383, 0xFEC8 }, /* R4995 (0x1383) - FRF Coefficient 1L 4 */
> + { 0x00001390, 0x042F }, /* R5008 (0x1390) - FRF Coefficient 1R 1 */
> + { 0x00001391, 0xF6CA }, /* R5009 (0x1391) - FRF Coefficient 1R 2 */
> + { 0x00001392, 0x0637 }, /* R5010 (0x1392) - FRF Coefficient 1R 3 */
> + { 0x00001393, 0xFEC8 }, /* R5011 (0x1393) - FRF Coefficient 1R 4 */
> + { 0x000013a0, 0x0000 }, /* R5024 (0x13a0) - FRF Coefficient 2L 1 */
> + { 0x000013a1, 0x0000 }, /* R5025 (0x13a1) - FRF Coefficient 2L 2 */
> + { 0x000013a2, 0x0000 }, /* R5026 (0x13a2) - FRF Coefficient 2L 3 */
> + { 0x000013a3, 0x0000 }, /* R5027 (0x13a3) - FRF Coefficient 2L 4 */
> + { 0x000013b0, 0x0000 }, /* R5040 (0x13b0) - FRF Coefficient 2R 1 */
> + { 0x000013b1, 0x0000 }, /* R5041 (0x13b1) - FRF Coefficient 2R 2 */
> + { 0x000013b2, 0x0000 }, /* R5042 (0x13b2) - FRF Coefficient 2R 3 */
> + { 0x000013b3, 0x0000 }, /* R5043 (0x13b3) - FRF Coefficient 2R 4 */
> + { 0x000013c0, 0x0000 }, /* R5040 (0x13c0) - FRF Coefficient 3L 1 */
> + { 0x000013c1, 0x0000 }, /* R5041 (0x13c1) - FRF Coefficient 3L 2 */
> + { 0x000013c2, 0x0000 }, /* R5042 (0x13c2) - FRF Coefficient 3L 3 */
> + { 0x000013c3, 0x0000 }, /* R5043 (0x13c3) - FRF Coefficient 3L 4 */
> + { 0x000013d0, 0x0000 }, /* R5072 (0x13d0) - FRF Coefficient 3R 1 */
> + { 0x000013d1, 0x0000 }, /* R5073 (0x13d1) - FRF Coefficient 3R 2 */
> + { 0x000013d2, 0x0000 }, /* R5074 (0x13d2) - FRF Coefficient 3R 3 */
> + { 0x000013d3, 0x0000 }, /* R5075 (0x13d3) - FRF Coefficient 3R 4 */
> + { 0x00001400, 0x0000 }, /* R5120 (0x1400) - FRF Coefficient 5L 1 */
> + { 0x00001401, 0x0000 }, /* R5121 (0x1401) - FRF Coefficient 5L 2 */
> + { 0x00001402, 0x0000 }, /* R5122 (0x1402) - FRF Coefficient 5L 3 */
> + { 0x00001403, 0x0000 }, /* R5123 (0x1403) - FRF Coefficient 5L 4 */
> + { 0x00001410, 0x0000 }, /* R5136 (0x1410) - FRF Coefficient 5R 1 */
> + { 0x00001411, 0x0000 }, /* R5137 (0x1411) - FRF Coefficient 5R 2 */
> + { 0x00001412, 0x0000 }, /* R5138 (0x1412) - FRF Coefficient 5R 3 */
> + { 0x00001413, 0x0000 }, /* R5139 (0x1413) - FRF Coefficient 5R 4 */
> + { 0x00001480, 0x0000 }, /* R5248 (0x1480) - DFC1_CTRL */
> + { 0x00001482, 0x1f00 }, /* R5250 (0x1482) - DFC1_RX */
> + { 0x00001484, 0x1f00 }, /* R5252 (0x1486) - DFC1_TX */
> + { 0x00001486, 0x0000 }, /* R5254 (0x1486) - DFC2_CTRL */
> + { 0x00001488, 0x1f00 }, /* R5256 (0x1488) - DFC2_RX */
> + { 0x0000148a, 0x1f00 }, /* R5258 (0x148a) - DFC2_TX */
> + { 0x0000148c, 0x0000 }, /* R5260 (0x148c) - DFC3_CTRL */
> + { 0x0000148e, 0x1f00 }, /* R5262 (0x148e) - DFC3_RX */
> + { 0x00001490, 0x1f00 }, /* R5264 (0x1490) - DFC3_TX */
> + { 0x00001492, 0x0000 }, /* R5266 (0x1492) - DFC4_CTRL */
> + { 0x00001494, 0x1f00 }, /* R5268 (0x1494) - DFC4_RX */
> + { 0x00001496, 0x1f00 }, /* R5270 (0x1496) - DFC4_TX */
> + { 0x00001498, 0x0000 }, /* R5272 (0x1498) - DFC5_CTRL */
> + { 0x0000149a, 0x1f00 }, /* R5274 (0x149a) - DFC5_RX */
> + { 0x0000149c, 0x1f00 }, /* R5276 (0x149c) - DFC5_TX */
> + { 0x0000149e, 0x0000 }, /* R5278 (0x149e) - DFC6_CTRL */
> + { 0x000014a0, 0x1f00 }, /* R5280 (0x14a0) - DFC6_RX */
> + { 0x000014a2, 0x1f00 }, /* R5282 (0x14a2) - DFC6_TX */
> + { 0x000014a4, 0x0000 }, /* R5284 (0x14a4) - DFC7_CTRL */
> + { 0x000014a6, 0x1f00 }, /* R5286 (0x14a6) - DFC7_RX */
> + { 0x000014a8, 0x1f00 }, /* R5288 (0x14a8) - DFC7_TX */
> + { 0x000014aa, 0x0000 }, /* R5290 (0x14aa) - DFC8_CTRL */
> + { 0x000014ac, 0x1f00 }, /* R5292 (0x14ac) - DFC8_RX */
> + { 0x000014ae, 0x1f00 }, /* R5294 (0x14ae) - DFC8_TX */
> + { 0x00001700, 0x2001 }, /* R5888 (0x1700) - GPIO1 Control 1 */
> + { 0x00001701, 0xf000 }, /* R5889 (0x1701) - GPIO1 Control 2 */
> + { 0x00001702, 0x2001 }, /* R5890 (0x1702) - GPIO2 Control 1 */
> + { 0x00001703, 0xf000 }, /* R5891 (0x1702) - GPIO2 Control 2 */
> + { 0x00001704, 0x2001 }, /* R5892 (0x1704) - GPIO3 Control 1 */
> + { 0x00001705, 0xf000 }, /* R5893 (0x1705) - GPIO3 Control 2 */
> + { 0x00001706, 0x2001 }, /* R5894 (0x1706) - GPIO4 Control 1 */
> + { 0x00001707, 0xf000 }, /* R5895 (0x1707) - GPIO4 Control 2 */
> + { 0x00001708, 0x2001 }, /* R5896 (0x1708) - GPIO5 Control 1 */
> + { 0x00001709, 0xf000 }, /* R5897 (0x1709) - GPIO5 Control 2 */
> + { 0x0000170a, 0x2001 }, /* R5898 (0x170a) - GPIO6 Control 1 */
> + { 0x0000170b, 0xf000 }, /* R5899 (0x170b) - GPIO6 Control 2 */
> + { 0x0000170c, 0x2001 }, /* R5900 (0x170c) - GPIO7 Control 1 */
> + { 0x0000170d, 0xf000 }, /* R5901 (0x170d) - GPIO7 Control 2 */
> + { 0x0000170e, 0x2001 }, /* R5902 (0x170e) - GPIO8 Control 1 */
> + { 0x0000170f, 0xf000 }, /* R5903 (0x170f) - GPIO8 Control 2 */
> + { 0x00001710, 0x2001 }, /* R5904 (0x1710) - GPIO9 Control 1 */
> + { 0x00001711, 0xf000 }, /* R5905 (0x1711) - GPIO9 Control 2 */
> + { 0x00001712, 0x2001 }, /* R5906 (0x1712) - GPIO10 Control 1 */
> + { 0x00001713, 0xf000 }, /* R5907 (0x1713) - GPIO10 Control 2 */
> + { 0x00001714, 0x2001 }, /* R5908 (0x1714) - GPIO11 Control 1 */
> + { 0x00001715, 0xf000 }, /* R5909 (0x1715) - GPIO11 Control 2 */
> + { 0x00001716, 0x2001 }, /* R5910 (0x1716) - GPIO12 Control 1 */
> + { 0x00001717, 0xf000 }, /* R5911 (0x1717) - GPIO12 Control 2 */
> + { 0x00001718, 0x2001 }, /* R5912 (0x1718) - GPIO13 Control 1 */
> + { 0x00001719, 0xf000 }, /* R5913 (0x1719) - GPIO13 Control 2 */
> + { 0x0000171a, 0x2001 }, /* R5914 (0x171a) - GPIO14 Control 1 */
> + { 0x0000171b, 0xf000 }, /* R5915 (0x171b) - GPIO14 Control 2 */
> + { 0x0000171c, 0x2001 }, /* R5916 (0x171c) - GPIO15 Control 1 */
> + { 0x0000171d, 0xf000 }, /* R5917 (0x171d) - GPIO15 Control 2 */
> + { 0x0000171e, 0x2001 }, /* R5918 (0x171e) - GPIO16 Control 1 */
> + { 0x0000171f, 0xf000 }, /* R5919 (0x171f) - GPIO16 Control 2 */
> + { 0x00001720, 0x2001 }, /* R5920 (0x1720) - GPIO17 Control 1 */
> + { 0x00001721, 0xf000 }, /* R5921 (0x1721) - GPIO17 Control 2 */
> + { 0x00001722, 0x2001 }, /* R5922 (0x1722) - GPIO18 Control 1 */
> + { 0x00001723, 0xf000 }, /* R5923 (0x1723) - GPIO18 Control 2 */
> + { 0x00001724, 0x2001 }, /* R5924 (0x1724) - GPIO19 Control 1 */
> + { 0x00001725, 0xf000 }, /* R5925 (0x1725) - GPIO19 Control 2 */
> + { 0x00001726, 0x2001 }, /* R5926 (0x1726) - GPIO20 Control 1 */
> + { 0x00001727, 0xf000 }, /* R5927 (0x1727) - GPIO20 Control 2 */
> + { 0x00001728, 0x2001 }, /* R5928 (0x1728) - GPIO21 Control 1 */
> + { 0x00001729, 0xf000 }, /* R5929 (0x1729) - GPIO21 Control 2 */
> + { 0x0000172a, 0x2001 }, /* R5930 (0x172a) - GPIO22 Control 1 */
> + { 0x0000172b, 0xf000 }, /* R5931 (0x172b) - GPIO22 Control 2 */
> + { 0x0000172c, 0x2001 }, /* R5932 (0x172c) - GPIO23 Control 1 */
> + { 0x0000172d, 0xf000 }, /* R5933 (0x172d) - GPIO23 Control 2 */
> + { 0x0000172e, 0x2001 }, /* R5934 (0x172e) - GPIO24 Control 1 */
> + { 0x0000172f, 0xf000 }, /* R5935 (0x172f) - GPIO24 Control 2 */
> + { 0x00001730, 0x2001 }, /* R5936 (0x1730) - GPIO25 Control 1 */
> + { 0x00001731, 0xf000 }, /* R5937 (0x1731) - GPIO25 Control 2 */
> + { 0x00001732, 0x2001 }, /* R5938 (0x1732) - GPIO26 Control 1 */
> + { 0x00001733, 0xf000 }, /* R5939 (0x1733) - GPIO26 Control 2 */
> + { 0x00001734, 0x2001 }, /* R5940 (0x1734) - GPIO27 Control 1 */
> + { 0x00001735, 0xf000 }, /* R5941 (0x1735) - GPIO27 Control 2 */
> + { 0x00001736, 0x2001 }, /* R5942 (0x1736) - GPIO28 Control 1 */
> + { 0x00001737, 0xf000 }, /* R5943 (0x1737) - GPIO28 Control 2 */
> + { 0x00001738, 0x2001 }, /* R5944 (0x1738) - GPIO29 Control 1 */
> + { 0x00001739, 0xf000 }, /* R5945 (0x1739) - GPIO29 Control 2 */
> + { 0x0000173a, 0x2001 }, /* R5946 (0x173a) - GPIO30 Control 1 */
> + { 0x0000173b, 0xf000 }, /* R5947 (0x173b) - GPIO30 Control 2 */
> + { 0x0000173c, 0x2001 }, /* R5948 (0x173c) - GPIO31 Control 1 */
> + { 0x0000173d, 0xf000 }, /* R5949 (0x173d) - GPIO31 Control 2 */
> + { 0x0000173e, 0x2001 }, /* R5950 (0x173e) - GPIO32 Control 1 */
> + { 0x0000173f, 0xf000 }, /* R5951 (0x173f) - GPIO32 Control 2 */
> + { 0x00001740, 0x2001 }, /* R5952 (0x1740) - GPIO33 Control 1 */
> + { 0x00001741, 0xf000 }, /* R5953 (0x1741) - GPIO33 Control 2 */
> + { 0x00001742, 0x2001 }, /* R5954 (0x1742) - GPIO34 Control 1 */
> + { 0x00001743, 0xf000 }, /* R5955 (0x1743) - GPIO34 Control 2 */
> + { 0x00001744, 0x2001 }, /* R5956 (0x1744) - GPIO35 Control 1 */
> + { 0x00001745, 0xf000 }, /* R5957 (0x1745) - GPIO35 Control 2 */
> + { 0x00001746, 0x2001 }, /* R5958 (0x1746) - GPIO36 Control 1 */
> + { 0x00001747, 0xf000 }, /* R5959 (0x1747) - GPIO36 Control 2 */
> + { 0x00001748, 0x2001 }, /* R5960 (0x1748) - GPIO37 Control 1 */
> + { 0x00001749, 0xf000 }, /* R5961 (0x1749) - GPIO37 Control 2 */
> + { 0x0000174a, 0x2001 }, /* R5962 (0x174a) - GPIO38 Control 1 */
> + { 0x0000174b, 0xf000 }, /* R5963 (0x174b) - GPIO38 Control 2 */
> + { 0x00001840, 0xffff }, /* R6208 (0x1840) - IRQ1 Mask 1 */
> + { 0x00001841, 0xffff }, /* R6209 (0x1841) - IRQ1 Mask 2 */
> + { 0x00001842, 0xffff }, /* R6210 (0x1842) - IRQ1 Mask 3 */
> + { 0x00001843, 0xffff }, /* R6211 (0x1843) - IRQ1 Mask 4 */
> + { 0x00001844, 0xffff }, /* R6212 (0x1844) - IRQ1 Mask 5 */
> + { 0x00001845, 0xffff }, /* R6213 (0x1845) - IRQ1 Mask 6 */
> + { 0x00001846, 0xffff }, /* R6214 (0x1846) - IRQ1 Mask 7 */
> + { 0x00001847, 0xffff }, /* R6215 (0x1847) - IRQ1 Mask 8 */
> + { 0x00001848, 0xffff }, /* R6216 (0x1848) - IRQ1 Mask 9 */
> + { 0x00001849, 0xffff }, /* R6217 (0x1849) - IRQ1 Mask 10 */
> + { 0x0000184a, 0xffff }, /* R6218 (0x184a) - IRQ1 Mask 11 */
> + { 0x0000184b, 0xffff }, /* R6219 (0x184b) - IRQ1 Mask 12 */
> + { 0x0000184c, 0xffff }, /* R6220 (0x184c) - IRQ1 Mask 13 */
> + { 0x0000184d, 0xffff }, /* R6221 (0x184d) - IRQ1 Mask 14 */
> + { 0x0000184e, 0xffff }, /* R6222 (0x184e) - IRQ1 Mask 15 */
> + { 0x0000184f, 0xffff }, /* R6223 (0x184f) - IRQ1 Mask 16 */
> + { 0x00001850, 0xffff }, /* R6224 (0x1850) - IRQ1 Mask 17 */
> + { 0x00001851, 0xffff }, /* R6225 (0x1851) - IRQ1 Mask 18 */
> + { 0x00001852, 0xffff }, /* R6226 (0x1852) - IRQ1 Mask 19 */
> + { 0x00001853, 0xffff }, /* R6227 (0x1853) - IRQ1 Mask 20 */
> + { 0x00001854, 0xffff }, /* R6228 (0x1854) - IRQ1 Mask 21 */
> + { 0x00001855, 0xffff }, /* R6229 (0x1855) - IRQ1 Mask 22 */
> + { 0x00001856, 0xffff }, /* R6230 (0x1856) - IRQ1 Mask 23 */
> + { 0x00001857, 0xffff }, /* R6231 (0x1857) - IRQ1 Mask 24 */
> + { 0x00001858, 0xffff }, /* R6232 (0x1858) - IRQ1 Mask 25 */
> + { 0x00001859, 0xffff }, /* R6233 (0x1859) - IRQ1 Mask 26 */
> + { 0x0000185a, 0xffff }, /* R6234 (0x185a) - IRQ1 Mask 27 */
> + { 0x0000185b, 0xffff }, /* R6235 (0x185b) - IRQ1 Mask 28 */
> + { 0x0000185c, 0xffff }, /* R6236 (0x185c) - IRQ1 Mask 29 */
> + { 0x0000185d, 0xffff }, /* R6237 (0x185d) - IRQ1 Mask 30 */
> + { 0x0000185e, 0xffff }, /* R6238 (0x185e) - IRQ1 Mask 31 */
> + { 0x0000185f, 0xffff }, /* R6239 (0x185f) - IRQ1 Mask 32 */
> + { 0x00001860, 0xffff }, /* R6240 (0x1860) - IRQ1 Mask 33 */
> + { 0x00001a06, 0x0000 }, /* R6662 (0x1a06) - Interrupt Debounce 7 */
> + { 0x00001a80, 0x4400 }, /* R6784 (0x1a80) - IRQ1 CTRL */
> +};
> +
> +static bool cs47l90_is_adsp_memory(unsigned int reg)
> +{
> + switch (reg) {
> + case 0x080000 ... 0x088ffe:
> + case 0x0a0000 ... 0x0a9ffe:
> + case 0x0c0000 ... 0x0c3ffe:
> + case 0x0e0000 ... 0x0e1ffe:
> + case 0x100000 ... 0x10effe:
> + case 0x120000 ... 0x12bffe:
> + case 0x136000 ... 0x137ffe:
> + case 0x140000 ... 0x14bffe:
> + case 0x160000 ... 0x161ffe:
> + case 0x180000 ... 0x18effe:
> + case 0x1a0000 ... 0x1b1ffe:
> + case 0x1b6000 ... 0x1b7ffe:
> + case 0x1c0000 ... 0x1cbffe:
> + case 0x1e0000 ... 0x1e1ffe:
> + case 0x200000 ... 0x208ffe:
> + case 0x220000 ... 0x229ffe:
> + case 0x240000 ... 0x243ffe:
> + case 0x260000 ... 0x261ffe:
> + case 0x280000 ... 0x288ffe:
> + case 0x2a0000 ... 0x2a9ffe:
> + case 0x2c0000 ... 0x2c3ffe:
> + case 0x2e0000 ... 0x2e1ffe:
> + case 0x300000 ... 0x308ffe:
> + case 0x320000 ... 0x333ffe:
> + case 0x340000 ... 0x353ffe:
> + case 0x360000 ... 0x361ffe:
> + case 0x380000 ... 0x388ffe:
> + case 0x3a0000 ... 0x3b3ffe:
> + case 0x3c0000 ... 0x3d3ffe:
> + case 0x3e0000 ... 0x3e1ffe:
> + return true;
> + default:
> + return false;
> + }
> +}
> +
> +static bool cs47l90_16bit_readable_register(struct device *dev,
> + unsigned int reg)
> +{
> + switch (reg) {
> + case MADERA_SOFTWARE_RESET:
> + case MADERA_HARDWARE_REVISION:
> + case MADERA_WRITE_SEQUENCER_CTRL_0:
> + case MADERA_WRITE_SEQUENCER_CTRL_1:
> + case MADERA_WRITE_SEQUENCER_CTRL_2:
> + case MADERA_TONE_GENERATOR_1:
> + case MADERA_TONE_GENERATOR_2:
> + case MADERA_TONE_GENERATOR_3:
> + case MADERA_TONE_GENERATOR_4:
> + case MADERA_TONE_GENERATOR_5:
> + case MADERA_PWM_DRIVE_1:
> + case MADERA_PWM_DRIVE_2:
> + case MADERA_PWM_DRIVE_3:
> + case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_1:
> + case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_2:
> + case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_3:
> + case MADERA_SAMPLE_RATE_SEQUENCE_SELECT_4:
> + case MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_1:
> + case MADERA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_2:
> + case MADERA_HAPTICS_CONTROL_1:
> + case MADERA_HAPTICS_CONTROL_2:
> + case MADERA_HAPTICS_PHASE_1_INTENSITY:
> + case MADERA_HAPTICS_PHASE_1_DURATION:
> + case MADERA_HAPTICS_PHASE_2_INTENSITY:
> + case MADERA_HAPTICS_PHASE_2_DURATION:
> + case MADERA_HAPTICS_PHASE_3_INTENSITY:
> + case MADERA_HAPTICS_PHASE_3_DURATION:
> + case MADERA_HAPTICS_STATUS:
> + case MADERA_COMFORT_NOISE_GENERATOR:
> + case MADERA_CLOCK_32K_1:
> + case MADERA_SYSTEM_CLOCK_1:
> + case MADERA_SAMPLE_RATE_1:
> + case MADERA_SAMPLE_RATE_2:
> + case MADERA_SAMPLE_RATE_3:
> + case MADERA_SAMPLE_RATE_1_STATUS:
> + case MADERA_SAMPLE_RATE_2_STATUS:
> + case MADERA_SAMPLE_RATE_3_STATUS:
> + case MADERA_ASYNC_CLOCK_1:
> + case MADERA_ASYNC_SAMPLE_RATE_1:
> + case MADERA_ASYNC_SAMPLE_RATE_1_STATUS:
> + case MADERA_ASYNC_SAMPLE_RATE_2:
> + case MADERA_ASYNC_SAMPLE_RATE_2_STATUS:
> + case MADERA_DSP_CLOCK_1:
> + case MADERA_DSP_CLOCK_2:
> + case MADERA_OUTPUT_SYSTEM_CLOCK:
> + case MADERA_OUTPUT_ASYNC_CLOCK:
> + case MADERA_RATE_ESTIMATOR_1:
> + case MADERA_RATE_ESTIMATOR_2:
> + case MADERA_RATE_ESTIMATOR_3:
> + case MADERA_RATE_ESTIMATOR_4:
> + case MADERA_RATE_ESTIMATOR_5:
> + case MADERA_FLL1_CONTROL_1:
> + case MADERA_FLL1_CONTROL_2:
> + case MADERA_FLL1_CONTROL_3:
> + case MADERA_FLL1_CONTROL_4:
> + case MADERA_FLL1_CONTROL_5:
> + case MADERA_FLL1_CONTROL_6:
> + case MADERA_FLL1_CONTROL_7:
> + case MADERA_FLL1_EFS_2:
> + case MADERA_FLL1_LOOP_FILTER_TEST_1:
> + case MADERA_FLL1_SYNCHRONISER_1:
> + case MADERA_FLL1_SYNCHRONISER_2:
> + case MADERA_FLL1_SYNCHRONISER_3:
> + case MADERA_FLL1_SYNCHRONISER_4:
> + case MADERA_FLL1_SYNCHRONISER_5:
> + case MADERA_FLL1_SYNCHRONISER_6:
> + case MADERA_FLL1_SYNCHRONISER_7:
> + case MADERA_FLL1_SPREAD_SPECTRUM:
> + case MADERA_FLL1_GPIO_CLOCK:
> + case MADERA_FLL2_CONTROL_1:
> + case MADERA_FLL2_CONTROL_2:
> + case MADERA_FLL2_CONTROL_3:
> + case MADERA_FLL2_CONTROL_4:
> + case MADERA_FLL2_CONTROL_5:
> + case MADERA_FLL2_CONTROL_6:
> + case MADERA_FLL2_CONTROL_7:
> + case MADERA_FLL2_EFS_2:
> + case MADERA_FLL2_LOOP_FILTER_TEST_1:
> + case MADERA_FLL2_SYNCHRONISER_1:
> + case MADERA_FLL2_SYNCHRONISER_2:
> + case MADERA_FLL2_SYNCHRONISER_3:
> + case MADERA_FLL2_SYNCHRONISER_4:
> + case MADERA_FLL2_SYNCHRONISER_5:
> + case MADERA_FLL2_SYNCHRONISER_6:
> + case MADERA_FLL2_SYNCHRONISER_7:
> + case MADERA_FLL2_SPREAD_SPECTRUM:
> + case MADERA_FLL2_GPIO_CLOCK:
> + case MADERA_FLLAO_CONTROL_1:
> + case MADERA_FLLAO_CONTROL_2:
> + case MADERA_FLLAO_CONTROL_3:
> + case MADERA_FLLAO_CONTROL_4:
> + case MADERA_FLLAO_CONTROL_5:
> + case MADERA_FLLAO_CONTROL_6:
> + case MADERA_FLLAO_CONTROL_7:
> + case MADERA_FLLAO_CONTROL_8:
> + case MADERA_FLLAO_CONTROL_9:
> + case MADERA_FLLAO_CONTROL_10:
> + case MADERA_FLLAO_CONTROL_11:
> + case MADERA_MIC_CHARGE_PUMP_1:
> + case MADERA_LDO2_CONTROL_1:
> + case MADERA_MIC_BIAS_CTRL_1:
> + case MADERA_MIC_BIAS_CTRL_2:
> + case MADERA_MIC_BIAS_CTRL_5:
> + case MADERA_MIC_BIAS_CTRL_6:
> + case MADERA_HP_CTRL_1L:
> + case MADERA_HP_CTRL_1R:
> + case MADERA_HP_CTRL_2L:
> + case MADERA_HP_CTRL_2R:
> + case MADERA_HP_CTRL_3L:
> + case MADERA_HP_CTRL_3R:
> + case MADERA_EDRE_HP_STEREO_CONTROL:
> + case MADERA_ACCESSORY_DETECT_MODE_1:
> + case MADERA_HEADPHONE_DETECT_0:
> + case MADERA_HEADPHONE_DETECT_1:
> + case MADERA_HEADPHONE_DETECT_2:
> + case MADERA_HEADPHONE_DETECT_3:
> + case MADERA_HEADPHONE_DETECT_5:
> + case MADERA_MICD_CLAMP_CONTROL:
> + case MADERA_MIC_DETECT_1_CONTROL_0:
> + case MADERA_MIC_DETECT_1_CONTROL_1:
> + case MADERA_MIC_DETECT_1_CONTROL_2:
> + case MADERA_MIC_DETECT_1_CONTROL_3:
> + case MADERA_MIC_DETECT_1_LEVEL_1:
> + case MADERA_MIC_DETECT_1_LEVEL_2:
> + case MADERA_MIC_DETECT_1_LEVEL_3:
> + case MADERA_MIC_DETECT_1_LEVEL_4:
> + case MADERA_MIC_DETECT_1_CONTROL_4:
> + case MADERA_MIC_DETECT_2_CONTROL_0:
> + case MADERA_MIC_DETECT_2_CONTROL_1:
> + case MADERA_MIC_DETECT_2_CONTROL_2:
> + case MADERA_MIC_DETECT_2_CONTROL_3:
> + case MADERA_MIC_DETECT_2_LEVEL_1:
> + case MADERA_MIC_DETECT_2_LEVEL_2:
> + case MADERA_MIC_DETECT_2_LEVEL_3:
> + case MADERA_MIC_DETECT_2_LEVEL_4:
> + case MADERA_MIC_DETECT_2_CONTROL_4:
> + case MADERA_GP_SWITCH_1:
> + case MADERA_JACK_DETECT_ANALOGUE:
> + case MADERA_INPUT_ENABLES:
> + case MADERA_INPUT_ENABLES_STATUS:
> + case MADERA_INPUT_RATE:
> + case MADERA_INPUT_VOLUME_RAMP:
> + case MADERA_HPF_CONTROL:
> + case MADERA_IN1L_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_1L:
> + case MADERA_DMIC1L_CONTROL:
> + case MADERA_IN1L_RATE_CONTROL:
> + case MADERA_IN1R_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_1R:
> + case MADERA_DMIC1R_CONTROL:
> + case MADERA_IN1R_RATE_CONTROL:
> + case MADERA_IN2L_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_2L:
> + case MADERA_DMIC2L_CONTROL:
> + case MADERA_IN2L_RATE_CONTROL:
> + case MADERA_IN2R_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_2R:
> + case MADERA_DMIC2R_CONTROL:
> + case MADERA_IN2R_RATE_CONTROL:
> + case MADERA_IN3L_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_3L:
> + case MADERA_DMIC3L_CONTROL:
> + case MADERA_IN3L_RATE_CONTROL:
> + case MADERA_IN3R_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_3R:
> + case MADERA_DMIC3R_CONTROL:
> + case MADERA_IN3R_RATE_CONTROL:
> + case MADERA_IN4L_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_4L:
> + case MADERA_DMIC4L_CONTROL:
> + case MADERA_IN4L_RATE_CONTROL:
> + case MADERA_IN4R_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_4R:
> + case MADERA_DMIC4R_CONTROL:
> + case MADERA_IN4R_RATE_CONTROL:
> + case MADERA_IN5L_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_5L:
> + case MADERA_DMIC5L_CONTROL:
> + case MADERA_IN5L_RATE_CONTROL:
> + case MADERA_IN5R_CONTROL:
> + case MADERA_ADC_DIGITAL_VOLUME_5R:
> + case MADERA_DMIC5R_CONTROL:
> + case MADERA_IN5R_RATE_CONTROL:
> + case MADERA_OUTPUT_ENABLES_1:
> + case MADERA_OUTPUT_STATUS_1:
> + case MADERA_RAW_OUTPUT_STATUS_1:
> + case MADERA_OUTPUT_RATE_1:
> + case MADERA_OUTPUT_VOLUME_RAMP:
> + case MADERA_OUTPUT_PATH_CONFIG_1L:
> + case MADERA_DAC_DIGITAL_VOLUME_1L:
> + case MADERA_OUTPUT_PATH_CONFIG_1:
> + case MADERA_NOISE_GATE_SELECT_1L:
> + case MADERA_OUTPUT_PATH_CONFIG_1R:
> + case MADERA_DAC_DIGITAL_VOLUME_1R:
> + case MADERA_NOISE_GATE_SELECT_1R:
> + case MADERA_OUTPUT_PATH_CONFIG_2L:
> + case MADERA_DAC_DIGITAL_VOLUME_2L:
> + case MADERA_OUTPUT_PATH_CONFIG_2:
> + case MADERA_NOISE_GATE_SELECT_2L:
> + case MADERA_OUTPUT_PATH_CONFIG_2R:
> + case MADERA_DAC_DIGITAL_VOLUME_2R:
> + case MADERA_NOISE_GATE_SELECT_2R:
> + case MADERA_OUTPUT_PATH_CONFIG_3L:
> + case MADERA_DAC_DIGITAL_VOLUME_3L:
> + case MADERA_NOISE_GATE_SELECT_3L:
> + case MADERA_OUTPUT_PATH_CONFIG_3R:
> + case MADERA_DAC_DIGITAL_VOLUME_3R:
> + case MADERA_NOISE_GATE_SELECT_3R:
> + case MADERA_OUTPUT_PATH_CONFIG_5L:
> + case MADERA_DAC_DIGITAL_VOLUME_5L:
> + case MADERA_NOISE_GATE_SELECT_5L:
> + case MADERA_OUTPUT_PATH_CONFIG_5R:
> + case MADERA_DAC_DIGITAL_VOLUME_5R:
> + case MADERA_NOISE_GATE_SELECT_5R:
> + case MADERA_DRE_ENABLE:
> + case MADERA_EDRE_ENABLE:
> + case MADERA_DAC_AEC_CONTROL_1:
> + case MADERA_NOISE_GATE_CONTROL:
> + case MADERA_PDM_SPK1_CTRL_1:
> + case MADERA_PDM_SPK1_CTRL_2:
> + case MADERA_HP1_SHORT_CIRCUIT_CTRL:
> + case MADERA_HP2_SHORT_CIRCUIT_CTRL:
> + case MADERA_HP3_SHORT_CIRCUIT_CTRL:
> + case MADERA_AIF1_BCLK_CTRL:
> + case MADERA_AIF1_TX_PIN_CTRL:
> + case MADERA_AIF1_RX_PIN_CTRL:
> + case MADERA_AIF1_RATE_CTRL:
> + case MADERA_AIF1_FORMAT:
> + case MADERA_AIF1_RX_BCLK_RATE:
> + case MADERA_AIF1_FRAME_CTRL_1:
> + case MADERA_AIF1_FRAME_CTRL_2:
> + case MADERA_AIF1_FRAME_CTRL_3:
> + case MADERA_AIF1_FRAME_CTRL_4:
> + case MADERA_AIF1_FRAME_CTRL_5:
> + case MADERA_AIF1_FRAME_CTRL_6:
> + case MADERA_AIF1_FRAME_CTRL_7:
> + case MADERA_AIF1_FRAME_CTRL_8:
> + case MADERA_AIF1_FRAME_CTRL_9:
> + case MADERA_AIF1_FRAME_CTRL_10:
> + case MADERA_AIF1_FRAME_CTRL_11:
> + case MADERA_AIF1_FRAME_CTRL_12:
> + case MADERA_AIF1_FRAME_CTRL_13:
> + case MADERA_AIF1_FRAME_CTRL_14:
> + case MADERA_AIF1_FRAME_CTRL_15:
> + case MADERA_AIF1_FRAME_CTRL_16:
> + case MADERA_AIF1_FRAME_CTRL_17:
> + case MADERA_AIF1_FRAME_CTRL_18:
> + case MADERA_AIF1_TX_ENABLES:
> + case MADERA_AIF1_RX_ENABLES:
> + case MADERA_AIF2_BCLK_CTRL:
> + case MADERA_AIF2_TX_PIN_CTRL:
> + case MADERA_AIF2_RX_PIN_CTRL:
> + case MADERA_AIF2_RATE_CTRL:
> + case MADERA_AIF2_FORMAT:
> + case MADERA_AIF2_RX_BCLK_RATE:
> + case MADERA_AIF2_FRAME_CTRL_1:
> + case MADERA_AIF2_FRAME_CTRL_2:
> + case MADERA_AIF2_FRAME_CTRL_3:
> + case MADERA_AIF2_FRAME_CTRL_4:
> + case MADERA_AIF2_FRAME_CTRL_5:
> + case MADERA_AIF2_FRAME_CTRL_6:
> + case MADERA_AIF2_FRAME_CTRL_7:
> + case MADERA_AIF2_FRAME_CTRL_8:
> + case MADERA_AIF2_FRAME_CTRL_9:
> + case MADERA_AIF2_FRAME_CTRL_10:
> + case MADERA_AIF2_FRAME_CTRL_11:
> + case MADERA_AIF2_FRAME_CTRL_12:
> + case MADERA_AIF2_FRAME_CTRL_13:
> + case MADERA_AIF2_FRAME_CTRL_14:
> + case MADERA_AIF2_FRAME_CTRL_15:
> + case MADERA_AIF2_FRAME_CTRL_16:
> + case MADERA_AIF2_FRAME_CTRL_17:
> + case MADERA_AIF2_FRAME_CTRL_18:
> + case MADERA_AIF2_TX_ENABLES:
> + case MADERA_AIF2_RX_ENABLES:
> + case MADERA_AIF3_BCLK_CTRL:
> + case MADERA_AIF3_TX_PIN_CTRL:
> + case MADERA_AIF3_RX_PIN_CTRL:
> + case MADERA_AIF3_RATE_CTRL:
> + case MADERA_AIF3_FORMAT:
> + case MADERA_AIF3_RX_BCLK_RATE:
> + case MADERA_AIF3_FRAME_CTRL_1:
> + case MADERA_AIF3_FRAME_CTRL_2:
> + case MADERA_AIF3_FRAME_CTRL_3:
> + case MADERA_AIF3_FRAME_CTRL_4:
> + case MADERA_AIF3_FRAME_CTRL_11:
> + case MADERA_AIF3_FRAME_CTRL_12:
> + case MADERA_AIF3_TX_ENABLES:
> + case MADERA_AIF3_RX_ENABLES:
> + case MADERA_AIF4_BCLK_CTRL:
> + case MADERA_AIF4_TX_PIN_CTRL:
> + case MADERA_AIF4_RX_PIN_CTRL:
> + case MADERA_AIF4_RATE_CTRL:
> + case MADERA_AIF4_FORMAT:
> + case MADERA_AIF4_RX_BCLK_RATE:
> + case MADERA_AIF4_FRAME_CTRL_1:
> + case MADERA_AIF4_FRAME_CTRL_2:
> + case MADERA_AIF4_FRAME_CTRL_3:
> + case MADERA_AIF4_FRAME_CTRL_4:
> + case MADERA_AIF4_FRAME_CTRL_11:
> + case MADERA_AIF4_FRAME_CTRL_12:
> + case MADERA_AIF4_TX_ENABLES:
> + case MADERA_AIF4_RX_ENABLES:
> + case MADERA_SPD1_TX_CONTROL:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_1:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_2:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_3:
> + case MADERA_SLIMBUS_FRAMER_REF_GEAR:
> + case MADERA_SLIMBUS_RATES_1:
> + case MADERA_SLIMBUS_RATES_2:
> + case MADERA_SLIMBUS_RATES_3:
> + case MADERA_SLIMBUS_RATES_4:
> + case MADERA_SLIMBUS_RATES_5:
> + case MADERA_SLIMBUS_RATES_6:
> + case MADERA_SLIMBUS_RATES_7:
> + case MADERA_SLIMBUS_RATES_8:
> + case MADERA_SLIMBUS_RX_CHANNEL_ENABLE:
> + case MADERA_SLIMBUS_TX_CHANNEL_ENABLE:
> + case MADERA_SLIMBUS_RX_PORT_STATUS:
> + case MADERA_SLIMBUS_TX_PORT_STATUS:
> + case MADERA_PWM1MIX_INPUT_1_SOURCE:
> + case MADERA_PWM1MIX_INPUT_1_VOLUME:
> + case MADERA_PWM1MIX_INPUT_2_SOURCE:
> + case MADERA_PWM1MIX_INPUT_2_VOLUME:
> + case MADERA_PWM1MIX_INPUT_3_SOURCE:
> + case MADERA_PWM1MIX_INPUT_3_VOLUME:
> + case MADERA_PWM1MIX_INPUT_4_SOURCE:
> + case MADERA_PWM1MIX_INPUT_4_VOLUME:
> + case MADERA_PWM2MIX_INPUT_1_SOURCE:
> + case MADERA_PWM2MIX_INPUT_1_VOLUME:
> + case MADERA_PWM2MIX_INPUT_2_SOURCE:
> + case MADERA_PWM2MIX_INPUT_2_VOLUME:
> + case MADERA_PWM2MIX_INPUT_3_SOURCE:
> + case MADERA_PWM2MIX_INPUT_3_VOLUME:
> + case MADERA_PWM2MIX_INPUT_4_SOURCE:
> + case MADERA_PWM2MIX_INPUT_4_VOLUME:
> + case MADERA_OUT1LMIX_INPUT_1_SOURCE:
> + case MADERA_OUT1LMIX_INPUT_1_VOLUME:
> + case MADERA_OUT1LMIX_INPUT_2_SOURCE:
> + case MADERA_OUT1LMIX_INPUT_2_VOLUME:
> + case MADERA_OUT1LMIX_INPUT_3_SOURCE:
> + case MADERA_OUT1LMIX_INPUT_3_VOLUME:
> + case MADERA_OUT1LMIX_INPUT_4_SOURCE:
> + case MADERA_OUT1LMIX_INPUT_4_VOLUME:
> + case MADERA_OUT1RMIX_INPUT_1_SOURCE:
> + case MADERA_OUT1RMIX_INPUT_1_VOLUME:
> + case MADERA_OUT1RMIX_INPUT_2_SOURCE:
> + case MADERA_OUT1RMIX_INPUT_2_VOLUME:
> + case MADERA_OUT1RMIX_INPUT_3_SOURCE:
> + case MADERA_OUT1RMIX_INPUT_3_VOLUME:
> + case MADERA_OUT1RMIX_INPUT_4_SOURCE:
> + case MADERA_OUT1RMIX_INPUT_4_VOLUME:
> + case MADERA_OUT2LMIX_INPUT_1_SOURCE:
> + case MADERA_OUT2LMIX_INPUT_1_VOLUME:
> + case MADERA_OUT2LMIX_INPUT_2_SOURCE:
> + case MADERA_OUT2LMIX_INPUT_2_VOLUME:
> + case MADERA_OUT2LMIX_INPUT_3_SOURCE:
> + case MADERA_OUT2LMIX_INPUT_3_VOLUME:
> + case MADERA_OUT2LMIX_INPUT_4_SOURCE:
> + case MADERA_OUT2LMIX_INPUT_4_VOLUME:
> + case MADERA_OUT2RMIX_INPUT_1_SOURCE:
> + case MADERA_OUT2RMIX_INPUT_1_VOLUME:
> + case MADERA_OUT2RMIX_INPUT_2_SOURCE:
> + case MADERA_OUT2RMIX_INPUT_2_VOLUME:
> + case MADERA_OUT2RMIX_INPUT_3_SOURCE:
> + case MADERA_OUT2RMIX_INPUT_3_VOLUME:
> + case MADERA_OUT2RMIX_INPUT_4_SOURCE:
> + case MADERA_OUT2RMIX_INPUT_4_VOLUME:
> + case MADERA_OUT3LMIX_INPUT_1_SOURCE:
> + case MADERA_OUT3LMIX_INPUT_1_VOLUME:
> + case MADERA_OUT3LMIX_INPUT_2_SOURCE:
> + case MADERA_OUT3LMIX_INPUT_2_VOLUME:
> + case MADERA_OUT3LMIX_INPUT_3_SOURCE:
> + case MADERA_OUT3LMIX_INPUT_3_VOLUME:
> + case MADERA_OUT3LMIX_INPUT_4_SOURCE:
> + case MADERA_OUT3LMIX_INPUT_4_VOLUME:
> + case MADERA_OUT3RMIX_INPUT_1_SOURCE:
> + case MADERA_OUT3RMIX_INPUT_1_VOLUME:
> + case MADERA_OUT3RMIX_INPUT_2_SOURCE:
> + case MADERA_OUT3RMIX_INPUT_2_VOLUME:
> + case MADERA_OUT3RMIX_INPUT_3_SOURCE:
> + case MADERA_OUT3RMIX_INPUT_3_VOLUME:
> + case MADERA_OUT3RMIX_INPUT_4_SOURCE:
> + case MADERA_OUT3RMIX_INPUT_4_VOLUME:
> + case MADERA_OUT5LMIX_INPUT_1_SOURCE:
> + case MADERA_OUT5LMIX_INPUT_1_VOLUME:
> + case MADERA_OUT5LMIX_INPUT_2_SOURCE:
> + case MADERA_OUT5LMIX_INPUT_2_VOLUME:
> + case MADERA_OUT5LMIX_INPUT_3_SOURCE:
> + case MADERA_OUT5LMIX_INPUT_3_VOLUME:
> + case MADERA_OUT5LMIX_INPUT_4_SOURCE:
> + case MADERA_OUT5LMIX_INPUT_4_VOLUME:
> + case MADERA_OUT5RMIX_INPUT_1_SOURCE:
> + case MADERA_OUT5RMIX_INPUT_1_VOLUME:
> + case MADERA_OUT5RMIX_INPUT_2_SOURCE:
> + case MADERA_OUT5RMIX_INPUT_2_VOLUME:
> + case MADERA_OUT5RMIX_INPUT_3_SOURCE:
> + case MADERA_OUT5RMIX_INPUT_3_VOLUME:
> + case MADERA_OUT5RMIX_INPUT_4_SOURCE:
> + case MADERA_OUT5RMIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX1MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX1MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX1MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX1MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX1MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX1MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX1MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX1MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX2MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX2MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX2MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX2MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX2MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX2MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX2MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX2MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX3MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX3MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX3MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX3MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX3MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX3MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX3MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX3MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX4MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX4MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX4MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX4MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX4MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX4MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX4MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX4MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX5MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX5MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX5MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX5MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX5MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX5MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX5MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX5MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX6MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX6MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX6MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX6MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX6MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX6MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX6MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX6MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX7MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX7MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX7MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX7MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX7MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX7MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX7MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX7MIX_INPUT_4_VOLUME:
> + case MADERA_AIF1TX8MIX_INPUT_1_SOURCE:
> + case MADERA_AIF1TX8MIX_INPUT_1_VOLUME:
> + case MADERA_AIF1TX8MIX_INPUT_2_SOURCE:
> + case MADERA_AIF1TX8MIX_INPUT_2_VOLUME:
> + case MADERA_AIF1TX8MIX_INPUT_3_SOURCE:
> + case MADERA_AIF1TX8MIX_INPUT_3_VOLUME:
> + case MADERA_AIF1TX8MIX_INPUT_4_SOURCE:
> + case MADERA_AIF1TX8MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX1MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX1MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX1MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX1MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX1MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX1MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX1MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX1MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX2MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX2MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX2MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX2MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX2MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX2MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX2MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX2MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX3MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX3MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX3MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX3MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX3MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX3MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX3MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX3MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX4MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX4MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX4MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX4MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX4MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX4MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX4MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX4MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX5MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX5MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX5MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX5MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX5MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX5MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX5MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX5MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX6MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX6MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX6MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX6MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX6MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX6MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX6MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX6MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX7MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX7MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX7MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX7MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX7MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX7MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX7MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX7MIX_INPUT_4_VOLUME:
> + case MADERA_AIF2TX8MIX_INPUT_1_SOURCE:
> + case MADERA_AIF2TX8MIX_INPUT_1_VOLUME:
> + case MADERA_AIF2TX8MIX_INPUT_2_SOURCE:
> + case MADERA_AIF2TX8MIX_INPUT_2_VOLUME:
> + case MADERA_AIF2TX8MIX_INPUT_3_SOURCE:
> + case MADERA_AIF2TX8MIX_INPUT_3_VOLUME:
> + case MADERA_AIF2TX8MIX_INPUT_4_SOURCE:
> + case MADERA_AIF2TX8MIX_INPUT_4_VOLUME:
> + case MADERA_AIF3TX1MIX_INPUT_1_SOURCE:
> + case MADERA_AIF3TX1MIX_INPUT_1_VOLUME:
> + case MADERA_AIF3TX1MIX_INPUT_2_SOURCE:
> + case MADERA_AIF3TX1MIX_INPUT_2_VOLUME:
> + case MADERA_AIF3TX1MIX_INPUT_3_SOURCE:
> + case MADERA_AIF3TX1MIX_INPUT_3_VOLUME:
> + case MADERA_AIF3TX1MIX_INPUT_4_SOURCE:
> + case MADERA_AIF3TX1MIX_INPUT_4_VOLUME:
> + case MADERA_AIF3TX2MIX_INPUT_1_SOURCE:
> + case MADERA_AIF3TX2MIX_INPUT_1_VOLUME:
> + case MADERA_AIF3TX2MIX_INPUT_2_SOURCE:
> + case MADERA_AIF3TX2MIX_INPUT_2_VOLUME:
> + case MADERA_AIF3TX2MIX_INPUT_3_SOURCE:
> + case MADERA_AIF3TX2MIX_INPUT_3_VOLUME:
> + case MADERA_AIF3TX2MIX_INPUT_4_SOURCE:
> + case MADERA_AIF3TX2MIX_INPUT_4_VOLUME:
> + case MADERA_AIF4TX1MIX_INPUT_1_SOURCE:
> + case MADERA_AIF4TX1MIX_INPUT_1_VOLUME:
> + case MADERA_AIF4TX1MIX_INPUT_2_SOURCE:
> + case MADERA_AIF4TX1MIX_INPUT_2_VOLUME:
> + case MADERA_AIF4TX1MIX_INPUT_3_SOURCE:
> + case MADERA_AIF4TX1MIX_INPUT_3_VOLUME:
> + case MADERA_AIF4TX1MIX_INPUT_4_SOURCE:
> + case MADERA_AIF4TX1MIX_INPUT_4_VOLUME:
> + case MADERA_AIF4TX2MIX_INPUT_1_SOURCE:
> + case MADERA_AIF4TX2MIX_INPUT_1_VOLUME:
> + case MADERA_AIF4TX2MIX_INPUT_2_SOURCE:
> + case MADERA_AIF4TX2MIX_INPUT_2_VOLUME:
> + case MADERA_AIF4TX2MIX_INPUT_3_SOURCE:
> + case MADERA_AIF4TX2MIX_INPUT_3_VOLUME:
> + case MADERA_AIF4TX2MIX_INPUT_4_SOURCE:
> + case MADERA_AIF4TX2MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX1MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX1MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX1MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX1MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX1MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX1MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX1MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX1MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX2MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX2MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX2MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX2MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX2MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX2MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX2MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX2MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX3MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX3MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX3MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX3MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX3MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX3MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX3MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX3MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX4MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX4MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX4MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX4MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX4MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX4MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX4MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX4MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX5MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX5MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX5MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX5MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX5MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX5MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX5MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX5MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX6MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX6MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX6MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX6MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX6MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX6MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX6MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX6MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX7MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX7MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX7MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX7MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX7MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX7MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX7MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX7MIX_INPUT_4_VOLUME:
> + case MADERA_SLIMTX8MIX_INPUT_1_SOURCE:
> + case MADERA_SLIMTX8MIX_INPUT_1_VOLUME:
> + case MADERA_SLIMTX8MIX_INPUT_2_SOURCE:
> + case MADERA_SLIMTX8MIX_INPUT_2_VOLUME:
> + case MADERA_SLIMTX8MIX_INPUT_3_SOURCE:
> + case MADERA_SLIMTX8MIX_INPUT_3_VOLUME:
> + case MADERA_SLIMTX8MIX_INPUT_4_SOURCE:
> + case MADERA_SLIMTX8MIX_INPUT_4_VOLUME:
> + case MADERA_SPDIF1TX1MIX_INPUT_1_SOURCE:
> + case MADERA_SPDIF1TX1MIX_INPUT_1_VOLUME:
> + case MADERA_SPDIF1TX2MIX_INPUT_1_SOURCE:
> + case MADERA_SPDIF1TX2MIX_INPUT_1_VOLUME:
> + case MADERA_EQ1MIX_INPUT_1_SOURCE:
> + case MADERA_EQ1MIX_INPUT_1_VOLUME:
> + case MADERA_EQ1MIX_INPUT_2_SOURCE:
> + case MADERA_EQ1MIX_INPUT_2_VOLUME:
> + case MADERA_EQ1MIX_INPUT_3_SOURCE:
> + case MADERA_EQ1MIX_INPUT_3_VOLUME:
> + case MADERA_EQ1MIX_INPUT_4_SOURCE:
> + case MADERA_EQ1MIX_INPUT_4_VOLUME:
> + case MADERA_EQ2MIX_INPUT_1_SOURCE:
> + case MADERA_EQ2MIX_INPUT_1_VOLUME:
> + case MADERA_EQ2MIX_INPUT_2_SOURCE:
> + case MADERA_EQ2MIX_INPUT_2_VOLUME:
> + case MADERA_EQ2MIX_INPUT_3_SOURCE:
> + case MADERA_EQ2MIX_INPUT_3_VOLUME:
> + case MADERA_EQ2MIX_INPUT_4_SOURCE:
> + case MADERA_EQ2MIX_INPUT_4_VOLUME:
> + case MADERA_EQ3MIX_INPUT_1_SOURCE:
> + case MADERA_EQ3MIX_INPUT_1_VOLUME:
> + case MADERA_EQ3MIX_INPUT_2_SOURCE:
> + case MADERA_EQ3MIX_INPUT_2_VOLUME:
> + case MADERA_EQ3MIX_INPUT_3_SOURCE:
> + case MADERA_EQ3MIX_INPUT_3_VOLUME:
> + case MADERA_EQ3MIX_INPUT_4_SOURCE:
> + case MADERA_EQ3MIX_INPUT_4_VOLUME:
> + case MADERA_EQ4MIX_INPUT_1_SOURCE:
> + case MADERA_EQ4MIX_INPUT_1_VOLUME:
> + case MADERA_EQ4MIX_INPUT_2_SOURCE:
> + case MADERA_EQ4MIX_INPUT_2_VOLUME:
> + case MADERA_EQ4MIX_INPUT_3_SOURCE:
> + case MADERA_EQ4MIX_INPUT_3_VOLUME:
> + case MADERA_EQ4MIX_INPUT_4_SOURCE:
> + case MADERA_EQ4MIX_INPUT_4_VOLUME:
> + case MADERA_DRC1LMIX_INPUT_1_SOURCE:
> + case MADERA_DRC1LMIX_INPUT_1_VOLUME:
> + case MADERA_DRC1LMIX_INPUT_2_SOURCE:
> + case MADERA_DRC1LMIX_INPUT_2_VOLUME:
> + case MADERA_DRC1LMIX_INPUT_3_SOURCE:
> + case MADERA_DRC1LMIX_INPUT_3_VOLUME:
> + case MADERA_DRC1LMIX_INPUT_4_SOURCE:
> + case MADERA_DRC1LMIX_INPUT_4_VOLUME:
> + case MADERA_DRC1RMIX_INPUT_1_SOURCE:
> + case MADERA_DRC1RMIX_INPUT_1_VOLUME:
> + case MADERA_DRC1RMIX_INPUT_2_SOURCE:
> + case MADERA_DRC1RMIX_INPUT_2_VOLUME:
> + case MADERA_DRC1RMIX_INPUT_3_SOURCE:
> + case MADERA_DRC1RMIX_INPUT_3_VOLUME:
> + case MADERA_DRC1RMIX_INPUT_4_SOURCE:
> + case MADERA_DRC1RMIX_INPUT_4_VOLUME:
> + case MADERA_DRC2LMIX_INPUT_1_SOURCE:
> + case MADERA_DRC2LMIX_INPUT_1_VOLUME:
> + case MADERA_DRC2LMIX_INPUT_2_SOURCE:
> + case MADERA_DRC2LMIX_INPUT_2_VOLUME:
> + case MADERA_DRC2LMIX_INPUT_3_SOURCE:
> + case MADERA_DRC2LMIX_INPUT_3_VOLUME:
> + case MADERA_DRC2LMIX_INPUT_4_SOURCE:
> + case MADERA_DRC2LMIX_INPUT_4_VOLUME:
> + case MADERA_DRC2RMIX_INPUT_1_SOURCE:
> + case MADERA_DRC2RMIX_INPUT_1_VOLUME:
> + case MADERA_DRC2RMIX_INPUT_2_SOURCE:
> + case MADERA_DRC2RMIX_INPUT_2_VOLUME:
> + case MADERA_DRC2RMIX_INPUT_3_SOURCE:
> + case MADERA_DRC2RMIX_INPUT_3_VOLUME:
> + case MADERA_DRC2RMIX_INPUT_4_SOURCE:
> + case MADERA_DRC2RMIX_INPUT_4_VOLUME:
> + case MADERA_HPLP1MIX_INPUT_1_SOURCE:
> + case MADERA_HPLP1MIX_INPUT_1_VOLUME:
> + case MADERA_HPLP1MIX_INPUT_2_SOURCE:
> + case MADERA_HPLP1MIX_INPUT_2_VOLUME:
> + case MADERA_HPLP1MIX_INPUT_3_SOURCE:
> + case MADERA_HPLP1MIX_INPUT_3_VOLUME:
> + case MADERA_HPLP1MIX_INPUT_4_SOURCE:
> + case MADERA_HPLP1MIX_INPUT_4_VOLUME:
> + case MADERA_HPLP2MIX_INPUT_1_SOURCE:
> + case MADERA_HPLP2MIX_INPUT_1_VOLUME:
> + case MADERA_HPLP2MIX_INPUT_2_SOURCE:
> + case MADERA_HPLP2MIX_INPUT_2_VOLUME:
> + case MADERA_HPLP2MIX_INPUT_3_SOURCE:
> + case MADERA_HPLP2MIX_INPUT_3_VOLUME:
> + case MADERA_HPLP2MIX_INPUT_4_SOURCE:
> + case MADERA_HPLP2MIX_INPUT_4_VOLUME:
> + case MADERA_HPLP3MIX_INPUT_1_SOURCE:
> + case MADERA_HPLP3MIX_INPUT_1_VOLUME:
> + case MADERA_HPLP3MIX_INPUT_2_SOURCE:
> + case MADERA_HPLP3MIX_INPUT_2_VOLUME:
> + case MADERA_HPLP3MIX_INPUT_3_SOURCE:
> + case MADERA_HPLP3MIX_INPUT_3_VOLUME:
> + case MADERA_HPLP3MIX_INPUT_4_SOURCE:
> + case MADERA_HPLP3MIX_INPUT_4_VOLUME:
> + case MADERA_HPLP4MIX_INPUT_1_SOURCE:
> + case MADERA_HPLP4MIX_INPUT_1_VOLUME:
> + case MADERA_HPLP4MIX_INPUT_2_SOURCE:
> + case MADERA_HPLP4MIX_INPUT_2_VOLUME:
> + case MADERA_HPLP4MIX_INPUT_3_SOURCE:
> + case MADERA_HPLP4MIX_INPUT_3_VOLUME:
> + case MADERA_HPLP4MIX_INPUT_4_SOURCE:
> + case MADERA_HPLP4MIX_INPUT_4_VOLUME:
> + case MADERA_DSP1LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP1LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP1LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP1LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP1LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP1LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP1LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP1LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP1RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP1RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP1RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP1RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP1RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP1RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP1RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP1RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP1AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP1AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP2LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP2LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP2LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP2LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP2RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP2RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP2RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP2RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP2RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP2RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP2RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP2RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP2AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP2AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP3LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP3LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP3LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP3LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP3RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP3RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP3RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP3RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP3RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP3RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP3RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP3RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP3AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP3AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_DSP4LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP4LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP4LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP4LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP4LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP4LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP4LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP4LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP4RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP4RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP4RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP4RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP4RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP4RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP4RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP4RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP4AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP4AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP4AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP4AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP4AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP4AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_DSP5LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP5LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP5LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP5LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP5LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP5LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP5LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP5LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP5RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP5RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP5RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP5RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP5RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP5RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP5RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP5RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP5AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP5AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP5AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP5AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP5AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP5AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_ASRC1_1LMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC1_1RMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC1_2LMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC1_2RMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC2_1LMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC2_1RMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC2_2LMIX_INPUT_1_SOURCE:
> + case MADERA_ASRC2_2RMIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1DEC1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1DEC2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1DEC3MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1DEC4MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1INT1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1INT2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1INT3MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC1INT4MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2DEC1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2DEC2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2DEC3MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2DEC4MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2INT1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2INT2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2INT3MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC2INT4MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC3DEC1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC3DEC2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC3INT1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC3INT2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC4DEC1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC4DEC2MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC4INT1MIX_INPUT_1_SOURCE:
> + case MADERA_ISRC4INT2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP6LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP6LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP6LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP6LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP6LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP6LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP6LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP6LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP6RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP6RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP6RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP6RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP6RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP6RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP6RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP6RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP6AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP6AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP6AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP6AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP6AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP6AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_DSP7LMIX_INPUT_1_SOURCE:
> + case MADERA_DSP7LMIX_INPUT_1_VOLUME:
> + case MADERA_DSP7LMIX_INPUT_2_SOURCE:
> + case MADERA_DSP7LMIX_INPUT_2_VOLUME:
> + case MADERA_DSP7LMIX_INPUT_3_SOURCE:
> + case MADERA_DSP7LMIX_INPUT_3_VOLUME:
> + case MADERA_DSP7LMIX_INPUT_4_SOURCE:
> + case MADERA_DSP7LMIX_INPUT_4_VOLUME:
> + case MADERA_DSP7RMIX_INPUT_1_SOURCE:
> + case MADERA_DSP7RMIX_INPUT_1_VOLUME:
> + case MADERA_DSP7RMIX_INPUT_2_SOURCE:
> + case MADERA_DSP7RMIX_INPUT_2_VOLUME:
> + case MADERA_DSP7RMIX_INPUT_3_SOURCE:
> + case MADERA_DSP7RMIX_INPUT_3_VOLUME:
> + case MADERA_DSP7RMIX_INPUT_4_SOURCE:
> + case MADERA_DSP7RMIX_INPUT_4_VOLUME:
> + case MADERA_DSP7AUX1MIX_INPUT_1_SOURCE:
> + case MADERA_DSP7AUX2MIX_INPUT_1_SOURCE:
> + case MADERA_DSP7AUX3MIX_INPUT_1_SOURCE:
> + case MADERA_DSP7AUX4MIX_INPUT_1_SOURCE:
> + case MADERA_DSP7AUX5MIX_INPUT_1_SOURCE:
> + case MADERA_DSP7AUX6MIX_INPUT_1_SOURCE:
> + case MADERA_DFC1MIX_INPUT_1_SOURCE:
> + case MADERA_DFC2MIX_INPUT_1_SOURCE:
> + case MADERA_DFC3MIX_INPUT_1_SOURCE:
> + case MADERA_DFC4MIX_INPUT_1_SOURCE:
> + case MADERA_DFC5MIX_INPUT_1_SOURCE:
> + case MADERA_DFC6MIX_INPUT_1_SOURCE:
> + case MADERA_DFC7MIX_INPUT_1_SOURCE:
> + case MADERA_DFC8MIX_INPUT_1_SOURCE:
> + case MADERA_FX_CTRL1:
> + case MADERA_FX_CTRL2:
> + case MADERA_EQ1_1:
> + case MADERA_EQ1_2:
> + case MADERA_EQ1_3:
> + case MADERA_EQ1_4:
> + case MADERA_EQ1_5:
> + case MADERA_EQ1_6:
> + case MADERA_EQ1_7:
> + case MADERA_EQ1_8:
> + case MADERA_EQ1_9:
> + case MADERA_EQ1_10:
> + case MADERA_EQ1_11:
> + case MADERA_EQ1_12:
> + case MADERA_EQ1_13:
> + case MADERA_EQ1_14:
> + case MADERA_EQ1_15:
> + case MADERA_EQ1_16:
> + case MADERA_EQ1_17:
> + case MADERA_EQ1_18:
> + case MADERA_EQ1_19:
> + case MADERA_EQ1_20:
> + case MADERA_EQ1_21:
> + case MADERA_EQ2_1:
> + case MADERA_EQ2_2:
> + case MADERA_EQ2_3:
> + case MADERA_EQ2_4:
> + case MADERA_EQ2_5:
> + case MADERA_EQ2_6:
> + case MADERA_EQ2_7:
> + case MADERA_EQ2_8:
> + case MADERA_EQ2_9:
> + case MADERA_EQ2_10:
> + case MADERA_EQ2_11:
> + case MADERA_EQ2_12:
> + case MADERA_EQ2_13:
> + case MADERA_EQ2_14:
> + case MADERA_EQ2_15:
> + case MADERA_EQ2_16:
> + case MADERA_EQ2_17:
> + case MADERA_EQ2_18:
> + case MADERA_EQ2_19:
> + case MADERA_EQ2_20:
> + case MADERA_EQ2_21:
> + case MADERA_EQ3_1:
> + case MADERA_EQ3_2:
> + case MADERA_EQ3_3:
> + case MADERA_EQ3_4:
> + case MADERA_EQ3_5:
> + case MADERA_EQ3_6:
> + case MADERA_EQ3_7:
> + case MADERA_EQ3_8:
> + case MADERA_EQ3_9:
> + case MADERA_EQ3_10:
> + case MADERA_EQ3_11:
> + case MADERA_EQ3_12:
> + case MADERA_EQ3_13:
> + case MADERA_EQ3_14:
> + case MADERA_EQ3_15:
> + case MADERA_EQ3_16:
> + case MADERA_EQ3_17:
> + case MADERA_EQ3_18:
> + case MADERA_EQ3_19:
> + case MADERA_EQ3_20:
> + case MADERA_EQ3_21:
> + case MADERA_EQ4_1:
> + case MADERA_EQ4_2:
> + case MADERA_EQ4_3:
> + case MADERA_EQ4_4:
> + case MADERA_EQ4_5:
> + case MADERA_EQ4_6:
> + case MADERA_EQ4_7:
> + case MADERA_EQ4_8:
> + case MADERA_EQ4_9:
> + case MADERA_EQ4_10:
> + case MADERA_EQ4_11:
> + case MADERA_EQ4_12:
> + case MADERA_EQ4_13:
> + case MADERA_EQ4_14:
> + case MADERA_EQ4_15:
> + case MADERA_EQ4_16:
> + case MADERA_EQ4_17:
> + case MADERA_EQ4_18:
> + case MADERA_EQ4_19:
> + case MADERA_EQ4_20:
> + case MADERA_EQ4_21:
> + case MADERA_DRC1_CTRL1:
> + case MADERA_DRC1_CTRL2:
> + case MADERA_DRC1_CTRL3:
> + case MADERA_DRC1_CTRL4:
> + case MADERA_DRC1_CTRL5:
> + case MADERA_DRC2_CTRL1:
> + case MADERA_DRC2_CTRL2:
> + case MADERA_DRC2_CTRL3:
> + case MADERA_DRC2_CTRL4:
> + case MADERA_DRC2_CTRL5:
> + case MADERA_HPLPF1_1:
> + case MADERA_HPLPF1_2:
> + case MADERA_HPLPF2_1:
> + case MADERA_HPLPF2_2:
> + case MADERA_HPLPF3_1:
> + case MADERA_HPLPF3_2:
> + case MADERA_HPLPF4_1:
> + case MADERA_HPLPF4_2:
> + case MADERA_ASRC1_ENABLE:
> + case MADERA_ASRC1_STATUS:
> + case MADERA_ASRC1_RATE1:
> + case MADERA_ASRC1_RATE2:
> + case MADERA_ASRC2_ENABLE:
> + case MADERA_ASRC2_STATUS:
> + case MADERA_ASRC2_RATE1:
> + case MADERA_ASRC2_RATE2:
> + case MADERA_ISRC_1_CTRL_1:
> + case MADERA_ISRC_1_CTRL_2:
> + case MADERA_ISRC_1_CTRL_3:
> + case MADERA_ISRC_2_CTRL_1:
> + case MADERA_ISRC_2_CTRL_2:
> + case MADERA_ISRC_2_CTRL_3:
> + case MADERA_ISRC_3_CTRL_1:
> + case MADERA_ISRC_3_CTRL_2:
> + case MADERA_ISRC_3_CTRL_3:
> + case MADERA_ISRC_4_CTRL_1:
> + case MADERA_ISRC_4_CTRL_2:
> + case MADERA_ISRC_4_CTRL_3:
> + case MADERA_CLOCK_CONTROL:
> + case MADERA_ANC_SRC:
> + case MADERA_DSP_STATUS:
> + case MADERA_ANC_COEFF_START ... MADERA_ANC_COEFF_END:
> + case MADERA_FCL_FILTER_CONTROL:
> + case MADERA_FCL_ADC_REFORMATTER_CONTROL:
> + case MADERA_FCL_COEFF_START ... MADERA_FCL_COEFF_END:
> + case MADERA_FCR_FILTER_CONTROL:
> + case MADERA_FCR_ADC_REFORMATTER_CONTROL:
> + case MADERA_FCR_COEFF_START ... MADERA_FCR_COEFF_END:
> + case MADERA_DAC_COMP_1:
> + case MADERA_DAC_COMP_2:
> + case MADERA_FRF_COEFFICIENT_1L_1:
> + case MADERA_FRF_COEFFICIENT_1L_2:
> + case MADERA_FRF_COEFFICIENT_1L_3:
> + case MADERA_FRF_COEFFICIENT_1L_4:
> + case MADERA_FRF_COEFFICIENT_1R_1:
> + case MADERA_FRF_COEFFICIENT_1R_2:
> + case MADERA_FRF_COEFFICIENT_1R_3:
> + case MADERA_FRF_COEFFICIENT_1R_4:
> + case MADERA_FRF_COEFFICIENT_2L_1:
> + case MADERA_FRF_COEFFICIENT_2L_2:
> + case MADERA_FRF_COEFFICIENT_2L_3:
> + case MADERA_FRF_COEFFICIENT_2L_4:
> + case MADERA_FRF_COEFFICIENT_2R_1:
> + case MADERA_FRF_COEFFICIENT_2R_2:
> + case MADERA_FRF_COEFFICIENT_2R_3:
> + case MADERA_FRF_COEFFICIENT_2R_4:
> + case MADERA_FRF_COEFFICIENT_3L_1:
> + case MADERA_FRF_COEFFICIENT_3L_2:
> + case MADERA_FRF_COEFFICIENT_3L_3:
> + case MADERA_FRF_COEFFICIENT_3L_4:
> + case MADERA_FRF_COEFFICIENT_3R_1:
> + case MADERA_FRF_COEFFICIENT_3R_2:
> + case MADERA_FRF_COEFFICIENT_3R_3:
> + case MADERA_FRF_COEFFICIENT_3R_4:
> + case MADERA_FRF_COEFFICIENT_5L_1:
> + case MADERA_FRF_COEFFICIENT_5L_2:
> + case MADERA_FRF_COEFFICIENT_5L_3:
> + case MADERA_FRF_COEFFICIENT_5L_4:
> + case MADERA_FRF_COEFFICIENT_5R_1:
> + case MADERA_FRF_COEFFICIENT_5R_2:
> + case MADERA_FRF_COEFFICIENT_5R_3:
> + case MADERA_FRF_COEFFICIENT_5R_4:
> + case MADERA_DFC1_CTRL:
> + case MADERA_DFC1_RX:
> + case MADERA_DFC1_TX:
> + case MADERA_DFC2_CTRL:
> + case MADERA_DFC2_RX:
> + case MADERA_DFC2_TX:
> + case MADERA_DFC3_CTRL:
> + case MADERA_DFC3_RX:
> + case MADERA_DFC3_TX:
> + case MADERA_DFC4_CTRL:
> + case MADERA_DFC4_RX:
> + case MADERA_DFC4_TX:
> + case MADERA_DFC5_CTRL:
> + case MADERA_DFC5_RX:
> + case MADERA_DFC5_TX:
> + case MADERA_DFC6_CTRL:
> + case MADERA_DFC6_RX:
> + case MADERA_DFC6_TX:
> + case MADERA_DFC7_CTRL:
> + case MADERA_DFC7_RX:
> + case MADERA_DFC7_TX:
> + case MADERA_DFC8_CTRL:
> + case MADERA_DFC8_RX:
> + case MADERA_DFC8_TX:
> + case MADERA_DFC_STATUS:
> + case MADERA_GPIO1_CTRL_1:
> + case MADERA_GPIO1_CTRL_2:
> + case MADERA_GPIO2_CTRL_1:
> + case MADERA_GPIO2_CTRL_2:
> + case MADERA_GPIO3_CTRL_1:
> + case MADERA_GPIO3_CTRL_2:
> + case MADERA_GPIO4_CTRL_1:
> + case MADERA_GPIO4_CTRL_2:
> + case MADERA_GPIO5_CTRL_1:
> + case MADERA_GPIO5_CTRL_2:
> + case MADERA_GPIO6_CTRL_1:
> + case MADERA_GPIO6_CTRL_2:
> + case MADERA_GPIO7_CTRL_1:
> + case MADERA_GPIO7_CTRL_2:
> + case MADERA_GPIO8_CTRL_1:
> + case MADERA_GPIO8_CTRL_2:
> + case MADERA_GPIO9_CTRL_1:
> + case MADERA_GPIO9_CTRL_2:
> + case MADERA_GPIO10_CTRL_1:
> + case MADERA_GPIO10_CTRL_2:
> + case MADERA_GPIO11_CTRL_1:
> + case MADERA_GPIO11_CTRL_2:
> + case MADERA_GPIO12_CTRL_1:
> + case MADERA_GPIO12_CTRL_2:
> + case MADERA_GPIO13_CTRL_1:
> + case MADERA_GPIO13_CTRL_2:
> + case MADERA_GPIO14_CTRL_1:
> + case MADERA_GPIO14_CTRL_2:
> + case MADERA_GPIO15_CTRL_1:
> + case MADERA_GPIO15_CTRL_2:
> + case MADERA_GPIO16_CTRL_1:
> + case MADERA_GPIO16_CTRL_2:
> + case MADERA_GPIO17_CTRL_1:
> + case MADERA_GPIO17_CTRL_2:
> + case MADERA_GPIO18_CTRL_1:
> + case MADERA_GPIO18_CTRL_2:
> + case MADERA_GPIO19_CTRL_1:
> + case MADERA_GPIO19_CTRL_2:
> + case MADERA_GPIO20_CTRL_1:
> + case MADERA_GPIO20_CTRL_2:
> + case MADERA_GPIO21_CTRL_1:
> + case MADERA_GPIO21_CTRL_2:
> + case MADERA_GPIO22_CTRL_1:
> + case MADERA_GPIO22_CTRL_2:
> + case MADERA_GPIO23_CTRL_1:
> + case MADERA_GPIO23_CTRL_2:
> + case MADERA_GPIO24_CTRL_1:
> + case MADERA_GPIO24_CTRL_2:
> + case MADERA_GPIO25_CTRL_1:
> + case MADERA_GPIO25_CTRL_2:
> + case MADERA_GPIO26_CTRL_1:
> + case MADERA_GPIO26_CTRL_2:
> + case MADERA_GPIO27_CTRL_1:
> + case MADERA_GPIO27_CTRL_2:
> + case MADERA_GPIO28_CTRL_1:
> + case MADERA_GPIO28_CTRL_2:
> + case MADERA_GPIO29_CTRL_1:
> + case MADERA_GPIO29_CTRL_2:
> + case MADERA_GPIO30_CTRL_1:
> + case MADERA_GPIO30_CTRL_2:
> + case MADERA_GPIO31_CTRL_1:
> + case MADERA_GPIO31_CTRL_2:
> + case MADERA_GPIO32_CTRL_1:
> + case MADERA_GPIO32_CTRL_2:
> + case MADERA_GPIO33_CTRL_1:
> + case MADERA_GPIO33_CTRL_2:
> + case MADERA_GPIO34_CTRL_1:
> + case MADERA_GPIO34_CTRL_2:
> + case MADERA_GPIO35_CTRL_1:
> + case MADERA_GPIO35_CTRL_2:
> + case MADERA_GPIO36_CTRL_1:
> + case MADERA_GPIO36_CTRL_2:
> + case MADERA_GPIO37_CTRL_1:
> + case MADERA_GPIO37_CTRL_2:
> + case MADERA_GPIO38_CTRL_1:
> + case MADERA_GPIO38_CTRL_2:
> + case MADERA_IRQ1_STATUS_1 ... MADERA_IRQ1_STATUS_33:
> + case MADERA_IRQ1_MASK_1 ... MADERA_IRQ1_MASK_33:
> + case MADERA_IRQ1_RAW_STATUS_1 ... MADERA_IRQ1_RAW_STATUS_33:
> + case MADERA_INTERRUPT_DEBOUNCE_7:
> + case MADERA_IRQ1_CTRL:
> + return true;
> + default:
> + return false;
> + }
> +}
> +
> +static bool cs47l90_16bit_volatile_register(struct device *dev,
> + unsigned int reg)
> +{
> + switch (reg) {
> + case MADERA_SOFTWARE_RESET:
> + case MADERA_HARDWARE_REVISION:
> + case MADERA_WRITE_SEQUENCER_CTRL_0:
> + case MADERA_WRITE_SEQUENCER_CTRL_1:
> + case MADERA_WRITE_SEQUENCER_CTRL_2:
> + case MADERA_HAPTICS_STATUS:
> + case MADERA_SAMPLE_RATE_1_STATUS:
> + case MADERA_SAMPLE_RATE_2_STATUS:
> + case MADERA_SAMPLE_RATE_3_STATUS:
> + case MADERA_ASYNC_SAMPLE_RATE_1_STATUS:
> + case MADERA_ASYNC_SAMPLE_RATE_2_STATUS:
> + case MADERA_HP_CTRL_1L:
> + case MADERA_HP_CTRL_1R:
> + case MADERA_HP_CTRL_2L:
> + case MADERA_HP_CTRL_2R:
> + case MADERA_HP_CTRL_3L:
> + case MADERA_HP_CTRL_3R:
> + case MADERA_MIC_DETECT_1_CONTROL_3:
> + case MADERA_MIC_DETECT_1_CONTROL_4:
> + case MADERA_MIC_DETECT_2_CONTROL_3:
> + case MADERA_MIC_DETECT_2_CONTROL_4:
> + case MADERA_HEADPHONE_DETECT_2:
> + case MADERA_HEADPHONE_DETECT_3:
> + case MADERA_HEADPHONE_DETECT_5:
> + case MADERA_INPUT_ENABLES_STATUS:
> + case MADERA_OUTPUT_STATUS_1:
> + case MADERA_RAW_OUTPUT_STATUS_1:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_1:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_2:
> + case MADERA_SPD1_TX_CHANNEL_STATUS_3:
> + case MADERA_SLIMBUS_RX_PORT_STATUS:
> + case MADERA_SLIMBUS_TX_PORT_STATUS:
> + case MADERA_FX_CTRL2:
> + case MADERA_ASRC2_STATUS:
> + case MADERA_ASRC1_STATUS:
> + case MADERA_CLOCK_CONTROL:
> + case MADERA_DFC_STATUS:
> + case MADERA_IRQ1_STATUS_1 ... MADERA_IRQ1_STATUS_33:
> + case MADERA_IRQ1_RAW_STATUS_1 ... MADERA_IRQ1_RAW_STATUS_33:
> + return true;
> + default:
> + return false;
> + }
> +}
> +
> +static bool cs47l90_32bit_readable_register(struct device *dev,
> + unsigned int reg)
> +{
> + switch (reg) {
> + case MADERA_WSEQ_SEQUENCE_1 ... MADERA_WSEQ_SEQUENCE_508:
> + case MADERA_OTP_HPDET_CAL_1 ... MADERA_OTP_HPDET_CAL_2:
> + case MADERA_DSP1_CONFIG_1 ... MADERA_DSP1_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + case MADERA_DSP2_CONFIG_1 ... MADERA_DSP2_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + case MADERA_DSP3_CONFIG_1 ... MADERA_DSP3_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + case MADERA_DSP4_CONFIG_1 ... MADERA_DSP4_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + case MADERA_DSP5_CONFIG_1 ... MADERA_DSP5_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + case MADERA_DSP6_CONFIG_1 ... MADERA_DSP6_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + case MADERA_DSP7_CONFIG_1 ... MADERA_DSP7_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + return true;
> + default:
> + return cs47l90_is_adsp_memory(reg);
> + }
> +}
> +
> +static bool cs47l90_32bit_volatile_register(struct device *dev,
> + unsigned int reg)
> +{
> + switch (reg) {
> + case MADERA_WSEQ_SEQUENCE_1 ... MADERA_WSEQ_SEQUENCE_508:
> + case MADERA_OTP_HPDET_CAL_1 ... MADERA_OTP_HPDET_CAL_2:
> + case MADERA_DSP1_CONFIG_1 ... MADERA_DSP1_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + case MADERA_DSP2_CONFIG_1 ... MADERA_DSP2_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + case MADERA_DSP3_CONFIG_1 ... MADERA_DSP3_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + case MADERA_DSP4_CONFIG_1 ... MADERA_DSP4_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + case MADERA_DSP5_CONFIG_1 ... MADERA_DSP5_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + case MADERA_DSP6_CONFIG_1 ... MADERA_DSP6_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + case MADERA_DSP7_CONFIG_1 ... MADERA_DSP7_PMEM_ERR_ADDR___XMEM_ERR_ADDR:
> + return true;
> + default:
> + return cs47l90_is_adsp_memory(reg);
> + }
> +}
> +
> +const struct regmap_config cs47l90_16bit_spi_regmap = {
> + .name = "cs47l90_16bit",
> + .reg_bits = 32,
> + .pad_bits = 16,
> + .val_bits = 16,
> + .reg_format_endian = REGMAP_ENDIAN_BIG,
> + .val_format_endian = REGMAP_ENDIAN_BIG,
> +
> + .max_register = MADERA_INTERRUPT_RAW_STATUS_1,
> + .readable_reg = cs47l90_16bit_readable_register,
> + .volatile_reg = cs47l90_16bit_volatile_register,
> +
> + .cache_type = REGCACHE_RBTREE,
> + .reg_defaults = cs47l90_reg_default,
> + .num_reg_defaults = ARRAY_SIZE(cs47l90_reg_default),
> +};
> +EXPORT_SYMBOL_GPL(cs47l90_16bit_spi_regmap);
> +
> +const struct regmap_config cs47l90_16bit_i2c_regmap = {
> + .name = "cs47l90_16bit",
> + .reg_bits = 32,
> + .val_bits = 16,
> + .reg_format_endian = REGMAP_ENDIAN_BIG,
> + .val_format_endian = REGMAP_ENDIAN_BIG,
> +
> + .max_register = MADERA_INTERRUPT_RAW_STATUS_1,
> + .readable_reg = cs47l90_16bit_readable_register,
> + .volatile_reg = cs47l90_16bit_volatile_register,
> +
> + .cache_type = REGCACHE_RBTREE,
> + .reg_defaults = cs47l90_reg_default,
> + .num_reg_defaults = ARRAY_SIZE(cs47l90_reg_default),
> +};
> +EXPORT_SYMBOL_GPL(cs47l90_16bit_i2c_regmap);
> +
> +const struct regmap_config cs47l90_32bit_spi_regmap = {
> + .name = "cs47l90_32bit",
> + .reg_bits = 32,
> + .reg_stride = 2,
> + .pad_bits = 16,
> + .val_bits = 32,
> + .reg_format_endian = REGMAP_ENDIAN_BIG,
> + .val_format_endian = REGMAP_ENDIAN_BIG,
> +
> + .max_register = MADERA_DSP7_PMEM_ERR_ADDR___XMEM_ERR_ADDR,
> + .readable_reg = cs47l90_32bit_readable_register,
> + .volatile_reg = cs47l90_32bit_volatile_register,
> +
> + .cache_type = REGCACHE_RBTREE,
> +};
> +EXPORT_SYMBOL_GPL(cs47l90_32bit_spi_regmap);
> +
> +const struct regmap_config cs47l90_32bit_i2c_regmap = {
> + .name = "cs47l90_32bit",
> + .reg_bits = 32,
> + .reg_stride = 2,
> + .val_bits = 32,
> + .reg_format_endian = REGMAP_ENDIAN_BIG,
> + .val_format_endian = REGMAP_ENDIAN_BIG,
> +
> + .max_register = MADERA_DSP7_PMEM_ERR_ADDR___XMEM_ERR_ADDR,
> + .readable_reg = cs47l90_32bit_readable_register,
> + .volatile_reg = cs47l90_32bit_volatile_register,
> +
> + .cache_type = REGCACHE_RBTREE,
> +};
> +EXPORT_SYMBOL_GPL(cs47l90_32bit_i2c_regmap);
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Hi Richard,
[auto build test ERROR on asoc/for-next]
[also build test ERROR on v4.11-rc6]
[cannot apply to next-20170413]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Richard-Fitzgerald/Add-support-for-Cirrus-Logic-CS47L35-L85-L90-L91-codecs/20170406-050555
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: x86_64-randconfig-s4-04150043 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
>> drivers/pinctrl/pinctrl-madera.c:580:20: error: 'pinconf_generic_dt_node_to_map_all' undeclared here (not in a function)
.dt_node_to_map = pinconf_generic_dt_node_to_map_all,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
drivers//gpio/gpio-madera.c: In function 'madera_gpio_probe':
>> drivers//gpio/gpio-madera.c:126:25: error: 'struct gpio_chip' has no member named 'of_node'
madera_gpio->gpio_chip.of_node = pdev->dev.of_node;
^
vim +/pinconf_generic_dt_node_to_map_all +580 drivers/pinctrl/pinctrl-madera.c
ac9870b2 Richard Fitzgerald 2017-04-05 564 return 0;
ac9870b2 Richard Fitzgerald 2017-04-05 565 }
ac9870b2 Richard Fitzgerald 2017-04-05 566
ac9870b2 Richard Fitzgerald 2017-04-05 567 static void madera_pin_dbg_show(struct pinctrl_dev *pctldev,
ac9870b2 Richard Fitzgerald 2017-04-05 568 struct seq_file *s,
ac9870b2 Richard Fitzgerald 2017-04-05 569 unsigned int offset)
ac9870b2 Richard Fitzgerald 2017-04-05 570 {
ac9870b2 Richard Fitzgerald 2017-04-05 571 seq_puts(s, " madera-pinctrl");
ac9870b2 Richard Fitzgerald 2017-04-05 572 }
ac9870b2 Richard Fitzgerald 2017-04-05 573
ac9870b2 Richard Fitzgerald 2017-04-05 574
ac9870b2 Richard Fitzgerald 2017-04-05 575 static const struct pinctrl_ops madera_pin_group_ops = {
ac9870b2 Richard Fitzgerald 2017-04-05 576 .get_groups_count = madera_get_groups_count,
ac9870b2 Richard Fitzgerald 2017-04-05 577 .get_group_name = madera_get_group_name,
ac9870b2 Richard Fitzgerald 2017-04-05 578 .get_group_pins = madera_get_group_pins,
ac9870b2 Richard Fitzgerald 2017-04-05 579 .pin_dbg_show = madera_pin_dbg_show,
ac9870b2 Richard Fitzgerald 2017-04-05 @580 .dt_node_to_map = pinconf_generic_dt_node_to_map_all,
ac9870b2 Richard Fitzgerald 2017-04-05 581 .dt_free_map = pinctrl_utils_free_map,
ac9870b2 Richard Fitzgerald 2017-04-05 582 };
ac9870b2 Richard Fitzgerald 2017-04-05 583
ac9870b2 Richard Fitzgerald 2017-04-05 584 static int madera_mux_get_funcs_count(struct pinctrl_dev *pctldev)
ac9870b2 Richard Fitzgerald 2017-04-05 585 {
ac9870b2 Richard Fitzgerald 2017-04-05 586 return ARRAY_SIZE(madera_mux_funcs);
ac9870b2 Richard Fitzgerald 2017-04-05 587 }
ac9870b2 Richard Fitzgerald 2017-04-05 588
:::::: The code at line 580 was first introduced by commit
:::::: ac9870b2d7132c21e78becd0fe396837e334c78b pinctrl: madera: Add driver for Cirrus Logic Madera codecs
:::::: TO: Richard Fitzgerald <[email protected]>
:::::: CC: 0day robot <[email protected]>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
On Wed, 2017-04-12 at 13:54 +0100, Lee Jones wrote:
> On Wed, 05 Apr 2017, Richard Fitzgerald wrote:
>
> > 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 <[email protected]>
> > Signed-off-by: Nikesh Oswal <[email protected]>
> > Signed-off-by: Richard Fitzgerald <[email protected]>
> > ---
> > Documentation/devicetree/bindings/mfd/madera.txt | 79 +++
> > MAINTAINERS | 3 +
> > drivers/mfd/Kconfig | 23 +
> > drivers/mfd/Makefile | 4 +
> > drivers/mfd/madera-core.c | 689 +++++++++++++++++++++++
> > drivers/mfd/madera-i2c.c | 130 +++++
> > drivers/mfd/madera-spi.c | 131 +++++
> > drivers/mfd/madera.h | 52 ++
> > include/linux/mfd/madera/core.h | 175 ++++++
> > include/linux/mfd/madera/pdata.h | 88 +++
> > 10 files changed, 1374 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/mfd/madera.txt
> > create mode 100644 drivers/mfd/madera-core.c
> > create mode 100644 drivers/mfd/madera-i2c.c
> > create mode 100644 drivers/mfd/madera-spi.c
> > create mode 100644 drivers/mfd/madera.h
> > create mode 100644 include/linux/mfd/madera/core.h
> > create mode 100644 include/linux/mfd/madera/pdata.h
> >
> > diff --git a/Documentation/devicetree/bindings/mfd/madera.txt b/Documentation/devicetree/bindings/mfd/madera.txt
> > new file mode 100644
> > index 0000000..a6c3260
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/mfd/madera.txt
> > @@ -0,0 +1,79 @@
> > +Cirrus Logic Madera class audio codecs multi-function device
> > +
> > +These devices are audio SoCs with extensive digital capabilities and a range
> > +of analogue I/O.
> > +
> > +See also the child driver bindings in:
> > +bindings/extcon/extcon-madera.txt
> > +bindings/gpio/gpio-madera.txt
> > +bindings/interrupt-controller/cirrus,madera.txt
> > +bindings/pinctrl/cirrus,madera-pinctrl.txt
> > +bindings/regulator/madera-ldo1.txt
> > +bindings/regulator/madera-micsupp.txt
> > +bindings/sound/madera.txt
> > +
> > +Required properties:
> > +
> > + - compatible : One of the following chip-specific strings:
> > + "cirrus,cs47l35"
> > + "cirrus,cs47l85"
> > + "cirrus,cs47l90"
> > + "cirrus,cs47l91"
> > + "cirrus,wm1840"
> > +
> > + - reg : I2C slave address when connected using I2C, chip select number when
> > + using SPI.
> > +
> > + - DCVDD-supply : Power supply for the device as defined in
> > + bindings/regulator/regulator.txt
> > + Mandatory on CS47L35, CS47L90, CS47L91
> > + Optional on CS47L85, WM1840
> > +
> > + - AVDD-supply, DBVDD1-supply, DBVDD2-supply, CPVDD1-supply, CPVDD2-supply :
> > + Power supplies for the device
> > +
> > + - DBVDD3-supply, DBVDD4-supply : Power supplies for the device
> > + (CS47L85, CS47L90, CS47L91, WM1840)
> > +
> > + - SPKVDDL-supply, SPKVDDR-supply : Power supplies for the device
> > + (CS47L85, WM1840)
> > +
> > + - SPKVDD-supply : Power supply for the device
> > + (CS47L35)
> > +
> > +Optional properties:
> > +
> > + - MICVDD-supply : Power supply, only need to be specified if
> > + powered externally
> > +
> > + - reset-gpios : One entry specifying the GPIO controlling /RESET.
> > + As defined in bindings/gpio.txt.
> > + Although optional, it is strongly recommended to use a hardware reset
> > +
> > + - MICBIASx : Initial data for the MICBIAS regulators, as covered in
> > + Documentation/devicetree/bindings/regulator/regulator.txt.
> > + One for each MICBIAS generator (MICBIAS1, MICBIAS2, ...)
> > + (all codecs)
> > +
> > + One for each output pin (MICBIAS1A, MIBCIAS1B, MICBIAS2A, ...)
> > + (all except CS47L85, WM1840)
> > +
> > + The following following additional property is supported for the generator
> > + nodes:
> > + - cirrus,ext-cap : Set to 1 if the MICBIAS has external decoupling
> > + capacitors attached.
> > +
> > +Example:
> > +
> > +codec: cs47l85@0 {
>
> Node names should be generic.
>
> You can swap these round if you want, so:
>
> cs47l85: codec@0 {
>
> ... is valid.
>
> > + compatible = "cirrus,cs47l85";
> > + reg = <0>;
> > +
> > + reset-gpios = <&gpio 0>;
> > +
> > + MICBIAS1 {
> > + regulator-min-microvolt = <900000>;
> > + regulator-max-microvolt = <3300000>;
> > + cirrus,ext-cap = <1>;
> > + };
> > +};
> > diff --git a/MAINTAINERS b/MAINTAINERS
> > index 02995c9..d28e53f 100644
> > --- a/MAINTAINERS
> > +++ b/MAINTAINERS
> > @@ -3266,7 +3266,10 @@ L: [email protected]
> > T: git https://github.com/CirrusLogic/linux-drivers.git
> > W: https://github.com/CirrusLogic/linux-drivers/wiki
> > S: Supported
> > +F: Documentation/devicetree/bindings/mfd/madera.txt
> > F: include/linux/mfd/madera/*
> > +F: drivers/mfd/madera*
> > +F: drivers/mfd/cs47l*
> >
> > CLEANCACHE API
> > M: Konrad Rzeszutek Wilk <[email protected]>
> > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> > index ce3a918..f0f9979 100644
> > --- a/drivers/mfd/Kconfig
> > +++ b/drivers/mfd/Kconfig
> > @@ -203,6 +203,29 @@ config MFD_CROS_EC_SPI
> > response time cannot be guaranteed, we support ignoring
> > 'pre-amble' bytes before the response actually starts.
> >
> > +config MFD_MADERA
> > + bool
> > + select REGMAP
> > + select MFD_CORE
> > +
> > +config MFD_MADERA_I2C
> > + tristate "Cirrus Logic Madera codecs with I2C"
> > + select MFD_MADERA
> > + select REGMAP_I2C
> > + depends on I2C
> > + help
> > + Support for the Cirrus Logic Madera platform audio SoC
> > + core functionality controlled via I2C.
> > +
> > +config MFD_MADERA_SPI
> > + tristate "Cirrus Logic Madera codecs with SPI"
> > + select MFD_MADERA
> > + select REGMAP_SPI
> > + depends on SPI_MASTER
> > + help
> > + Support for the Cirrus Logic Madera platform audio SoC
> > + core functionality controlled via SPI.
> > +
> > config MFD_ASIC3
> > bool "Compaq ASIC3"
> > depends on GPIOLIB && ARM
> > diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
> > index fa86dbe..c41f6c9 100644
> > --- a/drivers/mfd/Makefile
> > +++ b/drivers/mfd/Makefile
> > @@ -72,6 +72,10 @@ obj-$(CONFIG_MFD_WM8350_I2C) += wm8350-i2c.o
> > wm8994-objs := wm8994-core.o wm8994-irq.o wm8994-regmap.o
> > obj-$(CONFIG_MFD_WM8994) += wm8994.o
> >
> > +obj-$(CONFIG_MFD_MADERA) += madera-core.o
> > +obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o
> > +obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
> > +
> > obj-$(CONFIG_TPS6105X) += tps6105x.o
> > obj-$(CONFIG_TPS65010) += tps65010.o
> > obj-$(CONFIG_TPS6507X) += tps6507x.o
> > diff --git a/drivers/mfd/madera-core.c b/drivers/mfd/madera-core.c
> > new file mode 100644
> > index 0000000..ab5fe9b
> > --- /dev/null
> > +++ b/drivers/mfd/madera-core.c
> > @@ -0,0 +1,689 @@
> > +/*
> > + * Core MFD support for Cirrus Logic Madera codecs
> > + *
> > + * Copyright 2015-2017 Cirrus Logic
> > + *
> > + * This program is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License version 2 as
> > + * published by the Free Software Foundation.
> > + */
> > +
> > +#include <linux/device.h>
> > +#include <linux/delay.h>
> > +#include <linux/err.h>
> > +#include <linux/gpio.h>
> > +#include <linux/mfd/core.h>
> > +#include <linux/module.h>
> > +#include <linux/notifier.h>
> > +#include <linux/of.h>
> > +#include <linux/of_device.h>
> > +#include <linux/of_gpio.h>
> > +#include <linux/platform_device.h>
> > +#include <linux/pm_runtime.h>
> > +#include <linux/regmap.h>
> > +#include <linux/regulator/consumer.h>
> > +#include <linux/regulator/machine.h>
> > +#include <linux/regulator/of_regulator.h>
> > +
> > +#include <linux/mfd/madera/core.h>
> > +#include <linux/mfd/madera/registers.h>
> > +
> > +#include "madera.h"
> > +
> > +#define CS47L35_SILICON_ID 0x6360
> > +#define CS47L85_SILICON_ID 0x6338
> > +#define CS47L90_SILICON_ID 0x6364
> > +
> > +#define MADERA_32KZ_MCLK2 1
> > +
> > +static const char * const madera_core_supplies[] = {
> > + "AVDD",
> > + "DBVDD1",
> > +};
> > +
> > +static const struct mfd_cell madera_ldo1_devs[] = {
> > + { .name = "madera-ldo1", .of_compatible = "cirrus,madera-ldo1" },
> > +};
> > +
> > +static const struct mfd_cell cs47l35_devs[] = {
> > + { .name = "madera-pinctrl", .of_compatible = "cirrus,madera-pinctrl" },
> > + { .name = "madera-irq", },
>
> I believe this should be "interrupt-controller".
>
I don't think that's the case. I checked other irchip drivers and they
have no particular standard naming. At least one is called
"something-irq", none are called "something-interrupt-controller"
> irq is ambiguous.
>
I can't really see what other driver this could be confused with,
especially as it's specified as madera-* so the alternative drivers are
limited. Given the limited set of drivers I think it's clear enough it's
the driver for the IRQ and a longer name doesn't add information.
> Same goes for the ones below.
>
Ditto. madera-micsupp will be replaced by the existing arizona-micsupp.
Most gpio drivers are called "something-gpio". Extcon is the name of a
driver subsystem so should be sufficiently clear. Likewise madera-codec.
> > + { .name = "madera-micsupp", .of_compatible = "cirrus,madera-micsupp" },
> > + { .name = "madera-gpio", .of_compatible = "cirrus,madera-gpio" },
> > + { .name = "madera-extcon", .of_compatible = "cirrus,madera-extcon" },
> > + { .name = "cs47l35-codec", .of_compatible = "cirrus,cs47l35-codec" },
> > + { .name = "madera-haptics", .of_compatible = "cirrus,madera-haptics" },
> > +};
> > +
> > +static const struct mfd_cell cs47l85_devs[] = {
> > + { .name = "madera-pinctrl", .of_compatible = "cirrus,madera-pinctrl" },
> > + { .name = "madera-irq", },
> > + { .name = "madera-micsupp", .of_compatible = "cirrus,madera-micsupp" },
> > + { .name = "madera-gpio", .of_compatible = "cirrus,madera-gpio" },
> > + { .name = "madera-extcon", .of_compatible = "cirrus,madera-extcon" },
> > + { .name = "cs47l85-codec", .of_compatible = "cirrus,cs47l85-codec" },
> > + { .name = "madera-haptics", .of_compatible = "cirrus,madera-haptics" },
> > +};
> > +
> > +static const struct mfd_cell cs47l90_devs[] = {
> > + { .name = "madera-pinctrl", .of_compatible = "cirrus,madera-pinctrl" },
> > + { .name = "madera-irq", },
> > + { .name = "madera-micsupp", .of_compatible = "cirrus,madera-micsupp" },
> > + { .name = "madera-gpio", .of_compatible = "cirrus,madera-gpio" },
> > + { .name = "madera-extcon", .of_compatible = "cirrus,madera-extcon" },
> > + { .name = "cs47l90-codec", .of_compatible = "cirrus,cs47l90-codec" },
> > + { .name = "madera-haptics", .of_compatible = "cirrus,madera-haptics" },
> > +};
> > +
> > +const char *madera_name_from_type(enum madera_type type)
> > +{
> > + switch (type) {
> > + case CS47L35:
> > + return "CS47L35";
> > + case CS47L85:
> > + return "CS47L85";
> > + case CS47L90:
> > + return "CS47L90";
> > + case CS47L91:
> > + return "CS47L91";
> > + case WM1840:
> > + return "WM1840";
> > + default:
> > + return "Unknown";
> > + }
> > +}
> > +EXPORT_SYMBOL_GPL(madera_name_from_type);
> > +
> > +#define MADERA_BOOT_POLL_MAX_INTERVAL_US 5000
> > +#define MADERA_BOOT_POLL_TIMEOUT_US 25000
> > +
> > +static int madera_wait_for_boot(struct madera *madera)
> > +{
> > + unsigned int val;
> > + int ret;
> > +
> > + /*
> > + * We can't use an interrupt as we need to runtime resume to do so,
> > + * so we poll the status bit. This won't race with the interrupt
> > + * handler because it will be blocked on runtime resume.
> > + */
> > + ret = regmap_read_poll_timeout(madera->regmap,
> > + MADERA_IRQ1_RAW_STATUS_1,
> > + val,
> > + (val & MADERA_BOOT_DONE_STS1),
> > + MADERA_BOOT_POLL_MAX_INTERVAL_US,
> > + MADERA_BOOT_POLL_TIMEOUT_US);
> > + /*
> > + * BOOT_DONE defaults to unmasked on boot so we must ack it.
> > + * Do this unconditionally to avoid interrupt storms
> > + */
> > + regmap_write(madera->regmap, MADERA_IRQ1_STATUS_1,
> > + MADERA_BOOT_DONE_EINT1);
> > +
> > + if (ret)
> > + dev_err(madera->dev, "Polling BOOT_DONE_STS failed: %d\n", ret);
>
> Why isn't this under the call to regmap_read_poll_timeout()?
>
It was intended to make it clear that we must ack the BOOT_DONE now no
matter what and to avoid the potential with them the other way around of
someone adding more code in the if (or just a ret) and so accidentally
failing to do the ack. I could swap them but I think I prefer keeping
them this way and changing the comment to say this.
> > + pm_runtime_mark_last_busy(madera->dev);
> > +
> > + return ret;
> > +}
> > +
> > +static int madera_soft_reset(struct madera *madera)
> > +{
> > + int ret;
> > +
> > + ret = regmap_write(madera->regmap, MADERA_SOFTWARE_RESET, 0);
> > + if (ret != 0) {
> > + dev_err(madera->dev, "Failed to soft reset device: %d\n", ret);
> > + return ret;
> > + }
> > + usleep_range(1000, 2000);
>
> Why have you chosen 1000 => 2000?
>
> If you obtained specific information from the datasheet, please quote
> it in the comment here.
>
> > + return 0;
> > +}
> > +
> > +static void madera_enable_hard_reset(struct madera *madera)
> > +{
> > + if (madera->reset_gpio)
> > + gpiod_set_value_cansleep(madera->reset_gpio, 0);
> > +}
> > +
> > +static void madera_disable_hard_reset(struct madera *madera)
> > +{
> > + if (madera->reset_gpio) {
> > + gpiod_set_value_cansleep(madera->reset_gpio, 1);
> > + usleep_range(1000, 2000);
> > + }
> > +}
> > +
> > +#ifdef CONFIG_PM
> > +static int madera_runtime_resume(struct device *dev)
> > +{
> > + struct madera *madera = dev_get_drvdata(dev);
> > + int ret;
> > +
> > + dev_dbg(madera->dev, "Leaving sleep mode\n");
>
> Nit: Less code to just use 'dev', no?
>
> > + ret = regulator_enable(madera->dcvdd);
> > + if (ret) {
> > + dev_err(madera->dev, "Failed to enable DCVDD: %d\n", ret);
> > + return ret;
> > + }
> > +
> > + regcache_cache_only(madera->regmap, false);
> > + regcache_cache_only(madera->regmap_32bit, false);
> > +
> > + ret = madera_wait_for_boot(madera);
> > + if (ret)
> > + goto err;
> > +
> > + ret = regcache_sync(madera->regmap);
> > + if (ret) {
> > + dev_err(madera->dev,
> > + "Failed to restore 16-bit register cache\n");
> > + goto err;
> > + }
> > +
> > + ret = regcache_sync(madera->regmap_32bit);
> > + if (ret) {
> > + dev_err(madera->dev,
> > + "Failed to restore 32-bit register cache\n");
> > + goto err;
> > + }
> > +
> > + return 0;
> > +
> > +err:
> > + regcache_cache_only(madera->regmap_32bit, true);
> > + regcache_cache_only(madera->regmap, true);
> > + regulator_disable(madera->dcvdd);
> > +
> > + return ret;
> > +}
> > +
> > +static int madera_runtime_suspend(struct device *dev)
> > +{
> > + struct madera *madera = dev_get_drvdata(dev);
> > +
> > + dev_dbg(madera->dev, "Entering sleep mode\n");
> > +
> > + regcache_cache_only(madera->regmap, true);
> > + regcache_mark_dirty(madera->regmap);
> > + regcache_cache_only(madera->regmap_32bit, true);
> > + regcache_mark_dirty(madera->regmap_32bit);
> > +
> > + regulator_disable(madera->dcvdd);
> > +
> > + return 0;
> > +}
> > +#endif
> > +
> > +const struct dev_pm_ops madera_pm_ops = {
> > + SET_RUNTIME_PM_OPS(madera_runtime_suspend,
> > + madera_runtime_resume,
> > + NULL)
> > +};
> > +EXPORT_SYMBOL_GPL(madera_pm_ops);
> > +
> > +unsigned int madera_get_num_micbias(struct madera *madera)
> > +{
> > +
> > + switch (madera->type) {
> > + case CS47L35:
> > + return 2;
> > + case CS47L85:
> > + case WM1840:
> > + return 4;
> > + case CS47L90:
> > + case CS47L91:
> > + return 2;
> > + default:
> > + dev_warn(madera->dev, "No micbias known for codec %s\n",
> > + madera_name_from_type(madera->type));
> > + return 0;
> > + }
> > +}
> > +EXPORT_SYMBOL_GPL(madera_get_num_micbias);
>
> Looks very subsystem specific. Where is this called from?
>
Child drivers will use this. It's a global property of the chip, not
specific to one particular subsystem, so I don't see a better place than
the parent MFD.
> > +unsigned int madera_get_num_childbias(struct madera *madera,
> > + unsigned int micbias)
> > +{
> > + /*
> > + * micbias argument reserved for future codecs that don't
> > + * have the same number of children on each micbias
> > + */
> > +
> > + switch (madera->type) {
> > + case CS47L35:
> > + return 2;
> > + case CS47L85:
> > + case WM1840:
> > + return 0;
> > + case CS47L90:
> > + case CS47L91:
> > + return 4;
> > + default:
> > + dev_warn(madera->dev, "No child micbias known for codec %s\n",
> > + madera_name_from_type(madera->type));
> > + return 0;
> > + }
> > +}
> > +EXPORT_SYMBOL_GPL(madera_get_num_childbias);
>
> As above.
>
Reason as above
> > +#ifdef CONFIG_OF
> > +const struct of_device_id madera_of_match[] = {
> > + { .compatible = "cirrus,cs47l35", .data = (void *)CS47L35 },
> > + { .compatible = "cirrus,cs47l85", .data = (void *)CS47L85 },
> > + { .compatible = "cirrus,cs47l90", .data = (void *)CS47L90 },
> > + { .compatible = "cirrus,cs47l91", .data = (void *)CS47L91 },
> > + { .compatible = "cirrus,wm1840", .data = (void *)WM1840 },
> > + {},
> > +};
> > +EXPORT_SYMBOL_GPL(madera_of_match);
> > +
> > +unsigned long madera_of_get_type(struct device *dev)
> > +{
> > + const struct of_device_id *id = of_match_device(madera_of_match, dev);
> > +
> > + if (id)
> > + return (unsigned long)id->data;
> > + else
> > + return 0;
> > +}
> > +EXPORT_SYMBOL_GPL(madera_of_get_type);
> > +#endif
> > +
> > +static int madera_prop_get_core_pdata(struct madera *madera)
>
> Will this ever do more than obtain a GPIO?
>
> If not, please consider renaming the function.
>
> > +{
> > + int ret;
> > +
> > + madera->reset_gpio = devm_gpiod_get_optional(madera->dev,
> > + "reset",
> > + GPIOD_OUT_LOW);
> > + if (IS_ERR(madera->reset_gpio)) {
> > + ret = PTR_ERR(madera->reset_gpio);
> > +
> > + if (ret == -EPROBE_DEFER)
> > + return ret;
> > + else if ((ret < 0) && (ret != -EINVAL))
> > + dev_warn(madera->dev,
> > + "DT property reset-gpio is malformed: %d\n",
> > + ret);
> > + }
>
> This hunk looks like it could be simplified.
>
> > + return 0;
> > +}
> > +
> > +static void madera_configure_micbias(struct madera *madera)
> > +{
> > + unsigned int num_micbias = madera_get_num_micbias(madera);
> > + struct madera_micbias_pdata *pdata;
> > + struct regulator_init_data *init_data;
> > + unsigned int num_child_micbias;
> > + unsigned int val, mask, reg;
> > + int i, j, ret;
> > +
> > + for (i = 0; i < num_micbias; i++) {
> > + pdata = &madera->pdata.micbias[i];
> > + init_data = &pdata->init_data;
> > +
> > + if (!init_data->constraints.max_uV &&
> > + !init_data->constraints.valid_ops_mask)
> > + continue; /* pdata not set */
> > +
> > + /* Apply default for bypass mode */
> > + if (!init_data->constraints.max_uV)
> > + init_data->constraints.max_uV = 2800;
> > +
> > + val = (init_data->constraints.max_uV - 1500000) / 100000;
> > + val <<= MADERA_MICB1_LVL_SHIFT;
> > +
> > + mask = MADERA_MICB1_LVL_MASK | MADERA_MICB1_EXT_CAP |
> > + MADERA_MICB1_BYPASS | MADERA_MICB1_RATE;
> > +
> > + if (pdata->ext_cap)
> > + val |= MADERA_MICB1_EXT_CAP;
> > +
> > + /* if no child biases the discharge is set in the parent */
> > + num_child_micbias = madera_get_num_childbias(madera, i + 1);
> > + if (num_child_micbias == 0) {
> > + mask |= MADERA_MICB1_DISCH;
> > +
> > + switch (init_data->constraints.active_discharge) {
> > + case REGULATOR_ACTIVE_DISCHARGE_ENABLE:
> > + val |= MADERA_MICB1_DISCH;
> > + break;
> > + default:
> > + break;
> > + }
> > + }
> > +
> > + if (init_data->constraints.soft_start)
> > + val |= MADERA_MICB1_RATE;
> > +
> > + if (init_data->constraints.valid_ops_mask &
> > + REGULATOR_CHANGE_BYPASS)
> > + val |= MADERA_MICB1_BYPASS;
> > +
> > + reg = MADERA_MIC_BIAS_CTRL_1 + i;
> > + ret = regmap_update_bits(madera->regmap, reg, mask, val);
> > + if (ret)
> > + dev_warn(madera->dev, "Failed to write 0x%x (%d)\n",
> > + reg, ret);
> > +
> > + dev_dbg(madera->dev, "Set MICBIAS_CTRL_%d mask=0x%x val=0x%x\n",
> > + i + 1, mask, val);
> > +
> > + /* Configure the child micbias pins */
> > + val = 0;
> > + mask = 0;
> > + for (j = 0; j < num_child_micbias; j++) {
> > + mask |= (MADERA_MICB1A_DISCH << (j * 4));
> > +
> > + init_data = &pdata->pin[j].init_data;
> > + switch (init_data->constraints.active_discharge) {
> > + case REGULATOR_ACTIVE_DISCHARGE_ENABLE:
> > + val |= (MADERA_MICB1A_DISCH << (j * 4));
> > + break;
> > + default:
> > + break;
> > + }
> > + }
> > +
> > + if (mask) {
> > + reg = MADERA_MIC_BIAS_CTRL_5 + (i * 2);
> > + ret = regmap_update_bits(madera->regmap, reg, mask, val);
> > + if (ret)
> > + dev_warn(madera->dev,
> > + "Failed to write 0x%x (%d)\n",
> > + reg, ret);
> > +
> > + dev_dbg(madera->dev,
> > + "Set MICBIAS_CTRL_%d mask=0x%x val=0x%x\n",
> > + i + 5, mask, val);
> > + }
> > + }
> > +}
>
> This 'stuff' looks like it should be moved out to the sub-device
> drivers.
>
> > +int madera_dev_init(struct madera *madera)
> > +{
> > + struct device *dev = madera->dev;
> > + const char *name;
> > + unsigned int hwid;
> > + int (*patch_fn)(struct madera *) = NULL;
> > + const struct mfd_cell *mfd_devs;
> > + int n_devs = 0;
> > + int i, ret;
> > +
> > + dev_set_drvdata(madera->dev, madera);
> > + BLOCKING_INIT_NOTIFIER_HEAD(&madera->notifier);
> > +
> > + if (dev_get_platdata(madera->dev)) {
> > + memcpy(&madera->pdata, dev_get_platdata(madera->dev),
> > + sizeof(madera->pdata));
> > +
> > + /* We use 0 in pdata to indicate a GPIO has not been set */
> > + if (madera->pdata.reset > 0) {
> > + /* Start out with /RESET asserted */
> > + ret = devm_gpio_request_one(madera->dev,
> > + madera->pdata.reset,
> > + GPIOF_DIR_OUT | GPIOF_INIT_LOW,
> > + "madera reset");
> > + if (ret) {
> > + dev_err(dev, "Failed to request /RESET: %d\n",
> > + ret);
> > + return ret;
> > + }
> > +
> > + madera->reset_gpio = gpio_to_desc(madera->pdata.reset);
> > + }
> > + } else {
> > + ret = madera_prop_get_core_pdata(madera);
> > + if (ret)
> > + return ret;
> > + }
> > +
> > + if (!madera->reset_gpio)
> > + dev_warn(madera->dev,
> > + "Running without reset GPIO is not recommended\n");
>
> I suggest moving all of the above into madera_prop_get_core_pdata()
> and renaming it to madera_get_gpio().
>
> It also looks like it could be simplified to reduce indentation.
>
> > + regcache_cache_only(madera->regmap, true);
> > + regcache_cache_only(madera->regmap_32bit, true);
> > +
> > + for (i = 0; i < ARRAY_SIZE(madera_core_supplies); i++)
> > + madera->core_supplies[i].supply = madera_core_supplies[i];
> > +
> > + madera->num_core_supplies = ARRAY_SIZE(madera_core_supplies);
> > +
> > + switch (madera->type) {
> > + case CS47L35:
> > + case CS47L90:
> > + case CS47L91:
>
> Perhaps a comment here to say why these devices do not require LDO1
> devices.
>
> > + break;
> > + case CS47L85:
> > + case WM1840:
> > + ret = mfd_add_devices(madera->dev, PLATFORM_DEVID_NONE,
> > + madera_ldo1_devs,
> > + ARRAY_SIZE(madera_ldo1_devs),
> > + NULL, 0, NULL);
> > + if (ret != 0) {
>
> Please use these checks in order of preference:
>
> if (ret)
> if (ret < 0)
> if (ret != 0)
>
> ... depending on the situation.
>
> Here the former will do.
>
> > + dev_err(dev, "Failed to add LDO1 child: %d\n", ret);
> > + return ret;
> > + }
> > + break;
> > + default:
> > + dev_err(madera->dev, "Unknown device type %d\n", madera->type);
> > + return -ENODEV;
> > + }
> > +
> > + ret = devm_regulator_bulk_get(dev, madera->num_core_supplies,
> > + madera->core_supplies);
> > + if (ret) {
> > + dev_err(dev, "Failed to request core supplies: %d\n", ret);
> > + goto err_devs;
> > + }
> > +
> > + /*
> > + * Don't use devres here because the only device we have to get
> > + * against is the MFD device and DCVDD will likely be supplied by
> > + * one of its children. Meaning that the regulator will be
> > + * destroyed by the time devres calls regulator put.
> > + */
> > + madera->dcvdd = regulator_get_exclusive(madera->dev, "DCVDD");
> > + if (IS_ERR(madera->dcvdd)) {
> > + ret = PTR_ERR(madera->dcvdd);
> > + dev_err(dev, "Failed to request DCVDD: %d\n", ret);
> > + goto err_devs;
> > + }
> > +
> > + ret = regulator_bulk_enable(madera->num_core_supplies,
> > + madera->core_supplies);
> > + if (ret) {
> > + dev_err(dev, "Failed to enable core supplies: %d\n", ret);
> > + goto err_dcvdd;
> > + }
> > +
> > + ret = regulator_enable(madera->dcvdd);
> > + if (ret) {
> > + dev_err(dev, "Failed to enable DCVDD: %d\n", ret);
> > + goto err_enable;
> > + }
> > +
> > + madera_disable_hard_reset(madera);
> > +
> > + regcache_cache_only(madera->regmap, false);
> > + regcache_cache_only(madera->regmap_32bit, false);
> > +
> > + /*
> > + * Verify that this is a chip we know about before we
> > + * starting doing any writes to its registers
> > + */
> > + ret = regmap_read(madera->regmap, MADERA_SOFTWARE_RESET, &hwid);
> > + if (ret) {
> > + dev_err(dev, "Failed to read ID register: %d\n", ret);
> > + goto err_reset;
> > + }
> > +
> > + switch (hwid) {
> > + case CS47L35_SILICON_ID:
> > + case CS47L85_SILICON_ID:
> > + case CS47L90_SILICON_ID:
> > + break;
> > + default:
> > + dev_err(madera->dev, "Unknown device ID: %x\n", hwid);
> > + ret = -EINVAL;
> > + goto err_reset;
> > + }
> > +
> > + /* If we don't have a reset GPIO use a soft reset */
> > + if (!madera->reset_gpio) {
> > + ret = madera_soft_reset(madera);
> > + if (ret)
> > + goto err_reset;
> > + }
> > +
> > + ret = madera_wait_for_boot(madera);
> > + if (ret) {
> > + dev_err(madera->dev, "Device failed initial boot: %d\n", ret);
> > + goto err_reset;
> > + }
> > +
> > + ret = regmap_read(madera->regmap, MADERA_HARDWARE_REVISION,
> > + &madera->rev);
> > + if (ret) {
> > + dev_err(dev, "Failed to read revision register: %d\n", ret);
> > + goto err_reset;
> > + }
> > + madera->rev &= MADERA_HW_REVISION_MASK;
> > +
> > + name = madera_name_from_type(madera->type);
> > +
> > + switch (hwid) {
> > + case CS47L35_SILICON_ID:
> > + if (IS_ENABLED(CONFIG_MFD_CS47L35)) {
> > + switch (madera->type) {
> > + case CS47L35:
> > + patch_fn = cs47l35_patch;
> > + mfd_devs = cs47l35_devs;
> > + n_devs = ARRAY_SIZE(cs47l35_devs);
> > + break;
> > + default:
> > + break;
> > + }
> > + }
> > + break;
> > + case CS47L85_SILICON_ID:
> > + if (IS_ENABLED(CONFIG_MFD_CS47L85)) {
> > + switch (madera->type) {
> > + case CS47L85:
> > + case WM1840:
> > + patch_fn = cs47l85_patch;
> > + mfd_devs = cs47l85_devs;
> > + n_devs = ARRAY_SIZE(cs47l85_devs);
> > + break;
> > + default:
> > + break;
> > + }
> > + }
> > + break;
> > + case CS47L90_SILICON_ID:
> > + if (IS_ENABLED(CONFIG_MFD_CS47L90)) {
> > + switch (madera->type) {
> > + case CS47L90:
> > + case CS47L91:
> > + patch_fn = cs47l90_patch;
> > + mfd_devs = cs47l90_devs;
> > + n_devs = ARRAY_SIZE(cs47l90_devs);
> > + break;
> > + default:
> > + break;
> > + }
> > + }
> > + break;
> > + default:
> > + break;
> > + }
> > +
> > + if (!n_devs) {
> > + dev_err(madera->dev, "Device ID 0x%x not a %s\n", hwid, name);
> > + ret = -ENODEV;
> > + goto err_reset;
> > + }
> > +
> > + dev_info(dev, "%s silicon revision %d\n", name, madera->rev);
> > +
> > + /* Apply hardware patch */
> > + if (patch_fn) {
> > + ret = patch_fn(madera);
> > + if (ret) {
> > + dev_err(madera->dev, "Failed to apply patch %d\n", ret);
> > + goto err_reset;
> > + }
> > + }
> > +
> > + /* Init 32k clock sourced from MCLK2 */
> > + ret = regmap_update_bits(madera->regmap,
> > + MADERA_CLOCK_32K_1,
> > + MADERA_CLK_32K_ENA_MASK | MADERA_CLK_32K_SRC_MASK,
> > + MADERA_CLK_32K_ENA | MADERA_32KZ_MCLK2);
> > + if (ret) {
> > + dev_err(madera->dev, "Failed to init 32k clock: %d\n", ret);
> > + goto err_reset;
> > + }
> > +
> > + madera_configure_micbias(madera);
> > +
> > + pm_runtime_set_active(madera->dev);
> > + pm_runtime_enable(madera->dev);
> > + pm_runtime_set_autosuspend_delay(madera->dev, 100);
> > + pm_runtime_use_autosuspend(madera->dev);
> > +
> > + ret = mfd_add_devices(madera->dev, PLATFORM_DEVID_NONE,
> > + mfd_devs, n_devs,
> > + NULL, 0, NULL);
> > + if (ret) {
> > + dev_err(madera->dev, "Failed to add subdevices: %d\n", ret);
> > + goto err_pm_runtime;
> > + }
> > +
> > + return 0;
> > +
> > +err_pm_runtime:
> > + pm_runtime_disable(madera->dev);
> > +err_reset:
> > + madera_enable_hard_reset(madera);
> > + regulator_disable(madera->dcvdd);
> > +err_enable:
> > + regulator_bulk_disable(madera->num_core_supplies,
> > + madera->core_supplies);
> > +err_dcvdd:
> > + regulator_put(madera->dcvdd);
> > +err_devs:
> > + mfd_remove_devices(dev);
> > +
> > + return ret;
> > +}
> > +EXPORT_SYMBOL_GPL(madera_dev_init);
> > +
> > +int madera_dev_exit(struct madera *madera)
> > +{
> > + /* Prevent any IRQs being serviced while we clean up */
> > + disable_irq(madera->irq);
> > +
> > + /*
> > + * DCVDD could be supplied by a child node, we must disable it before
> > + * removing the children, and prevent PM runtime from turning it back on
> > + */
> > + pm_runtime_disable(madera->dev);
> > +
> > + regulator_disable(madera->dcvdd);
> > + regulator_put(madera->dcvdd);
> > +
> > + mfd_remove_devices(madera->dev);
> > + madera_enable_hard_reset(madera);
> > +
> > + regulator_bulk_disable(madera->num_core_supplies,
> > + madera->core_supplies);
> > + return 0;
> > +}
> > +EXPORT_SYMBOL_GPL(madera_dev_exit);
> > diff --git a/drivers/mfd/madera-i2c.c b/drivers/mfd/madera-i2c.c
> > new file mode 100644
> > index 0000000..8c90780
> > --- /dev/null
> > +++ b/drivers/mfd/madera-i2c.c
> > @@ -0,0 +1,130 @@
> > +/*
> > + * I2C bus interface to Cirrus Logic Madera codecs
> > + *
> > + * Copyright 2015-2017 Cirrus Logic
> > + *
> > + * This program is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License version 2 as
> > + * published by the Free Software Foundation.
> > + */
> > +
> > +#include <linux/device.h>
> > +#include <linux/err.h>
> > +#include <linux/i2c.h>
> > +#include <linux/module.h>
> > +#include <linux/regmap.h>
> > +#include <linux/of.h>
> > +
> > +#include <linux/mfd/madera/core.h>
> > +
> > +#include "madera.h"
> > +
> > +static int madera_i2c_probe(struct i2c_client *i2c,
> > + const struct i2c_device_id *id)
> > +{
> > + struct madera *madera;
> > + const struct regmap_config *regmap_16bit_config = NULL;
> > + const struct regmap_config *regmap_32bit_config = NULL;
> > + unsigned long type;
> > + int ret;
> > +
> > + if (i2c->dev.of_node)
> > + type = madera_of_get_type(&i2c->dev);
>
> Just call this madera_get_type()
That would be ambiguous about what type information we are getting. As
the codecs have an ID it's possible we may in the future want to use
auto-detection to override or refine the "compatible" info, the
madera->type is the ID we're going to run with so we need to make it
clear that this is the OF type info.
> and do the OF || !OF checking in
> there.
>
I tried rearranging the code like that but it just made it more complex
and less clear. I like the original way. Bear in mind that that the
alternative ID (if there's no DT) is in different structs depending
whether it's I2C or SPI so that can't be fetched by a generic function
and passing it in as an arg just obscures what's going on at this point
in the code. I think I like this original version for clarity of what's
happening, though I've renamed the function to madera_get_type_from_of.
> > + else
> > + type = id->driver_data;
> > +
> > + switch (type) {
> > + case CS47L35:
> > + if (IS_ENABLED(CONFIG_MFD_CS47L35)) {
> > + regmap_16bit_config = &cs47l35_16bit_i2c_regmap;
> > + regmap_32bit_config = &cs47l35_32bit_i2c_regmap;
> > + }
> > + break;
> > + case CS47L85:
> > + case WM1840:
> > + if (IS_ENABLED(CONFIG_MFD_CS47L85)) {
> > + regmap_16bit_config = &cs47l85_16bit_i2c_regmap;
> > + regmap_32bit_config = &cs47l85_32bit_i2c_regmap;
> > + }
> > + break;
> > + case CS47L90:
> > + case CS47L91:
> > + if (IS_ENABLED(CONFIG_MFD_CS47L90)) {
> > + regmap_16bit_config = &cs47l90_16bit_i2c_regmap;
> > + regmap_32bit_config = &cs47l90_32bit_i2c_regmap;
> > + }
> > + break;
> > + default:
> > + dev_err(&i2c->dev,
> > + "Unknown Madera I2C device type %ld\n", type);
> > + return -EINVAL;
> > + }
> > +
> > + if (!regmap_16bit_config) {
> > + dev_err(&i2c->dev,
> > + "Kernel does not include support for %s\n",
> > + madera_name_from_type(type));
> > + return -EINVAL;
> > + }
> > +
> > + madera = devm_kzalloc(&i2c->dev, sizeof(*madera), GFP_KERNEL);
> > + if (!madera)
> > + return -ENOMEM;
> > +
> > + madera->regmap = devm_regmap_init_i2c(i2c, regmap_16bit_config);
> > + if (IS_ERR(madera->regmap)) {
> > + ret = PTR_ERR(madera->regmap);
> > + dev_err(&i2c->dev,
> > + "Failed to allocate 16-bit register map: %d\n", ret);
> > + return ret;
> > + }
> > +
> > + madera->regmap_32bit = devm_regmap_init_i2c(i2c, regmap_32bit_config);
> > + if (IS_ERR(madera->regmap_32bit)) {
> > + ret = PTR_ERR(madera->regmap_32bit);
> > + dev_err(&i2c->dev,
> > + "Failed to allocate 32-bit register map: %d\n", ret);
> > + return ret;
> > + }
> > +
> > + madera->type = type;
> > + madera->dev = &i2c->dev;
> > + madera->irq = i2c->irq;
> > +
> > + return madera_dev_init(madera);
> > +}
> > +
> > +static int madera_i2c_remove(struct i2c_client *i2c)
> > +{
> > + struct madera *madera = dev_get_drvdata(&i2c->dev);
> > +
> > + madera_dev_exit(madera);
>
> Nit: \n here please.
>
> > + return 0;
> > +}
> > +
> > +static const struct i2c_device_id madera_i2c_id[] = {
> > + { "cs47l35", CS47L35 },
> > + { "cs47l85", CS47L85 },
> > + { "cs47l90", CS47L90 },
> > + { "cs47l91", CS47L91 },
> > + { "wm1840", WM1840 },
> > + { }
> > +};
> > +MODULE_DEVICE_TABLE(i2c, madera_i2c_id);
> > +
> > +static struct i2c_driver madera_i2c_driver = {
> > + .driver = {
> > + .name = "madera",
> > + .pm = &madera_pm_ops,
> > + .of_match_table = of_match_ptr(madera_of_match),
> > + },
> > + .probe = madera_i2c_probe,
> > + .remove = madera_i2c_remove,
> > + .id_table = madera_i2c_id,
> > +};
> > +
> > +module_i2c_driver(madera_i2c_driver);
> > +
> > +MODULE_DESCRIPTION("Madera I2C bus interface");
> > +MODULE_AUTHOR("Richard Fitzgerald <[email protected]>");
> > +MODULE_LICENSE("GPL v2");
> > diff --git a/drivers/mfd/madera-spi.c b/drivers/mfd/madera-spi.c
> > new file mode 100644
> > index 0000000..e7e13f0
> > --- /dev/null
> > +++ b/drivers/mfd/madera-spi.c
> > @@ -0,0 +1,131 @@
> > +/*
> > + * SPI bus interface to Cirrus Logic Madera codecs
> > + *
> > + * Copyright 2015-2017 Cirrus Logic
> > + *
> > + * This program is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License version 2 as
> > + * published by the Free Software Foundation.
> > + */
> > +
> > +#include <linux/device.h>
> > +#include <linux/err.h>
> > +#include <linux/module.h>
> > +#include <linux/regmap.h>
> > +#include <linux/of.h>
> > +#include <linux/spi/spi.h>
> > +
> > +#include <linux/mfd/madera/core.h>
> > +
> > +#include "madera.h"
> > +
> > +static int madera_spi_probe(struct spi_device *spi)
> > +{
> > + const struct spi_device_id *id = spi_get_device_id(spi);
> > + struct madera *madera;
> > + const struct regmap_config *regmap_16bit_config = NULL;
> > + const struct regmap_config *regmap_32bit_config = NULL;
> > + unsigned long type;
> > + int ret;
> > +
> > + if (spi->dev.of_node)
> > + type = madera_of_get_type(&spi->dev);
> > + else
> > + type = id->driver_data;
>
> As above.
>
> > + switch (type) {
> > + case CS47L35:
> > + if (IS_ENABLED(CONFIG_MFD_CS47L35)) {
> > + regmap_16bit_config = &cs47l35_16bit_spi_regmap;
> > + regmap_32bit_config = &cs47l35_32bit_spi_regmap;
> > + }
> > + break;
> > + case CS47L85:
> > + case WM1840:
> > + if (IS_ENABLED(CONFIG_MFD_CS47L85)) {
> > + regmap_16bit_config = &cs47l85_16bit_spi_regmap;
> > + regmap_32bit_config = &cs47l85_32bit_spi_regmap;
> > + }
> > + break;
> > + case CS47L90:
> > + case CS47L91:
> > + if (IS_ENABLED(CONFIG_MFD_CS47L90)) {
> > + regmap_16bit_config = &cs47l90_16bit_spi_regmap;
> > + regmap_32bit_config = &cs47l90_32bit_spi_regmap;
> > + }
> > + break;
> > + default:
> > + dev_err(&spi->dev,
> > + "Unknown Madera SPI device type %ld\n", type);
> > + return -EINVAL;
> > + }
> > +
> > + if (!regmap_16bit_config) {
> > + dev_err(&spi->dev,
> > + "Kernel does not include support for %s\n",
> > + madera_name_from_type(type));
> > + return -EINVAL;
> > + }
> > +
> > + madera = devm_kzalloc(&spi->dev, sizeof(*madera), GFP_KERNEL);
> > + if (!madera)
> > + return -ENOMEM;
> > +
> > + madera->regmap = devm_regmap_init_spi(spi, regmap_16bit_config);
> > + if (IS_ERR(madera->regmap)) {
> > + ret = PTR_ERR(madera->regmap);
> > + dev_err(&spi->dev,
> > + "Failed to allocate 16-bit register map: %d\n", ret);
> > + return ret;
> > + }
> > +
> > + madera->regmap_32bit = devm_regmap_init_spi(spi, regmap_32bit_config);
> > + if (IS_ERR(madera->regmap_32bit)) {
> > + ret = PTR_ERR(madera->regmap_32bit);
> > + dev_err(&spi->dev,
> > + "Failed to allocate 32-bit register map: %d\n", ret);
> > + return ret;
> > + }
> > +
> > + madera->type = type;
> > + madera->dev = &spi->dev;
> > + madera->irq = spi->irq;
> > +
> > + return madera_dev_init(madera);
> > +}
> > +
> > +static int madera_spi_remove(struct spi_device *spi)
> > +{
> > + struct madera *madera = spi_get_drvdata(spi);
> > +
> > + madera_dev_exit(madera);
>
> As above.
>
> > + return 0;
> > +}
> > +
> > +static const struct spi_device_id madera_spi_ids[] = {
> > + { "cs47l35", CS47L35 },
> > + { "cs47l85", CS47L85 },
> > + { "cs47l90", CS47L90 },
> > + { "cs47l91", CS47L91 },
> > + { "wm1840", WM1840 },
> > + { },
> > +};
> > +MODULE_DEVICE_TABLE(spi, madera_spi_ids);
> > +
> > +static struct spi_driver madera_spi_driver = {
> > + .driver = {
> > + .name = "madera",
> > + .owner = THIS_MODULE,
> > + .pm = &madera_pm_ops,
> > + .of_match_table = of_match_ptr(madera_of_match),
> > + },
> > + .probe = madera_spi_probe,
> > + .remove = madera_spi_remove,
> > + .id_table = madera_spi_ids,
> > +};
> > +
> > +module_spi_driver(madera_spi_driver);
> > +
> > +MODULE_DESCRIPTION("Madera SPI bus interface");
> > +MODULE_AUTHOR("Richard Fitzgerald <[email protected]>");
> > +MODULE_LICENSE("GPL v2");
> > diff --git a/drivers/mfd/madera.h b/drivers/mfd/madera.h
> > new file mode 100644
> > index 0000000..57f6add
> > --- /dev/null
> > +++ b/drivers/mfd/madera.h
> > @@ -0,0 +1,52 @@
> > +/*
> > + * madera.h -- MFD internals for Cirrus Logic Madera codecs
>
> Please remove the file name from this header.
>
> > + * Copyright 2015-2016 Cirrus Logic
>
> This needs updating.
>
> > + * This program is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License version 2 as
> > + * published by the Free Software Foundation.
> > + */
> > +
> > +#ifndef MADERA_MFD_H
> > +#define MADERA_MFD_H
> > +
> > +#include <linux/pm.h>
> > +#include <linux/of.h>
>
> Alphabetical.
>
> > +struct madera;
> > +
> > +extern const struct dev_pm_ops madera_pm_ops;
> > +extern const struct of_device_id madera_of_match[];
> > +
> > +int madera_dev_init(struct madera *madera);
> > +int madera_dev_exit(struct madera *madera);
> > +
> > +#ifdef CONFIG_OF
> > +unsigned long madera_of_get_type(struct device *dev);
> > +#else
> > +static inline unsigned long madera_of_get_type(struct device *dev)
> > +{
> > + return 0;
> > +}
> > +#endif
>
> If you move to a generic get_type approach you can remove these
> lines.
>
> > +extern const struct regmap_config cs47l35_16bit_spi_regmap;
> > +extern const struct regmap_config cs47l35_32bit_spi_regmap;
> > +extern const struct regmap_config cs47l35_16bit_i2c_regmap;
> > +extern const struct regmap_config cs47l35_32bit_i2c_regmap;
> > +int cs47l35_patch(struct madera *madera);
> > +
> > +extern const struct regmap_config cs47l85_16bit_spi_regmap;
> > +extern const struct regmap_config cs47l85_32bit_spi_regmap;
> > +extern const struct regmap_config cs47l85_16bit_i2c_regmap;
> > +extern const struct regmap_config cs47l85_32bit_i2c_regmap;
> > +int cs47l85_patch(struct madera *madera);
> > +
> > +extern const struct regmap_config cs47l90_16bit_spi_regmap;
> > +extern const struct regmap_config cs47l90_32bit_spi_regmap;
> > +extern const struct regmap_config cs47l90_16bit_i2c_regmap;
> > +extern const struct regmap_config cs47l90_32bit_i2c_regmap;
> > +int cs47l90_patch(struct madera *madera);
>
> Where do these live?
>
In the other files added by the following 3 patches.
> > +#endif
> > diff --git a/include/linux/mfd/madera/core.h b/include/linux/mfd/madera/core.h
> > new file mode 100644
> > index 0000000..59b05f8
> > --- /dev/null
> > +++ b/include/linux/mfd/madera/core.h
> > @@ -0,0 +1,175 @@
> > +/*
> > + * MFD internals for Cirrus Logic Madera codecs
> > + *
> > + * Copyright 2015-2017 Cirrus Logic
> > + *
> > + * This program is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License version 2 as
> > + * published by the Free Software Foundation.
> > + */
> > +
> > +#ifndef MADERA_CORE_H
> > +#define MADERA_CORE_H
> > +
> > +#include <linux/interrupt.h>
> > +#include <linux/regmap.h>
> > +#include <linux/notifier.h>
> > +#include <linux/gpio/consumer.h>
> > +#include <linux/regulator/consumer.h>
> > +#include <linux/mfd/madera/pdata.h>
> > +#include <linux/irqchip/irq-madera.h>
> > +#include <sound/madera-pdata.h>
>
> Alphabetical.
>
> > +enum madera_type {
> > + CS47L35 = 1,
> > + CS47L85 = 2,
> > + CS47L90 = 3,
> > + CS47L91 = 4,
> > + WM1840 = 7,
> > +};
> > +
> > +#define MADERA_MAX_CORE_SUPPLIES 2
> > +#define MADERA_MAX_GPIOS 40
> > +
> > +#define CS47L35_NUM_GPIOS 16
> > +#define CS47L85_NUM_GPIOS 40
> > +#define CS47L90_NUM_GPIOS 38
> > +
> > +
> > +/* Notifier events */
> > +#define MADERA_NOTIFY_VOICE_TRIGGER 0x1
> > +#define MADERA_NOTIFY_HPDET 0x2
> > +#define MADERA_NOTIFY_MICDET 0x4
> > +
> > +/* GPIO Function Definitions */
> > +#define MADERA_GP_FN_ALTERNATE 0x00
> > +#define MADERA_GP_FN_GPIO 0x01
> > +#define MADERA_GP_FN_DSP_GPIO 0x02
> > +#define MADERA_GP_FN_IRQ1 0x03
> > +#define MADERA_GP_FN_IRQ2 0x04
> > +#define MADERA_GP_FN_FLL1_CLOCK 0x10
> > +#define MADERA_GP_FN_FLL2_CLOCK 0x11
> > +#define MADERA_GP_FN_FLL3_CLOCK 0x12
> > +#define MADERA_GP_FN_FLLAO_CLOCK 0x13
> > +#define MADERA_GP_FN_FLL1_LOCK 0x18
> > +#define MADERA_GP_FN_FLL2_LOCK 0x19
> > +#define MADERA_GP_FN_FLL3_LOCK 0x1A
> > +#define MADERA_GP_FN_FLLAO_LOCK 0x1B
> > +#define MADERA_GP_FN_OPCLK_OUT 0x40
> > +#define MADERA_GP_FN_OPCLK_ASYNC_OUT 0x41
> > +#define MADERA_GP_FN_PWM1 0x48
> > +#define MADERA_GP_FN_PWM2 0x49
> > +#define MADERA_GP_FN_SPDIF_OUT 0x4C
> > +#define MADERA_GP_FN_HEADPHONE_DET 0x50
> > +#define MADERA_GP_FN_MIC_DET 0x58
> > +#define MADERA_GP_FN_DRC1_SIGNAL_DETECT 0x80
> > +#define MADERA_GP_FN_DRC2_SIGNAL_DETECT 0x81
> > +#define MADERA_GP_FN_ASRC1_IN1_LOCK 0x88
> > +#define MADERA_GP_FN_ASRC1_IN2_LOCK 0x89
> > +#define MADERA_GP_FN_ASRC2_IN1_LOCK 0x8A
> > +#define MADERA_GP_FN_ASRC2_IN2_LOCK 0x8B
> > +#define MADERA_GP_FN_DSP_IRQ1 0xA0
> > +#define MADERA_GP_FN_DSP_IRQ2 0xA1
> > +#define MADERA_GP_FN_DSP_IRQ3 0xA2
> > +#define MADERA_GP_FN_DSP_IRQ4 0xA3
> > +#define MADERA_GP_FN_DSP_IRQ5 0xA4
> > +#define MADERA_GP_FN_DSP_IRQ6 0xA5
> > +#define MADERA_GP_FN_DSP_IRQ7 0xA6
> > +#define MADERA_GP_FN_DSP_IRQ8 0xA7
> > +#define MADERA_GP_FN_DSP_IRQ9 0xA8
> > +#define MADERA_GP_FN_DSP_IRQ10 0xA9
> > +#define MADERA_GP_FN_DSP_IRQ11 0xAA
> > +#define MADERA_GP_FN_DSP_IRQ12 0xAB
> > +#define MADERA_GP_FN_DSP_IRQ13 0xAC
> > +#define MADERA_GP_FN_DSP_IRQ14 0xAD
> > +#define MADERA_GP_FN_DSP_IRQ15 0xAE
> > +#define MADERA_GP_FN_DSP_IRQ16 0xAF
> > +#define MADERA_GP_FN_HPOUT1L_SC 0xB0
> > +#define MADERA_GP_FN_HPOUT1R_SC 0xB1
> > +#define MADERA_GP_FN_HPOUT2L_SC 0xB2
> > +#define MADERA_GP_FN_HPOUT2R_SC 0xB3
> > +#define MADERA_GP_FN_HPOUT3L_SC 0xB4
> > +#define MADERA_GP_FN_HPOUT4R_SC 0xB5
> > +#define MADERA_GP_FN_SPKOUTL_SC 0xB6
> > +#define MADERA_GP_FN_SPKOUTR_SC 0xB7
> > +#define MADERA_GP_FN_HPOUT1L_ENA 0xC0
> > +#define MADERA_GP_FN_HPOUT1R_ENA 0xC1
> > +#define MADERA_GP_FN_HPOUT2L_ENA 0xC2
> > +#define MADERA_GP_FN_HPOUT2R_ENA 0xC3
> > +#define MADERA_GP_FN_HPOUT3L_ENA 0xC4
> > +#define MADERA_GP_FN_HPOUT4R_ENA 0xC5
> > +#define MADERA_GP_FN_SPKOUTL_ENA 0xC6
> > +#define MADERA_GP_FN_SPKOUTR_ENA 0xC7
> > +#define MADERA_GP_FN_HPOUT1L_DIS 0xD0
> > +#define MADERA_GP_FN_HPOUT1R_DIS 0xD1
> > +#define MADERA_GP_FN_HPOUT2L_DIS 0xD2
> > +#define MADERA_GP_FN_HPOUT2R_DIS 0xD3
> > +#define MADERA_GP_FN_HPOUT3L_DIS 0xD4
> > +#define MADERA_GP_FN_HPOUT4R_DIS 0xD5
> > +#define MADERA_GP_FN_SPKOUTL_DIS 0xD6
> > +#define MADERA_GP_FN_SPKOUTR_DIS 0xD7
> > +#define MADERA_GP_FN_SPK_SHUTDOWN 0xE0
> > +#define MADERA_GP_FN_SPK_OVH_SHUTDOWN 0xE1
> > +#define MADERA_GP_FN_SPK_OVH_WARN 0xE2
> > +#define MADERA_GP_FN_TIMER1_STATUS 0x140
> > +#define MADERA_GP_FN_TIMER2_STATUS 0x141
> > +#define MADERA_GP_FN_TIMER3_STATUS 0x142
> > +#define MADERA_GP_FN_TIMER4_STATUS 0x143
> > +#define MADERA_GP_FN_TIMER5_STATUS 0x144
> > +#define MADERA_GP_FN_TIMER6_STATUS 0x145
> > +#define MADERA_GP_FN_TIMER7_STATUS 0x146
> > +#define MADERA_GP_FN_TIMER8_STATUS 0x147
> > +#define MADERA_GP_FN_EVENTLOG1_FIFO_STS 0x150
> > +#define MADERA_GP_FN_EVENTLOG2_FIFO_STS 0x151
> > +#define MADERA_GP_FN_EVENTLOG3_FIFO_STS 0x152
> > +#define MADERA_GP_FN_EVENTLOG4_FIFO_STS 0x153
> > +#define MADERA_GP_FN_EVENTLOG5_FIFO_STS 0x154
> > +#define MADERA_GP_FN_EVENTLOG6_FIFO_STS 0x155
> > +#define MADERA_GP_FN_EVENTLOG7_FIFO_STS 0x156
> > +#define MADERA_GP_FN_EVENTLOG8_FIFO_STS 0x157
> > +
> > +struct snd_soc_dapm_context;
> > +
> > +struct madera {
> > + struct regmap *regmap;
> > + struct regmap *regmap_32bit;
> > +
> > + struct device *dev;
> > +
> > + enum madera_type type;
> > + unsigned int rev;
> > +
> > + struct gpio_desc *reset_gpio;
> > +
> > + int num_core_supplies;
> > + struct regulator_bulk_data core_supplies[MADERA_MAX_CORE_SUPPLIES];
> > + struct regulator *dcvdd;
> > + bool internal_dcvdd;
> > +
> > + struct madera_pdata pdata;
> > +
> > + struct device *irq_dev;
> > + int irq;
> > +
> > + unsigned int out_clamp[MADERA_MAX_OUTPUT];
> > + unsigned int out_shorted[MADERA_MAX_OUTPUT];
> > + unsigned int hp_ena;
> > +
> > + struct snd_soc_dapm_context *dapm;
> > +
> > + struct blocking_notifier_head notifier;
> > +};
>
> Please supply a kerneldoc header for this struct.
>
It's internal to the madera drivers, only for use by the child drivers
so I don't think a kerneldoc makes sense but I can add a comment to
state that it's internal
> > +unsigned int madera_get_num_micbias(struct madera *madera);
> > +unsigned int madera_get_num_childbias(struct madera *madera,
> > + unsigned int micbias);
> > +
> > +const char *madera_name_from_type(enum madera_type type);
> > +
> > +static inline int madera_call_notifiers(struct madera *madera,
> > + unsigned long event,
> > + void *data)
> > +{
> > + return blocking_notifier_call_chain(&madera->notifier, event, data);
> > +}
> > +#endif
> > diff --git a/include/linux/mfd/madera/pdata.h b/include/linux/mfd/madera/pdata.h
> > new file mode 100644
> > index 0000000..6d930aa
> > --- /dev/null
> > +++ b/include/linux/mfd/madera/pdata.h
> > @@ -0,0 +1,88 @@
> > +/*
> > + * Platform data for Cirrus Logic Madera codecs
> > + *
> > + * Copyright 2015-2017 Cirrus Logic
> > + *
> > + * This program is free software; you can redistribute it and/or modify
> > + * it under the terms of the GNU General Public License version 2 as
> > + * published by the Free Software Foundation.
> > + */
> > +
> > +#ifndef MADERA_PDATA_H
> > +#define MADERA_PDATA_H
> > +
> > +#include <linux/kernel.h>
> > +#include <linux/regulator/machine.h>
> > +
>
> Why the '\n'?
>
> > +#include <linux/regulator/madera-ldo1.h>
> > +#include <linux/regulator/madera-micsupp.h>
> > +#include <linux/irqchip/irq-madera-pdata.h>
> > +#include <sound/madera-pdata.h>
>
> Alphabetical
>
> > +#define MADERA_MAX_MICBIAS 4
> > +#define MADERA_MAX_CHILD_MICBIAS 4
> > +
> > +#define MADERA_MAX_GPSW 2
> > +
> > +struct pinctrl_map;
> > +
> > +/** MICBIAS pin configuration */
>
> Kerneldoc comment with no kerneldoc ??
>
> Same as below.
>
> > +struct madera_micbias_pin_pdata {
> > + /** Regulator configuration for pin switch */
>
> Just use Kerneldoc instead.
>
> Same for all of these structs.
>
> > + struct regulator_init_data init_data;
> > +};
> > +
> > +/** Regulator configuration for an on-chip MICBIAS */
> > +struct madera_micbias_pdata {
> > + /** Configuration of the MICBIAS generator */
> > + struct regulator_init_data init_data;
> > +
> > + bool ext_cap; /** External capacitor fitted */
> > +
> > + /**
> > + * Configuration for each output pin from this MICBIAS
> > + * (Not used on CS47L85 and WM1840)
> > + */
> > + struct madera_micbias_pin_pdata pin[MADERA_MAX_CHILD_MICBIAS];
> > +};
> > +
> > +struct madera_pdata {
> > + /** GPIO controlling /RESET, if any */
> > + int reset;
> > +
> > + /** Substruct of pdata for the LDO1 regulator */
> > + struct madera_ldo1_pdata ldo1;
> > +
> > + /** Substruct of pdata for the MICSUPP regulator */
> > + struct madera_micsupp_pdata micsupp;
> > +
> > + /** Substruct of pdata for the irqchip driver */
> > + struct madera_irqchip_pdata irqchip;
> > +
> > + /** Base GPIO */
> > + int gpio_base;
> > +
> > + /**
> > + * Array of GPIO configurations
> > + * See Documentation/pinctrl.txt
> > + */
> > + const struct pinctrl_map *gpio_configs;
> > + int n_gpio_configs;
> > +
> > + /** MICBIAS configurations */
> > + struct madera_micbias_pdata micbias[MADERA_MAX_MICBIAS];
> > +
> > + /**
> > + * Substructure of pdata for the ASoC codec driver
> > + * See include/sound/madera-pdata.h
> > + */
> > + struct madera_codec_pdata codec;
> > +
> > + /**
> > + * General purpose switch mode setting
> > + * See the SW1_MODE field in the datasheet for the available values
> > + */
> > + u32 gpsw[MADERA_MAX_GPSW];
> > +};
> > +
> > +#endif
>
On Wed, 19 Apr 2017, Richard Fitzgerald wrote:
> On Wed, 2017-04-12 at 13:54 +0100, Lee Jones wrote:
> > On Wed, 05 Apr 2017, Richard Fitzgerald wrote:
> >
> > > 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 <[email protected]>
> > > Signed-off-by: Nikesh Oswal <[email protected]>
> > > Signed-off-by: Richard Fitzgerald <[email protected]>
> > > ---
> > > Documentation/devicetree/bindings/mfd/madera.txt | 79 +++
> > > MAINTAINERS | 3 +
> > > drivers/mfd/Kconfig | 23 +
> > > drivers/mfd/Makefile | 4 +
> > > drivers/mfd/madera-core.c | 689 +++++++++++++++++++++++
> > > drivers/mfd/madera-i2c.c | 130 +++++
> > > drivers/mfd/madera-spi.c | 131 +++++
> > > drivers/mfd/madera.h | 52 ++
> > > include/linux/mfd/madera/core.h | 175 ++++++
> > > include/linux/mfd/madera/pdata.h | 88 +++
> > > 10 files changed, 1374 insertions(+)
> > > create mode 100644 Documentation/devicetree/bindings/mfd/madera.txt
> > > create mode 100644 drivers/mfd/madera-core.c
> > > create mode 100644 drivers/mfd/madera-i2c.c
> > > create mode 100644 drivers/mfd/madera-spi.c
> > > create mode 100644 drivers/mfd/madera.h
> > > create mode 100644 include/linux/mfd/madera/core.h
> > > create mode 100644 include/linux/mfd/madera/pdata.h
> > >
> > > diff --git a/Documentation/devicetree/bindings/mfd/madera.txt b/Documentation/devicetree/bindings/mfd/madera.txt
> > > new file mode 100644
> > > index 0000000..a6c3260
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/mfd/madera.txt
> > > @@ -0,0 +1,79 @@
> > > +Cirrus Logic Madera class audio codecs multi-function device
> > > +
> > > +These devices are audio SoCs with extensive digital capabilities and a range
> > > +of analogue I/O.
> > > +
> > > +See also the child driver bindings in:
> > > +bindings/extcon/extcon-madera.txt
> > > +bindings/gpio/gpio-madera.txt
> > > +bindings/interrupt-controller/cirrus,madera.txt
> > > +bindings/pinctrl/cirrus,madera-pinctrl.txt
> > > +bindings/regulator/madera-ldo1.txt
> > > +bindings/regulator/madera-micsupp.txt
> > > +bindings/sound/madera.txt
> > > +
> > > +Required properties:
> > > +
> > > + - compatible : One of the following chip-specific strings:
> > > + "cirrus,cs47l35"
> > > + "cirrus,cs47l85"
> > > + "cirrus,cs47l90"
> > > + "cirrus,cs47l91"
> > > + "cirrus,wm1840"
> > > +
> > > + - reg : I2C slave address when connected using I2C, chip select number when
> > > + using SPI.
> > > +
> > > + - DCVDD-supply : Power supply for the device as defined in
> > > + bindings/regulator/regulator.txt
> > > + Mandatory on CS47L35, CS47L90, CS47L91
> > > + Optional on CS47L85, WM1840
> > > +
> > > + - AVDD-supply, DBVDD1-supply, DBVDD2-supply, CPVDD1-supply, CPVDD2-supply :
> > > + Power supplies for the device
> > > +
> > > + - DBVDD3-supply, DBVDD4-supply : Power supplies for the device
> > > + (CS47L85, CS47L90, CS47L91, WM1840)
> > > +
> > > + - SPKVDDL-supply, SPKVDDR-supply : Power supplies for the device
> > > + (CS47L85, WM1840)
> > > +
> > > + - SPKVDD-supply : Power supply for the device
> > > + (CS47L35)
> > > +
> > > +Optional properties:
> > > +
> > > + - MICVDD-supply : Power supply, only need to be specified if
> > > + powered externally
> > > +
> > > + - reset-gpios : One entry specifying the GPIO controlling /RESET.
> > > + As defined in bindings/gpio.txt.
> > > + Although optional, it is strongly recommended to use a hardware reset
> > > +
> > > + - MICBIASx : Initial data for the MICBIAS regulators, as covered in
> > > + Documentation/devicetree/bindings/regulator/regulator.txt.
> > > + One for each MICBIAS generator (MICBIAS1, MICBIAS2, ...)
> > > + (all codecs)
> > > +
> > > + One for each output pin (MICBIAS1A, MIBCIAS1B, MICBIAS2A, ...)
> > > + (all except CS47L85, WM1840)
> > > +
> > > + The following following additional property is supported for the generator
> > > + nodes:
> > > + - cirrus,ext-cap : Set to 1 if the MICBIAS has external decoupling
> > > + capacitors attached.
> > > +
> > > +Example:
> > > +
> > > +codec: cs47l85@0 {
> >
> > Node names should be generic.
> >
> > You can swap these round if you want, so:
> >
> > cs47l85: codec@0 {
> >
> > ... is valid.
> >
> > > + compatible = "cirrus,cs47l85";
> > > + reg = <0>;
> > > +
> > > + reset-gpios = <&gpio 0>;
> > > +
> > > + MICBIAS1 {
> > > + regulator-min-microvolt = <900000>;
> > > + regulator-max-microvolt = <3300000>;
> > > + cirrus,ext-cap = <1>;
> > > + };
> > > +};
> > > diff --git a/MAINTAINERS b/MAINTAINERS
> > > index 02995c9..d28e53f 100644
> > > --- a/MAINTAINERS
> > > +++ b/MAINTAINERS
> > > @@ -3266,7 +3266,10 @@ L: [email protected]
> > > T: git https://github.com/CirrusLogic/linux-drivers.git
> > > W: https://github.com/CirrusLogic/linux-drivers/wiki
> > > S: Supported
> > > +F: Documentation/devicetree/bindings/mfd/madera.txt
> > > F: include/linux/mfd/madera/*
> > > +F: drivers/mfd/madera*
> > > +F: drivers/mfd/cs47l*
> > >
> > > CLEANCACHE API
> > > M: Konrad Rzeszutek Wilk <[email protected]>
> > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig
> > > index ce3a918..f0f9979 100644
> > > --- a/drivers/mfd/Kconfig
> > > +++ b/drivers/mfd/Kconfig
> > > @@ -203,6 +203,29 @@ config MFD_CROS_EC_SPI
> > > response time cannot be guaranteed, we support ignoring
> > > 'pre-amble' bytes before the response actually starts.
> > >
> > > +config MFD_MADERA
> > > + bool
> > > + select REGMAP
> > > + select MFD_CORE
> > > +
> > > +config MFD_MADERA_I2C
> > > + tristate "Cirrus Logic Madera codecs with I2C"
> > > + select MFD_MADERA
> > > + select REGMAP_I2C
> > > + depends on I2C
> > > + help
> > > + Support for the Cirrus Logic Madera platform audio SoC
> > > + core functionality controlled via I2C.
> > > +
> > > +config MFD_MADERA_SPI
> > > + tristate "Cirrus Logic Madera codecs with SPI"
> > > + select MFD_MADERA
> > > + select REGMAP_SPI
> > > + depends on SPI_MASTER
> > > + help
> > > + Support for the Cirrus Logic Madera platform audio SoC
> > > + core functionality controlled via SPI.
> > > +
> > > config MFD_ASIC3
> > > bool "Compaq ASIC3"
> > > depends on GPIOLIB && ARM
> > > diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile
> > > index fa86dbe..c41f6c9 100644
> > > --- a/drivers/mfd/Makefile
> > > +++ b/drivers/mfd/Makefile
> > > @@ -72,6 +72,10 @@ obj-$(CONFIG_MFD_WM8350_I2C) += wm8350-i2c.o
> > > wm8994-objs := wm8994-core.o wm8994-irq.o wm8994-regmap.o
> > > obj-$(CONFIG_MFD_WM8994) += wm8994.o
> > >
> > > +obj-$(CONFIG_MFD_MADERA) += madera-core.o
> > > +obj-$(CONFIG_MFD_MADERA_I2C) += madera-i2c.o
> > > +obj-$(CONFIG_MFD_MADERA_SPI) += madera-spi.o
> > > +
> > > obj-$(CONFIG_TPS6105X) += tps6105x.o
> > > obj-$(CONFIG_TPS65010) += tps65010.o
> > > obj-$(CONFIG_TPS6507X) += tps6507x.o
> > > diff --git a/drivers/mfd/madera-core.c b/drivers/mfd/madera-core.c
> > > new file mode 100644
> > > index 0000000..ab5fe9b
> > > --- /dev/null
> > > +++ b/drivers/mfd/madera-core.c
> > > @@ -0,0 +1,689 @@
> > > +/*
> > > + * Core MFD support for Cirrus Logic Madera codecs
> > > + *
> > > + * Copyright 2015-2017 Cirrus Logic
> > > + *
> > > + * This program is free software; you can redistribute it and/or modify
> > > + * it under the terms of the GNU General Public License version 2 as
> > > + * published by the Free Software Foundation.
> > > + */
> > > +
> > > +#include <linux/device.h>
> > > +#include <linux/delay.h>
> > > +#include <linux/err.h>
> > > +#include <linux/gpio.h>
> > > +#include <linux/mfd/core.h>
> > > +#include <linux/module.h>
> > > +#include <linux/notifier.h>
> > > +#include <linux/of.h>
> > > +#include <linux/of_device.h>
> > > +#include <linux/of_gpio.h>
> > > +#include <linux/platform_device.h>
> > > +#include <linux/pm_runtime.h>
> > > +#include <linux/regmap.h>
> > > +#include <linux/regulator/consumer.h>
> > > +#include <linux/regulator/machine.h>
> > > +#include <linux/regulator/of_regulator.h>
> > > +
> > > +#include <linux/mfd/madera/core.h>
> > > +#include <linux/mfd/madera/registers.h>
> > > +
> > > +#include "madera.h"
> > > +
> > > +#define CS47L35_SILICON_ID 0x6360
> > > +#define CS47L85_SILICON_ID 0x6338
> > > +#define CS47L90_SILICON_ID 0x6364
> > > +
> > > +#define MADERA_32KZ_MCLK2 1
> > > +
> > > +static const char * const madera_core_supplies[] = {
> > > + "AVDD",
> > > + "DBVDD1",
> > > +};
> > > +
> > > +static const struct mfd_cell madera_ldo1_devs[] = {
> > > + { .name = "madera-ldo1", .of_compatible = "cirrus,madera-ldo1" },
> > > +};
> > > +
> > > +static const struct mfd_cell cs47l35_devs[] = {
> > > + { .name = "madera-pinctrl", .of_compatible = "cirrus,madera-pinctrl" },
> > > + { .name = "madera-irq", },
> >
> > I believe this should be "interrupt-controller".
> >
>
> I don't think that's the case. I checked other irchip drivers and they
> have no particular standard naming. At least one is called
> "something-irq", none are called "something-interrupt-controller"
>
> > irq is ambiguous.
> >
>
> I can't really see what other driver this could be confused with,
> especially as it's specified as madera-* so the alternative drivers are
> limited. Given the limited set of drivers I think it's clear enough it's
> the driver for the IRQ and a longer name doesn't add information.
>
> > Same goes for the ones below.
> >
>
> Ditto. madera-micsupp will be replaced by the existing arizona-micsupp.
> Most gpio drivers are called "something-gpio". Extcon is the name of a
> driver subsystem so should be sufficiently clear. Likewise madera-codec.
I meant just the "-irq" entries.
... but I'm not 100% convinced that calling it "-irq" a terrible idea,
just that "irq-controller" or "interrupt-controller" would be better.
Either way, it's not a blocking point.
> > > + { .name = "madera-micsupp", .of_compatible = "cirrus,madera-micsupp" },
> > > + { .name = "madera-gpio", .of_compatible = "cirrus,madera-gpio" },
> > > + { .name = "madera-extcon", .of_compatible = "cirrus,madera-extcon" },
> > > + { .name = "cs47l35-codec", .of_compatible = "cirrus,cs47l35-codec" },
> > > + { .name = "madera-haptics", .of_compatible = "cirrus,madera-haptics" },
> > > +};
> > > +
> > > +static const struct mfd_cell cs47l85_devs[] = {
> > > + { .name = "madera-pinctrl", .of_compatible = "cirrus,madera-pinctrl" },
> > > + { .name = "madera-irq", },
> > > + { .name = "madera-micsupp", .of_compatible = "cirrus,madera-micsupp" },
> > > + { .name = "madera-gpio", .of_compatible = "cirrus,madera-gpio" },
> > > + { .name = "madera-extcon", .of_compatible = "cirrus,madera-extcon" },
> > > + { .name = "cs47l85-codec", .of_compatible = "cirrus,cs47l85-codec" },
> > > + { .name = "madera-haptics", .of_compatible = "cirrus,madera-haptics" },
> > > +};
> > > +
> > > +static const struct mfd_cell cs47l90_devs[] = {
> > > + { .name = "madera-pinctrl", .of_compatible = "cirrus,madera-pinctrl" },
> > > + { .name = "madera-irq", },
> > > + { .name = "madera-micsupp", .of_compatible = "cirrus,madera-micsupp" },
> > > + { .name = "madera-gpio", .of_compatible = "cirrus,madera-gpio" },
> > > + { .name = "madera-extcon", .of_compatible = "cirrus,madera-extcon" },
> > > + { .name = "cs47l90-codec", .of_compatible = "cirrus,cs47l90-codec" },
> > > + { .name = "madera-haptics", .of_compatible = "cirrus,madera-haptics" },
> > > +};
> > > +
> > > +const char *madera_name_from_type(enum madera_type type)
> > > +{
> > > + switch (type) {
> > > + case CS47L35:
> > > + return "CS47L35";
> > > + case CS47L85:
> > > + return "CS47L85";
> > > + case CS47L90:
> > > + return "CS47L90";
> > > + case CS47L91:
> > > + return "CS47L91";
> > > + case WM1840:
> > > + return "WM1840";
> > > + default:
> > > + return "Unknown";
> > > + }
> > > +}
> > > +EXPORT_SYMBOL_GPL(madera_name_from_type);
> > > +
> > > +#define MADERA_BOOT_POLL_MAX_INTERVAL_US 5000
> > > +#define MADERA_BOOT_POLL_TIMEOUT_US 25000
> > > +
> > > +static int madera_wait_for_boot(struct madera *madera)
> > > +{
> > > + unsigned int val;
> > > + int ret;
> > > +
> > > + /*
> > > + * We can't use an interrupt as we need to runtime resume to do so,
> > > + * so we poll the status bit. This won't race with the interrupt
> > > + * handler because it will be blocked on runtime resume.
> > > + */
> > > + ret = regmap_read_poll_timeout(madera->regmap,
> > > + MADERA_IRQ1_RAW_STATUS_1,
> > > + val,
> > > + (val & MADERA_BOOT_DONE_STS1),
> > > + MADERA_BOOT_POLL_MAX_INTERVAL_US,
> > > + MADERA_BOOT_POLL_TIMEOUT_US);
> > > + /*
> > > + * BOOT_DONE defaults to unmasked on boot so we must ack it.
> > > + * Do this unconditionally to avoid interrupt storms
> > > + */
> > > + regmap_write(madera->regmap, MADERA_IRQ1_STATUS_1,
> > > + MADERA_BOOT_DONE_EINT1);
> > > +
> > > + if (ret)
> > > + dev_err(madera->dev, "Polling BOOT_DONE_STS failed: %d\n", ret);
> >
> > Why isn't this under the call to regmap_read_poll_timeout()?
> >
>
> It was intended to make it clear that we must ack the BOOT_DONE now no
> matter what and to avoid the potential with them the other way around of
> someone adding more code in the if (or just a ret) and so accidentally
> failing to do the ack. I could swap them but I think I prefer keeping
> them this way and changing the comment to say this.
Okay.
I'm going to assume that we are in agreement for all points that you
did not answer (which is good). I look forward to the next version.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog