Home
last modified time | relevance | path

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

123456789

/openbmc/linux/drivers/clk/versatile/
H A Dclk-vexpress-osc.c23 #define to_vexpress_osc(osc) container_of(osc, struct vexpress_osc, hw) argument
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()
68 struct vexpress_osc *osc; in vexpress_osc_probe() local
72 osc = devm_kzalloc(&pdev->dev, sizeof(*osc), GFP_KERNEL); in vexpress_osc_probe()
73 if (!osc) in vexpress_osc_probe()
77 if (IS_ERR(osc->reg)) in vexpress_osc_probe()
94 osc->hw.init = &init; in vexpress_osc_probe()
[all …]
/openbmc/linux/drivers/clk/at91/
H A Dsckc.c82 usleep_range(osc->startup_usec, osc->startup_usec + 1); in clk_slow_osc_prepare()
133 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_slow_osc()
134 if (!osc) in at91_clk_register_slow_osc()
167 kfree(osc); in at91_clk_unregister_slow_osc()
213 return !!(readl(osc->sckcr) & osc->bits->cr_rcen); in clk_slow_rc_osc_is_prepared()
240 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_slow_rc_osc()
241 if (!osc) in at91_clk_register_slow_rc_osc()
272 kfree(osc); in at91_clk_unregister_slow_rc_osc()
554 if ((readl(osc->sckcr) & osc->bits->cr_oscsel)) { in clk_sama5d4_slow_osc_prepare()
612 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in of_sama5d4_sckc_setup()
[all …]
H A Dclk-main.c139 if (osc->pms.status) in clk_main_osc_restore_context()
166 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_main_osc()
167 if (!osc) in at91_clk_register_main_osc()
179 osc->hw.init = &init; in at91_clk_register_main_osc()
188 hw = &osc->hw; in at91_clk_register_main_osc()
191 kfree(osc); in at91_clk_register_main_osc()
282 if (osc->pms.status) in clk_main_rc_osc_restore_context()
309 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_main_rc_osc()
310 if (!osc) in at91_clk_register_main_rc_osc()
324 hw = &osc->hw; in at91_clk_register_main_rc_osc()
[all …]
/openbmc/u-boot/drivers/clk/
H A Dclk_vexpress_osc.c18 u8 osc; member
30 data = CLK_FUNCTION | priv->osc; in vexpress_osc_clk_get_rate()
53 buffer[0] = CLK_FUNCTION | priv->osc; in vexpress_osc_clk_set_rate()
90 priv->osc = values[1]; in vexpress_osc_clk_probe()
92 priv->osc, priv->rate_min, priv->rate_max); in vexpress_osc_clk_probe()
/openbmc/linux/Documentation/devicetree/bindings/clock/
H A 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";
H A 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";
H A Dimx7d-clock.yaml35 - description: 32k osc
36 - description: 24m osc
41 - const: osc
63 clocks = <&ckil>, <&osc>;
64 clock-names = "ckil", "osc";
H A 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";
H A Dimxrt1050-clock.yaml29 description: 24m osc
33 const: osc
56 clocks = <&osc>;
57 clock-names = "osc";
H A Dimx8m-clock.yaml62 - description: 32k osc
63 - description: 25m osc
64 - description: 27m osc
82 - description: 32k osc
83 - description: 24m osc
H A 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";
H A Dbitmain,bm1880-clk.yaml37 const: osc
59 clocks = <&osc>;
60 clock-names = "osc";
H A Dstarfive,jh7110-aoncrg.yaml49 - const: osc
60 - const: osc
95 clocks = <&osc>, <&gmac0_rmii_refin>,
101 clock-names = "osc", "gmac0_rmii_refin",
/openbmc/linux/arch/arm64/boot/dts/broadcom/stingray/
H A 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>;
/openbmc/linux/arch/arm/boot/dts/broadcom/
H A 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>;
/openbmc/linux/drivers/clocksource/
H A Dtimer-tegra186.c90 struct clocksource osc; member
333 osc); in tegra186_timer_osc_read()
340 tegra->osc.name = "osc"; in tegra186_timer_osc_init()
341 tegra->osc.rating = 300; in tegra186_timer_osc_init()
342 tegra->osc.read = tegra186_timer_osc_read; in tegra186_timer_osc_init()
343 tegra->osc.mask = CLOCKSOURCE_MASK(32); in tegra186_timer_osc_init()
344 tegra->osc.flags = CLOCK_SOURCE_IS_CONTINUOUS; in tegra186_timer_osc_init()
346 return clocksource_register_hz(&tegra->osc, 38400000); in tegra186_timer_osc_init()
443 clocksource_unregister(&tegra->osc); in tegra186_timer_probe()
454 clocksource_unregister(&tegra->osc); in tegra186_timer_remove()
/openbmc/linux/arch/xtensa/boot/dts/
H A Dxtfpga.dtsi23 clocks = <&osc>;
51 osc: main-oscillator { label
66 clocks = <&osc>;
75 clocks = <&osc>;
95 clocks = <&osc>;
H A Dcsp.dts35 osc: main-oscillator { label
49 clocks = <&osc>, <&osc>;
H A Dvirt.dts25 clocks = <&osc>;
30 osc: osc { label
/openbmc/u-boot/arch/arm/mach-socfpga/
H A Dwrap_pll_config.c128 const unsigned int cm_get_osc_clk_hz(const int osc) in cm_get_osc_clk_hz() argument
130 if (osc == 1) in cm_get_osc_clk_hz()
132 else if (osc == 2) in cm_get_osc_clk_hz()
/openbmc/linux/drivers/rtc/
H A 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 …]
/openbmc/linux/arch/arm/boot/dts/arm/
H A Dvexpress-v2p-ca5s.dts150 compatible = "arm,vexpress-osc";
159 compatible = "arm,vexpress-osc";
168 compatible = "arm,vexpress-osc";
177 compatible = "arm,vexpress-osc";
186 compatible = "arm,vexpress-osc";
195 compatible = "arm,vexpress-osc";
/openbmc/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-core.c127 switch (~osc & osc_reference & in mcp251xfd_get_osc_str()
232 u32 con = 0, con_reqop, osc = 0; in __mcp251xfd_chip_set_mode() local
272 con, osc); in __mcp251xfd_chip_set_mode()
282 con, osc); in __mcp251xfd_chip_set_mode()
305 u32 osc; in mcp251xfd_chip_wait_for_osc_ready() local
316 if (mcp251xfd_reg_invalid(osc)) { in mcp251xfd_chip_wait_for_osc_ready()
319 osc); in mcp251xfd_chip_wait_for_osc_ready()
370 u32 osc; in mcp251xfd_chip_sleep() local
474 osc = MCP251XFD_REG_OSC_LPMEN | in mcp251xfd_chip_clock_init()
481 osc |= MCP251XFD_REG_OSC_PLLEN; in mcp251xfd_chip_clock_init()
[all …]
/openbmc/linux/drivers/clk/tegra/
H A 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()
/openbmc/linux/arch/arm64/boot/dts/broadcom/northstar2/
H A Dns2-clock.dtsi35 osc: oscillator { label
47 clocks = <&osc>;
60 clocks = <&osc>;
74 clocks = <&osc>;
102 clocks = <&osc>;

123456789