/linux-4.19.296/drivers/clk/qcom/ |
D | clk-spmi-pmic-div.c | 32 struct clkdiv { struct 41 static inline struct clkdiv *to_clkdiv(struct clk_hw *hw) in to_clkdiv() argument 43 return container_of(hw, struct clkdiv, hw); in to_clkdiv() 59 static bool is_spmi_pmic_clkdiv_enabled(struct clkdiv *clkdiv) in is_spmi_pmic_clkdiv_enabled() argument 63 regmap_read(clkdiv->regmap, clkdiv->base + REG_EN_CTL, &val); in is_spmi_pmic_clkdiv_enabled() 69 __spmi_pmic_clkdiv_set_enable_state(struct clkdiv *clkdiv, bool enable, in __spmi_pmic_clkdiv_set_enable_state() argument 73 unsigned int ns = clkdiv->cxo_period_ns; in __spmi_pmic_clkdiv_set_enable_state() 76 ret = regmap_update_bits(clkdiv->regmap, clkdiv->base + REG_EN_CTL, in __spmi_pmic_clkdiv_set_enable_state() 89 static int spmi_pmic_clkdiv_set_enable_state(struct clkdiv *clkdiv, bool enable) in spmi_pmic_clkdiv_set_enable_state() argument 93 regmap_read(clkdiv->regmap, clkdiv->base + REG_DIV_CTL1, &div_factor); in spmi_pmic_clkdiv_set_enable_state() [all …]
|
D | Kconfig | 268 tristate "SPMI PMIC clkdiv Support" 271 This driver supports the clkdiv functionality on the Qualcomm 273 clkdiv outputs of the PMIC. These clocks are typically wired
|
/linux-4.19.296/drivers/cpufreq/ |
D | s3c2412-cpufreq.c | 120 unsigned long clkdiv; in s3c2412_cpufreq_setdivs() local 123 olddiv = clkdiv = __raw_readl(S3C2410_CLKDIVN); in s3c2412_cpufreq_setdivs() 127 clkdiv &= ~S3C2412_CLKDIVN_ARMDIVN; in s3c2412_cpufreq_setdivs() 128 clkdiv &= ~S3C2412_CLKDIVN_HDIVN_MASK; in s3c2412_cpufreq_setdivs() 129 clkdiv &= ~S3C2412_CLKDIVN_PDIVN; in s3c2412_cpufreq_setdivs() 132 clkdiv |= S3C2412_CLKDIVN_ARMDIVN; in s3c2412_cpufreq_setdivs() 134 clkdiv |= ((cfg->divs.h_divisor / cfg->divs.arm_divisor) - 1); in s3c2412_cpufreq_setdivs() 137 clkdiv |= S3C2412_CLKDIVN_PDIVN; in s3c2412_cpufreq_setdivs() 139 s3c_freq_dbg("%s: div %08lx => %08lx\n", __func__, olddiv, clkdiv); in s3c2412_cpufreq_setdivs() 140 __raw_writel(clkdiv, S3C2410_CLKDIVN); in s3c2412_cpufreq_setdivs()
|
D | s3c2440-cpufreq.c | 144 unsigned long clkdiv, camdiv; in s3c2440_cpufreq_setdivs() local 149 clkdiv = __raw_readl(S3C2410_CLKDIVN); in s3c2440_cpufreq_setdivs() 152 clkdiv &= ~(S3C2440_CLKDIVN_HDIVN_MASK | S3C2440_CLKDIVN_PDIVN); in s3c2440_cpufreq_setdivs() 157 clkdiv |= S3C2440_CLKDIVN_HDIVN_1; in s3c2440_cpufreq_setdivs() 161 clkdiv |= S3C2440_CLKDIVN_HDIVN_2; in s3c2440_cpufreq_setdivs() 167 clkdiv |= S3C2440_CLKDIVN_HDIVN_3_6; in s3c2440_cpufreq_setdivs() 173 clkdiv |= S3C2440_CLKDIVN_HDIVN_4_8; in s3c2440_cpufreq_setdivs() 181 clkdiv |= S3C2440_CLKDIVN_PDIVN; in s3c2440_cpufreq_setdivs() 191 __raw_writel(clkdiv, S3C2410_CLKDIVN); in s3c2440_cpufreq_setdivs()
|
D | s3c2410-cpufreq.c | 35 u32 clkdiv = 0; in s3c2410_cpufreq_setdivs() local 38 clkdiv |= S3C2410_CLKDIVN_HDIVN; in s3c2410_cpufreq_setdivs() 41 clkdiv |= S3C2410_CLKDIVN_PDIVN; in s3c2410_cpufreq_setdivs() 43 __raw_writel(clkdiv, S3C2410_CLKDIVN); in s3c2410_cpufreq_setdivs()
|
/linux-4.19.296/drivers/media/rc/ |
D | tango-ir.c | 166 u64 clkrate, clkdiv; in tango_ir_probe() local 219 clkdiv = clkrate * NEC_TIME_BASE; in tango_ir_probe() 220 do_div(clkdiv, 1000000); in tango_ir_probe() 222 val = NEC_CAP(31) | GPIO_SEL(12) | clkdiv; in tango_ir_probe() 225 clkdiv = clkrate * RC5_TIME_BASE; in tango_ir_probe() 226 do_div(clkdiv, 1000000); in tango_ir_probe() 229 writel_relaxed(clkdiv, ir->rc5_base + IR_RC5_CLK_DIV); in tango_ir_probe() 232 clkdiv = clkrate * RC6_TIME_BASE; in tango_ir_probe() 233 do_div(clkdiv, RC6_CARRIER); in tango_ir_probe() 236 writel_relaxed((clkdiv >> 2) << 18 | clkdiv, ir->rc6_base + RC6_CLKDIV); in tango_ir_probe()
|
/linux-4.19.296/drivers/pwm/ |
D | pwm-mediatek.c | 145 u32 clkdiv = 0, cnt_period, cnt_duty, reg_width = PWMDWIDTH, in mtk_pwm_config() local 161 clkdiv++; in mtk_pwm_config() 166 if (clkdiv > PWM_CLK_DIV_MAX) { in mtk_pwm_config() 182 mtk_pwm_writel(pc, pwm->hwpwm, PWMCON, BIT(15) | clkdiv); in mtk_pwm_config()
|
D | pwm-tiehrpwm.c | 166 unsigned int clkdiv, hspclkdiv; in set_prescale_div() local 168 for (clkdiv = 0; clkdiv <= CLKDIV_MAX; clkdiv++) { in set_prescale_div() 181 *prescale_div = (1 << clkdiv) * in set_prescale_div() 184 *tb_clk_div = (clkdiv << TBCTL_CLKDIV_SHIFT) | in set_prescale_div()
|
/linux-4.19.296/drivers/iio/adc/ |
D | lpc18xx_adc.c | 126 unsigned int clkdiv; in lpc18xx_adc_probe() local 151 clkdiv = DIV_ROUND_UP(rate, LPC18XX_ADC_CLK_TARGET); in lpc18xx_adc_probe() 178 adc->cr_reg = (clkdiv << LPC18XX_ADC_CR_CLKDIV_SHIFT) | in lpc18xx_adc_probe()
|
/linux-4.19.296/drivers/i2c/busses/ |
D | i2c-efm32.c | 316 u32 clkdiv; in efm32_i2c_probe() local 405 clkdiv = DIV_ROUND_UP(rate, 8 * ddata->frequency) - 1; in efm32_i2c_probe() 406 if (clkdiv >= 0x200) { in efm32_i2c_probe() 415 rate, ddata->frequency, (unsigned long)clkdiv); in efm32_i2c_probe() 416 efm32_i2c_write32(ddata, REG_CLKDIV, REG_CLKDIV_DIV(clkdiv)); in efm32_i2c_probe()
|
D | i2c-ibm_iic.h | 38 u8 clkdiv; member
|
D | i2c-ibm_iic.c | 95 in_8(&iic->extsts), in_8(&iic->clkdiv), in_8(&iic->xfrcnt), in dump_iic_regs() 157 out_8(&iic->clkdiv, dev->clckdiv); in iic_dev_init()
|
/linux-4.19.296/drivers/media/dvb-frontends/ |
D | stv6111.c | 375 u32 clkdiv = 0; in init_state() local 395 if (clkdiv <= 3) in init_state() 396 state->reg[0x00] |= (clkdiv & 0x03); in init_state()
|
D | cx24120.c | 131 u8 clkdiv; member 1123 state->dnxt.clkdiv = (-(rate < 31000001) & 3) + 2; in cx24120_set_symbolrate() 1126 state->dnxt.clkdiv = 3; in cx24120_set_symbolrate() 1198 state->dcur.clkdiv, state->dcur.ratediv); in cx24120_set_frontend() 1225 cmd.arg[13] = state->dcur.clkdiv; in cx24120_set_frontend() 1234 ret = cx24120_writereg(state, CX24120_REG_CLKDIV, state->dcur.clkdiv); in cx24120_set_frontend()
|