Lines Matching refs:base
23 mm_reg_t base; member
48 if (FRSR_R(*FRSR(config->base)) == 0) { in rzt2m_poll_in()
52 *c = *RDR(config->base) & RDR_MASK_RDAT; in rzt2m_poll_in()
53 *CFCLR(config->base) |= CFCLR_MASK_RDRFC; in rzt2m_poll_in()
55 if (FRSR_R(*FRSR(config->base)) == 0) { in rzt2m_poll_in()
56 *FFCLR(config->base) |= FFCLR_MASK_DRC; in rzt2m_poll_in()
74 int fifo_count = FTSR_T(*FTSR(config->base)); in rzt2m_poll_out()
77 fifo_count = FTSR_T(*FTSR(config->base)); in rzt2m_poll_out()
80 *TDR(config->base) = c; in rzt2m_poll_out()
83 *CFCLR(config->base) |= CFCLR_MASK_TDREC; in rzt2m_poll_out()
92 uint32_t status = *CSR(config->base); in rzt2m_err_check()
119 *TDR(config->base) = (uint8_t)tx_data[num_tx++]; in rzt2m_fifo_fill()
133 while (num_rx < size && (FRSR_R(*FRSR(config->base)))) { in rzt2m_fifo_read()
134 rx_data[num_rx++] = *RDR(config->base); in rzt2m_fifo_read()
136 *CFCLR(config->base) = CFCLR_MASK_RDRFC; in rzt2m_fifo_read()
137 *FFCLR(config->base) = FFCLR_MASK_DRC; in rzt2m_fifo_read()
145 *CCR0(config->base) |= CCR0_MASK_RIE | CCR0_MASK_RE; in uart_rzt2m_irq_rx_enable()
151 *CCR0(config->base) &= ~CCR0_MASK_RIE; in uart_rzt2m_irq_rx_disable()
158 *CCR0(config->base) |= CCR0_MASK_TE | CCR0_MASK_TIE | CCR0_MASK_TEIE; in uart_rzt2m_irq_tx_enable()
164 *CCR0(config->base) &= ~(CCR0_MASK_TIE | CCR0_MASK_TEIE); in uart_rzt2m_irq_tx_disable()
171 if (FTSR_T(*FTSR(config->base)) == MAX_FIFO_DEPTH || in uart_rzt2m_irq_tx_ready()
172 ((*CCR0(config->base) & CCR0_MASK_TIE) == 0)) { in uart_rzt2m_irq_tx_ready()
183 if (FRSR_R(*FRSR(config->base))) { in uart_rzt2m_irq_rx_ready()
194 if ((*CSR(config->base) & (CSR_MASK_RDRF)) || (*FRSR(config->base) & FRSR_MASK_DR)) { in uart_rzt2m_irq_is_pending()
213 *CFCLR(config->base) = CFCLR_MASK_RDRFC; in uart_rzt2m_irq_update()
214 *FFCLR(config->base) = FFCLR_MASK_DRC; in uart_rzt2m_irq_update()
246 int interface_id = BASE_TO_IFACE_ID(config->base); in rzt2m_module_start()
262 dummy = *RDR(config->base); in rzt2m_module_start()
263 dummy = *RDR(config->base); in rzt2m_module_start()
264 dummy = *RDR(config->base); in rzt2m_module_start()
265 dummy = *RDR(config->base); in rzt2m_module_start()
266 dummy = *RDR(config->base); in rzt2m_module_start()
293 *CCR0(config->base) = CCR0_DEFAULT_VALUE; in rzt2m_uart_init()
294 while (*CCR0(config->base) & (CCR0_MASK_RE | CCR0_MASK_TE)) { in rzt2m_uart_init()
297 *CCR1(config->base) = CCR1_DEFAULT_VALUE; in rzt2m_uart_init()
298 *CCR2(config->base) = CCR2_DEFAULT_VALUE; in rzt2m_uart_init()
299 *CCR3(config->base) = CCR3_DEFAULT_VALUE; in rzt2m_uart_init()
300 *CCR4(config->base) = CCR4_DEFAULT_VALUE; in rzt2m_uart_init()
308 *CFCLR(config->base) = CFCLR_ALL_FLAG_CLEAR; in rzt2m_uart_init()
309 *FFCLR(config->base) = FFCLR_MASK_DRC; in rzt2m_uart_init()
312 *CCR3(config->base) |= (CCR3_MASK_FM); in rzt2m_uart_init()
319 *CCR3(config->base) |= CCR3_MASK_STP; in rzt2m_uart_init()
328 *CCR3(config->base) |= CCR3_CHR_7BIT; in rzt2m_uart_init()
331 *CCR3(config->base) |= CCR3_CHR_8BIT; in rzt2m_uart_init()
345 *CCR2(config->base) &= ~(CCR2_MASK_BAUD_SETTING); in rzt2m_uart_init()
346 *CCR2(config->base) |= (baud_setting & CCR2_MASK_BAUD_SETTING); in rzt2m_uart_init()
348 *CCR1(config->base) |= (CCR1_MASK_NFEN | CCR1_MASK_SPB2DT | CCR1_MASK_SPB2IO); in rzt2m_uart_init()
355 *CCR1(config->base) |= CCR1_MASK_PE; in rzt2m_uart_init()
358 *CCR1(config->base) |= (CCR1_MASK_PE | CCR1_MASK_PM); in rzt2m_uart_init()
365 *FCR(config->base) = FCR_MASK_TFRST | FCR_MASK_RFRST | FCR_TTRG_15 | FCR_RTRG_15; in rzt2m_uart_init()
368 *CCR3(config->base) &= ~CCR3_MASK_CKE; in rzt2m_uart_init()
369 *CCR3(config->base) |= CCR3_CKE_ENABLE; in rzt2m_uart_init()
372 *CFCLR(config->base) = CFCLR_ALL_FLAG_CLEAR; in rzt2m_uart_init()
373 *FFCLR(config->base) = FFCLR_MASK_DRC; in rzt2m_uart_init()
380 *CCR0(config->base) |= (CCR0_MASK_TE | CCR0_MASK_RE); in rzt2m_uart_init()
381 while (!(*CCR0(config->base) & CCR0_MASK_RE)) { in rzt2m_uart_init()
383 while (!(*CCR0(config->base) & CCR0_MASK_TE)) { in rzt2m_uart_init()
403 *CFCLR(config->base) = CFCLR_MASK_RDRFC; in uart_rzt2m_isr()
404 *FFCLR(config->base) = FFCLR_MASK_DRC; in uart_rzt2m_isr()
439 .base = DT_INST_REG_ADDR(n), \