Title: [5782] trunk/arch/blackfin/mach-bf537/boards/stamp.c: [#4689] Add BF537-STAMP platform support for ENC28J60 SPI Ethernet MAC
- Revision
- 5782
- Author
- hennerich
- Date
- 2008-12-02 03:41:23 -0600 (Tue, 02 Dec 2008)
Log Message
[#4689] Add BF537-STAMP platform support for ENC28J60 SPI Ethernet MAC
This device shouldn't be considered as an alternative to a Memory Mapped
or built-in Ethernet MAC.
Throughput is slow (~460kByte/s) while generating a very high System
load (~60%).
Modified Paths
Diff
Modified: trunk/arch/blackfin/mach-bf537/boards/stamp.c (5781 => 5782)
--- trunk/arch/blackfin/mach-bf537/boards/stamp.c 2008-12-02 08:25:16 UTC (rev 5781)
+++ trunk/arch/blackfin/mach-bf537/boards/stamp.c 2008-12-02 09:41:23 UTC (rev 5782)
@@ -623,6 +623,14 @@
};
#endif
+#if defined(CONFIG_ENC28J60) || defined(CONFIG_ENC28J60_MODULE)
+static struct bfin5xx_spi_chip enc28j60_spi_chip_info = {
+ .enable_dma = 0,
+ .bits_per_word = 8,
+ .cs_gpio = GPIO_PF10,
+};
+#endif
+
#if defined(CONFIG_MTD_DATAFLASH) \
|| defined(CONFIG_MTD_DATAFLASH_MODULE)
@@ -784,6 +792,17 @@
.mode = SPI_CPHA | SPI_CPOL,
},
#endif
+#if defined(CONFIG_ENC28J60) || defined(CONFIG_ENC28J60_MODULE)
+ {
+ .modalias = "enc28j60",
+ .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */
+ .irq = IRQ_PF6,
+ .bus_num = 0,
+ .chip_select = 0, /* GPIO controlled SSEL */
+ .controller_data = &enc28j60_spi_chip_info,
+ .mode = SPI_MODE_0,
+ },
+#endif
};
#if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits