Lines Matching +full:apb +full:- +full:base
1 // SPDX-License-Identifier: GPL-2.0-only
11 #include <linux/clk-provider.h>
18 void __iomem *base; in moxart_of_pll_clk_init() local
22 const char *name = node->name; in moxart_of_pll_clk_init()
25 of_property_read_string(node, "clock-output-names", &name); in moxart_of_pll_clk_init()
28 base = of_iomap(node, 0); in moxart_of_pll_clk_init()
29 if (!base) { in moxart_of_pll_clk_init()
34 mul = readl(base + 0x30) >> 3 & 0x3f; in moxart_of_pll_clk_init()
35 iounmap(base); in moxart_of_pll_clk_init()
52 CLK_OF_DECLARE(moxart_pll_clock, "moxa,moxart-pll-clock",
57 void __iomem *base; in moxart_of_apb_clk_init() local
62 const char *name = node->name; in moxart_of_apb_clk_init()
65 of_property_read_string(node, "clock-output-names", &name); in moxart_of_apb_clk_init()
68 base = of_iomap(node, 0); in moxart_of_apb_clk_init()
69 if (!base) { in moxart_of_apb_clk_init()
74 val = readl(base + 0xc) >> 4 & 0x7; in moxart_of_apb_clk_init()
75 iounmap(base); in moxart_of_apb_clk_init()
96 CLK_OF_DECLARE(moxart_apb_clock, "moxa,moxart-apb-clock",