zynq-uart: Fix set_attributes implementation

The zynq-uart set_attributes implementation was configured to always
return false which causes spconsole01 to fail. This restores the
disabled implementation which sets the baud rate registers
appropriately and allows spconsole01 to pass. This also expands the
set_attributes functionality to allow setting of the stop bits,
character width, and parity.
This commit is contained in:
Kinsey Moore
2020-12-02 13:20:36 -06:00
committed by Joel Sherrill
parent 2b56f5af5e
commit 5686b44d13
3 changed files with 59 additions and 6 deletions

View File

@@ -78,6 +78,13 @@ void zynq_uart_write_polled(
*/
void zynq_uart_reset_tx_flush(zynq_uart_context *ctx);
int zynq_cal_baud_rate(
uint32_t baudrate,
uint32_t* brgr,
uint32_t* bauddiv,
uint32_t modereg
);
#ifdef __cplusplus
}
#endif /* __cplusplus */