ANDROID: irqchip/irq-gic-v3: Add vendor hook for gic suspend

This change adds vendor hook "android_vh_gic_v3_suspen" for gic
suspend syscore ops callback. Vendor hook is invoked during
deepsleep or hibernation scenarios to store gic register snapshot
in downstream module.

Update below functions with _v3_ to avoid naming collision:
    gic_dist_init() -> gic_v3_dist_init()
    gic_cpu_init() -> gic_v3_cpu_init()
    gic_dist_wait_for_rwp() -> gic_v3_dist_wait_for_rwp().

Bug: 279879797
Change-Id: I4e3729afa4daf18d73e00ee9601b6da72a578b4a
Signed-off-by: Nagireddy Annem <quic_nannem@quicinc.com>
Signed-off-by: Shreyas K K <quic_shrekk@quicinc.com>
Signed-off-by: Melody Olvera <quic_molvera@quicinc.com>
Signed-off-by: Unnathi Chalicheemala <quic_uchalich@quicinc.com>
This commit is contained in:
Unnathi Chalicheemala
2024-11-05 14:12:53 -08:00
committed by Todd Kjos
parent eff3d84d46
commit bca065e876
4 changed files with 44 additions and 9 deletions
+4
View File
@@ -656,6 +656,10 @@ static inline bool gic_enable_sre(void)
return !!(val & ICC_SRE_EL1_SRE);
}
void gic_v3_dist_init(void);
void gic_v3_cpu_init(void);
void gic_v3_dist_wait_for_rwp(void);
#endif
#endif