Chinaunix首页 | 论坛 | 博客
  • 博客访问: 407256
  • 博文数量: 120
  • 博客积分: 3125
  • 博客等级: 中校
  • 技术积分: 1100
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-29 10:59
文章分类

全部博文(120)

文章存档

2012年(28)

2011年(22)

2010年(34)

2009年(1)

2008年(35)

我的朋友

分类: LINUX

2010-12-24 18:43:32

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
 
阅读(830) | 评论(0) | 转发(0) |
0

上一篇:Touch Screen

下一篇:Camera Porting

给主人留下些什么吧!~~