aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/host/atmel-mci.c4
-rw-r--r--include/linux/atmel_pdc.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index caae967dcafe..c0a0659261aa 100644
--- a/drivers/mmc/host/atmel-mci.c
+++ b/drivers/mmc/host/atmel-mci.c
@@ -603,8 +603,8 @@ static void atmci_pdc_set_single_buf(struct atmel_mci *host,
603 } 603 }
604 604
605 if (buf_nb == PDC_SECOND_BUF) { 605 if (buf_nb == PDC_SECOND_BUF) {
606 pointer_reg += 0x10; 606 pointer_reg += ATMEL_PDC_SCND_BUF_OFF;
607 counter_reg += 0x10; 607 counter_reg += ATMEL_PDC_SCND_BUF_OFF;
608 } 608 }
609 609
610 atmci_writel(host, pointer_reg, sg_dma_address(host->sg)); 610 atmci_writel(host, pointer_reg, sg_dma_address(host->sg));
diff --git a/include/linux/atmel_pdc.h b/include/linux/atmel_pdc.h
index 5058a31d2ce8..63499ce806ea 100644
--- a/include/linux/atmel_pdc.h
+++ b/include/linux/atmel_pdc.h
@@ -33,4 +33,6 @@
33 33
34#define ATMEL_PDC_PTSR 0x124 /* Transfer Status Register */ 34#define ATMEL_PDC_PTSR 0x124 /* Transfer Status Register */
35 35
36#define ATMEL_PDC_SCND_BUF_OFF 0x10 /* Offset between first and second buffer registers */
37
36#endif 38#endif