| /kernel/linux/linux-6.6/drivers/clk/at91/ |
| D | sckc.c | 70 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 …]
|
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/clk/at91/ |
| D | sckc.c | 70 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 …]
|
| D | clk-main.c | 70 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 …]
|
| /kernel/linux/linux-6.6/drivers/clk/versatile/ |
| 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_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 …]
|
| /kernel/linux/linux-5.10/drivers/clk/versatile/ |
| 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_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 …]
|
| /kernel/linux/linux-6.6/drivers/clk/imx/ |
| D | clk-imx7d.c | 44 static const char *arm_a7_sel[] = { "osc", "pll_arm_main_clk", 49 static const char *arm_m4_sel[] = { "osc", "pll_sys_main_240m_clk", 54 static const char *axi_sel[] = { "osc", "pll_sys_pfd1_332m_clk", 58 static const char *disp_axi_sel[] = { "osc", "pll_sys_pfd1_332m_clk", 62 static const char *enet_axi_sel[] = { "osc", "pll_sys_pfd2_270m_clk", 67 static const char *nand_usdhc_bus_sel[] = { "osc", "pll_sys_pfd2_270m_clk", 72 static const char *ahb_channel_sel[] = { "osc", "pll_sys_pfd2_270m_clk", 83 static const char *dram_phym_alt_sel[] = { "osc", "pll_dram_533m_clk", 88 static const char *dram_alt_sel[] = { "osc", "pll_dram_533m_clk", 93 static const char *usb_hsic_sel[] = { "osc", "pll_sys_main_clk", [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/imx/ |
| D | clk-imx7d.c | 44 static const char *arm_a7_sel[] = { "osc", "pll_arm_main_clk", 49 static const char *arm_m4_sel[] = { "osc", "pll_sys_main_240m_clk", 54 static const char *axi_sel[] = { "osc", "pll_sys_pfd1_332m_clk", 58 static const char *disp_axi_sel[] = { "osc", "pll_sys_pfd1_332m_clk", 62 static const char *enet_axi_sel[] = { "osc", "pll_sys_pfd2_270m_clk", 67 static const char *nand_usdhc_bus_sel[] = { "osc", "pll_sys_pfd2_270m_clk", 72 static const char *ahb_channel_sel[] = { "osc", "pll_sys_pfd2_270m_clk", 83 static const char *dram_phym_alt_sel[] = { "osc", "pll_dram_533m_clk", 88 static const char *dram_alt_sel[] = { "osc", "pll_dram_533m_clk", 93 static const char *usb_hsic_sel[] = { "osc", "pll_sys_main_clk", [all …]
|
| /kernel/linux/linux-5.10/drivers/clk/tegra/ |
| 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() 59 clk = clk_register_fixed_factor(NULL, "osc_div2", "osc", in tegra_osc_clk_init() 67 clk = clk_register_fixed_factor(NULL, "osc_div4", "osc", in tegra_osc_clk_init() 76 clk = clk_register_fixed_factor(NULL, "clk_m", "osc", in tegra_osc_clk_init() 87 clk = clk_register_fixed_factor(NULL, "pll_ref", "osc", in tegra_osc_clk_init()
|
| /kernel/linux/linux-6.6/drivers/clk/tegra/ |
| 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() 59 clk = clk_register_fixed_factor(NULL, "osc_div2", "osc", in tegra_osc_clk_init() 67 clk = clk_register_fixed_factor(NULL, "osc_div4", "osc", in tegra_osc_clk_init() 76 clk = clk_register_fixed_factor(NULL, "clk_m", "osc", in tegra_osc_clk_init() 87 clk = clk_register_fixed_factor(NULL, "pll_ref", "osc", in tegra_osc_clk_init()
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/broadcom/stingray/ |
| D | stingray-clock.dtsi | 35 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>;
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/broadcom/stingray/ |
| D | stingray-clock.dtsi | 35 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>;
|
| /kernel/linux/linux-5.10/drivers/clk/loongson1/ |
| D | clk-loongson1b.c | 14 #define OSC (33 * 1000000) macro 26 rate *= OSC; in ls1x_pll_recalc_rate() 44 hw = clk_hw_register_fixed_rate(NULL, "osc_clk", NULL, 0, OSC); in ls1x_clk_init() 47 /* clock derived from 33 MHz OSC clk */ in ls1x_clk_init() 55 * OSC ___/ | MUX |___ CPU CLK in ls1x_clk_init() 73 * OSC ___/ | MUX |___ DC CLK in ls1x_clk_init() 89 * OSC ___/ | MUX |___ DDR CLK in ls1x_clk_init()
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/clock/ |
| D | imx7d-clock.yaml | 35 - description: 32k osc 36 - description: 24m osc 41 - const: osc 63 clocks = <&ckil>, <&osc>; 64 clock-names = "ckil", "osc";
|
| D | imx6sll-clock.yaml | 32 - 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";
|
| D | imx6ul-clock.yaml | 32 - 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";
|
| D | imx6sx-clock.yaml | 32 - 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";
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/clock/ |
| D | imx7d-clock.yaml | 35 - description: 32k osc 36 - description: 24m osc 41 - const: osc 63 clocks = <&ckil>, <&osc>; 64 clock-names = "ckil", "osc";
|
| D | imx6ul-clock.yaml | 32 - 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";
|
| D | imx6sll-clock.yaml | 32 - 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";
|
| D | imx6sx-clock.yaml | 32 - 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";
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/broadcom/ |
| 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>;
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| 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>;
|
| /kernel/linux/linux-5.10/drivers/clk/zte/ |
| D | clk-zx296702.c | 85 "osc", 92 "osc", 99 "osc", 148 "osc", 153 "osc", 234 clk_register_fixed_rate(NULL, "osc", NULL, 0, 30000000); in zx296702_top_clocks_init() 236 clk_register_zx_pll("pll_a9", "osc", 0, topcrm_base in zx296702_top_clocks_init() 242 clk_register_fixed_rate(NULL, "pll_a9_350M", "osc", 0, in zx296702_top_clocks_init() 245 clk_register_fixed_rate(NULL, "pll_mac_1000M", "osc", 0, in zx296702_top_clocks_init() 248 clk_register_fixed_rate(NULL, "pll_mac_333M", "osc", 0, in zx296702_top_clocks_init() [all …]
|
| /kernel/linux/linux-6.6/drivers/clocksource/ |
| D | timer-tegra186.c | 90 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() 421 dev_err(dev, "failed to register OSC counter: %d\n", err); in tegra186_timer_probe() 443 clocksource_unregister(&tegra->osc); in tegra186_timer_probe() [all …]
|