Skip to content

Commit

Permalink
Add support for Oneplus 6T 10GB RAM version
Browse files Browse the repository at this point in the history
Signed-off-by: Xilin Wu <strongtz@yeah.net>
  • Loading branch information
strongtz committed Dec 19, 2021
1 parent 2e6ab02 commit ef6f0c7
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- enchilada-8g
- fajita
- fajita-8g
- fajita-10g
- polaris
- polaris-8g
- beryllium
Expand Down
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DEVICES=(
enchilada-8g
fajita
fajita-8g
fajita-10g
polaris
polaris-8g
beryllium
Expand Down
Binary file added device_specific/fajita-10g.dtb
Binary file not shown.
29 changes: 29 additions & 0 deletions sdm845Pkg/Devices/fajita-10g.dsc
Original file line number Diff line number Diff line change
@@ -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"
6 changes: 6 additions & 0 deletions sdm845Pkg/Include/Configuration/DeviceMemoryMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ef6f0c7

Please sign in to comment.