Merge git://git.denx.de/u-boot-dm
This commit is contained in:
@@ -13,7 +13,6 @@
|
||||
#include <nand.h>
|
||||
#include <fat.h>
|
||||
#include <version.h>
|
||||
#include <i2c.h>
|
||||
#include <image.h>
|
||||
#include <malloc.h>
|
||||
#include <dm/root.h>
|
||||
@@ -203,7 +202,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);
|
||||
@@ -211,7 +210,8 @@ int spl_init(void)
|
||||
}
|
||||
}
|
||||
if (IS_ENABLED(CONFIG_SPL_DM)) {
|
||||
ret = dm_init_and_scan(true);
|
||||
/* With CONFIG_OF_PLATDATA, bring in all devices */
|
||||
ret = dm_init_and_scan(!CONFIG_IS_ENABLED(OF_PLATDATA));
|
||||
if (ret) {
|
||||
debug("dm_init_and_scan() returned error %d\n", ret);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user