/external/u-boot/drivers/pwm/ |
pwm-uclass.c | 9 #include <pwm.h> 42 UCLASS_DRIVER(pwm) = { variable 44 .name = "pwm",
|
pwm-imx.c | 6 * Basic support for the pwm module on imx6. 11 #include <pwm.h> 14 #include "pwm-imx-util.h" 18 struct pwm_regs *pwm = (struct pwm_regs *)pwm_id_to_reg(pwm_id); local 20 if (!pwm) 23 writel(0, &pwm->ir); 29 struct pwm_regs *pwm = (struct pwm_regs *)pwm_id_to_reg(pwm_id); local 33 if (!pwm) 43 writel(cr, &pwm->cr); 45 writel(duty_cycles, &pwm->sar) 53 struct pwm_regs *pwm = (struct pwm_regs *)pwm_id_to_reg(pwm_id); local 64 struct pwm_regs *pwm = (struct pwm_regs *)pwm_id_to_reg(pwm_id); local [all...] |
/external/u-boot/drivers/video/exynos/ |
exynos_pwm_bl.c | 3 * PWM BACKLIGHT driver for Board based on EXYNOS. 11 #include <pwm.h> 16 #include <asm/arch/pwm.h> 19 static struct pwm_backlight_data *pwm; variable in typeref:struct:pwm_backlight_data 23 int brightness = pwm->brightness; 24 int max = pwm->max_brightness; 27 pwm_config(pwm->pwm_id, 0, pwm->period); 28 pwm_disable(pwm->pwm_id); 30 pwm_config(pwm->pwm_id [all...] |
/external/u-boot/arch/arm/cpu/armv7/s5p-common/ |
pwm.c | 10 #include <pwm.h> 12 #include <asm/arch/pwm.h> 17 const struct s5p_timer *pwm = local 21 tcon = readl(&pwm->tcon); 24 writel(tcon, &pwm->tcon); 31 const struct s5p_timer *pwm = local 35 tcon = readl(&pwm->tcon); 38 writel(tcon, &pwm->tcon); 60 const struct s5p_timer *pwm = local 83 /* Check to see if we are changing the clock rate of the PWM */ 117 const struct s5p_timer *pwm = local [all...] |
/external/u-boot/drivers/power/regulator/ |
pwm_regulator.c | 5 * Based on kernel drivers/regulator/pwm-regulator.c 13 #include <pwm.h> 19 /* pwm id corresponding to the PWM driver */ 21 /* the period of one PWM cycle */ 24 * the polarity of one PWM 29 struct udevice *pwm; member in struct:pwm_regulator_info 44 return pwm_set_enable(priv->pwm, priv->pwm_id, enable); 72 ret = pwm_set_invert(priv->pwm, priv->pwm_id, priv->polarity); 74 dev_err(dev, "Failed to init PWM\n") [all...] |
/external/u-boot/drivers/video/ |
pwm_backlight.c | 10 #include <pwm.h> 17 struct udevice *pwm; member in struct:pwm_backlight_priv 38 debug("%s: Cannot enable regulator for PWM '%s'\n", 47 ret = pwm_set_config(priv->pwm, priv->channel, priv->period_ns, 51 ret = pwm_set_enable(priv->pwm, priv->channel, true); 80 ret = dev_read_phandle_with_args(dev, "pwms", "#pwm-cells", 0, 0, 83 debug("%s: Cannot get PWM phandle: ret=%d\n", __func__, ret); 87 ret = uclass_get_device_by_ofnode(UCLASS_PWM, args.node, &priv->pwm); 89 debug("%s: Cannot get PWM: ret=%d\n", __func__, ret); 121 { .compatible = "pwm-backlight" } [all...] |
/external/u-boot/drivers/misc/ |
pca9551_led.c | 31 u8 pwm; /* Pulse width modulation, see PCA9551_7.pdf p. 6 */ member in struct:pca9551_blink_rate 166 rate.pwm = 128; /* 50% duty cycle */
|