aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/amba/pl022.h
diff options
context:
space:
mode:
authorKevin Wells <wellsk40@gmail.com>2010-09-16 09:18:50 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-10-12 23:37:37 -0400
commitbde435a9ca376d0b7809768ca803dbf14416b9c1 (patch)
treedd9678beb7c219922ad9b94db0e8f0a804ae2ab4 /include/linux/amba/pl022.h
parentfadcf49b9bd7ec5fb69befbf477e747d5b6a0328 (diff)
spi/pl022: Add spi->mode support to AMBA SPI driver
This patch adds spi->mode support for the AMBA pl022 driver and allows spidev to correctly alter SPI modes. Unused fields used in the pl022 header file for the pl022_config_chip have been removed. The ab8500 client driver selects the data transfer size instead of the platform data. For platforms that use the amba pl022 driver, the unused fields in the controller data structure have been removed and the .mode field in the SPI board info structure is used instead. Signed-off-by: Kevin Wells <wellsk40@gmail.com> Tested-by: Linus Walleij <linus.walleij@stericsson.com> Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/amba/pl022.h')
-rw-r--r--include/linux/amba/pl022.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/amba/pl022.h b/include/linux/amba/pl022.h
index db6a191ddcf7..bf143663df81 100644
--- a/include/linux/amba/pl022.h
+++ b/include/linux/amba/pl022.h
@@ -277,19 +277,13 @@ struct pl022_ssp_controller {
277 */ 277 */
278struct pl022_config_chip { 278struct pl022_config_chip {
279 struct device *dev; 279 struct device *dev;
280 enum ssp_loopback lbm;
281 enum ssp_interface iface; 280 enum ssp_interface iface;
282 enum ssp_hierarchy hierarchy; 281 enum ssp_hierarchy hierarchy;
283 bool slave_tx_disable; 282 bool slave_tx_disable;
284 struct ssp_clock_params clk_freq; 283 struct ssp_clock_params clk_freq;
285 enum ssp_rx_endian endian_rx;
286 enum ssp_tx_endian endian_tx;
287 enum ssp_data_size data_size;
288 enum ssp_mode com_mode; 284 enum ssp_mode com_mode;
289 enum ssp_rx_level_trig rx_lev_trig; 285 enum ssp_rx_level_trig rx_lev_trig;
290 enum ssp_tx_level_trig tx_lev_trig; 286 enum ssp_tx_level_trig tx_lev_trig;
291 enum ssp_spi_clk_phase clk_phase;
292 enum ssp_spi_clk_pol clk_pol;
293 enum ssp_microwire_ctrl_len ctrl_len; 287 enum ssp_microwire_ctrl_len ctrl_len;
294 enum ssp_microwire_wait_state wait_state; 288 enum ssp_microwire_wait_state wait_state;
295 enum ssp_duplex duplex; 289 enum ssp_duplex duplex;