[PATCH] ppc32: Update MPC834x platform to work with new phylib
MPC834x uses the gianfar network driver which now uses the new phylib. We need to update the platform code to create a gianfar platform MDIO bus and pass the right intializations to the gianfar driver to make things work again. Signed-off-by: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
143dcec2f7
commit
78b331213e
@@ -27,18 +27,20 @@
|
||||
* what IMMRBAR is, will get fixed up by mach_mpc83xx_fixup
|
||||
*/
|
||||
|
||||
struct gianfar_mdio_data mpc83xx_mdio_pdata = {
|
||||
.paddr = 0x24520,
|
||||
};
|
||||
|
||||
static struct gianfar_platform_data mpc83xx_tsec1_pdata = {
|
||||
.device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT |
|
||||
FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON |
|
||||
FSL_GIANFAR_DEV_HAS_MULTI_INTR,
|
||||
.phy_reg_addr = 0x24000,
|
||||
};
|
||||
|
||||
static struct gianfar_platform_data mpc83xx_tsec2_pdata = {
|
||||
.device_flags = FSL_GIANFAR_DEV_HAS_GIGABIT |
|
||||
FSL_GIANFAR_DEV_HAS_COALESCE | FSL_GIANFAR_DEV_HAS_RMON |
|
||||
FSL_GIANFAR_DEV_HAS_MULTI_INTR,
|
||||
.phy_reg_addr = 0x24000,
|
||||
};
|
||||
|
||||
static struct fsl_i2c_platform_data mpc83xx_fsl_i2c1_pdata = {
|
||||
@@ -220,6 +222,12 @@ struct platform_device ppc_sys_platform_devices[] = {
|
||||
},
|
||||
},
|
||||
},
|
||||
[MPC83xx_MDIO] = {
|
||||
.name = "fsl-gianfar_mdio",
|
||||
.id = 0,
|
||||
.dev.platform_data = &mpc83xx_mdio_pdata,
|
||||
.num_resources = 0,
|
||||
},
|
||||
};
|
||||
|
||||
static int __init mach_mpc83xx_fixup(struct platform_device *pdev)
|
||||
|
Reference in New Issue
Block a user