diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-11-03 12:26:19 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-11-03 23:16:32 +0100 |
commit | a768b1f24efc9759973c7c1e85774c705dc6b3a9 (patch) | |
tree | 2a059af04eeeb06f8b9ce24df3e05ff2405d1f12 /include/input | |
parent | d74bef2b04a3ccf7339ba916e56830bb2feae957 (diff) | |
download | barebox-a768b1f24efc9759973c7c1e85774c705dc6b3a9.tar.gz barebox-a768b1f24efc9759973c7c1e85774c705dc6b3a9.tar.xz |
input: add qt1070 touch keyboard support
use irq pin as the pin is asserted untill we clear it
This will allow to do not poll on i2c which slow down barebox
If no irq_pin is provided fall back on i2c polling
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/input')
-rw-r--r-- | include/input/qt1070.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/input/qt1070.h b/include/input/qt1070.h new file mode 100644 index 0000000000..014f67bf00 --- /dev/null +++ b/include/input/qt1070.h @@ -0,0 +1,18 @@ +/* + * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> + * + * Under GPLv2 + */ + +#ifndef __QT1070_H__ +#define __QT1070_H__ + +#define QT1070_NB_BUTTONS 7 + +struct qt1070_platform_data { + int code[QT1070_NB_BUTTONS]; + int nb_code; + int irq_pin; +}; + +#endif /* __QT1070_H__ */ |