mfd: arizona: Update registers for WM5110 DSP
Subsystems (2)
PATCH v2 1/1 mfd: arizona: Update registers for WM5110 DSP
DSPx_CONTROL_1 and DSPx_CLOCKING_1 are not volatile registers and are incorrectly marked as such, fix this. Also add the DSP scratch registers, which are frequently used to output debug info from the DSP core.
---
Version 2 of the patch, improved commit message and turns out the scratch registers were missing from the readable callback as well.
Based on Lee Jones's for-mfd-next branch.
Thanks,
Charles
drivers/mfd/wm5110-tables.c | 34 ++++++++++++++++++++++++++++++++-- 1 files changed, 32 insertions(+), 2 deletions(-)
drivers/mfd/wm5110-tables.c +32 -2
@@ -2274,21 +2274,37 @@ static bool wm5110_readable_register(struct device *dev, unsigned int reg)case ARIZONA_DSP1_STATUS_1 :case ARIZONA_DSP1_STATUS_2 :case ARIZONA_DSP1_STATUS_3 : +case ARIZONA_DSP1_SCRATCH_0 : +case ARIZONA_DSP1_SCRATCH_1 : +case ARIZONA_DSP1_SCRATCH_2 : +case ARIZONA_DSP1_SCRATCH_3 :case ARIZONA_DSP2_CONTROL_1 :case ARIZONA_DSP2_CLOCKING_1 :case ARIZONA_DSP2_STATUS_1 :case ARIZONA_DSP2_STATUS_2 :case ARIZONA_DSP2_STATUS_3 : +case ARIZONA_DSP2_SCRATCH_0 : +case ARIZONA_DSP2_SCRATCH_1 : +case ARIZONA_DSP2_SCRATCH_2 : +case ARIZONA_DSP2_SCRATCH_3 :case ARIZONA_DSP3_CONTROL_1 :case ARIZONA_DSP3_CLOCKING_1 :case ARIZONA_DSP3_STATUS_1 :case ARIZONA_DSP3_STATUS_2 :case ARIZONA_DSP3_STATUS_3 : +case ARIZONA_DSP3_SCRATCH_0 : +case ARIZONA_DSP3_SCRATCH_1 : +case ARIZONA_DSP3_SCRATCH_2 : +case ARIZONA_DSP3_SCRATCH_3 :case ARIZONA_DSP4_CONTROL_1 :case ARIZONA_DSP4_CLOCKING_1 :case ARIZONA_DSP4_STATUS_1 :case ARIZONA_DSP4_STATUS_2 :case ARIZONA_DSP4_STATUS_3 : +case ARIZONA_DSP4_SCRATCH_0 : +case ARIZONA_DSP4_SCRATCH_1 : +case ARIZONA_DSP4_SCRATCH_2 : +case ARIZONA_DSP4_SCRATCH_3 :return true;default :return false;
@@ -2334,20 +2350,34 @@ static bool wm5110_volatile_register(struct device *dev, unsigned int reg)case ARIZONA_AOD_IRQ2 :case ARIZONA_ASRC_STATUS :case ARIZONA_DSP_STATUS : -case ARIZONA_DSP1_CONTROL_1 : -case ARIZONA_DSP1_CLOCKING_1 :case ARIZONA_DSP1_STATUS_1 :case ARIZONA_DSP1_STATUS_2 :case ARIZONA_DSP1_STATUS_3 : +case ARIZONA_DSP1_SCRATCH_0 : +case ARIZONA_DSP1_SCRATCH_1 : +case ARIZONA_DSP1_SCRATCH_2 : +case ARIZONA_DSP1_SCRATCH_3 :case ARIZONA_DSP2_STATUS_1 :case ARIZONA_DSP2_STATUS_2 :case ARIZONA_DSP2_STATUS_3 : +case ARIZONA_DSP2_SCRATCH_0 : +case ARIZONA_DSP2_SCRATCH_1 : +case ARIZONA_DSP2_SCRATCH_2 : +case ARIZONA_DSP2_SCRATCH_3 :case ARIZONA_DSP3_STATUS_1 :case ARIZONA_DSP3_STATUS_2 :case ARIZONA_DSP3_STATUS_3 : +case ARIZONA_DSP3_SCRATCH_0 : +case ARIZONA_DSP3_SCRATCH_1 : +case ARIZONA_DSP3_SCRATCH_2 : +case ARIZONA_DSP3_SCRATCH_3 :case ARIZONA_DSP4_STATUS_1 :case ARIZONA_DSP4_STATUS_2 :case ARIZONA_DSP4_STATUS_3 : +case ARIZONA_DSP4_SCRATCH_0 : +case ARIZONA_DSP4_SCRATCH_1 : +case ARIZONA_DSP4_SCRATCH_2 : +case ARIZONA_DSP4_SCRATCH_3 :return true;default :return false;
Signature · 1 line
1.7.2.5
Lee Jones
AppliedQuoted 12 lines · Charles Keepax
DSPx_CONTROL_1andDSPx_CLOCKING_1are not volatile registers and are incorrectly marked as such, fix this. Also add the DSP scratch registers, which are frequently used to output debug info from the DSP core.Signed-off-by Charles Keepax <[email protected]>---
Version 2 of the patch, improved commit message and turns out the scratch registers were missing from the readable callback as well.
Quoted 7 lines
Based on Lee Jones's for-mfd-next branch.
Thanks,
Charlesdrivers/mfd/wm5110-tables.c | 34 ++++++++++++++++++++++++++++++++-- 1 files changed, 32 insertions(+), 2 deletions(-)
If you're sure this is the right configuration, the patch looks good to me.
Applied, thanks.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog