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! -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#92374): https://edk2.groups.io/g/devel/message/92374 Mute This Topic: https://groups.io/mt/92953832/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-