Hi all,
I use the \MdeModulePkg\Bus\I2c\I2cDxe driver and load the driver with the 
following command:
load I2cDxe.efi
As a result, both I2cHostDriverSupported and I2cBusDriverSupported get the 
returned value Unsupported. The code is as follows:

I2cHostDriverSupported (
IN EFI_DRIVER_BINDING_PROTOCOL *This,
IN EFI_HANDLE Controller,
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
)
{
...
Status = gBS->OpenProtocol (
Controller,
&gEfiI2cBusConfigurationManagementProtocolGuid,
(VOID **)&I2cBusConfigurationManagement,
This->DriverBindingHandle,
Controller,
EFI_OPEN_PROTOCOL_BY_DRIVER
);
...

I2cBusDriverSupported (
IN EFI_DRIVER_BINDING_PROTOCOL *This,
IN EFI_HANDLE Controller,
IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
)
{
..
Status = gBS->OpenProtocol (
Controller,
&gEfiI2cEnumerateProtocolGuid,
(VOID**)&I2cEnumerate,
This->DriverBindingHandle,
Controller,
EFI_OPEN_PROTOCOL_BY_DRIVER
);

My system is as follows:

Platform: Minnowboard Max
pkg : edk2-platform\ Vlv2TbltDevicePkgX64

My questions are as follows:

* Before I2cHostDriverSupported, should I need to enable the host 
configuratoin, such as setting slave address or frequency? Is there a more 
complete example?
* For the Minnowboard platform, how to set I2cHostDriverSupported and 
I2cBusDriverSupported to get the return value of EFI_SUCCESS?

Any suggestion is highly appreciated!


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#93185): https://edk2.groups.io/g/devel/message/93185
Mute This Topic: https://groups.io/mt/93496214/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to