Add support for Oneplus 6T 10GB RAM version

Signed-off-by: Xilin Wu <strongtz@yeah.net>
This commit is contained in:
Xilin Wu 2021-12-19 20:13:46 +08:00
parent 2e6ab02dde
commit ef6f0c772f
5 changed files with 37 additions and 0 deletions

View File

@ -27,6 +27,7 @@ jobs:
- enchilada-8g
- fajita
- fajita-8g
- fajita-10g
- polaris
- polaris-8g
- beryllium

View File

@ -7,6 +7,7 @@ DEVICES=(
enchilada-8g
fajita
fajita-8g
fajita-10g
polaris
polaris-8g
beryllium

Binary file not shown.

View File

@ -0,0 +1,29 @@
[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
# Enable A/B Slot Environment
DEFINE AB_SLOTS_SUPPORT = TRUE
!include sdm845Pkg/sdm845Pkg.dsc
[BuildOptions.common]
GCC:*_*_AARCH64_CC_FLAGS = -DMEMORY_10G=1 -DAB_SLOTS_SUPPORT=1 -DDISPLAY_DPI=440 -DENABLE_SIMPLE_INIT
[PcdsFixedAtBuild.common]
# System Memory (10GB)
gArmTokenSpaceGuid.PcdSystemMemorySize|0x260000000
gsdm845PkgTokenSpaceGuid.PcdMipiFrameBufferWidth|1080
gsdm845PkgTokenSpaceGuid.PcdMipiFrameBufferHeight|2340
gsdm845PkgTokenSpaceGuid.PcdDeviceVendor|"Oneplus"
gsdm845PkgTokenSpaceGuid.PcdDeviceProduct|"6T"
gsdm845PkgTokenSpaceGuid.PcdDeviceCodeName|"fajita"

View File

@ -170,11 +170,17 @@ static ARM_MEMORY_REGION_DESCRIPTOR_EX gDeviceMemoryDescriptorEx[] = {
{0x180000000, 0xFC8A0000, EFI_RESOURCE_SYSTEM_MEMORY,
SYSTEM_MEMORY_RESOURCE_ATTR_CAPABILITIES,
ARM_MEMORY_REGION_ATTRIBUTE_WRITE_BACK, AddMem, EfiConventionalMemory},
#else
#ifdef MEMORY_10G
{0xA0000000, 0x254AC0000, EFI_RESOURCE_SYSTEM_MEMORY,
SYSTEM_MEMORY_RESOURCE_ATTR_CAPABILITIES,
ARM_MEMORY_REGION_ATTRIBUTE_WRITE_BACK, AddMem, EfiConventionalMemory},
#else
{0xA0000000, 0x15AE00000, EFI_RESOURCE_SYSTEM_MEMORY,
SYSTEM_MEMORY_RESOURCE_ATTR_CAPABILITIES,
ARM_MEMORY_REGION_ATTRIBUTE_WRITE_BACK, AddMem, EfiConventionalMemory},
#endif
#endif
#endif