【QCM6125】UEFI操作GPIO

【问题描述】:
UEFI阶段控制GPIO
【方案】:
1、bootable/bootloader/edk2/QcomModulePkg/Application/LinuxLoader/LinuxLoader.inf增加gEfiTLMMProtocolGuid

diff --git a/bootable/bootloader/edk2/QcomModulePkg/Application/LinuxLoader/LinuxLoader.inf b/bootable/bootloader/edk2/QcomModulePkg/Application/LinuxLoader/LinuxLoader.inf
index 0fb29b7..d8d76c9 100644
--- a/bootable/bootloader/edk2/QcomModulePkg/Application/LinuxLoader/LinuxLoader.inf
+++ b/bootable/bootloader/edk2/QcomModulePkg/Application/LinuxLoader/LinuxLoader.inf
@@ -110,6 +110,7 @@
 	gEfiResetReasonProtocolGuid
 	gQcomRngProtocolGuid
 	gQcomDisplayUtilsProtocolGuid
+	gEfiTLMMProtocolGuid
 
 [FixedPcd]
         gQcomTokenSpaceGuid.EnableMdtpSupport

2、bootable/bootloader/edk2/QcomModulePkg/Library/BootLib/UpdateCmdLine.c操作GPIO

diff --git a/bootable/bootloader/edk2/QcomModulePkg/Library/BootLib/UpdateCmdLine.c b/bootable/bootloader/edk2/QcomModulePkg/Library/BootLib/UpdateCmdLine.c
index ab88a5c..9038c62 100644
--- a/bootable/bootloader/edk2/QcomModulePkg/Library/BootLib/UpdateCmdLine.c
+++ b/bootable/bootloader/edk2/QcomModulePkg/Library/BootLib/UpdateCmdLine.c
@@ -40,6 +40,7 @@
 #

你可能感兴趣的:(gpio)