aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/Makefile
diff options
context:
space:
mode:
authorSimon Glass2018-10-01 12:22:10 -0600
committerSimon Glass2018-10-09 04:40:27 -0600
commit985ca3945fa3cbb2933d1be9d72022c0ac4d3da9 (patch)
treec07d6bc7daa4e26854283ce0df29d8de61d1be57 /drivers/input/Makefile
parent97f57109bb750d0b2908d6ecd4aef3801baf1cf2 (diff)
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/Makefile')
-rw-r--r--drivers/input/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/input/Makefile b/drivers/input/Makefile
index d13baf3576a..fd56d7b3492 100644
--- a/drivers/input/Makefile
+++ b/drivers/input/Makefile
@@ -3,12 +3,15 @@
# (C) Copyright 2000-2007
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-obj-$(CONFIG_DM_KEYBOARD) += keyboard-uclass.o
+obj-y += input.o
+obj-$(CONFIG_$(SPL_TPL_)CROS_EC_KEYB) += cros_ec_keyb.o
+obj-$(CONFIG_$(SPL_TPL_)OF_CONTROL) += key_matrix.o
+obj-$(CONFIG_$(SPL_TPL_)DM_KEYBOARD) += keyboard-uclass.o
+
+ifndef CONFIG_SPL_BUILD
obj-$(CONFIG_I8042_KEYB) += i8042.o
obj-$(CONFIG_TEGRA_KEYBOARD) += tegra-kbc.o
obj-$(CONFIG_TWL4030_INPUT) += twl4030.o
obj-$(CONFIG_TWL6030_INPUT) += twl6030.o
-obj-$(CONFIG_CROS_EC_KEYB) += cros_ec_keyb.o
-obj-y += input.o
-obj-$(CONFIG_$(SPL_)OF_CONTROL) += key_matrix.o
+endif