Hello,
according to QEMU mailing list [1] and source code [2] QEMU contain i2c.
I tried to setup i2c tmp105 sensor using [3] guide and read it under
OVMF. Qemu monitor command 'info qtree' show:
    bus: pci.0
      type PCI
      dev: PIIX4_PM, id ""
        smb_io_base = 45312 (0xb100)
        disable_s3 = 0 (0)
        disable_s4 = 0 (0)
        s4_val = 2 (0x2)
        acpi-pci-hotplug-with-bridge-support = true
        addr = 01.3
        romfile = ""
        rombar = 1 (0x1)
        multifunction = false
        command_serr_enable = true
        class Bridge, addr 00:01.3, pci id 8086:7113 (sub 1af4:1100)
        bus: i2c
          type i2c-bus
          dev: tmp105, id "sensor"
            gpio-out 1
            address = 80 (0x50)
          dev: smbus-eeprom, id ""
            address = 87 (0x57)

So if I understand correctly i2c-bus should be on BDF: 0/1/3, pci command from
UEFI Shell show that this device have all zeros in BAR. Am I missing something ?

Is there any driver required to access this device ? If not can you point me to
knowledge that help me with implementing this kind of support ?

Regards,
Piotr Król

[1] https://lists.gnu.org/archive/html/qemu-devel/2007-05/msg00192.html
[2] https://github.com/qemu/qemu/tree/master/hw/i2c
[3] https://lists.gnu.org/archive/html/qemu-devel/2014-02/msg02681.html

------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to