mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
@@ -208,7 +208,7 @@ int ct36x_chip_get_fwchksum(struct ct36x_data *ts)
|
||||
ret = ct36x_write(ts, buf, 2);
|
||||
if(ret < 0)
|
||||
return ret;
|
||||
mdelay(350);
|
||||
mdelay(500);
|
||||
|
||||
buf[0] = 0xFF;
|
||||
buf[1] = 0x8E;
|
||||
|
||||
@@ -53,12 +53,12 @@ static void ct363_deinit_hw(struct ct36x_data *ts)
|
||||
|
||||
static void ct363_reset_hw(struct ct36x_data *ts)
|
||||
{
|
||||
//gpio_direction_output(ts->rst_io.gpio, ts->rst_io.active_low);
|
||||
//msleep(50);
|
||||
gpio_direction_output(ts->rst_io.gpio, ts->rst_io.active_low);
|
||||
msleep(50);
|
||||
gpio_set_value(ts->rst_io.gpio, !ts->rst_io.active_low);
|
||||
msleep(20);
|
||||
msleep(50);
|
||||
gpio_set_value(ts->rst_io.gpio, ts->rst_io.active_low);
|
||||
msleep(255);
|
||||
msleep(500);
|
||||
}
|
||||
|
||||
static int ct363_init(struct ct36x_data *ts)
|
||||
@@ -107,12 +107,9 @@ static int ct363_init(struct ct36x_data *ts)
|
||||
}
|
||||
|
||||
/* Hardware reset */
|
||||
//ct363_reset_hw(ts);
|
||||
//msleep(5);
|
||||
gpio_set_value(ts->rst_io.gpio, !ts->rst_io.active_low);
|
||||
msleep(10);
|
||||
gpio_set_value(ts->rst_io.gpio, ts->rst_io.active_low);
|
||||
msleep(30);
|
||||
ct363_reset_hw(ts);
|
||||
msleep(5);
|
||||
|
||||
ts->point_num = CT363_POINT_NUM;
|
||||
|
||||
ct363 = kzalloc(sizeof(struct ct363_priv), GFP_KERNEL);
|
||||
|
||||
Reference in New Issue
Block a user