lib: sbi_pmu: Introduce fw_counter_write_value API
authorMayuresh Chitale <mchitale@ventanamicro.com>
Thu, 9 Mar 2023 13:13:57 +0000 (18:43 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 10 Mar 2023 08:30:30 +0000 (14:00 +0530)
commit57d3aa3b0dbd534ab702dce61767df0e9dc7577f
tree711004fa0e124452d9117f8eab8df76a45659228
parent641d2e9f38e085ccee77cfd866cae5c7222830fc
lib: sbi_pmu: Introduce fw_counter_write_value API

Add fw_counter_write_value API for platform specific firmware events
which separates setting the counter's initial value from starting the
counter. This is required so that the fw_event_data array can be reused
to save the event data received.

Signed-off-by: Mayuresh Chitale <mchitale@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
include/sbi/sbi_pmu.h
lib/sbi/sbi_pmu.c