Patchwork [3/7] Add M2V mptable

login
register
about
Submitter Tobias Diedrich
Date 2010-11-10 19:21:28
Message ID <20101110192128.GA17514@yumi.tdiedrich.de>
Download mbox | patch
Permalink /patch/2301/
State Accepted
Commit r6060
Headers show

Comments

Tobias Diedrich - 2010-11-10 19:21:28
Uwe Hermann wrote:
> Thanks, r6059.

Just a minute before I had sent a slightly updated version. :)
Here is the diff:

Use the new mptable_write_buses()

Signed-off-by: Tobias Diedrich <ranma+coreboot@tdiedrich.de>

---
Uwe Hermann - 2010-11-10 22:10:25
On Wed, Nov 10, 2010 at 08:21:28PM +0100, Tobias Diedrich wrote:
> Use the new mptable_write_buses()
> 
> Signed-off-by: Tobias Diedrich <ranma+coreboot@tdiedrich.de>

Thanks, r6060.


Uwe.

Patch

Index: src/mainboard/asus/m2v/mptable.c
===================================================================
--- src/mainboard/asus/m2v/mptable.c	(revision 6059)
+++ src/mainboard/asus/m2v/mptable.c	(working copy)
@@ -38,25 +38,15 @@ 
 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);
+	mptable_write_buses(mc, NULL, &bus_isa);
 
-	/* 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   ");
-
 	/* I/O APICs:	APIC ID	Version	State		Address */
 	smp_write_ioapic(mc, VT8237R_APIC_ID, 0x3, IO_APIC_ADDR);
 	smp_write_ioapic(mc, K8T890_APIC_ID, 0x3, K8T890_APIC_BASE);