mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
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>
This commit is contained in:
parent
d22f072f5d
commit
a3dab5d1d9
@ -158,6 +158,10 @@ void at91_spi1_hw_init(unsigned long cs_mask)
|
|||||||
#ifdef CONFIG_MACB
|
#ifdef CONFIG_MACB
|
||||||
void at91_macb_hw_init(void)
|
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, 19, 0); /* ETXCK_EREFCK */
|
||||||
at91_set_a_periph(AT91_PIO_PORTA, 17, 0); /* ERXDV */
|
at91_set_a_periph(AT91_PIO_PORTA, 17, 0); /* ERXDV */
|
||||||
at91_set_a_periph(AT91_PIO_PORTA, 14, 0); /* ERX0 */
|
at91_set_a_periph(AT91_PIO_PORTA, 14, 0); /* ERX0 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user