forked from Mirrors/opensbi
lib: utils/serial: support 'reg-offset' property
reg-offset property is used for offset to apply to the mapbase from the start of the registers in 8250 UART. In Linux kernel, it has been handled in 8250 UART driver. dt-bindings: <linux>/Documentation/devicetree/bindings/serial/8250.yaml Signed-off-by: Zong Li <zong.li@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
@@ -69,7 +69,8 @@ static int ae350_console_init(void)
|
||||
AE350_UART_FREQUENCY,
|
||||
AE350_UART_BAUDRATE,
|
||||
AE350_UART_REG_SHIFT,
|
||||
AE350_UART_REG_WIDTH);
|
||||
AE350_UART_REG_WIDTH,
|
||||
AE350_UART_REG_OFFSET);
|
||||
}
|
||||
|
||||
/* Initialize the platform interrupt controller for current HART. */
|
||||
|
Reference in New Issue
Block a user