Skip to content

Commit

Permalink
Initial sagit (Xiaomi Mi 6) support
Browse files Browse the repository at this point in the history
  • Loading branch information
BigfootACA committed Oct 10, 2022
1 parent 87e83e1 commit 7cb6496
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
Binary file added Platform/Oneplus/msm8998/FdtBlob_compat/sagit.dtb
Binary file not shown.
27 changes: 27 additions & 0 deletions Platform/Oneplus/msm8998/sagit.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
[Defines]
PLATFORM_NAME = sagit
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/msm8998/msm8998.fdf
DEVICE_DXE_FV_COMPONENTS = Platform/Oneplus/msm8998/sagit.fdf.inc

!include Platform/Qualcomm/msm8998/msm8998.dsc

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

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

# Simple Init
gSimpleInitTokenSpaceGuid.PcdGuiDefaultDPI|300

gRenegadePkgTokenSpaceGuid.PcdDeviceVendor|"Xiaomi"
gRenegadePkgTokenSpaceGuid.PcdDeviceProduct|"Mi 6"
gRenegadePkgTokenSpaceGuid.PcdDeviceCodeName|"sagit"
24 changes: 24 additions & 0 deletions Platform/Oneplus/msm8998/sagit.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/sagit/ButtonsDxe/ButtonsDxe.depex
# SECTION PE32 = Platform/EFI_Binaries/sagit/ButtonsDxe/ButtonsDxe.efi
# SECTION UI = "ButtonsDxe"
# }

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

// Mainline device tree blob
#FILE FREEFORM = 25462CDA-221F-47DF-AC1D-259CFAA4E326 {
# SECTION RAW = Platform/Oneplus/msm8998/FdtBlob/msm8998-xiaomi-sagit.dtb
#}

8 changes: 8 additions & 0 deletions configs/sagit.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
DSC_FILE="Platform/Oneplus/msm8998/sagit.dsc"
DTB_FILE="Platform/Oneplus/msm8998/FdtBlob_compat/sagit.dtb"
SOC_PLATFORM="MSM8998"

# mkbootimg config
BOOTIMG_OS_PATCH_LEVEL="2022-08"
BOOTIMG_OS_VERSION=12.0.0
# LineageOS 19 config

0 comments on commit 7cb6496

Please sign in to comment.