diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-06-16 15:29:51 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-10-22 03:48:52 -0400 |
commit | c5af5451fcf97f38f0c79cbb9f929af2779f234d (patch) | |
tree | c24e4a7aedea0c5ec5041fd1f697976d41c6d667 /arch/blackfin/mach-bf518/boards/ezbrd.c | |
parent | 8effc4a68bfc341764a2e3f3006c6dc8e67e9a67 (diff) |
Blackfin: boards: fix num_chipselect values for on-chip SPI buses
The num_chipselect field for on-chip Blackfin SPI buses is supposed to
be 1 larger than the number of actual CSs available. This is because
the hardware starts counting at 1 and not 0. There is a field for "CS0",
but it is marked as "reserved" everywhere.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-bf518/boards/ezbrd.c')
-rw-r--r-- | arch/blackfin/mach-bf518/boards/ezbrd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/mach-bf518/boards/ezbrd.c b/arch/blackfin/mach-bf518/boards/ezbrd.c index 44d6d5299022..46cb5d410b62 100644 --- a/arch/blackfin/mach-bf518/boards/ezbrd.c +++ b/arch/blackfin/mach-bf518/boards/ezbrd.c | |||
@@ -312,7 +312,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
312 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) | 312 | #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE) |
313 | /* SPI (0) */ | 313 | /* SPI (0) */ |
314 | static struct bfin5xx_spi_master bfin_spi0_info = { | 314 | static struct bfin5xx_spi_master bfin_spi0_info = { |
315 | .num_chipselect = 5, | 315 | .num_chipselect = 6, |
316 | .enable_dma = 1, /* master has the ability to do dma transfer */ | 316 | .enable_dma = 1, /* master has the ability to do dma transfer */ |
317 | .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0}, | 317 | .pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0}, |
318 | }; | 318 | }; |
@@ -347,7 +347,7 @@ static struct platform_device bfin_spi0_device = { | |||
347 | 347 | ||
348 | /* SPI (1) */ | 348 | /* SPI (1) */ |
349 | static struct bfin5xx_spi_master bfin_spi1_info = { | 349 | static struct bfin5xx_spi_master bfin_spi1_info = { |
350 | .num_chipselect = 5, | 350 | .num_chipselect = 6, |
351 | .enable_dma = 1, /* master has the ability to do dma transfer */ | 351 | .enable_dma = 1, /* master has the ability to do dma transfer */ |
352 | .pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0}, | 352 | .pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0}, |
353 | }; | 353 | }; |