diff options
| author | Philip Elcan <pelcan@codeaurora.org> | 2016-03-03 11:38:46 -0500 |
|---|---|---|
| committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-03-17 09:54:37 -0400 |
| commit | 70cce2af73f1a37b00e8c8147325c8aca9d58ebe (patch) | |
| tree | b03c4bb2c468b701347e70333d1094b4c8fefa1c /drivers/mmc | |
| parent | e5c63d91cdf6a0d02f080bc8ab5b75c6e280a046 (diff) | |
mmc: sdhci-acpi: add QCOM controllers
This adds the HIDs for Qualcomm Technologies Inc SDHC
controllers:
QCOM8051: non-removable device that does not support 1.8v
QCOM8052: non-removable device that does support 1.8v
Signed-off-by: Philip Elcan <pelcan@codeaurora.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
| -rw-r--r-- | drivers/mmc/host/sdhci-acpi.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-acpi.c b/drivers/mmc/host/sdhci-acpi.c index 195ff0853dc8..4e94684ab6ce 100644 --- a/drivers/mmc/host/sdhci-acpi.c +++ b/drivers/mmc/host/sdhci-acpi.c | |||
| @@ -264,6 +264,17 @@ static const struct sdhci_acpi_slot sdhci_acpi_slot_int_sd = { | |||
| 264 | .probe_slot = sdhci_acpi_sd_probe_slot, | 264 | .probe_slot = sdhci_acpi_sd_probe_slot, |
| 265 | }; | 265 | }; |
| 266 | 266 | ||
| 267 | static const struct sdhci_acpi_slot sdhci_acpi_slot_qcom_sd_3v = { | ||
| 268 | .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION, | ||
| 269 | .quirks2 = SDHCI_QUIRK2_NO_1_8_V, | ||
| 270 | .caps = MMC_CAP_NONREMOVABLE, | ||
| 271 | }; | ||
| 272 | |||
| 273 | static const struct sdhci_acpi_slot sdhci_acpi_slot_qcom_sd = { | ||
| 274 | .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION, | ||
| 275 | .caps = MMC_CAP_NONREMOVABLE, | ||
| 276 | }; | ||
| 277 | |||
| 267 | struct sdhci_acpi_uid_slot { | 278 | struct sdhci_acpi_uid_slot { |
| 268 | const char *hid; | 279 | const char *hid; |
| 269 | const char *uid; | 280 | const char *uid; |
| @@ -284,6 +295,8 @@ static const struct sdhci_acpi_uid_slot sdhci_acpi_uids[] = { | |||
| 284 | { "INT344D" , NULL, &sdhci_acpi_slot_int_sdio }, | 295 | { "INT344D" , NULL, &sdhci_acpi_slot_int_sdio }, |
| 285 | { "PNP0FFF" , "3" , &sdhci_acpi_slot_int_sd }, | 296 | { "PNP0FFF" , "3" , &sdhci_acpi_slot_int_sd }, |
| 286 | { "PNP0D40" }, | 297 | { "PNP0D40" }, |
| 298 | { "QCOM8051", NULL, &sdhci_acpi_slot_qcom_sd_3v }, | ||
| 299 | { "QCOM8052", NULL, &sdhci_acpi_slot_qcom_sd }, | ||
| 287 | { }, | 300 | { }, |
| 288 | }; | 301 | }; |
| 289 | 302 | ||
| @@ -298,6 +311,8 @@ static const struct acpi_device_id sdhci_acpi_ids[] = { | |||
| 298 | { "INT3436" }, | 311 | { "INT3436" }, |
| 299 | { "INT344D" }, | 312 | { "INT344D" }, |
| 300 | { "PNP0D40" }, | 313 | { "PNP0D40" }, |
| 314 | { "QCOM8051" }, | ||
| 315 | { "QCOM8052" }, | ||
| 301 | { }, | 316 | { }, |
| 302 | }; | 317 | }; |
| 303 | MODULE_DEVICE_TABLE(acpi, sdhci_acpi_ids); | 318 | MODULE_DEVICE_TABLE(acpi, sdhci_acpi_ids); |
