diff options
Diffstat (limited to 'arch/ppc/syslib/mpc83xx_devices.c')
-rw-r--r-- | arch/ppc/syslib/mpc83xx_devices.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/arch/ppc/syslib/mpc83xx_devices.c b/arch/ppc/syslib/mpc83xx_devices.c index dbf8acac507f..f43fbf9a9389 100644 --- a/arch/ppc/syslib/mpc83xx_devices.c +++ b/arch/ppc/syslib/mpc83xx_devices.c | |||
@@ -27,18 +27,20 @@ | |||
27 | * what IMMRBAR is, will get fixed up by mach_mpc83xx_fixup | 27 | * what IMMRBAR is, will get fixed up by mach_mpc83xx_fixup |
28 | */ | 28 | */ |
29 | 29 | ||
30 | struct gianfar_mdio_data mpc83xx_mdio_pdata = { | ||
31 | .paddr = 0x24520, | ||
32 | }; | ||
33 | |||
30 | static struct gianfar_platform_data mpc83xx_tsec1_pdata = { | 34 | static struct gianfar_platform_data mpc83xx_tsec1_pdata = { |
31 | .device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT | | 35 | .device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT | |
32 | FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON | | 36 | FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON | |
33 | FSL_GIANFAR_DEV_HAS_MULTI_INTR, | 37 | FSL_GIANFAR_DEV_HAS_MULTI_INTR, |
34 | .phy_reg_addr = 0x24000, | ||
35 | }; | 38 | }; |
36 | 39 | ||
37 | static struct gianfar_platform_data mpc83xx_tsec2_pdata = { | 40 | static struct gianfar_platform_data mpc83xx_tsec2_pdata = { |
38 | .device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT | | 41 | .device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT | |
39 | FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON | | 42 | FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON | |
40 | FSL_GIANFAR_DEV_HAS_MULTI_INTR, | 43 | FSL_GIANFAR_DEV_HAS_MULTI_INTR, |
41 | .phy_reg_addr = 0x24000, | ||
42 | }; | 44 | }; |
43 | 45 | ||
44 | static struct fsl_i2c_platform_data mpc83xx_fsl_i2c1_pdata = { | 46 | static struct fsl_i2c_platform_data mpc83xx_fsl_i2c1_pdata = { |
@@ -220,6 +222,12 @@ struct platform_device ppc_sys_platform_devices[] = { | |||
220 | }, | 222 | }, |
221 | }, | 223 | }, |
222 | }, | 224 | }, |
225 | [MPC83xx_MDIO] = { | ||
226 | .name = "fsl-gianfar_mdio", | ||
227 | .id = 0, | ||
228 | .dev.platform_data = &mpc83xx_mdio_pdata, | ||
229 | .num_resources = 0, | ||
230 | }, | ||
223 | }; | 231 | }; |
224 | 232 | ||
225 | static int __init mach_mpc83xx_fixup(struct platform_device *pdev) | 233 | static int __init mach_mpc83xx_fixup(struct platform_device *pdev) |