| /rk3399_rockchip-uboot/arch/arm/cpu/armv7/s5p-common/ |
| H A D | pwm.c | 59 int pwm_config(int pwm_id, int duty_ns, int period_ns) in pwm_config() argument 76 if (period_ns > NS_IN_SEC || duty_ns > NS_IN_SEC || period_ns == 0) in pwm_config() 79 if (duty_ns > period_ns) in pwm_config() 82 frequency = NS_IN_SEC / period_ns; in pwm_config() 88 tcnt = period_ns / tin_ns; in pwm_config()
|
| /rk3399_rockchip-uboot/drivers/pwm/ |
| H A D | sandbox_pwm.c | 21 uint period_ns; member 32 uint period_ns, uint duty_ns) in sandbox_pwm_set_config() argument 40 chan->period_ns = period_ns; in sandbox_pwm_set_config()
|
| H A D | pwm-imx-util.c | 47 int pwm_imx_get_parms(int period_ns, int duty_ns, unsigned long *period_c, in pwm_imx_get_parms() argument 58 c = c * period_ns; in pwm_imx_get_parms() 66 do_div(c, period_ns); in pwm_imx_get_parms()
|
| H A D | pwm-uclass.c | 22 int pwm_set_config(struct udevice *dev, uint channel, uint period_ns, in pwm_set_config() argument 30 return ops->set_config(dev, channel, period_ns, duty_ns); in pwm_set_config()
|
| H A D | pwm-imx.c | 28 int pwm_config(int pwm_id, int duty_ns, int period_ns) in pwm_config() argument 37 pwm_imx_get_parms(period_ns, duty_ns, &period_cycles, &duty_cycles, in pwm_config()
|
| H A D | exynos_pwm.c | 22 uint period_ns, uint duty_ns) in exynos_pwm_set_config() argument 34 __func__, dev->name, channel, period_ns, duty_ns); in exynos_pwm_set_config() 45 tcnt = period_ns / rate_ns; in exynos_pwm_set_config()
|
| H A D | rk_pwm.c | 75 uint period_ns, uint duty_ns); 130 uint period_ns, uint duty_ns) in rk_pwm_set_config_v4() argument 135 period = lldiv((uint64_t)(priv->freq / 1000) * period_ns, in rk_pwm_set_config_v4() 157 uint period_ns, uint duty_ns) in rk_pwm_set_config_v1() argument 164 debug("%s: period_ns=%u, duty_ns=%u\n", __func__, period_ns, duty_ns); in rk_pwm_set_config_v1() 183 period = lldiv((uint64_t)(priv->freq / 1000) * period_ns, in rk_pwm_set_config_v1() 211 uint period_ns, uint duty_ns) in rk_pwm_set_config() argument 215 return priv->data->funcs.set_config(dev, channel, period_ns, duty_ns); in rk_pwm_set_config()
|
| H A D | tegra_pwm.c | 21 uint period_ns, uint duty_ns) in tegra_pwm_set_config() argument 34 pulse_width = duty_ns * 255 / period_ns; in tegra_pwm_set_config()
|
| H A D | pwm-imx-util.h | 14 int pwm_imx_get_parms(int period_ns, int duty_ns, unsigned long *period_c,
|
| /rk3399_rockchip-uboot/include/ |
| H A D | pwm.h | 25 int (*set_config)(struct udevice *dev, uint channel, uint period_ns, 59 int pwm_set_config(struct udevice *dev, uint channel, uint period_ns, 85 int pwm_config (int pwm_id, int duty_ns, int period_ns);
|
| /rk3399_rockchip-uboot/drivers/video/ |
| H A D | pwm_backlight.c | 22 uint period_ns; member 55 duty_cycle = priv->period_ns * (priv->default_level - priv->min_level) / in pwm_backlight_enable() 57 ret = pwm_set_config(priv->pwm, priv->channel, priv->period_ns, in pwm_backlight_enable() 78 ret = pwm_set_config(priv->pwm, priv->channel, priv->period_ns, 0); in pwm_backlight_disable() 145 priv->period_ns = args.args[1]; in pwm_backlight_ofdata_to_platdata()
|
| /rk3399_rockchip-uboot/drivers/power/regulator/ |
| H A D | pwm_regulator.c | 26 int period_ns; member 83 priv->period_ns, (priv->period_ns / 100) * duty_cycle); in pwm_regulator_set_voltage() 106 priv->period_ns = args.args[1]; in pwm_regulator_ofdata_to_platdata()
|