aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/mach-bf527
diff options
context:
space:
mode:
authorBryan Wu <bryan.wu@analog.com>2007-11-12 10:24:42 -0500
committerBryan Wu <bryan.wu@analog.com>2007-11-12 10:24:42 -0500
commit5d448dd50712ae42f8176b5bb8db4703bef6f0f5 (patch)
treebc0912451dacdb40393516362171da19317800aa /arch/blackfin/mach-bf527
parent4a589e1ef67fdb2d5fa783117da8dc7cba576af4 (diff)
Blackfin arch: move hard coded pin_req to board file
Remove some sort of bloaty code, try to get these pin_req arrays built at compile-time - move this static things to the blackfin board file - add pin_req array to struct bfin5xx_spi_master - tested on BF537/BF548 with SPI flash Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Diffstat (limited to 'arch/blackfin/mach-bf527')
-rw-r--r--arch/blackfin/mach-bf527/boards/ezkit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c
index bf1bedcc8868..88b41b71bffc 100644
--- a/arch/blackfin/mach-bf527/boards/ezkit.c
+++ b/arch/blackfin/mach-bf527/boards/ezkit.c
@@ -46,6 +46,7 @@
46#include <asm/bfin5xx_spi.h> 46#include <asm/bfin5xx_spi.h>
47#include <asm/reboot.h> 47#include <asm/reboot.h>
48#include <asm/nand.h> 48#include <asm/nand.h>
49#include <asm/portmux.h>
49#include <linux/spi/ad7877.h> 50#include <linux/spi/ad7877.h>
50 51
51/* 52/*
@@ -562,6 +563,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
562static struct bfin5xx_spi_master bfin_spi0_info = { 563static struct bfin5xx_spi_master bfin_spi0_info = {
563 .num_chipselect = 8, 564 .num_chipselect = 8,
564 .enable_dma = 1, /* master has the ability to do dma transfer */ 565 .enable_dma = 1, /* master has the ability to do dma transfer */
566 .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
565}; 567};
566 568
567/* SPI (0) */ 569/* SPI (0) */