mirror of
https://github.com/torvalds/linux
synced 2024-09-28 15:31:19 +00:00
ARM: mach-shmobile: mackerel: Add touchscreen ST1232 support
Signed-off-by: Tony SIM <chinyeow.sim.xt@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
1dadad2ffc
commit
6ae1e19dbb
|
@ -963,6 +963,7 @@ static struct tca6416_keys_platform_data mackerel_tca6416_keys_info = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* I2C */
|
/* I2C */
|
||||||
|
#define IRQ7 evt2irq(0x02e0)
|
||||||
#define IRQ9 evt2irq(0x0320)
|
#define IRQ9 evt2irq(0x0320)
|
||||||
|
|
||||||
static struct i2c_board_info i2c0_devices[] = {
|
static struct i2c_board_info i2c0_devices[] = {
|
||||||
|
@ -975,6 +976,11 @@ static struct i2c_board_info i2c0_devices[] = {
|
||||||
.platform_data = &mackerel_tca6416_keys_info,
|
.platform_data = &mackerel_tca6416_keys_info,
|
||||||
.irq = IRQ9,
|
.irq = IRQ9,
|
||||||
},
|
},
|
||||||
|
/* Touchscreen */
|
||||||
|
{
|
||||||
|
I2C_BOARD_INFO("st1232-ts", 0x55),
|
||||||
|
.irq = IRQ7,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
#define IRQ21 evt2irq(0x32a0)
|
#define IRQ21 evt2irq(0x32a0)
|
||||||
|
@ -1102,6 +1108,10 @@ static void __init mackerel_init(void)
|
||||||
gpio_request(GPIO_FN_IRQ9_42, NULL);
|
gpio_request(GPIO_FN_IRQ9_42, NULL);
|
||||||
set_irq_type(IRQ9, IRQ_TYPE_LEVEL_HIGH);
|
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 */
|
/* enable Accelerometer */
|
||||||
gpio_request(GPIO_FN_IRQ21, NULL);
|
gpio_request(GPIO_FN_IRQ21, NULL);
|
||||||
set_irq_type(IRQ21, IRQ_TYPE_LEVEL_HIGH);
|
set_irq_type(IRQ21, IRQ_TYPE_LEVEL_HIGH);
|
||||||
|
|
Loading…
Reference in a new issue