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",
507 clk_data->num = MAX_CLKS; in berlin2_clock_setup()
508 hws = clk_data->hws; in berlin2_clock_setup()
516 clk = of_clk_get_by_name(np, clk_names[REFCLK]); in berlin2_clock_setup()
518 clk_names[REFCLK] = __clk_get_name(clk); in berlin2_clock_setup()
530 clk_names[SYSPLL], clk_names[REFCLK], 0); in berlin2_clock_setup()
535 clk_names[MEMPLL], clk_names[REFCLK], 0); in berlin2_clock_setup()
540 clk_names[CPUPLL], clk_names[REFCLK], 0); in berlin2_clock_setup()
544 if (of_device_is_compatible(np, "marvell,berlin2-global-register")) in berlin2_clock_setup()
549 clk_names[REFCLK], avpll_flags, 0); in berlin2_clock_setup()
562 clk_names[REFCLK], BERLIN2_AVPLL_BIT_QUIRK | in berlin2_clock_setup()
577 parent_names[1] = clk_names[REFCLK]; in berlin2_clock_setup()
585 parent_names[1] = clk_names[REFCLK]; in berlin2_clock_setup()
593 parent_names[1] = clk_names[REFCLK]; in berlin2_clock_setup()
648 for (k = 0; k < dd->num_parents; k++) in berlin2_clock_setup()
649 parent_names[k] = clk_names[dd->parent_ids[k]]; in berlin2_clock_setup()
651 hws[CLKID_SYS + n] = berlin2_div_register(&dd->map, gbase, in berlin2_clock_setup()
652 dd->name, dd->div_flags, parent_names, in berlin2_clock_setup()
653 dd->num_parents, dd->flags, &lock); in berlin2_clock_setup()
660 hws[CLKID_GETH0 + n] = clk_hw_register_gate(NULL, gd->name, in berlin2_clock_setup()
661 gd->parent_name, gd->flags, gbase + REG_CLKENABLE, in berlin2_clock_setup()
662 gd->bit_idx, 0, &lock); in berlin2_clock_setup()
678 /* register clk-provider */ in berlin2_clock_setup()
686 CLK_OF_DECLARE(berlin2_clk, "marvell,berlin2-clk",