Re: [PATCH] mfd: arizona: Update volatile registers for WM5110 DSP

From: Lee Jones
Date: Tue Sep 17 2013 - 03:24:36 EST


On Mon, 16 Sep 2013, Charles Keepax wrote:

Any chance of a little more information in the commit message?

What are scratch registers and why are they required now where they
weren't before? Why are the control and clocking regulators no longer
needed?

> Signed-off-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> ---
> drivers/mfd/wm5110-tables.c | 18 ++++++++++++++++--
> 1 files changed, 16 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mfd/wm5110-tables.c b/drivers/mfd/wm5110-tables.c
> index 2a79723..92c6ea6 100644
> --- a/drivers/mfd/wm5110-tables.c
> +++ b/drivers/mfd/wm5110-tables.c
> @@ -2334,20 +2334,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;

--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/