Lines Matching refs:config
285 static void prog_cfg1(struct mec_uart_regs *regs, uint32_t config, uint32_t extclk_hz) in prog_cfg1() argument
293 if (config & MEC_BIT(MEC5_UART_CFG_RESET_HOST_POS)) { in prog_cfg1()
297 if (config & MEC_BIT(MEC5_UART_CFG_INVERT_LINES_POS)) { in prog_cfg1()
339 static void prog_word_len(struct mec_uart_regs *regs, uint32_t config) in prog_word_len() argument
341 uint32_t val = ((config & MEC5_UART_CFG_WORD_LEN_MSK) >> MEC5_UART_CFG_WORD_LEN_POS); in prog_word_len()
347 static void prog_parity(struct mec_uart_regs *regs, uint32_t config) in prog_parity() argument
349 uint32_t val = ((config & MEC5_UART_CFG_PARITY_MSK) >> MEC5_UART_CFG_PARITY_POS); in prog_parity()
355 static void prog_stop_bits(struct mec_uart_regs *regs, uint32_t config) in prog_stop_bits() argument
357 if (config & MEC_BIT(MEC5_UART_CFG_STOP_BITS_POS)) { in prog_stop_bits()
365 static void prog_fifo(struct mec_uart_regs *regs, uint32_t config) in prog_fifo() argument
373 if (config & MEC_BIT(MEC5_UART_CFG_FIFO_EN_POS)) { in prog_fifo()
374 temp = (config & MEC5_UART_CFG_RX_FIFO_TRIG_LVL_MSK) >> MEC5_UART_CFG_RX_FIFO_TRIG_LVL_POS; in prog_fifo()
419 uint32_t config, uint32_t extclk_hz) in mec_hal_uart_init() argument
434 prog_cfg1(regs, config, extclk_hz); in mec_hal_uart_init()
446 prog_word_len(regs, config); in mec_hal_uart_init()
449 prog_parity(regs, config); in mec_hal_uart_init()
452 prog_stop_bits(regs, config); in mec_hal_uart_init()
455 prog_fifo(regs, config); in mec_hal_uart_init()
469 if (config & MEC_BIT(MEC5_UART_CFG_GIRQ_EN_POS)) { in mec_hal_uart_init()