Commit e88ff1e6 authored by Mark Brown's avatar Mark Brown

ASoC: Include WM8994 GPIO and interrupt registers in codec_reg

Very handy for debug.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent d9823ed9
...@@ -1677,6 +1677,26 @@ static struct { ...@@ -1677,6 +1677,26 @@ static struct {
static int wm8994_readable(unsigned int reg) static int wm8994_readable(unsigned int reg)
{ {
switch (reg) {
case WM8994_GPIO_1:
case WM8994_GPIO_2:
case WM8994_GPIO_3:
case WM8994_GPIO_4:
case WM8994_GPIO_5:
case WM8994_GPIO_6:
case WM8994_GPIO_7:
case WM8994_GPIO_8:
case WM8994_GPIO_9:
case WM8994_GPIO_10:
case WM8994_GPIO_11:
case WM8994_INTERRUPT_STATUS_1:
case WM8994_INTERRUPT_STATUS_2:
case WM8994_INTERRUPT_RAW_STATUS_2:
return 1;
default:
break;
}
if (reg >= ARRAY_SIZE(access_masks)) if (reg >= ARRAY_SIZE(access_masks))
return 0; return 0;
return access_masks[reg].readable != 0; return access_masks[reg].readable != 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment