From: chinyeow.sim.xt@renesas.com
To: linux-sh@vger.kernel.org
Subject: [PATCH] ARM: mach-shmobile: mackerel: Add touchscreen ST1232 support
Date: Tue, 11 Jan 2011 00:47:59 +0000 [thread overview]
Message-ID: <1294706879-5290-1-git-send-email-chinyeow.sim.xt@renesas.com> (raw)
In-Reply-To: <w3p7hfw4po7.wl%kuninori.morimoto.gx@renesas.com>
From: Tony SIM <chinyeow.sim.xt@renesas.com>
Signed-off-by: Tony SIM <chinyeow.sim.xt@renesas.com>
---
arch/arm/mach-shmobile/board-mackerel.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c
index 42f7c0d..b0027d2 100644
--- a/arch/arm/mach-shmobile/board-mackerel.c
+++ b/arch/arm/mach-shmobile/board-mackerel.c
@@ -746,6 +746,7 @@ static struct tca6416_keys_platform_data mackerel_tca6416_keys_info = {
};
/* I2C */
+#define IRQ7 evt2irq(0x02e0)
#define IRQ9 evt2irq(0x0320)
static struct i2c_board_info i2c0_devices[] = {
@@ -758,6 +759,11 @@ static struct i2c_board_info i2c0_devices[] = {
.platform_data = &mackerel_tca6416_keys_info,
.irq = IRQ9,
},
+ /* Touchscreen */
+ {
+ I2C_BOARD_INFO("st1232-ts", 0x55),
+ .irq = IRQ7,
+ },
};
#define IRQ21 evt2irq(0x32a0)
@@ -869,6 +875,10 @@ static void __init mackerel_init(void)
gpio_request(GPIO_FN_IRQ9_42, NULL);
set_irq_type(IRQ9, IRQ_TYPE_LEVEL_HIGH);
+ /* enable Touchscreen */
+ gpio_request(GPIO_FN_IRQ7_40, NULL);
+ set_irq_type(IRQ7, IRQ_TYPE_LEVEL_LOW);
+
/* enable Accelerometer */
gpio_request(GPIO_FN_IRQ21, NULL);
set_irq_type(IRQ21, IRQ_TYPE_LEVEL_HIGH);
--
1.7.2.3
next prev parent reply other threads:[~2011-01-11 0:47 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-29 6:19 [PATCH] ARM: mach-shmobile: mackerel: Add lost GPIO_FN_LCDD 18 - 23 Kuninori Morimoto
2010-11-29 8:26 ` Paul Mundt
2010-11-30 4:37 ` [PATCH] ARM: mach-shmobile: mackerel: Add USB1(Host) support Kuninori Morimoto
2010-11-30 5:18 ` Paul Mundt
2010-11-30 6:52 ` [PATCH] ARM: mach-shmobile: mackerel: Add LEDs support Kuninori Morimoto
2010-12-01 0:31 ` [PATCH] ARM: mach-shmobile: mackerel: Add FSI-AK4643 support Kuninori Morimoto
2010-12-01 7:09 ` [PATCH] ARM: mach-shmobile: mackerel: Add LEDs support Paul Mundt
2010-12-07 9:12 ` [PATCH] ARM: mach-shmobile: mackerel: Add Accelerometer sensor support sim.chinyeow
2010-12-08 5:37 ` Paul Mundt
2010-12-09 1:55 ` [PATCH] ARM: mach-shmobile: mackerel: Add keypad tca6408a support chinyeow.sim.xt
2010-12-13 5:10 ` Paul Mundt
2010-12-14 5:18 ` [PATCH] ARM: mach-shmobile: mackerel: Add sdhi support Yusuke Goda
2010-12-14 9:50 ` Paul Mundt
2010-12-15 4:08 ` [PATCH] ARM: mach-shmobile: mackerel: Add mmcif support Yusuke Goda
2010-12-15 6:02 ` Paul Mundt
2010-12-15 6:40 ` Magnus Damm
2010-12-15 6:43 ` Magnus Damm
2010-12-15 7:35 ` Yusuke Goda
2010-12-15 7:39 ` Magnus Damm
2010-12-15 7:59 ` Yusuke Goda
2010-12-20 1:06 ` [PATCH] ARM: mach-shmobile: mackerel: Add GPS support Yusuke Goda
2010-12-20 16:15 ` Paul Mundt
2010-12-23 6:36 ` [PATCH] ARM: mach-shmobile: mackerel: Add sdhi support Simon Horman
2011-01-07 9:48 ` [PATCH] ARM: mach-shmobile: mackerel: Add support get_cd in CN23 Yusuke Goda
2011-01-11 0:47 ` chinyeow.sim.xt [this message]
2011-01-11 3:53 ` Paul Mundt
2011-01-11 3:57 ` [PATCH] ARM: mach-shmobile: mackerel: Add touchscreen ST1232 support Paul Mundt
2011-01-11 9:27 ` [PATCH] ARM: mach-shmobile: mackerel: Add sdhi support Yusuke Goda
2011-01-11 22:48 ` Simon Horman
2012-01-19 0:37 ` [PATCH] ARM: mach-shmobile: mackerel: add ak4642 amixer settings on comment Kuninori Morimoto
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=1294706879-5290-1-git-send-email-chinyeow.sim.xt@renesas.com \
--to=chinyeow.sim.xt@renesas.com \
--cc=linux-sh@vger.kernel.org \
/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).