summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Diedrich <ranma+coreboot@tdiedrich.de>2010-11-10 22:09:42 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-11-10 22:09:42 +0000
commit5f00e0c80072ba8cb42000a15e0eee202f4da20f (patch)
treea884bb91fec50d95f5edd73cbc4685df1f322c8e
parentca033311f9366830fd72b4f4fe9b3bb16f6fb176 (diff)
downloadcoreboot-5f00e0c80072ba8cb42000a15e0eee202f4da20f.tar.xz
Use the new mptable_write_buses() on the ASUS M2V.
Signed-off-by: Tobias Diedrich <ranma+coreboot@tdiedrich.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6060 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--src/mainboard/asus/m2v/mptable.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/mainboard/asus/m2v/mptable.c b/src/mainboard/asus/m2v/mptable.c
index f233465624..39efa0c96f 100644
--- a/src/mainboard/asus/m2v/mptable.c
+++ b/src/mainboard/asus/m2v/mptable.c
@@ -38,24 +38,14 @@ static void smp_write_intsrc_pci(struct mp_config_table *mc,
static void *smp_write_config_table(void *v)
{
struct mp_config_table *mc;
- int bus_isa = 42;
+ int bus_isa;
mc = (void*)(((char *)v) + SMP_FLOATING_TABLE_LEN);
mptable_init(mc, "M2V ", LAPIC_ADDR);
smp_write_processors(mc);
-
- /* Bus: Bus ID Type */
- smp_write_bus(mc, 0, "PCI "); /* root bus */
- smp_write_bus(mc, 1, "PCI "); /* agp? */
- smp_write_bus(mc, 2, "PCI "); /* pcie x16 */
- smp_write_bus(mc, 3, "PCI "); /* pcie x1 */
- smp_write_bus(mc, 4, "PCI "); /* pcie x1 */
- smp_write_bus(mc, 5, "PCI "); /* pcie x1 */
- smp_write_bus(mc, 6, "PCI "); /* azalia audio */
- smp_write_bus(mc, 7, "PCI "); /* pci */
- smp_write_bus(mc, bus_isa, "ISA ");
+ mptable_write_buses(mc, NULL, &bus_isa);
/* I/O APICs: APIC ID Version State Address */
smp_write_ioapic(mc, VT8237R_APIC_ID, 0x3, IO_APIC_ADDR);