From 6169baea01fd246b21e5ebc2a85b4fccdec3e5bd Mon Sep 17 00:00:00 2001 From: AKAsaliza <33549290+AKAsaliza@users.noreply.github.com> Date: Tue, 30 Apr 2024 11:22:20 +0900 Subject: [PATCH] rebuild for LG mh2lm5G --- .../LG/sm8150/AcpiTables/mh2lm5g/DSDT.aml | Bin 384628 -> 385339 bytes Platform/LG/sm8150/mh2lm5g.dsc | 6 +++--- Platform/LG/sm8150/mh2lm5g.fdf.inc | 6 +++--- .../MsPlatformDevicesLib.c | 3 +++ 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/Platform/LG/sm8150/AcpiTables/mh2lm5g/DSDT.aml b/Platform/LG/sm8150/AcpiTables/mh2lm5g/DSDT.aml index acf1b12f9cda135d12c9f0a8d3fed77052f70fd9..a531f189e18766fe6c9d80b586a58c9694f75b5c 100644 GIT binary patch delta 1916 zcmcIlTWlLe6rEYmuGechsn>S=Xoy-Rfl!I~5!-1VO0wSdOR-}UJ58bnwxBwq6$+?v zP{B~AX_W+2l~$2DrD+vP^Mgb_s(iSJN{xsFUkJY1A1ZayG+$ktICExcw3z*)^!hXY|^~K8_TZjPw+}=S9Cs}fe9Kbh| ztg9SPW_-MwNGg`+>s1LJ;IB2Y_9U zuZHs`Sf@I6PF0dQU^l6`yad*T#?7CYJBIGxdikuJ_X{lj2?!=$9?Rt|hy5X+8b3S% z_#-2kw7I2`Ka$Ffn?JGe(R4O%PFPkRa=nbty5cs*ptO0+I1C$x%#nzc2fQ4M`^2G@ zPx)utQ}HOUL{e%#7*PE_e=y+l_W;Z8OlS}U^A9VHrW+7!ZkQf~+LNcMk&0%0cC(aC zD_~v9$}&#}arkwEI6URSm+mu7oA(BOtp)$rDNZ!j z=?z2SOGdHbuZpOdi&>!^v6@kTI^+X8>7{CExR7+rR9wX=EwO6L;eexEN0jxM|(!Vf+|QwGUs#^GD&xS(Gy z%B@_xg$|yxFLXn7G?O-v%O8tdm;KNz+VJf`wxjaL)9e~7cg9Z@3Nw)t#n}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tKgN>_-`=F6Z@VG%ApRGW#5Pa}&Er?h*SE LMAq6P_F>I diff --git a/Platform/LG/sm8150/mh2lm5g.dsc b/Platform/LG/sm8150/mh2lm5g.dsc index 93ecfd363..b56f0454a 100644 --- a/Platform/LG/sm8150/mh2lm5g.dsc +++ b/Platform/LG/sm8150/mh2lm5g.dsc @@ -9,17 +9,17 @@ BUILD_TARGETS = DEBUG|RELEASE SKUID_IDENTIFIER = DEFAULT FLASH_DEFINITION = Platform/Qualcomm/sm8150/sm8150.fdf - DEVICE_DXE_FV_COMPONENTS = Platform/LG/sm8150/mh2lm.fdf.inc + DEVICE_DXE_FV_COMPONENTS = Platform/LG/sm8150/mh2lm5g.fdf.inc !include Platform/Qualcomm/sm8150/sm8150.dsc [BuildOptions.common] - GCC:*_*_AARCH64_CC_FLAGS = -DENABLE_SIMPLE_INIT -DMEMMAP_LG_HACKS + GCC:*_*_AARCH64_CC_FLAGS = -DPLST_FIX -DMEMMAP_LG_HACKS -DHAS_MLVM [PcdsFixedAtBuild.common] gQcomTokenSpaceGuid.PcdMipiFrameBufferWidth|1080 gQcomTokenSpaceGuid.PcdMipiFrameBufferHeight|2340 - gQcomTokenSpaceGuid.PcdMipiFrameBufferAddress|0x9D200000 + gQcomTokenSpaceGuid.PcdMipiFrameBufferAddress|0x9C000000 # Simple Init gSimpleInitTokenSpaceGuid.PcdGuiDefaultDPI|355 diff --git a/Platform/LG/sm8150/mh2lm5g.fdf.inc b/Platform/LG/sm8150/mh2lm5g.fdf.inc index 0d0966ecb..79b0019ca 100644 --- a/Platform/LG/sm8150/mh2lm5g.fdf.inc +++ b/Platform/LG/sm8150/mh2lm5g.fdf.inc @@ -2,13 +2,13 @@ FILE DRIVER = 8e9bd160-b184-11df-94e2-0800200c9a66 { SECTION DXE_DEPEX = Platform/EFI_Binaries/Drivers/sm8150/DALSys/DALSys.depex - SECTION PE32 = Platform/EFI_Binaries/Drivers/Devices/mh2lm/DALSys/DALSys.efi + SECTION PE32 = Platform/EFI_Binaries/Drivers/Devices/mh2lm5g/DALSys/DALSys.efi SECTION UI = "DALSys" } FILE DRIVER = 5bd181db-0487-4f1a-ae73-820e165611b3 { SECTION DXE_DEPEX = Platform/EFI_Binaries/Drivers/sm8150/ButtonsDxe/ButtonsDxe.depex - SECTION PE32 = Platform/EFI_Binaries/Drivers/Devices/mh2lm/ButtonsDxe/ButtonsDxe.efi + SECTION PE32 = Platform/EFI_Binaries/Drivers/Devices/mh2lm5g/ButtonsDxe/ButtonsDxe.efi SECTION UI = "ButtonsDxe" } @@ -28,7 +28,7 @@ FILE DRIVER = 11faed4c-b21f-4d88-8e48-c4c28a1e50df { FILE FREEFORM = 7E374E25-8E01-4FEE-87F2-390C23C606CD { # Customized DSDT - SECTION RAW = Platform/LG/sm8150/AcpiTables/mh2lm/DSDT.aml + SECTION RAW = Platform/LG/sm8150/AcpiTables/mh2lm5g/DSDT.aml # Common Tables SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/APIC.aml # SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/BERT.aml diff --git a/Silicon/Qualcomm/sm8150/Library/MsPlatformDevicesLib/MsPlatformDevicesLib.c b/Silicon/Qualcomm/sm8150/Library/MsPlatformDevicesLib/MsPlatformDevicesLib.c index a7fc5516a..c0f60304d 100644 --- a/Silicon/Qualcomm/sm8150/Library/MsPlatformDevicesLib/MsPlatformDevicesLib.c +++ b/Silicon/Qualcomm/sm8150/Library/MsPlatformDevicesLib/MsPlatformDevicesLib.c @@ -165,7 +165,10 @@ PlatformUpdateAcpiTables(VOID) UpdateNameAslCode(SIGNATURE_32('S', 'U', 'S', '3'), &SUS3, 4); UpdateNameAslCode(SIGNATURE_32('S', 'I', 'D', 'T'), &SIDT, 4); UpdateNameAslCode(SIGNATURE_32('S', 'O', 'S', 'N'), &SOSN, 8); +#ifdef PLST_FIX + #else UpdateNameAslCode(SIGNATURE_32('P', 'L', 'S', 'T'), &PLST, 4); +#endif UpdateNameAslCode(SIGNATURE_32('R', 'M', 'T', 'B'), &RMTB, 4); UpdateNameAslCode(SIGNATURE_32('R', 'M', 'T', 'X'), &RMTX, 4); UpdateNameAslCode(SIGNATURE_32('R', 'F', 'M', 'B'), &RFMB, 4);