Home
last modified time | relevance | path

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

1234567

/linux-6.1.9/drivers/clk/at91/
Dsckc.c70 struct clk_slow_osc *osc = to_clk_slow_osc(hw); in clk_slow_osc_prepare() local
71 void __iomem *sckcr = osc->sckcr; in clk_slow_osc_prepare()
74 if (tmp & (osc->bits->cr_osc32byp | osc->bits->cr_osc32en)) in clk_slow_osc_prepare()
77 writel(tmp | osc->bits->cr_osc32en, sckcr); in clk_slow_osc_prepare()
80 udelay(osc->startup_usec); in clk_slow_osc_prepare()
82 usleep_range(osc->startup_usec, osc->startup_usec + 1); in clk_slow_osc_prepare()
89 struct clk_slow_osc *osc = to_clk_slow_osc(hw); in clk_slow_osc_unprepare() local
90 void __iomem *sckcr = osc->sckcr; in clk_slow_osc_unprepare()
93 if (tmp & osc->bits->cr_osc32byp) in clk_slow_osc_unprepare()
96 writel(tmp & ~osc->bits->cr_osc32en, sckcr); in clk_slow_osc_unprepare()
[all …]
Dclk-main.c73 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_prepare() local
74 struct regmap *regmap = osc->regmap; in clk_main_osc_prepare()
96 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_unprepare() local
97 struct regmap *regmap = osc->regmap; in clk_main_osc_unprepare()
113 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_is_prepared() local
114 struct regmap *regmap = osc->regmap; in clk_main_osc_is_prepared()
128 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_save_context() local
130 osc->pms.status = clk_main_osc_is_prepared(hw); in clk_main_osc_save_context()
137 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_restore_context() local
139 if (osc->pms.status) in clk_main_osc_restore_context()
[all …]
/linux-6.1.9/drivers/clk/versatile/
Dclk-vexpress-osc.c23 #define to_vexpress_osc(osc) container_of(osc, struct vexpress_osc, hw) argument
28 struct vexpress_osc *osc = to_vexpress_osc(hw); in vexpress_osc_recalc_rate() local
31 regmap_read(osc->reg, 0, &rate); in vexpress_osc_recalc_rate()
39 struct vexpress_osc *osc = to_vexpress_osc(hw); in vexpress_osc_round_rate() local
41 if (osc->rate_min && rate < osc->rate_min) in vexpress_osc_round_rate()
42 rate = osc->rate_min; in vexpress_osc_round_rate()
44 if (osc->rate_max && rate > osc->rate_max) in vexpress_osc_round_rate()
45 rate = osc->rate_max; in vexpress_osc_round_rate()
53 struct vexpress_osc *osc = to_vexpress_osc(hw); in vexpress_osc_set_rate() local
55 return regmap_write(osc->reg, 0, rate); in vexpress_osc_set_rate()
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/clock/
Dimx6sll-clock.yaml32 - description: 32k osc
33 - description: 24m osc
40 - const: osc
65 clocks = <&ckil>, <&osc>, <&ipp_di0>, <&ipp_di1>;
66 clock-names = "ckil", "osc", "ipp_di0", "ipp_di1";
Dimx6ul-clock.yaml32 - description: 32k osc
33 - description: 24m osc
40 - const: osc
65 clocks = <&ckil>, <&osc>, <&ipp_di0>, <&ipp_di1>;
66 clock-names = "ckil", "osc", "ipp_di0", "ipp_di1";
Dimx7d-clock.yaml35 - description: 32k osc
36 - description: 24m osc
41 - const: osc
63 clocks = <&ckil>, <&osc>;
64 clock-names = "ckil", "osc";
Dimx6sx-clock.yaml32 - description: 32k osc
33 - description: 24m osc
42 - const: osc
69 clocks = <&ckil>, <&osc>, <&ipp_di0>, <&ipp_di1>, <&anaclk1>, <&anaclk2>;
70 clock-names = "ckil", "osc", "ipp_di0", "ipp_di1", "anaclk1", "anaclk2";
Dimxrt1050-clock.yaml29 description: 24m osc
33 const: osc
56 clocks = <&osc>;
57 clock-names = "osc";
Dimx8m-clock.yaml59 - description: 32k osc
60 - description: 25m osc
61 - description: 27m osc
79 - description: 32k osc
80 - description: 24m osc
Dallwinner,sun4i-a10-osc-clk.yaml4 $id: http://devicetree.org/schemas/clock/allwinner,sun4i-a10-osc-clk.yaml#
20 const: allwinner,sun4i-a10-osc-clk
45 compatible = "allwinner,sun4i-a10-osc-clk";
Dbitmain,bm1880-clk.yaml37 const: osc
59 clocks = <&osc>;
60 clock-names = "osc";
Dcalxeda.yaml53 osc: oscillator {
62 clocks = <&osc>;
69 clocks = <&osc>;
/linux-6.1.9/arch/arm64/boot/dts/broadcom/stingray/
Dstingray-clock.dtsi35 osc: oscillator { label
44 clocks = <&osc>;
54 clocks = <&osc>;
66 clocks = <&osc>;
78 clocks = <&osc>;
88 clocks = <&osc>;
100 clocks = <&osc>;
110 clocks = <&osc>;
121 clocks = <&osc>;
/linux-6.1.9/arch/arm/boot/dts/
Dbcm-cygnus-clock.dtsi38 osc: oscillator { label
48 clocks = <&osc>;
74 clocks = <&osc>;
101 clocks = <&osc>;
110 clocks = <&osc>;
121 clocks = <&osc>;
129 clocks = <&osc>;
Dvexpress-v2p-ca5s.dts149 compatible = "arm,vexpress-osc";
158 compatible = "arm,vexpress-osc";
167 compatible = "arm,vexpress-osc";
176 compatible = "arm,vexpress-osc";
185 compatible = "arm,vexpress-osc";
194 compatible = "arm,vexpress-osc";
Dvexpress-v2p-ca15-tc1.dts147 compatible = "arm,vexpress-osc";
156 compatible = "arm,vexpress-osc";
165 compatible = "arm,vexpress-osc";
174 compatible = "arm,vexpress-osc";
183 compatible = "arm,vexpress-osc";
192 compatible = "arm,vexpress-osc";
/linux-6.1.9/drivers/clocksource/
Dtimer-tegra186.c91 struct clocksource osc; member
334 osc); in tegra186_timer_osc_read()
341 tegra->osc.name = "osc"; in tegra186_timer_osc_init()
342 tegra->osc.rating = 300; in tegra186_timer_osc_init()
343 tegra->osc.read = tegra186_timer_osc_read; in tegra186_timer_osc_init()
344 tegra->osc.mask = CLOCKSOURCE_MASK(32); in tegra186_timer_osc_init()
345 tegra->osc.flags = CLOCK_SOURCE_IS_CONTINUOUS; in tegra186_timer_osc_init()
347 return clocksource_register_hz(&tegra->osc, 38400000); in tegra186_timer_osc_init()
444 clocksource_unregister(&tegra->osc); in tegra186_timer_probe()
455 clocksource_unregister(&tegra->osc); in tegra186_timer_remove()
/linux-6.1.9/arch/xtensa/boot/dts/
Dxtfpga.dtsi23 clocks = <&osc>;
51 osc: main-oscillator { label
66 clocks = <&osc>;
75 clocks = <&osc>;
95 clocks = <&osc>;
Dcsp.dts35 osc: main-oscillator { label
49 clocks = <&osc>, <&osc>;
Dvirt.dts25 clocks = <&osc>;
30 osc: osc { label
/linux-6.1.9/drivers/rtc/
Drtc-rs5c372.c324 static int rs5c372_get_trim(struct i2c_client *client, int *osc, int *trim) in rs5c372_get_trim() argument
329 if (osc) { in rs5c372_get_trim()
331 *osc = (tmp & RS5C372_TRIM_XSL) ? 32000 : 32768; in rs5c372_get_trim()
333 *osc = 32768; in rs5c372_get_trim()
478 int err, osc, trim; in rs5c372_rtc_proc() local
480 err = rs5c372_get_trim(to_i2c_client(dev), &osc, &trim); in rs5c372_rtc_proc()
483 osc / 1000, osc % 1000); in rs5c372_rtc_proc()
694 int err, osc; in rs5c372_sysfs_show_osc() local
696 err = rs5c372_get_trim(to_i2c_client(dev), &osc, NULL); in rs5c372_sysfs_show_osc()
700 return sprintf(buf, "%d.%03d KHz\n", osc / 1000, osc % 1000); in rs5c372_sysfs_show_osc()
[all …]
/linux-6.1.9/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-core.c125 mcp251xfd_get_osc_str(const u32 osc, const u32 osc_reference) in mcp251xfd_get_osc_str() argument
127 switch (~osc & osc_reference & in mcp251xfd_get_osc_str()
230 u32 con = 0, con_reqop, osc = 0; in __mcp251xfd_chip_set_mode() local
261 regmap_read(priv->map_reg, MCP251XFD_REG_OSC, &osc); in __mcp251xfd_chip_set_mode()
266 con, osc); in __mcp251xfd_chip_set_mode()
276 con, osc); in __mcp251xfd_chip_set_mode()
299 u32 osc; in mcp251xfd_chip_wait_for_osc_ready() local
302 err = regmap_read_poll_timeout(priv->map_reg, MCP251XFD_REG_OSC, osc, in mcp251xfd_chip_wait_for_osc_ready()
303 !mcp251xfd_reg_invalid(osc) && in mcp251xfd_chip_wait_for_osc_ready()
304 (osc & osc_mask) == osc_reference, in mcp251xfd_chip_wait_for_osc_ready()
[all …]
/linux-6.1.9/arch/arm64/boot/dts/broadcom/northstar2/
Dns2-clock.dtsi35 osc: oscillator { label
47 clocks = <&osc>;
60 clocks = <&osc>;
74 clocks = <&osc>;
102 clocks = <&osc>;
/linux-6.1.9/drivers/clk/tegra/
Dclk-tegra-fixed.c30 struct clk *clk, *osc; in tegra_osc_clk_init() local
53 osc = clk_register_fixed_rate(NULL, "osc", NULL, 0, *osc_freq); in tegra_osc_clk_init()
54 *dt_clk = osc; in tegra_osc_clk_init()
/linux-6.1.9/arch/arm64/boot/dts/synaptics/
Dberlin4ct.dtsi82 osc: osc { label
244 clocks = <&osc>;
251 clocks = <&osc>;
258 clocks = <&osc>;
296 clocks = <&osc>;

1234567