diff options
Diffstat (limited to 'drivers/spi/spi-altera.c')
| -rw-r--r-- | drivers/spi/spi-altera.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c index 8a6bb37910da..81b9adb6e766 100644 --- a/drivers/spi/spi-altera.c +++ b/drivers/spi/spi-altera.c | |||
| @@ -103,6 +103,16 @@ static void altera_spi_chipsel(struct spi_device *spi, int value) | |||
| 103 | } | 103 | } |
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | static int altera_spi_setupxfer(struct spi_device *spi, struct spi_transfer *t) | ||
| 107 | { | ||
| 108 | return 0; | ||
| 109 | } | ||
| 110 | |||
| 111 | static int altera_spi_setup(struct spi_device *spi) | ||
| 112 | { | ||
| 113 | return 0; | ||
| 114 | } | ||
| 115 | |||
| 106 | static inline unsigned int hw_txbyte(struct altera_spi *hw, int count) | 116 | static inline unsigned int hw_txbyte(struct altera_spi *hw, int count) |
| 107 | { | 117 | { |
| 108 | if (hw->tx) { | 118 | if (hw->tx) { |
| @@ -221,6 +231,7 @@ static int altera_spi_probe(struct platform_device *pdev) | |||
| 221 | master->bus_num = pdev->id; | 231 | master->bus_num = pdev->id; |
| 222 | master->num_chipselect = 16; | 232 | master->num_chipselect = 16; |
| 223 | master->mode_bits = SPI_CS_HIGH; | 233 | master->mode_bits = SPI_CS_HIGH; |
| 234 | master->setup = altera_spi_setup; | ||
| 224 | 235 | ||
| 225 | hw = spi_master_get_devdata(master); | 236 | hw = spi_master_get_devdata(master); |
| 226 | platform_set_drvdata(pdev, hw); | 237 | platform_set_drvdata(pdev, hw); |
| @@ -229,6 +240,7 @@ static int altera_spi_probe(struct platform_device *pdev) | |||
| 229 | hw->bitbang.master = spi_master_get(master); | 240 | hw->bitbang.master = spi_master_get(master); |
| 230 | if (!hw->bitbang.master) | 241 | if (!hw->bitbang.master) |
| 231 | return err; | 242 | return err; |
| 243 | hw->bitbang.setup_transfer = altera_spi_setupxfer; | ||
| 232 | hw->bitbang.chipselect = altera_spi_chipsel; | 244 | hw->bitbang.chipselect = altera_spi_chipsel; |
| 233 | hw->bitbang.txrx_bufs = altera_spi_txrx; | 245 | hw->bitbang.txrx_bufs = altera_spi_txrx; |
| 234 | 246 | ||
