[U-Boot] [PATCH 16/31] dm: spl: Don't set up device tree with of-platdata

Simon Glass sjg at chromium.org
Wed Jun 8 04:47:54 CEST 2016


When this feature is enabled, we should not access the device tree.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 common/spl/spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/spl/spl.c b/common/spl/spl.c
index e931edd..45a988d 100644
--- a/common/spl/spl.c
+++ b/common/spl/spl.c
@@ -197,7 +197,7 @@ int spl_init(void)
 	gd->malloc_limit = CONFIG_SYS_MALLOC_F_LEN;
 	gd->malloc_ptr = 0;
 #endif
-	if (CONFIG_IS_ENABLED(OF_CONTROL)) {
+	if (CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)) {
 		ret = fdtdec_setup();
 		if (ret) {
 			debug("fdtdec_setup() returned error %d\n", ret);
-- 
2.8.0.rc3.226.g39d4020



More information about the U-Boot mailing list