Searched refs:jz4740_timer_base (Results 1 - 2 of 2) sorted by relevance
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/mips/jz4740/ |
H A D | timer.c | 24 void __iomem *jz4740_timer_base; variable 28 writel(BIT(16), jz4740_timer_base + JZ_REG_TIMER_STOP_CLEAR); 34 writel(BIT(16), jz4740_timer_base + JZ_REG_TIMER_STOP_SET); 40 jz4740_timer_base = ioremap(JZ4740_TCU_BASE_ADDR, 0x100); 42 if (!jz4740_timer_base) 46 writel(0x000100fc, jz4740_timer_base + JZ_REG_TIMER_STOP_SET); 49 writel(0x00ff00ff, jz4740_timer_base + JZ_REG_TIMER_MASK_SET);
|
H A D | timer.h | 61 extern void __iomem *jz4740_timer_base; 66 writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_STOP_SET); 71 writel(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_STOP_CLEAR); 76 return readb(jz4740_timer_base + JZ_REG_TIMER_ENABLE) & BIT(timer); 81 writeb(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_ENABLE_SET); 86 writeb(BIT(timer), jz4740_timer_base + JZ_REG_TIMER_ENABLE_CLEAR); 92 writew(period, jz4740_timer_base + JZ_REG_TIMER_DFR(timer)); 97 writew(duty, jz4740_timer_base + JZ_REG_TIMER_DHR(timer)); 102 writew(count, jz4740_timer_base + JZ_REG_TIMER_CNT(timer)); 107 return readw(jz4740_timer_base [all...] |
Completed in 101 milliseconds