aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0001-mmc-sdhci-add-AMD-CZ-device-handling.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0001-mmc-sdhci-add-AMD-CZ-device-handling.patch')
-rw-r--r--common/recipes-kernel/linux/files/0001-mmc-sdhci-add-AMD-CZ-device-handling.patch78
1 files changed, 0 insertions, 78 deletions
diff --git a/common/recipes-kernel/linux/files/0001-mmc-sdhci-add-AMD-CZ-device-handling.patch b/common/recipes-kernel/linux/files/0001-mmc-sdhci-add-AMD-CZ-device-handling.patch
deleted file mode 100644
index 056c8ee2..00000000
--- a/common/recipes-kernel/linux/files/0001-mmc-sdhci-add-AMD-CZ-device-handling.patch
+++ /dev/null
@@ -1,78 +0,0 @@
-From 1c6a6ebcac151fcad703b92b9c482a088c2c8b19 Mon Sep 17 00:00:00 2001
-From: Awais Belal <awais_belal@mentor.com>
-Date: Wed, 3 Feb 2016 13:48:26 +0500
-Subject: [PATCH] mmc: sdhci: add AMD CZ device handling
-
-Add AMD CZ SMBus device and handle the quirks
-accordingly.
-
-Signed-off-by: Wan ZongShun <Vincent.Wan@amd.com>
-Tested-by: Nath, Arindam <Arindam.Nath@amd.com>
-Tested-by: Ramesh, Ramya <Ramya.Ramesh@amd.com>
-Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-Signed-off-by: Arindam Nath <arindam.nath@amd.com>
-Signed-off-by: Awais Belal <awais_belal@mentor.com>
----
- drivers/mmc/host/sdhci-pci-core.c | 26 +++++++++++++++++++++++++-
- include/linux/pci_ids.h | 1 +
- 2 files changed, 26 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c
-index 53cfc7c..6ee5f2b 100644
---- a/drivers/mmc/host/sdhci-pci-core.c
-+++ b/drivers/mmc/host/sdhci-pci-core.c
-@@ -656,14 +656,38 @@ static const struct sdhci_pci_fixes sdhci_rtsx = {
- .probe_slot = rtsx_probe_slot,
- };
-
-+/* AMD chipset generation */
-+enum amd_chipset_gen {
-+ AMD_CHIPSET_BEFORE_ML,
-+ AMD_CHIPSET_CZ,
-+ AMD_CHIPSET_NL,
-+ AMD_CHIPSET_UNKNOWN,
-+};
-+
- static int amd_probe(struct sdhci_pci_chip *chip)
- {
- struct pci_dev *smbus_dev;
-+ enum amd_chipset_gen gen;
-
- smbus_dev = pci_get_device(PCI_VENDOR_ID_AMD,
- PCI_DEVICE_ID_AMD_HUDSON2_SMBUS, NULL);
-
-- if (smbus_dev && (smbus_dev->revision < 0x51)) {
-+ if (smbus_dev) {
-+ gen = AMD_CHIPSET_BEFORE_ML;
-+ } else {
-+ smbus_dev = pci_get_device(PCI_VENDOR_ID_AMD,
-+ PCI_DEVICE_ID_AMD_KERNCZ_SMBUS, NULL);
-+ if (smbus_dev) {
-+ if (smbus_dev->revision < 0x51)
-+ gen = AMD_CHIPSET_CZ;
-+ else
-+ gen = AMD_CHIPSET_NL;
-+ } else {
-+ gen = AMD_CHIPSET_UNKNOWN;
-+ }
-+ }
-+
-+ if ((gen == AMD_CHIPSET_BEFORE_ML) || (gen == AMD_CHIPSET_CZ)) {
- chip->quirks2 |= SDHCI_QUIRK2_CLEAR_TRANSFERMODE_REG_BEFORE_CMD;
- chip->quirks2 |= SDHCI_QUIRK2_BROKEN_HS200;
- }
-diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
-index 2f7b9a4..8118271 100644
---- a/include/linux/pci_ids.h
-+++ b/include/linux/pci_ids.h
-@@ -579,6 +579,7 @@
- #define PCI_DEVICE_ID_AMD_HUDSON2_SATA_IDE 0x7800
- #define PCI_DEVICE_ID_AMD_HUDSON2_SMBUS 0x780b
- #define PCI_DEVICE_ID_AMD_HUDSON2_IDE 0x780c
-+#define PCI_DEVICE_ID_AMD_KERNCZ_SMBUS 0x790b
-
- #define PCI_VENDOR_ID_TRIDENT 0x1023
- #define PCI_DEVICE_ID_TRIDENT_4DWAVE_DX 0x2000
---
-1.9.1
-