]> err.no Git - linux-2.6/blobdiff - arch/blackfin/mach-bf561/boards/cm_bf561.c
Blackfin arch: move hard coded pin_req to board file
[linux-2.6] / arch / blackfin / mach-bf561 / boards / cm_bf561.c
index cd827a1b6ba139e37604fa8e148836911dc8d7a2..9e46b52a3194cfe3cb29c82610a0ab8b18399cf2 100644 (file)
 #include <linux/irq.h>
 #include <asm/dma.h>
 #include <asm/bfin5xx_spi.h>
+#include <asm/portmux.h>
 
 /*
  * Name the Board for the /proc/cpuinfo
  */
-char *bfin_board_name = "Bluetechnix CM BF561";
+const char bfin_board_name[] = "Bluetechnix CM BF561";
 
 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
 /* all SPI peripherals info goes here */
@@ -182,6 +183,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 = {