Lines Matching +full:1 +full:mhz
13 * * power-on default is 26Mhz, confirmed with a hacked SOF that
15 * * The original driver has a 13Mhz mode too, but it doesn't work (it
16 * hits all the same code and data paths as 26MHz and acts as a
35 #define MTK_PLL_CON4_ISO_EN BIT(1)
61 #define MTK_CK_CG_SW 1
63 const struct { uint16_t mhz; bool pll; uint32_t pll_con2; } freqs[] = { member
73 * an OS timer driver yet. Use the 13 MHz timer hardware directly.
91 delay_us(1); in set_pll_power()
93 delay_us(1); in set_pll_power()
98 delay_us(1); in set_pll_power()
100 delay_us(1); in set_pll_power()
123 void mtk_adsp_set_cpu_freq(int mhz) in mtk_adsp_set_cpu_freq() argument
128 if (freqs[idx].mhz == mhz) { in mtk_adsp_set_cpu_freq()
133 if (idx == cur_idx || freqs[idx].mhz != mhz) { in mtk_adsp_set_cpu_freq()
138 /* Switch to PLL from 26Mhz */ in mtk_adsp_set_cpu_freq()
144 /* Switch to 26Mhz from PLL */ in mtk_adsp_set_cpu_freq()
154 * the speed we're at (on MT8195, hardware powers up at 26 Mhz, but
161 mtk_adsp_set_cpu_freq(freqs[0].mhz); in mtk_adsp_cpu_freq_init()
162 mtk_adsp_set_cpu_freq(freqs[ARRAY_SIZE(freqs) - 1].mhz); in mtk_adsp_cpu_freq_init()