lib: utils/sys: Extend HTIF library to allow custom base address
authorAnup Patel <apatel@ventanamicro.com>
Thu, 6 Jan 2022 03:46:55 +0000 (09:16 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 11 Jan 2022 12:47:49 +0000 (18:17 +0530)
commit6dde43584f185f71a8dd713deb438d7c724a9ad5
tree46a01fc502ec87a7210f81bf8a000e08f73e67a8
parent5b9960379fae14b554c953b0d4139f4b1a57cd5e
lib: utils/sys: Extend HTIF library to allow custom base address

Some of RISC-V emulators provide HTIF at fixed base address so for
such emulators users have to hard-code HTIF base address in the
linker script.

To address this problem, we let users optionally provide fixed HTIF
base address via platform support (or device tree).

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Dong Du <Dd_nirvana@sjtu.edu.cn>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
include/sbi_utils/sys/htif.h
lib/utils/reset/fdt_reset_htif.c
lib/utils/serial/fdt_serial_htif.c
lib/utils/sys/htif.c