]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: sdhci-iproc: Use defines instead of magic numbers
authorStefan Wahren <stefan.wahren@i2se.com>
Sat, 2 Jul 2016 19:23:14 +0000 (19:23 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:48 +0000 (10:34 +0200)
The capabilities in iproc platform data are magic numbers. So
replace them with the proper capability defines to make it
readable.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Scott Branden <scott.branden@broadcom.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-iproc.c

index 1110f73b08aa6334b931373e402896a038df8c0a..53abecc4cadaf466c8c8da6c83ab9cca5bf9c8a2 100644 (file)
@@ -164,8 +164,17 @@ static const struct sdhci_pltfm_data sdhci_iproc_pltfm_data = {
 
 static const struct sdhci_iproc_data iproc_data = {
        .pdata = &sdhci_iproc_pltfm_data,
-       .caps = 0x05E90000,
-       .caps1 = 0x00000064,
+       .caps = ((0x1 << SDHCI_MAX_BLOCK_SHIFT)
+                       & SDHCI_MAX_BLOCK_MASK) |
+               SDHCI_CAN_VDD_330 |
+               SDHCI_CAN_VDD_180 |
+               SDHCI_CAN_DO_SUSPEND |
+               SDHCI_CAN_DO_HISPD |
+               SDHCI_CAN_DO_ADMA2 |
+               SDHCI_CAN_DO_SDMA,
+       .caps1 = SDHCI_DRIVER_TYPE_C |
+                SDHCI_DRIVER_TYPE_D |
+                SDHCI_SUPPORT_DDR50,
        .mmc_caps = MMC_CAP_1_8V_DDR,
 };