aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/Makefile
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-11-18 08:14:27 -0700
committerSimon Glass <sjg@chromium.org>2019-05-21 17:33:23 -0600
commitaaba703fd0f08f3c63ad241cbb29273f0ebbf2a6 (patch)
treeb795e67f46d6b15b16b82b5fc6f624af12bffdda /drivers/misc/Makefile
parente1a2ed7180adeefb6164239a18249dca5701319d (diff)
downloadu-boot-aaba703fd0f08f3c63ad241cbb29273f0ebbf2a6.zip
u-boot-aaba703fd0f08f3c63ad241cbb29273f0ebbf2a6.tar.gz
u-boot-aaba703fd0f08f3c63ad241cbb29273f0ebbf2a6.tar.bz2
spl: misc: Allow misc drivers in SPL and TPL
In some cases it is necessary to read the keyboard in early phases of U-Boot. The cros_ec keyboard is kept in the misc directory. Update the config to allow this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc/Makefile')
-rw-r--r--drivers/misc/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index 6bdf505..509c588 100644
--- a/drivers/misc/Makefile
+++ b/drivers/misc/Makefile
@@ -4,11 +4,13 @@
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
obj-$(CONFIG_MISC) += misc-uclass.o
+
+obj-$(CONFIG_$(SPL_TPL_)CROS_EC) += cros_ec.o
+obj-$(CONFIG_$(SPL_TPL_)CROS_EC_SANDBOX) += cros_ec_sandbox.o
+obj-$(CONFIG_$(SPL_TPL_)CROS_EC_LPC) += cros_ec_lpc.o
+
ifndef CONFIG_SPL_BUILD
-obj-$(CONFIG_CROS_EC) += cros_ec.o
-obj-$(CONFIG_CROS_EC_LPC) += cros_ec_lpc.o
obj-$(CONFIG_CROS_EC_I2C) += cros_ec_i2c.o
-obj-$(CONFIG_CROS_EC_SANDBOX) += cros_ec_sandbox.o
obj-$(CONFIG_CROS_EC_SPI) += cros_ec_spi.o
endif