public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Using i2c from UEFI driver or application
@ 2017-04-12 19:44 Rebecca Cran
  2017-04-12 21:03 ` Kinney, Michael D
  0 siblings, 1 reply; 2+ messages in thread
From: Rebecca Cran @ 2017-04-12 19:44 UTC (permalink / raw)
  To: edk2-devel@lists.01.org

I'm writing an application (it may also end up being a DXE driver) that 
needs to access the i2c bus. The issue I'm seeing is that the i2c/SMBus 
access protocols etc. seem to be from the PI spec, and my understanding 
is that drivers or applications aren't supposed to use PI-specific 
functionality.  Is my understanding correct, or is there some other way 
for drivers/applications to access i2c devices?

-- 
Rebecca


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Using i2c from UEFI driver or application
  2017-04-12 19:44 Using i2c from UEFI driver or application Rebecca Cran
@ 2017-04-12 21:03 ` Kinney, Michael D
  0 siblings, 0 replies; 2+ messages in thread
From: Kinney, Michael D @ 2017-04-12 21:03 UTC (permalink / raw)
  To: Rebecca Cran, edk2-devel@lists.01.org, Kinney, Michael D

Rebecca,

PI conformant drivers can use PI spec Protocols/PPIs such as I2C.

A UEFI Driver or UEFI Application can use PI Protocols, but the 
UEFI Driver/App must look for the PI Protocol and fail gracefully,
provide reduced functionality, or provide an alternate implementation
of the feature if the PI Protocol is not found.

Thanks,

Mike


> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Rebecca
> Cran
> Sent: Wednesday, April 12, 2017 12:44 PM
> To: edk2-devel@lists.01.org
> Subject: [edk2] Using i2c from UEFI driver or application
> 
> I'm writing an application (it may also end up being a DXE driver) that
> needs to access the i2c bus. The issue I'm seeing is that the i2c/SMBus
> access protocols etc. seem to be from the PI spec, and my understanding
> is that drivers or applications aren't supposed to use PI-specific
> functionality.  Is my understanding correct, or is there some other way
> for drivers/applications to access i2c devices?
> 
> --
> Rebecca
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-12 21:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-12 19:44 Using i2c from UEFI driver or application Rebecca Cran
2017-04-12 21:03 ` Kinney, Michael D

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox