diff --git a/src/mainboard/emulation/qemu-i386/Makefile b/src/mainboard/emulation/qemu-i386/Makefile index e0cdb5c757..bb12d4dc96 100644 --- a/src/mainboard/emulation/qemu-i386/Makefile +++ b/src/mainboard/emulation/qemu-i386/Makefile @@ -4,3 +4,9 @@ obj-y = mainboard.o irq_tables.o setup_before_car.o core-$(COMPRESSORS) += compressors + +mainboard.o: dtc.h + +dtc.h: dts + dtc -O lb dts > $@ + diff --git a/src/mainboard/emulation/qemu-i386/dts b/src/mainboard/emulation/qemu-i386/dts new file mode 100644 index 0000000000..f14ada765b --- /dev/null +++ b/src/mainboard/emulation/qemu-i386/dts @@ -0,0 +1,50 @@ +/{ + model = "qemu"; + #address-cells = <1>; + #size-cells = <1>; + compatible = "emulation-i386,qemu"; + cpus { + #address-cells = <1>; + #size-cells = <0>; + + emulation,qemu-i386@0{ + name = "emulation,qemu-i386"; + device_type = "cpu"; + clock-frequency = <5f5e1000>; + timebase-frequency = <1FCA055>; + linux,boot-cpu; + reg = <0>; + i-cache-size = <2000>; + d-cache-size = <2000>; + }; + }; + + memory@0 { + device_type = "memory"; + reg = <00000000 20000000>; + }; + + /* the I/O stuff */ + northbridge,intel,440bx{ + associated-cpu = <&/cpus/emulation,qemu-i386@0>; + southbridge,intel,piix4{ + superio,nsc,sucks{ + uart@0{ + enabled=<1>; + }; + }; + }; + }; + + chosen { + bootargs = "root=/dev/sda2"; + linux,platform = <00000600>; + linux,stdout-path="/dev/ttyS0"; + }; + options { + normal="normal"; + fallback="fallback"; + }; + + +};