Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216049
b: refs/heads/master
c: 41a2159
h: refs/heads/master
i:
  216047: 86fdfb9
v: v3
  • Loading branch information
Greg Ungerer committed Oct 22, 2010
1 parent 96af47b commit 602a61c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a405f833f4cd6490caaf381efe58a5628b545733
refs/heads/master: 41a2159b5b662e74a85b4824e3517f2397cc5867
16 changes: 16 additions & 0 deletions trunk/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 602a61c

Please sign in to comment.