Patchwork [U-Boot] am335x: disable internal delay for RGMII mode

login
register
mail settings
Submitter Yegor Yefremov
Date Nov. 26, 2012, 1:30 p.m.
Message ID <1353936642-28342-1-git-send-email-yegorslists@googlemail.com>
Download mbox | patch
Permalink /patch/201706/
State Awaiting Upstream
Delegated to: Tom Rini
Headers show

Comments

Yegor Yefremov - Nov. 26, 2012, 1:30 p.m.
From: Yegor Yefremov <yegorslists@googlemail.com>

According to errata the AM335x device does not support internal delay
mode, so RGMII1_IDMODE and RGMII2_IDMODE must be set to 1.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 board/ti/am335x/board.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Tom Rini - Dec. 10, 2012, 8:16 p.m.
On Mon, Nov 26, 2012 at 03:30:42AM -0000, Yegor Yefremov wrote:

> From: Yegor Yefremov <yegorslists@googlemail.com>
> 
> According to errata the AM335x device does not support internal delay
> mode, so RGMII1_IDMODE and RGMII2_IDMODE must be set to 1.
> 
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>

Applied to u-boot-ti/master, thanks!

Patch

diff --git a/board/ti/am335x/board.c b/board/ti/am335x/board.c
index b56a801..085bb9b 100644
--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -44,7 +44,7 @@  static struct uart_sys *uart_base = (struct uart_sys *)DEFAULT_UART_BASE;
 
 /* MII mode defines */
 #define MII_MODE_ENABLE		0x0
-#define RGMII_MODE_ENABLE	0xA
+#define RGMII_MODE_ENABLE	0x3A
 
 /* GPIO that controls power to DDR on EVM-SK */
 #define GPIO_DDR_VTT_EN		7