Searched refs:freq_id (Results 1 – 9 of 9) sorted by relevance
/openbmc/u-boot/drivers/timer/ |
H A D | tsc_timer.c | 134 #define id_to_freq(cpu_index, freq_id) \ argument 135 (freq_desc_tables[cpu_index].freqs[freq_id]) 149 u32 lo, hi, ratio, freq_id, freq; in cpu_mhz_from_msr() local 176 freq_id = lo & 0x7; in cpu_mhz_from_msr() 177 freq = id_to_freq(cpu_index, freq_id); in cpu_mhz_from_msr() 179 freq_id, freq); in cpu_mhz_from_msr()
|
/openbmc/u-boot/arch/arm/cpu/armv7/bcm281xx/ |
H A D | clk-core.c | 283 reg = ccu_clk->freq_id | in ccu_clk_enable() 284 (ccu_clk->freq_id << (ccu_clk->freq_bit_shift)) | in ccu_clk_enable() 285 (ccu_clk->freq_id << (ccu_clk->freq_bit_shift * 2)) | in ccu_clk_enable() 286 (ccu_clk->freq_id << (ccu_clk->freq_bit_shift * 3)); in ccu_clk_enable() 323 c->rate = ccu_clk->freq_tbl[ccu_clk->freq_id]; in ccu_clk_get_rate() 382 c->rate = bus_clk->freq_tbl[ccu_clk->freq_id]; in bus_clk_get_rate() 383 c->div = ccu_clk->freq_tbl[ccu_clk->freq_id] / c->rate; in bus_clk_get_rate()
|
H A D | clk-bcm281xx.c | 284 .freq_id = 2, 307 .freq_id = 2, 327 .freq_id = 2,
|
H A D | clk-core.h | 435 int freq_id; member
|
/openbmc/u-boot/arch/arm/cpu/armv7/bcm235xx/ |
H A D | clk-core.c | 283 reg = ccu_clk->freq_id | in ccu_clk_enable() 284 (ccu_clk->freq_id << (ccu_clk->freq_bit_shift)) | in ccu_clk_enable() 285 (ccu_clk->freq_id << (ccu_clk->freq_bit_shift * 2)) | in ccu_clk_enable() 286 (ccu_clk->freq_id << (ccu_clk->freq_bit_shift * 3)); in ccu_clk_enable() 323 c->rate = ccu_clk->freq_tbl[ccu_clk->freq_id]; in ccu_clk_get_rate() 382 c->rate = bus_clk->freq_tbl[ccu_clk->freq_id]; in bus_clk_get_rate() 383 c->div = ccu_clk->freq_tbl[ccu_clk->freq_id] / c->rate; in bus_clk_get_rate()
|
H A D | clk-bcm235xx.c | 284 .freq_id = 2, 303 .freq_id = 2, 323 .freq_id = 2,
|
H A D | clk-core.h | 435 int freq_id; member
|
/openbmc/linux/sound/soc/codecs/ |
H A D | cs35l56.c | 591 int freq_id; in cs35l56_asp_dai_hw_params() local 602 freq_id = cs35l56_get_bclk_freq_id(bclk_freq); in cs35l56_asp_dai_hw_params() 603 if (freq_id < 0) { in cs35l56_asp_dai_hw_params() 610 freq_id << CS35L56_ASP_BCLK_FREQ_SHIFT); in cs35l56_asp_dai_hw_params() 634 int freq_id; in cs35l56_asp_dai_set_sysclk() local 641 freq_id = cs35l56_get_bclk_freq_id(freq); in cs35l56_asp_dai_set_sysclk() 642 if (freq_id < 0) in cs35l56_asp_dai_set_sysclk() 643 return freq_id; in cs35l56_asp_dai_set_sysclk() 647 freq_id << CS35L56_ASP_BCLK_FREQ_SHIFT); in cs35l56_asp_dai_set_sysclk()
|
H A D | cs35l45.c | 452 int freq_id; in cs35l45_set_pll() local 454 freq_id = cs35l45_get_clk_freq_id(freq); in cs35l45_set_pll() 455 if (freq_id < 0) { in cs35l45_set_pll() 462 if (val == freq_id) in cs35l45_set_pll() 468 freq_id << CS35L45_PLL_REFCLK_FREQ_SHIFT); in cs35l45_set_pll()
|