summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2012-03-31 14:05:21 +0800
committerJosh Wu <josh.wu@atmel.com>2012-09-25 16:03:07 +0800
commitc2f354a889f78830f592dbce5a2c4a08c881c67e (patch)
treed14a4cc67eb84f2e6e7596649b33885ec9b069b2 /drivers/net
parent09e4abecfbd03bce3f3a0c8d112e0367bb119fb2 (diff)
MACB: enable EMAC support for SAMA5EK
Signed-off-by: Bo Shen <voice.shen@atmel.com> [fix conflict]
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/macb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 0e1ced71c50..f05a5665210 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -471,7 +471,8 @@ static int macb_init(struct eth_device *netdev, bd_t *bd)
#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20) || \
defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) || \
- defined(CONFIG_AT91SAM9XE) || defined(CONFIG_AT91SAM9X5)
+ defined(CONFIG_AT91SAM9XE) || defined(CONFIG_AT91SAM9X5) || \
+ defined(CONFIG_AT91SAMA5)
macb_writel(macb, USRIO, MACB_BIT(RMII) | MACB_BIT(CLKEN));
#else
macb_writel(macb, USRIO, 0);
@@ -480,7 +481,8 @@ static int macb_init(struct eth_device *netdev, bd_t *bd)
#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
defined(CONFIG_AT91SAM9263) || defined(CONFIG_AT91SAM9G20) || \
defined(CONFIG_AT91SAM9G45) || defined(CONFIG_AT91SAM9M10G45) || \
- defined(CONFIG_AT91SAM9XE) || defined(CONFIG_AT91SAM9X5)
+ defined(CONFIG_AT91SAM9XE) || defined(CONFIG_AT91SAM9X5) || \
+ defined(CONFIG_AT91SAMA5)
macb_writel(macb, USRIO, MACB_BIT(CLKEN));
#else
macb_writel(macb, USRIO, MACB_BIT(MII));