Lines Matching +full:apb +full:- +full:base
14 #include <linux/clk-provider.h>
21 void __iomem *base; in moxart_of_pll_clk_init() local
25 const char *name = node->name; in moxart_of_pll_clk_init()
28 of_property_read_string(node, "clock-output-names", &name); in moxart_of_pll_clk_init()
31 base = of_iomap(node, 0); in moxart_of_pll_clk_init()
32 if (!base) { in moxart_of_pll_clk_init()
37 mul = readl(base + 0x30) >> 3 & 0x3f; in moxart_of_pll_clk_init()
38 iounmap(base); in moxart_of_pll_clk_init()
55 CLK_OF_DECLARE(moxart_pll_clock, "moxa,moxart-pll-clock",
60 void __iomem *base; in moxart_of_apb_clk_init() local
65 const char *name = node->name; in moxart_of_apb_clk_init()
68 of_property_read_string(node, "clock-output-names", &name); in moxart_of_apb_clk_init()
71 base = of_iomap(node, 0); in moxart_of_apb_clk_init()
72 if (!base) { in moxart_of_apb_clk_init()
77 val = readl(base + 0xc) >> 4 & 0x7; in moxart_of_apb_clk_init()
78 iounmap(base); in moxart_of_apb_clk_init()
99 CLK_OF_DECLARE(moxart_apb_clock, "moxa,moxart-apb-clock",