temporarily add 8G memory support
authorBigfootACA <bigfoot@classfun.cn>
星期天, 22 Aug 2021 05:26:05 +0000 (13:26 +0800)
committerBigfootACA <bigfoot@classfun.cn>
星期天, 22 Aug 2021 05:26:05 +0000 (13:26 +0800)
need to use automatic detection

Signed-off-by: BigfootACA <bigfoot@classfun.cn>
.github/workflows/main.yml
build.sh
device_specific/fajita-8g.dtb [new file with mode: 0644]
device_specific/polaris-8g.dtb [new file with mode: 0644]
sdm845Pkg/Devices/fajita-8g.dsc [new file with mode: 0644]
sdm845Pkg/Devices/polaris-8g.dsc [new file with mode: 0644]

index 074a5c9cfb21edb03faf619efaee9b85e0003f79..2b8ba8efd5fae28f9b718286e6de719446c89c8e 100644 (file)
@@ -24,7 +24,9 @@ jobs:
           - dipper
           - enchilada
           - fajita
+          - fajita-8g
           - polaris
+          - polaris-8g
           - beryllium
           - perseus
           - nx616j
index c4e174a029be7f953f967ed9c762175901e0cbf6..1fa039a9d30bc549140bc82ae8e3872fc240a421 100755 (executable)
--- 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 (file)
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 (file)
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 (file)
index 0000000..1200818
--- /dev/null
@@ -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 (file)
index 0000000..5625c7c
--- /dev/null
@@ -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