Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Magnus Damm and committed by
Paul Mundt
67908abf 57795867

+9
+9
arch/sh/boards/renesas/migor/setup.c
··· 202 202 I2C_BOARD_INFO("rtc-rs5c372", 0x32), 203 203 .type = "rs5c372b", 204 204 }, 205 + { 206 + I2C_BOARD_INFO("migor_ts", 0x51), 207 + .irq = 38, /* IRQ6 */ 208 + }, 205 209 }; 206 210 207 211 static int __init migor_devices_setup(void) ··· 237 233 238 234 /* I2C */ 239 235 ctrl_outl(ctrl_inl(MSTPCR1) & ~0x00000200, MSTPCR1); 236 + 237 + /* Touch Panel - Enable IRQ6 */ 238 + ctrl_outw(ctrl_inw(PORT_PZCR) & ~0xc, PORT_PZCR); 239 + ctrl_outw((ctrl_inw(PORT_PSELA) | 0x8000), PORT_PSELA); 240 + ctrl_outw((ctrl_inw(PORT_HIZCRC) & ~0x4000), PORT_HIZCRC); 240 241 } 241 242 242 243 static struct sh_machine_vector mv_migor __initmv = {