summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-09-27 15:18:41 +0000
committerTom Rini <trini@ti.com>2012-10-15 11:54:04 -0700
commit1b1d3e6461e9195f825d6d8aa6a2a0e1e3188f62 (patch)
treea6120c3afff73816064a1e4fbeed227aaad84097 /include
parent00f1099e09d627632b60a3a29cb1bce2339510a7 (diff)
downloadu-boot-imx-1b1d3e6461e9195f825d6d8aa6a2a0e1e3188f62.zip
u-boot-imx-1b1d3e6461e9195f825d6d8aa6a2a0e1e3188f62.tar.gz
u-boot-imx-1b1d3e6461e9195f825d6d8aa6a2a0e1e3188f62.tar.bz2
input: Separate out keyboard repeat/delay from init
It is inconvenient to have to specify the keyboard repeat and delay at init time if it is not yet available, so move this into a separate function. Some drivers will want to do this when their keyboard init routine is actually called. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/input.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/include/input.h b/include/input.h
index 31b1ef9..0f4acb2 100644
--- a/include/input.h
+++ b/include/input.h
@@ -126,16 +126,22 @@ int input_getc(struct input_config *config);
int input_stdio_register(struct stdio_dev *dev);
/**
+ * Set up the keyboard autorepeat delays
+ *
+ * @param repeat_delay_ms Delay before key auto-repeat starts (in ms)
+ * @param repeat_rate_ms Delay between successive key repeats (in ms)
+ */
+void input_set_delays(struct input_config *config, int repeat_delay_ms,
+ int repeat_rate_ms);
+
+/**
* Set up the input handler with basic key maps.
*
* @param config Input state
* @param leds Initial LED value (INPUT_LED_ mask), 0 suggested
- * @param repeat_delay_ms Delay before key auto-repeat starts (in ms)
- * @param repeat_rate_ms Delay between successive key repeats (in ms)
* @return 0 if ok, -1 on error
*/
-int input_init(struct input_config *config, int leds, int repeat_delay_ms,
- int repeat_rate_ms);
+int input_init(struct input_config *config, int leds);
#ifdef CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE
extern int overwrite_console(void);