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-bf538 | |
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-bf538')
-rw-r--r-- | arch/blackfin/mach-bf538/boards/ezkit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/mach-bf538/boards/ezkit.c b/arch/blackfin/mach-bf538/boards/ezkit.c index 1a1f65855b03..c6fb0a52f849 100644 --- a/arch/blackfin/mach-bf538/boards/ezkit.c +++ b/arch/blackfin/mach-bf538/boards/ezkit.c | |||
@@ -695,7 +695,7 @@ static struct platform_device bf538_spi_master0 = { | |||
695 | }; | 695 | }; |
696 | 696 | ||
697 | static struct bfin5xx_spi_master bf538_spi_master_info1 = { | 697 | static struct bfin5xx_spi_master bf538_spi_master_info1 = { |
698 | .num_chipselect = 8, | 698 | .num_chipselect = 2, |
699 | .enable_dma = 1, /* master has the ability to do dma transfer */ | 699 | .enable_dma = 1, /* master has the ability to do dma transfer */ |
700 | .pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0}, | 700 | .pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0}, |
701 | }; | 701 | }; |
@@ -711,7 +711,7 @@ static struct platform_device bf538_spi_master1 = { | |||
711 | }; | 711 | }; |
712 | 712 | ||
713 | static struct bfin5xx_spi_master bf538_spi_master_info2 = { | 713 | static struct bfin5xx_spi_master bf538_spi_master_info2 = { |
714 | .num_chipselect = 8, | 714 | .num_chipselect = 2, |
715 | .enable_dma = 1, /* master has the ability to do dma transfer */ | 715 | .enable_dma = 1, /* master has the ability to do dma transfer */ |
716 | .pin_req = {P_SPI2_SCK, P_SPI2_MISO, P_SPI2_MOSI, 0}, | 716 | .pin_req = {P_SPI2_SCK, P_SPI2_MISO, P_SPI2_MOSI, 0}, |
717 | }; | 717 | }; |