summaryrefslogtreecommitdiff
path: root/board/gdsys/405ep
diff options
context:
space:
mode:
authorDirk Eibach <dirk.eibach@gdsys.cc>2014-07-03 09:28:24 +0200
committerTom Rini <trini@ti.com>2014-07-07 19:47:19 -0400
commit5d1a4bf39f1146e069206953829b5c0c49c4eab5 (patch)
treed4955b44d69bf6a9888f2c935c4bcccb62eb84c7 /board/gdsys/405ep
parentb415fec65f9867d851366b0bf17759497ff8b392 (diff)
downloadu-boot-imx-5d1a4bf39f1146e069206953829b5c0c49c4eab5.zip
u-boot-imx-5d1a4bf39f1146e069206953829b5c0c49c4eab5.tar.gz
u-boot-imx-5d1a4bf39f1146e069206953829b5c0c49c4eab5.tar.bz2
board: iocon: Modify iocon hardware startup
To avoid peer "ChReceivePathStatus"-messages on iocon startup, initialize PHYs as soon as possible. Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Diffstat (limited to 'board/gdsys/405ep')
-rw-r--r--board/gdsys/405ep/iocon.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/board/gdsys/405ep/iocon.c b/board/gdsys/405ep/iocon.c
index 6ae15e1..1bac970 100644
--- a/board/gdsys/405ep/iocon.c
+++ b/board/gdsys/405ep/iocon.c
@@ -377,14 +377,10 @@ int last_stage_init(void)
if (!legacy) {
/* Turn on Parade DP501 */
pca9698_direction_output(0x20, 9, 1);
- udelay(500000);
ch0_rgmii2_present = !pca9698_get_value(0x20, 30);
}
- print_fpga_info(0, ch0_rgmii2_present);
- osd_probe(0);
-
/* wait for FPGA done */
for (k = 0; k < ARRAY_SIZE(mclink_controllers); ++k) {
unsigned int ctr = 0;
@@ -413,13 +409,16 @@ int last_stage_init(void)
}
}
- /* wait for slave-PLLs to be up and running */
+ /* give slave-PLLs and Parade DP501 some time to be up and running */
udelay(500000);
mclink_fpgacount = CONFIG_SYS_MCLINK_MAX;
slaves = mclink_probe();
mclink_fpgacount = 0;
+ print_fpga_info(0, ch0_rgmii2_present);
+ osd_probe(0);
+
if (slaves <= 0)
return 0;