aboutsummaryrefslogtreecommitdiff
path: root/platforms/astbmc
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2019-09-05 20:50:42 +1000
committerOliver O'Halloran <oohall@gmail.com>2019-09-06 16:59:59 +1000
commit9c9375fd4448d67e05b5b2a587273e5c285f9376 (patch)
tree9e885dce14782dad8e2a8640b920dfbb48a3aa92 /platforms/astbmc
parentfa161cd89fbf6f543f302651a0fd447b8dfc8b06 (diff)
downloadskiboot-9c9375fd4448d67e05b5b2a587273e5c285f9376.zip
skiboot-9c9375fd4448d67e05b5b2a587273e5c285f9376.tar.gz
skiboot-9c9375fd4448d67e05b5b2a587273e5c285f9376.tar.bz2
hw/psi: Remove explicit external IRQ policy
Rather than having an explicit policy use the presence of a platform defined external interrupt handler to determine whether we should direct the interrupt to OPAL or not. This lets us remove a pile of comments about why the policy is necessary and the comments about why we need to un-set it on P8+ Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'platforms/astbmc')
-rw-r--r--platforms/astbmc/common.c3
-rw-r--r--platforms/astbmc/garrison.c11
-rw-r--r--platforms/astbmc/p8dnu.c11
3 files changed, 0 insertions, 25 deletions
diff --git a/platforms/astbmc/common.c b/platforms/astbmc/common.c
index 85043f3..15ac231 100644
--- a/platforms/astbmc/common.c
+++ b/platforms/astbmc/common.c
@@ -465,9 +465,6 @@ void astbmc_early_init(void)
/* Hostboot forgets to populate the PSI BAR */
astbmc_fixup_psi_bar();
- /* Send external interrupts to me */
- psi_set_external_irq_policy(EXTERNAL_IRQ_POLICY_SKIBOOT);
-
if (ast_sio_init()) {
if (ast_io_init()) {
astbmc_fixup_uart();
diff --git a/platforms/astbmc/garrison.c b/platforms/astbmc/garrison.c
index 1b0f865..caf6113 100644
--- a/platforms/astbmc/garrison.c
+++ b/platforms/astbmc/garrison.c
@@ -258,17 +258,6 @@ static bool garrison_probe(void)
/* Lot of common early inits here */
astbmc_early_init();
- /*
- * Override external interrupt policy -> send to Linux
- *
- * On Naples, we get LPC interrupts via the built-in LPC
- * controller demuxer, not an external CPLD. The external
- * interrupt is for other uses, such as the TPM chip, we
- * currently route it to Linux, but we might change that
- * later if we decide we need it.
- */
- psi_set_external_irq_policy(EXTERNAL_IRQ_POLICY_LINUX);
-
/* Fixups until HB get the NPU bindings */
dt_create_npu();
diff --git a/platforms/astbmc/p8dnu.c b/platforms/astbmc/p8dnu.c
index a76fbd9..e223d15 100644
--- a/platforms/astbmc/p8dnu.c
+++ b/platforms/astbmc/p8dnu.c
@@ -307,17 +307,6 @@ static bool p8dnu_probe(void)
/* Lot of common early inits here */
astbmc_early_init();
- /*
- * Override external interrupt policy -> send to Linux
- *
- * On Naples, we get LPC interrupts via the built-in LPC
- * controller demuxer, not an external CPLD. The external
- * interrupt is for other uses, such as the TPM chip, we
- * currently route it to Linux, but we might change that
- * later if we decide we need it.
- */
- psi_set_external_irq_policy(EXTERNAL_IRQ_POLICY_LINUX);
-
/* Fixups until HB get the NPU bindings */
dt_create_npu();