Lines Matching +full:- +full:refclk

1 // SPDX-License-Identifier: GPL-2.0
6 * Alexandre Belloni <alexandre.belloni@free-electrons.com>
10 #include <linux/clk-provider.h>
17 #include <dt-bindings/clock/berlin2.h>
19 #include "berlin2-avpll.h"
20 #include "berlin2-div.h"
21 #include "berlin2-pll.h"
77 * - audio_fast_pll is unknown
78 * - audiohd_pll is unknown
79 * - video0_pll is unknown
80 * - audio[023], audiohd parent pll is assumed to be audio_fast_pll
90 REFCLK, VIDEO_EXT0, enumerator
103 [REFCLK] = "refclk",
505 clk_data->num = MAX_CLKS; in berlin2_clock_setup()
506 hws = clk_data->hws; in berlin2_clock_setup()
513 clk = of_clk_get_by_name(np, clk_names[REFCLK]); in berlin2_clock_setup()
515 clk_names[REFCLK] = __clk_get_name(clk); in berlin2_clock_setup()
527 clk_names[SYSPLL], clk_names[REFCLK], 0); in berlin2_clock_setup()
532 clk_names[MEMPLL], clk_names[REFCLK], 0); in berlin2_clock_setup()
537 clk_names[CPUPLL], clk_names[REFCLK], 0); in berlin2_clock_setup()
541 if (of_device_is_compatible(np, "marvell,berlin2-global-register")) in berlin2_clock_setup()
546 clk_names[REFCLK], avpll_flags, 0); in berlin2_clock_setup()
559 clk_names[REFCLK], BERLIN2_AVPLL_BIT_QUIRK | in berlin2_clock_setup()
574 parent_names[1] = clk_names[REFCLK]; in berlin2_clock_setup()
582 parent_names[1] = clk_names[REFCLK]; in berlin2_clock_setup()
590 parent_names[1] = clk_names[REFCLK]; in berlin2_clock_setup()
645 for (k = 0; k < dd->num_parents; k++) in berlin2_clock_setup()
646 parent_names[k] = clk_names[dd->parent_ids[k]]; in berlin2_clock_setup()
648 hws[CLKID_SYS + n] = berlin2_div_register(&dd->map, gbase, in berlin2_clock_setup()
649 dd->name, dd->div_flags, parent_names, in berlin2_clock_setup()
650 dd->num_parents, dd->flags, &lock); in berlin2_clock_setup()
657 hws[CLKID_GETH0 + n] = clk_hw_register_gate(NULL, gd->name, in berlin2_clock_setup()
658 gd->parent_name, gd->flags, gbase + REG_CLKENABLE, in berlin2_clock_setup()
659 gd->bit_idx, 0, &lock); in berlin2_clock_setup()
675 /* register clk-provider */ in berlin2_clock_setup()
683 CLK_OF_DECLARE(berlin2_clk, "marvell,berlin2-clk",