diff options
author | Wolfgang Denk <wd@denx.de> | 2008-02-16 00:42:44 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-02-16 00:42:44 +0100 |
commit | 5db6138565ad4da190f94e0bc1d89407d58a2ab2 (patch) | |
tree | 349d78d6c9f4e3188df7edd3061361434af9cf71 /drivers/net/macb.c | |
parent | 30c6a241e88499f536e86d325759e29ba00ff67f (diff) | |
parent | 5561857aae9a5921772b18b571708956788148d8 (diff) | |
download | u-boot-imx-5db6138565ad4da190f94e0bc1d89407d58a2ab2.zip u-boot-imx-5db6138565ad4da190f94e0bc1d89407d58a2ab2.tar.gz u-boot-imx-5db6138565ad4da190f94e0bc1d89407d58a2ab2.tar.bz2 |
Merge branch 'master' of git://www.denx.de/git/u-boot-arm
Diffstat (limited to 'drivers/net/macb.c')
-rw-r--r-- | drivers/net/macb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 6657d22..9c98338 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -417,10 +417,18 @@ static int macb_init(struct eth_device *netdev, bd_t *bd) /* choose RMII or MII mode. This depends on the board */ #ifdef CONFIG_RMII +#ifdef CONFIG_AT91CAP9ADK + macb_writel(macb, USRIO, MACB_BIT(RMII) | MACB_BIT(CLKEN)); +#else macb_writel(macb, USRIO, 0); +#endif +#else +#ifdef CONFIG_AT91CAP9ADK + macb_writel(macb, USRIO, MACB_BIT(CLKEN)); #else macb_writel(macb, USRIO, MACB_BIT(MII)); #endif +#endif /* CONFIG_RMII */ if (!macb_phy_init(macb)) return -1; |