Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1242523 > unrolled thread

[PATCH V1 1/2] mfd: da9053: Addition of extra registers for GPIOs 8-13

Started bySteve Twiss <stwiss.opensource@diasemi.com>
First post2015-10-08 17:30 +0200
Last post2015-10-13 10:30 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH V1 1/2] mfd: da9053: Addition of extra registers for GPIOs  8-13 Steve Twiss <stwiss.opensource@diasemi.com> - 2015-10-08 17:30 +0200
    Re: [PATCH V1 1/2] mfd: da9053: Addition of extra registers for  GPIOs 8-13 Lee Jones <lee.jones@linaro.org> - 2015-10-13 09:40 +0200
      RE: [PATCH V1 1/2] mfd: da9053: Addition of extra registers for  GPIOs 8-13 "Opensource [Steve Twiss]" <stwiss.opensource@diasemi.com> - 2015-10-13 10:30 +0200

#1242523 — [PATCH V1 1/2] mfd: da9053: Addition of extra registers for GPIOs 8-13

FromSteve Twiss <stwiss.opensource@diasemi.com>
Date2015-10-08 17:30 +0200
Subject[PATCH V1 1/2] mfd: da9053: Addition of extra registers for GPIOs 8-13
Message-ID<qhliO-7tw-13@gated-at.bofh.it>
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(+)

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 */
-- 
end-of-patch for PATCH V1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1245410 — Re: [PATCH V1 1/2] mfd: da9053: Addition of extra registers for GPIOs 8-13

FromLee Jones <lee.jones@linaro.org>
Date2015-10-13 09:40 +0200
SubjectRe: [PATCH V1 1/2] mfd: da9053: Addition of extra registers for GPIOs 8-13
Message-ID<qj2lI-8ci-3@gated-at.bofh.it>
In reply to#1242523
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1245461 — RE: [PATCH V1 1/2] mfd: da9053: Addition of extra registers for GPIOs 8-13

From"Opensource [Steve Twiss]" <stwiss.opensource@diasemi.com>
Date2015-10-13 10:30 +0200
SubjectRE: [PATCH V1 1/2] mfd: da9053: Addition of extra registers for GPIOs 8-13
Message-ID<qj386-Y7-25@gated-at.bofh.it>
In reply to#1245410
T24gMTMgT2N0b2JlciAyMDE1IDA4OjMyIExlZSBKb25lcyB3cm90ZToNCg0KPiBUbzogT3BlbnNv
dXJjZSBbU3RldmUgVHdpc3NdDQo+IENjOiBMSU5VWEtFUk5FTDsgU2FtdWVsIE9ydGl6OyBEYXZp
ZCBEYWp1biBDaGVuOyBTdXBwb3J0IE9wZW5zb3VyY2UNCj4gU3ViamVjdDogUmU6IFtQQVRDSCBW
MSAxLzJdIG1mZDogZGE5MDUzOiBBZGRpdGlvbiBvZiBle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+ICBkcml2ZXJzL21mZC9kYTkwNTItY29yZS5jICAgICAgfCA2ICsrKysrKw0KPiA+ICBp
bmNsdWRlL2xpbnV4L21mZC9kYTkwNTIvcmVnLmggfCAzICsrKw0KPiA+ICAyIGZpbGVzIGNoYW5n
ZWQsIDkgaW5zZXJ0aW9ucygrKQ0KPiANCj4gQXBwbGllZCwgdGhhbmtzLg0KDQpUaGFua3MgTGVl
Lg0KUmVnYXJkcywNClN0ZXZlDQo=
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web