| /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-4.19/drivers/clk/at91/ |
| D | sckc.c | 68 struct clk_slow_osc *osc = to_clk_slow_osc(hw); in clk_slow_osc_prepare() local 69 void __iomem *sckcr = osc->sckcr; in clk_slow_osc_prepare() 78 udelay(osc->startup_usec); in clk_slow_osc_prepare() 80 usleep_range(osc->startup_usec, osc->startup_usec + 1); in clk_slow_osc_prepare() 87 struct clk_slow_osc *osc = to_clk_slow_osc(hw); in clk_slow_osc_unprepare() local 88 void __iomem *sckcr = osc->sckcr; in clk_slow_osc_unprepare() 99 struct clk_slow_osc *osc = to_clk_slow_osc(hw); in clk_slow_osc_is_prepared() local 100 void __iomem *sckcr = osc->sckcr; in clk_slow_osc_is_prepared() 122 struct clk_slow_osc *osc; in at91_clk_register_slow_osc() local 130 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_slow_osc() [all …]
|
| D | clk-main.c | 76 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_prepare() local 77 struct regmap *regmap = osc->regmap; in clk_main_osc_prepare() 99 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_unprepare() local 100 struct regmap *regmap = osc->regmap; in clk_main_osc_unprepare() 116 struct clk_main_osc *osc = to_clk_main_osc(hw); in clk_main_osc_is_prepared() local 117 struct regmap *regmap = osc->regmap; in clk_main_osc_is_prepared() 141 struct clk_main_osc *osc; in at91_clk_register_main_osc() local 149 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_main_osc() 150 if (!osc) in at91_clk_register_main_osc() 159 osc->hw.init = &init; in at91_clk_register_main_osc() [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-4.19/drivers/clk/versatile/ |
| D | clk-vexpress-osc.c | 29 #define to_vexpress_osc(osc) container_of(osc, struct vexpress_osc, hw) argument 34 struct vexpress_osc *osc = to_vexpress_osc(hw); in vexpress_osc_recalc_rate() local 37 regmap_read(osc->reg, 0, &rate); in vexpress_osc_recalc_rate() 45 struct vexpress_osc *osc = to_vexpress_osc(hw); in vexpress_osc_round_rate() local 47 if (osc->rate_min && rate < osc->rate_min) in vexpress_osc_round_rate() 48 rate = osc->rate_min; in vexpress_osc_round_rate() 50 if (osc->rate_max && rate > osc->rate_max) in vexpress_osc_round_rate() 51 rate = osc->rate_max; in vexpress_osc_round_rate() 59 struct vexpress_osc *osc = to_vexpress_osc(hw); in vexpress_osc_set_rate() local 61 return regmap_write(osc->reg, 0, rate); in vexpress_osc_set_rate() [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-4.19/drivers/clk/imx/ |
| D | clk-imx7d.c | 49 static const char *arm_a7_sel[] = { "osc", "pll_arm_main_clk", 54 static const char *arm_m4_sel[] = { "osc", "pll_sys_main_240m_clk", 59 static const char *axi_sel[] = { "osc", "pll_sys_pfd1_332m_clk", 63 static const char *disp_axi_sel[] = { "osc", "pll_sys_pfd1_332m_clk", 67 static const char *enet_axi_sel[] = { "osc", "pll_sys_pfd2_270m_clk", 72 static const char *nand_usdhc_bus_sel[] = { "osc", "pll_sys_pfd2_270m_clk", 77 static const char *ahb_channel_sel[] = { "osc", "pll_sys_pfd2_270m_clk", 88 static const char *dram_phym_alt_sel[] = { "osc", "pll_dram_533m_clk", 93 static const char *dram_alt_sel[] = { "osc", "pll_dram_533m_clk", 98 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-4.19/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";
|
| D | clock-bindings.txt | 83 clocks = <&osc 1>, <&ref 0>; 89 The baud clock is connected to output 1 of the &osc device, and the register 95 osc: oscillator { 99 clock-output-names = "osc"; 107 clocks = <&osc 0>; 120 clocks = <&osc 0>, <&pll 1>; 128 * The oscillator is fixed-frequency, and provides one clock output, named "osc". 153 clocks = <&osc 0>, <&pll 1>;
|
| D | imx8m-clock.yaml | 61 - description: 32k osc 62 - description: 25m osc 63 - description: 27m osc 83 - description: 32k osc 84 - description: 24m osc
|
| /kernel/linux/linux-4.19/drivers/clk/loongson1/ |
| D | clk-loongson1b.c | 18 #define OSC (33 * 1000000) macro 30 rate *= OSC; in ls1x_pll_recalc_rate() 48 hw = clk_hw_register_fixed_rate(NULL, "osc_clk", NULL, 0, OSC); in ls1x_clk_init() 51 /* clock derived from 33 MHz OSC clk */ in ls1x_clk_init() 59 * OSC ___/ | MUX |___ CPU CLK in ls1x_clk_init() 77 * OSC ___/ | MUX |___ DC CLK in ls1x_clk_init() 93 * OSC ___/ | MUX |___ DDR CLK in ls1x_clk_init()
|
| /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-4.19/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-4.19/drivers/clk/zte/ |
| D | clk-zx296702.c | 88 "osc", 95 "osc", 102 "osc", 151 "osc", 156 "osc", 237 clk_register_fixed_rate(NULL, "osc", NULL, 0, 30000000); in zx296702_top_clocks_init() 239 clk_register_zx_pll("pll_a9", "osc", 0, topcrm_base in zx296702_top_clocks_init() 245 clk_register_fixed_rate(NULL, "pll_a9_350M", "osc", 0, in zx296702_top_clocks_init() 248 clk_register_fixed_rate(NULL, "pll_mac_1000M", "osc", 0, in zx296702_top_clocks_init() 251 clk_register_fixed_rate(NULL, "pll_mac_333M", "osc", 0, in zx296702_top_clocks_init() [all …]
|
| /kernel/linux/linux-4.19/Documentation/devicetree/bindings/clock/ |
| D | clock-bindings.txt | 83 clocks = <&osc 1>, <&ref 0>; 89 The baud clock is connected to output 1 of the &osc device, and the register 95 osc: oscillator { 99 clock-output-names = "osc"; 107 clocks = <&osc 0>; 120 clocks = <&osc 0>, <&pll 1>; 128 * The oscillator is fixed-frequency, and provides one clock output, named "osc". 153 clocks = <&osc 0>, <&pll 1>;
|
| /kernel/linux/linux-4.19/drivers/clk/tegra/ |
| D | clk-tegra-fixed.c | 37 struct clk *clk, *osc; in tegra_osc_clk_init() local 55 osc = clk_register_fixed_rate(NULL, "osc", NULL, 0, *osc_freq); in tegra_osc_clk_init() 61 clk = clk_register_fixed_factor(NULL, "clk_m", "osc", in tegra_osc_clk_init() 72 clk = clk_register_fixed_factor(NULL, "pll_ref", "osc", in tegra_osc_clk_init()
|