summaryrefslogtreecommitdiff
path: root/include/twl4030.h
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2015-07-20 15:17:09 +0200
committerTom Rini <trini@konsulko.com>2015-08-12 20:47:36 -0400
commita4c8bbbc289e4f853b52ce9fe604079038e644cc (patch)
tree11d3a234d881e6ded9ce054c9671f69b49aca06e /include/twl4030.h
parent7d5ac91832918a5fda0277aacb8c62421efdeaa2 (diff)
downloadu-boot-imx-a4c8bbbc289e4f853b52ce9fe604079038e644cc.zip
u-boot-imx-a4c8bbbc289e4f853b52ce9fe604079038e644cc.tar.gz
u-boot-imx-a4c8bbbc289e4f853b52ce9fe604079038e644cc.tar.bz2
input: twl4030: Keypad scan and input
This allows scanning the twl4030 keypad, storing the result in a 64-byte long matrix with the twl4030_keypad_scan function. Detecting a key at a given column and row is made easier with the twl4030_keypad_key function. Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/twl4030.h')
-rw-r--r--include/twl4030.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/twl4030.h b/include/twl4030.h
index a4d5fbd..1031373 100644
--- a/include/twl4030.h
+++ b/include/twl4030.h
@@ -683,6 +683,9 @@ int twl4030_input_power_button(void);
int twl4030_input_charger(void);
int twl4030_input_usb(void);
+int twl4030_keypad_scan(unsigned char *matrix);
+int twl4030_keypad_key(unsigned char *matrix, u8 c, u8 r);
+
/*
* LED
*/