diff options
author | Roland Stigge <stigge@antcom.de> | 2012-03-12 22:27:28 +0100 |
---|---|---|
committer | Roland Stigge <stigge@antcom.de> | 2012-03-13 21:23:07 +0100 |
commit | c20b909be9ba27173294a52d08cab293ec030a2c (patch) | |
tree | bc3ec77875ddd37dc6e80fffd83c4e251ad756dd /arch/arm/mach-lpc32xx/common.c | |
parent | 48a5dedfa78899dad50b3b4ae30f07e27e6591ab (diff) | |
download | op-kernel-dev-c20b909be9ba27173294a52d08cab293ec030a2c.zip op-kernel-dev-c20b909be9ba27173294a52d08cab293ec030a2c.tar.gz |
ARM: LPC32xx: Ethernet support
This patch adds ethernet support to the LPC32xx ARM architecture. The actual
driver in drivers/net is contained in a separate patch.
Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-lpc32xx/common.c')
-rw-r--r-- | arch/arm/mach-lpc32xx/common.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-lpc32xx/common.c b/arch/arm/mach-lpc32xx/common.c index 11c9008..bbbf063 100644 --- a/arch/arm/mach-lpc32xx/common.c +++ b/arch/arm/mach-lpc32xx/common.c @@ -186,6 +186,27 @@ struct platform_device lpc32xx_ohci_device = { }; /* + * Network Support + */ +static struct resource net_resources[] = { + [0] = DEFINE_RES_MEM(LPC32XX_ETHERNET_BASE, SZ_4K), + [1] = DEFINE_RES_MEM(LPC32XX_IRAM_BASE, SZ_128K), + [2] = DEFINE_RES_IRQ(IRQ_LPC32XX_ETHERNET), +}; + +static u64 lpc32xx_mac_dma_mask = 0xffffffffUL; +struct platform_device lpc32xx_net_device = { + .name = "lpc-eth", + .id = 0, + .dev = { + .dma_mask = &lpc32xx_mac_dma_mask, + .coherent_dma_mask = 0xffffffffUL, + }, + .num_resources = ARRAY_SIZE(net_resources), + .resource = net_resources, +}; + +/* * Returns the unique ID for the device */ void lpc32xx_get_uid(u32 devid[4]) |