Home
last modified time | relevance | path

Searched refs:tclk (Results 1 - 25 of 34) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/clk/sunxi/
H A Dclk-sun4i-tcon-ch1.c36 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); in tcon_ch1_disable() local
40 spin_lock_irqsave(&tclk->lock, flags); in tcon_ch1_disable()
41 reg = readl(tclk->reg); in tcon_ch1_disable()
43 writel(reg, tclk->reg); in tcon_ch1_disable()
44 spin_unlock_irqrestore(&tclk->lock, flags); in tcon_ch1_disable()
49 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); in tcon_ch1_enable() local
53 spin_lock_irqsave(&tclk->lock, flags); in tcon_ch1_enable()
54 reg = readl(tclk->reg); in tcon_ch1_enable()
56 writel(reg, tclk->reg); in tcon_ch1_enable()
57 spin_unlock_irqrestore(&tclk in tcon_ch1_enable()
64 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); tcon_ch1_is_enabled() local
73 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); tcon_ch1_get_parent() local
84 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); tcon_ch1_set_parent() local
173 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); tcon_ch1_recalc_rate() local
189 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); tcon_ch1_set_rate() local
229 struct tcon_ch1_clk *tclk; tcon_ch1_setup() local
[all...]
/kernel/linux/linux-6.6/drivers/clk/sunxi/
H A Dclk-sun4i-tcon-ch1.c36 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); in tcon_ch1_disable() local
40 spin_lock_irqsave(&tclk->lock, flags); in tcon_ch1_disable()
41 reg = readl(tclk->reg); in tcon_ch1_disable()
43 writel(reg, tclk->reg); in tcon_ch1_disable()
44 spin_unlock_irqrestore(&tclk->lock, flags); in tcon_ch1_disable()
49 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); in tcon_ch1_enable() local
53 spin_lock_irqsave(&tclk->lock, flags); in tcon_ch1_enable()
54 reg = readl(tclk->reg); in tcon_ch1_enable()
56 writel(reg, tclk->reg); in tcon_ch1_enable()
57 spin_unlock_irqrestore(&tclk in tcon_ch1_enable()
64 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); tcon_ch1_is_enabled() local
73 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); tcon_ch1_get_parent() local
84 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); tcon_ch1_set_parent() local
173 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); tcon_ch1_recalc_rate() local
189 struct tcon_ch1_clk *tclk = hw_to_tclk(hw); tcon_ch1_set_rate() local
229 struct tcon_ch1_clk *tclk; tcon_ch1_setup() local
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-dove/
H A Dcommon.c76 static struct clk *tclk; variable
92 tclk = clk_register_fixed_rate(NULL, "tclk", NULL, 0, dove_tclk); in dove_clk_init()
94 usb0 = dove_register_gate("usb0", "tclk", CLOCK_GATING_BIT_USB0); in dove_clk_init()
95 usb1 = dove_register_gate("usb1", "tclk", CLOCK_GATING_BIT_USB1); in dove_clk_init()
96 sata = dove_register_gate("sata", "tclk", CLOCK_GATING_BIT_SATA); in dove_clk_init()
97 pex0 = dove_register_gate("pex0", "tclk", CLOCK_GATING_BIT_PCIE0); in dove_clk_init()
98 pex1 = dove_register_gate("pex1", "tclk", CLOCK_GATING_BIT_PCIE1); in dove_clk_init()
99 sdio0 = dove_register_gate("sdio0", "tclk", CLOCK_GATING_BIT_SDIO0); in dove_clk_init()
100 sdio1 = dove_register_gate("sdio1", "tclk", CLOCK_GATING_BIT_SDIO in dove_clk_init()
[all...]
/kernel/linux/linux-6.6/arch/arm/mach-dove/
H A Dcommon.c71 static struct clk *tclk; variable
87 tclk = clk_register_fixed_rate(NULL, "tclk", NULL, 0, dove_tclk); in dove_clk_init()
89 usb0 = dove_register_gate("usb0", "tclk", CLOCK_GATING_BIT_USB0); in dove_clk_init()
90 usb1 = dove_register_gate("usb1", "tclk", CLOCK_GATING_BIT_USB1); in dove_clk_init()
91 sata = dove_register_gate("sata", "tclk", CLOCK_GATING_BIT_SATA); in dove_clk_init()
92 pex0 = dove_register_gate("pex0", "tclk", CLOCK_GATING_BIT_PCIE0); in dove_clk_init()
93 pex1 = dove_register_gate("pex1", "tclk", CLOCK_GATING_BIT_PCIE1); in dove_clk_init()
94 sdio0 = dove_register_gate("sdio0", "tclk", CLOCK_GATING_BIT_SDIO0); in dove_clk_init()
95 sdio1 = dove_register_gate("sdio1", "tclk", CLOCK_GATING_BIT_SDIO in dove_clk_init()
[all...]
/kernel/linux/linux-5.10/arch/arm/plat-orion/
H A Dtime.c197 unsigned int irq, unsigned int tclk) in orion_time_init()
207 ticks_per_jiffy = (tclk + HZ/2) / HZ; in orion_time_init()
209 orion_delay_timer.freq = tclk; in orion_time_init()
215 sched_clock_register(orion_read_sched_clock, 32, tclk); in orion_time_init()
228 tclk, 300, 32, clocksource_mmio_readl_down); in orion_time_init()
237 clockevents_config_and_register(&orion_clkevt, tclk, 1, 0xfffffffe); in orion_time_init()
196 orion_time_init(void __iomem *_bridge_base, u32 _bridge_timer1_clr_mask, unsigned int irq, unsigned int tclk) orion_time_init() argument
H A Dcommon.c37 clkdev entries to the tclk. */
38 void __init orion_clkdev_init(struct clk *tclk) in orion_clkdev_init() argument
40 orion_clkdev_add(NULL, "orion_spi.0", tclk); in orion_clkdev_init()
41 orion_clkdev_add(NULL, "orion_spi.1", tclk); in orion_clkdev_init()
42 orion_clkdev_add(NULL, MV643XX_ETH_NAME ".0", tclk); in orion_clkdev_init()
43 orion_clkdev_add(NULL, MV643XX_ETH_NAME ".1", tclk); in orion_clkdev_init()
44 orion_clkdev_add(NULL, MV643XX_ETH_NAME ".2", tclk); in orion_clkdev_init()
45 orion_clkdev_add(NULL, MV643XX_ETH_NAME ".3", tclk); in orion_clkdev_init()
46 orion_clkdev_add(NULL, "orion_wdt", tclk); in orion_clkdev_init()
47 orion_clkdev_add(NULL, MV64XXX_I2C_CTLR_NAME ".0", tclk); in orion_clkdev_init()
[all...]
/kernel/linux/linux-6.6/arch/arm/plat-orion/
H A Dtime.c197 unsigned int irq, unsigned int tclk) in orion_time_init()
207 ticks_per_jiffy = (tclk + HZ/2) / HZ; in orion_time_init()
209 orion_delay_timer.freq = tclk; in orion_time_init()
215 sched_clock_register(orion_read_sched_clock, 32, tclk); in orion_time_init()
228 tclk, 300, 32, clocksource_mmio_readl_down); in orion_time_init()
237 clockevents_config_and_register(&orion_clkevt, tclk, 1, 0xfffffffe); in orion_time_init()
196 orion_time_init(void __iomem *_bridge_base, u32 _bridge_timer1_clr_mask, unsigned int irq, unsigned int tclk) orion_time_init() argument
H A Dcommon.c36 clkdev entries to the tclk. */
37 void __init orion_clkdev_init(struct clk *tclk) in orion_clkdev_init() argument
39 orion_clkdev_add(NULL, "orion_spi.0", tclk); in orion_clkdev_init()
40 orion_clkdev_add(NULL, "orion_spi.1", tclk); in orion_clkdev_init()
41 orion_clkdev_add(NULL, MV643XX_ETH_NAME ".0", tclk); in orion_clkdev_init()
42 orion_clkdev_add(NULL, MV643XX_ETH_NAME ".1", tclk); in orion_clkdev_init()
43 orion_clkdev_add(NULL, MV643XX_ETH_NAME ".2", tclk); in orion_clkdev_init()
44 orion_clkdev_add(NULL, MV643XX_ETH_NAME ".3", tclk); in orion_clkdev_init()
45 orion_clkdev_add(NULL, "orion_wdt", tclk); in orion_clkdev_init()
46 orion_clkdev_add(NULL, MV64XXX_I2C_CTLR_NAME ".0", tclk); in orion_clkdev_init()
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-mv78xx0/
H A Dcommon.c168 static struct clk *tclk; variable
172 tclk = clk_register_fixed_rate(NULL, "tclk", NULL, 0, get_tclk()); in clk_init()
174 orion_clkdev_init(tclk); in clk_init()
294 IRQ_MV78XX0_UART_0, tclk); in mv78xx0_uart0_init()
304 IRQ_MV78XX0_UART_1, tclk); in mv78xx0_uart1_init()
314 IRQ_MV78XX0_UART_2, tclk); in mv78xx0_uart2_init()
323 IRQ_MV78XX0_UART_3, tclk); in mv78xx0_uart3_init()
/kernel/linux/linux-6.6/arch/arm/mach-mv78xx0/
H A Dcommon.c165 static struct clk *tclk; variable
169 tclk = clk_register_fixed_rate(NULL, "tclk", NULL, 0, get_tclk()); in clk_init()
171 orion_clkdev_init(tclk); in clk_init()
291 IRQ_MV78XX0_UART_0, tclk); in mv78xx0_uart0_init()
301 IRQ_MV78XX0_UART_1, tclk); in mv78xx0_uart1_init()
311 IRQ_MV78XX0_UART_2, tclk); in mv78xx0_uart2_init()
320 IRQ_MV78XX0_UART_3, tclk); in mv78xx0_uart3_init()
/kernel/linux/linux-5.10/drivers/clk/
H A Dclk-vt8500.c353 unsigned long tclk; in vt8500_find_pll_bits() local
369 tclk = (parent_rate / *prediv) * *multiplier; in vt8500_find_pll_bits()
371 if (tclk != rate) in vt8500_find_pll_bits()
373 rate, tclk); in vt8500_find_pll_bits()
457 unsigned long tclk, rate_err, best_err; in wm8750_find_pll_bits() local
465 tclk = parent_rate * (mul + 1) / ((div1 + 1) * (1 << div2)); in wm8750_find_pll_bits()
466 if (tclk > rate) in wm8750_find_pll_bits()
469 rate_err = rate - tclk; in wm8750_find_pll_bits()
505 unsigned long tclk, rate_err, best_err; in wm8850_find_pll_bits() local
513 tclk in wm8850_find_pll_bits()
[all...]
/kernel/linux/linux-6.6/drivers/clk/
H A Dclk-vt8500.c353 unsigned long tclk; in vt8500_find_pll_bits() local
369 tclk = (parent_rate / *prediv) * *multiplier; in vt8500_find_pll_bits()
371 if (tclk != rate) in vt8500_find_pll_bits()
373 rate, tclk); in vt8500_find_pll_bits()
457 unsigned long tclk, rate_err, best_err; in wm8750_find_pll_bits() local
465 tclk = parent_rate * (mul + 1) / ((div1 + 1) * (1 << div2)); in wm8750_find_pll_bits()
466 if (tclk > rate) in wm8750_find_pll_bits()
469 rate_err = rate - tclk; in wm8750_find_pll_bits()
505 unsigned long tclk, rate_err, best_err; in wm8850_find_pll_bits() local
513 tclk in wm8850_find_pll_bits()
[all...]
/kernel/linux/linux-5.10/arch/arm/mach-orion5x/
H A Dcommon.c66 static struct clk *tclk; variable
70 tclk = clk_register_fixed_rate(NULL, "tclk", NULL, 0, orion5x_tclk); in clk_init()
72 orion_clkdev_init(tclk); in clk_init()
149 IRQ_ORION5X_UART0, tclk); in orion5x_uart0_init()
158 IRQ_ORION5X_UART1, tclk); in orion5x_uart1_init()
/kernel/linux/linux-6.6/arch/arm/mach-orion5x/
H A Dcommon.c62 static struct clk *tclk; variable
66 tclk = clk_register_fixed_rate(NULL, "tclk", NULL, 0, orion5x_tclk); in clk_init()
68 orion_clkdev_init(tclk); in clk_init()
136 IRQ_ORION5X_UART0, tclk); in orion5x_uart0_init()
145 IRQ_ORION5X_UART1, tclk); in orion5x_uart1_init()
/kernel/linux/linux-5.10/drivers/power/reset/
H A Dqnap-poweroff.c51 static unsigned long tclk; variable
56 const unsigned divisor = ((tclk + (8 * cfg->baud)) / (16 * cfg->baud)); in qnap_power_off()
96 /* We need to know tclk in order to calculate the UART divisor */ in qnap_power_off_probe()
103 tclk = clk_get_rate(clk); in qnap_power_off_probe()
/kernel/linux/linux-6.6/drivers/power/reset/
H A Dqnap-poweroff.c50 static unsigned long tclk; variable
55 const unsigned divisor = ((tclk + (8 * cfg->baud)) / (16 * cfg->baud)); in qnap_power_off()
94 /* We need to know tclk in order to calculate the UART divisor */ in qnap_power_off_probe()
101 tclk = clk_get_rate(clk); in qnap_power_off_probe()
/kernel/linux/linux-5.10/drivers/i2c/busses/
H A Di2c-mv64xxx.c759 const int tclk, const int n, const int m) in mv64xxx_calc_freq()
762 return tclk / (10 * (m + 1) * (1 << n)); in mv64xxx_calc_freq()
764 return tclk / (10 * (m + 1) * (2 << n)); in mv64xxx_calc_freq()
769 const u32 req_freq, const u32 tclk) in mv64xxx_find_baud_factors()
776 freq = mv64xxx_calc_freq(drv_data, tclk, n, m); in mv64xxx_find_baud_factors()
797 u32 bus_freq, tclk; in mv64xxx_of_config() local
801 * need to know tclk in order to calculate bus clock in mv64xxx_of_config()
808 tclk = clk_get_rate(drv_data->clk); in mv64xxx_of_config()
817 if (!mv64xxx_find_baud_factors(drv_data, bus_freq, tclk)) { in mv64xxx_of_config()
758 mv64xxx_calc_freq(struct mv64xxx_i2c_data *drv_data, const int tclk, const int n, const int m) mv64xxx_calc_freq() argument
768 mv64xxx_find_baud_factors(struct mv64xxx_i2c_data *drv_data, const u32 req_freq, const u32 tclk) mv64xxx_find_baud_factors() argument
H A Di2c-octeon-core.c660 int tclk, thp_base, inc, thp_idx, mdiv_idx, ndiv_idx, foscl, diff; in octeon_i2c_set_clock() local
673 tclk = i2c->twsi_freq * (mdiv_idx + 1) * 10; in octeon_i2c_set_clock()
674 tclk *= (1 << ndiv_idx); in octeon_i2c_set_clock()
675 thp_base = (i2c->sys_freq / (tclk * 2)) - 1; in octeon_i2c_set_clock()
/kernel/linux/linux-6.6/drivers/i2c/busses/
H A Di2c-mv64xxx.c826 const int tclk, const int n, const int m) in mv64xxx_calc_freq()
829 return tclk / (10 * (m + 1) * (1 << n)); in mv64xxx_calc_freq()
831 return tclk / (10 * (m + 1) * (2 << n)); in mv64xxx_calc_freq()
836 const u32 req_freq, const u32 tclk) in mv64xxx_find_baud_factors()
843 freq = mv64xxx_calc_freq(drv_data, tclk, n, m); in mv64xxx_find_baud_factors()
864 u32 bus_freq, tclk; in mv64xxx_of_config() local
868 * need to know tclk in order to calculate bus clock in mv64xxx_of_config()
875 tclk = clk_get_rate(drv_data->clk); in mv64xxx_of_config()
884 if (!mv64xxx_find_baud_factors(drv_data, bus_freq, tclk)) { in mv64xxx_of_config()
825 mv64xxx_calc_freq(struct mv64xxx_i2c_data *drv_data, const int tclk, const int n, const int m) mv64xxx_calc_freq() argument
835 mv64xxx_find_baud_factors(struct mv64xxx_i2c_data *drv_data, const u32 req_freq, const u32 tclk) mv64xxx_find_baud_factors() argument
H A Di2c-octeon-core.c660 int tclk, thp_base, inc, thp_idx, mdiv_idx, ndiv_idx, foscl, diff; in octeon_i2c_set_clock() local
673 tclk = i2c->twsi_freq * (mdiv_idx + 1) * 10; in octeon_i2c_set_clock()
674 tclk *= (1 << ndiv_idx); in octeon_i2c_set_clock()
675 thp_base = (i2c->sys_freq / (tclk * 2)) - 1; in octeon_i2c_set_clock()
/kernel/linux/linux-5.10/arch/arm/plat-orion/include/plat/
H A Dtime.h17 unsigned int irq, unsigned int tclk);
/kernel/linux/linux-6.6/arch/arm/plat-orion/include/plat/
H A Dtime.h17 unsigned int irq, unsigned int tclk);
/kernel/linux/linux-5.10/arch/mips/include/asm/octeon/
H A Dcvmx-uctlx-defs.h357 uint64_t tclk:1; member
365 uint64_t tclk:1;
/kernel/linux/linux-6.6/arch/mips/include/asm/octeon/
H A Dcvmx-uctlx-defs.h357 uint64_t tclk:1; member
365 uint64_t tclk:1;
/kernel/linux/linux-6.6/arch/arm/mach-omap1/
H A Dclock.c814 void propagate_rate(struct omap1_clk *tclk) in propagate_rate() argument
819 if (WARN_ON(!(clk_hw_get_flags(&tclk->hw) & CLK_GET_RATE_NOCACHE))) in propagate_rate()
822 clkp = clk_get_sys(NULL, clk_hw_get_name(&tclk->hw)); in propagate_rate()

Completed in 16 milliseconds

12