Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245292
b: refs/heads/master
c: 504d472
h: refs/heads/master
v: v3
  • Loading branch information
John Crispin authored and Ralf Baechle committed May 19, 2011
1 parent 1cff054 commit b423417
Show file tree
Hide file tree
Showing 8 changed files with 847 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dfec1a827d2bdc35d0990afd100f79a685ec0985
refs/heads/master: 504d4721ee8e432af4b5f196a08af38bc4dac5fe
7 changes: 7 additions & 0 deletions trunk/arch/mips/include/asm/mach-lantiq/lantiq_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#define _LANTIQ_PLATFORM_H__

#include <linux/mtd/partitions.h>
#include <linux/socket.h>

/* struct used to pass info to the pci core */
enum {
Expand Down Expand Up @@ -43,4 +44,10 @@ struct ltq_pci_data {
int irq[16];
};

/* struct used to pass info to network drivers */
struct ltq_eth_data {
struct sockaddr mac;
int mii_mode;
};

#endif
4 changes: 2 additions & 2 deletions trunk/arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
#define PMU_SWITCH 0x10000000

/* ETOP - ethernet */
#define LTQ_PPE32_BASE_ADDR 0xBE180000
#define LTQ_PPE32_SIZE 0x40000
#define LTQ_ETOP_BASE_ADDR 0x1E180000
#define LTQ_ETOP_SIZE 0x40000

/* DMA */
#define LTQ_DMA_BASE_ADDR 0x1E104100
Expand Down
23 changes: 23 additions & 0 deletions trunk/arch/mips/lantiq/xway/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,26 @@ void __init ltq_register_ase_asc(void)
platform_device_register_simple("ltq_asc", 0,
ltq_ase_asc_resources, ARRAY_SIZE(ltq_ase_asc_resources));
}

/* ethernet */
static struct resource ltq_etop_resources = {
.name = "etop",
.start = LTQ_ETOP_BASE_ADDR,
.end = LTQ_ETOP_BASE_ADDR + LTQ_ETOP_SIZE - 1,
.flags = IORESOURCE_MEM,
};

static struct platform_device ltq_etop = {
.name = "ltq_etop",
.resource = &ltq_etop_resources,
.num_resources = 1,
};

void __init
ltq_register_etop(struct ltq_eth_data *eth)
{
if (eth) {
ltq_etop.dev.platform_data = eth;
platform_device_register(&ltq_etop);
}
}
1 change: 1 addition & 0 deletions trunk/arch/mips/lantiq/xway/devices.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
extern void ltq_register_gpio(void);
extern void ltq_register_gpio_stp(void);
extern void ltq_register_ase_asc(void);
extern void ltq_register_etop(struct ltq_eth_data *eth);

#endif
7 changes: 7 additions & 0 deletions trunk/drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2017,6 +2017,13 @@ config FTMAC100
from Faraday. It is used on Faraday A320, Andes AG101 and some
other ARM/NDS32 SoC's.

config LANTIQ_ETOP
tristate "Lantiq SoC ETOP driver"
depends on SOC_TYPE_XWAY
help
Support for the MII0 inside the Lantiq SoC


source "drivers/net/fs_enet/Kconfig"

source "drivers/net/octeon/Kconfig"
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ obj-$(CONFIG_MLX4_CORE) += mlx4/
obj-$(CONFIG_ENC28J60) += enc28j60.o
obj-$(CONFIG_ETHOC) += ethoc.o
obj-$(CONFIG_GRETH) += greth.o
obj-$(CONFIG_LANTIQ_ETOP) += lantiq_etop.o

obj-$(CONFIG_XTENSA_XT2000_SONIC) += xtsonic.o

Expand Down
Loading

0 comments on commit b423417

Please sign in to comment.