From: Lee Jones <lee.jones@linaro.org>
To: Steve Twiss <stwiss.opensource@diasemi.com>
Cc: LINUXKERNEL <linux-kernel@vger.kernel.org>,
Samuel Ortiz <sameo@linux.intel.com>,
David Dajun Chen <david.chen@diasemi.com>,
Support Opensource <support.opensource@diasemi.com>
Subject: Re: [PATCH V1 1/2] mfd: da9053: Addition of extra registers for GPIOs 8-13
Date: Tue, 13 Oct 2015 08:31:59 +0100 [thread overview]
Message-ID: <20151013073159.GS17172@x1> (raw)
In-Reply-To: <9881d4857f21b2a76f092b4cf2659910ba75150d.1444317472.git.stwiss.opensource@diasemi.com>
On Thu, 08 Oct 2015, Steve Twiss wrote:
> From: Steve Twiss <stwiss.opensource@diasemi.com>
>
> Definitions for GPIO registers 8, 9, 10, 11, 12 and 13 are added into
> the register header file.
>
> - DA9052_GPIO_8_9_REG 25
> - DA9052_GPIO_10_11_REG 26
> - DA9052_GPIO_12_13_REG 27
>
> A modification is also made to the MFD core code to define these registers
> as readable and writable. The functions for da9052_reg_readable() and
> da9052_reg_writeable() have had their case statements altered to include
> these new registers.
>
> Signed-off-by: Steve Twiss <stwiss.opensource@diasemi.com>
>
> ---
> This patch applies against linux-next and v4.3-rc4
>
>
> drivers/mfd/da9052-core.c | 6 ++++++
> include/linux/mfd/da9052/reg.h | 3 +++
> 2 files changed, 9 insertions(+)
Applied, thanks.
> diff --git a/drivers/mfd/da9052-core.c b/drivers/mfd/da9052-core.c
> index 46e3840..c0bf68a 100644
> --- a/drivers/mfd/da9052-core.c
> +++ b/drivers/mfd/da9052-core.c
> @@ -51,6 +51,9 @@ static bool da9052_reg_readable(struct device *dev, unsigned int reg)
> case DA9052_GPIO_2_3_REG:
> case DA9052_GPIO_4_5_REG:
> case DA9052_GPIO_6_7_REG:
> + case DA9052_GPIO_8_9_REG:
> + case DA9052_GPIO_10_11_REG:
> + case DA9052_GPIO_12_13_REG:
> case DA9052_GPIO_14_15_REG:
> case DA9052_ID_0_1_REG:
> case DA9052_ID_2_3_REG:
> @@ -178,6 +181,9 @@ static bool da9052_reg_writeable(struct device *dev, unsigned int reg)
> case DA9052_GPIO_2_3_REG:
> case DA9052_GPIO_4_5_REG:
> case DA9052_GPIO_6_7_REG:
> + case DA9052_GPIO_8_9_REG:
> + case DA9052_GPIO_10_11_REG:
> + case DA9052_GPIO_12_13_REG:
> case DA9052_GPIO_14_15_REG:
> case DA9052_ID_0_1_REG:
> case DA9052_ID_2_3_REG:
> diff --git a/include/linux/mfd/da9052/reg.h b/include/linux/mfd/da9052/reg.h
> index c4dd3a8..5010f97 100644
> --- a/include/linux/mfd/da9052/reg.h
> +++ b/include/linux/mfd/da9052/reg.h
> @@ -65,6 +65,9 @@
> #define DA9052_GPIO_2_3_REG 22
> #define DA9052_GPIO_4_5_REG 23
> #define DA9052_GPIO_6_7_REG 24
> +#define DA9052_GPIO_8_9_REG 25
> +#define DA9052_GPIO_10_11_REG 26
> +#define DA9052_GPIO_12_13_REG 27
> #define DA9052_GPIO_14_15_REG 28
>
> /* POWER SEQUENCER CONTROL REGISTERS */
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2015-10-13 7:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-08 15:17 [PATCH V1 0/2] Add DA9021 support to the existing DA9052/53 driver Steve Twiss
2015-10-08 15:17 ` [PATCH V1 1/2] mfd: da9053: Addition of extra registers for GPIOs 8-13 Steve Twiss
2015-10-13 7:31 ` Lee Jones [this message]
2015-10-13 8:21 ` Opensource [Steve Twiss]
2015-10-08 15:17 ` [PATCH V1 2/2] regulator: da9053: Add regulator support for DA9053 BB silicon Steve Twiss
2015-10-09 11:36 ` [PATCH V1 0/2] Add DA9021 support to the existing DA9052/53 driver Mark Brown
2015-10-09 12:52 ` Opensource [Steve Twiss]
2015-10-12 7:57 ` Opensource [Steve Twiss]
2015-10-12 16:42 ` 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=20151013073159.GS17172@x1 \
--to=lee.jones@linaro.org \
--cc=david.chen@diasemi.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.com \
--cc=stwiss.opensource@diasemi.com \
--cc=support.opensource@diasemi.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;
as well as URLs for NNTP newsgroup(s).