流水帐式的记录一下调试过程:
大致需要修改的文件及目录:
a:
msm8960-perf_OT310-eth-cdrom-fuse_defconfig:
+# CONFIG_TOUCHSCREEN_ILI300X_I2C is not set
b:
i2c board_info的设置和注册:
},
};
#endif//jason-0809
+#if defined(CONFIG_TOUCHSCREEN_ILI300X_I2C)
+#define GPIO_TOUCH_POWER_EN 93
+#define GPIO_TOUCH_RESET 46
+#define GPIO_TOUCH_IRQ 50
+#define ILI300X_I2C_TS_NAME "ilitek_limv3_0_0"
+#define ILI300X_I2C_TS_ADDR 0x41//VDD,INT,RESET,SDA,SCL
+#define GPIO_TOUCH_DAT 16
+#define GPIO_TOUCH_SCL 17
+#define TOUTPPANEL_STATE_ON 1
+static struct mutex ts_lock;
+static void ts_common_mutex_init(void)
+{
+ static bool mutex_init = false;
+
+ if (!mutex_init) {
+ mutex_init = true;
+ mutex_init(&ts_lock);
+ }
+}
+
+static void ts_common_mutex_lock(void)
+{
+ mutex_lock(&ts_lock);
+}
+
+static void ts_common_mutex_unlock(void)
+{
+ mutex_unlock(&ts_lock);
+}
+
+static void ts_common_gpiomux_set(bool on)
+{
+ static bool re