summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-10-18 21:17:13 -0600
committerSimon Glass <sjg@chromium.org>2015-11-19 20:13:40 -0700
commit66877b0f5fc96906d70f1264b3b8102d2156360f (patch)
treef8f031613a60f517294918d270803d99e2e72487 /include
parent92778b2784e15a1ac88d4cf64a12eee8163b221c (diff)
downloadu-boot-imx-66877b0f5fc96906d70f1264b3b8102d2156360f.zip
u-boot-imx-66877b0f5fc96906d70f1264b3b8102d2156360f.tar.gz
u-boot-imx-66877b0f5fc96906d70f1264b3b8102d2156360f.tar.bz2
input: Add the keycode translation tables separately
Require the caller to add the keycode translation tables separately so that it can select which ones to use. In a later patch we will add the option to add German tables. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/input.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/input.h b/include/input.h
index 7bccc8e..71f3538 100644
--- a/include/input.h
+++ b/include/input.h
@@ -123,6 +123,16 @@ void input_set_delays(struct input_config *config, int repeat_delay_ms,
int repeat_rate_ms);
/**
+ * Set up the key map tables
+ *
+ * This must be called after input_init() or keycode decoding will not work.
+ *
+ * @param config Input state
+ * @return 0 if ok, -1 on error
+ */
+int input_add_tables(struct input_config *config);
+
+/**
* Set up the input handler with basic key maps.
*
* @param config Input state