lib: sbi: Remove redundant SBI_HART_HAS_PMP feature
authorAnup Patel <anup.patel@wdc.com>
Tue, 18 Aug 2020 06:21:16 +0000 (11:51 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 1 Sep 2020 04:58:26 +0000 (10:28 +0530)
commit7b0b289887380d2e71210f12b5ce0f3afc011b35
tree14af735edbeccd13b12a41964c959b14b6488cb4
parent4f3bad6e43f0e5a1a124847edf910e309ae9d59a
lib: sbi: Remove redundant SBI_HART_HAS_PMP feature

The SBI_HART_HAS_PMP feature is redundant because we already
have number of PMP regions returned by sbi_hart_pmp_count().

Checking whether PMP is supported for a HART can be simply done
by checking non-zero value returned by sbi_hart_pmp_count().

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
include/sbi/sbi_hart.h
lib/sbi/sbi_hart.c
lib/utils/fdt/fdt_fixup.c