Lines Matching refs:qtest_writel
34 qtest_writel(qts, event_addr, 0x00); in uart_wait_for_event()
68 qtest_writel(qts, NRF51_UART_BASE + A_UART_TXD, in[i]); in uart_w_to_txd()
83 qtest_writel(qts, NRF51_UART_BASE + A_UART_ENABLE, 0x04); in test_nrf51_uart()
84 qtest_writel(qts, NRF51_UART_BASE + A_UART_STARTRX, 0x01); in test_nrf51_uart()
87 qtest_writel(qts, NRF51_UART_BASE + A_UART_RXDRDY, 0x00); in test_nrf51_uart()
90 qtest_writel(qts, NRF51_UART_BASE + A_UART_INTENSET, 0x04); in test_nrf51_uart()
92 qtest_writel(qts, NRF51_UART_BASE + A_UART_INTENCLR, 0x04); in test_nrf51_uart()
98 qtest_writel(qts, NRF51_UART_BASE + A_UART_STARTTX, 0x01); in test_nrf51_uart()
103 qtest_writel(qts, NRF51_UART_BASE + A_UART_SUSPEND, 0x01); in test_nrf51_uart()
104 qtest_writel(qts, NRF51_UART_BASE + A_UART_TXD, 'h'); in test_nrf51_uart()
105 qtest_writel(qts, NRF51_UART_BASE + A_UART_STARTTX, 0x01); in test_nrf51_uart()
120 qtest_writel(qts, NRF51_TWI_BASE + NRF51_TWI_REG_ADDRESS, addr); in i2c_read_byte()
121 qtest_writel(qts, NRF51_TWI_BASE + NRF51_TWI_TASK_STARTTX, 1); in i2c_read_byte()
122 qtest_writel(qts, NRF51_TWI_BASE + NRF51_TWI_REG_TXD, reg); in i2c_read_byte()
125 qtest_writel(qts, NRF51_TWI_BASE + NRF51_TWI_TASK_STOP, 1); in i2c_read_byte()
127 qtest_writel(qts, NRF51_TWI_BASE + NRF51_TWI_TASK_STARTRX, 1); in i2c_read_byte()
131 qtest_writel(qts, NRF51_TWI_BASE + NRF51_TWI_TASK_STOP, 1); in i2c_read_byte()
142 qtest_writel(qts, NRF51_TWI_BASE + NRF51_TWI_REG_ENABLE, 5); in test_microbit_i2c()
155 qtest_writel(qts, NRF51_TWI_BASE + NRF51_TWI_REG_ENABLE, 0); in test_microbit_i2c()
168 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x02); in fill_and_erase()
169 qtest_writel(qts, NRF51_NVMC_BASE + address_reg, base); in fill_and_erase()
170 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x00); in fill_and_erase()
178 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x01); in fill_and_erase()
180 qtest_writel(qts, base + i * 4, i); in fill_and_erase()
183 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x00); in fill_and_erase()
197 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x03); in test_nrf51_nvmc()
200 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x00); in test_nrf51_nvmc()
217 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x02); in test_nrf51_nvmc()
218 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_ERASEALL, 0x01); in test_nrf51_nvmc()
219 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x00); in test_nrf51_nvmc()
221 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x01); in test_nrf51_nvmc()
223 qtest_writel(qts, NRF51_FLASH_BASE + i * 4, i); in test_nrf51_nvmc()
226 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x00); in test_nrf51_nvmc()
228 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x02); in test_nrf51_nvmc()
229 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_ERASEALL, 0x01); in test_nrf51_nvmc()
230 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x00); in test_nrf51_nvmc()
238 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x02); in test_nrf51_nvmc()
239 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_ERASEUICR, 0x01); in test_nrf51_nvmc()
240 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x00); in test_nrf51_nvmc()
247 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x01); in test_nrf51_nvmc()
249 qtest_writel(qts, NRF51_UICR_BASE + i * 4, i); in test_nrf51_nvmc()
252 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x00); in test_nrf51_nvmc()
254 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x02); in test_nrf51_nvmc()
255 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_ERASEUICR, 0x01); in test_nrf51_nvmc()
256 qtest_writel(qts, NRF51_NVMC_BASE + NRF51_NVMC_CONFIG, 0x00); in test_nrf51_nvmc()
300 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_DIRSET, expected); in test_nrf51_gpio()
310 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_DIRCLR, 0x80000001); in test_nrf51_gpio()
321 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_DIR, expected); in test_nrf51_gpio()
331 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_DIR, 0x00000000); in test_nrf51_gpio()
334 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_START, 0x00); in test_nrf51_gpio()
344 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_START, 0x02); in test_nrf51_gpio()
348 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_START, 0b0000); in test_nrf51_gpio()
351 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_START, 0b1110); in test_nrf51_gpio()
354 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_START, 0x02); in test_nrf51_gpio()
358 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_START, 0b0000); in test_nrf51_gpio()
361 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_START, 0b0110); in test_nrf51_gpio()
364 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_START, 0x02); in test_nrf51_gpio()
369 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_START, 0b0011); in test_nrf51_gpio()
370 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_OUTSET, 0x01); in test_nrf51_gpio()
372 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_OUTCLR, 0x01); in test_nrf51_gpio()
376 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_START, 0b01); in test_nrf51_gpio()
377 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_OUTSET, 0x01); in test_nrf51_gpio()
381 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_OUTCLR, 0x01); in test_nrf51_gpio()
389 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_START, 0b01); in test_nrf51_gpio()
390 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_OUTSET, 0x01); in test_nrf51_gpio()
403 qtest_writel(qts, NRF51_GPIO_BASE + NRF51_GPIO_REG_CNF_START + i * 4, in test_nrf51_gpio_detect()
443 qtest_writel(qts, NRF51_TIMER_BASE + task, NRF51_TRIGGER_TASK); in timer_task()
448 qtest_writel(qts, NRF51_TIMER_BASE + event, NRF51_EVENT_CLEAR); in timer_clear_event()
453 qtest_writel(qts, NRF51_TIMER_BASE + NRF51_TIMER_REG_BITMODE, mode); in timer_set_bitmode()
458 qtest_writel(qts, NRF51_TIMER_BASE + NRF51_TIMER_REG_PRESCALER, prescaler); in timer_set_prescaler()
463 qtest_writel(qts, NRF51_TIMER_BASE + NRF51_TIMER_REG_CC0 + idx * 4, value); in timer_set_cc()