提交 407c0526 编写于 作者: K Kuninori Morimoto 提交者: Rafael J. Wysocki

ARM: mach-shmobile: kzm9g: add ST1232 Touchscreen support

Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: NSimon Horman <horms@verge.net.au>
Acked-by: NMagnus Damm <damm@opensource.se>
Signed-off-by: NRafael J. Wysocki <rjw@sisk.pl>
上级 26786111
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <linux/gpio.h> #include <linux/gpio.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/i2c.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/smsc911x.h> #include <linux/smsc911x.h>
#include <linux/usb/r8a66597.h> #include <linux/usb/r8a66597.h>
...@@ -146,6 +147,13 @@ static struct platform_device lcdc_device = { ...@@ -146,6 +147,13 @@ static struct platform_device lcdc_device = {
}, },
}; };
static struct i2c_board_info i2c1_devices[] = {
{
I2C_BOARD_INFO("st1232-ts", 0x55),
.irq = intcs_evt2irq(0x300), /* IRQ8 */
},
};
static struct platform_device *kzm_devices[] __initdata = { static struct platform_device *kzm_devices[] __initdata = {
&smsc_device, &smsc_device,
&usb_host_device, &usb_host_device,
...@@ -253,11 +261,17 @@ static void __init kzm_init(void) ...@@ -253,11 +261,17 @@ static void __init kzm_init(void)
gpio_request(GPIO_PORT222, NULL); gpio_request(GPIO_PORT222, NULL);
gpio_direction_output(GPIO_PORT222, 1); gpio_direction_output(GPIO_PORT222, 1);
/* Touchscreen */
gpio_request(GPIO_PORT223, NULL); /* IRQ8 */
gpio_direction_input(GPIO_PORT223);
#ifdef CONFIG_CACHE_L2X0 #ifdef CONFIG_CACHE_L2X0
/* Early BRESP enable, Shared attribute override enable, 64K*8way */ /* Early BRESP enable, Shared attribute override enable, 64K*8way */
l2x0_init(IOMEM(0xf0100000), 0x40460000, 0x82000fff); l2x0_init(IOMEM(0xf0100000), 0x40460000, 0x82000fff);
#endif #endif
i2c_register_board_info(1, i2c1_devices, ARRAY_SIZE(i2c1_devices));
sh73a0_add_standard_devices(); sh73a0_add_standard_devices();
platform_add_devices(kzm_devices, ARRAY_SIZE(kzm_devices)); platform_add_devices(kzm_devices, ARRAY_SIZE(kzm_devices));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册