lib: sbi: Add PMU specific platform hooks
authorAtish Patra <atish.patra@wdc.com>
Sat, 10 Jul 2021 16:18:10 +0000 (09:18 -0700)
committerAnup Patel <anup@brainfault.org>
Sun, 11 Jul 2021 04:51:38 +0000 (10:21 +0530)
commite7cc7a3ab2770b9f40569a84c417afdad59531bc
tree4f481c5ba869ac53fcd256d0d3fae4863cfd7b3e
parent49966db30658a3d5070e1a10200bd8c73dab0851
lib: sbi: Add PMU specific platform hooks

A platform hook to initialize PMU allows platform vendors to provide
their own mechanism to define pmu event-counter mappings in addition
to the DT based approach.

Another platform hook that allows platform vendors customize the
final mhpmevent value configuration.

Reviewed-by: Anup Patel <anup.patel@wdc.com>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
include/sbi/sbi_platform.h