summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBin Meng <[email protected]>2019-03-27 22:58:49 +0800
committerAnup Patel <[email protected]>2019-03-29 15:49:11 +0530
commitf9cfe301c92aede87e46069e66e250d4039e413e (patch)
tree9ad888e9926a14a20ba6b3d291ff9e8f8f056dcc /lib
parent215c200ccbf39d834dfb64771c8fa5a06ad5b4e0 (diff)
lib: Disable the boot prints if SBI_SCRATCH_NO_BOOT_PRINTS is set
Use the newly introduced "options" in "struct sbi_scratch" to conditionally disable the boot prints. Signed-off-by: Bin Meng <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/sbi_init.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sbi_init.c b/lib/sbi_init.c
index bc274365..32ad8221 100644
--- a/lib/sbi_init.c
+++ b/lib/sbi_init.c
@@ -91,7 +91,8 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid)
if (rc)
sbi_hart_hang();
- sbi_boot_prints(scratch, hartid);
+ if (!(scratch->options & SBI_SCRATCH_NO_BOOT_PRINTS))
+ sbi_boot_prints(scratch, hartid);
if (!sbi_platform_has_hart_hotplug(plat))
sbi_hart_wake_coldboot_harts(scratch, hartid);