缩短触摸屏驱动初始化时间
This commit is contained in:
parent
db507c1790
commit
36028ad52e
|
@ -125,7 +125,7 @@ int hyn_reset_proc(int hdelayms)
|
||||||
__gpio_set_value(config_info.wakeup_gpio.gpio, 0);
|
__gpio_set_value(config_info.wakeup_gpio.gpio, 0);
|
||||||
//ljl
|
//ljl
|
||||||
//gpio_direction_output(hyn_ts_data->pdata->reset_gpio, 0);
|
//gpio_direction_output(hyn_ts_data->pdata->reset_gpio, 0);
|
||||||
mdelay(20);
|
mdelay(5);
|
||||||
hyn_reset_watchdog_proc();
|
hyn_reset_watchdog_proc();
|
||||||
__gpio_set_value(config_info.wakeup_gpio.gpio, 1);
|
__gpio_set_value(config_info.wakeup_gpio.gpio, 1);
|
||||||
//ljl
|
//ljl
|
||||||
|
@ -1941,6 +1941,7 @@ static int hyn_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
||||||
}
|
}
|
||||||
hyn_ts_data_init(client);
|
hyn_ts_data_init(client);
|
||||||
|
|
||||||
|
#if 0
|
||||||
mdelay(60);
|
mdelay(60);
|
||||||
|
|
||||||
ret=hyn_firmware_info(client);
|
ret=hyn_firmware_info(client);
|
||||||
|
@ -1955,6 +1956,8 @@ static int hyn_probe(struct i2c_client *client, const struct i2c_device_id *id)
|
||||||
}else{
|
}else{
|
||||||
HYN_INFO("hyn_firmware_info success.\n");
|
HYN_INFO("hyn_firmware_info success.\n");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ret=hyn_input_dev_int(ts_data);
|
ret=hyn_input_dev_int(ts_data);
|
||||||
if (ret<0){
|
if (ret<0){
|
||||||
HYN_ERROR("Touch Probe : hyn_input_dev_int fail...");
|
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();
|
hyn_irq_disable();
|
||||||
|
|
||||||
|
#if 0
|
||||||
ret=hyn_update_firmware_init(client);
|
ret=hyn_update_firmware_init(client);
|
||||||
if (ret<0){
|
if (ret<0){
|
||||||
HYN_ERROR("Touch Probe : hyn_update_firmware_init fail...");
|
HYN_ERROR("Touch Probe : hyn_update_firmware_init fail...");
|
||||||
// goto err_end;
|
// goto err_end;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ANDROID_TOOL_SURPORT
|
#if ANDROID_TOOL_SURPORT
|
||||||
ret = hynitron_proc_fs_init();
|
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);
|
input_set_power_enable(&(config_info.input_type),1);
|
||||||
|
|
||||||
mdelay(20);
|
mdelay(5);
|
||||||
|
|
||||||
ret = i2c_add_driver(&hynitron_i2c_driver);
|
ret = i2c_add_driver(&hynitron_i2c_driver);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
//#include "firmware/capacitive_hynitron_cst6xx_update.h"
|
//#include "firmware/capacitive_hynitron_cst6xx_update.h"
|
||||||
//#include "firmware/capacitive_hynitron_cst8xx_update.h"
|
//#include "firmware/capacitive_hynitron_cst8xx_update.h"
|
||||||
//#include "firmware/capacitive_hynitron_cst9xx_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.
|
//please config the chip series before using.
|
||||||
struct hynitron_fw_array hynitron_fw_grp[20] = {
|
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_cst3xxse_update", cst3xxse_fw, 0x0501,0x01, CST328SE, (sizeof(cst3xxse_fw))},
|
||||||
//{ "capacitive_hynitron_cst8xx_update", cst8xx_fw, 0x0501,0x01, CST836, (sizeof(cst8xx_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_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))},
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue