/* Converts a stop bit enum value to a Mode Register bit mask. 
It is assumed that the Mode Register contents that are being modified within this function come with the bits modified by this function already masked out by the caller. */
static bool uart_xlnx_ps_cfg2ll_stopbits(uint32_t *mode_reg, enum uart_config_stop_bits stopbits)
/* Converts a stop bit enum value to a Mode Register bit mask. 
It is assumed that the Mode Register contents that are being modified within this function come with the bits modified by this function already masked out by the caller. */
static bool uart_xlnx_ps_cfg2ll_stopbits(uint32_t *mode_reg, enum uart_config_stop_bits stopbits)
{
	switch (stopbits) {
	case UART_CFG_STOP_BITS_0_5:
		return false;
	default:
	case UART_CFG_STOP_BITS_1:
		*mode_reg |= XUARTPS_MR_STOPMODE_1_BIT;
		break;
	case UART_CFG_STOP_BITS_1_5:
		*mode_reg |= XUARTPS_MR_STOPMODE_1_5_BIT;
		break;
	case UART_CFG_STOP_BITS_2:
		*mode_reg |= XUARTPS_MR_STOPMODE_2_BIT;
		break;
	}
	return true;
}