I2c driver on Up-Extreme

Options
Ruvim
Ruvim New Member Posts: 1

Hello, I am new to Uefi and I am attempting to write a program with Edk2 to talk to the I2c bus on the Up-Extreme. To do this I am executing .efi files in the UEFI shell and I am noticing that LocateHandleProtocol cannot find any I2c handles in the handle data base.

Does anyone know if Up-Extreme has a UEFI I2c driver?
Also, how do I access the I2c bus in the UEFI shell?

Answers

  • garyw
    garyw New Member, Moderator, AAEON Posts: 82 admin
    Options

    @Ruvim
    you have to know how to control I2C controller based on Intel and write by yourself.
    you can refer Linux Kernel I2C driver for Intel to know how to control it.

  • cuongdv17
    cuongdv17 New Member Posts: 3
    Options

    Hi @Ruvim,
    I'm also working on the Up Xtreme board and facing the same issue as you.
    I added the I2C DXE driver to my project (UEFI_APPLICATION), InitializeI2c was successful but I2cHostDriverStart and I2cHostDriverSupported returned "UNSUPPORTED".
    I also try to call LocateHandleBuffer but the return status is "NOT FOUND", DeviceHandleCount and DeviceHandleBuffer equal 0.
    If you can resolve the issue on your side or have any information please share them with me.
    Thank you very much!