Skip to content

Commit

Permalink
m68knommu: some boards use fixed phy for FEC ethernet
Browse files Browse the repository at this point in the history
Define a fixed phy setup for use on boarts that directly connect the
FEC ethernet controller to a switch.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Greg Ungerer committed Oct 22, 2010
1 parent a405f83 commit 41a2159
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions arch/m68knommu/platform/5272/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
#include <linux/param.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/phy.h>
#include <linux/phy_fixed.h>
#include <asm/machdep.h>
#include <asm/coldfire.h>
#include <asm/mcfsim.h>
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 41a2159

Please sign in to comment.