diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-03-25 04:30:45 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-04-18 12:50:06 -0400 |
commit | 67908abf02fb83dee1730adf70d9e31367119190 (patch) | |
tree | 02dbb13d2e13f6707047d0d1b2f3dcf762ac3486 /arch/sh/boards | |
parent | 577958671eadf5ab1deed66f99cdbe67b502ea66 (diff) |
sh: Add migor_ts support to MigoR
Add support for the migor_ts touch panel to the MigoR board.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards')
-rw-r--r-- | arch/sh/boards/renesas/migor/setup.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/sh/boards/renesas/migor/setup.c b/arch/sh/boards/renesas/migor/setup.c index ebef8a8bbdb3..00d52a20d8a5 100644 --- a/arch/sh/boards/renesas/migor/setup.c +++ b/arch/sh/boards/renesas/migor/setup.c | |||
@@ -202,6 +202,10 @@ static struct i2c_board_info __initdata migor_i2c_devices[] = { | |||
202 | I2C_BOARD_INFO("rtc-rs5c372", 0x32), | 202 | I2C_BOARD_INFO("rtc-rs5c372", 0x32), |
203 | .type = "rs5c372b", | 203 | .type = "rs5c372b", |
204 | }, | 204 | }, |
205 | { | ||
206 | I2C_BOARD_INFO("migor_ts", 0x51), | ||
207 | .irq = 38, /* IRQ6 */ | ||
208 | }, | ||
205 | }; | 209 | }; |
206 | 210 | ||
207 | static int __init migor_devices_setup(void) | 211 | static int __init migor_devices_setup(void) |
@@ -233,6 +237,11 @@ static void __init migor_setup(char **cmdline_p) | |||
233 | 237 | ||
234 | /* I2C */ | 238 | /* I2C */ |
235 | ctrl_outl(ctrl_inl(MSTPCR1) & ~0x00000200, MSTPCR1); | 239 | ctrl_outl(ctrl_inl(MSTPCR1) & ~0x00000200, MSTPCR1); |
240 | |||
241 | /* Touch Panel - Enable IRQ6 */ | ||
242 | ctrl_outw(ctrl_inw(PORT_PZCR) & ~0xc, PORT_PZCR); | ||
243 | ctrl_outw((ctrl_inw(PORT_PSELA) | 0x8000), PORT_PSELA); | ||
244 | ctrl_outw((ctrl_inw(PORT_HIZCRC) & ~0x4000), PORT_HIZCRC); | ||
236 | } | 245 | } |
237 | 246 | ||
238 | static struct sh_machine_vector mv_migor __initmv = { | 247 | static struct sh_machine_vector mv_migor __initmv = { |