Lines Matching +full:timer +full:- +full:secure
2 * QTest testcase for the SSE timer device
18 #include "libqtest-single.h"
21 * SSE-123/SSE-300 timer in the mps3-an547 board, where it is driven
26 /* PERIPHNSPPC0 register in the SSE-300 Secure Access Configuration block */
39 /* SSE timer register offsets */
59 * need to move the timer forward the specified number of ticks. in clock_step_ticks()
69 * Reset the system counter and the timer between tests. This in reset_counter_and_timer()
104 /* Basic timer functionality test */ in test_timer()
108 * The timer is behind a Peripheral Protection Controller, and in test_timer()
109 * qtest accesses are always non-secure (no memory attributes), in test_timer()
114 /* We must enable the System Counter or the timer won't run. */ in test_timer()
117 /* Timer starts disabled and with a counter of 0 */ in test_timer()
125 /* Is the timer ticking? */ in test_timer()
142 /* Now exercise the auto-reload part of the timer */ in test_timer()
177 * non-autoinc mode because otherwise it takes forever as the in test_timer()
178 * timer has to emulate all the 'reload at t + N, t + 2N, etc' in test_timer()
195 * Test that the timer responds correctly to counter in test_timer_scale_change()
196 * scaling changes while it has an active timer. in test_timer_scale_change()
199 /* Give ourselves access to the timer, and enable the counter and timer */ in test_timer_scale_change()
213 /* Advance to where the timer would have fired and check it has not */ in test_timer_scale_change()
216 /* Advance to where the timer must fire at the new clock rate */ in test_timer_scale_change()
229 qtest_start("-machine mps3-an547"); in main()
231 qtest_add_func("/sse-timer/counter", test_counter); in main()
232 qtest_add_func("/sse-timer/timer", test_timer); in main()
233 qtest_add_func("/sse-timer/timer-scale-change", test_timer_scale_change); in main()