mmc: sdhci-pci: allow 8-bit bus width for Intel Medfield eMMCs
Unless MMC_CAP_8_BIT_DATA is set, the bus width defaults to 4. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
parent
68077b0261
commit
0d013bcf5c
|
@ -163,6 +163,12 @@ static int mrst_hc_probe(struct sdhci_pci_chip *chip)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int mfd_emmc_probe_slot(struct sdhci_pci_slot *slot)
|
||||||
|
{
|
||||||
|
slot->host->mmc->caps |= MMC_CAP_8_BIT_DATA;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
static const struct sdhci_pci_fixes sdhci_intel_mrst_hc0 = {
|
static const struct sdhci_pci_fixes sdhci_intel_mrst_hc0 = {
|
||||||
.quirks = SDHCI_QUIRK_BROKEN_ADMA | SDHCI_QUIRK_NO_HISPD_BIT,
|
.quirks = SDHCI_QUIRK_BROKEN_ADMA | SDHCI_QUIRK_NO_HISPD_BIT,
|
||||||
.probe_slot = mrst_hc_probe_slot,
|
.probe_slot = mrst_hc_probe_slot,
|
||||||
|
@ -177,10 +183,15 @@ static const struct sdhci_pci_fixes sdhci_intel_mfd_sd = {
|
||||||
.quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC,
|
.quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC,
|
||||||
};
|
};
|
||||||
|
|
||||||
static const struct sdhci_pci_fixes sdhci_intel_mfd_emmc_sdio = {
|
static const struct sdhci_pci_fixes sdhci_intel_mfd_sdio = {
|
||||||
.quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC,
|
.quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const struct sdhci_pci_fixes sdhci_intel_mfd_emmc = {
|
||||||
|
.quirks = SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC,
|
||||||
|
.probe_slot = mfd_emmc_probe_slot,
|
||||||
|
};
|
||||||
|
|
||||||
/* O2Micro extra registers */
|
/* O2Micro extra registers */
|
||||||
#define O2_SD_LOCK_WP 0xD3
|
#define O2_SD_LOCK_WP 0xD3
|
||||||
#define O2_SD_MULTI_VCC3V 0xEE
|
#define O2_SD_MULTI_VCC3V 0xEE
|
||||||
|
@ -689,7 +700,7 @@ static const struct pci_device_id pci_ids[] __devinitdata = {
|
||||||
.device = PCI_DEVICE_ID_INTEL_MFD_SDIO1,
|
.device = PCI_DEVICE_ID_INTEL_MFD_SDIO1,
|
||||||
.subvendor = PCI_ANY_ID,
|
.subvendor = PCI_ANY_ID,
|
||||||
.subdevice = PCI_ANY_ID,
|
.subdevice = PCI_ANY_ID,
|
||||||
.driver_data = (kernel_ulong_t)&sdhci_intel_mfd_emmc_sdio,
|
.driver_data = (kernel_ulong_t)&sdhci_intel_mfd_sdio,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -697,7 +708,7 @@ static const struct pci_device_id pci_ids[] __devinitdata = {
|
||||||
.device = PCI_DEVICE_ID_INTEL_MFD_SDIO2,
|
.device = PCI_DEVICE_ID_INTEL_MFD_SDIO2,
|
||||||
.subvendor = PCI_ANY_ID,
|
.subvendor = PCI_ANY_ID,
|
||||||
.subdevice = PCI_ANY_ID,
|
.subdevice = PCI_ANY_ID,
|
||||||
.driver_data = (kernel_ulong_t)&sdhci_intel_mfd_emmc_sdio,
|
.driver_data = (kernel_ulong_t)&sdhci_intel_mfd_sdio,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -705,7 +716,7 @@ static const struct pci_device_id pci_ids[] __devinitdata = {
|
||||||
.device = PCI_DEVICE_ID_INTEL_MFD_EMMC0,
|
.device = PCI_DEVICE_ID_INTEL_MFD_EMMC0,
|
||||||
.subvendor = PCI_ANY_ID,
|
.subvendor = PCI_ANY_ID,
|
||||||
.subdevice = PCI_ANY_ID,
|
.subdevice = PCI_ANY_ID,
|
||||||
.driver_data = (kernel_ulong_t)&sdhci_intel_mfd_emmc_sdio,
|
.driver_data = (kernel_ulong_t)&sdhci_intel_mfd_emmc,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -713,7 +724,7 @@ static const struct pci_device_id pci_ids[] __devinitdata = {
|
||||||
.device = PCI_DEVICE_ID_INTEL_MFD_EMMC1,
|
.device = PCI_DEVICE_ID_INTEL_MFD_EMMC1,
|
||||||
.subvendor = PCI_ANY_ID,
|
.subvendor = PCI_ANY_ID,
|
||||||
.subdevice = PCI_ANY_ID,
|
.subdevice = PCI_ANY_ID,
|
||||||
.driver_data = (kernel_ulong_t)&sdhci_intel_mfd_emmc_sdio,
|
.driver_data = (kernel_ulong_t)&sdhci_intel_mfd_emmc,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue