Lines Matching full:rate

58  * Get the rate of the M-PLL clock from input clock frequency and
88 * Get the rate of the H-PLL clock from input clock frequency and
118 u16 rate = (hpll_reg >> 8) & 3; in ast2400_get_hpll_rate() local
120 clkin = hpll_rates[1][rate]; in ast2400_get_hpll_rate()
123 clkin = hpll_rates[0][rate]; in ast2400_get_hpll_rate()
125 clkin = hpll_rates[0][rate]; in ast2400_get_hpll_rate()
139 * Get the rate of the D2-PLL clock from input clock frequency and
181 u32 rate = ast2400_get_hpll_rate(scu); in ast2400_get_hclk() local
185 return (rate / ahb_div); in ast2400_get_hclk()
190 u32 rate = 0; in ast2400_get_pclk() local
191 rate = ast2400_get_hpll_rate(scu); in ast2400_get_pclk()
196 return (rate / apb_div); in ast2400_get_pclk()
223 ulong rate; in ast2400_clk_get_rate() local
227 rate = ast2400_get_hpll_rate(priv->scu); in ast2400_clk_get_rate()
230 rate = ast2400_get_mpll_rate(priv->scu); in ast2400_clk_get_rate()
233 rate = ast2400_get_d2pll_rate(priv->scu); in ast2400_clk_get_rate()
236 rate = ast2400_get_hclk(priv->scu); in ast2400_clk_get_rate()
239 rate = ast2400_get_pclk(priv->scu); in ast2400_clk_get_rate()
242 rate = ast2400_get_uart_clk_rate(priv->scu, 1); in ast2400_clk_get_rate()
245 rate = ast2400_get_uart_clk_rate(priv->scu, 2); in ast2400_clk_get_rate()
248 rate = ast2400_get_uart_clk_rate(priv->scu, 3); in ast2400_clk_get_rate()
251 rate = ast2400_get_uart_clk_rate(priv->scu, 4); in ast2400_clk_get_rate()
254 rate = ast2400_get_uart_clk_rate(priv->scu, 5); in ast2400_clk_get_rate()
257 rate = ast2400_get_sdio_clk_rate(priv->scu); in ast2400_clk_get_rate()
260 pr_debug("can't get clk rate \n"); in ast2400_clk_get_rate()
265 return rate; in ast2400_clk_get_rate()
270 ulong rate; member
288 default_cfg->rate == requested_rate) { in ast2400_get_clock_config_default()
298 * @input_rate - the rate of input clock in Hz
299 * @requested_rate - desired output rate in Hz
305 * @return The clock rate, when the resulting div_config is used.
339 /* Keep the rate below requested one. */ in ast2400_calc_clock_config()
355 static ulong ast2400_configure_ddr(struct ast2400_scu *scu, ulong rate) in ast2400_configure_ddr() argument
365 ast2400_calc_clock_config(clkin, rate, &div_cfg); in ast2400_configure_ddr()
379 static unsigned long ast2400_clk_set_rate(struct clk *clk, ulong rate) in ast2400_clk_set_rate() argument
387 new_rate = ast2400_configure_ddr(priv->scu, rate); in ast2400_clk_set_rate()
546 unsigned long rate; in soc_clk_dump() local
565 rate = ret; in soc_clk_dump()
581 aspeed_clk_names[i].name, aspeed_clk_names[i].id, rate); in soc_clk_dump()