Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions Platform/Xiaomi/sm8150/nabu.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
!include Platform/Qualcomm/sm8150/sm8150.dsc

[BuildOptions.common]
GCC:*_*_AARCH64_CC_FLAGS = -DMEMMAP_XIAOMI_HACKS=1 -DENABLE_SIMPLE_INIT -DENABLE_LINUX_SIMPLE_MASS_STORAGE -DENABLE_LINUX_UTILS
GCC:*_*_AARCH64_CC_FLAGS = -DENABLE_PUS3 -DMEMMAP_XIAOMI_HACKS=1 -DENABLE_SIMPLE_INIT -DENABLE_LINUX_SIMPLE_MASS_STORAGE -DENABLE_LINUX_UTILS

[PcdsFixedAtBuild.common]
gQcomTokenSpaceGuid.PcdMipiFrameBufferWidth|1600
Expand All @@ -33,4 +33,15 @@
gsm8150PkgTokenSpaceGuid.PcdSmbiosProcessorModel|"Snapdragon (TM) 860 @ 2.96 GHz"

gQcomTokenSpaceGuid.PcdHallSensorPin|9
gQcomTokenSpaceGuid.PcdHallSensorActiveLow|TRUE
gQcomTokenSpaceGuid.PcdHallSensorActiveLow|TRUE

# Produce the highest video mode in Shell and UiApp
[PcdsDynamicDefault.common]
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoHorizontalResolution|0 # /8 = column
gEfiMdeModulePkgTokenSpaceGuid.PcdVideoVerticalResolution|0 #/19 = row
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoHorizontalResolution|0
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupVideoVerticalResolution|0
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupConOutRow|0
gEfiMdeModulePkgTokenSpaceGuid.PcdSetupConOutColumn|0
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow|0
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn|0
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ PlatformUpdateAcpiTables(VOID)
UINT16 SDFE = 0;
UINT16 SIDM = 0;
UINT32 SUFS = 0xFFFFFFFF;
#ifdef ENABLE_PUS3
UINT32 PUS3 = 0x1;
#else
UINT32 PUS3 = 0x0;
#endif
UINT32 SUS3 = 0xFFFFFFFF;
UINT32 *pSIDT = (UINT32 *)0x784130;
UINT32 SIDT = (*pSIDT & 0xFF00000) >> 20;
Expand Down