* How to access I2C IO?
@ 2022-08-11 7:24 gordontcp
0 siblings, 0 replies; only message in thread
From: gordontcp @ 2022-08-11 7:24 UTC (permalink / raw)
To: devel
[-- Attachment #1: Type: text/plain, Size: 1082 bytes --]
Hi all,
I set following command to load i2cdxe.efi:
load I2cDxe.efi.
Then, I set ‘drivers’ in UEFI shell, and the number of devices connected to this driver is 0.
After I loaded I2cDXe.efi, it showed the messages that I2cBusDriverSupported and I2cHostDriverSupported returned the values EFI_UNSUPPORTED.
I2cBusDriverSupported (
IN EFI_DRIVER_BINDING_PROTOCOL *This,
IN EFI_HANDLE Controller,
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
)
{..
// Determine if the I2c Enumerate Protocol is available
//
Status = gBS->OpenProtocol (
Controller,
&gEfiI2cEnumerateProtocolGuid,
(VOID **)&I2cEnumerate,
This->DriverBindingHandle,
Controller,
EFI_OPEN_PROTOCOL_BY_DRIVER
);
My questions are
1. Before loading I2cDXE.efi, should I need to set acpi table or other table?
2. If I want to add an interrupt pin for the I2c device, how to set it?
3. Is there any full sample code for I2c device driver?
4. How to modify I2CDXE to load driver successfully?
Any suggestion is highly appreciated!
Thanks!
[-- Attachment #2: Type: text/html, Size: 10288 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-11 7:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-11 7:24 How to access I2C IO? gordontcp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox