]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mmc: sdhci-msm: Enable ADMA length mismatch error interrupt
authorVeerabhadrarao Badiganti <vbadigan@codeaurora.org>
Mon, 20 Apr 2020 06:20:25 +0000 (11:50 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:20:59 +0000 (11:20 +0200)
ADMA_ERR_SIZE_EN bit of VENDOR_SPECIFIC_FUNC register controls
ADMA length mismatch error interrupt. Enable it by default.

And update all bit shift defines with BIT macro.

Signed-off-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/1587363626-20413-4-git-send-email-vbadigan@codeaurora.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-msm.c

index 11139d7d394ac444b5ca4f1df07322b493a9c587..c2ae599c71335094b201849ed15d60b401192da8 100644 (file)
 #define CORE_FLL_CYCLE_CNT     BIT(18)
 #define CORE_DLL_CLOCK_DISABLE BIT(21)
 
-#define CORE_VENDOR_SPEC_POR_VAL 0xa1c
+#define CORE_VENDOR_SPEC_POR_VAL 0xa9c
 #define CORE_CLK_PWRSAVE       BIT(1)
 #define CORE_HC_MCLK_SEL_DFLT  (2 << 8)
 #define CORE_HC_MCLK_SEL_HS400 (3 << 8)
 #define CORE_HC_MCLK_SEL_MASK  (3 << 8)
-#define CORE_IO_PAD_PWR_SWITCH_EN      (1 << 15)
-#define CORE_IO_PAD_PWR_SWITCH  (1 << 16)
+#define CORE_IO_PAD_PWR_SWITCH_EN      BIT(15)
+#define CORE_IO_PAD_PWR_SWITCH BIT(16)
 #define CORE_HC_SELECT_IN_EN   BIT(18)
 #define CORE_HC_SELECT_IN_HS400        (6 << 19)
 #define CORE_HC_SELECT_IN_MASK (7 << 19)
 
-#define CORE_3_0V_SUPPORT      (1 << 25)
-#define CORE_1_8V_SUPPORT      (1 << 26)
+#define CORE_3_0V_SUPPORT      BIT(25)
+#define CORE_1_8V_SUPPORT      BIT(26)
 #define CORE_VOLT_SUPPORT      (CORE_3_0V_SUPPORT | CORE_1_8V_SUPPORT)
 
 #define CORE_CSR_CDC_CTLR_CFG0         0x130