diff options
author | Simon Glass <sjg@chromium.org> | 2018-10-01 21:22:10 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2018-10-09 13:40:27 +0300 |
commit | 985ca3945fa3cbb2933d1be9d72022c0ac4d3da9 (patch) | |
tree | c07d6bc7daa4e26854283ce0df29d8de61d1be57 /drivers/input/input.c | |
parent | 97f57109bb750d0b2908d6ecd4aef3801baf1cf2 (diff) | |
download | u-boot-985ca3945fa3cbb2933d1be9d72022c0ac4d3da9.tar.xz |
spl: input: Allow input in SPL and TPL
In some cases it is necessary to read the keyboard in early phases of
U-Boot. Update the config to allow this.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r-- | drivers/input/input.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index 29620a9e27..4f514dba56 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -652,7 +652,7 @@ int input_stdio_register(struct stdio_dev *dev) int error; error = stdio_register(dev); - +#if !defined(CONFIG_SPL_BUILD) || CONFIG_IS_ENABLED(ENV_SUPPORT) /* check if this is the standard input device */ if (!error && strcmp(env_get("stdin"), dev->name) == 0) { /* reassign the console */ @@ -660,6 +660,9 @@ int input_stdio_register(struct stdio_dev *dev) console_assign(stdin, dev->name)) return -1; } +#else + error = error; +#endif return 0; } |