summaryrefslogtreecommitdiff
path: root/platform/template
diff options
context:
space:
mode:
authorZong Li <[email protected]>2022-04-15 02:24:20 +0000
committerAnup Patel <[email protected]>2022-04-17 13:57:48 +0530
commit5c5cbb53a4fd2f7d2a7038b584f8ee01266cef04 (patch)
tree6b5b44ba31b880503dc722bd2a707b0d8b14e1f4 /platform/template
parent3383d6a4d1461bb029b21fa53417382e34ae4906 (diff)
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 <[email protected]> Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'platform/template')
-rw-r--r--platform/template/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/template/platform.c b/platform/template/platform.c
index d6806e6e..5524847c 100644
--- a/platform/template/platform.c
+++ b/platform/template/platform.c
@@ -79,7 +79,7 @@ static int platform_console_init(void)
{
/* Example if the generic UART8250 driver is used */
return uart8250_init(PLATFORM_UART_ADDR, PLATFORM_UART_INPUT_FREQ,
- PLATFORM_UART_BAUDRATE, 0, 1);
+ PLATFORM_UART_BAUDRATE, 0, 1, 0);
}
/*