diff options
author | Sriramakrishnan <srk@ti.com> | 2009-11-19 15:58:25 +0530 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-02-04 13:29:50 -0800 |
commit | 8ee2bf9ab792d0c02b13ca3acbd036debb7745d9 (patch) | |
tree | 3aee12e86ef03b9df2727c9032eaf60d2a7a11b4 /arch/arm/mach-davinci/include/mach/emac.h | |
parent | fc42e335ee6a7dd1f740c0fc868d607cc689d7c4 (diff) | |
download | linux-8ee2bf9ab792d0c02b13ca3acbd036debb7745d9.tar.gz linux-8ee2bf9ab792d0c02b13ca3acbd036debb7745d9.tar.bz2 linux-8ee2bf9ab792d0c02b13ca3acbd036debb7745d9.zip |
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: Sriramakrishnan <srk@ti.com>
Acked-by: Chaithrika U S <chaithrika@ti.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/include/mach/emac.h')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/emac.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/arch/arm/mach-davinci/include/mach/emac.h b/arch/arm/mach-davinci/include/mach/emac.h deleted file mode 100644 index beff4fb7c845..000000000000 --- a/arch/arm/mach-davinci/include/mach/emac.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * TI DaVinci EMAC platform support - * - * Author: Kevin Hilman, Deep Root Systems, LLC - * - * 2007 (c) Deep Root Systems, LLC. This file is licensed under - * the terms of the GNU General Public License version 2. This program - * is licensed "as is" without any warranty of any kind, whether express - * or implied. - */ -#ifndef _MACH_DAVINCI_EMAC_H -#define _MACH_DAVINCI_EMAC_H - -#include <linux/if_ether.h> -#include <linux/memory.h> - -struct emac_platform_data { - char mac_addr[ETH_ALEN]; - u32 ctrl_reg_offset; - u32 ctrl_mod_reg_offset; - u32 ctrl_ram_offset; - u32 mdio_reg_offset; - u32 ctrl_ram_size; - u32 phy_mask; - u32 mdio_max_freq; - u8 rmii_en; - u8 version; -}; - -enum { - EMAC_VERSION_1, /* DM644x */ - EMAC_VERSION_2, /* DM646x */ -}; - -void davinci_get_mac_addr(struct memory_accessor *mem_acc, void *context); -#endif |