I have an X86 II board and need to develop an APP on UEFI to operate the touch screen. I see that the X86 II has interfaces (GPOI and I2C of connector CN14) reserved for the touch screen on the Braswell side, but I can't find the API of GPIO. How to operate GPIO under UEFI, such as configuring direction, level and interrupt?
Hello, To operate GPIO in UEFI, you need to access the UEFI GPIO protocol. First, check if the board manufacturer provides a GPIO protocol implementation. If not you may need to write your own protocol to interface with the GPIO pins on the Braswell side of the X86 II board.
In UEFI, GPIO operations can be performed using the EmbeddedGpio.h protocol. This protocol allows you to read and write to GPIO pins. You can find the relevant header file in the EDK2 repository, specifically. mcdvoice