Skip to content

Commit

Permalink
Merge pull request #347 from Ost268/master
Browse files Browse the repository at this point in the history
add initial for Galaxy Fold(winner)
  • Loading branch information
BigfootACA authored Oct 1, 2023
2 parents b782745 + a6f0501 commit 97df41e
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 1 deletion.
Binary file not shown.
Binary file not shown.
30 changes: 30 additions & 0 deletions Platform/Samsung/sm8150/winner.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[Defines]
VENDOR_NAME = Samsung
PLATFORM_NAME = winner
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 = Platform/Qualcomm/sm8150/sm8150.fdf
DEVICE_DXE_FV_COMPONENTS = Platform/Samsung/sm8150/winner.fdf.inc

!include Platform/Qualcomm/sm8150/sm8150.dsc

[BuildOptions.common]
GCC:*_*_AARCH64_CC_FLAGS = -DENABLE_SIMPLE_INIT -DENABLE_LINUX_SIMPLE_MASS_STORAGE

[PcdsFixedAtBuild.common]

gQcomTokenSpaceGuid.PcdMipiFrameBufferWidth|2152
gQcomTokenSpaceGuid.PcdMipiFrameBufferHeight|1536
gQcomTokenSpaceGuid.PcdMipiFrameBufferAddress|0x9c400000

# Simple Init
gSimpleInitTokenSpaceGuid.PcdGuiDefaultDPI|394

gRenegadePkgTokenSpaceGuid.PcdDeviceVendor|"Samsung"
gRenegadePkgTokenSpaceGuid.PcdDeviceProduct|"Galaxy Fold"
gRenegadePkgTokenSpaceGuid.PcdDeviceCodeName|"winner"
51 changes: 51 additions & 0 deletions Platform/Samsung/sm8150/winner.fdf.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// per-device BSP DXEs
FILE DRIVER = 8e9bd160-b184-11df-94e2-0800200c9a66 {
SECTION DXE_DEPEX = Platform/EFI_Binaries/Drivers/sm8150/DALSys/DALSys.depex
SECTION PE32 = Platform/EFI_Binaries/Drivers/Devices/winner/DALSys/DALSys.efi
SECTION UI = "DALSys"
}

FILE DRIVER = 5bd181db-0487-4f1a-ae73-820e165611b3 {
SECTION DXE_DEPEX = Platform/EFI_Binaries/Drivers/sm8150/ButtonsDxe/ButtonsDxe.depex
SECTION PE32 = Platform/EFI_Binaries/Drivers/Devices/winner/ButtonsDxe/ButtonsDxe.efi
SECTION UI = "ButtonsDxe"
}
FILE DRIVER = f10f76db-42c1-533f-34a8-69be24653110 {
SECTION DXE_DEPEX = Platform/EFI_Binaries/Drivers/sm8150/SdccDxe/SdccDxe.depex
SECTION PE32 = Platform/EFI_Binaries/Drivers/sm8150/SdccDxe/SdccDxe.efi
SECTION UI = "SdccDxe"
}

FILE DRIVER = 11faed4c-b21f-4d88-8e48-c4c28a1e50df {
SECTION DXE_DEPEX = Platform/EFI_Binaries/Drivers/sm8150/WP_Binaries/UsbPwrCtrlDxe/UsbPwrCtrlDxe.depex
SECTION PE32 = Platform/EFI_Binaries/Drivers/sm8150/WP_Binaries/UsbPwrCtrlDxe/UsbPwrCtrlDxe.efi
SECTION UI = "UsbPwrCtrlDxe"
}

// ACPI Tables
FILE FREEFORM = 7E374E25-8E01-4FEE-87F2-390C23C606CD {
# Customized DSDT
SECTION RAW = Platform/Samsung/sm8150/AcpiTables/winner/DSDT.aml
# Common Tables
SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/APIC.aml
# SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/BERT.aml
# SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/BGRT.aml
SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/CSRT.aml
SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/DBG2.aml
SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/FACP.aml
# SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/FPDT.aml
SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/GTDT.aml
SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/IORT.aml
SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/MCFG.aml
# SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/MSDM.aml
SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/PPTT.aml
SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/TPM2.aml
# SECTION RAW = Silicon/Qualcomm/sm8150/AcpiTables/BuiltIn/XSDT.aml
SECTION UI = "AcpiTables"
}

// Mainline device tree blob
//FILE FREEFORM = 25462CDA-221F-47DF-AC1D-259CFAA4E326 {
//SECTION RAW = Platform/Samsung/sm8150/FdtBlob/winner/sm8150-Samsung-winner.dtb
//}

Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,4 @@ static ARM_MEMORY_REGION_DESCRIPTOR_EX gDeviceMemoryDescriptorEx[] = {
ARM_MEMORY_REGION_DESCRIPTOR_EX *GetPlatformMemoryMap()
{
return gDeviceMemoryDescriptorEx;
}
}
7 changes: 7 additions & 0 deletions configs/devices/winner.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SOC_PLATFORM="SM8150"
VENDOR_NAME="Samsung"
PLATFORM_NAME="winner"

# mkbootimg config
BOOTIMG_OS_PATCH_LEVEL="2023-08"
BOOTIMG_OS_VERSION=12.0.0

0 comments on commit 97df41e

Please sign in to comment.