Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1ebbe3d3 authored by Ludovic Desroches's avatar Ludovic Desroches Committed by Chris Ball
Browse files

mmc: atmel-mci: use ATMEL_PDC_SCND_BUF_OFF instead of a literal value

parent 11d1488b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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));
+2 −0
Original line number Diff line number Diff line
@@ -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