mirror of
https://github.com/torvalds/linux.git
synced 2024-12-15 07:33:56 +00:00
a8195ba87c
AM35xx SoCs include DaVinci EMAC IP. Initialization code in board-am3517evm.c is pretty board independent and will work for any AM35xx based board so move this code to it's own file to be reused by other boards. Signed-off-by: Ilya Yanok <yanok@emcraft.com> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il> Signed-off-by: Tony Lindgren <tony@atomide.com>
16 lines
530 B
C
16 lines
530 B
C
/*
|
|
* Copyright (C) 2011 Ilya Yanok, Emcraft Systems
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
|
|
#define AM35XX_DEFAULT_MDIO_FREQUENCY 1000000
|
|
|
|
#if defined(CONFIG_TI_DAVINCI_EMAC) || defined(CONFIG_TI_DAVINCI_EMAC_MODULE)
|
|
void am35xx_emac_init(unsigned long mdio_bus_freq, u8 rmii_en);
|
|
#else
|
|
static inline void am35xx_emac_init(unsigned long mdio_bus_freq, u8 rmii_en) {}
|
|
#endif
|