diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2009-01-07 10:14:38 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-01-07 10:14:38 -0500 |
commit | 85a192e92dcb67552ee3fcdf2e36c11688b61955 (patch) | |
tree | b03e2f6b4cf899c0cbdcac9ad38efc7f9bc052e5 /arch/blackfin/mach-bf537 | |
parent | 8f362f8d7b743adb7279c5371dfccd8edcb224fc (diff) |
Blackfin arch: 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%).
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin/mach-bf537')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index e6e722d7767e..c198f9085ad5 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -623,6 +623,14 @@ static struct bfin5xx_spi_chip lq035q1_spi_chip_info = { | |||
623 | }; | 623 | }; |
624 | #endif | 624 | #endif |
625 | 625 | ||
626 | #if defined(CONFIG_ENC28J60) || defined(CONFIG_ENC28J60_MODULE) | ||
627 | static struct bfin5xx_spi_chip enc28j60_spi_chip_info = { | ||
628 | .enable_dma = 1, | ||
629 | .bits_per_word = 8, | ||
630 | .cs_gpio = GPIO_PF10, | ||
631 | }; | ||
632 | #endif | ||
633 | |||
626 | #if defined(CONFIG_MTD_DATAFLASH) \ | 634 | #if defined(CONFIG_MTD_DATAFLASH) \ |
627 | || defined(CONFIG_MTD_DATAFLASH_MODULE) | 635 | || defined(CONFIG_MTD_DATAFLASH_MODULE) |
628 | 636 | ||
@@ -784,6 +792,17 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
784 | .mode = SPI_CPHA | SPI_CPOL, | 792 | .mode = SPI_CPHA | SPI_CPOL, |
785 | }, | 793 | }, |
786 | #endif | 794 | #endif |
795 | #if defined(CONFIG_ENC28J60) || defined(CONFIG_ENC28J60_MODULE) | ||
796 | { | ||
797 | .modalias = "enc28j60", | ||
798 | .max_speed_hz = 20000000, /* max spi clock (SCK) speed in HZ */ | ||
799 | .irq = IRQ_PF6, | ||
800 | .bus_num = 0, | ||
801 | .chip_select = 0, /* GPIO controlled SSEL */ | ||
802 | .controller_data = &enc28j60_spi_chip_info, | ||
803 | .mode = SPI_MODE_0, | ||
804 | }, | ||
805 | #endif | ||
787 | }; | 806 | }; |
788 | 807 | ||
789 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 808 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |