Lines Matching +full:0 +full:x030
34 #define TCR_TSTATLO 0x001
35 #define TCR_INVOUTPLO 0x002
36 #define TCR_INVINPLO 0x004
37 #define TCR_CPLO 0x008
38 #define TCR_ENAMODELO_ONCE 0x040
39 #define TCR_ENAMODELO_CONT 0x080
40 #define TCR_ENAMODELO_MASK 0x0c0
41 #define TCR_PWIDLO_MASK 0x030
42 #define TCR_CLKSRCLO 0x100
43 #define TCR_TIENLO 0x200
44 #define TCR_TSTATHI (0x001 << 16)
45 #define TCR_INVOUTPHI (0x002 << 16)
46 #define TCR_CPHI (0x008 << 16)
47 #define TCR_PWIDHI_MASK (0x030 << 16)
48 #define TCR_ENAMODEHI_ONCE (0x040 << 16)
49 #define TCR_ENAMODEHI_CONT (0x080 << 16)
50 #define TCR_ENAMODEHI_MASK (0x0c0 << 16)
52 #define TGCR_TIMLORS 0x001
53 #define TGCR_TIMHIRS 0x002
54 #define TGCR_TIMMODE_UD32 0x004
55 #define TGCR_TIMMODE_WDT64 0x008
56 #define TGCR_TIMMODE_CD32 0x00c
57 #define TGCR_TIMMODE_MASK 0x00c
58 #define TGCR_PSCHI_MASK (0x00f << 8)
59 #define TGCR_TDDRHI_MASK (0x00f << 12)
66 ((soc_readl(&timer->emumgt) & (0xf << 16)) >> 16)
70 #define TIMER64_MODE_DISABLED 0
83 soc_writel(0, &timer->cntlo); in timer64_config()
92 if (timer64_devstate_id >= 0) in timer64_enable()
97 soc_writel(0, &timer->prdlo); in timer64_enable()
113 soc_writel(0, &timer->prdlo); in timer64_disable()
115 if (timer64_devstate_id >= 0) in timer64_disable()
123 return 0; in next_event()
131 return 0; in set_periodic()
138 return 0; in set_oneshot()
145 return 0; in shutdown()
173 int err, found = 0; in timer64_init()
195 timer = of_iomap(np, 0); in timer64_init()
202 cd->irq = irq_of_parse_and_map(np, 0); in timer64_init()
226 cd->max_delta_ns = clockevent_delta2ns(0x7fffffff, cd); in timer64_init()
227 cd->max_delta_ticks = 0x7fffffff; in timer64_init()