Commit d570838e authored by Linus Walleij's avatar Linus Walleij Committed by Mark Brown

ARM/spi: spear: Drop PL022 num_chipselect

A previous refactoring moved the chip select number handling
to the SPI core and we missed a leftover platform data user
in the ST spear platform. The spear is not using this
chipselect or PL022 for anything and should be using device
tree like the rest of the platform so just delete the
offending platform data.

Cc: Viresh Kumar <vireshk@kernel.org>
Cc: Shiraz Hashim <shiraz.linux.kernel@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20210408075045.3435046-1-linus.walleij@linaro.orgSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0e6521f1
...@@ -195,14 +195,12 @@ static struct pl022_ssp_controller spear320_ssp_data[] = { ...@@ -195,14 +195,12 @@ static struct pl022_ssp_controller spear320_ssp_data[] = {
.dma_filter = pl08x_filter_id, .dma_filter = pl08x_filter_id,
.dma_tx_param = "ssp1_tx", .dma_tx_param = "ssp1_tx",
.dma_rx_param = "ssp1_rx", .dma_rx_param = "ssp1_rx",
.num_chipselect = 2,
}, { }, {
.bus_id = 2, .bus_id = 2,
.enable_dma = 1, .enable_dma = 1,
.dma_filter = pl08x_filter_id, .dma_filter = pl08x_filter_id,
.dma_tx_param = "ssp2_tx", .dma_tx_param = "ssp2_tx",
.dma_rx_param = "ssp2_rx", .dma_rx_param = "ssp2_rx",
.num_chipselect = 2,
} }
}; };
......
...@@ -30,16 +30,6 @@ struct pl022_ssp_controller pl022_plat_data = { ...@@ -30,16 +30,6 @@ struct pl022_ssp_controller pl022_plat_data = {
.dma_filter = pl08x_filter_id, .dma_filter = pl08x_filter_id,
.dma_tx_param = "ssp0_tx", .dma_tx_param = "ssp0_tx",
.dma_rx_param = "ssp0_rx", .dma_rx_param = "ssp0_rx",
/*
* This is number of spi devices that can be connected to spi. There are
* two type of chipselects on which slave devices can work. One is chip
* select provided by spi masters other is controlled through external
* gpio's. We can't use chipselect provided from spi master (because as
* soon as FIFO becomes empty, CS is disabled and transfer ends). So
* this number now depends on number of gpios available for spi. each
* slave on each master requires a separate gpio pin.
*/
.num_chipselect = 2,
}; };
/* dmac device registration */ /* dmac device registration */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment