From: Lee Jones <lee.jones@linaro.org>
To: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Cc: patches@opensource.wolfsonmicro.com, alsa-devel@alsa-project.org,
broonie@kernel.org, lgirdwood@gmail.com, sameo@linux.intel.com
Subject: Re: [PATCH 1/3] mfd: wm5110: Add registers for custom write sequence triggers
Date: Tue, 7 Jul 2015 08:12:24 +0100 [thread overview]
Message-ID: <20150707071224.GK3182@x1> (raw)
In-Reply-To: <1435838281-15873-1-git-send-email-ckeepax@opensource.wolfsonmicro.com>
On Thu, 02 Jul 2015, Charles Keepax wrote:
> This register will be needed as part of some additional support for the
> headphone path on wm5110, so this patch adds the register and sets up
> its regmap config.
>
> Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
> ---
>
> I have based the series on Mark's ASoC since that is where
> most of the work is. The MFD patches are pretty trivial
> but I am happy to send a series based on the MFD tree if
> preferred.
>
> Thanks,
> Charles
>
> drivers/mfd/wm5110-tables.c | 2 +
> include/linux/mfd/arizona/registers.h | 37 +++++++++++++++++++++++++++++++++
> 2 files changed, 39 insertions(+), 0 deletions(-)
Acked-by: Lee Jones <lee.jones@linaro.org>
> diff --git a/drivers/mfd/wm5110-tables.c b/drivers/mfd/wm5110-tables.c
> index 12cad94..62a4aa1 100644
> --- a/drivers/mfd/wm5110-tables.c
> +++ b/drivers/mfd/wm5110-tables.c
> @@ -676,6 +676,7 @@ static const struct reg_default wm5110_reg_default[] = {
> { 0x00000032, 0x0100 }, /* R50 - PWM Drive 3 */
> { 0x00000040, 0x0000 }, /* R64 - Wake control */
> { 0x00000041, 0x0000 }, /* R65 - Sequence control */
> + { 0x00000042, 0x0000 }, /* R66 - Spare Triggers */
> { 0x00000061, 0x01FF }, /* R97 - Sample Rate Sequence Select 1 */
> { 0x00000062, 0x01FF }, /* R98 - Sample Rate Sequence Select 2 */
> { 0x00000063, 0x01FF }, /* R99 - Sample Rate Sequence Select 3 */
> @@ -1716,6 +1717,7 @@ static bool wm5110_readable_register(struct device *dev, unsigned int reg)
> case ARIZONA_PWM_DRIVE_3:
> case ARIZONA_WAKE_CONTROL:
> case ARIZONA_SEQUENCE_CONTROL:
> + case ARIZONA_SPARE_TRIGGERS:
> case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_1:
> case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_2:
> case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_3:
> diff --git a/include/linux/mfd/arizona/registers.h b/include/linux/mfd/arizona/registers.h
> index aacc10d..f43aa56 100644
> --- a/include/linux/mfd/arizona/registers.h
> +++ b/include/linux/mfd/arizona/registers.h
> @@ -39,6 +39,7 @@
> #define ARIZONA_PWM_DRIVE_3 0x32
> #define ARIZONA_WAKE_CONTROL 0x40
> #define ARIZONA_SEQUENCE_CONTROL 0x41
> +#define ARIZONA_SPARE_TRIGGERS 0x42
> #define ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_1 0x61
> #define ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_2 0x62
> #define ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_3 0x63
> @@ -1431,6 +1432,42 @@
> #define ARIZONA_WSEQ_ENA_JD2_RISE_WIDTH 1 /* WSEQ_ENA_JD2_RISE */
>
> /*
> + * R66 (0x42) - Spare Triggers
> + */
> +#define ARIZONA_WS_TRG8 0x0080 /* WS_TRG8 */
> +#define ARIZONA_WS_TRG8_MASK 0x0080 /* WS_TRG8 */
> +#define ARIZONA_WS_TRG8_SHIFT 7 /* WS_TRG8 */
> +#define ARIZONA_WS_TRG8_WIDTH 1 /* WS_TRG8 */
> +#define ARIZONA_WS_TRG7 0x0040 /* WS_TRG7 */
> +#define ARIZONA_WS_TRG7_MASK 0x0040 /* WS_TRG7 */
> +#define ARIZONA_WS_TRG7_SHIFT 6 /* WS_TRG7 */
> +#define ARIZONA_WS_TRG7_WIDTH 1 /* WS_TRG7 */
> +#define ARIZONA_WS_TRG6 0x0020 /* WS_TRG6 */
> +#define ARIZONA_WS_TRG6_MASK 0x0020 /* WS_TRG6 */
> +#define ARIZONA_WS_TRG6_SHIFT 5 /* WS_TRG6 */
> +#define ARIZONA_WS_TRG6_WIDTH 1 /* WS_TRG6 */
> +#define ARIZONA_WS_TRG5 0x0010 /* WS_TRG5 */
> +#define ARIZONA_WS_TRG5_MASK 0x0010 /* WS_TRG5 */
> +#define ARIZONA_WS_TRG5_SHIFT 4 /* WS_TRG5 */
> +#define ARIZONA_WS_TRG5_WIDTH 1 /* WS_TRG5 */
> +#define ARIZONA_WS_TRG4 0x0008 /* WS_TRG4 */
> +#define ARIZONA_WS_TRG4_MASK 0x0008 /* WS_TRG4 */
> +#define ARIZONA_WS_TRG4_SHIFT 3 /* WS_TRG4 */
> +#define ARIZONA_WS_TRG4_WIDTH 1 /* WS_TRG4 */
> +#define ARIZONA_WS_TRG3 0x0004 /* WS_TRG3 */
> +#define ARIZONA_WS_TRG3_MASK 0x0004 /* WS_TRG3 */
> +#define ARIZONA_WS_TRG3_SHIFT 2 /* WS_TRG3 */
> +#define ARIZONA_WS_TRG3_WIDTH 1 /* WS_TRG3 */
> +#define ARIZONA_WS_TRG2 0x0002 /* WS_TRG2 */
> +#define ARIZONA_WS_TRG2_MASK 0x0002 /* WS_TRG2 */
> +#define ARIZONA_WS_TRG2_SHIFT 1 /* WS_TRG2 */
> +#define ARIZONA_WS_TRG2_WIDTH 1 /* WS_TRG2 */
> +#define ARIZONA_WS_TRG1 0x0001 /* WS_TRG1 */
> +#define ARIZONA_WS_TRG1_MASK 0x0001 /* WS_TRG1 */
> +#define ARIZONA_WS_TRG1_SHIFT 0 /* WS_TRG1 */
> +#define ARIZONA_WS_TRG1_WIDTH 1 /* WS_TRG1 */
> +
> +/*
> * R97 (0x61) - Sample Rate Sequence Select 1
> */
> #define ARIZONA_WSEQ_SAMPLE_RATE_DETECT_A_SEQ_ADDR_MASK 0x01FF /* WSEQ_SAMPLE_RATE_DETECT_A_SEQ_ADDR - [8:0] */
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2015-07-07 7:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-02 11:57 [PATCH 1/3] mfd: wm5110: Add registers for custom write sequence triggers Charles Keepax
2015-07-02 11:58 ` [PATCH 2/3] mfd: wm5110: Add register patch for rev E and above Charles Keepax
2015-07-07 7:11 ` Lee Jones
2015-07-02 11:58 ` [PATCH 3/3] ASoC: wm5110: Add special DRE on/off handling for the headphone path Charles Keepax
2015-07-08 19:23 ` Applied "ASoC: wm5110: Add special DRE on/off handling for the headphone path" to the asoc tree Mark Brown
2015-07-07 7:12 ` Lee Jones [this message]
2015-07-08 19:23 ` Applied "mfd: wm5110: Add registers for custom write sequence triggers" " Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150707071224.GK3182@x1 \
--to=lee.jones@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.wolfsonmicro.com \
--cc=lgirdwood@gmail.com \
--cc=patches@opensource.wolfsonmicro.com \
--cc=sameo@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox