diff options
author | Andy Fleming <afleming@freescale.com> | 2008-12-16 18:29:15 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-16 18:29:15 -0500 |
commit | b31a1d8b41513b96e9c7ec2f68c5734cef0b26a4 (patch) | |
tree | f8643c2fd1b137dd6c00bcd385ad36adfca4f540 /include/linux | |
parent | 257d938a0c17838c740eb68f0005b041444ac2c2 (diff) |
gianfar: Convert gianfar to an of_platform_driver
Does the same for the accompanying MDIO driver, and then modifies the TBI
configuration method. The old way used fields in einfo, which no longer
exists. The new way is to create an MDIO device-tree node for each instance
of gianfar, and create a tbi-handle property to associate ethernet controllers
with the TBI PHYs they are connected to.
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/fsl_devices.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index 708bab58d8d0..d9051d717d27 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h | |||
@@ -47,12 +47,7 @@ | |||
47 | struct gianfar_platform_data { | 47 | struct gianfar_platform_data { |
48 | /* device specific information */ | 48 | /* device specific information */ |
49 | u32 device_flags; | 49 | u32 device_flags; |
50 | /* board specific information */ | 50 | char bus_id[BUS_ID_SIZE]; |
51 | u32 board_flags; | ||
52 | int mdio_bus; /* Bus controlled by us */ | ||
53 | char bus_id[MII_BUS_ID_SIZE]; /* Bus PHY is on */ | ||
54 | u32 phy_id; | ||
55 | u8 mac_addr[6]; | ||
56 | phy_interface_t interface; | 51 | phy_interface_t interface; |
57 | }; | 52 | }; |
58 | 53 | ||
@@ -61,17 +56,6 @@ struct gianfar_mdio_data { | |||
61 | int irq[32]; | 56 | int irq[32]; |
62 | }; | 57 | }; |
63 | 58 | ||
64 | /* Flags related to gianfar device features */ | ||
65 | #define FSL_GIANFAR_DEV_HAS_GIGABIT 0x00000001 | ||
66 | #define FSL_GIANFAR_DEV_HAS_COALESCE 0x00000002 | ||
67 | #define FSL_GIANFAR_DEV_HAS_RMON 0x00000004 | ||
68 | #define FSL_GIANFAR_DEV_HAS_MULTI_INTR 0x00000008 | ||
69 | #define FSL_GIANFAR_DEV_HAS_CSUM 0x00000010 | ||
70 | #define FSL_GIANFAR_DEV_HAS_VLAN 0x00000020 | ||
71 | #define FSL_GIANFAR_DEV_HAS_EXTENDED_HASH 0x00000040 | ||
72 | #define FSL_GIANFAR_DEV_HAS_PADDING 0x00000080 | ||
73 | #define FSL_GIANFAR_DEV_HAS_MAGIC_PACKET 0x00000100 | ||
74 | |||
75 | /* Flags in gianfar_platform_data */ | 59 | /* Flags in gianfar_platform_data */ |
76 | #define FSL_GIANFAR_BRD_HAS_PHY_INTR 0x00000001 /* set or use a timer */ | 60 | #define FSL_GIANFAR_BRD_HAS_PHY_INTR 0x00000001 /* set or use a timer */ |
77 | #define FSL_GIANFAR_BRD_IS_REDUCED 0x00000002 /* Set if RGMII, RMII */ | 61 | #define FSL_GIANFAR_BRD_IS_REDUCED 0x00000002 /* Set if RGMII, RMII */ |