lib: sbi: Simplify console platform operations
authorAnup Patel <anup.patel@wdc.com>
Wed, 21 Apr 2021 12:33:50 +0000 (18:03 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 28 Apr 2021 11:28:23 +0000 (16:58 +0530)
commit068ca086af2312d56efe51a724d78d84e1339ab4
tree0e90c1a9e7a03254ff5dcb33507c5c9a06f9de3e
parenta3689db92a0e83ef25c52887aa686e4527e35a22
lib: sbi: Simplify console platform operations

Instead of having console_putc() and console_getc() callbacks in
platform operations, it will be much simpler for console driver to
directly register these operations as device to the sbi_console
implementation.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Xiang W <wxjstz@126.com>
25 files changed:
include/sbi/sbi_console.h
include/sbi/sbi_platform.h
include/sbi_utils/serial/fdt_serial.h
include/sbi_utils/serial/shakti-uart.h
include/sbi_utils/serial/sifive-uart.h
include/sbi_utils/serial/uart8250.h
include/sbi_utils/sys/htif.h
lib/sbi/sbi_console.c
lib/utils/serial/fdt_serial.c
lib/utils/serial/fdt_serial_htif.c
lib/utils/serial/fdt_serial_shakti.c
lib/utils/serial/fdt_serial_sifive.c
lib/utils/serial/fdt_serial_uart8250.c
lib/utils/serial/shakti-uart.c
lib/utils/serial/sifive-uart.c
lib/utils/serial/uart8250.c
lib/utils/sys/htif.c
platform/andes/ae350/platform.c
platform/fpga/ariane/platform.c
platform/fpga/openpiton/platform.c
platform/generic/platform.c
platform/kendryte/k210/platform.c
platform/nuclei/ux600/platform.c
platform/sifive/fu540/platform.c
platform/template/platform.c