diff --git a/Platform/Oneplus/sm8150/FdtBlob/sm8150-oneplus-guacamoleb.dtb b/Platform/Oneplus/sm8150/FdtBlob/sm8150-oneplus-hotdogb.dtb similarity index 100% rename from Platform/Oneplus/sm8150/FdtBlob/sm8150-oneplus-guacamoleb.dtb rename to Platform/Oneplus/sm8150/FdtBlob/sm8150-oneplus-hotdogb.dtb diff --git a/Platform/Oneplus/sm8150/FdtBlob_compat/hotdogb.dtb b/Platform/Oneplus/sm8150/FdtBlob_compat/hotdogb.dtb new file mode 100644 index 000000000..690af529c Binary files /dev/null and b/Platform/Oneplus/sm8150/FdtBlob_compat/hotdogb.dtb differ diff --git a/Platform/Oneplus/sm8150/guacamoleb.fdf.inc b/Platform/Oneplus/sm8150/guacamoleb.fdf.inc index e9d2da74d..d0a8fa15b 100644 --- a/Platform/Oneplus/sm8150/guacamoleb.fdf.inc +++ b/Platform/Oneplus/sm8150/guacamoleb.fdf.inc @@ -41,5 +41,5 @@ FILE FREEFORM = 7E374E25-8E01-4FEE-87F2-390C23C606CD { // Mainline device tree blob (use from sm-8150 mainlane - https://gitlab.com/sm8150-mainline/linux/-/blob/sm8150/5.17/arch/arm64/boot/dts/qcom/sm8150-oneplus-hotdogb.dts) FILE FREEFORM = 25462CDA-221F-47DF-AC1D-259CFAA4E326 { - SECTION RAW = Platform/Oneplus/sm8150/FdtBlob/sm8150-oneplus-guacamoleb.dtb + SECTION RAW = Platform/Oneplus/sm8150/FdtBlob/sm8150-oneplus-hotdogb.dtb } diff --git a/Platform/Oneplus/sm8150/hotdogb.dsc b/Platform/Oneplus/sm8150/hotdogb.dsc new file mode 100755 index 000000000..db490b1e3 --- /dev/null +++ b/Platform/Oneplus/sm8150/hotdogb.dsc @@ -0,0 +1,32 @@ +[Defines] + VENDOR_NAME = Oneplus + PLATFORM_NAME = hotdogb + 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/Oneplus/sm8150/hotdogb.fdf.inc + # Enable A/B Slot Environment + AB_SLOTS_SUPPORT = TRUE + +!include Platform/Qualcomm/sm8150/sm8150.dsc + +[BuildOptions.common] + GCC:*_*_AARCH64_CC_FLAGS = -DAB_SLOTS_SUPPORT=1 -DENABLE_SIMPLE_INIT -DENABLE_LINUX_SIMPLE_MASS_STORAGE + +[PcdsFixedAtBuild.common] + gQcomTokenSpaceGuid.PcdMipiFrameBufferWidth|1080 + gQcomTokenSpaceGuid.PcdMipiFrameBufferHeight|2400 + + # Simple Init + gSimpleInitTokenSpaceGuid.PcdGuiDefaultDPI|401 + + gRenegadePkgTokenSpaceGuid.PcdDeviceVendor|"OnePlus" + gRenegadePkgTokenSpaceGuid.PcdDeviceProduct|"7T" + gRenegadePkgTokenSpaceGuid.PcdDeviceCodeName|"hotdogb" + + gsm8150PkgTokenSpaceGuid.PcdSmbiosProcessorModel|"Snapdragon (TM) 855 Plus @ 2.96 GHz" diff --git a/Platform/Oneplus/sm8150/hotdogb.fdf.inc b/Platform/Oneplus/sm8150/hotdogb.fdf.inc new file mode 100644 index 000000000..d0a8fa15b --- /dev/null +++ b/Platform/Oneplus/sm8150/hotdogb.fdf.inc @@ -0,0 +1,45 @@ +// per-device BSP DXEs (use from op7 pro) +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/guacamole/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/guacamole/ButtonsDxe/ButtonsDxe.efi + SECTION UI = "ButtonsDxe" +} + +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/Devices/guacamole/UsbPwrCtrlDxe/UsbPwrCtrlDxe.efi + SECTION UI = "UsbPwrCtrlDxe" +} + +// ACPI Tables (use from op7 pro) +FILE FREEFORM = 7E374E25-8E01-4FEE-87F2-390C23C606CD { +# Customized DSDT + SECTION RAW = Platform/Oneplus/sm8150/AcpiTables/guacamole/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 (use from sm-8150 mainlane - https://gitlab.com/sm8150-mainline/linux/-/blob/sm8150/5.17/arch/arm64/boot/dts/qcom/sm8150-oneplus-hotdogb.dts) +FILE FREEFORM = 25462CDA-221F-47DF-AC1D-259CFAA4E326 { + SECTION RAW = Platform/Oneplus/sm8150/FdtBlob/sm8150-oneplus-hotdogb.dtb +} diff --git a/configs/devices/hotdogb.conf b/configs/devices/hotdogb.conf new file mode 100755 index 000000000..1e4ade851 --- /dev/null +++ b/configs/devices/hotdogb.conf @@ -0,0 +1,7 @@ +SOC_PLATFORM="SM8150" +VENDOR_NAME="Oneplus" +PLATFORM_NAME="hotdogb" + +# mkbootimg config +BOOTIMG_OS_PATCH_LEVEL="2022-08" +BOOTIMG_OS_VERSION=12.0.0