diff --git a/mainboard/emulation/qemu-x86/dts b/mainboard/emulation/qemu-x86/dts index 74b8c7701f..056de21c21 100644 --- a/mainboard/emulation/qemu-x86/dts +++ b/mainboard/emulation/qemu-x86/dts @@ -30,8 +30,11 @@ bus@0 { pci@0,0 { }; - pci@1,0 { + pci@1,1 { /config/("southbridge/intel/i82371eb/ide"); + subsystem_vendor = "0x15ad"; + subsystem_device = "0x1976"; + on_mainboard; }; }; }; diff --git a/util/dtc/flattree.c b/util/dtc/flattree.c index a7a14101fd..af45b487a7 100644 --- a/util/dtc/flattree.c +++ b/util/dtc/flattree.c @@ -622,6 +622,12 @@ static void coreboot_emit_special(FILE *e, struct node *tree) if (streq(prop->name, "on_mainboard")){ fprintf(f, "\t.on_mainboard = 1,\n"); } + if (streq(prop->name, "subsystem_vendor")){ + fprintf(f, "\t.subsystem_vendor = %s,\n", prop->val.val); + } + if (streq(prop->name, "subsystem_device")){ + fprintf(f, "\t.subsystem_device = %s,\n", prop->val.val); + } if (streq(prop->name, "enabled")){ enabled = 1; }