diff options
author | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2021-06-05 11:38:14 -0600 |
---|---|---|
committer | Tim Wawrzynczak <twawrzynczak@chromium.org> | 2021-06-29 21:50:35 +0000 |
commit | ef16df27826522b158809a31bef71e079e67a61c (patch) | |
tree | 56929bd86f73204c5fc6d86c1e96cc38f3e84ebc /src/soc/intel | |
parent | bdba51208ad5b3a3cde9f137df0ea042ac0e7d25 (diff) |
southbridge/intel/common: Move invalid PIRQ value to 0
This makes structs that contain an `enum pirq` field that is
default-initialized have the value PIRQ_INVALID
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Change-Id: Idb4c7d79de13de0e4b187a42e8bdb27e25e61cc1
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55281
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/common/block/lpc/lpc_lib.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/soc/intel/common/block/lpc/lpc_lib.c b/src/soc/intel/common/block/lpc/lpc_lib.c index 1b6936e508..0268245f34 100644 --- a/src/soc/intel/common/block/lpc/lpc_lib.c +++ b/src/soc/intel/common/block/lpc/lpc_lib.c @@ -293,14 +293,14 @@ void pch_enable_ioapic(void) } static const uint8_t pch_interrupt_routing[PIRQ_COUNT] = { - [PIRQ_A] = PCH_IRQ11, - [PIRQ_B] = PCH_IRQ10, - [PIRQ_C] = PCH_IRQ11, - [PIRQ_D] = PCH_IRQ11, - [PIRQ_E] = PCH_IRQ11, - [PIRQ_F] = PCH_IRQ11, - [PIRQ_G] = PCH_IRQ11, - [PIRQ_H] = PCH_IRQ11, + [0] = PCH_IRQ11, /* PIRQ_A */ + [1] = PCH_IRQ10, /* PIRQ_B */ + [2] = PCH_IRQ11, /* PIRQ_C */ + [3] = PCH_IRQ11, /* PIRQ_D */ + [4] = PCH_IRQ11, /* PIRQ_E */ + [5] = PCH_IRQ11, /* PIRQ_F */ + [6] = PCH_IRQ11, /* PIRQ_G */ + [7] = PCH_IRQ11, /* PIRQ_H */ }; const uint8_t *lpc_get_pic_pirq_routing(size_t *num) |