fw-cfg.txt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. * QEMU Firmware Configuration bindings for ARM
  2. QEMU's arm-softmmu and aarch64-softmmu emulation / virtualization targets
  3. provide the following Firmware Configuration interface on the "virt" machine
  4. type:
  5. - A write-only, 16-bit wide selector (or control) register,
  6. - a read-write, 64-bit wide data register.
  7. QEMU exposes the control and data register to ARM guests as memory mapped
  8. registers; their location is communicated to the guest's UEFI firmware in the
  9. DTB that QEMU places at the bottom of the guest's DRAM.
  10. The authoritative guest-side hardware interface documentation to the fw_cfg
  11. device can be found in "docs/specs/fw_cfg.txt" in the QEMU source tree.
  12. Required properties:
  13. - compatible: "qemu,fw-cfg-mmio".
  14. - reg: the MMIO region used by the device.
  15. * Bytes 0x0 to 0x7 cover the data register.
  16. * Bytes 0x8 to 0x9 cover the selector register.
  17. * Further registers may be appended to the region in case of future interface
  18. revisions / feature bits.
  19. Example:
  20. / {
  21. #size-cells = <0x2>;
  22. #address-cells = <0x2>;
  23. fw-cfg@9020000 {
  24. compatible = "qemu,fw-cfg-mmio";
  25. reg = <0x0 0x9020000 0x0 0xa>;
  26. };
  27. };