summaryrefslogtreecommitdiff
path: root/src/mainboard/amd/bilby/mainboard.c
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2022-10-25 23:30:43 +0200
committerFelix Held <felix-coreboot@felixheld.de>2022-10-26 22:09:07 +0000
commit067f7033291a31f98264404463d421196dcdc65b (patch)
tree6bf11df1e19fb5ea18177bad94728d9801b52269 /src/mainboard/amd/bilby/mainboard.c
parentce934056df417e0928bf3287d014d202f217d875 (diff)
mb/amd,google: unify fch_irq_routing struct instance name
Use the same fch_irq_map name in all mainboards using the Picasso, Cezanne, Mendocino and Morgana instead of using a mainboard-specific name. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I035cffb9c6c8afd6bd115831e8eed4a395e2a7fc Reviewed-on: https://review.coreboot.org/c/coreboot/+/68846 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Diffstat (limited to 'src/mainboard/amd/bilby/mainboard.c')
-rw-r--r--src/mainboard/amd/bilby/mainboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainboard/amd/bilby/mainboard.c b/src/mainboard/amd/bilby/mainboard.c
index c9310530d2..c594a90b1d 100644
--- a/src/mainboard/amd/bilby/mainboard.c
+++ b/src/mainboard/amd/bilby/mainboard.c
@@ -31,7 +31,7 @@
static uint8_t fch_pic_routing[FCH_IRQ_ROUTING_ENTRIES];
static uint8_t fch_apic_routing[FCH_IRQ_ROUTING_ENTRIES];
-static const struct fch_irq_routing bilby_fch[] = {
+static const struct fch_irq_routing fch_irq_map[] = {
{ PIRQ_A, 8, 16 },
{ PIRQ_B, 10, 17 },
{ PIRQ_C, 11, 18 },
@@ -64,8 +64,8 @@ static void init_tables(void)
memset(fch_pic_routing, PIRQ_NC, sizeof(fch_pic_routing));
memset(fch_apic_routing, PIRQ_NC, sizeof(fch_apic_routing));
- for (i = 0; i < ARRAY_SIZE(bilby_fch); i++) {
- entry = bilby_fch + i;
+ for (i = 0; i < ARRAY_SIZE(fch_irq_map); i++) {
+ entry = fch_irq_map + i;
fch_pic_routing[entry->intr_index] = entry->pic_irq_num;
fch_apic_routing[entry->intr_index] = entry->apic_irq_num;
}