Re: [PATCH 1/2] mmc: sdhci: add SDHCI_QUIRK2_CIRCUIT_SUPPORT_VS33 quirk support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2 June 2015 at 09:09, Yangbo Lu <yangbo.lu@xxxxxxxxxxxxx> wrote:
> This quirk is used for controllers that can only support 1.8V
> voltage but the peripheral hardware circuit has capability to
> support 3.3V voltage.

Which voltage are you referring to? The I/O voltage or the power to
the card? VCC or VCCQ?

Kind regards
Uffe

>
> Signed-off-by: Yangbo Lu <yangbo.lu@xxxxxxxxxxxxx>
> ---
>  drivers/mmc/host/sdhci.c | 3 +++
>  drivers/mmc/host/sdhci.h | 4 ++++
>  2 files changed, 7 insertions(+)
>
> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
> index c80287a..40de0d3 100644
> --- a/drivers/mmc/host/sdhci.c
> +++ b/drivers/mmc/host/sdhci.c
> @@ -2959,6 +2959,9 @@ int sdhci_add_host(struct sdhci_host *host)
>                         host->caps1 :
>                         sdhci_readl(host, SDHCI_CAPABILITIES_1);
>
> +       if (host->quirks2 & SDHCI_QUIRK2_CIRCUIT_SUPPORT_VS33)
> +               caps[0] = caps[0] | SDHCI_CAN_VDD_330;
> +
>         if (host->quirks & SDHCI_QUIRK_FORCE_DMA)
>                 host->flags |= SDHCI_USE_SDMA;
>         else if (!(caps[0] & SDHCI_CAN_DO_SDMA))
> diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
> index e639b7f..2704daf1 100644
> --- a/drivers/mmc/host/sdhci.h
> +++ b/drivers/mmc/host/sdhci.h
> @@ -409,6 +409,10 @@ struct sdhci_host {
>  #define SDHCI_QUIRK2_SUPPORT_SINGLE                    (1<<13)
>  /* Controller broken with using ACMD23 */
>  #define SDHCI_QUIRK2_ACMD23_BROKEN                     (1<<14)
> +/* Controller only supports 1.8V, but the peripheral hardware
> + * circuit has capability to support 3.3V
> + */
> +#define SDHCI_QUIRK2_CIRCUIT_SUPPORT_VS33              (1<<15)
>
>         int irq;                /* Device IRQ */
>         void __iomem *ioaddr;   /* Mapped address */
> --
> 2.1.0.27.g96db324
>
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux