diff options
author | Bryan Wu <bryan.wu@analog.com> | 2007-11-12 23:24:42 +0800 |
---|---|---|
committer | Bryan Wu <bryan.wu@analog.com> | 2007-11-12 23:24:42 +0800 |
commit | 5d448dd50712ae42f8176b5bb8db4703bef6f0f5 (patch) | |
tree | bc0912451dacdb40393516362171da19317800aa /arch/blackfin/mach-bf537/boards/pnav10.c | |
parent | 4a589e1ef67fdb2d5fa783117da8dc7cba576af4 (diff) | |
download | blackbird-op-linux-5d448dd50712ae42f8176b5bb8db4703bef6f0f5.tar.gz blackbird-op-linux-5d448dd50712ae42f8176b5bb8db4703bef6f0f5.zip |
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-bf537/boards/pnav10.c')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/pnav10.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/blackfin/mach-bf537/boards/pnav10.c b/arch/blackfin/mach-bf537/boards/pnav10.c index 87b808926789..3c72fc34f142 100644 --- a/arch/blackfin/mach-bf537/boards/pnav10.c +++ b/arch/blackfin/mach-bf537/boards/pnav10.c @@ -40,6 +40,7 @@ #include <linux/irq.h> #include <asm/dma.h> #include <asm/bfin5xx_spi.h> +#include <asm/portmux.h> #include <linux/usb/sl811.h> #include <linux/spi/ad7877.h> @@ -413,6 +414,7 @@ static struct resource bfin_spi0_resource[] = { static struct bfin5xx_spi_master bfin_spi0_info = { .num_chipselect = 8, .enable_dma = 1, /* master has the ability to do dma transfer */ + .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0}, }; static struct platform_device bfin_spi0_device = { |