Skip to content

Commit

Permalink
Blackfin: fix BF54x SPI CS resources
Browse files Browse the repository at this point in the history
The BF54x has three slave select signals for SPI0/SPI1, not eight.

Signed-off-by: Yi Li <yi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
  • Loading branch information
Yi Li authored and Mike Frysinger committed Sep 17, 2009
1 parent 774b802 commit 4e4d496
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arch/blackfin/mach-bf548/boards/cm_bf548.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ static struct resource bfin_spi1_resource[] = {

/* SPI controller data */
static struct bfin5xx_spi_master bf54x_spi_master_info0 = {
.num_chipselect = 8,
.num_chipselect = 3,
.enable_dma = 1, /* master has the ability to do dma transfer */
.pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
};
Expand All @@ -658,7 +658,7 @@ static struct platform_device bf54x_spi_master0 = {
};

static struct bfin5xx_spi_master bf54x_spi_master_info1 = {
.num_chipselect = 8,
.num_chipselect = 3,
.enable_dma = 1, /* master has the ability to do dma transfer */
.pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0},
};
Expand Down
4 changes: 2 additions & 2 deletions arch/blackfin/mach-bf548/boards/ezkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ static struct resource bfin_spi1_resource[] = {

/* SPI controller data */
static struct bfin5xx_spi_master bf54x_spi_master_info0 = {
.num_chipselect = 8,
.num_chipselect = 3,
.enable_dma = 1, /* master has the ability to do dma transfer */
.pin_req = {P_SPI0_SCK, P_SPI0_MISO, P_SPI0_MOSI, 0},
};
Expand All @@ -799,7 +799,7 @@ static struct platform_device bf54x_spi_master0 = {
};

static struct bfin5xx_spi_master bf54x_spi_master_info1 = {
.num_chipselect = 8,
.num_chipselect = 3,
.enable_dma = 1, /* master has the ability to do dma transfer */
.pin_req = {P_SPI1_SCK, P_SPI1_MISO, P_SPI1_MOSI, 0},
};
Expand Down

0 comments on commit 4e4d496

Please sign in to comment.