Skip to content

Commit 55b604a

Browse files
Srinivas-KandagatlaUlf Hansson
authored andcommitted
mmc: mmci: Add Qualcomm Id to amba id table
This patch adds a fake Qualcomm ID 0x00051180 to the amba_ids, as Qualcomm SDCC controller is pl180, but amba id registers read 0x0's. The plan is to remove SDCC driver totally and use mmci as the main SD controller driver for Qualcomm SOCs. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 9c34b73 commit 55b604a

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

‎drivers/mmc/host/mmci.c‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,23 @@ static struct variant_data variant_ux500v2 = {
190190
.pwrreg_nopower = true,
191191
};
192192

193+
static struct variant_data variant_qcom = {
194+
.fifosize = 16 * 4,
195+
.fifohalfsize = 8 * 4,
196+
.clkreg = MCI_CLK_ENABLE,
197+
.clkreg_enable = MCI_QCOM_CLK_FLOWENA |
198+
MCI_QCOM_CLK_SELECT_IN_FBCLK,
199+
.clkreg_8bit_bus_enable = MCI_QCOM_CLK_WIDEBUS_8,
200+
.datactrl_mask_ddrmode = MCI_QCOM_CLK_SELECT_IN_DDR_MODE,
201+
.data_cmd_enable = MCI_QCOM_CSPM_DATCMD,
202+
.blksz_datactrl4 = true,
203+
.datalength_bits = 24,
204+
.pwrreg_powerup = MCI_PWR_UP,
205+
.f_max = 208000000,
206+
.explicit_mclk_control = true,
207+
.qcom_fifo = true,
208+
};
209+
193210
static int mmci_card_busy(struct mmc_host *mmc)
194211
{
195212
struct mmci_host *host = mmc_priv(mmc);
@@ -1832,6 +1849,12 @@ static struct amba_id mmci_ids[] = {
18321849
.mask = 0xf0ffffff,
18331850
.data = &variant_ux500v2,
18341851
},
1852+
/* Qualcomm variants */
1853+
{
1854+
.id = 0x00051180,
1855+
.mask = 0x000fffff,
1856+
.data = &variant_qcom,
1857+
},
18351858
{ 0, 0 },
18361859
};
18371860

0 commit comments

Comments
 (0)