summaryrefslogtreecommitdiff
path: root/board/freescale
diff options
context:
space:
mode:
authorFugang Duan <B38611@freescale.com>2012-03-10 15:59:42 +0800
committerLily Zhang <r58066@freescale.com>2012-03-13 14:55:12 +0800
commitd3ea4d7258316ca68ff104087a5f1987b4829339 (patch)
treee357cc3d8f4aef6db55b9e97f20cb6a5cf53d467 /board/freescale
parente3303f5b59df570c1f76b043d85e42be3dc7a63f (diff)
downloadu-boot-imx-d3ea4d7258316ca68ff104087a5f1987b4829339.zip
u-boot-imx-d3ea4d7258316ca68ff104087a5f1987b4829339.tar.gz
u-boot-imx-d3ea4d7258316ca68ff104087a5f1987b4829339.tar.bz2
ENGR00176347-9 fec : increase wait time for phy link
- remove the excrescent code in enet_board_init function. - KSZ9021 phy auto-negotiation in mx6solo sabreauto RevA is used to establish link with the remote hub or switch. In general, the negotiation time is about 3-5 senconds But connecting to Gbps hub, the time is range from 8s to 15s. So, changing the MAX link waiting time to 20s. According to repetitious tests, solo ARD ethernet is ok in 100Mbps environment. It is not stable in 1000Mbps mode. Signed-off-by: Fugang Duan <B38611@freescale.com>
Diffstat (limited to 'board/freescale')
-rw-r--r--board/freescale/mx6q_sabreauto/mx6q_sabreauto.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/board/freescale/mx6q_sabreauto/mx6q_sabreauto.c b/board/freescale/mx6q_sabreauto/mx6q_sabreauto.c
index 33f232a..2ec178e 100644
--- a/board/freescale/mx6q_sabreauto/mx6q_sabreauto.c
+++ b/board/freescale/mx6q_sabreauto/mx6q_sabreauto.c
@@ -97,21 +97,6 @@ static struct fb_videomode lvds_xga = {
vidinfo_t panel_info;
#endif
-static void set_gpio_output_val(unsigned base, unsigned mask, unsigned val)
-{
- unsigned reg = readl(base + GPIO_DR);
- if (val & 1)
- reg |= mask; /* set high */
- else
- reg &= ~mask; /* clear low */
- writel(reg, base + GPIO_DR);
-
- reg = readl(base + GPIO_GDIR);
- reg |= mask; /* configure GPIO line as output */
- writel(reg, base + GPIO_GDIR);
-}
-
-
static inline void setup_boot_device(void)
{
uint soc_sbmr = readl(SRC_BASE_ADDR + 0x4);
@@ -992,8 +977,6 @@ void enet_board_init(void)
{
mxc_iomux_v3_setup_multiple_pads(enet_pads,
ARRAY_SIZE(enet_pads));
- set_gpio_output_val(GPIO6_BASE_ADDR, (1 << 24), 1);
-
}
int checkboard(void)