由于客户有需求,需要拉高pm8008上面的GPIO3,并且要在XBL中拉高。而pm8008是由I2C控制的。
1.首先我们确定代码在这个文件中添加即可
BOOT.XF.4.1/boot_images/QcomPkg/SocPkg/AgattiPkg/Library/PmicLib/core/la/pm_core.c
@@ -56,6 +56,9 @@ when who what, where, why
#include "Protocol/EFIPmicQg.h"
#include "Protocol/EFIPmicVreg.h"
#include "Protocol/EFIPmicPwrOn.h"
+#include "i2c_api.h"
+#include <Protocol/EFII2C.h>
+#include <Protocol/EFITlmm.h>
#include "pm_comm.h"
#include "CoreVerify.h"
@@ -63,6 +66,10 @@ when who what, where, why
#include "npa_resource.h"
#include "pm_sdam.h"
+#include "boot_logger.h"
+#include "DebugLib.h"
+#include "busywait.h"
+
/*===============================&#