Skip to contentSkip to conversation

MSCC: Fix Jaguar2 board detection.

PATCH New Horatiu Vultur 2 participants 2 messages Jan 29, 2019 – Feb 1, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MSCC: Fix Jaguar2 board detection.

When power cycle the Jaguar2 boards, it couldn't read the phys, therefore it always deduce that the board type is pcb111.

Add a small delay after setting the gpio pins, fix the issue.

---
 board/mscc/jr2/jr2.c | 3 +++
 1 file changed, 3 insertions(+)
board/mscc/jr2/jr2.c +3 -0
index 226181f..58a4a04 100644
@@ -80,6 +80,9 @@ static void do_board_detect(void)
 	for (i = 56; i < 60; i++)
 		vcoreiii_gpio_set_alternate(i, 1);
 
+	/* small delay for settling the pins */
+	mdelay(30);
+
 	if (mscc_phy_rd(0, 0x10, 0x3, &pval) == 0 &&
 	    ((pval >> 4) & 0x3F) == 0x3c) {
 		gd->board_type = BOARD_TYPE_PCB112; /* Serval2-NID */
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 MSCC: Fix Jaguar2 board detection.

Am 29.01.19 um 10:58 schrieb Horatiu Vultur:

Quoted 4 lines

When power cycle the Jaguar2 boards, it couldn't read the phys, therefore it always deduce that the board type is pcb111.

Quoted 8 lines

Add a small delay after setting the gpio pins, fix the issue.

---
 board/mscc/jr2/jr2.c | 3 +++
 1 file changed, 3 insertions(+)

applied to u-boot-mips, thanks.

Signature · 1 line
- Daniel