#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 },
{ 0x00000021, 0x1000 },
{ 0x00000022, 0x0000 },
{ 0x00000023, 0x1000 },
{ 0x00000024, 0x0000 },
{ 0x00000030, 0x0000 },
{ 0x00000031, 0x0100 },
{ 0x00000032, 0x0100 },
{ 0x00000061, 0x01ff },
{ 0x00000062, 0x01ff },
{ 0x00000063, 0x01ff },
{ 0x00000064, 0x01ff },
{ 0x00000066, 0x01ff },
{ 0x00000067, 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 },
{ 0x00000120, 0x0305 },
{ 0x00000122, 0x0000 },
{ 0x00000149, 0x0000 },
{ 0x0000014a, 0x0000 },
{ 0x00000152, 0x0000 },
{ 0x00000153, 0x0000 },
{ 0x00000154, 0x0000 },
{ 0x00000155, 0x0000 },
{ 0x00000156, 0x0000 },
{ 0x00000171, 0x0002 },
{ 0x00000172, 0x0008 },
{ 0x00000173, 0x0018 },
{ 0x00000174, 0x007d },
{ 0x00000175, 0x0000 },
{ 0x00000176, 0x0000 },
{ 0x00000179, 0x0000 },
{ 0x0000017a, 0x2906 },
{ 0x0000017f, 0x0000 },
{ 0x00000180, 0x0000 },
{ 0x00000181, 0x0000 },
{ 0x00000182, 0x0000 },
{ 0x00000183, 0x0000 },
{ 0x00000184, 0x0000 },
{ 0x00000185, 0x0001 },
{ 0x00000187, 0x0000 },
{ 0x00000188, 0x000c },
{ 0x00000200, 0x0006 },
{ 0x0000020b, 0x0400 },
{ 0x00000213, 0x03e4 },
{ 0x00000218, 0x00e6 },
{ 0x00000219, 0x00e6 },
{ 0x0000021c, 0x0022 },
{ 0x0000021e, 0x0022 },
{ 0x0000027e, 0x0000 },
{ 0x00000293, 0x0080 },
{ 0x0000029b, 0x0000 },
{ 0x000002a3, 0x1102 },
{ 0x000002a4, 0x009f },
{ 0x000002a6, 0x3d3d },
{ 0x000002a7, 0x3d3d },
{ 0x000002a8, 0x333d },
{ 0x000002a9, 0x202d },
{ 0x000002c6, 0x0010 },
{ 0x000002c8, 0x0000 },
{ 0x000002d3, 0x0000 },
{ 0x00000300, 0x0000 },
{ 0x00000308, 0x0000 },
{ 0x00000309, 0x0022 },
{ 0x0000030c, 0x0002 },
{ 0x00000310, 0x0080 },
{ 0x00000311, 0x0180 },
{ 0x00000312, 0x0500 },
{ 0x00000314, 0x0080 },
{ 0x00000315, 0x0180 },
{ 0x00000316, 0x0000 },
{ 0x00000318, 0x0080 },
{ 0x00000319, 0x0180 },
{ 0x0000031a, 0x0500 },
{ 0x0000031c, 0x0080 },
{ 0x0000031d, 0x0180 },
{ 0x0000031e, 0x0000 },
{ 0x00000400, 0x0000 },
{ 0x00000408, 0x0000 },
{ 0x00000409, 0x0022 },
{ 0x00000410, 0x0080 },
{ 0x00000411, 0x0180 },
{ 0x00000413, 0x0001 },
{ 0x00000414, 0x0080 },
{ 0x00000415, 0x0180 },
{ 0x00000417, 0x0002 },
{ 0x00000428, 0x0000 },
{ 0x00000429, 0x0180 },
{ 0x0000042b, 0x0040 },
{ 0x00000430, 0x0000 },
{ 0x00000431, 0x0180 },
{ 0x00000433, 0x0100 },
{ 0x00000434, 0x0000 },
{ 0x00000435, 0x0180 },
{ 0x00000437, 0x0200 },
{ 0x00000450, 0x0000 },
{ 0x00000451, 0x0000 },
{ 0x00000458, 0x0000 },
{ 0x00000490, 0x0069 },
{ 0x00000491, 0x0000 },
{ 0x000004a0, 0x3080 },
{ 0x000004a8, 0x7120 },
{ 0x000004a9, 0x7120 },
{ 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 },
{ 0x00000511, 0x0000 },
{ 0x00000512, 0x0001 },
{ 0x00000513, 0x0002 },
{ 0x00000514, 0x0003 },
{ 0x00000515, 0x0004 },
{ 0x00000516, 0x0005 },
{ 0x00000519, 0x0000 },
{ 0x0000051a, 0x0000 },
{ 0x00000540, 0x000c },
{ 0x00000541, 0x0000 },
{ 0x00000542, 0x0000 },
{ 0x00000543, 0x0000 },
{ 0x00000544, 0x0000 },
{ 0x00000546, 0x0040 },
{ 0x00000547, 0x1818 },
{ 0x00000548, 0x1818 },
{ 0x00000549, 0x0000 },
{ 0x0000054a, 0x0001 },
{ 0x00000551, 0x0000 },
{ 0x00000552, 0x0001 },
{ 0x00000559, 0x0000 },
{ 0x0000055a, 0x0000 },
{ 0x00000580, 0x000c },
{ 0x00000581, 0x0000 },
{ 0x00000582, 0x0000 },
{ 0x00000583, 0x0000 },
{ 0x00000584, 0x0000 },
{ 0x00000586, 0x0040 },
{ 0x00000587, 0x1818 },
{ 0x00000588, 0x1818 },
{ 0x00000589, 0x0000 },
{ 0x0000058a, 0x0001 },
{ 0x00000591, 0x0000 },
{ 0x00000592, 0x0001 },
{ 0x00000599, 0x0000 },
{ 0x0000059a, 0x0000 },
{ 0x000005c2, 0x0000 },
{ 0x000005e3, 0x0000 },
{ 0x000005e5, 0x0000 },
{ 0x000005e6, 0x0000 },
{ 0x000005e7, 0x0000 },
{ 0x000005e9, 0x0000 },
{ 0x000005ea, 0x0000 },
{ 0x000005eb, 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 },
{ 0x000006b0, 0x0000 },
{ 0x000006b1, 0x0080 },
{ 0x000006b2, 0x0000 },
{ 0x000006b3, 0x0080 },
{ 0x000006b4, 0x0000 },
{ 0x000006b5, 0x0080 },
{ 0x000006b6, 0x0000 },
{ 0x000006b7, 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 },
{ 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 },
{ 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 },
{ 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 },
{ 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 },
{ 0x00000980, 0x0000 },
{ 0x00000981, 0x0080 },
{ 0x00000982, 0x0000 },
{ 0x00000983, 0x0080 },
{ 0x00000984, 0x0000 },
{ 0x00000985, 0x0080 },
{ 0x00000986, 0x0000 },
{ 0x00000987, 0x0080 },
{ 0x00000988, 0x0000 },
{ 0x00000989, 0x0080 },
{ 0x0000098a, 0x0000 },
{ 0x0000098b, 0x0080 },
{ 0x0000098c, 0x0000 },
{ 0x0000098d, 0x0080 },
{ 0x0000098e, 0x0000 },
{ 0x0000098f, 0x0080 },
{ 0x00000990, 0x0000 },
{ 0x00000998, 0x0000 },
{ 0x000009a0, 0x0000 },
{ 0x000009a8, 0x0000 },
{ 0x000009b0, 0x0000 },
{ 0x000009b8, 0x0000 },
{ 0x000009c0, 0x0000 },
{ 0x000009c1, 0x0080 },
{ 0x000009c2, 0x0000 },
{ 0x000009c3, 0x0080 },
{ 0x000009c4, 0x0000 },
{ 0x000009c5, 0x0080 },
{ 0x000009c6, 0x0000 },
{ 0x000009c7, 0x0080 },
{ 0x000009c8, 0x0000 },
{ 0x000009c9, 0x0080 },
{ 0x000009ca, 0x0000 },
{ 0x000009cb, 0x0080 },
{ 0x000009cc, 0x0000 },
{ 0x000009cd, 0x0080 },
{ 0x000009ce, 0x0000 },
{ 0x000009cf, 0x0080 },
{ 0x000009d0, 0x0000 },
{ 0x000009d8, 0x0000 },
{ 0x000009e0, 0x0000 },
{ 0x000009e8, 0x0000 },
{ 0x000009f0, 0x0000 },
{ 0x000009f8, 0x0000 },
{ 0x00000b00, 0x0000 },
{ 0x00000b08, 0x0000 },
{ 0x00000b10, 0x0000 },
{ 0x00000b18, 0x0000 },
{ 0x00000b20, 0x0000 },
{ 0x00000b28, 0x0000 },
{ 0x00000b30, 0x0000 },
{ 0x00000b38, 0x0000 },
{ 0x00000b40, 0x0000 },
{ 0x00000b48, 0x0000 },
{ 0x00000b50, 0x0000 },
{ 0x00000b58, 0x0000 },
{ 0x00000b60, 0x0000 },
{ 0x00000b68, 0x0000 },
{ 0x00000b70, 0x0000 },
{ 0x00000b78, 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 },
{ 0x00000ef0, 0x0000 },
{ 0x00000ef1, 0x0001 },
{ 0x00000ef2, 0x0000 },
{ 0x00000ef3, 0x0000 },
{ 0x00000ef4, 0x0001 },
{ 0x00000ef5, 0x0000 },
{ 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, 0xffff },
{ 0x00001841, 0xffff },
{ 0x00001842, 0xffff },
{ 0x00001843, 0xffff },
{ 0x00001844, 0xffff },
{ 0x00001845, 0xffff },
{ 0x00001846, 0xffff },
{ 0x00001847, 0xffff },
{ 0x00001848, 0xffff },
{ 0x00001849, 0xffff },
{ 0x0000184a, 0xffff },
{ 0x0000184b, 0xffff },
{ 0x0000184c, 0xffff },
{ 0x0000184d, 0xffff },
{ 0x0000184e, 0xffff },
{ 0x0000184f, 0xffff },
{ 0x00001850, 0xffff },
{ 0x00001851, 0xffff },
{ 0x00001852, 0xffff },
{ 0x00001853, 0xffff },
{ 0x00001854, 0xffff },
{ 0x00001855, 0xffff },
{ 0x00001856, 0xffff },
{ 0x00001857, 0xffff },
{ 0x00001858, 0xffff },
{ 0x00001859, 0xffff },
{ 0x0000185a, 0xffff },
{ 0x0000185b, 0xffff },
{ 0x0000185c, 0xffff },
{ 0x0000185d, 0xffff },
{ 0x0000185e, 0xffff },
{ 0x0000185f, 0xffff },
{ 0x00001860, 0xffff },
{ 0x00001a06, 0x0000 },
{ 0x00001a80, 0x4400 },
};
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_EFS_2:
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_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_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 ... 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:
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_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_MAPLE,
.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_MAPLE,
.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_MAPLE,
};
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_MAPLE,
};
EXPORT_SYMBOL_GPL