Title: [8918] trunk/arch/blackfin: bfin: fix num_chipselect values for SPI buses -- it should be 1 more than the number of CSs since the Blackfin SPI driver counts from 1 and not 0
Revision
8918
Author
vapier
Date
2010-06-16 15:29:51 -0400 (Wed, 16 Jun 2010)

Log Message

bfin: fix num_chipselect values for SPI buses -- it should be 1 more than the number of CSs since the Blackfin SPI driver counts from 1 and not 0

Modified Paths

Diff

Modified: trunk/arch/blackfin/mach-bf518/boards/ezbrd.c (8917 => 8918)


--- trunk/arch/blackfin/mach-bf518/boards/ezbrd.c	2010-06-16 09:12:10 UTC (rev 8917)
+++ trunk/arch/blackfin/mach-bf518/boards/ezbrd.c	2010-06-16 19:29:51 UTC (rev 8918)
@@ -354,7 +354,7 @@
 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
 /* SPI (0) */
 static struct bfin5xx_spi_master bfin_spi0_info = {
-	.num_chipselect = 5,
+	.num_chipselect = 6,
 	.enable_dma = 1,  /* master has the ability to do dma transfer */
 	.pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
 };
@@ -389,7 +389,7 @@
 
 /* SPI (1) */
 static struct bfin5xx_spi_master bfin_spi1_info = {
-	.num_chipselect = 5,
+	.num_chipselect = 6,
 	.enable_dma = 1,  /* master has the ability to do dma transfer */
 	.pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0},
 };

Modified: trunk/arch/blackfin/mach-bf518/boards/tcm-bf518.c (8917 => 8918)


--- trunk/arch/blackfin/mach-bf518/boards/tcm-bf518.c	2010-06-16 09:12:10 UTC (rev 8917)
+++ trunk/arch/blackfin/mach-bf518/boards/tcm-bf518.c	2010-06-16 19:29:51 UTC (rev 8918)
@@ -313,7 +313,7 @@
 
 /* SPI (1) */
 static struct bfin5xx_spi_master bfin_spi1_info = {
-	.num_chipselect = 5,
+	.num_chipselect = 6,
 	.enable_dma = 1,  /* master has the ability to do dma transfer */
 	.pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0},
 };

Modified: trunk/arch/blackfin/mach-bf538/boards/ezkit.c (8917 => 8918)


--- trunk/arch/blackfin/mach-bf538/boards/ezkit.c	2010-06-16 09:12:10 UTC (rev 8917)
+++ trunk/arch/blackfin/mach-bf538/boards/ezkit.c	2010-06-16 19:29:51 UTC (rev 8918)
@@ -695,7 +695,7 @@
 };
 
 static struct bfin5xx_spi_master bf538_spi_master_info1 = {
-	.num_chipselect = 8,
+	.num_chipselect = 2,
 	.enable_dma = 1,  /* master has the ability to do dma transfer */
 	.pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0},
 };
@@ -711,7 +711,7 @@
 };
 
 static struct bfin5xx_spi_master bf538_spi_master_info2 = {
-	.num_chipselect = 8,
+	.num_chipselect = 2,
 	.enable_dma = 1,  /* master has the ability to do dma transfer */
 	.pin_req = {P_SPI2_SCK, P_SPI2_MISO, P_SPI2_MOSI, 0},
 };

Modified: trunk/arch/blackfin/mach-bf548/boards/cm_bf548.c (8917 => 8918)


--- trunk/arch/blackfin/mach-bf548/boards/cm_bf548.c	2010-06-16 09:12:10 UTC (rev 8917)
+++ trunk/arch/blackfin/mach-bf548/boards/cm_bf548.c	2010-06-16 19:29:51 UTC (rev 8918)
@@ -966,7 +966,7 @@
 
 /* SPI controller data */
 static struct bfin5xx_spi_master bf54x_spi_master_info0 = {
-	.num_chipselect = 3,
+	.num_chipselect = 4,
 	.enable_dma = 1,  /* master has the ability to do dma transfer */
 	.pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
 };
@@ -982,7 +982,7 @@
 };
 
 static struct bfin5xx_spi_master bf54x_spi_master_info1 = {
-	.num_chipselect = 3,
+	.num_chipselect = 4,
 	.enable_dma = 1,  /* master has the ability to do dma transfer */
 	.pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0},
 };

Modified: trunk/arch/blackfin/mach-bf548/boards/ezkit.c (8917 => 8918)


--- trunk/arch/blackfin/mach-bf548/boards/ezkit.c	2010-06-16 09:12:10 UTC (rev 8917)
+++ trunk/arch/blackfin/mach-bf548/boards/ezkit.c	2010-06-16 19:29:51 UTC (rev 8918)
@@ -1107,7 +1107,7 @@
 
 /* SPI controller data */
 static struct bfin5xx_spi_master bf54x_spi_master_info0 = {
-	.num_chipselect = 3,
+	.num_chipselect = 4,
 	.enable_dma = 1,  /* master has the ability to do dma transfer */
 	.pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
 };
@@ -1123,7 +1123,7 @@
 };
 
 static struct bfin5xx_spi_master bf54x_spi_master_info1 = {
-	.num_chipselect = 3,
+	.num_chipselect = 4,
 	.enable_dma = 1,  /* master has the ability to do dma transfer */
 	.pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0},
 };
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to