From 602a61c4cd010681924c2670addf65a9c59d9d33 Mon Sep 17 00:00:00 2001 From: Greg Ungerer Date: Tue, 12 Oct 2010 12:24:49 +1000 Subject: [PATCH] --- yaml --- r: 216049 b: refs/heads/master c: 41a2159b5b662e74a85b4824e3517f2397cc5867 h: refs/heads/master i: 216047: 86fdfb94e1cd905f321d98a5d6a2a21252cf4b5c v: v3 --- [refs] | 2 +- trunk/arch/m68knommu/platform/5272/config.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index e2e08f1c9e7b..0c7873b72996 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a405f833f4cd6490caaf381efe58a5628b545733 +refs/heads/master: 41a2159b5b662e74a85b4824e3517f2397cc5867 diff --git a/trunk/arch/m68knommu/platform/5272/config.c b/trunk/arch/m68knommu/platform/5272/config.c index 59278c0887d0..65bb582734e1 100644 --- a/trunk/arch/m68knommu/platform/5272/config.c +++ b/trunk/arch/m68knommu/platform/5272/config.c @@ -13,6 +13,8 @@ #include #include #include +#include +#include #include #include #include @@ -148,9 +150,23 @@ void __init config_BSP(char *commandp, int size) /***************************************************************************/ +/* + * Some 5272 based boards have the FEC ethernet diectly connected to + * an ethernet switch. In this case we need to use the fixed phy type, + * and we need to declare it early in boot. + */ +static struct fixed_phy_status nettel_fixed_phy_status __initdata = { + .link = 1, + .speed = 100, + .duplex = 0, +}; + +/***************************************************************************/ + static int __init init_BSP(void) { m5272_uarts_init(); + fixed_phy_add(PHY_POLL, 0, &nettel_fixed_phy_status); platform_add_devices(m5272_devices, ARRAY_SIZE(m5272_devices)); return 0; }