barebox/include/input/qt1070.h
Jean-Christophe PLAGNIOL-VILLARD a768b1f24e 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>
2012-11-03 23:16:32 +01:00

19 lines
295 B
C

/*
* 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__ */