diff options
Diffstat (limited to 'drivers/spi/spi-dw-mid.c')
-rw-r--r-- | drivers/spi/spi-dw-mid.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/spi/spi-dw-mid.c b/drivers/spi/spi-dw-mid.c index 130e55537db6..e743a45ee92c 100644 --- a/drivers/spi/spi-dw-mid.c +++ b/drivers/spi/spi-dw-mid.c | |||
@@ -116,13 +116,13 @@ static int mid_spi_dma_transfer(struct dw_spi *dws, int cs_change) | |||
116 | /* 1. setup DMA related registers */ | 116 | /* 1. setup DMA related registers */ |
117 | if (cs_change) { | 117 | if (cs_change) { |
118 | spi_enable_chip(dws, 0); | 118 | spi_enable_chip(dws, 0); |
119 | dw_writew(dws, dmardlr, 0xf); | 119 | dw_writew(dws, DW_SPI_DMARDLR, 0xf); |
120 | dw_writew(dws, dmatdlr, 0x10); | 120 | dw_writew(dws, DW_SPI_DMATDLR, 0x10); |
121 | if (dws->tx_dma) | 121 | if (dws->tx_dma) |
122 | dma_ctrl |= 0x2; | 122 | dma_ctrl |= 0x2; |
123 | if (dws->rx_dma) | 123 | if (dws->rx_dma) |
124 | dma_ctrl |= 0x1; | 124 | dma_ctrl |= 0x1; |
125 | dw_writew(dws, dmacr, dma_ctrl); | 125 | dw_writew(dws, DW_SPI_DMACR, dma_ctrl); |
126 | spi_enable_chip(dws, 1); | 126 | spi_enable_chip(dws, 1); |
127 | } | 127 | } |
128 | 128 | ||
@@ -200,7 +200,8 @@ static struct dw_spi_dma_ops mid_dma_ops = { | |||
200 | 200 | ||
201 | int dw_spi_mid_init(struct dw_spi *dws) | 201 | int dw_spi_mid_init(struct dw_spi *dws) |
202 | { | 202 | { |
203 | u32 *clk_reg, clk_cdiv; | 203 | void __iomem *clk_reg; |
204 | u32 clk_cdiv; | ||
204 | 205 | ||
205 | clk_reg = ioremap_nocache(MRST_CLK_SPI0_REG, 16); | 206 | clk_reg = ioremap_nocache(MRST_CLK_SPI0_REG, 16); |
206 | if (!clk_reg) | 207 | if (!clk_reg) |