summaryrefslogtreecommitdiffstats
path: root/drivers/board
diff options
context:
space:
mode:
authorJean-Jacques Hiblot <jjhiblot@ti.com>2019-10-22 16:39:18 +0200
committerTom Rini <trini@konsulko.com>2020-01-07 11:13:24 -0500
commit8c86f96d209837345200495048b4503cb02f6599 (patch)
tree0a6e19e1681af45c5cc6163ccba69c5c8665b577 /drivers/board
parentc1648d056ebb92711f6e37bcccb2d4acc78e3836 (diff)
downloadu-boot-8c86f96d209837345200495048b4503cb02f6599.tar.gz
u-boot-8c86f96d209837345200495048b4503cb02f6599.tar.xz
u-boot-8c86f96d209837345200495048b4503cb02f6599.zip
drivers: board: Make the board drivers available in SPL
Make the board driver available in the SPL too. The board driver is a way to provide useful information about the board and that can be useful in the SPL too. Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/board')
-rw-r--r--drivers/board/Kconfig3
-rw-r--r--drivers/board/Makefile2
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/board/Kconfig b/drivers/board/Kconfig
index 2a3fc9c049..254f657049 100644
--- a/drivers/board/Kconfig
+++ b/drivers/board/Kconfig
@@ -8,6 +8,9 @@ menuconfig BOARD
if BOARD
+config SPL_BOARD
+ depends on SPL_DM
+ bool "Enable board driver support in SPL"
config BOARD_GAZERBEAM
bool "Enable board driver for the Gazerbeam board"
diff --git a/drivers/board/Makefile b/drivers/board/Makefile
index c8dab4fa0b..cc16361755 100644
--- a/drivers/board/Makefile
+++ b/drivers/board/Makefile
@@ -2,6 +2,6 @@
#
# (C) Copyright 2017
# Mario Six, Guntermann & Drunck GmbH, mario.six@gdsys.cc
-obj-$(CONFIG_BOARD) += board-uclass.o
+obj-y += board-uclass.o
obj-$(CONFIG_BOARD_GAZERBEAM) += gazerbeam.o
obj-$(CONFIG_BOARD_SANDBOX) += sandbox.o