/* Converts a Mode Register bit mask to a parity configuration enum value. 
Converts a bit mask representing the UART's parity setting within the UART's Mode Register into a value of an enumeration type provided by the UART driver API. */
static enum uart_config_parity uart_xlnx_ps_ll2cfg_parity(uint32_t mode_reg)
/* Converts a Mode Register bit mask to a parity configuration enum value. 
Converts a bit mask representing the UART's parity setting within the UART's Mode Register into a value of an enumeration type provided by the UART driver API. */
static enum uart_config_parity uart_xlnx_ps_ll2cfg_parity(uint32_t mode_reg)
{
	switch ((mode_reg & XUARTPS_MR_PARITY_MASK)) {
	case XUARTPS_MR_PARITY_EVEN:
	default:
		return UART_CFG_PARITY_EVEN;
	case XUARTPS_MR_PARITY_ODD:
		return UART_CFG_PARITY_ODD;
	case XUARTPS_MR_PARITY_SPACE:
		return UART_CFG_PARITY_SPACE;
	case XUARTPS_MR_PARITY_MARK:
		return UART_CFG_PARITY_MARK;
	case XUARTPS_MR_PARITY_NONE:
		return UART_CFG_PARITY_NONE;
	}
}