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)
}
/* 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);