Home
last modified time | relevance | path

Searched refs:cpg_mode (Results 1 – 25 of 25) sorted by relevance

/kernel/linux/linux-5.10/drivers/clk/renesas/
Dclk-r8a7740.c60 static u32 cpg_mode __initdata;
73 switch (cpg_mode & (BIT(2) | BIT(1))) { in r8a7740_cpg_register_clock()
91 if (cpg_mode & BIT(1)) in r8a7740_cpg_register_clock()
152 if (of_property_read_u32(np, "renesas,mode", &cpg_mode)) in r8a7740_cpg_clocks_init()
Dclk-rz.c59 unsigned int cpg_mode = MD_CLK(rz_cpg_read_mode_pins()); in rz_cpg_register_clock() local
60 const char *parent_name = of_clk_get_parent_name(np, cpg_mode); in rz_cpg_register_clock()
62 mult = cpg_mode ? (32 / 4) : 30; in rz_cpg_register_clock()
Dr8a7792-cpg-mssr.c196 u32 cpg_mode; in r8a7792_cpg_mssr_init() local
199 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a7792_cpg_mssr_init()
203 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a7792_cpg_mssr_init()
205 return rcar_gen2_cpg_init(cpg_pll_config, 3, cpg_mode); in r8a7792_cpg_mssr_init()
Dr8a77470-cpg-mssr.c198 u32 cpg_mode; in r8a77470_cpg_mssr_init() local
201 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a77470_cpg_mssr_init()
205 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a77470_cpg_mssr_init()
207 return rcar_gen2_cpg_init(cpg_pll_config, 2, cpg_mode); in r8a77470_cpg_mssr_init()
Dr8a774b1-cpg-mssr.c293 u32 cpg_mode; in r8a774b1_cpg_mssr_init() local
296 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a774b1_cpg_mssr_init()
300 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a774b1_cpg_mssr_init()
302 dev_err(dev, "Prohibited setting (cpg_mode=0x%x)\n", cpg_mode); in r8a774b1_cpg_mssr_init()
306 return rcar_gen3_cpg_init(cpg_pll_config, CLK_EXTALR, cpg_mode); in r8a774b1_cpg_mssr_init()
Dr8a774a1-cpg-mssr.c297 u32 cpg_mode; in r8a774a1_cpg_mssr_init() local
300 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a774a1_cpg_mssr_init()
304 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a774a1_cpg_mssr_init()
306 dev_err(dev, "Prohibited setting (cpg_mode=0x%x)\n", cpg_mode); in r8a774a1_cpg_mssr_init()
310 return rcar_gen3_cpg_init(cpg_pll_config, CLK_EXTALR, cpg_mode); in r8a774a1_cpg_mssr_init()
Dr8a77980-cpg-mssr.c214 u32 cpg_mode; in r8a77980_cpg_mssr_init() local
217 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a77980_cpg_mssr_init()
221 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a77980_cpg_mssr_init()
223 return rcar_gen3_cpg_init(cpg_pll_config, CLK_EXTALR, cpg_mode); in r8a77980_cpg_mssr_init()
Dr8a77970-cpg-mssr.c208 u32 cpg_mode; in r8a77970_cpg_mssr_init() local
211 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a77970_cpg_mssr_init()
217 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a77970_cpg_mssr_init()
219 return rcar_gen3_cpg_init(cpg_pll_config, CLK_EXTALR, cpg_mode); in r8a77970_cpg_mssr_init()
Dr8a7745-cpg-mssr.c215 u32 cpg_mode; in r8a7745_cpg_mssr_init() local
218 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a7745_cpg_mssr_init()
222 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a7745_cpg_mssr_init()
224 return rcar_gen2_cpg_init(cpg_pll_config, 3, cpg_mode); in r8a7745_cpg_mssr_init()
Dr8a77995-cpg-mssr.c212 u32 cpg_mode; in r8a77995_cpg_mssr_init() local
215 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a77995_cpg_mssr_init()
219 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a77995_cpg_mssr_init()
221 return rcar_gen3_cpg_init(cpg_pll_config, 0, cpg_mode); in r8a77995_cpg_mssr_init()
Dr8a774e1-cpg-mssr.c314 u32 cpg_mode; in r8a774e1_cpg_mssr_init() local
317 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a774e1_cpg_mssr_init()
321 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a774e1_cpg_mssr_init()
323 dev_err(dev, "Prohibited setting (cpg_mode=0x%x)\n", cpg_mode); in r8a774e1_cpg_mssr_init()
327 return rcar_gen3_cpg_init(cpg_pll_config, CLK_EXTALR, cpg_mode); in r8a774e1_cpg_mssr_init()
Dr8a77965-cpg-mssr.c323 u32 cpg_mode; in r8a77965_cpg_mssr_init() local
326 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a77965_cpg_mssr_init()
330 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a77965_cpg_mssr_init()
332 dev_err(dev, "Prohibited setting (cpg_mode=0x%x)\n", cpg_mode); in r8a77965_cpg_mssr_init()
336 return rcar_gen3_cpg_init(cpg_pll_config, CLK_EXTALR, cpg_mode); in r8a77965_cpg_mssr_init()
Dr8a7794-cpg-mssr.c223 u32 cpg_mode; in r8a7794_cpg_mssr_init() local
226 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a7794_cpg_mssr_init()
230 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a7794_cpg_mssr_init()
232 return rcar_gen2_cpg_init(cpg_pll_config, 3, cpg_mode); in r8a7794_cpg_mssr_init()
Dr8a779a0-cpg-mssr.c160 static u32 cpg_mode __initdata;
201 if (cpg_mode & BIT(core->offset)) { in rcar_r8a779a0_cpg_clk_register()
254 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a779a0_cpg_mssr_init()
258 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a779a0_cpg_mssr_init()
Dr8a7796-cpg-mssr.c330 u32 cpg_mode; in r8a7796_cpg_mssr_init() local
333 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a7796_cpg_mssr_init()
337 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a7796_cpg_mssr_init()
339 dev_err(dev, "Prohibited setting (cpg_mode=0x%x)\n", cpg_mode); in r8a7796_cpg_mssr_init()
349 return rcar_gen3_cpg_init(cpg_pll_config, CLK_EXTALR, cpg_mode); in r8a7796_cpg_mssr_init()
Dr8a7742-cpg-mssr.c245 u32 cpg_mode; in r8a7742_cpg_mssr_init() local
248 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a7742_cpg_mssr_init()
252 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a7742_cpg_mssr_init()
254 return rcar_gen2_cpg_init(cpg_pll_config, 2, cpg_mode); in r8a7742_cpg_mssr_init()
Dr8a7743-cpg-mssr.c241 u32 cpg_mode; in r8a7743_cpg_mssr_init() local
244 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a7743_cpg_mssr_init()
248 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a7743_cpg_mssr_init()
258 return rcar_gen2_cpg_init(cpg_pll_config, 2, cpg_mode); in r8a7743_cpg_mssr_init()
Dr7s9210-cpg-mssr.c20 static u8 cpg_mode; variable
122 cpg_mode = 1; in r7s9210_update_clk_table()
178 if (cpg_mode) in rza2_cpg_clk_register()
Dr8a774c0-cpg-mssr.c266 u32 cpg_mode; in r8a774c0_cpg_mssr_init() local
269 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a774c0_cpg_mssr_init()
273 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a774c0_cpg_mssr_init()
275 return rcar_gen3_cpg_init(cpg_pll_config, 0, cpg_mode); in r8a774c0_cpg_mssr_init()
Dr8a7790-cpg-mssr.c246 u32 cpg_mode; in r8a7790_cpg_mssr_init() local
249 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a7790_cpg_mssr_init()
253 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a7790_cpg_mssr_init()
255 return rcar_gen2_cpg_init(cpg_pll_config, 2, cpg_mode); in r8a7790_cpg_mssr_init()
Dr8a7791-cpg-mssr.c246 u32 cpg_mode; in r8a7791_cpg_mssr_init() local
249 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a7791_cpg_mssr_init()
253 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a7791_cpg_mssr_init()
263 return rcar_gen2_cpg_init(cpg_pll_config, 2, cpg_mode); in r8a7791_cpg_mssr_init()
Dr8a77990-cpg-mssr.c273 u32 cpg_mode; in r8a77990_cpg_mssr_init() local
276 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a77990_cpg_mssr_init()
280 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a77990_cpg_mssr_init()
282 return rcar_gen3_cpg_init(cpg_pll_config, 0, cpg_mode); in r8a77990_cpg_mssr_init()
Drcar-gen2-cpg.c263 static u32 cpg_mode __initdata;
329 div = cpg_mode & BIT(18) ? 36 : 24; in rcar_gen2_cpg_clk_register()
357 div = (cpg_mode & (BIT(3) | BIT(2) | BIT(1))) == BIT(2) ? in rcar_gen2_cpg_clk_register()
385 cpg_mode = mode; in rcar_gen2_cpg_init()
Dr8a7795-cpg-mssr.c437 u32 cpg_mode; in r8a7795_cpg_mssr_init() local
440 error = rcar_rst_read_mode_pins(&cpg_mode); in r8a7795_cpg_mssr_init()
444 cpg_pll_config = &cpg_pll_configs[CPG_PLL_CONFIG_INDEX(cpg_mode)]; in r8a7795_cpg_mssr_init()
446 dev_err(dev, "Prohibited setting (cpg_mode=0x%x)\n", cpg_mode); in r8a7795_cpg_mssr_init()
469 return rcar_gen3_cpg_init(cpg_pll_config, CLK_EXTALR, cpg_mode); in r8a7795_cpg_mssr_init()
Drcar-gen3-cpg.c521 static u32 cpg_mode __initdata;
646 if (cpg_mode & BIT(28)) in rcar_gen3_cpg_clk_register()
655 if (cpg_mode & BIT(core->offset)) { in rcar_gen3_cpg_clk_register()
722 cpg_mode = mode; in rcar_gen3_cpg_init()