diff options
| author | Rod Whitby <rod@whitby.id.au> | 2008-01-31 06:44:03 -0500 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-02-04 08:15:25 -0500 |
| commit | 78225913709915d02a0a8025a1efcb767c6bdfe0 (patch) | |
| tree | f631d7f69ff7e666304d22e82daa6894e00e0a85 | |
| parent | 80bbdd27e4016ad39d33160ea7f39ac05bfe1d7c (diff) | |
[ARM] 4715/2: Ethernet support for IXDP425 boards
Adds IXDP425 platform support for two built-in 10/100 Ethernet ports.
This patch will do nothing until the actual Ethernet driver is
also included.
Signed-off-by: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
| -rw-r--r-- | arch/arm/mach-ixp4xx/ixdp425-setup.c | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/arch/arm/mach-ixp4xx/ixdp425-setup.c b/arch/arm/mach-ixp4xx/ixdp425-setup.c index e89070da28bf..44584afb34a3 100644 --- a/arch/arm/mach-ixp4xx/ixdp425-setup.c +++ b/arch/arm/mach-ixp4xx/ixdp425-setup.c | |||
| @@ -177,6 +177,31 @@ static struct platform_device ixdp425_uart = { | |||
| 177 | .resource = ixdp425_uart_resources | 177 | .resource = ixdp425_uart_resources |
| 178 | }; | 178 | }; |
| 179 | 179 | ||
| 180 | /* Built-in 10/100 Ethernet MAC interfaces */ | ||
| 181 | static struct eth_plat_info ixdp425_plat_eth[] = { | ||
| 182 | { | ||
| 183 | .phy = 0, | ||
| 184 | .rxq = 3, | ||
| 185 | .txreadyq = 20, | ||
| 186 | }, { | ||
| 187 | .phy = 1, | ||
| 188 | .rxq = 4, | ||
| 189 | .txreadyq = 21, | ||
| 190 | } | ||
| 191 | }; | ||
| 192 | |||
| 193 | static struct platform_device ixdp425_eth[] = { | ||
| 194 | { | ||
| 195 | .name = "ixp4xx_eth", | ||
| 196 | .id = IXP4XX_ETH_NPEB, | ||
| 197 | .dev.platform_data = ixdp425_plat_eth, | ||
| 198 | }, { | ||
| 199 | .name = "ixp4xx_eth", | ||
| 200 | .id = IXP4XX_ETH_NPEC, | ||
| 201 | .dev.platform_data = ixdp425_plat_eth + 1, | ||
| 202 | } | ||
| 203 | }; | ||
| 204 | |||
| 180 | static struct platform_device *ixdp425_devices[] __initdata = { | 205 | static struct platform_device *ixdp425_devices[] __initdata = { |
| 181 | &ixdp425_i2c_gpio, | 206 | &ixdp425_i2c_gpio, |
| 182 | &ixdp425_flash, | 207 | &ixdp425_flash, |
| @@ -184,7 +209,9 @@ static struct platform_device *ixdp425_devices[] __initdata = { | |||
| 184 | defined(CONFIG_MTD_NAND_PLATFORM_MODULE) | 209 | defined(CONFIG_MTD_NAND_PLATFORM_MODULE) |
| 185 | &ixdp425_flash_nand, | 210 | &ixdp425_flash_nand, |
| 186 | #endif | 211 | #endif |
| 187 | &ixdp425_uart | 212 | &ixdp425_uart, |
| 213 | &ixdp425_eth[0], | ||
| 214 | &ixdp425_eth[1], | ||
| 188 | }; | 215 | }; |
| 189 | 216 | ||
| 190 | static void __init ixdp425_init(void) | 217 | static void __init ixdp425_init(void) |
