Lines Matching refs:TIMER_BASE

21 #define TIMER_BASE 0x40002000  macro
50 g_assert_true(readl(TIMER_BASE + TIMER1RIS) == 0); in test_dualtimer()
53 writel(TIMER_BASE + TIMER1LOAD, 1000); in test_dualtimer()
55 writel(TIMER_BASE + TIMER1CONTROL, CTRL_ENABLE | CTRL_INTEN); in test_dualtimer()
59 g_assert_cmpuint(readl(TIMER_BASE + TIMER1RIS), ==, 0); in test_dualtimer()
60 g_assert_cmpuint(readl(TIMER_BASE + TIMER1VALUE), ==, 500); in test_dualtimer()
64 g_assert_cmpuint(readl(TIMER_BASE + TIMER1RIS), ==, 1); in test_dualtimer()
65 g_assert_cmpuint(readl(TIMER_BASE + TIMER1VALUE), ==, 0); in test_dualtimer()
72 g_assert_cmpuint(readl(TIMER_BASE + TIMER1VALUE), ==, 0xffff); in test_dualtimer()
75 writel(TIMER_BASE + TIMER1INTCLR, 1); in test_dualtimer()
76 g_assert_cmpuint(readl(TIMER_BASE + TIMER1RIS), ==, 0); in test_dualtimer()
79 writel(TIMER_BASE + TIMER1CONTROL, 0); in test_dualtimer()
84 g_assert_true(readl(TIMER_BASE + TIMER2RIS) == 0); in test_prescale()
87 writel(TIMER_BASE + TIMER2LOAD, 1000); in test_prescale()
89 writel(TIMER_BASE + TIMER2CONTROL, in test_prescale()
94 g_assert_cmpuint(readl(TIMER_BASE + TIMER2RIS), ==, 0); in test_prescale()
95 g_assert_cmpuint(readl(TIMER_BASE + TIMER2VALUE), ==, 500); in test_prescale()
99 g_assert_cmpuint(readl(TIMER_BASE + TIMER2RIS), ==, 1); in test_prescale()
100 g_assert_cmpuint(readl(TIMER_BASE + TIMER2VALUE), ==, 0); in test_prescale()
104 g_assert_cmpuint(readl(TIMER_BASE + TIMER2VALUE), ==, 1000); in test_prescale()
107 writel(TIMER_BASE + TIMER2INTCLR, 1); in test_prescale()
108 g_assert_cmpuint(readl(TIMER_BASE + TIMER2RIS), ==, 0); in test_prescale()
111 writel(TIMER_BASE + TIMER2CONTROL, 0); in test_prescale()