Get mptable OEM/product ID from kconfig variables.
[coreboot.git] / src / mainboard / tyan / s2895 / mptable.c
index 71c7f9045b95e87ae2b38835329d347c60d5f45e..a051b93861e4d3d0aa517f318c2646ae7dec374f 100644 (file)
@@ -5,7 +5,6 @@
 #include <stdint.h>
 #include <cpu/amd/amdk8_sysconf.h>
 
-extern  unsigned char bus_isa;
 extern  unsigned char bus_ck804_0; //1
 extern  unsigned char bus_ck804_1; //2
 extern  unsigned char bus_ck804_2; //3
@@ -33,24 +32,18 @@ static void *smp_write_config_table(void *v)
 {
        struct mp_config_table *mc;
        unsigned sbdn;
-       unsigned char bus_num;
-       int i;
+       int i, bus_isa;
 
        mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN);
 
-       mptable_init(mc, "S2895       ", LAPIC_ADDR);
+       mptable_init(mc, LAPIC_ADDR);
 
        smp_write_processors(mc);
 
        get_bus_conf();
        sbdn = sysconf.sbdn;
 
-/*Bus:         Bus ID  Type*/
-       /* define bus and isa numbers */
-       for(bus_num = 0; bus_num < bus_isa; bus_num++) {
-               smp_write_bus(mc, bus_num, "PCI   ");
-       }
-       smp_write_bus(mc, bus_isa, "ISA   ");
+       mptable_write_buses(mc, NULL, &bus_isa);
 
 /*I/O APICs:   APIC ID Version State           Address*/
        {