configs: Add sam9x60ek_mmc_defconfig
[oweals/u-boot.git] / drivers / core / util.c
index 96e47dc70709d473c134b4dc6427bc98035ff427..7dc1a2af0282cf7ddecc749dc66fc3bc8851051c 100644 (file)
@@ -31,6 +31,7 @@ int list_count_items(struct list_head *head)
        return count;
 }
 
+#if CONFIG_IS_ENABLED(OF_CONTROL) && !CONFIG_IS_ENABLED(OF_PLATDATA)
 bool dm_ofnode_pre_reloc(ofnode node)
 {
 #if defined(CONFIG_SPL_BUILD) || defined(CONFIG_TPL_BUILD)
@@ -42,6 +43,8 @@ bool dm_ofnode_pre_reloc(ofnode node)
 #else
        if (ofnode_read_bool(node, "u-boot,dm-pre-reloc"))
                return true;
+       if (ofnode_read_bool(node, "u-boot,dm-pre-proper"))
+               return true;
 
        /*
         * In regular builds individual spl and tpl handling both
@@ -54,3 +57,4 @@ bool dm_ofnode_pre_reloc(ofnode node)
        return false;
 #endif
 }
+#endif