mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
hw/char: Convert the Ibex UART to use the qdev Clock model
Conver the Ibex UART to use the recently added qdev-clock functions. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: b0136fad870a29049959ec161c1217b967d7e19d.1594332223.git.alistair.francis@wdc.com Message-Id: <b0136fad870a29049959ec161c1217b967d7e19d.1594332223.git.alistair.francis@wdc.com>
This commit is contained in:
parent
fbcbafa2c1
commit
940aabb9f4
2 changed files with 30 additions and 3 deletions
|
@ -72,6 +72,7 @@
|
|||
#define IBEX_UART_TIMEOUT_CTRL 0x2c
|
||||
|
||||
#define IBEX_UART_TX_FIFO_SIZE 16
|
||||
#define IBEX_UART_CLOCK 50000000 /* 50MHz clock */
|
||||
|
||||
#define TYPE_IBEX_UART "ibex-uart"
|
||||
#define IBEX_UART(obj) \
|
||||
|
@ -101,6 +102,8 @@ typedef struct {
|
|||
uint32_t uart_val;
|
||||
uint32_t uart_timeout_ctrl;
|
||||
|
||||
Clock *f_clk;
|
||||
|
||||
CharBackend chr;
|
||||
qemu_irq tx_watermark;
|
||||
qemu_irq rx_watermark;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue