mmc: core: sdio: Set SDIO clock of SDR104 to 150MHz for Marvell 8887 chip
authorDiwakar Sharma <diwakar.sharma@in.bosch.com>
Tue, 10 Apr 2018 07:00:32 +0000 (12:30 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 2 May 2018 13:08:39 +0000 (15:08 +0200)
This patch uses limit clock rate quirk to reduce clock rate
for "SDR104" mode on IMX side for Marvell 8887
WiFi + Bluetooth chip side, as Marvell does not recommend
to use SDIO at the speed of higher than 150MHz.

Signed-off-by: Diwakar Sharma <diwakar.sharma@in.bosch.com>
Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/quirks.h
include/linux/mmc/sdio_ids.h

index 5153577..dd2f73a 100644 (file)
@@ -132,6 +132,9 @@ static const struct mmc_fixup sdio_fixup_methods[] = {
        SDIO_FIXUP(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8797_F0,
                   add_quirk, MMC_QUIRK_BROKEN_IRQ_POLLING),
 
+       SDIO_FIXUP(SDIO_VENDOR_ID_MARVELL, SDIO_DEVICE_ID_MARVELL_8887WLAN,
+                  add_limit_rate_quirk, 150000000),
+
        END_FIXUP
 };
 
index cdd66a5..2836a96 100644 (file)
@@ -55,6 +55,7 @@
 #define SDIO_DEVICE_ID_MARVELL_8688WLAN                0x9104
 #define SDIO_DEVICE_ID_MARVELL_8688BT          0x9105
 #define SDIO_DEVICE_ID_MARVELL_8797_F0         0x9128
+#define SDIO_DEVICE_ID_MARVELL_8887WLAN        0x9134
 
 #define SDIO_VENDOR_ID_SIANO                   0x039a
 #define SDIO_DEVICE_ID_SIANO_NOVA_B0           0x0201