spi-pl022.c (4d68c05ce11f4cdf6a6392f3a18dc6a985b4d0c4) spi-pl022.c (258aea76f552cc755da92e7e823abbb85e021514)
1/*
2 * A driver for the ARM PL022 PrimeCell SSP/SPI bus master.
3 *
4 * Copyright (C) 2008-2009 ST-Ericsson AB
5 * Copyright (C) 2006 STMicroelectronics Pvt. Ltd.
6 *
7 * Author: Linus Walleij <linus.walleij@stericsson.com>
8 *

--- 887 unchanged lines hidden (view full) ---

896 * configure_dma - configures the channels for the next transfer
897 * @pl022: SSP driver's private data structure
898 */
899static int configure_dma(struct pl022 *pl022)
900{
901 struct dma_slave_config rx_conf = {
902 .src_addr = SSP_DR(pl022->phybase),
903 .direction = DMA_DEV_TO_MEM,
1/*
2 * A driver for the ARM PL022 PrimeCell SSP/SPI bus master.
3 *
4 * Copyright (C) 2008-2009 ST-Ericsson AB
5 * Copyright (C) 2006 STMicroelectronics Pvt. Ltd.
6 *
7 * Author: Linus Walleij <linus.walleij@stericsson.com>
8 *

--- 887 unchanged lines hidden (view full) ---

896 * configure_dma - configures the channels for the next transfer
897 * @pl022: SSP driver's private data structure
898 */
899static int configure_dma(struct pl022 *pl022)
900{
901 struct dma_slave_config rx_conf = {
902 .src_addr = SSP_DR(pl022->phybase),
903 .direction = DMA_DEV_TO_MEM,
904 .device_fc = false,
904 };
905 struct dma_slave_config tx_conf = {
906 .dst_addr = SSP_DR(pl022->phybase),
907 .direction = DMA_MEM_TO_DEV,
905 };
906 struct dma_slave_config tx_conf = {
907 .dst_addr = SSP_DR(pl022->phybase),
908 .direction = DMA_MEM_TO_DEV,
909 .device_fc = false,
908 };
909 unsigned int pages;
910 int ret;
911 int rx_sglen, tx_sglen;
912 struct dma_chan *rxchan = pl022->dma_rx_channel;
913 struct dma_chan *txchan = pl022->dma_tx_channel;
914 struct dma_async_tx_descriptor *rxdesc;
915 struct dma_async_tx_descriptor *txdesc;

--- 1575 unchanged lines hidden ---
910 };
911 unsigned int pages;
912 int ret;
913 int rx_sglen, tx_sglen;
914 struct dma_chan *rxchan = pl022->dma_rx_channel;
915 struct dma_chan *txchan = pl022->dma_tx_channel;
916 struct dma_async_tx_descriptor *rxdesc;
917 struct dma_async_tx_descriptor *txdesc;

--- 1575 unchanged lines hidden ---