Title: [7845] trunk/arch/blackfin: bug [#5689], don't set select num as 0 while using gpio cs
Revision
7845
Author
bhsong
Date
2009-11-18 05:22:49 -0500 (Wed, 18 Nov 2009)

Log Message

bug [#5689], don't set select num as 0 while using gpio cs

update according to Mike's comment

Modified Paths

Diff

Modified: trunk/arch/blackfin/include/asm/bfin5xx_spi.h (7844 => 7845)


--- trunk/arch/blackfin/include/asm/bfin5xx_spi.h	2009-11-18 09:52:03 UTC (rev 7844)
+++ trunk/arch/blackfin/include/asm/bfin5xx_spi.h	2009-11-18 10:22:49 UTC (rev 7845)
@@ -110,7 +110,6 @@
 #define CMD_SPI_SET_WRITECONTINUOUS     26
 
 #define MAX_CTRL_CS          8  /* cs in spi controller */
-#define MAX_GPIO_CS          MAX_BLACKFIN_GPIOS  /* gpio can be cs */
 
 /* device.platform_data for SSP controller devices */
 struct bfin5xx_spi_master {

Modified: trunk/arch/blackfin/mach-bf537/boards/stamp.c (7844 => 7845)


--- trunk/arch/blackfin/mach-bf537/boards/stamp.c	2009-11-18 09:52:03 UTC (rev 7844)
+++ trunk/arch/blackfin/mach-bf537/boards/stamp.c	2009-11-18 10:22:49 UTC (rev 7845)
@@ -1019,7 +1019,7 @@
 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
 /* SPI controller data */
 static struct bfin5xx_spi_master bfin_spi0_info = {
-	.num_chipselect = MAX_CTRL_CS + MAX_GPIO_CS,
+	.num_chipselect = MAX_CTRL_CS + MAX_BLACKFIN_GPIOS,
 	.enable_dma = 1,  /* master has the ability to do dma transfer */
 	.pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
 };
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to