diff options
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, 36 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/emac.h b/arch/arm/mach-davinci/include/mach/emac.h new file mode 100644 index 000000000000..549fcced2175 --- /dev/null +++ b/arch/arm/mach-davinci/include/mach/emac.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* | ||
2 | * TI DaVinci EMAC platform support | ||
3 | * | ||
4 | * Author: Kevin Hilman, Deep Root Systems, LLC | ||
5 | * | ||
6 | * 2007 (c) Deep Root Systems, LLC. This file is licensed under | ||
7 | * the terms of the GNU General Public License version 2. This program | ||
8 | * is licensed "as is" without any warranty of any kind, whether express | ||
9 | * or implied. | ||
10 | */ | ||
11 | #ifndef _MACH_DAVINCI_EMAC_H | ||
12 | #define _MACH_DAVINCI_EMAC_H | ||
13 | |||
14 | #include <linux/if_ether.h> | ||
15 | |||
16 | struct emac_platform_data { | ||
17 | char mac_addr[ETH_ALEN]; | ||
18 | u32 ctrl_reg_offset; | ||
19 | u32 ctrl_mod_reg_offset; | ||
20 | u32 ctrl_ram_offset; | ||
21 | u32 mdio_reg_offset; | ||
22 | u32 ctrl_ram_size; | ||
23 | u32 phy_mask; | ||
24 | u32 mdio_max_freq; | ||
25 | u8 rmii_en; | ||
26 | u8 version; | ||
27 | }; | ||
28 | |||
29 | enum { | ||
30 | EMAC_VERSION_1, /* DM644x */ | ||
31 | EMAC_VERSION_2, /* DM646x */ | ||
32 | }; | ||
33 | void davinci_init_emac(struct emac_platform_data *pdata); | ||
34 | #endif | ||
35 | |||
36 | |||