From dfb707f5579eb3c4fa2a2e5d94ddb7136fac8249 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Tue, 18 Jun 2019 17:29:23 +1000 Subject: Separate FSP specific PSI code Signed-off-by: Stewart Smith --- include/platform.h | 15 +++++++++++++++ include/psi.h | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/platform.h b/include/platform.h index 966f704..f17847a 100644 --- a/include/platform.h +++ b/include/platform.h @@ -80,6 +80,16 @@ struct platform_ocapi { struct dt_node; /* + * Just for FSP platforms, allows us to partly decouple + * FSP specific code from core code. + */ +struct platform_psi { + void (*psihb_interrupt)(void); + void (*link_established)(void); + void (*fsp_interrupt)(void); +}; + +/* * Each platform can provide a set of hooks * that can affect the generic code */ @@ -93,6 +103,11 @@ struct platform { */ const struct bmc_platform *bmc; + /* + * PSI handling code. FSP specific. + */ + const struct platform_psi *psi; + /* OpenCAPI platform-specific I2C information */ const struct platform_ocapi *ocapi; diff --git a/include/psi.h b/include/psi.h index ad56ce1..1aca1af 100644 --- a/include/psi.h +++ b/include/psi.h @@ -273,6 +273,6 @@ extern void psi_fsp_link_in_use(struct psi *psi); #define EXTERNAL_IRQ_POLICY_SKIBOOT true extern void psi_set_external_irq_policy(bool policy); - +extern struct lock psi_lock; #endif /* __PSI_H */ -- cgit v1.1