File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 62
62
#define FINE_TUNE_MODE_EN BIT(27)
63
63
#define BIAS_OK_SIGNAL BIT(29)
64
64
65
+ #define DLL_CONFIG_3_LOW_FREQ_VAL 0x08
66
+ #define DLL_CONFIG_3_HIGH_FREQ_VAL 0x10
67
+
65
68
#define CORE_VENDOR_SPEC_POR_VAL 0xa9c
66
69
#define CORE_CLK_PWRSAVE BIT(1)
67
70
#define CORE_HC_MCLK_SEL_DFLT (2 << 8)
@@ -695,6 +698,16 @@ static int msm_init_cm_dll(struct sdhci_host *host)
695
698
ENABLE_DLL_LOCK_STATUS | BIAS_OK_SIGNAL ;
696
699
writel_relaxed (config , host -> ioaddr +
697
700
msm_offset -> core_dll_usr_ctl );
701
+
702
+ config = readl_relaxed (host -> ioaddr +
703
+ msm_offset -> core_dll_config_3 );
704
+ config &= ~0xFF ;
705
+ if (msm_host -> clk_rate < 150000000 )
706
+ config |= DLL_CONFIG_3_LOW_FREQ_VAL ;
707
+ else
708
+ config |= DLL_CONFIG_3_HIGH_FREQ_VAL ;
709
+ writel_relaxed (config , host -> ioaddr +
710
+ msm_offset -> core_dll_config_3 );
698
711
}
699
712
700
713
config = readl_relaxed (host -> ioaddr +
You can’t perform that action at this time.
0 commit comments