chip's full name is AT42QT602240 or ATMXT224:
AMRI5000:
1. add config item in kernel/arch/arm/configs/msm7627-perf_defconfig
CONFIG_TOUCHSCREEN_AMRI5000=y
2. in board-msm7x27.c
2.1 in i2c_devices[], add
I2C_BOARD_INFO("amri5000", 0x5C)
2.2 in platform_device *devices[],add
&msm_device_tssc_amri5000,
3. in devices-msm7x27.c
static struct resource resource_cap_tssc[]={
{
.start =MSM_GPIO_TO_INT(21), //INT_GPIO_GROUP2,
.end =MSM_GPIO_TO_INT(21),
.name ="cap_tssc_irq",
.flags =IORESOURCE_IRQ,
},
};
struct platform_device msm_device_tssc_amri5000={
.name="msm_touchscreen_amri5000",
.id=0,
.num_resources=ARRAY_SIZE(resource_cap_tssc),
.resource=resource_cap_tssc,
};
4. in kernel/arch/arm/mach-msm/devices.h
extern struct platform_device msm_device_tssc_amri5000;
5. /kernel/drivers/input/touchscreen/Kconfig
+config TOUCHSCREEN_amri5000
+ default n
+ tristate "MSM Touchscreen amri5000"
+ depends on ARCH_MSM && !ARCH_MSM7X30
+ help
+ Say Y here if you have a touchscreen interface using MSM
+ touchscreen controller.
+
+ To compile this driver as a module, choose M here: the
+ module will be called msm_touch_amri5000.
+
6. /kernel/drivers/input/touchscreen/Makefile
obj-$(CONFIG_TOUCHSCREEN_AMRI5000) += msm_touch_amri5000.o
7. new file: /kernel/drivers/input/touchscreen/msm_touch_amri5000.c
阅读(864) | 评论(0) | 转发(0) |