mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 23:50:26 +09:00
board: mscc: serval: Fix board detect
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>
This commit is contained in:
parent
72e224b864
commit
c6b2e7117d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user