| /linux/drivers/clk/at91/ |
| H A D | sckc.c | 72 struct clk_slow_osc *osc = to_clk_slow_osc(hw); in clk_slow_osc_prepare() local 73 void __iomem *sckcr = osc->sckcr; in clk_slow_osc_prepare() 76 if (tmp & (osc->bits->cr_osc32byp | osc->bits->cr_osc32en)) in clk_slow_osc_prepare() 79 writel(tmp | osc->bits->cr_osc32en, sckcr); in clk_slow_osc_prepare() 82 udelay(osc->startup_usec); in clk_slow_osc_prepare() 84 usleep_range(osc->startup_usec, osc->startup_usec + 1); in clk_slow_osc_prepare() 91 struct clk_slow_osc *osc = to_clk_slow_osc(hw); in clk_slow_osc_unprepare() local 92 void __iomem *sckcr = osc->sckcr; in clk_slow_osc_unprepare() 95 if (tmp & osc->bits->cr_osc32byp) in clk_slow_osc_unprepare() 98 writel(tmp & ~osc->bits->cr_osc32en, sckcr); in clk_slow_osc_unprepare() [all …]
|
| H A D | clk-main.c | 73 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/drivers/clk/versatile/ |
| H A D | clk-vexpress-osc.c | 23 #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_determine_rate() local 41 if (osc->rate_min && req->rate < osc->rate_min) in vexpress_osc_determine_rate() 42 req->rate = osc->rate_min; in vexpress_osc_determine_rate() 44 if (osc->rate_max && req->rate > osc->rate_max) in vexpress_osc_determine_rate() 45 req->rate = osc->rate_max; in vexpress_osc_determine_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/drivers/clocksource/ |
| H A D | timer-tegra186.c | 95 struct clocksource osc; member 385 osc); in tegra186_timer_osc_read() 392 tegra->osc.name = "osc"; in tegra186_timer_osc_init() 393 tegra->osc.rating = 300; in tegra186_timer_osc_init() 394 tegra->osc.read = tegra186_timer_osc_read; in tegra186_timer_osc_init() 395 tegra->osc.mask = CLOCKSOURCE_MASK(32); in tegra186_timer_osc_init() 396 tegra->osc.flags = CLOCK_SOURCE_IS_CONTINUOUS; in tegra186_timer_osc_init() 397 tegra->osc.owner = THIS_MODULE; in tegra186_timer_osc_init() 399 return clocksource_register_hz(&tegra->osc, 38400000); in tegra186_timer_osc_init() 473 clocksource_unregister(&tegra->osc); in tegra186_timer_probe() [all …]
|
| /linux/arch/arm/boot/dts/broadcom/ |
| H A D | bcm-cygnus-clock.dtsi | 38 osc: oscillator { label 48 clocks = <&osc>; 74 clocks = <&osc>; 101 clocks = <&osc>; 110 clocks = <&osc>; 121 clocks = <&osc>; 129 clocks = <&osc>;
|
| H A D | bcm5301x.dtsi | 16 clocks = <&osc>; 34 osc: oscillator { label 81 clocks = <&osc>; 90 clocks = <&osc>;
|
| H A D | bcm-hr2.dtsi | 71 clocks = <&osc>; 120 osc: oscillator { label 145 clocks = <&osc>; 153 clocks = <&osc>; 210 clocks = <&osc>;
|
| /linux/arch/xtensa/boot/dts/ |
| H A D | xtfpga.dtsi | 23 clocks = <&osc>; 51 osc: main-oscillator { label 66 clocks = <&osc>; 75 clocks = <&osc>; 95 clocks = <&osc>;
|
| H A D | csp.dts | 35 osc: main-oscillator { label 49 clocks = <&osc>, <&osc>;
|
| H A D | virt.dts | 25 clocks = <&osc>; 30 osc: osc { label
|
| /linux/drivers/rtc/ |
| H A D | rtc-rs5c372.c | 324 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/arch/arm/boot/dts/arm/ |
| H A D | vexpress-v2p-ca5s.dts | 150 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";
|
| H A D | vexpress-v2p-ca15-tc1.dts | 147 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";
|
| H A D | vexpress-v2p-ca15_a7.dts | 258 compatible = "arm,vexpress-osc"; 267 compatible = "arm,vexpress-osc"; 276 compatible = "arm,vexpress-osc"; 285 compatible = "arm,vexpress-osc"; 294 compatible = "arm,vexpress-osc"; 303 compatible = "arm,vexpress-osc"; 312 compatible = "arm,vexpress-osc"; 321 compatible = "arm,vexpress-osc"; 330 compatible = "arm,vexpress-osc";
|
| /linux/drivers/net/can/spi/mcp251xfd/ |
| H A D | mcp251xfd-core.c | 143 mcp251xfd_get_osc_str(const u32 osc, const u32 osc_reference) in mcp251xfd_get_osc_str() argument 145 switch (~osc & osc_reference & in mcp251xfd_get_osc_str() 250 u32 con = 0, con_reqop, osc = 0; in __mcp251xfd_chip_set_mode() local 285 regmap_read(priv->map_reg, MCP251XFD_REG_OSC, &osc); in __mcp251xfd_chip_set_mode() 290 con, osc); in __mcp251xfd_chip_set_mode() 300 con, osc); in __mcp251xfd_chip_set_mode() 323 u32 osc; in mcp251xfd_chip_wait_for_osc_ready() local 326 err = regmap_read_poll_timeout(priv->map_reg, MCP251XFD_REG_OSC, osc, in mcp251xfd_chip_wait_for_osc_ready() 327 !mcp251xfd_reg_invalid(osc) && in mcp251xfd_chip_wait_for_osc_ready() 328 (osc & osc_mask) == osc_reference, in mcp251xfd_chip_wait_for_osc_ready() [all …]
|
| /linux/drivers/clk/tegra/ |
| H A D | clk-tegra-fixed.c | 30 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/arch/arm64/boot/dts/synaptics/ |
| H A D | berlin4ct.dtsi | 84 osc: osc { label 246 clocks = <&osc>; 253 clocks = <&osc>; 260 clocks = <&osc>; 298 clocks = <&osc>;
|
| /linux/arch/arm/boot/dts/nxp/imx/ |
| H A D | imxrt1050.dtsi | 17 osc: osc { label 55 clocks = <&osc>; 56 clock-names = "osc";
|
| /linux/arch/arm/boot/dts/calxeda/ |
| H A D | ecx-common.dtsi | 139 osc: oscillator { label 148 clocks = <&osc>; 155 clocks = <&osc>; 176 clocks = <&osc>;
|
| /linux/drivers/char/hw_random/ |
| H A D | mxc-rnga.c | 102 u32 ctrl, osc; in mxc_rnga_init() local 110 osc = __raw_readl(mxc_rng->mem + RNGA_STATUS); in mxc_rnga_init() 111 if (osc & RNGA_STATUS_OSC_DEAD) { in mxc_rnga_init()
|
| /linux/Documentation/devicetree/bindings/phy/ |
| H A D | phy-miphy28lp.txt | 34 - st,osc-rdy : to check the MIPHY0_OSC_RDY status in the glue-logic. This 37 - st,osc-force-ext : to select the external oscillator. This can change from 65 st,osc-rdy; 81 st,osc-force-ext;
|
| /linux/arch/arm64/boot/dts/bitmain/ |
| H A D | bm1880.dtsi | 70 osc: osc { label 108 clocks = <&osc>; 109 clock-names = "osc";
|
| /linux/drivers/mfd/ |
| H A D | twl-core.c | 635 struct clk *osc; in clocks_init() local 639 osc = clk_get(dev, "fck"); in clocks_init() 640 if (IS_ERR(osc)) { in clocks_init() 646 rate = clk_get_rate(osc); in clocks_init() 647 clk_put(osc); in clocks_init()
|
| /linux/arch/arm/boot/dts/st/ |
| H A D | stih418-b2199.dts | 43 st,osc-rdy; 47 st,osc-force-ext;
|
| /linux/arch/powerpc/boot/dts/ |
| H A D | mpc5125twr.dts | 59 osc: osc { label 103 clocks = <&osc>; 104 clock-names = "osc";
|