Website


Ruvim P <ruvimpiholyuk@...>
 

Hello whoever this may concern,

I am new to UEFI and I have been playing with edk2 for a bit now. I eventually want to use UEFI to talk to a device via I2C communication protocol.

I am able to find what seems to be drivers for I2C but I cannot find any examples of anyone using them online. As I am just starting I was hoping that I could be lead to an example  program and additional documentation on I2C.

Thank you for your time and have a great day,

Ruvim


vincent zimmer
 

When the interfaces were defined for the UEFI PI specification, the
Intel Galileo platform was used to ensure that the bus driver & API's
worked with real hw. You can find some example code in
https://github.com/tianocore/edk2-platforms/tree/master/Platform/Intel/QuarkPlatformPkg.
Vincent

On Thu, Jun 23, 2022 at 2:33 PM Ruvim P <ruvimpiholyuk@...> wrote:

Hello whoever this may concern,

I am new to UEFI and I have been playing with edk2 for a bit now. I eventually want to use UEFI to talk to a device via I2C communication protocol.

I am able to find what seems to be drivers for I2C but I cannot find any examples of anyone using them online. As I am just starting I was hoping that I could be lead to an example program and additional documentation on I2C.

Thank you for your time and have a great day,

Ruvim





ruvimpiholyuk@...
 

Thank you for your reply, Vincent! I searched the link you posted, and I could not find an example of someone using an I2c bus to write/receive data in their main. Just seeing a simple example would go a long way.

Thank you for your time and have a great day!