mmc: mmci: qcom: define get_dctrl_cfg

This patch defines get_dctrl_cfg callback for qcom variant.
qcom variant has a specific block size definition.

Signed-off-by: Ludovic Barre <ludovic.barre@st.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
Ludovic Barre 2019-03-27 10:05:30 +01:00 committed by Ulf Hansson
parent b3fb9d64b4
commit 5db1e1fc7c
1 changed files with 6 additions and 0 deletions

View File

@ -188,9 +188,15 @@ static int qcom_dma_setup(struct mmci_host *host)
return 0; return 0;
} }
static u32 qcom_get_dctrl_cfg(struct mmci_host *host)
{
return MCI_DPSM_ENABLE | (host->data->blksz << 4);
}
static struct mmci_host_ops qcom_variant_ops = { static struct mmci_host_ops qcom_variant_ops = {
.prep_data = mmci_dmae_prep_data, .prep_data = mmci_dmae_prep_data,
.unprep_data = mmci_dmae_unprep_data, .unprep_data = mmci_dmae_unprep_data,
.get_datactrl_cfg = qcom_get_dctrl_cfg,
.get_next_data = mmci_dmae_get_next_data, .get_next_data = mmci_dmae_get_next_data,
.dma_setup = qcom_dma_setup, .dma_setup = qcom_dma_setup,
.dma_release = mmci_dmae_release, .dma_release = mmci_dmae_release,