Lines Matching +full:0 +full:x18002000
35 {0x1800101c, 0x00000000},
36 {0x18001100, 0x0000031f},
37 {0x18001104, 0x00000007},
38 {0x18001108, 0x00000000},
39 {0x1800110c, 0x00000000},
40 {0x18001110, 0x00000000},
41 {0x18001114, 0x00000001},
42 {0x18001118, 0x00000000},
43 {0x18002f08, 0x00000006},
44 {0x18002f00, 0x00055149},
45 {0x18002f00, 0x0005514b},
46 {0x18002f00, 0x00055149},
47 {0xfafafafa, 0x00000001},
48 {0x18002f10, 0x00000001},
49 {0x18002f10, 0x00000000},
50 {0x18002f10, 0x00000001},
51 {0xfafafafa, 0x00000001},
52 {0x18002000, 0x000010ec},
53 {0xfafafafa, 0x00000000},
57 {RT5514_DIG_IO_CTRL, 0x00000040},
58 {RT5514_CLK_CTRL1, 0x38020041},
59 {RT5514_SRC_CTRL, 0x44000eee},
60 {RT5514_ANA_CTRL_LDO10, 0x00028604},
61 {RT5514_ANA_CTRL_ADCFED, 0x00000800},
62 {RT5514_ASRC_IN_CTRL1, 0x00000003},
63 {RT5514_DOWNFILTER0_CTRL3, 0x10000342},
64 {RT5514_DOWNFILTER1_CTRL3, 0x10000342},
68 {RT5514_RESET, 0x00000000},
69 {RT5514_PWR_ANA1, 0x00808880},
70 {RT5514_PWR_ANA2, 0x00220000},
71 {RT5514_I2S_CTRL1, 0x00000330},
72 {RT5514_I2S_CTRL2, 0x20000000},
73 {RT5514_VAD_CTRL6, 0xc00007d2},
74 {RT5514_EXT_VAD_CTRL, 0x80000080},
75 {RT5514_DIG_IO_CTRL, 0x00000040},
76 {RT5514_PAD_CTRL1, 0x00804000},
77 {RT5514_DMIC_DATA_CTRL, 0x00000005},
78 {RT5514_DIG_SOURCE_CTRL, 0x00000002},
79 {RT5514_SRC_CTRL, 0x44000eee},
80 {RT5514_DOWNFILTER2_CTRL1, 0x0000882f},
81 {RT5514_PLL_SOURCE_CTRL, 0x00000004},
82 {RT5514_CLK_CTRL1, 0x38020041},
83 {RT5514_CLK_CTRL2, 0x00000000},
84 {RT5514_PLL3_CALIB_CTRL1, 0x00400200},
85 {RT5514_PLL3_CALIB_CTRL5, 0x40220012},
86 {RT5514_DELAY_BUF_CTRL1, 0x7fff006a},
87 {RT5514_DELAY_BUF_CTRL3, 0x00000000},
88 {RT5514_ASRC_IN_CTRL1, 0x00000003},
89 {RT5514_DOWNFILTER0_CTRL1, 0x00020c2f},
90 {RT5514_DOWNFILTER0_CTRL2, 0x00020c2f},
91 {RT5514_DOWNFILTER0_CTRL3, 0x10000342},
92 {RT5514_DOWNFILTER1_CTRL1, 0x00020c2f},
93 {RT5514_DOWNFILTER1_CTRL2, 0x00020c2f},
94 {RT5514_DOWNFILTER1_CTRL3, 0x10000342},
95 {RT5514_ANA_CTRL_LDO10, 0x00028604},
96 {RT5514_ANA_CTRL_LDO18_16, 0x02000345},
97 {RT5514_ANA_CTRL_ADC12, 0x0000a2a8},
98 {RT5514_ANA_CTRL_ADC21, 0x00001180},
99 {RT5514_ANA_CTRL_ADC22, 0x0000aaa8},
100 {RT5514_ANA_CTRL_ADC23, 0x00151427},
101 {RT5514_ANA_CTRL_MICBST, 0x00002000},
102 {RT5514_ANA_CTRL_ADCFED, 0x00000800},
103 {RT5514_ANA_CTRL_INBUF, 0x00000143},
104 {RT5514_ANA_CTRL_VREF, 0x00008d50},
105 {RT5514_ANA_CTRL_PLL3, 0x0000000e},
106 {RT5514_ANA_CTRL_PLL1_1, 0x00000000},
107 {RT5514_ANA_CTRL_PLL1_2, 0x00030220},
108 {RT5514_DMIC_LP_CTRL, 0x00000000},
109 {RT5514_MISC_CTRL_DSP, 0x00000000},
110 {RT5514_DSP_CTRL1, 0x00055149},
111 {RT5514_DSP_CTRL3, 0x00000006},
112 {RT5514_DSP_CTRL4, 0x00000001},
113 {RT5514_VENDOR_ID1, 0x00000001},
114 {RT5514_VENDOR_ID2, 0x10ec5514},
120 regmap_write(rt5514->i2c_regmap, 0x18002000, 0x000010ec); in rt5514_enable_dsp_prepare()
122 regmap_write(rt5514->i2c_regmap, 0x18002200, 0x00028604); in rt5514_enable_dsp_prepare()
124 regmap_write(rt5514->i2c_regmap, 0xfafafafa, 0x00000001); in rt5514_enable_dsp_prepare()
126 regmap_write(rt5514->i2c_regmap, 0x18002f00, 0x0005514b); in rt5514_enable_dsp_prepare()
127 regmap_write(rt5514->i2c_regmap, 0x18002f00, 0x00055149); in rt5514_enable_dsp_prepare()
129 regmap_write(rt5514->i2c_regmap, 0xfafafafa, 0x00000000); in rt5514_enable_dsp_prepare()
131 regmap_write(rt5514->i2c_regmap, 0x18002070, 0x00000040); in rt5514_enable_dsp_prepare()
133 regmap_write(rt5514->i2c_regmap, 0x18002240, 0x0000000a); in rt5514_enable_dsp_prepare()
135 regmap_write(rt5514->i2c_regmap, 0x18002100, 0x0000000b); in rt5514_enable_dsp_prepare()
137 regmap_write(rt5514->i2c_regmap, 0x18002004, 0x00808b81); in rt5514_enable_dsp_prepare()
139 regmap_write(rt5514->i2c_regmap, 0x18002f08, 0x00000005); in rt5514_enable_dsp_prepare()
141 regmap_write(rt5514->i2c_regmap, 0x18001114, 0x00000001); in rt5514_enable_dsp_prepare()
143 regmap_write(rt5514->i2c_regmap, 0x18001118, 0x00000001); in rt5514_enable_dsp_prepare()
273 /* {-3, 0, +3, +4.5, +7.5, +9.5, +12, +14, +17} dB */
275 0, 2, TLV_DB_SCALE_ITEM(-300, 300, 0),
276 3, 3, TLV_DB_SCALE_ITEM(450, 0, 0),
277 4, 4, TLV_DB_SCALE_ITEM(750, 0, 0),
278 5, 5, TLV_DB_SCALE_ITEM(950, 0, 0),
279 6, 6, TLV_DB_SCALE_ITEM(1200, 0, 0),
280 7, 7, TLV_DB_SCALE_ITEM(1400, 0, 0),
281 8, 8, TLV_DB_SCALE_ITEM(1700, 0, 0)
284 static const DECLARE_TLV_DB_SCALE(adc_vol_tlv, -1725, 75, 0);
292 ucontrol->value.integer.value[0] = rt5514->dsp_enabled; in rt5514_dsp_voice_wake_up_get()
294 return 0; in rt5514_dsp_voice_wake_up_get()
300 regmap_write(rt5514->regmap, RT5514_ANA_CTRL_PLL3, 0x0000000a); in rt5514_calibration()
301 regmap_update_bits(rt5514->regmap, RT5514_PLL_SOURCE_CTRL, 0xf, in rt5514_calibration()
302 0xa); in rt5514_calibration()
303 regmap_update_bits(rt5514->regmap, RT5514_PWR_ANA1, 0x301, in rt5514_calibration()
304 0x301); in rt5514_calibration()
306 0x80000000 | rt5514->pll3_cal_value); in rt5514_calibration()
308 0x8bb80800); in rt5514_calibration()
310 0xc0000000, 0x80000000); in rt5514_calibration()
312 0xc0000000, 0xc0000000); in rt5514_calibration()
315 0xc0000000, 0x40000000); in rt5514_calibration()
316 regmap_update_bits(rt5514->regmap, RT5514_PWR_ANA1, 0x301, 0); in rt5514_calibration()
317 regmap_update_bits(rt5514->regmap, RT5514_PLL_SOURCE_CTRL, 0xf, in rt5514_calibration()
318 0x4); in rt5514_calibration()
321 return 0; in rt5514_calibration()
332 if (ucontrol->value.integer.value[0] == rt5514->dsp_enabled) in rt5514_dsp_voice_wake_up_put()
333 return 0; in rt5514_dsp_voice_wake_up_put()
336 rt5514->dsp_enabled = ucontrol->value.integer.value[0]; in rt5514_dsp_voice_wake_up_put()
359 memset(buf, 0, sizeof(buf)); in rt5514_dsp_voice_wake_up_put()
361 rt5514->pll3_cal_value = buf[0] | buf[1] << 8 | in rt5514_dsp_voice_wake_up_put()
373 rt5514_spi_burst_write(0x4ff60000, fw->data, in rt5514_dsp_voice_wake_up_put()
386 rt5514_spi_burst_write(0x4ffc0000, fw->data, in rt5514_dsp_voice_wake_up_put()
397 regmap_write(rt5514->i2c_regmap, 0x18002f00, in rt5514_dsp_voice_wake_up_put()
398 0x00055148); in rt5514_dsp_voice_wake_up_put()
404 regmap_write(rt5514->i2c_regmap, 0x1800211c, in rt5514_dsp_voice_wake_up_put()
406 regmap_write(rt5514->i2c_regmap, 0x18002124, in rt5514_dsp_voice_wake_up_put()
407 0x00220012); in rt5514_dsp_voice_wake_up_put()
408 regmap_write(rt5514->i2c_regmap, 0x18002124, in rt5514_dsp_voice_wake_up_put()
409 0x80220042); in rt5514_dsp_voice_wake_up_put()
410 regmap_write(rt5514->i2c_regmap, 0x18002124, in rt5514_dsp_voice_wake_up_put()
411 0xe0220042); in rt5514_dsp_voice_wake_up_put()
426 RT5514_SEL_BSTL_SFT, RT5514_SEL_BSTR_SFT, 8, 0, bst_tlv),
428 RT5514_DOWNFILTER0_CTRL2, RT5514_AD_GAIN_SFT, 63, 0,
431 RT5514_DOWNFILTER1_CTRL2, RT5514_AD_GAIN_SFT, 63, 0,
433 SOC_SINGLE_EXT("DSP Voice Wake Up", SND_SOC_NOPM, 0, 1, 0,
499 if (rate < 1000000 * div[0]) { in rt5514_calc_dmic_clk()
504 for (i = 0; i < ARRAY_SIZE(div); i++) { in rt5514_calc_dmic_clk()
522 if (idx < 0) in rt5514_set_dmic_clk()
544 return 0; in rt5514_is_sys_clk_from_pll()
566 SND_SOC_DAPM_PGA("DMIC1", SND_SOC_NOPM, 0, 0, NULL, 0),
567 SND_SOC_DAPM_PGA("DMIC2", SND_SOC_NOPM, 0, 0, NULL, 0),
569 SND_SOC_DAPM_SUPPLY_S("DMIC CLK", 1, SND_SOC_NOPM, 0, 0,
573 RT5514_CLK_AD_ANA1_EN_BIT, 0, NULL, 0),
576 RT5514_POW_LDO18_IN_BIT, 0, NULL, 0),
578 RT5514_POW_LDO18_ADC_BIT, 0, NULL, 0),
579 SND_SOC_DAPM_SUPPLY("LDO21", RT5514_PWR_ANA1, RT5514_POW_LDO21_BIT, 0,
580 NULL, 0),
582 RT5514_POW_BG_LDO18_IN_BIT, 0, NULL, 0),
584 RT5514_POW_BG_LDO21_BIT, 0, NULL, 0),
586 RT5514_POW_BG_MBIAS_BIT, 0, NULL, 0),
587 SND_SOC_DAPM_SUPPLY("MBIAS", RT5514_PWR_ANA2, RT5514_POW_MBIAS_BIT, 0,
588 NULL, 0),
589 SND_SOC_DAPM_SUPPLY("VREF2", RT5514_PWR_ANA2, RT5514_POW_VREF2_BIT, 0,
590 NULL, 0),
591 SND_SOC_DAPM_SUPPLY("VREF1", RT5514_PWR_ANA2, RT5514_POW_VREF1_BIT, 0,
592 NULL, 0),
593 SND_SOC_DAPM_SUPPLY("ADC Power", SND_SOC_NOPM, 0, 0, NULL, 0),
596 SND_SOC_DAPM_SUPPLY("LDO16L", RT5514_PWR_ANA2, RT5514_POWL_LDO16_BIT, 0,
597 NULL, 0),
598 SND_SOC_DAPM_SUPPLY("ADC1L", RT5514_PWR_ANA2, RT5514_POW_ADC1_L_BIT, 0,
599 NULL, 0),
600 SND_SOC_DAPM_SUPPLY("BSTL2", RT5514_PWR_ANA2, RT5514_POW2_BSTL_BIT, 0,
601 NULL, 0),
602 SND_SOC_DAPM_SUPPLY("BSTL", RT5514_PWR_ANA2, RT5514_POW_BSTL_BIT, 0,
603 NULL, 0),
605 0, NULL, 0),
606 SND_SOC_DAPM_SUPPLY("ADCL Power", SND_SOC_NOPM, 0, 0, NULL, 0),
608 SND_SOC_DAPM_SUPPLY("LDO16R", RT5514_PWR_ANA2, RT5514_POWR_LDO16_BIT, 0,
609 NULL, 0),
610 SND_SOC_DAPM_SUPPLY("ADC1R", RT5514_PWR_ANA2, RT5514_POW_ADC1_R_BIT, 0,
611 NULL, 0),
612 SND_SOC_DAPM_SUPPLY("BSTR2", RT5514_PWR_ANA2, RT5514_POW2_BSTR_BIT, 0,
613 NULL, 0),
614 SND_SOC_DAPM_SUPPLY("BSTR", RT5514_PWR_ANA2, RT5514_POW_BSTR_BIT, 0,
615 NULL, 0),
617 0, NULL, 0),
618 SND_SOC_DAPM_SUPPLY("ADCR Power", SND_SOC_NOPM, 0, 0, NULL, 0),
621 RT5514_EN_LDO_PLL1_BIT, 0, NULL, 0),
623 RT5514_POW_PLL1_LDO_BIT, 0, NULL, 0),
624 SND_SOC_DAPM_SUPPLY("PLL1", RT5514_PWR_ANA2, RT5514_POW_PLL1_BIT, 0,
625 NULL, 0),
627 RT5514_CLK_AD0_ASRC_EN_BIT, 0, NULL, 0),
629 RT5514_CLK_AD1_ASRC_EN_BIT, 0, NULL, 0),
632 SND_SOC_DAPM_MUX("Stereo1 DMIC Mux", SND_SOC_NOPM, 0, 0,
634 SND_SOC_DAPM_MUX("Stereo2 DMIC Mux", SND_SOC_NOPM, 0, 0,
639 RT5514_CLK_AD0_EN_BIT, 0, NULL, 0),
641 RT5514_CLK_AD1_EN_BIT, 0, NULL, 0),
643 SND_SOC_DAPM_MIXER("Sto1 ADC MIXL", SND_SOC_NOPM, 0, 0,
645 SND_SOC_DAPM_MIXER("Sto1 ADC MIXR", SND_SOC_NOPM, 0, 0,
647 SND_SOC_DAPM_MIXER("Sto2 ADC MIXL", SND_SOC_NOPM, 0, 0,
649 SND_SOC_DAPM_MIXER("Sto2 ADC MIXR", SND_SOC_NOPM, 0, 0,
662 SND_SOC_DAPM_PGA("Stereo1 ADC MIX", SND_SOC_NOPM, 0, 0, NULL, 0),
663 SND_SOC_DAPM_PGA("Stereo2 ADC MIX", SND_SOC_NOPM, 0, 0, NULL, 0),
666 SND_SOC_DAPM_AIF_OUT("AIF1TX", "AIF1 Capture", 0, SND_SOC_NOPM, 0, 0),
756 unsigned int val_len = 0; in rt5514_hw_params()
760 if (pre_div < 0) { in rt5514_hw_params()
766 if (frame_size < 0) { in rt5514_hw_params()
805 return 0; in rt5514_hw_params()
812 unsigned int reg_val = 0; in rt5514_set_dai_fmt()
858 return 0; in rt5514_set_dai_fmt()
866 unsigned int reg_val = 0; in rt5514_set_dai_sysclk()
869 return 0; in rt5514_set_dai_sysclk()
893 return 0; in rt5514_set_dai_sysclk()
907 rt5514->pll_in = 0; in rt5514_set_dai_pll()
908 rt5514->pll_out = 0; in rt5514_set_dai_pll()
913 return 0; in rt5514_set_dai_pll()
918 return 0; in rt5514_set_dai_pll()
937 if (ret < 0) { in rt5514_set_dai_pll()
943 pll_code.m_bp, (pll_code.m_bp ? 0 : pll_code.m_code), in rt5514_set_dai_pll()
949 (pll_code.m_bp ? 0 : pll_code.m_code) << RT5514_PLL_M_SFT); in rt5514_set_dai_pll()
957 return 0; in rt5514_set_dai_pll()
965 unsigned int val = 0, val2 = 0; in rt5514_set_tdm_slot()
971 case 0x3: in rt5514_set_tdm_slot()
976 case 0x30: in rt5514_set_tdm_slot()
981 case 0xf: in rt5514_set_tdm_slot()
986 case 0xf0: in rt5514_set_tdm_slot()
1046 return 0; in rt5514_set_tdm_slot()
1077 rt5514->dsp_enabled = 0; in rt5514_set_bias_level()
1091 return 0; in rt5514_set_bias_level()
1112 rt5514->pll3_cal_value = 0x0078b000; in rt5514_probe()
1114 return 0; in rt5514_probe()
1124 return 0; in rt5514_i2c_read()
1134 return 0; in rt5514_i2c_write()
1152 .id = 0,
1205 { "rt5514", 0 },
1220 { "10EC5514", 0},
1235 return 0; in rt5514_parse_dp()
1250 return 0; in rt5514_i2c_resume()
1258 unsigned int val = ~0; in rt5514_i2c_probe()
1305 if (ret != 0) in rt5514_i2c_probe()
1311 if (ret != 0) in rt5514_i2c_probe()