diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2019-04-15 11:56:37 +0200 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2019-05-03 16:42:23 +0200 |
commit | c6b2e7117db83e9aaba5d47b56c5d918ce92fcf0 (patch) | |
tree | 74716e85c317b2f6368afced36c8a9b7e453d1bc /board/mscc/serval/serval.c | |
parent | 72e224b864baa4905b9c5997223baa3e65725be7 (diff) |
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>
Diffstat (limited to 'board/mscc/serval/serval.c')
-rw-r--r-- | board/mscc/serval/serval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/mscc/serval/serval.c b/board/mscc/serval/serval.c index 24ee5e528d..ade041e118 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) |