1
2
3
4
5
6
7
8
9
10
11 #ifndef _LINUX_DAVINCI_EMAC_H
12 #define _LINUX_DAVINCI_EMAC_H
13
14 #include <linux/if_ether.h>
15 #include <linux/nvmem-consumer.h>
16
17 struct mdio_platform_data {
18 unsigned long bus_freq;
19 };
20
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;
26 u32 hw_ram_addr;
27 u32 ctrl_ram_size;
28
29
30
31
32
33
34
35 const char *phy_id;
36
37 u8 rmii_en;
38 u8 version;
39 bool no_bd_ram;
40 void (*interrupt_enable) (void);
41 void (*interrupt_disable) (void);
42 };
43
44 enum {
45 EMAC_VERSION_1,
46 EMAC_VERSION_2,
47 };
48
49 #endif