Home
last modified time | relevance | path

Searched +full:clk +full:- +full:source (Results 1 – 25 of 804) sorted by relevance

12345678910>>...33

/freebsd/sys/dev/clk/rockchip/
H A Drk_clk_gate.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
7 * Redistribution and use in source and binary forms, with or without
10 * 1. Redistributions of source code must retain the above copyright
33 #include <dev/clk/clk.h>
35 #include <dev/clk/rockchip/rk_clk_gate.h>
50 static int rk_clk_gate_init(struct clknode *clk, device_t dev);
51 static int rk_clk_gate_set_gate(struct clknode *clk, bool enable);
72 rk_clk_gate_init(struct clknode *clk, device_t dev) in rk_clk_gate_init() argument
78 sc = clknode_get_softc(clk); in rk_clk_gate_init()
[all …]
H A Drk_clk_armclk.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Redistribution and use in source and binary forms, with or without
9 * 1. Redistributions of source code must retain the above copyright
32 #include <dev/clk/clk.h>
34 #include <dev/clk/rockchip/rk_clk_armclk.h>
73 printf("%s:(%s)" format, __func__, clknode_get_name(clk), arg)
79 rk_clk_armclk_init(struct clknode *clk, device_t dev) in rk_clk_armclk_init() argument
84 sc = clknode_get_softc(clk); in rk_clk_armclk_init()
87 DEVICE_LOCK(clk); in rk_clk_armclk_init()
[all …]
H A Drk_clk_mux.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
7 * Redistribution and use in source and binary forms, with or without
10 * 1. Redistributions of source code must retain the above copyright
37 #include <dev/clk/clk.h>
40 #include <dev/clk/rockchip/rk_cru.h>
41 #include <dev/clk/rockchip/rk_clk_mux.h>
59 printf("%s:(%s)" format, __func__, clknode_get_name(clk), arg)
64 static int rk_clk_mux_init(struct clknode *clk, device_t dev);
65 static int rk_clk_mux_set_mux(struct clknode *clk, int idx);
[all …]
/freebsd/sys/arm64/freescale/imx/clk/
H A Dimx_clk_mux.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
7 * Redistribution and use in source and binary forms, with or without
10 * 1. Redistributions of source code must retain the above copyright
37 #include <dev/clk/clk.h>
39 #include <arm64/freescale/imx/clk/imx_clk_mux.h>
54 static int imx_clk_mux_init(struct clknode *clk, device_t dev);
55 static int imx_clk_mux_set_mux(struct clknode *clk, int idx);
74 imx_clk_mux_init(struct clknode *clk, device_t dev) in imx_clk_mux_init() argument
80 sc = clknode_get_softc(clk); in imx_clk_mux_init()
[all …]
H A Dimx_clk_gate.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
7 * Redistribution and use in source and binary forms, with or without
10 * 1. Redistributions of source code must retain the above copyright
33 #include <dev/clk/clk.h>
35 #include <arm64/freescale/imx/clk/imx_clk_gate.h>
50 static int imx_clk_gate_init(struct clknode *clk, device_t dev);
51 static int imx_clk_gate_set_gate(struct clknode *clk, bool enable);
69 imx_clk_gate_init(struct clknode *clk, device_t dev) in imx_clk_gate_init() argument
72 clknode_init_parent_idx(clk, 0); in imx_clk_gate_init()
[all …]
H A Dimx_clk_frac_pll.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Redistribution and use in source and binary forms, with or without
9 * 1. Redistributions of source code must retain the above copyright
32 #include <dev/clk/clk.h>
34 #include <arm64/freescale/imx/clk/imx_clk_frac_pll.h>
67 printf("%s:(%s)" format, __func__, clknode_get_name(clk), arg)
73 imx_clk_frac_pll_init(struct clknode *clk, device_t dev) in imx_clk_frac_pll_init() argument
76 clknode_init_parent_idx(clk, 0); in imx_clk_frac_pll_init()
81 imx_clk_frac_pll_set_gate(struct clknode *clk, bool enable) in imx_clk_frac_pll_set_gate() argument
[all …]
H A Dimx_clk_sscg_pll.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Redistribution and use in source and binary forms, with or without
9 * 1. Redistributions of source code must retain the above copyright
32 #include <dev/clk/clk.h>
34 #include <arm64/freescale/imx/clk/imx_clk_sscg_pll.h>
71 printf("%s:(%s)" format, __func__, clknode_get_name(clk), arg)
77 imx_clk_sscg_pll_init(struct clknode *clk, device_t dev) in imx_clk_sscg_pll_init() argument
79 if (clknode_get_parents_num(clk) > 1) { in imx_clk_sscg_pll_init()
80 device_printf(clknode_get_device(clk), in imx_clk_sscg_pll_init()
[all …]
/freebsd/sys/dev/clk/
H A Dclk_mux.c1 /*-
5 * Redistribution and use in source and binary forms, with or without
8 * 1. Redistributions of source code must retain the above copyright
35 #include <dev/clk/clk_mux.h>
50 static int clknode_mux_init(struct clknode *clk, device_t dev);
51 static int clknode_mux_set_mux(struct clknode *clk, int idx);
71 clknode_mux_init(struct clknode *clk, device_t dev) in clknode_mux_init() argument
77 sc = clknode_get_softc(clk); in clknode_mux_init()
79 DEVICE_LOCK(clk); in clknode_mux_init()
80 rv = RD4(clk, sc->offset, &reg); in clknode_mux_init()
[all …]
H A Dclk_gate.c1 /*-
5 * Redistribution and use in source and binary forms, with or without
8 * 1. Redistributions of source code must retain the above copyright
35 #include <dev/clk/clk_gate.h>
50 static int clknode_gate_init(struct clknode *clk, device_t dev);
51 static int clknode_gate_set_gate(struct clknode *clk, bool enable);
52 static int clknode_gate_get_gate(struct clknode *clk, bool *enable);
73 clknode_gate_init(struct clknode *clk, device_t dev) in clknode_gate_init() argument
76 clknode_init_parent_idx(clk, 0); in clknode_gate_init()
81 clknode_gate_set_gate(struct clknode *clk, bool enable) in clknode_gate_set_gate() argument
[all …]
H A Dclk_link.c1 /*-
5 * Redistribution and use in source and binary forms, with or without
8 * 1. Redistributions of source code must retain the above copyright
40 #include <dev/clk/clk_link.h>
42 static int clknode_link_init(struct clknode *clk, device_t dev);
43 static int clknode_link_recalc(struct clknode *clk, uint64_t *freq);
44 static int clknode_link_set_freq(struct clknode *clk, uint64_t fin,
46 static int clknode_link_set_mux(struct clknode *clk, int idx);
47 static int clknode_link_set_gate(struct clknode *clk, bool enable);
62 clknode_link_init(struct clknode *clk, device_t dev) in clknode_link_init() argument
[all …]
H A Dclk.h1 /*-
5 * Redistribution and use in source and binary forms, with or without
8 * 1. Redistributions of source code must retain the above copyright
38 #define CLKNODE_IDX_NONE -1 /* Not-selected index */
58 typedef struct clk *clk_t;
94 struct clknode *clknode_register(struct clkdom *cldom, struct clknode *clk);
97 phandle_t *cells, struct clknode **clk);
102 int clknode_set_parent_by_idx(struct clknode *clk, int idx);
103 int clknode_set_parent_by_name(struct clknode *clk, const char *name);
104 const char *clknode_get_name(struct clknode *clk);
[all …]
/freebsd/sys/dev/qcom_clk/
H A Dqcom_clk_fdiv.c1 /*-
4 * Redistribution and use in source and binary forms, with or without
7 * 1. Redistributions of source code must retain the above copyright
34 #include <dev/clk/clk.h>
35 #include <dev/clk/clk_div.h>
36 #include <dev/clk/clk_fixed.h>
37 #include <dev/clk/clk_mux.h>
48 * It likely should just live in the extres/clk code.
57 qcom_clk_fdiv_recalc(struct clknode *clk, uint64_t *freq) in qcom_clk_fdiv_recalc() argument
61 sc = clknode_get_softc(clk); in qcom_clk_fdiv_recalc()
[all …]
/freebsd/sys/contrib/device-tree/src/arm64/xilinx/
H A Dzynqmp-zc1751-xm019-dc5.dts1 // SPDX-License-Identifier: GPL-2.0+
3 * dts file for Xilinx ZynqMP zc1751-xm019-dc5
5 * (C) Copyright 2015 - 2021, Xilinx, Inc.
11 /dts-v1/;
14 #include "zynqmp-clk-ccf.dtsi"
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
19 model = "ZynqMP zc1751-xm019-dc5 RevA";
20 compatible = "xlnx,zynqmp-zc1751", "xlnx,zynqmp";
33 stdout-path = "serial0:115200n8";
[all …]
/freebsd/sys/dev/clk/allwinner/
H A Daw_clk_prediv_mux.c1 /*-
4 * Redistribution and use in source and binary forms, with or without
7 * 1. Redistributions of source code must retain the above copyright
30 #include <dev/clk/clk.h>
32 #include <dev/clk/allwinner/aw_clk.h>
33 #include <dev/clk/allwinner/aw_clk_prediv_mux.h>
40 * clk = clkin / prediv / div
70 aw_clk_prediv_mux_init(struct clknode *clk, device_t dev) in aw_clk_prediv_mux_init() argument
75 sc = clknode_get_softc(clk); in aw_clk_prediv_mux_init()
77 DEVICE_LOCK(clk); in aw_clk_prediv_mux_init()
[all …]
H A Daw_clk_m.c1 /*-
4 * Redistribution and use in source and binary forms, with or without
7 * 1. Redistributions of source code must retain the above copyright
30 #include <dev/clk/clk.h>
32 #include <dev/clk/allwinner/aw_clk.h>
33 #include <dev/clk/allwinner/aw_clk_m.h>
40 * clk = clkin / m
69 aw_clk_m_init(struct clknode *clk, device_t dev) in aw_clk_m_init() argument
74 sc = clknode_get_softc(clk); in aw_clk_m_init()
77 if ((sc->flags & AW_CLK_HAS_MUX) != 0) { in aw_clk_m_init()
[all …]
H A Daw_ccung.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Redistribution and use in source and binary forms, with or without
9 * 1. Redistributions of source code must retain the above copyright
31 #include <dev/clk/allwinner/aw_clk.h>
32 #include <dev/clk/allwinner/aw_clk_m.h>
33 #include <dev/clk/allwinner/aw_clk_mipi.h>
34 #include <dev/clk/allwinner/aw_clk_nkmp.h>
35 #include <dev/clk/allwinner/aw_clk_nm.h>
36 #include <dev/clk/allwinner/aw_clk_nmm.h>
[all …]
/freebsd/sys/arm/ti/clk/
H A Dclock_common.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Redistribution and use in source and binary forms, with or without
9 * 1. Redistributions of source code must retain the above copyright
41 #include <dev/clk/clk_mux.h>
54 read_clock_cells(device_t dev, struct clock_cell_info *clk) { in read_clock_cells() argument
63 clk->num_clock_cells = numbytes_clocks / sizeof(cell_t); in read_clock_cells()
69 clk->clock_cells = malloc(numbytes_clocks, M_DEVBUF, M_WAITOK|M_ZERO); in read_clock_cells()
70 clk->clock_cells_ncells = malloc(clk->num_clock_cells*sizeof(uint8_t), in read_clock_cells()
72 OF_getencprop(node, "clocks", clk->clock_cells, numbytes_clocks); in read_clock_cells()
[all …]
H A Dti_clk_clkctrl.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Redistribution and use in source and binary forms, with or without
9 * 1. Redistributions of source code must retain the above copyright
33 #include <dev/clk/clk.h>
35 #include <arm/ti/clk/ti_clk_clkctrl.h>
66 /* omap4-cm range.host + ti,clkctrl reg[0] */
80 ti_clkctrl_init(struct clknode *clk, device_t dev) in ti_clkctrl_init() argument
84 sc = clknode_get_softc(clk); in ti_clkctrl_init()
85 sc->dev = dev; in ti_clkctrl_init()
[all …]
/freebsd/sys/dev/clk/xilinx/
H A Dzynqmp_clk_gate.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Redistribution and use in source and binary forms, with or without
9 * 1. Redistributions of source code must retain the above copyright
34 #include <dev/clk/clk.h>
36 #include <dev/clk/xilinx/zynqmp_clk_gate.h>
47 zynqmp_clk_gate_init(struct clknode *clk, device_t dev) in zynqmp_clk_gate_init() argument
50 clknode_init_parent_idx(clk, 0); in zynqmp_clk_gate_init()
55 zynqmp_clk_set_gate(struct clknode *clk, bool enable) in zynqmp_clk_set_gate() argument
60 sc = clknode_get_softc(clk); in zynqmp_clk_set_gate()
[all …]
H A Dzynqmp_clk_fixed.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Redistribution and use in source and binary forms, with or without
9 * 1. Redistributions of source code must retain the above copyright
34 #include <dev/clk/clk.h>
36 #include <dev/clk/xilinx/zynqmp_clk_fixed.h>
47 zynqmp_clk_fixed_init(struct clknode *clk, device_t dev) in zynqmp_clk_fixed_init() argument
50 clknode_init_parent_idx(clk, 0); in zynqmp_clk_fixed_init()
55 zynqmp_clk_fixed_recalc(struct clknode *clk, uint64_t *freq) in zynqmp_clk_fixed_recalc() argument
61 sc = clknode_get_softc(clk); in zynqmp_clk_fixed_recalc()
[all …]
H A Dzynqmp_clk_mux.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Redistribution and use in source and binary forms, with or without
9 * 1. Redistributions of source code must retain the above copyright
34 #include <dev/clk/clk.h>
36 #include <dev/clk/xilinx/zynqmp_clk_mux.h>
47 zynqmp_clk_mux_init(struct clknode *clk, device_t dev) in zynqmp_clk_mux_init() argument
50 clknode_init_parent_idx(clk, 0); in zynqmp_clk_mux_init()
55 zynqmp_clk_mux_set_mux(struct clknode *clk, int idx) in zynqmp_clk_mux_set_mux() argument
58 printf("%s: called for %s\n", __func__, clknode_get_name(clk)); in zynqmp_clk_mux_set_mux()
[all …]
H A Dzynqmp_clk_pll.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Redistribution and use in source and binary forms, with or without
9 * 1. Redistributions of source code must retain the above copyright
34 #include <dev/clk/clk.h>
36 #include <dev/clk/xilinx/zynqmp_clk_pll.h>
53 zynqmp_clk_pll_init(struct clknode *clk, device_t dev) in zynqmp_clk_pll_init() argument
56 clknode_init_parent_idx(clk, 0); in zynqmp_clk_pll_init()
61 zynqmp_clk_pll_recalc(struct clknode *clk, uint64_t *freq) in zynqmp_clk_pll_recalc() argument
68 sc = clknode_get_softc(clk); in zynqmp_clk_pll_recalc()
[all …]
H A Dzynqmp_clk_div.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Redistribution and use in source and binary forms, with or without
9 * 1. Redistributions of source code must retain the above copyright
34 #include <dev/clk/clk.h>
36 #include <dev/clk/xilinx/zynqmp_clk_div.h>
50 zynqmp_clk_div_init(struct clknode *clk, device_t dev) in zynqmp_clk_div_init() argument
53 clknode_init_parent_idx(clk, 0); in zynqmp_clk_div_init()
58 zynqmp_clk_div_recalc(struct clknode *clk, uint64_t *freq) in zynqmp_clk_div_recalc() argument
64 sc = clknode_get_softc(clk); in zynqmp_clk_div_recalc()
[all …]
/freebsd/sys/arm/mv/clk/
H A Da37x0_tbg_pll.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
6 * Redistribution and use in source and binary forms, with or without
9 * 1. Redistributions of source code must retain the above copyright
33 #include <dev/clk/clk.h>
53 a37x0_tbg_pll_recalc_freq(struct clknode *clk, uint64_t *freq) in a37x0_tbg_pll_recalc_freq() argument
59 sc = clknode_get_softc(clk); in a37x0_tbg_pll_recalc_freq()
61 RD4(clk, sc->tbg_bypass.offset, &val); in a37x0_tbg_pll_recalc_freq()
62 if ((val >> sc->tbg_bypass.shift) & sc->tbg_bypass.mask) in a37x0_tbg_pll_recalc_freq()
65 RD4(clk, sc->vcodiv.offset, &val); in a37x0_tbg_pll_recalc_freq()
[all …]
/freebsd/sys/arm/nvidia/tegra124/
H A Dtegra124_clk_super.c1 /*-
5 * Redistribution and use in source and binary forms, with or without
8 * 1. Redistributions of source code must retain the above copyright
36 #include <dev/clk/clk.h>
38 #include <dt-bindings/clock/tegra124-car.h>
92 static int super_mux_init(struct clknode *clk, device_t dev);
93 static int super_mux_set_mux(struct clknode *clk, int idx);
150 super_mux_init(struct clknode *clk, device_t dev) in super_mux_init() argument
156 sc = clknode_get_softc(clk); in super_mux_init()
159 RD4(sc, sc->base_reg, &reg); in super_mux_init()
[all …]

12345678910>>...33