summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2010-06-21 09:40:43 +0200
committerBen Warren <biggerbadderben@gmail.com>2010-07-12 00:14:29 -0700
commit836cd453583627cbef784bd4d7963109d5914bde (patch)
tree0f17601188fa2d0f218fecb90a5c956c5da7b432 /include/configs
parent409943a98961661fd93fb055a3d302184901dda5 (diff)
downloadu-boot-imx-836cd453583627cbef784bd4d7963109d5914bde.zip
u-boot-imx-836cd453583627cbef784bd4d7963109d5914bde.tar.gz
u-boot-imx-836cd453583627cbef784bd4d7963109d5914bde.tar.bz2
cpuat91: unbreak ethernet
* the following problems are met : config was set to use the new driver as a default but - RMII was not enabled for the new driver - the new driver didn't compile with RMII enabled - the new driver initialize a PHY at address O when the PHY of this board is at 1 thus we get "AT91 EMAC RMII: No PHY present" * to fix these problems, this patch : - enable RMII for the new driver - fix the wrong define used in the at91_emac.c - allow the config file to set a default phy address (and use 0 as a default as in the actual at91_emac.c driver) Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/cpuat91.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/configs/cpuat91.h b/include/configs/cpuat91.h
index b4fda76..049298c 100644
--- a/include/configs/cpuat91.h
+++ b/include/configs/cpuat91.h
@@ -131,15 +131,12 @@
(CONFIG_SYS_MEMTEST_START + PHYS_SDRAM_SIZE - 512 * 1024)
#define CONFIG_NET_MULTI 1
-#ifdef CONFIG_NET_MULTI
#define CONFIG_DRIVER_AT91EMAC 1
#define CONFIG_SYS_RX_ETH_BUFFER 8
-#else
-#define CONFIG_DRIVER_ETHER 1
-#endif
+#define CONFIG_RMII 1
+#define CONFIG_MII 1
+#define CONFIG_DRIVER_AT91EMAC_PHYADDR 1
#define CONFIG_NET_RETRY_COUNT 20
-#define CONFIG_AT91C_USE_RMII 1
-#define CONFIG_PHY_ADDRESS (1 << 5)
#define CONFIG_KS8721_PHY 1
#define CONFIG_SYS_FLASH_CFI 1