]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/arm/mach-omap2/omap3/emac.c
common: Drop net.h from common header
[thirdparty/u-boot.git] / arch / arm / mach-omap2 / omap3 / emac.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
b9e65a79
IY
2/*
3 *
4 * DaVinci EMAC initialization.
5 *
6 * (C) Copyright 2011, Ilya Yanok, Emcraft Systems
b9e65a79
IY
7 */
8
9#include <common.h>
90526e9f 10#include <net.h>
b9e65a79
IY
11#include <asm/io.h>
12#include <asm/arch/am35x_def.h>
13
14/*
15 * Initializes on-chip ethernet controllers.
16 * to override, implement board_eth_init()
17 */
18int cpu_eth_init(bd_t *bis)
19{
20 u32 reset;
21
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);
26
e809285d 27 return 0;
b9e65a79 28}