diff options
| author | Anup Patel <apatel@ventanamicro.com> | 2024-07-04 21:09:17 +0530 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2024-07-24 12:18:33 +0530 |
| commit | 119b15a5535bc6f466a7f89857fcce820fe2b290 (patch) | |
| tree | 50e2c9b8fa5eff0456bc7e0fef97ab140002e862 /include | |
| parent | 9e8a18fd0dd72de8cda71f7278cafa7033ae2d34 (diff) | |
| download | opensbi-119b15a5535bc6f466a7f89857fcce820fe2b290.tar.gz opensbi-119b15a5535bc6f466a7f89857fcce820fe2b290.tar.bz2 opensbi-119b15a5535bc6f466a7f89857fcce820fe2b290.zip | |
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 'include')
| -rw-r--r-- | include/sbi/sbi_console.h | 2 | ||||
| -rw-r--r-- | include/sbi/sbi_platform.h | 17 |
2 files changed, 0 insertions, 19 deletions
diff --git a/include/sbi/sbi_console.h b/include/sbi/sbi_console.h index 09797652..3097db1e 100644 --- a/include/sbi/sbi_console.h +++ b/include/sbi/sbi_console.h @@ -58,8 +58,6 @@ void sbi_console_set_device(const struct sbi_console_device *dev); struct sbi_scratch; -int sbi_console_init(struct sbi_scratch *scratch); - #define SBI_ASSERT(cond, args) do { \ if (unlikely(!(cond))) \ sbi_panic args; \ diff --git a/include/sbi/sbi_platform.h b/include/sbi/sbi_platform.h index 581935ab..7b3ac4bf 100644 --- a/include/sbi/sbi_platform.h +++ b/include/sbi/sbi_platform.h @@ -111,9 +111,6 @@ struct sbi_platform_operations { /** Get platform specific mhpmevent value */ uint64_t (*pmu_xlate_to_mhpmevent)(uint32_t event_idx, uint64_t data); - /** Initialize the platform console */ - int (*console_init)(void); - /** Initialize the platform interrupt controller for current HART */ int (*irqchip_init)(bool cold_boot); /** Exit the platform interrupt controller for current HART */ @@ -550,20 +547,6 @@ static inline uint64_t sbi_platform_pmu_xlate_to_mhpmevent(const struct sbi_plat } /** - * Initialize the platform console - * - * @param plat pointer to struct sbi_platform - * - * @return 0 on success and negative error code on failure - */ -static inline int sbi_platform_console_init(const struct sbi_platform *plat) -{ - if (plat && sbi_platform_ops(plat)->console_init) - return sbi_platform_ops(plat)->console_init(); - return 0; -} - -/** * Initialize the platform interrupt controller for current HART * * @param plat pointer to struct sbi_platform |
