lib: sbi_hart: move hart_features struct to a public location
authorHeiko Stuebner <heiko@sntech.de>
Tue, 4 Oct 2022 16:42:24 +0000 (18:42 +0200)
committerAnup Patel <anup@brainfault.org>
Thu, 13 Oct 2022 04:22:03 +0000 (09:52 +0530)
commitc316fa38c264a1c01f178621e79a8c451f5f5a46
tree62262052208cc77bb9aee90c486f55ce270bb0bb
parente54cb3298bfcaa2ac56fe51d0f39c901d5397166
lib: sbi_hart: move hart_features struct to a public location

Platforms may need to override auto-detected hart features
in their override functions. So move the hart_features
struct to the sbi_hart.h header allowing us to pass it over
to platform-handlers.

Suggested-by: Atish Patra <atishp@atishpatra.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Reviewed-by: Anup Patel <anup@brainfault.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
include/sbi/sbi_hart.h
lib/sbi/sbi_hart.c