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


Groups > linux.kernel > #1447084 > unrolled thread

[PATCH 1/5] mfd: sunxi-gpadc-mfd: add TP_UP_PENDING irq

Started byQuentin Schulz <quentin.schulz@free-electrons.com>
First post2016-07-20 10:40 +0200
Last post2016-07-20 10:40 +0200
Articles 1 — 1 participant

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 1/5] mfd: sunxi-gpadc-mfd: add TP_UP_PENDING irq Quentin Schulz <quentin.schulz@free-electrons.com> - 2016-07-20 10:40 +0200

#1447084 — [PATCH 1/5] mfd: sunxi-gpadc-mfd: add TP_UP_PENDING irq

FromQuentin Schulz <quentin.schulz@free-electrons.com>
Date2016-07-20 10:40 +0200
Subject[PATCH 1/5] mfd: sunxi-gpadc-mfd: add TP_UP_PENDING irq
Message-ID<rWVcR-7sY-11@gated-at.bofh.it>
This adds support for TP_UP_PENDING irq in Allwinner SoCs' GPADC's MFD.

This interrupt occurs when a touchscreen is attached and the thing (stylus,
finger) currently touching the touchscreen releases the touch.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
---
 drivers/mfd/sunxi-gpadc-mfd.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/mfd/sunxi-gpadc-mfd.c b/drivers/mfd/sunxi-gpadc-mfd.c
index f0005a6..05a000b 100644
--- a/drivers/mfd/sunxi-gpadc-mfd.c
+++ b/drivers/mfd/sunxi-gpadc-mfd.c
@@ -19,6 +19,8 @@
 
 #define SUNXI_IRQ_FIFO_DATA	0
 #define SUNXI_IRQ_TEMP_DATA	1
+#define SUNXI_IRQ_TP_UP		2
+
 
 static struct resource adc_resources[] = {
 	{
@@ -34,9 +36,19 @@ static struct resource adc_resources[] = {
 	},
 };
 
+static struct resource ts_resources[] = {
+	{
+		.name	= "TP_UP_PENDING",
+		.start	= SUNXI_IRQ_TP_UP,
+		.end	= SUNXI_IRQ_TP_UP,
+		.flags	= IORESOURCE_IRQ,
+	},
+};
+
 static const struct regmap_irq sunxi_gpadc_mfd_regmap_irq[] = {
 	REGMAP_IRQ_REG(SUNXI_IRQ_FIFO_DATA, 0, BIT(16)),
 	REGMAP_IRQ_REG(SUNXI_IRQ_TEMP_DATA, 0, BIT(18)),
+	REGMAP_IRQ_REG(SUNXI_IRQ_TP_UP, 0, BIT(1)),
 };
 
 static const struct regmap_irq_chip sunxi_gpadc_mfd_regmap_irq_chip = {
-- 
2.5.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web