diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2019-01-29 10:58:34 +0100 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2019-02-01 14:09:31 +0100 |
commit | 78b543141090b7c35a64418157b5194588a9f955 (patch) | |
tree | bb180bf7d625ca48e43e38c05d119398dd4851d9 /board/mscc | |
parent | 45988b123cf40bb651d7c48e913b010a8e255643 (diff) | |
download | u-boot-78b543141090b7c35a64418157b5194588a9f955.tar.gz u-boot-78b543141090b7c35a64418157b5194588a9f955.tar.bz2 u-boot-78b543141090b7c35a64418157b5194588a9f955.zip |
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.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Diffstat (limited to 'board/mscc')
-rw-r--r-- | board/mscc/jr2/jr2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/mscc/jr2/jr2.c b/board/mscc/jr2/jr2.c index 226181f6e7..58a4a04162 100644 --- a/board/mscc/jr2/jr2.c +++ b/board/mscc/jr2/jr2.c @@ -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 */ |