summaryrefslogtreecommitdiff
path: root/include/asm-arm/fec.h
diff options
context:
space:
mode:
authorZeng Zhaoming <b32542@freescale.com>2011-06-23 07:52:37 +0800
committerZeng Zhaoming <b32542@freescale.com>2011-06-27 02:07:35 +0800
commit3c5c5630bb6e55471d8279d6789ce9c6e851b589 (patch)
tree48989322df742df5bdf6ab1b010866ac6eb4bbb7 /include/asm-arm/fec.h
parent15f996b62fb5d2709ff66fbca0f6d0ca376acd13 (diff)
downloadu-boot-imx-3c5c5630bb6e55471d8279d6789ce9c6e851b589.zip
u-boot-imx-3c5c5630bb6e55471d8279d6789ce9c6e851b589.tar.gz
u-boot-imx-3c5c5630bb6e55471d8279d6789ce9c6e851b589.tar.bz2
ENGR00139198: iMX61 uBoot add ENET support
Add ENET and AR8031 PHY support to uboot. To make it works on sabreauto, need do following changes: 1. rework phy to output 125M clock from CLK_25M signal, and the 125M clock input to SoC as reference clock to generate RGMII_TXC clock. 2. Enable TXC delay in PHY debug register. 3. set ENET working in RMII mode. 4. set ENET working at 1000M or 100M/10M. 5. set ENET TX fifo to maximum to avoid underrun error. 6. force AR8031 PHY working at 100M Signed-off-by: Anson Huang <b20788@freescale.com> Signed-off-by: Zeng Zhaoming <b32542@freescale.com>
Diffstat (limited to 'include/asm-arm/fec.h')
-rw-r--r--include/asm-arm/fec.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-arm/fec.h b/include/asm-arm/fec.h
index 48da9c5..4a27794 100644
--- a/include/asm-arm/fec.h
+++ b/include/asm-arm/fec.h
@@ -6,7 +6,7 @@
* Copyright (c) 1997 Dan Malek (dmalek@jlc.net)
*
* Add FEC Structure and definitions
- * Copyright 2004-2010 Freescale Semiconductor, Inc.
+ * Copyright 2004-2011 Freescale Semiconductor, Inc.
* TsiChung Liew (Tsi-Chung.Liew@freescale.com)
*
* See file CREDITS for list of people who contributed to this
@@ -189,6 +189,7 @@ typedef struct fec {
#define FEC_TDAR_X_DES_ACTIVE (0x01000000)
/* Bit definitions and macros for FEC_ECR */
+#define FEC_ECR_DBSWP (0x00000100)
#define FEC_ECR_ETHER_EN (0x00000002)
#define FEC_ECR_RESET (0x00000001)