mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-07 13:44:29 +00:00
e809285d49
Now that we removed all legacy boards selecting TI_EMAC we can completely convert the driver code to using the driver model. This patch also updates all remaining users of davinci_emac. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Tested-by: Adam Ford <aford173@gmail.com> #am3517-evm & da850-evm Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
27 lines
541 B
C
27 lines
541 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
*
|
|
* DaVinci EMAC initialization.
|
|
*
|
|
* (C) Copyright 2011, Ilya Yanok, Emcraft Systems
|
|
*/
|
|
|
|
#include <common.h>
|
|
#include <asm/io.h>
|
|
#include <asm/arch/am35x_def.h>
|
|
|
|
/*
|
|
* Initializes on-chip ethernet controllers.
|
|
* to override, implement board_eth_init()
|
|
*/
|
|
int cpu_eth_init(bd_t *bis)
|
|
{
|
|
u32 reset;
|
|
|
|
/* ensure that the module is out of reset */
|
|
reset = readl(&am35x_scm_general_regs->ip_sw_reset);
|
|
reset &= ~CPGMACSS_SW_RST;
|
|
writel(reset, &am35x_scm_general_regs->ip_sw_reset);
|
|
|
|
return 0;
|
|
}
|