Skip to content

Commit

Permalink
Add basic support for Galaxy S23
Browse files Browse the repository at this point in the history
  • Loading branch information
J0SH1X committed Jan 1, 2024
1 parent d1da0f3 commit 982284b
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
Binary file added Platform/Samsung/sm8550/FdtBlob_compat/dm1q.dtb
Binary file not shown.
28 changes: 28 additions & 0 deletions Platform/Samsung/sm8550/dm1q.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[Defines]
VENDOR_NAME = Samsung
PLATFORM_NAME = dm1q
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/sm8550/sm8550.fdf
DEVICE_DXE_FV_COMPONENTS = Platform/Samsung/sm8550/dm1q.fdf.inc

!include Platform/Qualcomm/sm8550/sm8550.dsc

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

[PcdsFixedAtBuild.common]
gQcomTokenSpaceGuid.PcdMipiFrameBufferWidth|1080
gQcomTokenSpaceGuid.PcdMipiFrameBufferHeight|2340

# Simple Init
gSimpleInitTokenSpaceGuid.PcdGuiDefaultDPI|480

gRenegadePkgTokenSpaceGuid.PcdDeviceVendor|"Samsung"
gRenegadePkgTokenSpaceGuid.PcdDeviceProduct|"Galaxy S23"
gRenegadePkgTokenSpaceGuid.PcdDeviceCodeName|"dm1q"
24 changes: 24 additions & 0 deletions Platform/Samsung/sm8550/dm1q.fdf.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// per-device BSP DXEs
# FILE DRIVER = 5bd181db-0487-4f1a-ae73-820e165611b3 {
# SECTION DXE_DEPEX = Platform/EFI_Binaries/Drivers/Devices/dm1q/ButtonsDxe/ButtonsDxe.depex
# SECTION PE32 = Platform/EFI_Binaries/Drivers/Devices/dm1q/ButtonsDxe/ButtonsDxe.efi
# SECTION UI = "ButtonsDxe"
# }

// ACPI Tables
# FILE FREEFORM = 7E374E25-8E01-4FEE-87F2-390C23C606CD {
# SECTION RAW = Silicon/Qualcomm/sm8550/AcpiTables/DBG2.aml
# SECTION RAW = Platform/Samsung/sm8550/AcpiTables/dm1q/DSDT.AML
# SECTION RAW = Silicon/Qualcomm/sm8550/AcpiTables/MADT.aml
# SECTION RAW = Silicon/Qualcomm/sm8550/AcpiTables/FADT.aml
# SECTION RAW = Silicon/Qualcomm/sm8550/AcpiTables/GTDT.aml
# SECTION RAW = Silicon/Qualcomm/sm8550/AcpiTables/IORT.aml
# SECTION RAW = Silicon/Qualcomm/sm8550/AcpiTables/PPTT.aml
# SECTION UI = "AcpiTables"
# }

// Mainline device tree blob
# FILE FREEFORM = 25462CDA-221F-47DF-AC1D-259CFAA4E326 {
# SECTION RAW = Platform/Qualcomm/sm8550/FdtBlob/sm8550-generic-msd.dtb
# }

7 changes: 7 additions & 0 deletions configs/devices/dm1q.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SOC_PLATFORM="SM8550"
VENDOR_NAME="Samsung"
PLATFORM_NAME="dm1q"

# mkbootimg config
BOOTIMG_OS_PATCH_LEVEL="2023-12"
BOOTIMG_OS_VERSION=14.0.0

0 comments on commit 982284b

Please sign in to comment.