aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Lapin <slapin@ossfans.org>2008-08-12 08:35:34 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2008-09-18 18:11:55 -0400
commit53d4351f5868c7d3faa9507608c324ff7d7c186c (patch)
tree32fd9246ed681012c0c0c0d68f4a04f3411e6426
parent9c784f958d01097e3fae24ad75ab3a80ed1e556b (diff)
[ARM] 5219/2: MACB ethernet support for AFEB9260
MACB ethernet support for AFEB9260 Depends on 5210/2 Acked-by: Andrew Victor <linux@maxim.org.za> Signed-off-by: Sergey Lapin <slapin@ossfans.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/configs/afeb9260_defconfig2
-rw-r--r--arch/arm/mach-at91/board-afeb-9260v1.c16
2 files changed, 17 insertions, 1 deletions
diff --git a/arch/arm/configs/afeb9260_defconfig b/arch/arm/configs/afeb9260_defconfig
index ce84033e619a..ce909586a34f 100644
--- a/arch/arm/configs/afeb9260_defconfig
+++ b/arch/arm/configs/afeb9260_defconfig
@@ -581,7 +581,7 @@ CONFIG_PHYLIB=y
581# CONFIG_MDIO_BITBANG is not set 581# CONFIG_MDIO_BITBANG is not set
582CONFIG_NET_ETHERNET=y 582CONFIG_NET_ETHERNET=y
583CONFIG_MII=y 583CONFIG_MII=y
584# CONFIG_MACB is not set 584CONFIG_MACB=y
585# CONFIG_AX88796 is not set 585# CONFIG_AX88796 is not set
586# CONFIG_SMC91X is not set 586# CONFIG_SMC91X is not set
587# CONFIG_DM9000 is not set 587# CONFIG_DM9000 is not set
diff --git a/arch/arm/mach-at91/board-afeb-9260v1.c b/arch/arm/mach-at91/board-afeb-9260v1.c
index 8778b8e08549..9c040c78889a 100644
--- a/arch/arm/mach-at91/board-afeb-9260v1.c
+++ b/arch/arm/mach-at91/board-afeb-9260v1.c
@@ -106,6 +106,14 @@ static struct spi_board_info afeb9260_spi_devices[] = {
106}; 106};
107 107
108 108
109/*
110 * MACB Ethernet device
111 */
112static struct at91_eth_data __initdata afeb9260_macb_data = {
113 .phy_irq_pin = AT91_PIN_PA9,
114 .is_rmii = 0,
115};
116
109 117
110/* 118/*
111 * NAND flash 119 * NAND flash
@@ -174,6 +182,14 @@ static void __init afeb9260_board_init(void)
174 ARRAY_SIZE(afeb9260_spi_devices)); 182 ARRAY_SIZE(afeb9260_spi_devices));
175 /* NAND */ 183 /* NAND */
176 at91_add_device_nand(&afeb9260_nand_data); 184 at91_add_device_nand(&afeb9260_nand_data);
185 /* Ethernet */
186 at91_add_device_eth(&afeb9260_macb_data);
187
188 /* Standard function's pin assignments are not
189 * appropriate for us and generic code provide
190 * no API to configure these pins any other way */
191 at91_set_B_periph(AT91_PIN_PA10, 0); /* ETX2 */
192 at91_set_B_periph(AT91_PIN_PA11, 0); /* ETX3 */
177 /* MMC */ 193 /* MMC */
178 at91_add_device_mmc(0, &afeb9260_mmc_data); 194 at91_add_device_mmc(0, &afeb9260_mmc_data);
179 /* I2C */ 195 /* I2C */