davinci_emac: move arch-independent defines to separate header
DaVinci EMAC is found not only on DaVinci SoCs but on some OMAP3 SoCs also. This patch moves common defines from arch-davinci/emac_defs.h to drivers/net/davinci_emac.h DaVinci specific PHY drivers hacked to include the new header. We might want to switch to phylib in future. Signed-off-by: Ilya Yanok <yanok@emcraft.com>
This commit is contained in:
committed by
Albert ARIBAUD
parent
27b8c8f267
commit
7c587d320d
@@ -29,6 +29,7 @@
|
||||
#include <net.h>
|
||||
#include <dp83848.h>
|
||||
#include <asm/arch/emac_defs.h>
|
||||
#include "../../../../../drivers/net/davinci_emac.h"
|
||||
|
||||
#ifdef CONFIG_DRIVER_TI_EMAC
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <net.h>
|
||||
#include <miiphy.h>
|
||||
#include <asm/arch/emac_defs.h>
|
||||
#include "../../../../../drivers/net/davinci_emac.h"
|
||||
|
||||
#ifdef CONFIG_DRIVER_TI_EMAC
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <net.h>
|
||||
#include <asm/arch/emac_defs.h>
|
||||
#include <asm/io.h>
|
||||
#include "../../../../../drivers/net/davinci_emac.h"
|
||||
|
||||
int ksz8873_is_phy_connected(int phy_addr)
|
||||
{
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include <miiphy.h>
|
||||
#include <lxt971a.h>
|
||||
#include <asm/arch/emac_defs.h>
|
||||
#include "../../../../../drivers/net/davinci_emac.h"
|
||||
|
||||
#ifdef CONFIG_DRIVER_TI_EMAC
|
||||
|
||||
|
||||
Reference in New Issue
Block a user