From 6584364eaebfbad80ae91f232e7155c3c275b098 Mon Sep 17 00:00:00 2001 From: Nicholas O'Brien Date: Sat, 18 Jul 2020 08:56:57 -0700 Subject: Fix UART register map (#208) While it's unused upstream, according to the SiFive FU540 document, the UART divisor register is at offset 0x18. This also maps the interrupt enable and interrupt pending register offsets. --- machine/uart.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'machine') diff --git a/machine/uart.h b/machine/uart.h index 928009d..61662fe 100644 --- a/machine/uart.h +++ b/machine/uart.h @@ -11,7 +11,9 @@ extern volatile uint32_t* uart; #define UART_REG_RXFIFO 1 #define UART_REG_TXCTRL 2 #define UART_REG_RXCTRL 3 -#define UART_REG_DIV 4 +#define UART_REG_IE 4 +#define UART_REG_IP 5 +#define UART_REG_DIV 6 #define UART_TXEN 0x1 #define UART_RXEN 0x1 -- cgit v1.1