diff mbox series

[1/1] RISC-V: CONFIG_SPL_OPENSBI_SCRATCH_OPTIONS description

Message ID 20230704001421.18708-1-heinrich.schuchardt@canonical.com
State Accepted
Commit 9eb0fc24c9804118e44b70851b1ad03aa1fc8cd4
Delegated to: Andes
Headers show
Series [1/1] RISC-V: CONFIG_SPL_OPENSBI_SCRATCH_OPTIONS description | expand

Commit Message

Heinrich Schuchardt July 4, 2023, 12:14 a.m. UTC
Describe which numeric values can be used for as scratch options for
OpenSBI.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 common/spl/Kconfig | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Leo Liang July 5, 2023, 5:52 a.m. UTC | #1
On Tue, Jul 04, 2023 at 02:14:21AM +0200, Heinrich Schuchardt wrote:
> Describe which numeric values can be used for as scratch options for
> OpenSBI.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
>  common/spl/Kconfig | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Anup Patel July 5, 2023, 6:28 a.m. UTC | #2
On Tue, Jul 4, 2023 at 5:44 AM Heinrich Schuchardt
<heinrich.schuchardt@canonical.com> wrote:
>
> Describe which numeric values can be used for as scratch options for
> OpenSBI.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>

Looks good to me.

Reviewed-by: Anup Patel <anup@brainfault.org>

Regards,
Anup

> ---
>  common/spl/Kconfig | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> index 2c042ad306..7f99889ec3 100644
> --- a/common/spl/Kconfig
> +++ b/common/spl/Kconfig
> @@ -1524,8 +1524,10 @@ config SPL_OPENSBI_SCRATCH_OPTIONS
>         default 0x1
>         depends on SPL_OPENSBI
>         help
> -         Options passed to fw_dynamic, for example SBI_SCRATCH_NO_BOOT_PRINTS or
> -         SBI_SCRATCH_DEBUG_PRINTS.
> +         This bitmap of options is passed from U-Boot SPL to OpenSBI.
> +         As of OpenSBI 1.3 the following bits are defined:
> +         - SBI_SCRATCH_NO_BOOT_PRINTS = 0x1 (Disable prints during boot)
> +         - SBI_SCRATCH_DEBUG_PRINTS   = 0x2 (Enable runtime debug prints)
>
>  config SPL_TARGET
>         string "Addtional build targets for 'make'"
> --
> 2.40.1
>
diff mbox series

Patch

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 2c042ad306..7f99889ec3 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -1524,8 +1524,10 @@  config SPL_OPENSBI_SCRATCH_OPTIONS
 	default 0x1
 	depends on SPL_OPENSBI
 	help
-	  Options passed to fw_dynamic, for example SBI_SCRATCH_NO_BOOT_PRINTS or
-	  SBI_SCRATCH_DEBUG_PRINTS.
+	  This bitmap of options is passed from U-Boot SPL to OpenSBI.
+	  As of OpenSBI 1.3 the following bits are defined:
+	  - SBI_SCRATCH_NO_BOOT_PRINTS = 0x1 (Disable prints during boot)
+	  - SBI_SCRATCH_DEBUG_PRINTS   = 0x2 (Enable runtime debug prints)
 
 config SPL_TARGET
 	string "Addtional build targets for 'make'"