diff options
author | Andy Fleming <afleming@freescale.com> | 2005-10-28 20:46:27 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-29 00:42:28 -0400 |
commit | b37665e0ba1d3f05697bfae249b09a2e9cc95132 (patch) | |
tree | 22c80609e3254524038d5b690f1f886b0987f58d /arch/ppc/syslib/mpc85xx_devices.c | |
parent | dd03d25fac90ee6f394874fb4e6995866304e4ba (diff) |
[PATCH] ppc32: 85xx PHY Platform Update
This patch updates the 85xx platform code to support the new PHY Layer.
Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: Kumar Gala <Kumar.gala@freescale.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc/syslib/mpc85xx_devices.c')
-rw-r--r-- | arch/ppc/syslib/mpc85xx_devices.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/arch/ppc/syslib/mpc85xx_devices.c b/arch/ppc/syslib/mpc85xx_devices.c index bbc5ac0de878..2ede677a0a53 100644 --- a/arch/ppc/syslib/mpc85xx_devices.c +++ b/arch/ppc/syslib/mpc85xx_devices.c | |||
@@ -25,19 +25,20 @@ | |||
25 | /* We use offsets for IORESOURCE_MEM since we do not know at compile time | 25 | /* We use offsets for IORESOURCE_MEM since we do not know at compile time |
26 | * what CCSRBAR is, will get fixed up by mach_mpc85xx_fixup | 26 | * what CCSRBAR is, will get fixed up by mach_mpc85xx_fixup |
27 | */ | 27 | */ |
28 | struct gianfar_mdio_data mpc85xx_mdio_pdata = { | ||
29 | .paddr = MPC85xx_MIIM_OFFSET, | ||
30 | }; | ||
28 | 31 | ||
29 | static struct gianfar_platform_data mpc85xx_tsec1_pdata = { | 32 | static struct gianfar_platform_data mpc85xx_tsec1_pdata = { |
30 | .device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT | | 33 | .device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT | |
31 | FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON | | 34 | FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON | |
32 | FSL_GIANFAR_DEV_HAS_MULTI_INTR, | 35 | FSL_GIANFAR_DEV_HAS_MULTI_INTR, |
33 | .phy_reg_addr = MPC85xx_ENET1_OFFSET, | ||
34 | }; | 36 | }; |
35 | 37 | ||
36 | static struct gianfar_platform_data mpc85xx_tsec2_pdata = { | 38 | static struct gianfar_platform_data mpc85xx_tsec2_pdata = { |
37 | .device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT | | 39 | .device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT | |
38 | FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON | | 40 | FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON | |
39 | FSL_GIANFAR_DEV_HAS_MULTI_INTR, | 41 | FSL_GIANFAR_DEV_HAS_MULTI_INTR, |
40 | .phy_reg_addr = MPC85xx_ENET1_OFFSET, | ||
41 | }; | 42 | }; |
42 | 43 | ||
43 | static struct gianfar_platform_data mpc85xx_etsec1_pdata = { | 44 | static struct gianfar_platform_data mpc85xx_etsec1_pdata = { |
@@ -46,7 +47,6 @@ static struct gianfar_platform_data mpc85xx_etsec1_pdata = { | |||
46 | FSL_GIANFAR_DEV_HAS_MULTI_INTR | | 47 | FSL_GIANFAR_DEV_HAS_MULTI_INTR | |
47 | FSL_GIANFAR_DEV_HAS_CSUM | FSL_GIANFAR_DEV_HAS_VLAN | | 48 | FSL_GIANFAR_DEV_HAS_CSUM | FSL_GIANFAR_DEV_HAS_VLAN | |
48 | FSL_GIANFAR_DEV_HAS_EXTENDED_HASH, | 49 | FSL_GIANFAR_DEV_HAS_EXTENDED_HASH, |
49 | .phy_reg_addr = MPC85xx_ENET1_OFFSET, | ||
50 | }; | 50 | }; |
51 | 51 | ||
52 | static struct gianfar_platform_data mpc85xx_etsec2_pdata = { | 52 | static struct gianfar_platform_data mpc85xx_etsec2_pdata = { |
@@ -55,7 +55,6 @@ static struct gianfar_platform_data mpc85xx_etsec2_pdata = { | |||
55 | FSL_GIANFAR_DEV_HAS_MULTI_INTR | | 55 | FSL_GIANFAR_DEV_HAS_MULTI_INTR | |
56 | FSL_GIANFAR_DEV_HAS_CSUM | FSL_GIANFAR_DEV_HAS_VLAN | | 56 | FSL_GIANFAR_DEV_HAS_CSUM | FSL_GIANFAR_DEV_HAS_VLAN | |
57 | FSL_GIANFAR_DEV_HAS_EXTENDED_HASH, | 57 | FSL_GIANFAR_DEV_HAS_EXTENDED_HASH, |
58 | .phy_reg_addr = MPC85xx_ENET1_OFFSET, | ||
59 | }; | 58 | }; |
60 | 59 | ||
61 | static struct gianfar_platform_data mpc85xx_etsec3_pdata = { | 60 | static struct gianfar_platform_data mpc85xx_etsec3_pdata = { |
@@ -64,7 +63,6 @@ static struct gianfar_platform_data mpc85xx_etsec3_pdata = { | |||
64 | FSL_GIANFAR_DEV_HAS_MULTI_INTR | | 63 | FSL_GIANFAR_DEV_HAS_MULTI_INTR | |
65 | FSL_GIANFAR_DEV_HAS_CSUM | FSL_GIANFAR_DEV_HAS_VLAN | | 64 | FSL_GIANFAR_DEV_HAS_CSUM | FSL_GIANFAR_DEV_HAS_VLAN | |
66 | FSL_GIANFAR_DEV_HAS_EXTENDED_HASH, | 65 | FSL_GIANFAR_DEV_HAS_EXTENDED_HASH, |
67 | .phy_reg_addr = MPC85xx_ENET1_OFFSET, | ||
68 | }; | 66 | }; |
69 | 67 | ||
70 | static struct gianfar_platform_data mpc85xx_etsec4_pdata = { | 68 | static struct gianfar_platform_data mpc85xx_etsec4_pdata = { |
@@ -73,11 +71,10 @@ static struct gianfar_platform_data mpc85xx_etsec4_pdata = { | |||
73 | FSL_GIANFAR_DEV_HAS_MULTI_INTR | | 71 | FSL_GIANFAR_DEV_HAS_MULTI_INTR | |
74 | FSL_GIANFAR_DEV_HAS_CSUM | FSL_GIANFAR_DEV_HAS_VLAN | | 72 | FSL_GIANFAR_DEV_HAS_CSUM | FSL_GIANFAR_DEV_HAS_VLAN | |
75 | FSL_GIANFAR_DEV_HAS_EXTENDED_HASH, | 73 | FSL_GIANFAR_DEV_HAS_EXTENDED_HASH, |
76 | .phy_reg_addr = MPC85xx_ENET1_OFFSET, | ||
77 | }; | 74 | }; |
78 | 75 | ||
79 | static struct gianfar_platform_data mpc85xx_fec_pdata = { | 76 | static struct gianfar_platform_data mpc85xx_fec_pdata = { |
80 | .phy_reg_addr = MPC85xx_ENET1_OFFSET, | 77 | .device_flags = 0, |
81 | }; | 78 | }; |
82 | 79 | ||
83 | static struct fsl_i2c_platform_data mpc85xx_fsl_i2c_pdata = { | 80 | static struct fsl_i2c_platform_data mpc85xx_fsl_i2c_pdata = { |
@@ -719,6 +716,12 @@ struct platform_device ppc_sys_platform_devices[] = { | |||
719 | }, | 716 | }, |
720 | }, | 717 | }, |
721 | }, | 718 | }, |
719 | [MPC85xx_MDIO] = { | ||
720 | .name = "fsl-gianfar_mdio", | ||
721 | .id = 0, | ||
722 | .dev.platform_data = &mpc85xx_mdio_pdata, | ||
723 | .num_resources = 0, | ||
724 | }, | ||
722 | }; | 725 | }; |
723 | 726 | ||
724 | static int __init mach_mpc85xx_fixup(struct platform_device *pdev) | 727 | static int __init mach_mpc85xx_fixup(struct platform_device *pdev) |