aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Hubig <mhubig@imko.de>2012-08-07 17:43:22 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-08-14 00:36:21 +0200
commit3985b16fb739ada59e97413ec6f0d63af8d94425 (patch)
tree3ae418b90fd978ed0d1187444e311ff417f41ff1
parent7d186b3c88daed359b8a58f35bd405d95b3905b8 (diff)
downloadu-boot-linaro-stable-3985b16fb739ada59e97413ec6f0d63af8d94425.tar.gz
Enable the EMAC clock in at91_macb_hw_init().
Signed-off-by: Markus Hubig <mhubig@imko.de> Cc: Andreas Bießmann <andreas.devel@googlemail.com> Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
-rw-r--r--arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
index 62f76fa8e..19ec615c7 100644
--- a/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
+++ b/arch/arm/cpu/arm926ejs/at91/at91sam9260_devices.c
@@ -158,6 +158,10 @@ void at91_spi1_hw_init(unsigned long cs_mask)
#ifdef CONFIG_MACB
void at91_macb_hw_init(void)
{
+ /* Enable EMAC clock */
+ struct at91_pmc *pmc = (struct at91_pmc *)ATMEL_BASE_PMC;
+ writel(1 << ATMEL_ID_EMAC0, &pmc->pcer);
+
at91_set_a_periph(AT91_PIO_PORTA, 19, 0); /* ETXCK_EREFCK */
at91_set_a_periph(AT91_PIO_PORTA, 17, 0); /* ERXDV */
at91_set_a_periph(AT91_PIO_PORTA, 14, 0); /* ERX0 */