diff mbox series

[v4,8/8] doc: jh7110: describe debug UART

Message ID 20250424121315.144549-9-heinrich.schuchardt@canonical.com
State Accepted, archived
Commit fcfe4e7ac005e832764c63c05c2a4ae381dc7d92
Delegated to: Andes
Headers show
Series board: starfive: DeepComputing FML13V01 | expand

Commit Message

Heinrich Schuchardt April 24, 2025, 12:13 p.m. UTC
Provide the settings for using the debug UART in SPL.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
v4:
	no change
v3:
	no change
v2:
	new patch
---
 doc/board/starfive/jh7110_common.rst | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Comments

E Shattow April 24, 2025, 8:36 p.m. UTC | #1
I do not know what a Debug UART is (different than Serial Console?) and
did not test on hardware available to me but the description sounds
reasonable enough.

On 4/24/25 05:13, Heinrich Schuchardt wrote:
> Provide the settings for using the debug UART in SPL.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
> v4:
> 	no change
> v3:
> 	no change
> v2:
> 	new patch
> ---
>  doc/board/starfive/jh7110_common.rst | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/doc/board/starfive/jh7110_common.rst b/doc/board/starfive/jh7110_common.rst
> index fb8d87a1551..4a8058ee5da 100644
> --- a/doc/board/starfive/jh7110_common.rst
> +++ b/doc/board/starfive/jh7110_common.rst
> @@ -87,3 +87,17 @@ u-boot.itb via the Y-modem protocol.
>  Due to restrictions of the boot ROM not all X-modem implementations are
>  compatible. The package tio (https://github.com/tio/tio) has been found to be
>  usable.
> +
> +Debug UART
> +----------
> +
> +By default the SBI interface is used for the debug UART. But this only works
> +in main U-Boot. To enable the debug UART in SPL, too, use the following
> +settings::
> +
> +    CONFIG_DEBUG_UART=y
> +    CONFIG_DEBUG_UART_NS16550=y
> +    CONFIG_DEBUG_UART_BASE=0x10000000
> +    CONFIG_SPL_DEBUG_UART_BASE=0x10000000
> +    CONFIG_DEBUG_UART_CLOCK=24000000
> +    CONFIG_DEBUG_UART_SHIFT=2

Reviewed-by: E Shattow <e@freeshell.de>
diff mbox series

Patch

diff --git a/doc/board/starfive/jh7110_common.rst b/doc/board/starfive/jh7110_common.rst
index fb8d87a1551..4a8058ee5da 100644
--- a/doc/board/starfive/jh7110_common.rst
+++ b/doc/board/starfive/jh7110_common.rst
@@ -87,3 +87,17 @@  u-boot.itb via the Y-modem protocol.
 Due to restrictions of the boot ROM not all X-modem implementations are
 compatible. The package tio (https://github.com/tio/tio) has been found to be
 usable.
+
+Debug UART
+----------
+
+By default the SBI interface is used for the debug UART. But this only works
+in main U-Boot. To enable the debug UART in SPL, too, use the following
+settings::
+
+    CONFIG_DEBUG_UART=y
+    CONFIG_DEBUG_UART_NS16550=y
+    CONFIG_DEBUG_UART_BASE=0x10000000
+    CONFIG_SPL_DEBUG_UART_BASE=0x10000000
+    CONFIG_DEBUG_UART_CLOCK=24000000
+    CONFIG_DEBUG_UART_SHIFT=2