From: BigfootACA Date: 星期天, 22 Aug 2021 05:26:05 +0000 (+0800) Subject: temporarily add 8G memory support X-Git-Tag: v1.0.3~16 X-Git-Url: https://git.renegade-project.org/?a=commitdiff_plain;h=0afdf1d167bfe3925465d550b0fe474bfdfb6e8b;p=edk2-sdm845.git temporarily add 8G memory support need to use automatic detection Signed-off-by: BigfootACA --- diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 074a5c9..2b8ba8e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,7 +24,9 @@ jobs: - dipper - enchilada - fajita + - fajita-8g - polaris + - polaris-8g - beryllium - perseus - nx616j diff --git a/build.sh b/build.sh index c4e174a..1fa039a 100755 --- a/build.sh +++ b/build.sh @@ -5,7 +5,9 @@ DEVICES=( dipper enchilada fajita + fajita-8g polaris + polaris-8g beryllium perseus nx616j diff --git a/device_specific/fajita-8g.dtb b/device_specific/fajita-8g.dtb new file mode 100644 index 0000000..6e262ae Binary files /dev/null and b/device_specific/fajita-8g.dtb differ diff --git a/device_specific/polaris-8g.dtb b/device_specific/polaris-8g.dtb new file mode 100644 index 0000000..aa10daf Binary files /dev/null and b/device_specific/polaris-8g.dtb differ diff --git a/sdm845Pkg/Devices/fajita-8g.dsc b/sdm845Pkg/Devices/fajita-8g.dsc new file mode 100644 index 0000000..1200818 --- /dev/null +++ b/sdm845Pkg/Devices/fajita-8g.dsc @@ -0,0 +1,22 @@ +[Defines] + PLATFORM_NAME = sdm845Pkg + PLATFORM_GUID = 28f1a3bf-193a-47e3-a7b9-5a435eaab2ee + PLATFORM_VERSION = 0.1 + DSC_SPECIFICATION = 0x00010019 + OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME) + SUPPORTED_ARCHITECTURES = AARCH64 + BUILD_TARGETS = DEBUG|RELEASE + SKUID_IDENTIFIER = DEFAULT + FLASH_DEFINITION = sdm845Pkg/Devices/fajita.fdf + +!include sdm845Pkg/sdm845Pkg.dsc + +[BuildOptions.common] + GCC:*_*_AARCH64_CC_FLAGS = -DMEMORY_8G=1 + +[PcdsFixedAtBuild.common] + # System Memory (7GB) + gArmTokenSpaceGuid.PcdSystemMemorySize|0x1E0000000 + + gsdm845PkgTokenSpaceGuid.PcdMipiFrameBufferWidth|1080 + gsdm845PkgTokenSpaceGuid.PcdMipiFrameBufferHeight|2340 diff --git a/sdm845Pkg/Devices/polaris-8g.dsc b/sdm845Pkg/Devices/polaris-8g.dsc new file mode 100644 index 0000000..5625c7c --- /dev/null +++ b/sdm845Pkg/Devices/polaris-8g.dsc @@ -0,0 +1,22 @@ +[Defines] + PLATFORM_NAME = sdm845Pkg + PLATFORM_GUID = 28f1a3bf-193a-47e3-a7b9-5a435eaab2ee + PLATFORM_VERSION = 0.1 + DSC_SPECIFICATION = 0x00010019 + OUTPUT_DIRECTORY = Build/$(PLATFORM_NAME) + SUPPORTED_ARCHITECTURES = AARCH64 + BUILD_TARGETS = DEBUG|RELEASE + SKUID_IDENTIFIER = DEFAULT + FLASH_DEFINITION = sdm845Pkg/Devices/polaris.fdf + +!include sdm845Pkg/sdm845Pkg.dsc + +[BuildOptions.common] + GCC:*_*_AARCH64_CC_FLAGS = -DXIAOMI_PIL_FIXED=1 -DMEMORY_8G=1 + +[PcdsFixedAtBuild.common] + # System Memory (7GB) + gArmTokenSpaceGuid.PcdSystemMemorySize|0x1E0000000 + + gsdm845PkgTokenSpaceGuid.PcdMipiFrameBufferWidth|1080 + gsdm845PkgTokenSpaceGuid.PcdMipiFrameBufferHeight|2160