aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2024-07-04 21:09:17 +0530
committerAnup Patel <anup@brainfault.org>2024-07-24 12:18:33 +0530
commit119b15a5535bc6f466a7f89857fcce820fe2b290 (patch)
tree50e2c9b8fa5eff0456bc7e0fef97ab140002e862 /lib
parent9e8a18fd0dd72de8cda71f7278cafa7033ae2d34 (diff)
downloadopensbi-119b15a5535bc6f466a7f89857fcce820fe2b290.zip
opensbi-119b15a5535bc6f466a7f89857fcce820fe2b290.tar.gz
opensbi-119b15a5535bc6f466a7f89857fcce820fe2b290.tar.bz2
lib: sbi: Remove sbi_console_init() and console_init() platform callback
Now that all platforms have been updated to initialize serial console device in early_init(), the sbi_console_init() and console_init() platform callback are redundant hence remove them. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-By: Himanshu Chauhan <hchauhan@ventanamicro.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/sbi/sbi_console.c11
-rw-r--r--lib/sbi/sbi_init.c4
2 files changed, 0 insertions, 15 deletions
diff --git a/lib/sbi/sbi_console.c b/lib/sbi/sbi_console.c
index d3ec461..194529d 100644
--- a/lib/sbi/sbi_console.c
+++ b/lib/sbi/sbi_console.c
@@ -477,14 +477,3 @@ void sbi_console_set_device(const struct sbi_console_device *dev)
console_dev = dev;
}
-
-int sbi_console_init(struct sbi_scratch *scratch)
-{
- int rc = sbi_platform_console_init(sbi_platform_ptr(scratch));
-
- /* console is not a necessary device */
- if (rc == SBI_ENODEV)
- return 0;
-
- return rc;
-}
diff --git a/lib/sbi/sbi_init.c b/lib/sbi/sbi_init.c
index 0f9e14c..d80efe9 100644
--- a/lib/sbi/sbi_init.c
+++ b/lib/sbi/sbi_init.c
@@ -261,10 +261,6 @@ static void __noreturn init_coldboot(struct sbi_scratch *scratch, u32 hartid)
if (rc)
sbi_hart_hang();
- rc = sbi_console_init(scratch);
- if (rc)
- sbi_hart_hang();
-
rc = sbi_sse_init(scratch, true);
if (rc) {
sbi_printf("%s: sse init failed (error %d)\n", __func__, rc);