Home
last modified time | relevance | path

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

/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.c70 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_prepare() local
71 struct regmap *regmap = osc->regmap; in clk_main_osc_prepare()
93 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_unprepare() local
94 struct regmap *regmap = osc->regmap; in clk_main_osc_unprepare()
110 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_is_prepared() local
111 struct regmap *regmap = osc->regmap; in clk_main_osc_is_prepared()
135 struct clk_main_osc *osc; in at91_clk_register_main_osc() local
143 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_main_osc()
144 if (!osc) in at91_clk_register_main_osc()
153 osc->hw.init = &init; in at91_clk_register_main_osc()
[all …]
/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 …]
DMakefile6 obj-$(CONFIG_CLK_VEXPRESS_OSC) += clk-vexpress-osc.o
/drivers/rtc/
Drtc-rs5c372.c322 static int rs5c372_get_trim(struct i2c_client *client, int *osc, int *trim) in rs5c372_get_trim() argument
327 if (osc) in rs5c372_get_trim()
328 *osc = (tmp & RS5C372_TRIM_XSL) ? 32000 : 32768; in rs5c372_get_trim()
472 int err, osc, trim; in rs5c372_rtc_proc() local
474 err = rs5c372_get_trim(to_i2c_client(dev), &osc, &trim); in rs5c372_rtc_proc()
477 osc / 1000, osc % 1000); in rs5c372_rtc_proc()
515 int err, osc; in rs5c372_sysfs_show_osc() local
517 err = rs5c372_get_trim(to_i2c_client(dev), &osc, NULL); in rs5c372_sysfs_show_osc()
521 return sprintf(buf, "%d.%03d KHz\n", osc / 1000, osc % 1000); in rs5c372_sysfs_show_osc()
523 static DEVICE_ATTR(osc, S_IRUGO, rs5c372_sysfs_show_osc, NULL);
/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()
Dclk-pll.c1117 struct clk_hw *osc = clk_hw_get_parent(pll_ref); in clk_pllu_enable() local
1124 if (!osc) { in clk_pllu_enable()
1129 input_rate = clk_hw_get_rate(osc); in clk_pllu_enable()
1741 struct clk *osc = __clk_lookup("osc"); in clk_pllu_tegra114_enable() local
1747 if (!osc) { in clk_pllu_tegra114_enable()
1752 input_rate = clk_hw_get_rate(__clk_get_hw(osc)); in clk_pllu_tegra114_enable()
/drivers/char/hw_random/
Dmxc-rnga.c102 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()
/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-core.c524 u32 osc, osc_reference, osc_mask; in mcp251xfd_chip_clock_enable() local
530 osc = FIELD_PREP(MCP251XFD_REG_OSC_CLKODIV_MASK, in mcp251xfd_chip_clock_enable()
541 err = regmap_write(priv->map_reg, MCP251XFD_REG_OSC, osc); in mcp251xfd_chip_clock_enable()
546 err = regmap_read_poll_timeout(priv->map_reg, MCP251XFD_REG_OSC, osc, in mcp251xfd_chip_clock_enable()
547 (osc & osc_mask) == osc_reference, in mcp251xfd_chip_clock_enable()
550 if (mcp251xfd_osc_invalid(osc)) { in mcp251xfd_chip_clock_enable()
553 mcp251xfd_get_model_str(priv), osc); in mcp251xfd_chip_clock_enable()
558 osc, osc_reference); in mcp251xfd_chip_clock_enable()
589 u32 osc, osc_reference; in mcp251xfd_chip_softreset_check() local
609 err = regmap_read(priv->map_reg, MCP251XFD_REG_OSC, &osc); in mcp251xfd_chip_softreset_check()
[all …]
/drivers/bluetooth/
Dbtmtkuart.c120 struct clk *osc; member
913 bdev->osc = devm_clk_get_optional(&serdev->dev, "osc"); in btmtkuart_parse_dt()
914 if (IS_ERR(bdev->osc)) { in btmtkuart_parse_dt()
915 err = PTR_ERR(bdev->osc); in btmtkuart_parse_dt()
1013 err = clk_prepare_enable(bdev->osc); in btmtkuart_probe()
1071 clk_disable_unprepare(bdev->osc); in btmtkuart_probe()
1085 clk_disable_unprepare(bdev->osc); in btmtkuart_remove()
/drivers/clk/sirf/
Dclk-atlas6.c61 rtc, osc, pll1, pll2, pll3, mem, sys, security, dsp, gps, enumerator
133 atlas6_clks[osc] = clk_register_fixed_rate(NULL, "osc", NULL, 0, in atlas6_clk_init()
Dclk-prima2.c60 rtc, osc, pll1, pll2, pll3, mem, sys, security, dsp, gps, enumerator
132 prima2_clks[osc] = clk_register_fixed_rate(NULL, "osc", NULL, 0, in prima2_clk_init()
/drivers/mfd/
Dtwl-core.c994 struct clk *osc; in clocks_init() local
998 osc = clk_get(dev, "fck"); in clocks_init()
999 if (IS_ERR(osc)) { in clocks_init()
1005 rate = clk_get_rate(osc); in clocks_init()
1006 clk_put(osc); in clocks_init()
/drivers/media/tuners/
Dmax2165.c121 static int max2165_set_osc(struct max2165_priv *priv, u8 osc /*MHz*/) in max2165_set_osc() argument
125 v = (osc / 2); in max2165_set_osc()
/drivers/clk/zte/
Dclk-zx296718.c124 PNAME(osc) = {
474 MUX(0, "timer_mux", osc, TOP_CLK_MUX9, 4, 1),
/drivers/clk/imx/
Dclk-imx25.c53 dummy, osc, mpll, upll, mpll_cpu_3_4, cpu_sel, cpu, ahb, usb_div, ipg, enumerator
/drivers/soc/tegra/
Dpmc.c2686 u32 value, osc, pmu, off; in tegra20_pmc_init() local
2715 osc = DIV_ROUND_UP(pmc->core_osc_time * 8192, 1000000); in tegra20_pmc_init()
2718 tegra_pmc_writel(pmc, ((osc << 8) & 0xff00) | (pmu & 0xff), in tegra20_pmc_init()
/drivers/tty/
Dsynclink_gt.c3870 unsigned int osc = info->base_clock; in set_rate() local
3879 div = osc/rate; in set_rate()
3880 if (!(osc % rate) && div) in set_rate()
/drivers/pinctrl/tegra/
Dpinctrl-tegra20.c1924 FUNCTION(osc),