diff mbox series

[U-Boot] board/ls2080a, ls1088a: Add check for mc-dpl applied in fdt

Message ID 1512625214-3474-1-git-send-email-yogeshnarayan.gaur@nxp.com
State Accepted
Commit 70a131eb5ac1f4cceb5500ad3224473020497cc9
Delegated to: York Sun
Headers show
Series [U-Boot] board/ls2080a, ls1088a: Add check for mc-dpl applied in fdt | expand

Commit Message

Yogesh Narayan Gaur Dec. 7, 2017, 5:40 a.m. UTC
In fdt_fixup_board_enet() perform fdt fixup, fdt_status_okay, only when
both MC is applied and DPL is deployed.
Else returns failure, fdt_status_fail().

This patch add this check for
- LS2080A/LS2088A boards: in dir ls2080a, ls2080ardb and ls2080aqds
- LS1088A board: in dir ls1088a

Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com>
---
 board/freescale/ls1088a/ls1088a.c       | 2 +-
 board/freescale/ls2080a/ls2080a.c       | 2 +-
 board/freescale/ls2080aqds/ls2080aqds.c | 2 +-
 board/freescale/ls2080ardb/ls2080ardb.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

Comments

York Sun Dec. 19, 2017, 4:04 p.m. UTC | #1
On 12/06/2017 09:40 PM, Yogesh Gaur wrote:
> In fdt_fixup_board_enet() perform fdt fixup, fdt_status_okay, only when
> both MC is applied and DPL is deployed.
> Else returns failure, fdt_status_fail().
> 
> This patch add this check for
> - LS2080A/LS2088A boards: in dir ls2080a, ls2080ardb and ls2080aqds
> - LS1088A board: in dir ls1088a
> 
> Signed-off-by: Yogesh Gaur <yogeshnarayan.gaur@nxp.com>
> ---

Applied to fsl-qoriq master. Thanks.

York
diff mbox series

Patch

diff --git a/board/freescale/ls1088a/ls1088a.c b/board/freescale/ls1088a/ls1088a.c
index 96d9ae7..2ce3fe6 100644
--- a/board/freescale/ls1088a/ls1088a.c
+++ b/board/freescale/ls1088a/ls1088a.c
@@ -360,7 +360,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);
diff --git a/board/freescale/ls2080a/ls2080a.c b/board/freescale/ls2080a/ls2080a.c
index 41417e9..c60a090 100644
--- a/board/freescale/ls2080a/ls2080a.c
+++ b/board/freescale/ls2080a/ls2080a.c
@@ -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);
diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale/ls2080aqds/ls2080aqds.c
index 1842d14..28c9538 100644
--- a/board/freescale/ls2080aqds/ls2080aqds.c
+++ b/board/freescale/ls2080aqds/ls2080aqds.c
@@ -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);
diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c
index 827bfad..ee0f3a2 100644
--- a/board/freescale/ls2080ardb/ls2080ardb.c
+++ b/board/freescale/ls2080ardb/ls2080ardb.c
@@ -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);