]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - arch/arm/cpu/armv7/omap3/emac.c
3 * DaVinci EMAC initialization.
5 * (C) Copyright 2011, Ilya Yanok, Emcraft Systems
7 * SPDX-License-Identifier: GPL-2.0+
13 #include <asm/arch/am35x_def.h>
16 * Initializes on-chip ethernet controllers.
17 * to override, implement board_eth_init()
19 int cpu_eth_init(bd_t
*bis
)
23 /* ensure that the module is out of reset */
24 reset
= readl(&am35x_scm_general_regs
->ip_sw_reset
);
25 reset
&= ~CPGMACSS_SW_RST
;
26 writel(reset
, &am35x_scm_general_regs
->ip_sw_reset
);
28 return davinci_emac_initialize();