1 // SPDX-License-Identifier: GPL-2.0+
4 * DaVinci EMAC initialization.
6 * (C) Copyright 2011, Ilya Yanok, Emcraft Systems
12 #include <asm/arch/am35x_def.h>
15 * Initializes on-chip ethernet controllers.
16 * to override, implement board_eth_init()
18 int cpu_eth_init(bd_t *bis)
22 /* ensure that the module is out of reset */
23 reset = readl(&am35x_scm_general_regs->ip_sw_reset);
24 reset &= ~CPGMACSS_SW_RST;
25 writel(reset, &am35x_scm_general_regs->ip_sw_reset);