All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: Add migor_ts support to MigoR
@ 2008-03-25  8:30 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2008-03-25  8:30 UTC (permalink / raw)
  To: linux-sh

Add support for the migor_ts touch panel to the MigoR board.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
---

 arch/sh/boards/renesas/migor/setup.c |    9 +++++++++
 1 file changed, 9 insertions(+)

--- 0010/arch/sh/boards/renesas/migor/setup.c
+++ work/arch/sh/boards/renesas/migor/setup.c	2008-03-20 19:54:41.000000000 +0900
@@ -180,6 +180,10 @@ static struct i2c_board_info __initdata 
 		I2C_BOARD_INFO("rtc-rs5c372", 0x32),
 		.type   = "rs5c372b",
 	},
+	{
+		I2C_BOARD_INFO("migor_ts", 0x51),
+		.irq = 38, /* IRQ6 */
+	},
 };
 
 static int __init migor_devices_setup(void)
@@ -211,6 +215,11 @@ static void __init migor_setup(char **cm
 
 	/* I2C */
 	ctrl_outl(ctrl_inl(MSTPCR1) & ~0x00000200, MSTPCR1);
+
+	/* Touch Panel - Enable IRQ6 */
+	ctrl_outw(ctrl_inw(PORT_PZCR) & ~0xc, PORT_PZCR);
+	ctrl_outw((ctrl_inw(PORT_PSELA) | 0x8000), PORT_PSELA);
+	ctrl_outw((ctrl_inw(PORT_HIZCRC) & ~0x4000), PORT_HIZCRC);
 }
 
 static struct sh_machine_vector mv_migor __initmv = {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-25  8:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-25  8:30 [PATCH] sh: Add migor_ts support to MigoR Magnus Damm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.