Commit 5a310760 authored by Sriramakrishnan's avatar Sriramakrishnan Committed by Kevin Hilman

TI Davinci EMAC : Re-use driver for other platforms.

The davinci EMAC peripheral is also available on other TI
platforms -notably TI AM3517 SoC. This patch modifies the
config option and the platform structure header files so that
the driver can be reused on non-davinci platforms as well.
Signed-off-by: default avatarSriramakrishnan <srk@ti.com>
Acked-by: default avatarChaithrika U S <chaithrika@ti.com>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent a247e0aa
...@@ -11,13 +11,13 @@ ...@@ -11,13 +11,13 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/etherdevice.h> #include <linux/etherdevice.h>
#include <linux/davinci_emac.h>
#include <asm/tlb.h> #include <asm/tlb.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <mach/common.h> #include <mach/common.h>
#include <mach/cputype.h> #include <mach/cputype.h>
#include <mach/emac.h>
#include "clock.h" #include "clock.h"
......
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
#include <video/da8xx-fb.h> #include <video/da8xx-fb.h>
#include <linux/davinci_emac.h>
#include <mach/serial.h> #include <mach/serial.h>
#include <mach/edma.h> #include <mach/edma.h>
#include <mach/i2c.h> #include <mach/i2c.h>
#include <mach/emac.h>
#include <mach/asp.h> #include <mach/asp.h>
#include <mach/mmc.h> #include <mach/mmc.h>
#include <mach/usb.h> #include <mach/usb.h>
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#define __ASM_ARCH_DM665_H #define __ASM_ARCH_DM665_H
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/davinci_emac.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/emac.h>
#include <mach/asp.h> #include <mach/asp.h>
#include <mach/keyscan.h> #include <mach/keyscan.h>
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
#ifndef __ASM_ARCH_DM644X_H #ifndef __ASM_ARCH_DM644X_H
#define __ASM_ARCH_DM644X_H #define __ASM_ARCH_DM644X_H
#include <linux/davinci_emac.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/emac.h>
#include <mach/asp.h> #include <mach/asp.h>
#include <media/davinci/vpfe_capture.h> #include <media/davinci/vpfe_capture.h>
......
...@@ -12,11 +12,11 @@ ...@@ -12,11 +12,11 @@
#define __ASM_ARCH_DM646X_H #define __ASM_ARCH_DM646X_H
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/emac.h>
#include <mach/asp.h> #include <mach/asp.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <linux/clk.h> #include <linux/clk.h>
#include <linux/davinci_emac.h>
#define DM646X_EMAC_BASE (0x01C80000) #define DM646X_EMAC_BASE (0x01C80000)
#define DM646X_EMAC_CNTRL_OFFSET (0x0000) #define DM646X_EMAC_CNTRL_OFFSET (0x0000)
......
...@@ -920,7 +920,7 @@ config NET_NETX ...@@ -920,7 +920,7 @@ config NET_NETX
config TI_DAVINCI_EMAC config TI_DAVINCI_EMAC
tristate "TI DaVinci EMAC Support" tristate "TI DaVinci EMAC Support"
depends on ARM && ARCH_DAVINCI depends on ARM && ( ARCH_DAVINCI || ARCH_OMAP3 )
select PHYLIB select PHYLIB
help help
This driver supports TI's DaVinci Ethernet . This driver supports TI's DaVinci Ethernet .
......
...@@ -62,12 +62,11 @@ ...@@ -62,12 +62,11 @@
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/uaccess.h> #include <linux/uaccess.h>
#include <linux/davinci_emac.h>
#include <asm/irq.h> #include <asm/irq.h>
#include <asm/page.h> #include <asm/page.h>
#include <mach/emac.h>
static int debug_level; static int debug_level;
module_param(debug_level, int, 0); module_param(debug_level, int, 0);
MODULE_PARM_DESC(debug_level, "DaVinci EMAC debug level (NETIF_MSG bits)"); MODULE_PARM_DESC(debug_level, "DaVinci EMAC debug level (NETIF_MSG bits)");
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
* is licensed "as is" without any warranty of any kind, whether express * is licensed "as is" without any warranty of any kind, whether express
* or implied. * or implied.
*/ */
#ifndef _MACH_DAVINCI_EMAC_H #ifndef _LINUX_DAVINCI_EMAC_H
#define _MACH_DAVINCI_EMAC_H #define _LINUX_DAVINCI_EMAC_H
#include <linux/if_ether.h> #include <linux/if_ether.h>
#include <linux/memory.h> #include <linux/memory.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment