Skip to content

Commit

Permalink
mmc: atmel-mci: use ATMEL_PDC_SCND_BUF_OFF instead of a literal value
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
  • Loading branch information
Ludovic Desroches authored and Chris Ball committed Oct 26, 2011
1 parent 11d1488 commit 1ebbe3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mmc/host/atmel-mci.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,8 +603,8 @@ static void atmci_pdc_set_single_buf(struct atmel_mci *host,
}

if (buf_nb == PDC_SECOND_BUF) {
pointer_reg += 0x10;
counter_reg += 0x10;
pointer_reg += ATMEL_PDC_SCND_BUF_OFF;
counter_reg += ATMEL_PDC_SCND_BUF_OFF;
}

atmci_writel(host, pointer_reg, sg_dma_address(host->sg));
Expand Down
2 changes: 2 additions & 0 deletions include/linux/atmel_pdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@

#define ATMEL_PDC_PTSR 0x124 /* Transfer Status Register */

#define ATMEL_PDC_SCND_BUF_OFF 0x10 /* Offset between first and second buffer registers */

#endif

0 comments on commit 1ebbe3d

Please sign in to comment.