]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
omap3logic: Fix Auto detect Logic PD Models
authorAdam Ford <aford173@gmail.com>
Sun, 23 Oct 2016 12:39:01 +0000 (07:39 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 31 Oct 2016 14:13:16 +0000 (10:13 -0400)
The autodetect feature doesn't allow users to specify the device tree.
This fix will make it only autodetect if 'fdtimage' is not defined.

Signed-off-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/logicpd/omap3som/omap3logic.c

index 3ddeb4647a4db079315b9afc009362a6df8e41b7..de6a06021c2c14fef1ef519b1d62df0c7b1dd293 100644 (file)
@@ -219,6 +219,10 @@ int board_init(void)
 #ifdef CONFIG_BOARD_LATE_INIT
 int board_late_init(void)
 {
+       /* If we do not have an fdtimage, let's autodetect it*/
+       if (getenv("fdtimage"))
+               return 0;
+
        switch (gd->bd->bi_arch_number) {
        case MACH_TYPE_DM3730_TORPEDO:
                setenv("fdtimage", "logicpd-torpedo-37xx-devkit.dtb");