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>
19 lines
295 B
C
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__ */
|