aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/wm5102-tables.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-26 23:07:23 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2013-02-13 18:22:47 -0500
commit0cc9d08d3dca174ee712044e299732f26fdab22d (patch)
treed4b8e97977def893f888d4d8a65453ee0c456706 /drivers/mfd/wm5102-tables.c
parentf1c68e4dd455eeaf30647a52595a7daf62fc5492 (diff)
mfd: wm5102: Mark DSP memory regions as volatile and readable
We can cache some of them but this is simpler for now. 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, 7 insertions, 1 deletions
diff --git a/drivers/mfd/wm5102-tables.c b/drivers/mfd/wm5102-tables.c
index 74f9853b6dc4..6655c9e89e92 100644
--- a/drivers/mfd/wm5102-tables.c
+++ b/drivers/mfd/wm5102-tables.c
@@ -1826,7 +1826,13 @@ static bool wm5102_readable_register(struct device *dev, unsigned int reg)
1826 case ARIZONA_DSP1_STATUS_3: 1826 case ARIZONA_DSP1_STATUS_3:
1827 return true; 1827 return true;
1828 default: 1828 default:
1829 return false; 1829 if ((reg >= 0x100000 && reg < 0x106000) ||
1830 (reg >= 0x180000 && reg < 0x180800) ||
1831 (reg >= 0x190000 && reg < 0x194800) ||
1832 (reg >= 0x1a8000 && reg < 0x1a9800))
1833 return true;
1834 else
1835 return false;
1830 } 1836 }
1831} 1837}
1832 1838