diff --git a/lichee/linux-4.9/drivers/input/touchscreen/cst9220/hynitron_core.c b/lichee/linux-4.9/drivers/input/touchscreen/cst9220/hynitron_core.c index 48f501a07..b17101ef2 100755 --- a/lichee/linux-4.9/drivers/input/touchscreen/cst9220/hynitron_core.c +++ b/lichee/linux-4.9/drivers/input/touchscreen/cst9220/hynitron_core.c @@ -125,7 +125,7 @@ int hyn_reset_proc(int hdelayms) __gpio_set_value(config_info.wakeup_gpio.gpio, 0); //ljl //gpio_direction_output(hyn_ts_data->pdata->reset_gpio, 0); - mdelay(20); + mdelay(5); hyn_reset_watchdog_proc(); __gpio_set_value(config_info.wakeup_gpio.gpio, 1); //ljl @@ -1941,6 +1941,7 @@ static int hyn_probe(struct i2c_client *client, const struct i2c_device_id *id) } hyn_ts_data_init(client); +#if 0 mdelay(60); ret=hyn_firmware_info(client); @@ -1955,6 +1956,8 @@ static int hyn_probe(struct i2c_client *client, const struct i2c_device_id *id) }else{ HYN_INFO("hyn_firmware_info success.\n"); } +#endif + ret=hyn_input_dev_int(ts_data); if (ret<0){ HYN_ERROR("Touch Probe : hyn_input_dev_int fail..."); @@ -1967,12 +1970,13 @@ static int hyn_probe(struct i2c_client *client, const struct i2c_device_id *id) } hyn_irq_disable(); +#if 0 ret=hyn_update_firmware_init(client); if (ret<0){ HYN_ERROR("Touch Probe : hyn_update_firmware_init fail..."); // goto err_end; } - +#endif #if ANDROID_TOOL_SURPORT ret = hynitron_proc_fs_init(); @@ -2215,7 +2219,7 @@ static int __init hynitron_driver_init(void) } input_set_power_enable(&(config_info.input_type),1); - mdelay(20); + mdelay(5); ret = i2c_add_driver(&hynitron_i2c_driver); if (ret != 0) { diff --git a/lichee/linux-4.9/drivers/input/touchscreen/cst9220/hynitron_update_firmware.c b/lichee/linux-4.9/drivers/input/touchscreen/cst9220/hynitron_update_firmware.c index 44b61a970..323aad0b5 100755 --- a/lichee/linux-4.9/drivers/input/touchscreen/cst9220/hynitron_update_firmware.c +++ b/lichee/linux-4.9/drivers/input/touchscreen/cst9220/hynitron_update_firmware.c @@ -32,7 +32,7 @@ //#include "firmware/capacitive_hynitron_cst6xx_update.h" //#include "firmware/capacitive_hynitron_cst8xx_update.h" //#include "firmware/capacitive_hynitron_cst9xx_update.h" -#include "firmware/capacitive_hynitron_cst92xx_update.h" +//#include "firmware/capacitive_hynitron_cst92xx_update.h" //please config the chip series before using. struct hynitron_fw_array hynitron_fw_grp[20] = { @@ -46,7 +46,7 @@ struct hynitron_fw_array hynitron_fw_grp[20] = { //{ "capacitive_hynitron_cst3xxse_update", cst3xxse_fw, 0x0501,0x01, CST328SE, (sizeof(cst3xxse_fw))}, //{ "capacitive_hynitron_cst8xx_update", cst8xx_fw, 0x0501,0x01, CST836, (sizeof(cst8xx_fw))}, //{ "capacitive_hynitron_cst9xx_update", cst9xx_fw, 0x2208,0x01, CST918, (sizeof(cst9xx_fw))}, - { "capacitive_hynitron_cst92xx_update", cst92xx_fw, 0x2908,0x01, CST9217, (sizeof(cst92xx_fw))}, + //{ "capacitive_hynitron_cst92xx_update", cst92xx_fw, 0x2908,0x01, CST9217, (sizeof(cst92xx_fw))}, };