提交 b5ffa674 编写于 作者: A Adrian Hunter 提交者: Ulf Hansson

mmc: sdhci: Add sdhci_adma_mark_end()

In preparation for 64-bit ADMA, separate out code
that touches the ADMA descriptor by adding
sdhci_adma_mark_end().
Signed-off-by: NAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
上级 4efaa6fb
......@@ -468,6 +468,13 @@ static void sdhci_adma_write_desc(u8 *desc, u32 addr, int len, unsigned cmd)
dataddr[0] = cpu_to_le32(addr);
}
static void sdhci_adma_mark_end(void *desc)
{
u8 *dma_desc = desc;
dma_desc[0] |= 0x2; /* end */
}
static int sdhci_adma_table_pre(struct sdhci_host *host,
struct mmc_data *data)
{
......@@ -564,7 +571,7 @@ static int sdhci_adma_table_pre(struct sdhci_host *host,
*/
if (desc != host->adma_table) {
desc -= 8;
desc[0] |= 0x2; /* end */
sdhci_adma_mark_end(desc);
}
} else {
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册