forked from Imagelibrary/rtems
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:
committed by
Joel Sherrill
parent
2b56f5af5e
commit
5686b44d13
@@ -40,7 +40,7 @@ uint32_t zynq_uart_input_clock(void)
|
||||
return ZYNQ_CLOCK_UART;
|
||||
}
|
||||
|
||||
static int zynq_cal_baud_rate(uint32_t baudrate,
|
||||
int zynq_cal_baud_rate(uint32_t baudrate,
|
||||
uint32_t* brgr,
|
||||
uint32_t* bauddiv,
|
||||
uint32_t modereg)
|
||||
|
||||
Reference in New Issue
Block a user