aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/wm5102-tables.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2013-06-12 12:44:07 -0400
committerMark Brown <broonie@linaro.org>2013-06-12 13:06:49 -0400
commit1b4d7d9787beb45a51c1ccf2f0a7fcee9213fb38 (patch)
tree30a47ef230eebbb6811b0465432121ee4254fe7a /drivers/mfd/wm5102-tables.c
parent6dc6a3f81ee66b50acee5f1aa1de2f7d2d4e55fa (diff)
mfd: wm5102: Expose DRE control registers
Certain use cases may require specific DRE settings so expose the necessary registers. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/mfd/wm5102-tables.c')
-rw-r--r--drivers/mfd/wm5102-tables.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c
index 155c4a1a6a99..802dd3cb18cf 100644
--- a/drivers/mfd/wm5102-tables.c
+++ b/drivers/mfd/wm5102-tables.c
@@ -65,7 +65,8 @@ static const struct reg_default wm5102_revb_patch[] = {
65 { 0x418, 0xa080 }, 65 { 0x418, 0xa080 },
66 { 0x420, 0xa080 }, 66 { 0x420, 0xa080 },
67 { 0x428, 0xe000 }, 67 { 0x428, 0xe000 },
68 { 0x443, 0xDC1A }, 68 { 0x442, 0x3F0A },
69 { 0x443, 0xDC1F },
69 { 0x4B0, 0x0066 }, 70 { 0x4B0, 0x0066 },
70 { 0x458, 0x000b }, 71 { 0x458, 0x000b },
71 { 0x212, 0x0000 }, 72 { 0x212, 0x0000 },
@@ -424,6 +425,9 @@ static const struct reg_default wm5102_reg_default[] = {
424 { 0x00000435, 0x0180 }, /* R1077 - DAC Digital Volume 5R */ 425 { 0x00000435, 0x0180 }, /* R1077 - DAC Digital Volume 5R */
425 { 0x00000436, 0x0081 }, /* R1078 - DAC Volume Limit 5R */ 426 { 0x00000436, 0x0081 }, /* R1078 - DAC Volume Limit 5R */
426 { 0x00000437, 0x0200 }, /* R1079 - Noise Gate Select 5R */ 427 { 0x00000437, 0x0200 }, /* R1079 - Noise Gate Select 5R */
428 { 0x00000440, 0x8FFF }, /* R1088 - DRE Enable */
429 { 0x00000442, 0x3F0A }, /* R1090 - DRE Control 2 */
430 { 0x00000443, 0xDC1F }, /* R1090 - DRE Control 3 */
427 { 0x00000450, 0x0000 }, /* R1104 - DAC AEC Control 1 */ 431 { 0x00000450, 0x0000 }, /* R1104 - DAC AEC Control 1 */
428 { 0x00000458, 0x000B }, /* R1112 - Noise Gate Control */ 432 { 0x00000458, 0x000B }, /* R1112 - Noise Gate Control */
429 { 0x00000490, 0x0069 }, /* R1168 - PDM SPK1 CTRL 1 */ 433 { 0x00000490, 0x0069 }, /* R1168 - PDM SPK1 CTRL 1 */
@@ -1197,6 +1201,9 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg)
1197 case ARIZONA_DAC_DIGITAL_VOLUME_5R: 1201 case ARIZONA_DAC_DIGITAL_VOLUME_5R:
1198 case ARIZONA_DAC_VOLUME_LIMIT_5R: 1202 case ARIZONA_DAC_VOLUME_LIMIT_5R:
1199 case ARIZONA_NOISE_GATE_SELECT_5R: 1203 case ARIZONA_NOISE_GATE_SELECT_5R:
1204 case ARIZONA_DRE_ENABLE:
1205 case ARIZONA_DRE_CONTROL_2:
1206 case ARIZONA_DRE_CONTROL_3:
1200 case ARIZONA_DAC_AEC_CONTROL_1: 1207 case ARIZONA_DAC_AEC_CONTROL_1:
1201 case ARIZONA_NOISE_GATE_CONTROL: 1208 case ARIZONA_NOISE_GATE_CONTROL:
1202 case ARIZONA_PDM_SPK1_CTRL_1: 1209 case ARIZONA_PDM_SPK1_CTRL_1: