From: root Date: Wed, 25 May 2011 04:02:52 +0000 (+0800) Subject: xxm FIH: update touch panel:slow report X-Git-Tag: firefly_0821_release~10281 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c2d4e4e3c6d4ac3a7a1a53a05b5d140d6926298f;p=firefly-linux-kernel-4.4.55.git xxm FIH: update touch panel:slow report --- diff --git a/drivers/input/touchscreen/atmel_maxtouch.c b/drivers/input/touchscreen/atmel_maxtouch.c old mode 100644 new mode 100755 index c2a5fc55cda8..9dcb15669df5 --- a/drivers/input/touchscreen/atmel_maxtouch.c +++ b/drivers/input/touchscreen/atmel_maxtouch.c @@ -180,7 +180,7 @@ u32 last_key=0; u8 T9_cfg[31] = { 0x83, 0x00, 0x00, 0x12, 0x0b, 0x00, 0x00, 0x1e, - 0x02, 0x06, 0x00, 0x03, 0x01, 0x0f, 0x02, 0x0a, + 0x02, 0x06, 0x00, 0x03, 0x01, 0x0f, 0x0A, 0x0a, 0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, }; @@ -935,7 +935,7 @@ void process_T9_message(u8 *message, struct mxt_data *mxt, int last_touch) for (i = 0; i < 10; i++){ if (stored_size[i]){ active_touches++; - input_report_abs(mxt->input, + input_report_abs(mxt->input, ABS_MT_TRACKING_ID, i); input_report_abs(mxt->input, @@ -950,8 +950,9 @@ void process_T9_message(u8 *message, struct mxt_data *mxt, int last_touch) input_mt_sync(mxt->input); } } - if (active_touches == 0) - input_mt_sync(mxt->input); + if (active_touches == 0) { + input_mt_sync(mxt->input); + } input_sync(mxt->input); }else{ @@ -1804,6 +1805,7 @@ static int __devinit mxt_probe(struct i2c_client *client, int index; u8 buf[MXT_ACK_BUFFER_SIZE] = {0}; u8 buf_size = MXT_MAKE_HIGH_CHG_SIZE_MIN; + char t7_buf[2] = {64, 32}; mxt_debug(DEBUG_INFO, "mXT224: mxt_probe\n"); @@ -2052,6 +2054,8 @@ static int __devinit mxt_probe(struct i2c_client *client, #endif for(ii=0; iiclient, MXT_BASE_ADDR(MXT_TOUCH_MULTITOUCHSCREEN_T9, mxt)+ii, T9_cfg[ii]); + + mxt_write_block(client, MXT_BASE_ADDR(MXT_GEN_POWERCONFIG_T7, mxt), 2, t7_buf); } if (mxt->irq) { @@ -2171,7 +2175,7 @@ static int mxt_resume(struct i2c_client *client) { struct mxt_data *mxt = i2c_get_clientdata(client); char t5_buf[16]; - char t7_buf[2] = {32, 16}; + char t7_buf[2] = {64, 32}; printk("Enter:%s, %d\n", __FUNCTION__, __LINE__);