]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] 5219/2: MACB ethernet support for AFEB9260
authorSergey Lapin <slapin@ossfans.org>
Tue, 12 Aug 2008 12:35:34 +0000 (13:35 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 18 Sep 2008 22:11:55 +0000 (23:11 +0100)
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>
arch/arm/configs/afeb9260_defconfig
arch/arm/mach-at91/board-afeb-9260v1.c

index ce84033e619a20f1dcdd1b5caba29743fffacaf3..ce909586a34f4863a3dbc78c858ba13a66de9a01 100644 (file)
@@ -581,7 +581,7 @@ CONFIG_PHYLIB=y
 # CONFIG_MDIO_BITBANG is not set
 CONFIG_NET_ETHERNET=y
 CONFIG_MII=y
-# CONFIG_MACB is not set
+CONFIG_MACB=y
 # CONFIG_AX88796 is not set
 # CONFIG_SMC91X is not set
 # CONFIG_DM9000 is not set
index 8778b8e08549e1244e42b7a3e5e547e3c87a478e..9c040c78889a7597d4660b0e7e34eae9d657bdec 100644 (file)
@@ -106,6 +106,14 @@ static struct spi_board_info afeb9260_spi_devices[] = {
 };
 
 
+/*
+ * MACB Ethernet device
+ */
+static struct at91_eth_data __initdata afeb9260_macb_data = {
+       .phy_irq_pin    = AT91_PIN_PA9,
+       .is_rmii        = 0,
+};
+
 
 /*
  * NAND flash
@@ -174,6 +182,14 @@ static void __init afeb9260_board_init(void)
                        ARRAY_SIZE(afeb9260_spi_devices));
        /* NAND */
        at91_add_device_nand(&afeb9260_nand_data);
+       /* Ethernet */
+       at91_add_device_eth(&afeb9260_macb_data);
+
+       /* Standard function's pin assignments are not
+        * appropriate for us and generic code provide
+        * no API to configure these pins any other way */
+       at91_set_B_periph(AT91_PIN_PA10, 0);    /* ETX2 */
+       at91_set_B_periph(AT91_PIN_PA11, 0);    /* ETX3 */
        /* MMC */
        at91_add_device_mmc(0, &afeb9260_mmc_data);
        /* I2C */