aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/wm5102-tables.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-25 04:09:23 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2013-02-13 18:22:55 -0500
commit5f384c1f8be19487f904731d7232120dcfeca8e1 (patch)
treeac53c13d17ffde90f861069a5e48993c7b6d3d08 /drivers/mfd/wm5102-tables.c
parent154c4c7b613049168e2923d096b7c2d100ba8a6a (diff)
mfd: wm5102: Make DSP scratch registers readable
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/wm5102-tables.c')
-rw-r--r--drivers/mfd/wm5102-tables.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c
index ff8f0804dde3..d754596eb942 100644
--- a/drivers/mfd/wm5102-tables.c
+++ b/drivers/mfd/wm5102-tables.c
@@ -1795,6 +1795,10 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg)
1795 case ARIZONA_DSP1_STATUS_1: 1795 case ARIZONA_DSP1_STATUS_1:
1796 case ARIZONA_DSP1_STATUS_2: 1796 case ARIZONA_DSP1_STATUS_2:
1797 case ARIZONA_DSP1_STATUS_3: 1797 case ARIZONA_DSP1_STATUS_3:
1798 case ARIZONA_DSP1_SCRATCH_0:
1799 case ARIZONA_DSP1_SCRATCH_1:
1800 case ARIZONA_DSP1_SCRATCH_2:
1801 case ARIZONA_DSP1_SCRATCH_3:
1798 return true; 1802 return true;
1799 default: 1803 default:
1800 if ((reg >= 0x100000 && reg < 0x106000) || 1804 if ((reg >= 0x100000 && reg < 0x106000) ||
@@ -1849,6 +1853,10 @@ static bool wm5102_volatile_register(struct device *dev, unsigned int reg)
1849 case ARIZONA_DSP1_STATUS_1: 1853 case ARIZONA_DSP1_STATUS_1:
1850 case ARIZONA_DSP1_STATUS_2: 1854 case ARIZONA_DSP1_STATUS_2:
1851 case ARIZONA_DSP1_STATUS_3: 1855 case ARIZONA_DSP1_STATUS_3:
1856 case ARIZONA_DSP1_SCRATCH_0:
1857 case ARIZONA_DSP1_SCRATCH_1:
1858 case ARIZONA_DSP1_SCRATCH_2:
1859 case ARIZONA_DSP1_SCRATCH_3:
1852 case ARIZONA_HEADPHONE_DETECT_2: 1860 case ARIZONA_HEADPHONE_DETECT_2:
1853 case ARIZONA_MIC_DETECT_3: 1861 case ARIZONA_MIC_DETECT_3:
1854 return true; 1862 return true;