sunxi: disable Pine A64 model detection code on other boards
[oweals/u-boot.git] / board / sunxi / board.c
index d1d7f9f40061fc927bd2c93c63b02b67cd86e491..e075c132397d5f19a5656b5fa1f015731fb3913d 100644 (file)
@@ -820,6 +820,7 @@ int board_fit_config_name_match(const char *name)
 #endif
        };
 
+#ifdef CONFIG_PINE64_DT_SELECTION
 /* Differentiate the two Pine64 board DTs by their DRAM size. */
        if (strstr(name, "-pine64") && strstr(cmp_str, "-pine64")) {
                if ((gd->ram_size > 512 * 1024 * 1024))
@@ -829,5 +830,7 @@ int board_fit_config_name_match(const char *name)
        } else {
                return strcmp(name, cmp_str);
        }
+#endif
+       return strcmp(name, cmp_str);
 }
 #endif