Home
last modified time | relevance | path

Searched refs:cpg (Results 1 – 10 of 10) sorted by relevance

/linux-4.19.296/drivers/clk/renesas/
DMakefile7 obj-$(CONFIG_CLK_R8A7743) += r8a7743-cpg-mssr.o
8 obj-$(CONFIG_CLK_R8A7745) += r8a7745-cpg-mssr.o
9 obj-$(CONFIG_CLK_R8A77470) += r8a77470-cpg-mssr.o
12 obj-$(CONFIG_CLK_R8A7790) += r8a7790-cpg-mssr.o
13 obj-$(CONFIG_CLK_R8A7791) += r8a7791-cpg-mssr.o
14 obj-$(CONFIG_CLK_R8A7792) += r8a7792-cpg-mssr.o
15 obj-$(CONFIG_CLK_R8A7794) += r8a7794-cpg-mssr.o
16 obj-$(CONFIG_CLK_R8A7795) += r8a7795-cpg-mssr.o
17 obj-$(CONFIG_CLK_R8A7796) += r8a7796-cpg-mssr.o
18 obj-$(CONFIG_CLK_R8A77965) += r8a77965-cpg-mssr.o
[all …]
Dclk-sh73a0.c77 sh73a0_cpg_register_clock(struct device_node *np, struct sh73a0_cpg *cpg, in sh73a0_cpg_register_clock() argument
88 u32 parent_idx = (readl(cpg->reg + CPG_CKSCR) >> 28) & 3; in sh73a0_cpg_register_clock()
93 void __iomem *enable_reg = cpg->reg; in sh73a0_cpg_register_clock()
113 if (readl(cpg->reg + CPG_PLLECR) & BIT(enable_bit)) { in sh73a0_cpg_register_clock()
122 void __iomem *dsi_reg = cpg->reg + in sh73a0_cpg_register_clock()
159 cpg->reg + reg, shift, width, 0, in sh73a0_cpg_register_clock()
160 table, &cpg->lock); in sh73a0_cpg_register_clock()
166 struct sh73a0_cpg *cpg; in sh73a0_cpg_clocks_init() local
177 cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); in sh73a0_cpg_clocks_init()
179 if (cpg == NULL || clks == NULL) { in sh73a0_cpg_clocks_init()
[all …]
Dclk-r8a73a4.c63 r8a73a4_cpg_register_clock(struct device_node *np, struct r8a73a4_cpg *cpg, in r8a73a4_cpg_register_clock() argument
74 u32 ckscr = readl(cpg->reg + CPG_CKSCR); in r8a73a4_cpg_register_clock()
98 u32 value = readl(cpg->reg + CPG_PLL0CR); in r8a73a4_cpg_register_clock()
105 u32 value = readl(cpg->reg + CPG_PLL1CR); in r8a73a4_cpg_register_clock()
128 value = readl(cpg->reg + cr); in r8a73a4_cpg_register_clock()
164 mult = 0x20 - ((readl(cpg->reg + CPG_FRQCRC) >> shift) & 0x1f); in r8a73a4_cpg_register_clock()
186 cpg->reg + reg, shift, 4, 0, in r8a73a4_cpg_register_clock()
187 table, &cpg->lock); in r8a73a4_cpg_register_clock()
193 struct r8a73a4_cpg *cpg; in r8a73a4_cpg_clocks_init() local
204 cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); in r8a73a4_cpg_clocks_init()
[all …]
Dclk-r8a7740.c65 r8a7740_cpg_register_clock(struct device_node *np, struct r8a7740_cpg *cpg, in r8a7740_cpg_register_clock() argument
101 u32 value = readl(cpg->reg + CPG_FRQCRC); in r8a7740_cpg_register_clock()
105 u32 value = readl(cpg->reg + CPG_FRQCRA); in r8a7740_cpg_register_clock()
110 u32 value = readl(cpg->reg + CPG_PLLC2CR); in r8a7740_cpg_register_clock()
114 u32 value = readl(cpg->reg + CPG_USBCKCR); in r8a7740_cpg_register_clock()
142 cpg->reg + reg, shift, 4, 0, in r8a7740_cpg_register_clock()
143 table, &cpg->lock); in r8a7740_cpg_register_clock()
149 struct r8a7740_cpg *cpg; in r8a7740_cpg_clocks_init() local
163 cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); in r8a7740_cpg_clocks_init()
165 if (cpg == NULL || clks == NULL) { in r8a7740_cpg_clocks_init()
[all …]
Dclk-rz.c54 rz_cpg_register_clock(struct device_node *np, struct rz_cpg *cpg, const char *name) in rz_cpg_register_clock() argument
70 if (!cpg->reg) in rz_cpg_register_clock()
78 val = (readl(cpg->reg + CPG_FRQCR) >> 8) & 3; in rz_cpg_register_clock()
80 val = readl(cpg->reg + CPG_FRQCR2) & 3; in rz_cpg_register_clock()
90 struct rz_cpg *cpg; in rz_cpg_clocks_init() local
99 cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); in rz_cpg_clocks_init()
101 BUG_ON(!cpg || !clks); in rz_cpg_clocks_init()
103 cpg->data.clks = clks; in rz_cpg_clocks_init()
104 cpg->data.clk_num = num_clks; in rz_cpg_clocks_init()
106 cpg->reg = of_iomap(np, 0); in rz_cpg_clocks_init()
[all …]
Dclk-rcar-gen2.c138 static struct clk * __init cpg_z_clk_register(struct rcar_gen2_cpg *cpg) in cpg_z_clk_register() argument
155 zclk->reg = cpg->reg + CPG_FRQCRC; in cpg_z_clk_register()
156 zclk->kick_reg = cpg->reg + CPG_FRQCRB; in cpg_z_clk_register()
166 static struct clk * __init cpg_rcan_clk_register(struct rcar_gen2_cpg *cpg, in cpg_rcan_clk_register() argument
187 gate->reg = cpg->reg + CPG_RCANCKCR; in cpg_rcan_clk_register()
190 gate->lock = &cpg->lock; in cpg_rcan_clk_register()
210 static struct clk * __init cpg_adsp_clk_register(struct rcar_gen2_cpg *cpg) in cpg_adsp_clk_register() argument
221 div->reg = cpg->reg + CPG_ADSPCKCR; in cpg_adsp_clk_register()
224 div->lock = &cpg->lock; in cpg_adsp_clk_register()
232 gate->reg = cpg->reg + CPG_ADSPCKCR; in cpg_adsp_clk_register()
[all …]
Dclk-r8a7778.c53 r8a7778_cpg_register_clock(struct device_node *np, struct r8a7778_cpg *cpg, in r8a7778_cpg_register_clock() argument
83 struct r8a7778_cpg *cpg; in r8a7778_cpg_clocks_init() local
106 cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); in r8a7778_cpg_clocks_init()
108 if (cpg == NULL || clks == NULL) { in r8a7778_cpg_clocks_init()
115 spin_lock_init(&cpg->lock); in r8a7778_cpg_clocks_init()
117 cpg->data.clks = clks; in r8a7778_cpg_clocks_init()
118 cpg->data.clk_num = num_clks; in r8a7778_cpg_clocks_init()
120 cpg->reg = of_iomap(np, 0); in r8a7778_cpg_clocks_init()
121 if (WARN_ON(cpg->reg == NULL)) in r8a7778_cpg_clocks_init()
131 clk = r8a7778_cpg_register_clock(np, cpg, name); in r8a7778_cpg_clocks_init()
[all …]
Dclk-r8a7779.c93 r8a7779_cpg_register_clock(struct device_node *np, struct r8a7779_cpg *cpg, in r8a7779_cpg_register_clock() argument
125 struct r8a7779_cpg *cpg; in r8a7779_cpg_clocks_init() local
140 cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); in r8a7779_cpg_clocks_init()
142 if (cpg == NULL || clks == NULL) { in r8a7779_cpg_clocks_init()
149 spin_lock_init(&cpg->lock); in r8a7779_cpg_clocks_init()
151 cpg->data.clks = clks; in r8a7779_cpg_clocks_init()
152 cpg->data.clk_num = num_clks; in r8a7779_cpg_clocks_init()
164 clk = r8a7779_cpg_register_clock(np, cpg, config, in r8a7779_cpg_clocks_init()
170 cpg->data.clks[i] = clk; in r8a7779_cpg_clocks_init()
173 of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data); in r8a7779_cpg_clocks_init()
/linux-4.19.296/drivers/sh/clk/
DMakefile3 obj-$(CONFIG_SH_CLK_CPG) += cpg.o
/linux-4.19.296/fs/ocfs2/
Djournal.h570 unsigned int cpg) in ocfs2_calc_group_alloc_credits() argument