Home
last modified time | relevance | path

Searched refs:tcfg0 (Results 1 – 2 of 2) sorted by relevance

/linux-2.6.39/arch/arm/plat-samsung/
Dpwm-clock.c80 unsigned long tcfg0 = __raw_readl(S3C2410_TCFG0); in clk_pwm_scaler_get_rate() local
83 tcfg0 &= S3C2410_TCFG_PRESCALER1_MASK; in clk_pwm_scaler_get_rate()
84 tcfg0 >>= S3C2410_TCFG_PRESCALER1_SHIFT; in clk_pwm_scaler_get_rate()
86 tcfg0 &= S3C2410_TCFG_PRESCALER0_MASK; in clk_pwm_scaler_get_rate()
89 return clk_get_rate(clk->parent) / (tcfg0 + 1); in clk_pwm_scaler_get_rate()
109 unsigned long tcfg0; in clk_pwm_scaler_set_rate() local
117 tcfg0 = __raw_readl(S3C2410_TCFG0); in clk_pwm_scaler_set_rate()
120 tcfg0 &= ~S3C2410_TCFG_PRESCALER1_MASK; in clk_pwm_scaler_set_rate()
121 tcfg0 |= divisor << S3C2410_TCFG_PRESCALER1_SHIFT; in clk_pwm_scaler_set_rate()
123 tcfg0 &= ~S3C2410_TCFG_PRESCALER0_MASK; in clk_pwm_scaler_set_rate()
[all …]
Dtime.c166 unsigned long tcfg0; in s3c2410_timer_setup() local
210 tcfg0 = __raw_readl(S3C2410_TCFG0); in s3c2410_timer_setup()
218 tcon, tcnt, tcfg0, tcfg1, timer_usec_ticks); in s3c2410_timer_setup()
227 __raw_writel(tcfg0, S3C2410_TCFG0); in s3c2410_timer_setup()