]> git.sur5r.net Git - u-boot/commitdiff
board/ls2080a, ls1088a: Add check for mc-dpl applied in fdt
authorYogesh Gaur <yogeshnarayan.gaur@nxp.com>
Thu, 7 Dec 2017 05:40:14 +0000 (11:10 +0530)
committerYork Sun <york.sun@nxp.com>
Thu, 14 Dec 2017 21:05:07 +0000 (13:05 -0800)
Function fdt_fixup_board_enet() performs fdt fixup. Only return
fdt_status_okay() when both MC is applied and DPL is deployed, else
return fdt_status_fail().

This check is added to LS1088A/LS2080A/LS2088A boards.

Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
board/freescale/ls1088a/ls1088a.c
board/freescale/ls2080a/ls2080a.c
board/freescale/ls2080aqds/ls2080aqds.c
board/freescale/ls2080ardb/ls2080ardb.c

index cb589575b3d18c4a91a658933f26d0965e7ed655..96f183e1562f96bc12bab81791cabfc51300d58b 100644 (file)
@@ -378,7 +378,7 @@ void fdt_fixup_board_enet(void *fdt)
                return;
        }
 
-       if (get_mc_boot_status() == 0)
+       if ((get_mc_boot_status() == 0) && (get_dpl_apply_status() == 0))
                fdt_status_okay(fdt, offset);
        else
                fdt_status_fail(fdt, offset);
index 41417e9dc6914aed4b9a2f1b12b3f696702eec35..c60a090ea76f5d13dd4cdc0b62196cffc6839e4b 100644 (file)
@@ -90,7 +90,7 @@ void fdt_fixup_board_enet(void *fdt)
                return;
        }
 
-       if (get_mc_boot_status() == 0)
+       if ((get_mc_boot_status() == 0) && (get_dpl_apply_status() == 0))
                fdt_status_okay(fdt, offset);
        else
                fdt_status_fail(fdt, offset);
index 1842d14e87e674e65a66ae03c1014ce4f2913974..28c95383406414b3279562913ac2d5bc4beacfae 100644 (file)
@@ -295,7 +295,7 @@ void fdt_fixup_board_enet(void *fdt)
                return;
        }
 
-       if (get_mc_boot_status() == 0)
+       if ((get_mc_boot_status() == 0) && (get_dpl_apply_status() == 0))
                fdt_status_okay(fdt, offset);
        else
                fdt_status_fail(fdt, offset);
index 827bfad521d47414ff8236bdeb894f4f9ec36411..ee0f3a2069549dab735ec0d3f1f45627385cd0a7 100644 (file)
@@ -331,7 +331,7 @@ void fdt_fixup_board_enet(void *fdt)
                return;
        }
 
-       if (get_mc_boot_status() == 0)
+       if ((get_mc_boot_status() == 0) && (get_dpl_apply_status() == 0))
                fdt_status_okay(fdt, offset);
        else
                fdt_status_fail(fdt, offset);