lib: utils: Add SiFive test device
authorAnup Patel <anup.patel@wdc.com>
Fri, 24 Apr 2020 06:56:23 +0000 (12:26 +0530)
committerAnup Patel <anup@brainfault.org>
Mon, 27 Apr 2020 09:07:57 +0000 (14:37 +0530)
commit6585fabbcca24bf1c1df0582d048d93b3caf7ce7
treef20de7aa4fde868e508c7128340c97f4ac0f51b1
parenta9eac67ad019200e9a281a6fc10e394353a026f2
lib: utils: Add SiFive test device

This patch factor-out SiFive test device related stuff into
it's own source file from qemu/virt platform. In future, we
can find SiFive test device address from device tree as well.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
include/sbi_utils/sys/sifive_test.h [new file with mode: 0644]
lib/utils/sys/objects.mk
lib/utils/sys/sifive_test.c [new file with mode: 0644]
platform/qemu/virt/platform.c