Skip to content

Commit

Permalink
spi: S3C2410: add bus number to SPI GPIO driver
Browse files Browse the repository at this point in the history
Allow passing a bus number through the platform data for the S3C2410 SPI
GPIO driver.   This is needed to support multiple SPI busses.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
David Brownell authored and Linus Torvalds committed Nov 29, 2007
1 parent 438ae1a commit 75d4279
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/spi/spi_s3c24xx_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ static int s3c2410_spigpio_probe(struct platform_device *dev)

/* setup spi bitbang adaptor */
sp->bitbang.master = spi_master_get(master);
sp->bitbang.master->bus_num = info->bus_num;
sp->bitbang.chipselect = s3c2410_spigpio_chipselect;

sp->bitbang.txrx_word[SPI_MODE_0] = s3c2410_spigpio_txrx_mode0;
Expand Down
2 changes: 2 additions & 0 deletions include/asm-arm/arch-s3c2410/spi-gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ struct s3c2410_spigpio_info {
unsigned long pin_mosi;
unsigned long pin_miso;

int bus_num;

unsigned long board_size;
struct spi_board_info *board_info;

Expand Down

0 comments on commit 75d4279

Please sign in to comment.