lib: sbi_pmu: Use dedicated event code for platform firmware events
authorMayuresh Chitale <mchitale@ventanamicro.com>
Thu, 9 Mar 2023 13:13:56 +0000 (18:43 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 10 Mar 2023 08:30:28 +0000 (14:00 +0530)
commit641d2e9f38e085ccee77cfd866cae5c7222830fc
treeeed0e3eaa99586d7be7a3b86c3e22b44e8c64ab4
parentb51ddffcc043fb94ebcbffce7682b2d0deef5afd
lib: sbi_pmu: Use dedicated event code for platform firmware events

For all platform specific firmware event operations use the dedicated
event code (0xFFFF) when matching against the input firmware event.
Furthermore save the real platform specific firmware event code received as
the event data for future use.

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