#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 cs47l92_reva_16_patch[] = {
{ 0x3A2, 0x2C29 },
{ 0x3A3, 0x0E00 },
{ 0x281, 0x0000 },
{ 0x282, 0x0000 },
{ 0x4EA, 0x0100 },
{ 0x22B, 0x0000 },
{ 0x4A0, 0x0080 },
{ 0x4A1, 0x0000 },
{ 0x4A2, 0x0000 },
{ 0x180B, 0x033F },
{ 0x190B, 0x033F },
{ 0x442, 0x0304 },
{ 0x34C, 0x0003 },
{ 0x124, 0x0C49 },
{ 0x120, 0x0345 },
{ 0x120, 0x0305 },
{ 0x4FA, 0x5064 },
{ 0x1300, 0x050E },
{ 0x1302, 0x0101 },
{ 0x1380, 0x02E0 },
{ 0x1381, 0xF942 },
{ 0x1382, 0x04CE },
{ 0x1383, 0xFF06 },
{ 0x1390, 0x0304 },
{ 0x1391, 0xF8FF },
{ 0x1392, 0x04F3 },
{ 0x1393, 0xFF00 },
{ 0x13A0, 0x02E0 },
{ 0x13A1, 0xF942 },
{ 0x13A2, 0x04CE },
{ 0x13A3, 0xFF06 },
{ 0x13B0, 0x0304 },
{ 0x13B1, 0xF8FF },
{ 0x13B2, 0x04F3 },
{ 0x13B3, 0xFF00 },
{ 0x412, 0x0005 },
{ 0x41A, 0x0005 },
{ 0x422, 0x0005 },
};
static const struct reg_sequence cs47l92_reva_32_patch[] = {
{ 0x3030, 0x04A00C01 },
{ 0x3032, 0x0225F501 },
{ 0x3044, 0x04A00C00 },
{ 0x3046, 0x0225FF01 },
{ 0x3080, 0x04A00C01 },
{ 0x3082, 0x0226F501 },
{ 0x3094, 0x04A00C00 },
{ 0x3096, 0x0226FF01 },
{ 0x30D1, 0x04A10C01 },
{ 0x30D2, 0x0227F501 },
{ 0x30E4, 0x04A10C00 },
{ 0x30E6, 0x0227FF01 },
{ 0x3120, 0x04A10C01 },
{ 0x3122, 0x0228F501 },
{ 0x3134, 0x04A10C00 },
{ 0x3136, 0x0228FF01 },
{ 0x3170, 0x04A20C01 },
{ 0x3172, 0x022B0101 },
{ 0x3174, 0x0229F501 },
{ 0x3184, 0x04A20C00 },
{ 0x3186, 0x022B0100 },
{ 0x3188, 0x0229FF01 },
{ 0x31C0, 0x04A20C01 },
{ 0x31C2, 0x022B0001 },
{ 0x31C4, 0x022AF501 },
{ 0x31D4, 0x04A20C00 },
{ 0x31D6, 0x022B0000 },
{ 0x31D8, 0x022AFF01 },
};
int cs47l92_patch(struct madera *madera)
{
int ret;
ret = regmap_register_patch(madera->regmap,
cs47l92_reva_16_patch,
ARRAY_SIZE(cs47l92_reva_16_patch));
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,
cs47l92_reva_32_patch,
ARRAY_SIZE(cs47l92_reva_32_patch));
if (ret < 0) {
dev_err(madera->dev,
"Error in applying 32-bit patch: %d\n", ret);
return ret;
}
return 0;
}
EXPORT_SYMBOL_GPL(cs47l92_patch);
static const struct reg_default cs47l92_reg_default[] = {
{ 0x00000020, 0x0000 },
{ 0x00000021, 0x1000 },
{ 0x00000022, 0x0000 },
{ 0x00000023, 0x1000 },
{ 0x00000024, 0x0000 },
{ 0x00000030, 0x0000 },
{ 0x00000031, 0x0100 },
{ 0x00000032, 0x0100 },
{ 0x00000061, 0x01ff },
{ 0x00000062, 0x01ff },
{ 0x00000063, 0x01ff },
{ 0x00000064, 0x01ff },
{ 0x00000090, 0x0000 },
{ 0x00000091, 0x7fff },
{ 0x00000092, 0x0000 },
{ 0x00000093, 0x0000 },
{ 0x00000094, 0x0000 },
{ 0x00000095, 0x0000 },
{ 0x00000096, 0x0000 },
{ 0x00000097, 0x0000 },
{ 0x000000a0, 0x0000 },
{ 0x00000100, 0x0002 },
{ 0x00000101, 0x0404 },
{ 0x00000102, 0x0011 },
{ 0x00000103, 0x0011 },
{ 0x00000104, 0x0011 },
{ 0x00000112, 0x0305 },
{ 0x00000113, 0x0011 },
{ 0x00000114, 0x0011 },
{ 0x00000120, 0x0305 },
{ 0x00000122, 0x0000 },
{ 0x00000149, 0x0000 },
{ 0x0000014a, 0x0000 },
{ 0x00000152, 0x0000 },
{ 0x00000153, 0x0000 },
{ 0x00000154, 0x0000 },
{ 0x00000155, 0x0000 },
{ 0x00000156, 0x0000 },
{ 0x00000171, 0x7004 },
{ 0x00000172, 0x0004 },
{ 0x00000173, 0x0000 },
{ 0x00000174, 0x0000 },
{ 0x00000175, 0x0001 },
{ 0x00000176, 0x8000 },
{ 0x00000177, 0x0680 },
{ 0x00000178, 0x21f0 },
{ 0x00000179, 0x0000 },
{ 0x0000017a, 0x0000 },
{ 0x0000017b, 0x0011 },
{ 0x0000017d, 0x33e8 },
{ 0x00000181, 0x7000 },
{ 0x00000182, 0x0004 },
{ 0x00000183, 0x0000 },
{ 0x00000184, 0x0000 },
{ 0x00000185, 0x0001 },
{ 0x00000186, 0x0000 },
{ 0x0000018e, 0x0c04 },
{ 0x00000191, 0x7000 },
{ 0x00000192, 0x0004 },
{ 0x00000193, 0x0000 },
{ 0x00000194, 0x0000 },
{ 0x00000195, 0x0001 },
{ 0x00000196, 0x8000 },
{ 0x00000197, 0x0680 },
{ 0x00000198, 0x21f0 },
{ 0x00000199, 0x0000 },
{ 0x0000019a, 0x0000 },
{ 0x0000019b, 0x0011 },
{ 0x0000019d, 0x33e8 },
{ 0x000001a1, 0x7000 },
{ 0x000001a2, 0x0004 },
{ 0x000001a3, 0x0000 },
{ 0x000001a4, 0x0000 },
{ 0x000001a5, 0x0001 },
{ 0x000001a6, 0x0000 },
{ 0x000001ae, 0x0c04 },
{ 0x00000200, 0x0006 },
{ 0x00000213, 0x03e4 },
{ 0x00000218, 0x00e6 },
{ 0x00000219, 0x00e6 },
{ 0x0000021c, 0x2222 },
{ 0x0000021e, 0x0022 },
{ 0x00000293, 0x0080 },
{ 0x00000299, 0x0000 },
{ 0x0000029b, 0x0000 },
{ 0x000002a2, 0x0010 },
{ 0x000002a3, 0x1102 },
{ 0x000002a4, 0x009f },
{ 0x000002a6, 0x3d3d },
{ 0x000002a7, 0x3d3d },
{ 0x000002a8, 0x333d },
{ 0x000002a9, 0x202d },
{ 0x000002b2, 0x0010 },
{ 0x000002b3, 0x1102 },
{ 0x000002b4, 0x009f },
{ 0x000002b6, 0x3d3d },
{ 0x000002b7, 0x3d3d },
{ 0x000002b8, 0x333d },
{ 0x000002b9, 0x202d },
{ 0x000002c6, 0x0210 },
{ 0x000002c8, 0x0000 },
{ 0x000002d3, 0x0000 },
{ 0x00000300, 0x0000 },
{ 0x00000308, 0x0400 },
{ 0x00000309, 0x0022 },
{ 0x0000030c, 0x0002 },
{ 0x00000310, 0x0080 },
{ 0x00000311, 0x0180 },
{ 0x00000312, 0x0500 },
{ 0x00000313, 0x0000 },
{ 0x00000314, 0x0080 },
{ 0x00000315, 0x0180 },
{ 0x00000316, 0x0000 },
{ 0x00000317, 0x0000 },
{ 0x00000318, 0x0080 },
{ 0x00000319, 0x0180 },
{ 0x0000031a, 0x0500 },
{ 0x0000031b, 0x0000 },
{ 0x0000031c, 0x0080 },
{ 0x0000031d, 0x0180 },
{ 0x0000031e, 0x0000 },
{ 0x0000031f, 0x0000 },
{ 0x00000320, 0x0000 },
{ 0x00000321, 0x0180 },
{ 0x00000322, 0x0500 },
{ 0x00000323, 0x0000 },
{ 0x00000324, 0x0000 },
{ 0x00000325, 0x0180 },
{ 0x00000326, 0x0000 },
{ 0x00000327, 0x0000 },
{ 0x00000328, 0x0000 },
{ 0x00000329, 0x0180 },
{ 0x0000032a, 0x0500 },
{ 0x0000032b, 0x0000 },
{ 0x0000032c, 0x0000 },
{ 0x0000032d, 0x0180 },
{ 0x0000032e, 0x0000 },
{ 0x0000032f, 0x0000 },
{ 0x00000400, 0x0000 },
{ 0x00000408, 0x0040 },
{ 0x00000409, 0x0022 },
{ 0x00000410, 0x0080 },
{ 0x00000411, 0x0180 },
{ 0x00000412, 0x0005 },
{ 0x00000413, 0x0001 },
{ 0x00000414, 0x0080 },
{ 0x00000415, 0x0180 },
{ 0x00000417, 0x0002 },
{ 0x00000418, 0x0080 },
{ 0x00000419, 0x0180 },
{ 0x0000041a, 0x0005 },
{ 0x0000041b, 0x0004 },
{ 0x0000041c, 0x0080 },
{ 0x0000041d, 0x0180 },
{ 0x0000041f, 0x0008 },
{ 0x00000420, 0x0080 },
{ 0x00000421, 0x0180 },
{ 0x00000422, 0x0005 },
{ 0x00000423, 0x0010 },
{ 0x00000424, 0x0080 },
{ 0x00000425, 0x0180 },
{ 0x00000427, 0x0020 },
{ 0x00000430, 0x0000 },
{ 0x00000431, 0x0180 },
{ 0x00000433, 0x0100 },
{ 0x00000434, 0x0000 },
{ 0x00000435, 0x0180 },
{ 0x00000437, 0x0200 },
{ 0x00000450, 0x0000 },
{ 0x00000451, 0x0000 },
{ 0x00000458, 0x0000 },
{ 0x00000490, 0x0069 },
{ 0x00000491, 0x0000 },
{ 0x000004a0, 0x0080 },
{ 0x000004a1, 0x0000 },
{ 0x000004a2, 0x0000 },
{ 0x00000500, 0x000c },
{ 0x00000501, 0x0000 },
{ 0x00000502, 0x0000 },
{ 0x00000503, 0x0000 },
{ 0x00000504, 0x0000 },
{ 0x00000506, 0x0040 },
{ 0x00000507, 0x1818 },
{ 0x00000508, 0x1818 },
{ 0x00000509, 0x0000 },
{ 0x0000050a, 0x0001 },
{ 0x0000050b, 0x0002 },
{ 0x0000050c, 0x0003 },
{ 0x0000050d, 0x0004 },
{ 0x0000050e, 0x0005 },
{ 0x0000050f, 0x0006 },
{ 0x00000510, 0x0007 },
{ 0x00000511, 0x0000 },
{ 0x00000512, 0x0001 },
{ 0x00000513, 0x0002 },
{ 0x00000514, 0x0003 },
{ 0x00000515, 0x0004 },
{ 0x00000516, 0x0005 },
{ 0x00000517, 0x0006 },
{ 0x00000518, 0x0007 },
{ 0x00000519, 0x0000 },
{ 0x0000051a, 0x0000 },
{ 0x00000540, 0x000c },
{ 0x00000541, 0x0000 },
{ 0x00000542, 0x0000 },
{ 0x00000543, 0x0000 },
{ 0x00000544, 0x0000 },
{ 0x00000546, 0x0040 },
{ 0x00000547, 0x1818 },
{ 0x00000548, 0x1818 },
{ 0x00000549, 0x0000 },
{ 0x0000054a, 0x0001 },
{ 0x0000054b, 0x0002 },
{ 0x0000054c, 0x0003 },
{ 0x0000054d, 0x0004 },
{ 0x0000054e, 0x0005 },
{ 0x0000054f, 0x0006 },
{ 0x00000550, 0x0007 },
{ 0x00000551, 0x0000 },
{ 0x00000552, 0x0001 },
{ 0x00000553, 0x0002 },
{ 0x00000554, 0x0003 },
{ 0x00000555, 0x0004 },
{ 0x00000556, 0x0005 },
{ 0x00000557, 0x0006 },
{ 0x00000558, 0x0007 },
{ 0x00000559, 0x0000 },
{ 0x0000055a, 0x0000 },
{ 0x00000580, 0x000c },
{ 0x00000581, 0x0000 },
{ 0x00000582, 0x0000 },
{ 0x00000583, 0x0000 },
{ 0x00000584, 0x0000 },
{ 0x00000586, 0x0040 },
{ 0x00000587, 0x1818 },
{ 0x00000588, 0x1818 },
{ 0x00000589, 0x0000 },
{ 0x0000058a, 0x0001 },
{ 0x0000058b, 0x0002 },
{ 0x0000058c, 0x0003 },
{ 0x0000058d, 0x0004 },
{ 0x0000058e, 0x0005 },
{ 0x0000058f, 0x0006 },
{ 0x00000590, 0x0007 },
{ 0x00000591, 0x0000 },
{ 0x00000592, 0x0001 },
{ 0x00000593, 0x0002 },
{ 0x00000594, 0x0003 },
{ 0x00000595, 0x0004 },
{ 0x00000596, 0x0005 },
{ 0x00000597, 0x0006 },
{ 0x00000598, 0x0007 },
{ 0x00000599, 0x0000 },
{ 0x0000059a, 0x0000 },
{ 0x000005c2, 0x0000 },
{ 0x000005e3, 0x0000 },
{ 0x000005e5, 0x0000 },
{ 0x000005e6, 0x0000 },
{ 0x000005e7, 0x0000 },
{ 0x000005e8, 0x0000 },
{ 0x000005e9, 0x0000 },
{ 0x000005ea, 0x0000 },
{ 0x000005eb, 0x0000 },
{ 0x000005ec, 0x0000 },
{ 0x000005f5, 0x0000 },
{ 0x000005f6, 0x0000 },
{ 0x00000640, 0x0000 },
{ 0x00000641, 0x0080 },
{ 0x00000642, 0x0000 },
{ 0x00000643, 0x0080 },
{ 0x00000644, 0x0000 },
{ 0x00000645, 0x0080 },
{ 0x00000646, 0x0000 },
{ 0x00000647, 0x0080 },
{ 0x00000648, 0x0000 },
{ 0x00000649, 0x0080 },
{ 0x0000064a, 0x0000 },
{ 0x0000064b, 0x0080 },
{ 0x0000064c, 0x0000 },
{ 0x0000064d, 0x0080 },
{ 0x0000064e, 0x0000 },
{ 0x0000064f, 0x0080 },
{ 0x00000680, 0x0000 },
{ 0x00000681, 0x0080 },
{ 0x00000682, 0x0000 },
{ 0x00000683, 0x0080 },
{ 0x00000684, 0x0000 },
{ 0x00000685, 0x0080 },
{ 0x00000686, 0x0000 },
{ 0x00000687, 0x0080 },
{ 0x00000688, 0x0000 },
{ 0x00000689, 0x0080 },
{ 0x0000068a, 0x0000 },
{ 0x0000068b, 0x0080 },
{ 0x0000068c, 0x0000 },
{ 0x0000068d, 0x0080 },
{ 0x0000068e, 0x0000 },
{ 0x0000068f, 0x0080 },
{ 0x00000690, 0x0000 },
{ 0x00000691, 0x0080 },
{ 0x00000692, 0x0000 },
{ 0x00000693, 0x0080 },
{ 0x00000694, 0x0000 },
{ 0x00000695, 0x0080 },
{ 0x00000696, 0x0000 },
{ 0x00000697, 0x0080 },
{ 0x00000698, 0x0000 },
{ 0x00000699, 0x0080 },
{ 0x0000069a, 0x0000 },
{ 0x0000069b, 0x0080 },
{ 0x0000069c, 0x0000 },
{ 0x0000069d, 0x0080 },
{ 0x0000069e, 0x0000 },
{ 0x0000069f, 0x0080 },
{ 0x000006a0, 0x0000 },
{ 0x000006a1, 0x0080 },
{ 0x000006a2, 0x0000 },
{ 0x000006a3, 0x0080 },
{ 0x000006a4, 0x0000 },
{ 0x000006a5, 0x0080 },
{ 0x000006a6, 0x0000 },
{ 0x000006a7, 0x0080 },
{ 0x000006a8, 0x0000 },
{ 0x000006a9, 0x0080 },
{ 0x000006aa, 0x0000 },
{ 0x000006ab, 0x0080 },
{ 0x000006ac, 0x0000 },
{ 0x000006ad, 0x0080 },
{ 0x000006ae, 0x0000 },
{ 0x000006af, 0x0080 },
{ 0x000006c0, 0x0000 },
{ 0x000006c1, 0x0080 },
{ 0x000006c2, 0x0000 },
{ 0x000006c3, 0x0080 },
{ 0x000006c4, 0x0000 },
{ 0x000006c5, 0x0080 },
{ 0x000006c6, 0x0000 },
{ 0x000006c7, 0x0080 },
{ 0x000006c8, 0x0000 },
{ 0x000006c9, 0x0080 },
{ 0x000006ca, 0x0000 },
{ 0x000006cb, 0x0080 },
{ 0x000006cc, 0x0000 },
{ 0x000006cd, 0x0080 },
{ 0x000006ce, 0x0000 },
{ 0x000006cf, 0x0080 },
{ 0x00000700, 0x0000 },
{ 0x00000701, 0x0080 },
{ 0x00000702, 0x0000 },
{ 0x00000703, 0x0080 },
{ 0x00000704, 0x0000 },
{ 0x00000705, 0x0080 },
{ 0x00000706, 0x0000 },
{ 0x00000707, 0x0080 },
{ 0x00000708, 0x0000 },
{ 0x00000709, 0x0080 },
{ 0x0000070a, 0x0000 },
{ 0x0000070b, 0x0080 },
{ 0x0000070c, 0x0000 },
{ 0x0000070d, 0x0080 },
{ 0x0000070e, 0x0000 },
{ 0x0000070f, 0x0080 },
{ 0x00000710, 0x0000 },
{ 0x00000711, 0x0080 },
{ 0x00000712, 0x0000 },
{ 0x00000713, 0x0080 },
{ 0x00000714, 0x0000 },
{ 0x00000715, 0x0080 },
{ 0x00000716, 0x0000 },
{ 0x00000717, 0x0080 },
{ 0x00000718, 0x0000 },
{ 0x00000719, 0x0080 },
{ 0x0000071a, 0x0000 },
{ 0x0000071b, 0x0080 },
{ 0x0000071c, 0x0000 },
{ 0x0000071d, 0x0080 },
{ 0x0000071e, 0x0000 },
{ 0x0000071f, 0x0080 },
{ 0x00000720, 0x0000 },
{ 0x00000721, 0x0080 },
{ 0x00000722, 0x0000 },
{ 0x00000723, 0x0080 },
{ 0x00000724, 0x0000 },
{ 0x00000725, 0x0080 },
{ 0x00000726, 0x0000 },
{ 0x00000727, 0x0080 },
{ 0x00000728, 0x0000 },
{ 0x00000729, 0x0080 },
{ 0x0000072a, 0x0000 },
{ 0x0000072b, 0x0080 },
{ 0x0000072c, 0x0000 },
{ 0x0000072d, 0x0080 },
{ 0x0000072e, 0x0000 },
{ 0x0000072f, 0x0080 },
{ 0x00000730, 0x0000 },
{ 0x00000731, 0x0080 },
{ 0x00000732, 0x0000 },
{ 0x00000733, 0x0080 },
{ 0x00000734, 0x0000 },
{ 0x00000735, 0x0080 },
{ 0x00000736, 0x0000 },
{ 0x00000737, 0x0080 },
{ 0x00000738, 0x0000 },
{ 0x00000739, 0x0080 },
{ 0x0000073a, 0x0000 },
{ 0x0000073b, 0x0080 },
{ 0x0000073c, 0x0000 },
{ 0x0000073d, 0x0080 },
{ 0x0000073e, 0x0000 },
{ 0x0000073f, 0x0080 },
{ 0x00000740, 0x0000 },
{ 0x00000741, 0x0080 },
{ 0x00000742, 0x0000 },
{ 0x00000743, 0x0080 },
{ 0x00000744, 0x0000 },
{ 0x00000745, 0x0080 },
{ 0x00000746, 0x0000 },
{ 0x00000747, 0x0080 },
{ 0x00000748, 0x0000 },
{ 0x00000749, 0x0080 },
{ 0x0000074a, 0x0000 },
{ 0x0000074b, 0x0080 },
{ 0x0000074c, 0x0000 },
{ 0x0000074d, 0x0080 },
{ 0x0000074e, 0x0000 },
{ 0x0000074f, 0x0080 },
{ 0x00000750, 0x0000 },
{ 0x00000751, 0x0080 },
{ 0x00000752, 0x0000 },
{ 0x00000753, 0x0080 },
{ 0x00000754, 0x0000 },
{ 0x00000755, 0x0080 },
{ 0x00000756, 0x0000 },
{ 0x00000757, 0x0080 },
{ 0x00000758, 0x0000 },
{ 0x00000759, 0x0080 },
{ 0x0000075a, 0x0000 },
{ 0x0000075b, 0x0080 },
{ 0x0000075c, 0x0000 },
{ 0x0000075d, 0x0080 },
{ 0x0000075e, 0x0000 },
{ 0x0000075f, 0x0080 },
{ 0x00000760, 0x0000 },
{ 0x00000761, 0x0080 },
{ 0x00000762, 0x0000 },
{ 0x00000763, 0x0080 },
{ 0x00000764, 0x0000 },
{ 0x00000765, 0x0080 },
{ 0x00000766, 0x0000 },
{ 0x00000767, 0x0080 },
{ 0x00000768, 0x0000 },
{ 0x00000769, 0x0080 },
{ 0x0000076a, 0x0000 },
{ 0x0000076b, 0x0080 },
{ 0x0000076c, 0x0000 },
{ 0x0000076d, 0x0080 },
{ 0x0000076e, 0x0000 },
{ 0x0000076f, 0x0080 },
{ 0x00000770, 0x0000 },
{ 0x00000771, 0x0080 },
{ 0x00000772, 0x0000 },
{ 0x00000773, 0x0080 },
{ 0x00000774, 0x0000 },
{ 0x00000775, 0x0080 },
{ 0x00000776, 0x0000 },
{ 0x00000777, 0x0080 },
{ 0x00000778, 0x0000 },
{ 0x00000779, 0x0080 },
{ 0x0000077a, 0x0000 },
{ 0x0000077b, 0x0080 },
{ 0x0000077c, 0x0000 },
{ 0x0000077d, 0x0080 },
{ 0x0000077e, 0x0000 },
{ 0x0000077f, 0x0080 },
{ 0x00000780, 0x0000 },
{ 0x00000781, 0x0080 },
{ 0x00000782, 0x0000 },
{ 0x00000783, 0x0080 },
{ 0x00000784, 0x0000 },
{ 0x00000785, 0x0080 },
{ 0x00000786, 0x0000 },
{ 0x00000787, 0x0080 },
{ 0x00000788, 0x0000 },
{ 0x00000789, 0x0080 },
{ 0x0000078a, 0x0000 },
{ 0x0000078b, 0x0080 },
{ 0x0000078c, 0x0000 },
{ 0x0000078d, 0x0080 },
{ 0x0000078e, 0x0000 },
{ 0x0000078f, 0x0080 },
{ 0x00000790, 0x0000 },
{ 0x00000791, 0x0080 },
{ 0x00000792, 0x0000 },
{ 0x00000793, 0x0080 },
{ 0x00000794, 0x0000 },
{ 0x00000795, 0x0080 },
{ 0x00000796, 0x0000 },
{ 0x00000797, 0x0080 },
{ 0x00000798, 0x0000 },
{ 0x00000799, 0x0080 },
{ 0x0000079a, 0x0000 },
{ 0x0000079b, 0x0080 },
{ 0x0000079c, 0x0000 },
{ 0x0000079d, 0x0080 },
{ 0x0000079e, 0x0000 },
{ 0x0000079f, 0x0080 },
{ 0x000007a0, 0x0000 },
{ 0x000007a1, 0x0080 },
{ 0x000007a2, 0x0000 },
{ 0x000007a3, 0x0080 },
{ 0x000007a4, 0x0000 },
{ 0x000007a5, 0x0080 },
{ 0x000007a6, 0x0000 },
{ 0x000007a7, 0x0080 },
{ 0x000007a8, 0x0000 },
{ 0x000007a9, 0x0080 },
{ 0x000007aa, 0x0000 },
{ 0x000007ab, 0x0080 },
{ 0x000007ac, 0x0000 },
{ 0x000007ad, 0x0080 },
{ 0x000007ae, 0x0000 },
{ 0x000007af, 0x0080 },
{ 0x000007b0, 0x0000 },
{ 0x000007b1, 0x0080 },
{ 0x000007b2, 0x0000 },
{ 0x000007b3, 0x0080 },
{ 0x000007b4, 0x0000 },
{ 0x000007b5, 0x0080 },
{ 0x000007b6, 0x0000 },
{ 0x000007b7, 0x0080 },
{ 0x000007b8, 0x0000 },
{ 0x000007b9, 0x0080 },
{ 0x000007ba, 0x0000 },
{ 0x000007bb, 0x0080 },
{ 0x000007bc, 0x0000 },
{ 0x000007bd, 0x0080 },
{ 0x000007be, 0x0000 },
{ 0x000007bf, 0x0080 },
{ 0x000007c0, 0x0000 },
{ 0x000007c1, 0x0080 },
{ 0x000007c2, 0x0000 },
{ 0x000007c3, 0x0080 },
{ 0x000007c4, 0x0000 },
{ 0x000007c5, 0x0080 },
{ 0x000007c6, 0x0000 },
{ 0x000007c7, 0x0080 },
{ 0x000007c8, 0x0000 },
{ 0x000007c9, 0x0080 },
{ 0x000007ca, 0x0000 },
{ 0x000007cb, 0x0080 },
{ 0x000007cc, 0x0000 },
{ 0x000007cd, 0x0080 },
{ 0x000007ce, 0x0000 },
{ 0x000007cf, 0x0080 },
{ 0x000007d0, 0x0000 },
{ 0x000007d1, 0x0080 },
{ 0x000007d2, 0x0000 },
{ 0x000007d3, 0x0080 },
{ 0x000007d4, 0x0000 },
{ 0x000007d5, 0x0080 },
{ 0x000007d6, 0x0000 },
{ 0x000007d7, 0x0080 },
{ 0x000007d8, 0x0000 },
{ 0x000007d9, 0x0080 },
{ 0x000007da, 0x0000 },
{ 0x000007db, 0x0080 },
{ 0x000007dc, 0x0000 },
{ 0x000007dd, 0x0080 },
{ 0x000007de, 0x0000 },
{ 0x000007df, 0x0080 },
{ 0x000007e0, 0x0000 },
{ 0x000007e1, 0x0080 },
{ 0x000007e2, 0x0000 },
{ 0x000007e3, 0x0080 },
{ 0x000007e4, 0x0000 },
{ 0x000007e5, 0x0080 },
{ 0x000007e6, 0x0000 },
{ 0x000007e7, 0x0080 },
{ 0x000007e8, 0x0000 },
{ 0x000007e9, 0x0080 },
{ 0x000007ea, 0x0000 },
{ 0x000007eb, 0x0080 },
{ 0x000007ec, 0x0000 },
{ 0x000007ed, 0x0080 },
{ 0x000007ee, 0x0000 },
{ 0x000007ef, 0x0080 },
{ 0x000007f0, 0x0000 },
{ 0x000007f1, 0x0080 },
{ 0x000007f2, 0x0000 },
{ 0x000007f3, 0x0080 },
{ 0x000007f4, 0x0000 },
{ 0x000007f5, 0x0080 },
{ 0x000007f6, 0x0000 },
{ 0x000007f7, 0x0080 },
{ 0x000007f8, 0x0000 },
{ 0x000007f9, 0x0080 },
{ 0x000007fa, 0x0000 },
{ 0x000007fb, 0x0080 },
{ 0x000007fc, 0x0000 },
{ 0x000007fd, 0x0080 },
{ 0x000007fe, 0x0000 },
{ 0x000007ff, 0x0080 },
{ 0x00000800, 0x0000 },
{ 0x00000801, 0x0080 },
{ 0x00000808, 0x0000 },
{ 0x00000809, 0x0080 },
{ 0x00000880, 0x0000 },
{ 0x00000881, 0x0080 },
{ 0x00000882, 0x0000 },
{ 0x00000883, 0x0080 },
{ 0x00000884, 0x0000 },
{ 0x00000885, 0x0080 },
{ 0x00000886, 0x0000 },
{ 0x00000887, 0x0080 },
{ 0x00000888, 0x0000 },
{ 0x00000889, 0x0080 },
{ 0x0000088a, 0x0000 },
{ 0x0000088b, 0x0080 },
{ 0x0000088c, 0x0000 },
{ 0x0000088d, 0x0080 },
{ 0x0000088e, 0x0000 },
{ 0x0000088f, 0x0080 },
{ 0x00000890, 0x0000 },
{ 0x00000891, 0x0080 },
{ 0x00000892, 0x0000 },
{ 0x00000893, 0x0080 },
{ 0x00000894, 0x0000 },
{ 0x00000895, 0x0080 },
{ 0x00000896, 0x0000 },
{ 0x00000897, 0x0080 },
{ 0x00000898, 0x0000 },
{ 0x00000899, 0x0080 },
{ 0x0000089a, 0x0000 },
{ 0x0000089b, 0x0080 },
{ 0x0000089c, 0x0000 },
{ 0x0000089d, 0x0080 },
{ 0x0000089e, 0x0000 },
{ 0x0000089f, 0x0080 },
{ 0x000008c0, 0x0000 },
{ 0x000008c1, 0x0080 },
{ 0x000008c2, 0x0000 },
{ 0x000008c3, 0x0080 },
{ 0x000008c4, 0x0000 },
{ 0x000008c5, 0x0080 },
{ 0x000008c6, 0x0000 },
{ 0x000008c7, 0x0080 },
{ 0x000008c8, 0x0000 },
{ 0x000008c9, 0x0080 },
{ 0x000008ca, 0x0000 },
{ 0x000008cb, 0x0080 },
{ 0x000008cc, 0x0000 },
{ 0x000008cd, 0x0080 },
{ 0x000008ce, 0x0000 },
{ 0x000008cf, 0x0080 },
{ 0x000008d0, 0x0000 },
{ 0x000008d1, 0x0080 },
{ 0x000008d2, 0x0000 },
{ 0x000008d3, 0x0080 },
{ 0x000008d4, 0x0000 },
{ 0x000008d5, 0x0080 },
{ 0x000008d6, 0x0000 },
{ 0x000008d7, 0x0080 },
{ 0x000008d8, 0x0000 },
{ 0x000008d9, 0x0080 },
{ 0x000008da, 0x0000 },
{ 0x000008db, 0x0080 },
{ 0x000008dc, 0x0000 },
{ 0x000008dd, 0x0080 },
{ 0x000008de, 0x0000 },
{ 0x000008df, 0x0080 },
{ 0x00000900, 0x0000 },
{ 0x00000901, 0x0080 },
{ 0x00000902, 0x0000 },
{ 0x00000903, 0x0080 },
{ 0x00000904, 0x0000 },
{ 0x00000905, 0x0080 },
{ 0x00000906, 0x0000 },
{ 0x00000907, 0x0080 },
{ 0x00000908, 0x0000 },
{ 0x00000909, 0x0080 },
{ 0x0000090a, 0x0000 },
{ 0x0000090b, 0x0080 },
{ 0x0000090c, 0x0000 },
{ 0x0000090d, 0x0080 },
{ 0x0000090e, 0x0000 },
{ 0x0000090f, 0x0080 },
{ 0x00000910, 0x0000 },
{ 0x00000911, 0x0080 },
{ 0x00000912, 0x0000 },
{ 0x00000913, 0x0080 },
{ 0x00000914, 0x0000 },
{ 0x00000915, 0x0080 },
{ 0x00000916, 0x0000 },
{ 0x00000917, 0x0080 },
{ 0x00000918, 0x0000 },
{ 0x00000919, 0x0080 },
{ 0x0000091a, 0x0000 },
{ 0x0000091b, 0x0080 },
{ 0x0000091c, 0x0000 },
{ 0x0000091d, 0x0080 },
{ 0x0000091e, 0x0000 },
{ 0x0000091f, 0x0080 },
{ 0x00000940, 0x0000 },
{ 0x00000941, 0x0080 },
{ 0x00000942, 0x0000 },
{ 0x00000943, 0x0080 },
{ 0x00000944, 0x0000 },
{ 0x00000945, 0x0080 },
{ 0x00000946, 0x0000 },
{ 0x00000947, 0x0080 },
{ 0x00000948, 0x0000 },
{ 0x00000949, 0x0080 },
{ 0x0000094a, 0x0000 },
{ 0x0000094b, 0x0080 },
{ 0x0000094c, 0x0000 },
{ 0x0000094d, 0x0080 },
{ 0x0000094e, 0x0000 },
{ 0x0000094f, 0x0080 },
{ 0x00000950, 0x0000 },
{ 0x00000958, 0x0000 },
{ 0x00000960, 0x0000 },
{ 0x00000968, 0x0000 },
{ 0x00000970, 0x0000 },
{ 0x00000978, 0x0000 },
{ 0x00000a80, 0x0000 },
{ 0x00000a88, 0x0000 },
{ 0x00000a90, 0x0000 },
{ 0x00000a98, 0x0000 },
{ 0x00000b00, 0x0000 },
{ 0x00000b08, 0x0000 },
{ 0x00000b20, 0x0000 },
{ 0x00000b28, 0x0000 },
{ 0x00000b40, 0x0000 },
{ 0x00000b48, 0x0000 },
{ 0x00000b60, 0x0000 },
{ 0x00000b68, 0x0000 },
{ 0x00000dc0, 0x0000 },
{ 0x00000dc8, 0x0000 },
{ 0x00000dd0, 0x0000 },
{ 0x00000dd8, 0x0000 },
{ 0x00000de0, 0x0000 },
{ 0x00000de8, 0x0000 },
{ 0x00000df0, 0x0000 },
{ 0x00000df8, 0x0000 },
{ 0x00000e00, 0x0000 },
{ 0x00000e10, 0x6318 },
{ 0x00000e11, 0x6300 },
{ 0x00000e12, 0x0fc8 },
{ 0x00000e13, 0x03fe },
{ 0x00000e14, 0x00e0 },
{ 0x00000e15, 0x1ec4 },
{ 0x00000e16, 0xf136 },
{ 0x00000e17, 0x0409 },
{ 0x00000e18, 0x04cc },
{ 0x00000e19, 0x1c9b },
{ 0x00000e1a, 0xf337 },
{ 0x00000e1b, 0x040b },
{ 0x00000e1c, 0x0cbb },
{ 0x00000e1d, 0x16f8 },
{ 0x00000e1e, 0xf7d9 },
{ 0x00000e1f, 0x040a },
{ 0x00000e20, 0x1f14 },
{ 0x00000e21, 0x058c },
{ 0x00000e22, 0x0563 },
{ 0x00000e23, 0x4000 },
{ 0x00000e24, 0x0b75 },
{ 0x00000e26, 0x6318 },
{ 0x00000e27, 0x6300 },
{ 0x00000e28, 0x0fc8 },
{ 0x00000e29, 0x03fe },
{ 0x00000e2a, 0x00e0 },
{ 0x00000e2b, 0x1ec4 },
{ 0x00000e2c, 0xf136 },
{ 0x00000e2d, 0x0409 },
{ 0x00000e2e, 0x04cc },
{ 0x00000e2f, 0x1c9b },
{ 0x00000e30, 0xf337 },
{ 0x00000e31, 0x040b },
{ 0x00000e32, 0x0cbb },
{ 0x00000e33, 0x16f8 },
{ 0x00000e34, 0xf7d9 },
{ 0x00000e35, 0x040a },
{ 0x00000e36, 0x1f14 },
{ 0x00000e37, 0x058c },
{ 0x00000e38, 0x0563 },
{ 0x00000e39, 0x4000 },
{ 0x00000e3a, 0x0b75 },
{ 0x00000e3c, 0x6318 },
{ 0x00000e3d, 0x6300 },
{ 0x00000e3e, 0x0fc8 },
{ 0x00000e3f, 0x03fe },
{ 0x00000e40, 0x00e0 },
{ 0x00000e41, 0x1ec4 },
{ 0x00000e42, 0xf136 },
{ 0x00000e43, 0x0409 },
{ 0x00000e44, 0x04cc },
{ 0x00000e45, 0x1c9b },
{ 0x00000e46, 0xf337 },
{ 0x00000e47, 0x040b },
{ 0x00000e48, 0x0cbb },
{ 0x00000e49, 0x16f8 },
{ 0x00000e4a, 0xf7d9 },
{ 0x00000e4b, 0x040a },
{ 0x00000e4c, 0x1f14 },
{ 0x00000e4d, 0x058c },
{ 0x00000e4e, 0x0563 },
{ 0x00000e4f, 0x4000 },
{ 0x00000e50, 0x0b75 },
{ 0x00000e52, 0x6318 },
{ 0x00000e53, 0x6300 },
{ 0x00000e54, 0x0fc8 },
{ 0x00000e55, 0x03fe },
{ 0x00000e56, 0x00e0 },
{ 0x00000e57, 0x1ec4 },
{ 0x00000e58, 0xf136 },
{ 0x00000e59, 0x0409 },
{ 0x00000e5a, 0x04cc },
{ 0x00000e5b, 0x1c9b },
{ 0x00000e5c, 0xf337 },
{ 0x00000e5d, 0x040b },
{ 0x00000e5e, 0x0cbb },
{ 0x00000e5f, 0x16f8 },
{ 0x00000e60, 0xf7d9 },
{ 0x00000e61, 0x040a },
{ 0x00000e62, 0x1f14 },
{ 0x00000e63, 0x058c },
{ 0x00000e64, 0x0563 },
{ 0x00000e65, 0x4000 },
{ 0x00000e66, 0x0b75 },
{ 0x00000e80, 0x0018 },
{ 0x00000e81, 0x0933 },
{ 0x00000e82, 0x0018 },
{ 0x00000e83, 0x0000 },
{ 0x00000e84, 0x0000 },
{ 0x00000e88, 0x0018 },
{ 0x00000e89, 0x0933 },
{ 0x00000e8a, 0x0018 },
{ 0x00000e8b, 0x0000 },
{ 0x00000e8c, 0x0000 },
{ 0x00000ec0, 0x0000 },
{ 0x00000ec1, 0x0000 },
{ 0x00000ec4, 0x0000 },
{ 0x00000ec5, 0x0000 },
{ 0x00000ec8, 0x0000 },
{ 0x00000ec9, 0x0000 },
{ 0x00000ecc, 0x0000 },
{ 0x00000ecd, 0x0000 },
{ 0x00000ee0, 0x0000 },
{ 0x00000ee2, 0x0000 },
{ 0x00000ee3, 0x4000 },
{ 0x00000ef0, 0x0000 },
{ 0x00000ef1, 0x0001 },
{ 0x00000ef2, 0x0000 },
{ 0x00000ef3, 0x0000 },
{ 0x00000ef4, 0x0001 },
{ 0x00000ef5, 0x0000 },
{ 0x000010c0, 0x0008 },
{ 0x000010c1, 0x4000 },
{ 0x00001480, 0x0000 },
{ 0x00001482, 0x1f00 },
{ 0x00001484, 0x1f00 },
{ 0x00001486, 0x0000 },
{ 0x00001488, 0x1f00 },
{ 0x0000148a, 0x1f00 },
{ 0x0000148c, 0x0000 },
{ 0x0000148e, 0x1f00 },
{ 0x00001490, 0x1f00 },
{ 0x00001492, 0x0000 },
{ 0x00001494, 0x1f00 },
{ 0x00001496, 0x1f00 },
{ 0x00001498, 0x0000 },
{ 0x0000149a, 0x1f00 },
{ 0x0000149c, 0x1f00 },
{ 0x0000149e, 0x0000 },
{ 0x000014a0, 0x1f00 },
{ 0x000014a2, 0x1f00 },
{ 0x000014a4, 0x0000 },
{ 0x000014a6, 0x1f00 },
{ 0x000014a8, 0x1f00 },
{ 0x000014aa, 0x0000 },
{ 0x000014ac, 0x1f00 },
{ 0x000014ae, 0x1f00 },
{ 0x00001700, 0x2001 },
{ 0x00001701, 0xf000 },
{ 0x00001702, 0x2001 },
{ 0x00001703, 0xf000 },
{ 0x00001704, 0x2001 },
{ 0x00001705, 0xf000 },
{ 0x00001706, 0x2001 },
{ 0x00001707, 0xf000 },
{ 0x00001708, 0x2001 },
{ 0x00001709, 0xf000 },
{ 0x0000170a, 0x2001 },
{ 0x0000170b, 0xf000 },
{ 0x0000170c, 0x2001 },
{ 0x0000170d, 0xf000 },
{ 0x0000170e, 0x2001 },
{ 0x0000170f, 0xf000 },
{ 0x00001710, 0x2001 },
{ 0x00001711, 0xf000 },
{ 0x00001712, 0x2001 },
{ 0x00001713, 0xf000 },
{ 0x00001714, 0x2001 },
{ 0x00001715, 0xf000 },
{ 0x00001716, 0x2001 },
{ 0x00001717, 0xf000 },
{ 0x00001718, 0x2001 },
{ 0x00001719, 0xf000 },
{ 0x0000171a, 0x2001 },
{ 0x0000171b, 0xf000 },
{ 0x0000171c, 0x2001 },
{ 0x0000171d, 0xf000 },
{ 0x0000171e, 0x2001 },
{ 0x0000171f, 0xf000 },
{ 0x00001840, 0x1200 },
{ 0x00001841, 0x77e0 },
{ 0x00001842, 0xffff },
{ 0x00001843, 0xffff },
{ 0x00001844, 0xffff },
{ 0x00001845, 0x0301 },
{ 0x00001846, 0x0f3f },
{ 0x00001847, 0xffff },
{ 0x00001848, 0x031f },
{ 0x00001849, 0x031f },
{ 0x0000184a, 0xffff },
{ 0x0000184b, 0x033f },
{ 0x0000184c, 0x003f },
{ 0x0000184d, 0x003f },
{ 0x0000184e, 0x1000 },
{ 0x0000184f, 0xffff },
{ 0x00001850, 0xffff },
{ 0x00001851, 0xffff },
{ 0x00001852, 0xffff },
{ 0x00001853, 0xffff },
{ 0x00001854, 0x0001 },
{ 0x00001855, 0x0001 },
{ 0x00001856, 0x0001 },
{ 0x00001857, 0x0001 },
{ 0x00001858, 0x0001 },
{ 0x00001859, 0xffff },
{ 0x0000185a, 0x0001 },
{ 0x0000185b, 0x0001 },
{ 0x0000185c, 0xffff },
{ 0x0000185d, 0x0001 },
{ 0x0000185e, 0xffff },
{ 0x0000185f, 0xffff },
{ 0x00001860, 0x0001 },
{ 0x00001a06, 0x0000 },
{ 0x00001a80, 0x4400 },
};
static bool cs47l92_is_adsp_memory(unsigned int reg)
{
switch (reg) {
case 0x080000 ... 0x082ffe:
case 0x0a0000 ... 0x0a1ffe:
case 0x0c0000 ... 0x0c1ffe:
case 0x0e0000 ... 0x0e1ffe:
return true;
default:
return false;
}
}
static bool cs47l92_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 ... MADERA_WRITE_SEQUENCER_CTRL_2:
case MADERA_TONE_GENERATOR_1 ... MADERA_TONE_GENERATOR_5:
case MADERA_PWM_DRIVE_1 ... 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_HAPTICS_CONTROL_1 ... 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 ... 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 ... MADERA_RATE_ESTIMATOR_5:
case MADERA_FLL1_CONTROL_1 ... MADERA_FLL1_CONTROL_6:
case CS47L92_FLL1_CONTROL_7 ... CS47L92_FLL1_CONTROL_10:
case MADERA_FLL1_CONTROL_11:
case MADERA_FLL1_DIGITAL_TEST_1:
case MADERA_FLL1_SYNCHRONISER_1 ... MADERA_FLL1_SYNCHRONISER_6:
case CS47L92_FLL1_GPIO_CLOCK:
case MADERA_FLL2_CONTROL_1 ... MADERA_FLL2_CONTROL_6:
case CS47L92_FLL2_CONTROL_7 ... CS47L92_FLL2_CONTROL_10:
case MADERA_FLL2_CONTROL_11:
case MADERA_FLL2_DIGITAL_TEST_1:
case MADERA_FLL2_SYNCHRONISER_1 ... MADERA_FLL2_SYNCHRONISER_6:
case CS47L92_FLL2_GPIO_CLOCK:
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_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_CONTROL_4:
case MADERA_MIC_DETECT_1_LEVEL_1 ... MADERA_MIC_DETECT_1_LEVEL_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_CONTROL_4:
case MADERA_MIC_DETECT_2_LEVEL_1 ... MADERA_MIC_DETECT_2_LEVEL_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_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_OUTPUT_PATH_CONFIG_3:
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_DAC_AEC_CONTROL_1 ... MADERA_DAC_AEC_CONTROL_2:
case MADERA_NOISE_GATE_CONTROL:
case MADERA_PDM_SPK1_CTRL_1 ... 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 ... 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 ... 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 ... MADERA_AIF3_FRAME_CTRL_18:
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 ... 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_AIF3TX3MIX_INPUT_1_SOURCE:
case MADERA_AIF3TX3MIX_INPUT_1_VOLUME:
case MADERA_AIF3TX3MIX_INPUT_2_SOURCE:
case MADERA_AIF3TX3MIX_INPUT_2_VOLUME:
case MADERA_AIF3TX3MIX_INPUT_3_SOURCE:
case MADERA_AIF3TX3MIX_INPUT_3_VOLUME:
case MADERA_AIF3TX3MIX_INPUT_4_SOURCE:
case MADERA_AIF3TX3MIX_INPUT_4_VOLUME:
case MADERA_AIF3TX4MIX_INPUT_1_SOURCE:
case MADERA_AIF3TX4MIX_INPUT_1_VOLUME:
case MADERA_AIF3TX4MIX_INPUT_2_SOURCE:
case MADERA_AIF3TX4MIX_INPUT_2_VOLUME:
case MADERA_AIF3TX4MIX_INPUT_3_SOURCE:
case MADERA_AIF3TX4MIX_INPUT_3_VOLUME:
case MADERA_AIF3TX4MIX_INPUT_4_SOURCE:
case MADERA_AIF3TX4MIX_INPUT_4_VOLUME:
case CS47L92_AIF3TX5MIX_INPUT_1_SOURCE:
case CS47L92_AIF3TX5MIX_INPUT_1_VOLUME:
case CS47L92_AIF3TX5MIX_INPUT_2_SOURCE:
case CS47L92_AIF3TX5MIX_INPUT_2_VOLUME:
case CS47L92_AIF3TX5MIX_INPUT_3_SOURCE:
case CS47L92_AIF3TX5MIX_INPUT_3_VOLUME:
case CS47L92_AIF3TX5MIX_INPUT_4_SOURCE:
case CS47L92_AIF3TX5MIX_INPUT_4_VOLUME:
case CS47L92_AIF3TX6MIX_INPUT_1_SOURCE:
case CS47L92_AIF3TX6MIX_INPUT_1_VOLUME:
case CS47L92_AIF3TX6MIX_INPUT_2_SOURCE:
case CS47L92_AIF3TX6MIX_INPUT_2_VOLUME:
case CS47L92_AIF3TX6MIX_INPUT_3_SOURCE:
case CS47L92_AIF3TX6MIX_INPUT_3_VOLUME:
case CS47L92_AIF3TX6MIX_INPUT_4_SOURCE:
case CS47L92_AIF3TX6MIX_INPUT_4_VOLUME:
case CS47L92_AIF3TX7MIX_INPUT_1_SOURCE:
case CS47L92_AIF3TX7MIX_INPUT_1_VOLUME:
case CS47L92_AIF3TX7MIX_INPUT_2_SOURCE:
case CS47L92_AIF3TX7MIX_INPUT_2_VOLUME:
case CS47L92_AIF3TX7MIX_INPUT_3_SOURCE:
case CS47L92_AIF3TX7MIX_INPUT_3_VOLUME:
case CS47L92_AIF3TX7MIX_INPUT_4_SOURCE:
case CS47L92_AIF3TX7MIX_INPUT_4_VOLUME:
case CS47L92_AIF3TX8MIX_INPUT_1_SOURCE:
case CS47L92_AIF3TX8MIX_INPUT_1_VOLUME:
case CS47L92_AIF3TX8MIX_INPUT_2_SOURCE:
case CS47L92_AIF3TX8MIX_INPUT_2_VOLUME:
case CS47L92_AIF3TX8MIX_INPUT_3_SOURCE:
case CS47L92_AIF3TX8MIX_INPUT_3_VOLUME:
case CS47L92_AIF3TX8MIX_INPUT_4_SOURCE:
case CS47L92_AIF3TX8MIX_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_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_ISRC1DEC1MIX_INPUT_1_SOURCE:
case MADERA_ISRC1DEC2MIX_INPUT_1_SOURCE:
case MADERA_ISRC1INT1MIX_INPUT_1_SOURCE:
case MADERA_ISRC1INT2MIX_INPUT_1_SOURCE:
case MADERA_ISRC2DEC1MIX_INPUT_1_SOURCE:
case MADERA_ISRC2DEC2MIX_INPUT_1_SOURCE:
case MADERA_ISRC2INT1MIX_INPUT_1_SOURCE:
case MADERA_ISRC2INT2MIX_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 ... MADERA_FX_CTRL2:
case MADERA_EQ1_1 ... MADERA_EQ1_21:
case MADERA_EQ2_1 ... MADERA_EQ2_21:
case MADERA_EQ3_1 ... MADERA_EQ3_21:
case MADERA_EQ4_1 ... MADERA_EQ4_21:
case MADERA_DRC1_CTRL1 ... MADERA_DRC1_CTRL5:
case MADERA_DRC2_CTRL1 ... MADERA_DRC2_CTRL5:
case MADERA_HPLPF1_1 ... MADERA_HPLPF1_2:
case MADERA_HPLPF2_1 ... MADERA_HPLPF2_2:
case MADERA_HPLPF3_1 ... MADERA_HPLPF3_2:
case MADERA_HPLPF4_1 ... MADERA_HPLPF4_2:
case MADERA_ASRC1_ENABLE:
case MADERA_ASRC1_STATUS:
case MADERA_ASRC1_RATE1 ... MADERA_ASRC1_RATE2:
case MADERA_ISRC_1_CTRL_1 ... MADERA_ISRC_1_CTRL_3:
case MADERA_ISRC_2_CTRL_1 ... MADERA_ISRC_2_CTRL_3:
case MADERA_AUXPDM1_CTRL_0 ... MADERA_AUXPDM1_CTRL_1:
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 ... 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 cs47l92_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 ... 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_ASRC1_STATUS:
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 cs47l92_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:
return true;
default:
return cs47l92_is_adsp_memory(reg);
}
}
static bool cs47l92_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:
return true;
default:
return cs47l92_is_adsp_memory(reg);
}
}
const struct regmap_config cs47l92_16bit_spi_regmap = {
.name = "cs47l92_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 = &cs47l92_16bit_readable_register,
.volatile_reg = &cs47l92_16bit_volatile_register,
.cache_type = REGCACHE_MAPLE,
.reg_defaults = cs47l92_reg_default,
.num_reg_defaults = ARRAY_SIZE(cs47l92_reg_default),
};
EXPORT_SYMBOL_GPL(cs47l92_16bit_spi_regmap);
const struct regmap_config cs47l92_16bit_i2c_regmap = {
.name = "cs47l92_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 = &cs47l92_16bit_readable_register,
.volatile_reg = &cs47l92_16bit_volatile_register,
.cache_type = REGCACHE_MAPLE,
.reg_defaults = cs47l92_reg_default,
.num_reg_defaults = ARRAY_SIZE(cs47l92_reg_default),
};
EXPORT_SYMBOL_GPL(cs47l92_16bit_i2c_regmap);
const struct regmap_config cs47l92_32bit_spi_regmap = {
.name = "cs47l92_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_DSP1_PMEM_ERR_ADDR___XMEM_ERR_ADDR,
.readable_reg = &cs47l92_32bit_readable_register,
.volatile_reg = &cs47l92_32bit_volatile_register,
.cache_type = REGCACHE_MAPLE,
};
EXPORT_SYMBOL_GPL(cs47l92_32bit_spi_regmap);
const struct regmap_config cs47l92_32bit_i2c_regmap = {
.name = "cs47l92_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_DSP1_PMEM_ERR_ADDR___XMEM_ERR_ADDR,
.readable_reg = &cs47l92_32bit_readable_register,
.volatile_reg = &cs47l92_32bit_volatile_register,
.cache_type = REGCACHE_MAPLE,
};
EXPORT_SYMBOL_GPL