/drivers/clk/spear/ |
D | spear1340_clock.c | 445 struct clk *clk, *clk1; in spear1340_clk_init() local 482 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear1340_clk_init() 484 clk_register_clkdev(clk1, "pll1_clk", NULL); in spear1340_clk_init() 493 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear1340_clk_init() 495 clk_register_clkdev(clk1, "pll2_clk", NULL); in spear1340_clk_init() 504 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear1340_clk_init() 506 clk_register_clkdev(clk1, "pll3_clk", NULL); in spear1340_clk_init() 510 ARRAY_SIZE(pll4_rtbl), &_lock, &clk1, NULL); in spear1340_clk_init() 512 clk_register_clkdev(clk1, "pll4_clk", NULL); in spear1340_clk_init() 639 aux_rtbl, ARRAY_SIZE(aux_rtbl), &_lock, &clk1); in spear1340_clk_init() [all …]
|
D | spear3xx_clock.c | 377 struct clk *clk, *clk1; in spear3xx_clk_init() local 403 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear3xx_clk_init() 405 clk_register_clkdev(clk1, "pll1_clk", NULL); in spear3xx_clk_init() 409 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear3xx_clk_init() 411 clk_register_clkdev(clk1, "pll2_clk", NULL); in spear3xx_clk_init() 425 &_lock, &clk1); in spear3xx_clk_init() 427 clk_register_clkdev(clk1, "uart_syn_gclk", NULL); in spear3xx_clk_init() 442 &_lock, &clk1); in spear3xx_clk_init() 444 clk_register_clkdev(clk1, "firda_syn_gclk", NULL); in spear3xx_clk_init() 490 &_lock, &clk1); in spear3xx_clk_init() [all …]
|
D | spear6xx_clock.c | 119 struct clk *clk, *clk1; in spear6xx_clk_init() local 141 &_lock, &clk1, NULL); in spear6xx_clk_init() 143 clk_register_clkdev(clk1, "pll1_clk", NULL); in spear6xx_clk_init() 147 &_lock, &clk1, NULL); in spear6xx_clk_init() 149 clk_register_clkdev(clk1, "pll2_clk", NULL); in spear6xx_clk_init() 167 &_lock, &clk1); in spear6xx_clk_init() 169 clk_register_clkdev(clk1, "uart_syn_gclk", NULL); in spear6xx_clk_init() 186 &_lock, &clk1); in spear6xx_clk_init() 188 clk_register_clkdev(clk1, "firda_syn_gclk", NULL); in spear6xx_clk_init() 201 &_lock, &clk1); in spear6xx_clk_init() [all …]
|
D | spear1310_clock.c | 388 struct clk *clk, *clk1; in spear1310_clk_init() local 425 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear1310_clk_init() 427 clk_register_clkdev(clk1, "pll1_clk", NULL); in spear1310_clk_init() 436 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear1310_clk_init() 438 clk_register_clkdev(clk1, "pll2_clk", NULL); in spear1310_clk_init() 447 ARRAY_SIZE(pll_rtbl), &_lock, &clk1, NULL); in spear1310_clk_init() 449 clk_register_clkdev(clk1, "pll3_clk", NULL); in spear1310_clk_init() 453 ARRAY_SIZE(pll4_rtbl), &_lock, &clk1, NULL); in spear1310_clk_init() 455 clk_register_clkdev(clk1, "pll4_clk", NULL); in spear1310_clk_init() 560 ARRAY_SIZE(aux_rtbl), &_lock, &clk1); in spear1310_clk_init() [all …]
|
/drivers/gpu/drm/nouveau/ |
D | nvc0_pm.c | 275 u32 clk0, clk1 = 0; in calc_clk() local 288 clk1 = calc_pll(dev, clk, freq, &info->coef); in calc_clk() 290 clk1 = read_pll(dev, 0x1370e0); in calc_clk() 291 clk1 = calc_div(dev, clk, clk1, freq, &div1P); in calc_clk() 295 if (abs((int)freq - clk0) <= abs((int)freq - clk1)) { in calc_clk() 314 info->freq = clk1; in calc_clk()
|
D | nv50_pm.c | 409 u32 clk0 = src, clk1 = src; in calc_div() local 412 clk1 = clk0 << (*div ? 1 : 0); in calc_div() 418 if (target - clk0 <= clk1 - target) in calc_div() 421 return clk1; in calc_div()
|