diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-01-04 06:02:22 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-01-09 12:44:52 +0000 |
commit | 993bc7098c8ac6b607211b2e9050df35679670dd (patch) | |
tree | 75b7f9cb72253065eb034bcddfdd64295c34d2ba /src/mainboard/asus | |
parent | 611a5f821d74f3bdddfb7d3954b4d7381a3f2788 (diff) | |
download | coreboot-993bc7098c8ac6b607211b2e9050df35679670dd.tar.xz |
amdfam10 boards: Use smp_write_pci_intsrc()
Radically reduces line lengths and splits '(bus<<2) | INT'
to separate parameters.
Change-Id: I6c924a70d00a9139719f8078bbf1e4d04b576324
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/30739
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/mainboard/asus')
-rw-r--r-- | src/mainboard/asus/kfsn4-dre/mptable.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mainboard/asus/kfsn4-dre/mptable.c b/src/mainboard/asus/kfsn4-dre/mptable.c index 387baa4f25..69ea301d15 100644 --- a/src/mainboard/asus/kfsn4-dre/mptable.c +++ b/src/mainboard/asus/kfsn4-dre/mptable.c @@ -111,28 +111,28 @@ static void *smp_write_config_table(void *v) mptable_add_isa_interrupts(mc, bus_isa, apicid_ck804, 0); // Onboard ck804 smbus - smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL | MP_IRQ_POLARITY_LOW, - bus_ck804[0], ((sbdn + 1) << 2) | 1, apicid_ck804, + smp_write_pci_intsrc(mc, mp_INT, + bus_ck804[0], sbdn + 1, 1, apicid_ck804, 0xa); // Onboard ck804 USB 1.1 - smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL | MP_IRQ_POLARITY_LOW, - bus_ck804[0], ((sbdn + 2) << 2) | 0, apicid_ck804, + smp_write_pci_intsrc(mc, mp_INT, + bus_ck804[0], sbdn + 2, 0, apicid_ck804, 0x15); // Onboard ck804 USB 2 - smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL | MP_IRQ_POLARITY_LOW, - bus_ck804[0], ((sbdn + 2) << 2) | 1, apicid_ck804, + smp_write_pci_intsrc(mc, mp_INT, + bus_ck804[0], sbdn + 2, 1, apicid_ck804, 0x14); // Onboard ck804 SATA 0 - smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL | MP_IRQ_POLARITY_LOW, - bus_ck804[0], ((sbdn + 7) << 2) | 0, apicid_ck804, + smp_write_pci_intsrc(mc, mp_INT, + bus_ck804[0], sbdn + 7, 0, apicid_ck804, 0x17); // Onboard ck804 SATA 1 - smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL | MP_IRQ_POLARITY_LOW, - bus_ck804[0], ((sbdn + 8) << 2) | 0, apicid_ck804, + smp_write_pci_intsrc(mc, mp_INT, + bus_ck804[0], sbdn + 8, 0, apicid_ck804, 0x16); /* Local Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# */ |