i found this code in the /liche/linux3.10/drivers/input/touchscreen/tsc2007.c file in the file liche_A64_5.1_V1
static int tsc2007_open(struct input_dev *input_dev)
{
struct tsc2007 *ts = input_get_drvdata(input_dev);
int err;
ts->stopped = false;
mb();
enable_irq(ts->irq);
/* Prepare for touch readings - power down ADC and enable PENIRQ */
err = tsc2007_xfer(ts, PWRDOWN);
if (err < 0) {
tsc2007_stop(ts);
return err;
}
return 0;
}
and this code in the file provided by @patrickhwood
static void ssd2543_ts_early_suspend(struct early_suspend *early_s)
{
unsigned char buf[4]={0};
int i;
struct ssl_ts_priv *ts = container_of(early_s, struct ssl_ts_priv, early_suspend);
dev_info(&ts->client->dev, "%s\n", __func__);
ts->suspended = true;
// write Suspend commands to touch IIC
for (i = 0; i < sizeof(Suspend)/sizeof(Suspend[0]); i++)
{
buf[0] = Suspend[i].Data1;
buf[1] = Suspend[i].Data2;
ssd_i2c_write(ts->client, Suspend[i].Reg, buf, Suspend[i].No);
}
// enable system wakeup on the touch panel's IRQ
enable_irq_wake(ts->irq);
}
i think that its a way to implement this on our board
the good think is that, the hole android source is available |
link: http://www.cnx-software.com/2015/12/10/a...urce-code/
static int tsc2007_open(struct input_dev *input_dev)
{
struct tsc2007 *ts = input_get_drvdata(input_dev);
int err;
ts->stopped = false;
mb();
enable_irq(ts->irq);
/* Prepare for touch readings - power down ADC and enable PENIRQ */
err = tsc2007_xfer(ts, PWRDOWN);
if (err < 0) {
tsc2007_stop(ts);
return err;
}
return 0;
}
and this code in the file provided by @patrickhwood
static void ssd2543_ts_early_suspend(struct early_suspend *early_s)
{
unsigned char buf[4]={0};
int i;
struct ssl_ts_priv *ts = container_of(early_s, struct ssl_ts_priv, early_suspend);
dev_info(&ts->client->dev, "%s\n", __func__);
ts->suspended = true;
// write Suspend commands to touch IIC
for (i = 0; i < sizeof(Suspend)/sizeof(Suspend[0]); i++)
{
buf[0] = Suspend[i].Data1;
buf[1] = Suspend[i].Data2;
ssd_i2c_write(ts->client, Suspend[i].Reg, buf, Suspend[i].No);
}
// enable system wakeup on the touch panel's IRQ
enable_irq_wake(ts->irq);
}
i think that its a way to implement this on our board
the good think is that, the hole android source is available |
link: http://www.cnx-software.com/2015/12/10/a...urce-code/
By. Zoidiano0!
Installed:
LAMP: Linux , Apache2.4 , Mariadb, phpMyadmin, PHP5
Java 8 arm by oracle
Netbeans 8.1
chromium (uses way toooo much Ram)
Pine64 Head Unit Project.!
Installed:
LAMP: Linux , Apache2.4 , Mariadb, phpMyadmin, PHP5
Java 8 arm by oracle
Netbeans 8.1
chromium (uses way toooo much Ram)
Pine64 Head Unit Project.!