mirror of
https://github.com/Fishwaldo/build.git
synced 2025-06-28 00:58:24 +00:00
Enable UART for ATF logging on rk3399
This commit is contained in:
parent
35e6943298
commit
6d78a30555
1 changed files with 31 additions and 0 deletions
31
patch/atf/atf-rk3399/enable-logging.patch
Normal file
31
patch/atf/atf-rk3399/enable-logging.patch
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
diff --git a/plat/rockchip/rk3399/rk3399_def.h b/plat/rockchip/rk3399/rk3399_def.h
|
||||||
|
index ba83242..8d6ecfb 100644
|
||||||
|
--- a/plat/rockchip/rk3399/rk3399_def.h
|
||||||
|
+++ b/plat/rockchip/rk3399/rk3399_def.h
|
||||||
|
@@ -17,7 +17,7 @@
|
||||||
|
/**************************************************************************
|
||||||
|
* UART related constants
|
||||||
|
**************************************************************************/
|
||||||
|
-#define RK3399_BAUDRATE 115200
|
||||||
|
+#define RK3399_BAUDRATE 1500000
|
||||||
|
#define RK3399_UART_CLOCK 24000000
|
||||||
|
|
||||||
|
/******************************************************************************
|
||||||
|
diff --git a/plat/rockchip/common/bl31_plat_setup.c b/plat/rockchip/common/bl31_plat_setup.c
|
||||||
|
index c4a0359..22d07e0 100644
|
||||||
|
--- a/plat/rockchip/common/bl31_plat_setup.c
|
||||||
|
+++ b/plat/rockchip/common/bl31_plat_setup.c
|
||||||
|
@@ -61,10 +61,13 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1,
|
||||||
|
|
||||||
|
params_early_setup(arg1);
|
||||||
|
|
||||||
|
- if (rockchip_get_uart_base() != 0)
|
||||||
|
+ if (rockchip_get_uart_base() != 0) {
|
||||||
|
console_16550_register(rockchip_get_uart_base(),
|
||||||
|
rockchip_get_uart_clock(),
|
||||||
|
rockchip_get_uart_baudrate(), &console);
|
||||||
|
+ console_set_scope(&console.console,
|
||||||
|
+ CONSOLE_FLAG_BOOT | CONSOLE_FLAG_RUNTIME | CONSOLE_FLAG_CRASH);
|
||||||
|
+ }
|
||||||
|
|
||||||
|
VERBOSE("bl31_setup\n");
|
Loading…
Add table
Add a link
Reference in a new issue