Message ID | 1400849474-7177-1-git-send-email-srinivas.kandagatla@linaro.org |
---|---|
State | New |
Headers | show |
Hi Srinivas, > > +static struct variant_data variant_qcom = { > + .fifosize = 16 * 4, > + .fifohalfsize = 8 * 4, > + .clkreg = MCI_CLK_ENABLE, > + .datalength_bits = 24, > + .blksz_datactrl4 = true, You get compile error here. Kind regards Ulf Hansson -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Hi Ulf, On 26/05/14 10:10, Ulf Hansson wrote: > Hi Srinivas, > >> >> +static struct variant_data variant_qcom = { >> + .fifosize = 16 * 4, >> + .fifohalfsize = 8 * 4, >> + .clkreg = MCI_CLK_ENABLE, >> + .datalength_bits = 24, >> + .blksz_datactrl4 = true, > > You get compile error here. yes, You are right, I will reorder this patch after the "mmc: mmci: Add Qcom datactrl register variant" Thanks, srini > > Kind regards > Ulf Hansson > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
On 26/05/14 18:00, Srinivas Kandagatla wrote: > Hi Ulf, > > On 26/05/14 10:10, Ulf Hansson wrote: >> Hi Srinivas, >> >>> >>> +static struct variant_data variant_qcom = { >>> + .fifosize = 16 * 4, >>> + .fifohalfsize = 8 * 4, >>> + .clkreg = MCI_CLK_ENABLE, >>> + .datalength_bits = 24, >>> + .blksz_datactrl4 = true, >> >> You get compile error here. > yes, You are right, I will reorder this patch after the "mmc: mmci: Add > Qcom datactrl register variant" Actually, blksz_datactrl4 should not be in this patch. it is part of "mmc: mmci: Add Qcom datactrl register variant" will remove it from this patch in next version. --srini > > > Thanks, > srini >> >> Kind regards >> Ulf Hansson >> -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index a38e714..7bdf4d3 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -160,6 +160,15 @@ static struct variant_data variant_ux500v2 = { .pwrreg_nopower = true, }; +static struct variant_data variant_qcom = { + .fifosize = 16 * 4, + .fifohalfsize = 8 * 4, + .clkreg = MCI_CLK_ENABLE, + .datalength_bits = 24, + .blksz_datactrl4 = true, + .pwrreg_powerup = MCI_PWR_UP, +}; + static int mmci_card_busy(struct mmc_host *mmc) { struct mmci_host *host = mmc_priv(mmc); @@ -1750,6 +1759,12 @@ static struct amba_id mmci_ids[] = { .mask = 0xf0ffffff, .data = &variant_ux500v2, }, + /* Qualcomm variants */ + { + .id = 0x00051180, + .mask = 0x000fffff, + .data = &variant_qcom, + }, { 0, 0 }, };