aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2013-10-14 04:09:00 -0400
committerLee Jones <lee.jones@linaro.org>2013-10-23 11:21:46 -0400
commit2212e680db06bba383893d3df3fbe3f2267bf83d (patch)
treec9c9573c7f97db85aedca632a8f3d754c93df51a /drivers/mfd
parent91c739359ac9946a8e74a9640527a3f1034a76a7 (diff)
mfd: arizona: Mark missing AOD registers as volatile
This registers ARIZONA_AOD_WKUP_AND_TRIG and ARIZONA_AOD_IRQ_RAW_STATUS contain interrupt status bits and thus should be volatile. They are correctly marked on wm5102 but not on wm5110, this patch changes this. Furthermore volatile registers don't need defaults so remove those. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/wm5102-tables.c1
-rw-r--r--drivers/mfd/wm5110-tables.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c
index 802dd3cb18cf..1e9a4b2102f9 100644
--- a/drivers/mfd/wm5102-tables.c
+++ b/drivers/mfd/wm5102-tables.c
@@ -903,7 +903,6 @@ static const struct reg_default wm5102_reg_default[] = {
903 { 0x00000D1B, 0xFFFF }, /* R3355 - IRQ2 Status 4 Mask */ 903 { 0x00000D1B, 0xFFFF }, /* R3355 - IRQ2 Status 4 Mask */
904 { 0x00000D1C, 0xFFFF }, /* R3356 - IRQ2 Status 5 Mask */ 904 { 0x00000D1C, 0xFFFF }, /* R3356 - IRQ2 Status 5 Mask */
905 { 0x00000D1F, 0x0000 }, /* R3359 - IRQ2 Control */ 905 { 0x00000D1F, 0x0000 }, /* R3359 - IRQ2 Control */
906 { 0x00000D50, 0x0000 }, /* R3408 - AOD wkup and trig */
907 { 0x00000D53, 0xFFFF }, /* R3411 - AOD IRQ Mask IRQ1 */ 906 { 0x00000D53, 0xFFFF }, /* R3411 - AOD IRQ Mask IRQ1 */
908 { 0x00000D54, 0xFFFF }, /* R3412 - AOD IRQ Mask IRQ2 */ 907 { 0x00000D54, 0xFFFF }, /* R3412 - AOD IRQ Mask IRQ2 */
909 { 0x00000D56, 0x0000 }, /* R3414 - Jack detect debounce */ 908 { 0x00000D56, 0x0000 }, /* R3414 - Jack detect debounce */
diff --git a/drivers/mfd/wm5110-tables.c b/drivers/mfd/wm5110-tables.c
index f71bd9b3d0a2..c5c116a7b5ff 100644
--- a/drivers/mfd/wm5110-tables.c
+++ b/drivers/mfd/wm5110-tables.c
@@ -1204,7 +1204,6 @@ static const struct reg_default wm5110_reg_default[] = {
1204 { 0x00000D1B, 0xFFFF }, /* R3355 - IRQ2 Status 4 Mask */ 1204 { 0x00000D1B, 0xFFFF }, /* R3355 - IRQ2 Status 4 Mask */
1205 { 0x00000D1C, 0xFFFF }, /* R3356 - IRQ2 Status 5 Mask */ 1205 { 0x00000D1C, 0xFFFF }, /* R3356 - IRQ2 Status 5 Mask */
1206 { 0x00000D1F, 0x0000 }, /* R3359 - IRQ2 Control */ 1206 { 0x00000D1F, 0x0000 }, /* R3359 - IRQ2 Control */
1207 { 0x00000D50, 0x0000 }, /* R3408 - AOD wkup and trig */
1208 { 0x00000D53, 0xFFFF }, /* R3411 - AOD IRQ Mask IRQ1 */ 1207 { 0x00000D53, 0xFFFF }, /* R3411 - AOD IRQ Mask IRQ1 */
1209 { 0x00000D54, 0xFFFF }, /* R3412 - AOD IRQ Mask IRQ2 */ 1208 { 0x00000D54, 0xFFFF }, /* R3412 - AOD IRQ Mask IRQ2 */
1210 { 0x00000D56, 0x0000 }, /* R3414 - Jack detect debounce */ 1209 { 0x00000D56, 0x0000 }, /* R3414 - Jack detect debounce */
@@ -2363,8 +2362,10 @@ static bool wm5110_volatile_register(struct device *dev, unsigned int reg)
2363 case ARIZONA_INTERRUPT_RAW_STATUS_7: 2362 case ARIZONA_INTERRUPT_RAW_STATUS_7:
2364 case ARIZONA_INTERRUPT_RAW_STATUS_8: 2363 case ARIZONA_INTERRUPT_RAW_STATUS_8:
2365 case ARIZONA_IRQ_PIN_STATUS: 2364 case ARIZONA_IRQ_PIN_STATUS:
2365 case ARIZONA_AOD_WKUP_AND_TRIG:
2366 case ARIZONA_AOD_IRQ1: 2366 case ARIZONA_AOD_IRQ1:
2367 case ARIZONA_AOD_IRQ2: 2367 case ARIZONA_AOD_IRQ2:
2368 case ARIZONA_AOD_IRQ_RAW_STATUS:
2368 case ARIZONA_FX_CTRL2: 2369 case ARIZONA_FX_CTRL2:
2369 case ARIZONA_ASRC_STATUS: 2370 case ARIZONA_ASRC_STATUS:
2370 case ARIZONA_DSP_STATUS: 2371 case ARIZONA_DSP_STATUS: