Lines Matching full:pwm
10 #include <pwm.h>
12 #include <asm/arch/pwm.h>
17 const struct s5p_timer *pwm = in pwm_enable() local
21 tcon = readl(&pwm->tcon); in pwm_enable()
24 writel(tcon, &pwm->tcon); in pwm_enable()
31 const struct s5p_timer *pwm = in pwm_disable() local
35 tcon = readl(&pwm->tcon); in pwm_disable()
38 writel(tcon, &pwm->tcon); in pwm_disable()
60 const struct s5p_timer *pwm = in pwm_config() local
83 /* Check to see if we are changing the clock rate of the PWM */ in pwm_config()
93 /* Update the PWM register block. */ in pwm_config()
96 writel(tcnt, &pwm->tcntb0 + offset); in pwm_config()
97 writel(tcmp, &pwm->tcmpb0 + offset); in pwm_config()
100 tcon = readl(&pwm->tcon); in pwm_config()
106 writel(tcon, &pwm->tcon); in pwm_config()
109 writel(tcon, &pwm->tcon); in pwm_config()
117 const struct s5p_timer *pwm = in pwm_init() local
127 val = readl(&pwm->tcfg0); in pwm_init()
137 writel(val, &pwm->tcfg0); in pwm_init()
138 val = readl(&pwm->tcfg1); in pwm_init()
141 writel(val, &pwm->tcfg1); in pwm_init()
160 writel(ticks_per_period, &pwm->tcntb0 + offset); in pwm_init()
162 val = readl(&pwm->tcon) & ~(0xf << TCON_OFFSET(pwm_id)); in pwm_init()
165 writel(val, &pwm->tcon); in pwm_init()