diff mbox series

[U-Boot,v2,2/2] board: mscc: serval: Fix board detect

Message ID 1555322197-14813-3-git-send-email-horatiu.vultur@microchip.com
State Accepted
Delegated to: Daniel Schwierzeck
Headers show
Series Fix minor issues with Serval SoC. | expand

Commit Message

Horatiu Vultur April 15, 2019, 9:56 a.m. UTC
When detecting the board, it was reading a register in the GPIO page of
the phy and based on that value it was making a decision. The bug was that
after the GPIO page for the first phy was set it was not reseted back.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
 board/mscc/serval/serval.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/board/mscc/serval/serval.c b/board/mscc/serval/serval.c
index 24ee5e5..ade041e 100644
--- a/board/mscc/serval/serval.c
+++ b/board/mscc/serval/serval.c
@@ -42,10 +42,10 @@  static void do_board_detect(void)
 			gd->board_type = BOARD_TYPE_PCB106;
 		else
 			gd->board_type = BOARD_TYPE_PCB105;
-		mscc_phy_wr(1, 16, 15, 0);
 	} else {
 		gd->board_type = BOARD_TYPE_PCB105;
 	}
+	mscc_phy_wr(1, 16, 31, 0x0);
 }
 
 #if defined(CONFIG_MULTI_DTB_FIT)