From 4b421d4ea179f8aed52c5b1be45c4dd75a529c91 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Mon, 4 Jan 2016 21:38:08 -0200 Subject: mx6cuboxi: Fix the reset delay for the AR8035 PHY Since commit 59370f3fcd1350 ("net: phy: delay only if reset handler is registered") Ethernet is no longer functional: Booting from net ... FEC Waiting for PHY auto negotiation to complete......... TIMEOUT ! BOOTP broadcast 1 BOOTP broadcast 2 BOOTP broadcast 3 BOOTP broadcast 4 This commit does not have an issue in itself, but it revelead a problem with the Ethernet initialization. As per the AR8035 datasheet: "For a reliable power on reset, suggest to keep asserting the reset low long enough (10ms) to ensure the clock is stable and clock-to-reset 1ms requirement is satisfied." So do as suggested and keep the reset low for 10ms. Also add a 100us delay after deasserting the reset line to guarantee that the PHY ID can be read correctly and the Atheros PHY can be loaded as per Troy Kisky's suggestion. Signed-off-by: Fabio Estevam Tested-by: Tom Rini --- board/solidrun/mx6cuboxi/mx6cuboxi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/solidrun/mx6cuboxi/mx6cuboxi.c b/board/solidrun/mx6cuboxi/mx6cuboxi.c index fc37f1eef0..18b08d12fa 100644 --- a/board/solidrun/mx6cuboxi/mx6cuboxi.c +++ b/board/solidrun/mx6cuboxi/mx6cuboxi.c @@ -143,8 +143,9 @@ static void setup_iomux_enet(void) SETUP_IOMUX_PADS(enet_pads); gpio_direction_output(ETH_PHY_RESET, 0); - mdelay(2); + mdelay(10); gpio_set_value(ETH_PHY_RESET, 1); + udelay(100); } int board_phy_config(struct phy_device *phydev) -- cgit v1.2.1 From 70f27e7f2aff82cbd3a380231b7f1f716e06e7d7 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Wed, 6 Jan 2016 14:19:22 -0200 Subject: mx6cuboxi: Remove obsolete comment We currently support various versions of Solidrun mx6 boards, so remove the obsolete comment. Reported-by: Jon Nettleton Signed-off-by: Fabio Estevam Reviewed-by: Stefano Babic --- board/solidrun/mx6cuboxi/mx6cuboxi.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/board/solidrun/mx6cuboxi/mx6cuboxi.c b/board/solidrun/mx6cuboxi/mx6cuboxi.c index 18b08d12fa..823b70f7ed 100644 --- a/board/solidrun/mx6cuboxi/mx6cuboxi.c +++ b/board/solidrun/mx6cuboxi/mx6cuboxi.c @@ -595,10 +595,6 @@ static void gpr_init(void) writel(0x007F007F, &iomux->gpr[7]); } -/* - * This section requires the differentiation between Solidrun mx6 boards, but - * for now, it will configure only for the mx6dual hummingboard version. - */ static void spl_dram_init(int width) { struct mx6_ddr_sysinfo sysinfo = { -- cgit v1.2.1 From b5e7c1e754b174e7ea9bf9d5de57d451a7acdf78 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Thu, 7 Jan 2016 17:01:23 -0200 Subject: cgtqmx6eval: README: Fix parameter of 'sf write' command 'sf command' should receive the length in sector boundaries, so fix it accordingly. Also, show the steps to set the server and board IP addresses for making the steps clearer. Signed-off-by: Otavio Salvador Reviewed-by: Fabio Estevam --- board/congatec/cgtqmx6eval/README | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/board/congatec/cgtqmx6eval/README b/board/congatec/cgtqmx6eval/README index 1d736dc351..f2c959949c 100644 --- a/board/congatec/cgtqmx6eval/README +++ b/board/congatec/cgtqmx6eval/README @@ -25,11 +25,15 @@ host PC (/tftpboot , for example). => sf probe +=> setenv serverip + +=> setenv ipaddr + => tftp 0x12000000 SPL => sf erase 0x0 0x10000 -=> sf write 0x12000000 0x400 0x100 +=> sf write 0x12000000 0x400 0x10000 => tftp 0x12000000 u-boot.img -- cgit v1.2.1