Home
last modified time | relevance | path

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

12345678910>>...39

/u-boot/include/
A Dclk.h246 struct clk *clk) in clk_get_by_index() argument
257 struct clk *clk) in clk_get_by_name() argument
340 int clk_free(struct clk *clk);
349 ulong clk_get_rate(struct clk *clk);
358 struct clk *clk_get_parent(struct clk *clk);
411 int clk_set_parent(struct clk *clk, struct clk *parent);
420 int clk_enable(struct clk *clk);
438 int clk_disable(struct clk *clk);
498 static inline struct clk *clk_get_parent(struct clk *clk) in clk_get_parent() argument
518 static inline int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent() argument
[all …]
A Dclk-uclass.h39 int (*of_xlate)(struct clk *clock,
54 int (*request)(struct clk *clock);
63 int (*rfree)(struct clk *clock);
71 ulong (*round_rate)(struct clk *clk, ulong rate);
78 ulong (*get_rate)(struct clk *clk);
86 ulong (*set_rate)(struct clk *clk, ulong rate);
94 int (*set_parent)(struct clk *clk, struct clk *parent);
101 int (*enable)(struct clk *clk);
108 int (*disable)(struct clk *clk);
/u-boot/drivers/clk/tegra/
A Dtegra-car-clk.c14 static int tegra_car_clk_request(struct clk *clk) in tegra_car_clk_request() argument
16 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra_car_clk_request()
17 clk->id); in tegra_car_clk_request()
33 static int tegra_car_clk_free(struct clk *clk) in tegra_car_clk_free() argument
35 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra_car_clk_free()
36 clk->id); in tegra_car_clk_free()
41 static ulong tegra_car_clk_get_rate(struct clk *clk) in tegra_car_clk_get_rate() argument
46 clk->id); in tegra_car_clk_get_rate()
57 clk->dev, clk->id); in tegra_car_clk_set_rate()
63 static int tegra_car_clk_enable(struct clk *clk) in tegra_car_clk_enable() argument
[all …]
A Dtegra186-clk.c13 static ulong tegra186_clk_get_rate(struct clk *clk) in tegra186_clk_get_rate() argument
19 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra186_clk_get_rate()
20 clk->id); in tegra186_clk_get_rate()
32 static ulong tegra186_clk_set_rate(struct clk *clk, ulong rate) in tegra186_clk_set_rate() argument
39 clk->dev, clk->id); in tegra186_clk_set_rate()
52 static int tegra186_clk_en_dis(struct clk *clk, in tegra186_clk_en_dis() argument
69 static int tegra186_clk_enable(struct clk *clk) in tegra186_clk_enable() argument
71 debug("%s(clk=%p) (dev=%p, id=%lu)\n", __func__, clk, clk->dev, in tegra186_clk_enable()
72 clk->id); in tegra186_clk_enable()
77 static int tegra186_clk_disable(struct clk *clk) in tegra186_clk_disable() argument
[all …]
/u-boot/arch/arm/mach-exynos/
A Dclock_init_exynos4.c41 struct exynos4_clock *clk = in system_clock_init() local
44 writel(CLK_SRC_CPU_VAL, &clk->src_cpu); in system_clock_init()
50 writel(CLK_SRC_DMC_VAL, &clk->src_dmc); in system_clock_init()
55 writel(CLK_SRC_CAM_VAL, &clk->src_cam); in system_clock_init()
56 writel(CLK_SRC_MFC_VAL, &clk->src_mfc); in system_clock_init()
57 writel(CLK_SRC_G3D_VAL, &clk->src_g3d); in system_clock_init()
68 writel(CLK_DIV_TOP_VAL, &clk->div_top); in system_clock_init()
79 writel(PLL_LOCKTIME, &clk->apll_lock); in system_clock_init()
80 writel(PLL_LOCKTIME, &clk->mpll_lock); in system_clock_init()
81 writel(PLL_LOCKTIME, &clk->epll_lock); in system_clock_init()
[all …]
A Dclock_init_exynos5.c549 struct exynos5_clock *clk = in exynos5250_system_clock_init() local
607 writel(val, &clk->div_cpu0); in exynos5250_system_clock_init()
732 val = readl(&clk->src_cpu); in exynos5250_system_clock_init()
734 writel(val, &clk->src_cpu); in exynos5250_system_clock_init()
808 writel(0, &clk->src_top6); in exynos5420_system_clock_init()
810 writel(0, &clk->src_cdrex); in exynos5420_system_clock_init()
923 writel(0, &clk->src_top10); in exynos5420_system_clock_init()
924 writel(0, &clk->src_top11); in exynos5420_system_clock_init()
925 writel(0, &clk->src_top12); in exynos5420_system_clock_init()
979 struct exynos5_clock *clk = in clock_init_dp_clock() local
[all …]
/u-boot/drivers/clk/
A Dclk-composite.c21 static u8 clk_composite_get_parent(struct clk *clk) in clk_composite_get_parent() argument
24 (struct clk *)dev_get_clk_ptr(clk->dev) : clk); in clk_composite_get_parent()
33 static int clk_composite_set_parent(struct clk *clk, struct clk *parent) in clk_composite_set_parent() argument
36 (struct clk *)dev_get_clk_ptr(clk->dev) : clk); in clk_composite_set_parent()
49 (struct clk *)dev_get_clk_ptr(clk->dev) : clk); in clk_composite_recalc_rate()
62 (struct clk *)dev_get_clk_ptr(clk->dev) : clk); in clk_composite_set_rate()
72 static int clk_composite_enable(struct clk *clk) in clk_composite_enable() argument
75 (struct clk *)dev_get_clk_ptr(clk->dev) : clk); in clk_composite_enable()
88 (struct clk *)dev_get_clk_ptr(clk->dev) : clk); in clk_composite_disable()
108 struct clk *clk; in clk_register_composite() local
[all …]
A Dclk-uclass.c38 struct clk *clk) in clk_get_by_driver_info() argument
73 struct clk *clk) in clk_get_by_index_tail() argument
112 int index, struct clk *clk) in clk_get_by_indexed_prop() argument
192 static struct clk *clk_set_default_get_by_id(struct clk *clk) in clk_set_default_get_by_id() argument
194 struct clk *c = clk; in clk_set_default_get_by_id()
284 struct clk clk, *c; in clk_set_default_rates() local
457 int clk_free(struct clk *clk) in clk_free() argument
492 struct clk *clk_get_parent(struct clk *clk) in clk_get_parent() argument
563 int clk_set_parent(struct clk *clk, struct clk *parent) in clk_set_parent() argument
723 if (clk && clk->id == id) { in clk_get_by_id()
[all …]
A Dclk_sandbox.c20 static ulong sandbox_clk_get_rate(struct clk *clk) in sandbox_clk_get_rate() argument
30 return priv->rate[clk->id]; in sandbox_clk_get_rate()
33 static ulong sandbox_clk_round_rate(struct clk *clk, ulong rate) in sandbox_clk_round_rate() argument
49 static ulong sandbox_clk_set_rate(struct clk *clk, ulong rate) in sandbox_clk_set_rate() argument
63 old_rate = priv->rate[clk->id]; in sandbox_clk_set_rate()
64 priv->rate[clk->id] = rate; in sandbox_clk_set_rate()
69 static int sandbox_clk_enable(struct clk *clk) in sandbox_clk_enable() argument
79 priv->enabled[clk->id] = true; in sandbox_clk_enable()
84 static int sandbox_clk_disable(struct clk *clk) in sandbox_clk_disable() argument
99 static int sandbox_clk_request(struct clk *clk) in sandbox_clk_request() argument
[all …]
A Dclk_sandbox_ccf.c27 struct clk clk; member
32 int sandbox_clk_enable_count(struct clk *clk) in sandbox_clk_enable_count() argument
44 static ulong clk_pllv3_get_rate(struct clk *clk) in clk_pllv3_get_rate() argument
60 struct clk *clk; in sandbox_clk_pllv3() local
69 clk = &pll->clk; in sandbox_clk_pllv3()
89 struct clk clk; member
95 static int clk_gate2_enable(struct clk *clk) in clk_gate2_enable() argument
103 static int clk_gate2_disable(struct clk *clk) in clk_gate2_disable() argument
124 struct clk *clk; in sandbox_clk_register_gate2() local
132 clk = &gate->clk; in sandbox_clk_register_gate2()
[all …]
A Dclk-fixed-factor.c21 static ulong clk_factor_recalc_rate(struct clk *clk) in clk_factor_recalc_rate() argument
23 struct clk_fixed_factor *fix = to_clk_fixed_factor(clk); in clk_factor_recalc_rate()
24 unsigned long parent_rate = clk_get_parent_rate(clk); in clk_factor_recalc_rate()
41 struct clk *clk; in clk_hw_register_fixed_factor() local
51 clk = &fix->clk; in clk_hw_register_fixed_factor()
52 clk->flags = flags; in clk_hw_register_fixed_factor()
61 return clk; in clk_hw_register_fixed_factor()
68 struct clk *clk; in clk_register_fixed_factor() local
72 if (IS_ERR(clk)) in clk_register_fixed_factor()
73 return ERR_CAST(clk); in clk_register_fixed_factor()
[all …]
/u-boot/arch/arm/dts/
A Dstih410-clock.dtsi10 clk_sysin: clk-sysin {
94 "clk-ic-lmi1";
149 "clk-fdma",
150 "clk-nand",
151 "clk-hva",
158 "clk-mmc-0",
159 "clk-mmc-1",
239 "clk-pcm-1",
283 "clk-denc",
288 "clk-dvo",
[all …]
A Dstih407-clock.dtsi10 clk_sysin: clk-sysin {
148 "clk-fdma",
149 "clk-nand",
150 "clk-hva",
157 "clk-mmc-0",
158 "clk-mmc-1",
231 "clk-pcm-1",
232 "clk-pcm-2",
273 "clk-denc",
278 "clk-dvo",
[all …]
/u-boot/test/dm/
A Dclk_ccf.c21 struct clk *clk, *pclk; in dm_test_clk_ccf() local
66 rate = clk_get_rate(clk); in dm_test_clk_ccf()
75 rate = clk_get_rate(clk); in dm_test_clk_ccf()
90 rate = clk_get_rate(clk); in dm_test_clk_ccf()
99 rate = clk_get_rate(clk); in dm_test_clk_ccf()
117 ret = clk_enable(clk); in dm_test_clk_ccf()
129 ret = clk_disable(clk); in dm_test_clk_ccf()
169 ret = clk_disable(clk); in dm_test_clk_ccf()
177 ret = clk_enable(clk); in dm_test_clk_ccf()
180 ret = clk_disable(clk); in dm_test_clk_ccf()
[all …]
/u-boot/drivers/clk/ti/
A Dclk-sci.c47 static int ti_sci_clk_of_xlate(struct clk *clk, in ti_sci_clk_of_xlate() argument
67 static int ti_sci_clk_request(struct clk *clk) in ti_sci_clk_request() argument
73 static int ti_sci_clk_free(struct clk *clk) in ti_sci_clk_free() argument
79 static ulong ti_sci_clk_get_rate(struct clk *clk) in ti_sci_clk_get_rate() argument
100 static ulong ti_sci_clk_set_rate(struct clk *clk, ulong rate) in ti_sci_clk_set_rate() argument
110 k3_avs_notify_freq(clk->id, clk->data, rate); in ti_sci_clk_set_rate()
120 static int ti_sci_clk_set_parent(struct clk *clk, struct clk *parent) in ti_sci_clk_set_parent() argument
164 static int ti_sci_clk_enable(struct clk *clk) in ti_sci_clk_enable() argument
177 ret = cops->put_clock(sci, clk->id, clk->data); in ti_sci_clk_enable()
184 static int ti_sci_clk_disable(struct clk *clk) in ti_sci_clk_disable() argument
[all …]
/u-boot/arch/arm/include/asm/kona-common/
A Dclk.h13 struct clk;
17 struct clk *clk_get(const char *id);
18 int clk_enable(struct clk *clk);
19 void clk_disable(struct clk *clk);
20 unsigned long clk_get_rate(struct clk *clk);
21 long clk_round_rate(struct clk *clk, unsigned long rate);
22 int clk_set_rate(struct clk *clk, unsigned long rate);
23 int clk_set_parent(struct clk *clk, struct clk *parent);
24 struct clk *clk_get_parent(struct clk *clk);
/u-boot/drivers/clk/microchip/
A Dmpfs_clk.c20 static ulong mpfs_clk_get_rate(struct clk *clk) in mpfs_clk_get_rate() argument
22 struct clk *c; in mpfs_clk_get_rate()
30 static ulong mpfs_clk_set_rate(struct clk *clk, unsigned long rate) in mpfs_clk_set_rate() argument
32 struct clk *c; in mpfs_clk_set_rate()
40 static int mpfs_clk_set_parent(struct clk *clk, struct clk *parent) in mpfs_clk_set_parent() argument
42 struct clk *c, *p; in mpfs_clk_set_parent()
55 static int mpfs_clk_endisable(struct clk *clk, bool enable) in mpfs_clk_endisable() argument
57 struct clk *c; in mpfs_clk_endisable()
65 static int mpfs_clk_enable(struct clk *clk) in mpfs_clk_enable() argument
70 static int mpfs_clk_disable(struct clk *clk) in mpfs_clk_disable() argument
[all …]
/u-boot/arch/arm/mach-nexell/include/mach/
A Dclk.h10 struct clk { struct
16 struct clk *clk_get(const char *id); argument
17 void clk_put(struct clk *clk);
18 unsigned long clk_get_rate(struct clk *clk);
19 long clk_round_rate(struct clk *clk, unsigned long rate);
20 int clk_set_rate(struct clk *clk, unsigned long rate);
21 int clk_enable(struct clk *clk);
22 void clk_disable(struct clk *clk);
/u-boot/include/kendryte/
A Dbypass.h8 struct clk;
11 struct clk clk; member
12 struct clk **children; /* Clocks to reparent */
13 struct clk **saved_parents; /* Parents saved over en-/dis-able */
14 struct clk *bypassee; /* Clock to bypass */
16 struct clk *alt; /* Clock to set children to when bypassing */
20 #define to_k210_bypass(_clk) container_of(_clk, struct k210_bypass, clk)
22 int k210_bypass_set_children(struct clk *clk, struct clk **children,
24 struct clk *k210_register_bypass_struct(const char *name,
28 struct clk *bypassee,
[all …]
/u-boot/drivers/clk/at91/
A Dclk-main.c37 struct clk clk; member
44 struct clk clk; member
55 struct clk clk; member
111 struct clk *clk; in at91_clk_main_rc() local
122 clk = &main_rc->clk; in at91_clk_main_rc()
197 struct clk *clk; in at91_clk_main_osc() local
208 clk = &main->clk; in at91_clk_main_osc()
263 struct clk *clk; in at91_clk_rm9200_main() local
274 clk = &main->clk; in at91_clk_rm9200_main()
352 struct clk *clk = ERR_PTR(-ENOMEM); in at91_clk_sam9x5_main() local
[all …]
A Dclk-utmi.c35 struct clk clk; member
49 static int clk_utmi_enable(struct clk *clk) in clk_utmi_enable() argument
102 static int clk_utmi_disable(struct clk *clk) in clk_utmi_disable() argument
111 static ulong clk_utmi_get_rate(struct clk *clk) in clk_utmi_get_rate() argument
128 struct clk *clk; in at91_clk_register_utmi() local
150 clk = &utmi->clk; in at91_clk_register_utmi()
158 return clk; in at91_clk_register_utmi()
168 static int clk_utmi_sama7g5_enable(struct clk *clk) in clk_utmi_sama7g5_enable() argument
206 struct clk *clk; in at91_clk_sama7g5_register_utmi() local
218 clk = &utmi->clk; in at91_clk_sama7g5_register_utmi()
[all …]
/u-boot/include/linux/
A Dclk-provider.h18 static inline void clk_dm(ulong id, struct clk *clk) in clk_dm() argument
20 if (!IS_ERR(clk)) in clk_dm()
21 clk->id = id; in clk_dm()
55 struct clk clk; member
76 u8 clk_mux_get_parent(struct clk *clk);
92 struct clk clk; member
118 struct clk clk; member
190 struct clk clk; member
199 struct clk clk; member
206 struct clk clk; member
[all …]
/u-boot/drivers/clk/imx/
A DMakefile5 obj-$(CONFIG_$(SPL_TPL_)CLK_CCF) += clk-gate2.o clk-pllv3.o clk-pfd.o
6 obj-$(CONFIG_$(SPL_TPL_)CLK_IMX6Q) += clk-imx6q.o
7 obj-$(CONFIG_CLK_IMX8) += clk-imx8.o
10 obj-$(CONFIG_IMX8QXP) += clk-imx8qxp.o
11 obj-$(CONFIG_IMX8QM) += clk-imx8qm.o
13 obj-$(CONFIG_$(SPL_TPL_)CLK_IMX8MM) += clk-imx8mm.o clk-pll14xx.o \
14 clk-composite-8m.o
15 obj-$(CONFIG_$(SPL_TPL_)CLK_IMX8MN) += clk-imx8mn.o clk-pll14xx.o \
16 clk-composite-8m.o
17 obj-$(CONFIG_$(SPL_TPL_)CLK_IMX8MP) += clk-imx8mp.o clk-pll14xx.o \
[all …]
A Dclk-imxrt1020.c17 static ulong imxrt1020_clk_get_rate(struct clk *clk) in imxrt1020_clk_get_rate() argument
19 struct clk *c; in imxrt1020_clk_get_rate()
31 static ulong imxrt1020_clk_set_rate(struct clk *clk, unsigned long rate) in imxrt1020_clk_set_rate() argument
33 struct clk *c; in imxrt1020_clk_set_rate()
45 static int __imxrt1020_clk_enable(struct clk *clk, bool enable) in __imxrt1020_clk_enable() argument
47 struct clk *c; in __imxrt1020_clk_enable()
64 static int imxrt1020_clk_disable(struct clk *clk) in imxrt1020_clk_disable() argument
69 static int imxrt1020_clk_enable(struct clk *clk) in imxrt1020_clk_enable() argument
186 struct clk *clk, *clk1; in imxrt1020_clk_probe() local
194 clk_enable(clk); in imxrt1020_clk_probe()
[all …]
/u-boot/drivers/clk/kendryte/
A Dbypass.c120 static ulong k210_bypass_get_rate(struct clk *clk) in k210_bypass_get_rate() argument
152 static int k210_bypass_set_parent(struct clk *clk, struct clk *parent) in k210_bypass_set_parent() argument
168 static int k210_bypass_enable(struct clk *clk) in k210_bypass_enable() argument
188 static int k210_bypass_disable(struct clk *clk) in k210_bypass_disable() argument
212 int k210_bypass_set_children(struct clk *clk, struct clk **children, in k210_bypass_set_children() argument
235 struct clk *clk; in k210_register_bypass_struct() local
237 clk = &bypass->clk; in k210_register_bypass_struct()
244 return clk; in k210_register_bypass_struct()
252 struct clk *clk; in k210_register_bypass() local
264 if (IS_ERR(clk)) in k210_register_bypass()
[all …]

Completed in 64 milliseconds

12345678910>>...39