diff options
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi_imx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c index 496bf9ad16e0..4c9b1332b536 100644 --- a/drivers/spi/spi_imx.c +++ b/drivers/spi/spi_imx.c | |||
@@ -208,7 +208,7 @@ static int mx31_config(struct spi_imx_data *spi_imx, | |||
208 | 208 | ||
209 | if (cpu_is_mx31()) | 209 | if (cpu_is_mx31()) |
210 | reg |= (config->bpw - 1) << MX31_CSPICTRL_BC_SHIFT; | 210 | reg |= (config->bpw - 1) << MX31_CSPICTRL_BC_SHIFT; |
211 | else if (cpu_is_mx35()) { | 211 | else if (cpu_is_mx25() || cpu_is_mx35()) { |
212 | reg |= (config->bpw - 1) << MX35_CSPICTRL_BL_SHIFT; | 212 | reg |= (config->bpw - 1) << MX35_CSPICTRL_BL_SHIFT; |
213 | reg |= MX31_CSPICTRL_SSCTL; | 213 | reg |= MX31_CSPICTRL_SSCTL; |
214 | } | 214 | } |
@@ -222,7 +222,7 @@ static int mx31_config(struct spi_imx_data *spi_imx, | |||
222 | if (config->cs < 0) { | 222 | if (config->cs < 0) { |
223 | if (cpu_is_mx31()) | 223 | if (cpu_is_mx31()) |
224 | reg |= (config->cs + 32) << MX31_CSPICTRL_CS_SHIFT; | 224 | reg |= (config->cs + 32) << MX31_CSPICTRL_CS_SHIFT; |
225 | else if (cpu_is_mx35()) | 225 | else if (cpu_is_mx25() || cpu_is_mx35()) |
226 | reg |= (config->cs + 32) << MX35_CSPICTRL_CS_SHIFT; | 226 | reg |= (config->cs + 32) << MX35_CSPICTRL_CS_SHIFT; |
227 | } | 227 | } |
228 | 228 | ||
@@ -566,7 +566,7 @@ static int __init spi_imx_probe(struct platform_device *pdev) | |||
566 | goto out_iounmap; | 566 | goto out_iounmap; |
567 | } | 567 | } |
568 | 568 | ||
569 | if (cpu_is_mx31() || cpu_is_mx35()) { | 569 | if (cpu_is_mx25() || cpu_is_mx31() || cpu_is_mx35()) { |
570 | spi_imx->intctrl = mx31_intctrl; | 570 | spi_imx->intctrl = mx31_intctrl; |
571 | spi_imx->config = mx31_config; | 571 | spi_imx->config = mx31_config; |
572 | spi_imx->trigger = mx31_trigger; | 572 | spi_imx->trigger = mx31_trigger; |
@@ -598,7 +598,7 @@ static int __init spi_imx_probe(struct platform_device *pdev) | |||
598 | writel(1, spi_imx->base + MXC_RESET); | 598 | writel(1, spi_imx->base + MXC_RESET); |
599 | 599 | ||
600 | /* drain receive buffer */ | 600 | /* drain receive buffer */ |
601 | if (cpu_is_mx31() || cpu_is_mx35()) | 601 | if (cpu_is_mx25() || cpu_is_mx31() || cpu_is_mx35()) |
602 | while (readl(spi_imx->base + MX3_CSPISTAT) & MX3_CSPISTAT_RR) | 602 | while (readl(spi_imx->base + MX3_CSPISTAT) & MX3_CSPISTAT_RR) |
603 | readl(spi_imx->base + MXC_CSPIRXDATA); | 603 | readl(spi_imx->base + MXC_CSPIRXDATA); |
604 | 604 | ||