Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149204
b: refs/heads/master
c: 9ffbe87
h: refs/heads/master
v: v3
  • Loading branch information
Imre Kaloz authored and Nicolas Pitre committed Jun 8, 2009
1 parent e455e02 commit 47f75b0
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: 3b937a7dbddbedd9457b33fcc8fa369c0c229c6e
refs/heads/master: 9ffbe87370403d6d5c4010f5b0f692f9d0715776
16 changes: 16 additions & 0 deletions trunk/arch/arm/mach-orion5x/wnr854t-setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/mtd/physmap.h>
#include <linux/mv643xx_eth.h>
#include <linux/ethtool.h>
#include <net/dsa.h>
#include <asm/mach-types.h>
#include <asm/gpio.h>
#include <asm/mach/arch.h>
Expand Down Expand Up @@ -97,6 +98,20 @@ static struct mv643xx_eth_platform_data wnr854t_eth_data = {
.duplex = DUPLEX_FULL,
};

static struct dsa_chip_data wnr854t_switch_chip_data = {
.port_names[0] = "lan3",
.port_names[1] = "lan4",
.port_names[2] = "wan",
.port_names[3] = "cpu",
.port_names[5] = "lan1",
.port_names[7] = "lan2",
};

static struct dsa_platform_data wnr854t_switch_plat_data = {
.nr_chips = 1,
.chip = &wnr854t_switch_chip_data,
};

static void __init wnr854t_init(void)
{
/*
Expand All @@ -110,6 +125,7 @@ static void __init wnr854t_init(void)
* Configure peripherals.
*/
orion5x_eth_init(&wnr854t_eth_data);
orion5x_eth_switch_init(&wnr854t_switch_plat_data, NO_IRQ);
orion5x_uart0_init();

orion5x_setup_dev_boot_win(WNR854T_NOR_BOOT_BASE,
Expand Down

0 comments on commit 47f75b0

Please sign in to comment.