/src/sys/arch/arm/samsung/ |
exynos_pwm.c | 53 #define TCNTB(n) (0x0c + (n) * 12) 118 uint32_t tcon, tcntb, tcmpb; local in function:exynos_pwm_get_config 121 tcntb = PWM_READ(sc, TCNTB(timer->timer_index)); 125 conf->period = (u_int)(((uint64_t)tcntb * 1000000000) / sc->sc_clkfreq); 136 uint32_t tcon, tcntb, tcmpb; local in function:exynos_pwm_set_config 145 tcntb = conf->period / (1000000000 / sc->sc_clkfreq); 149 tcmpb = tcntb - tcmpb; 151 PWM_WRITE(sc, TCNTB(timer->timer_index), tcntb - 1) [all...] |
exynos_pwm.c | 53 #define TCNTB(n) (0x0c + (n) * 12) 118 uint32_t tcon, tcntb, tcmpb; local in function:exynos_pwm_get_config 121 tcntb = PWM_READ(sc, TCNTB(timer->timer_index)); 125 conf->period = (u_int)(((uint64_t)tcntb * 1000000000) / sc->sc_clkfreq); 136 uint32_t tcon, tcntb, tcmpb; local in function:exynos_pwm_set_config 145 tcntb = conf->period / (1000000000 / sc->sc_clkfreq); 149 tcmpb = tcntb - tcmpb; 151 PWM_WRITE(sc, TCNTB(timer->timer_index), tcntb - 1) [all...] |