From 1151651831ff11b3f40d132bb9ab012e95a8faa1 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Mon, 10 Nov 2014 17:16:46 -0700 Subject: dm: spl: Allow driver model to be used When enabled, set up driver model for SPL. This allows SPL to use the same drivers as the main U-Boot. Signed-off-by: Simon Glass Acked-by: Tom Rini --- common/spl/spl.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'common') diff --git a/common/spl/spl.c b/common/spl/spl.c index 6b90ad8..3cd19f0 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -7,6 +7,7 @@ * SPDX-License-Identifier: GPL-2.0+ */ #include +#include #include #include #include @@ -15,6 +16,7 @@ #include #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; @@ -147,6 +149,9 @@ void board_init_r(gd_t *dummy1, ulong dummy2) gd->malloc_limit = gd->malloc_base + CONFIG_SYS_MALLOC_F_LEN; gd->malloc_ptr = 0; #endif +#ifdef CONFIG_SPL_DM + dm_init_and_scan(true); +#endif #ifndef CONFIG_PPC /* -- cgit v1.1