Commit | Line | Data |
---|---|---|
ac7b75b5 KH |
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 | */ | |
8ee2bf9a S |
11 | #ifndef _LINUX_DAVINCI_EMAC_H |
12 | #define _LINUX_DAVINCI_EMAC_H | |
ac7b75b5 KH |
13 | |
14 | #include <linux/if_ether.h> | |
b14dc0f9 | 15 | #include <linux/memory.h> |
ac7b75b5 | 16 | |
f20136eb CC |
17 | struct mdio_platform_data { |
18 | unsigned long bus_freq; | |
19 | }; | |
20 | ||
ac7b75b5 KH |
21 | struct emac_platform_data { |
22 | char mac_addr[ETH_ALEN]; | |
23 | u32 ctrl_reg_offset; | |
24 | u32 ctrl_mod_reg_offset; | |
25 | u32 ctrl_ram_offset; | |
ad021ae8 | 26 | u32 hw_ram_addr; |
ac7b75b5 KH |
27 | u32 mdio_reg_offset; |
28 | u32 ctrl_ram_size; | |
29 | u32 phy_mask; | |
30 | u32 mdio_max_freq; | |
31 | u8 rmii_en; | |
32 | u8 version; | |
01a9af36 S |
33 | void (*interrupt_enable) (void); |
34 | void (*interrupt_disable) (void); | |
ac7b75b5 KH |
35 | }; |
36 | ||
37 | enum { | |
38 | EMAC_VERSION_1, /* DM644x */ | |
39 | EMAC_VERSION_2, /* DM646x */ | |
40 | }; | |
ac7b75b5 | 41 | |
b14dc0f9 MG |
42 | void davinci_get_mac_addr(struct memory_accessor *mem_acc, void *context); |
43 | #endif |