Skip to content

pantah #416

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 88 additions & 0 deletions Platform/Google/tensor/Apriori.fdf.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
APRIORI DXE {

#
# PI DXE Drivers producing Architectural Protocols (EFI Services)
#
INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
INF MdeModulePkg/Core/Dxe/DxeMain.inf
INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf

INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf

#FILE DRIVER = 9A5163E7-5C29-453F-825C-837A46A81E15 {
# SECTION DXE_DEPEX = Platform/EFI_Binaries/Drivers/sdm845/SerialDxe/SerialDxe.depex
# SECTION PE32 = Platform/EFI_Binaries/Drivers/sdm845/SerialDxe/SerialDxe.efi
# SECTION UI = "SerialDxe"
#}



INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf



// Used to speed up booting. must be loaded after ClockDxe
#INF Platform/RenegadePkg/Drivers/SetCPUFreqDxe/SetCPUFreqDxe.inf

INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf

#FILE DRIVER = 0d35cd8e-97ea-4f9a-96af-0f0d89f76567 {
# SECTION DXE_DEPEX = Platform/EFI_Binaries/Drivers/sdm845/UFSDxe/UFSDxe.depex
# SECTION PE32 = Platform/EFI_Binaries/Drivers/sdm845/UFSDxe/UFSDxe.efi
# SECTION UI = "UFSDxe"
#}

INF FatPkg/EnhancedFatDxe/Fat.inf
INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
INF MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf

#FILE DRIVER = 2a7b4bef-80cd-49e1-b473-374ba4d673fc {
# SECTION DXE_DEPEX = Platform/EFI_Binaries/Drivers/sdm845/SPMI/SPMI.depex
# SECTION PE32 = Platform/EFI_Binaries/Drivers/sdm845/SPMI/SPMI.efi
# SECTION UI = "SPMI"
#}

INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf

!if $(SECURE_BOOT_ENABLE) == TRUE
INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
INF SecurityPkg/VariableAuthenticated/SecureBootDefaultKeysDxe/SecureBootDefaultKeysDxe.inf
!endif

!if $(USE_SIMPLEFBDXE) == TRUE
INF SurfaceDuoFamilyPkg/Driver/SimpleFbDxe/SimpleFbDxe.inf
!endif

INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf

INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf



INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf


INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
INF MdeModulePkg/Bus/Usb/UsbMouseDxe/UsbMouseDxe.inf
INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf



# INF Silicon/Qualcomm/sdm845/Drivers/sdm845Dxe/sdm845Dxe.inf
}
Binary file not shown.
1 change: 1 addition & 0 deletions Platform/Google/tensor/FdtBlob_compat/panther.dtb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added Platform/Google/tensor/FdtBlob_compat/raven.dtb
Binary file not shown.
29 changes: 29 additions & 0 deletions Platform/Google/tensor/bluejay.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[Defines]
PLATFORM_NAME = bluejay
PLATFORM_GUID = 30ac5eb8-bec2-444f-b624-3f7e7c77d440
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/Google/tensor/tensor.fdf
DEVICE_DXE_FV_COMPONENTS = Platform/Google/tensor/bluejay.fdf.inc

!include Platform/Google/tensor/tensor.dsc

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

[PcdsFixedAtBuild.common]

gQcomTokenSpaceGuid.PcdMipiFrameBufferAddress|0xFAC00000
gQcomTokenSpaceGuid.PcdMipiFrameBufferWidth|1080
gQcomTokenSpaceGuid.PcdMipiFrameBufferHeight|2400

gRenegadePkgTokenSpaceGuid.PcdDeviceVendor|"Google"
gRenegadePkgTokenSpaceGuid.PcdDeviceProduct|"Pixel 6a"
gRenegadePkgTokenSpaceGuid.PcdDeviceCodeName|"bluejay"

# Simple Init
gSimpleInitTokenSpaceGuid.PcdGuiDefaultDPI|512
Empty file.
Empty file.
29 changes: 29 additions & 0 deletions Platform/Google/tensor/panther.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[Defines]
PLATFORM_NAME = panther
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/Google/tensor/tensor/tensor.fdf
DEVICE_DXE_FV_COMPONENTS = Platform/Google/tensor/panther.fdf.inc

!include Platform/Google/tensor/tensor.dsc

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

[PcdsFixedAtBuild.common]

gQcomTokenSpaceGuid.PcdMipiFrameBufferAddress|0xFAC00000
gQcomTokenSpaceGuid.PcdMipiFrameBufferWidth|1440
gQcomTokenSpaceGuid.PcdMipiFrameBufferHeight|3120

gRenegadePkgTokenSpaceGuid.PcdDeviceVendor|"Google"
gRenegadePkgTokenSpaceGuid.PcdDeviceProduct|"Pixel 7"
gRenegadePkgTokenSpaceGuid.PcdDeviceCodeName|"panther"

# Simple Init
gSimpleInitTokenSpaceGuid.PcdGuiDefaultDPI|512
Empty file.
29 changes: 29 additions & 0 deletions Platform/Google/tensor/raven.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[Defines]
PLATFORM_NAME = raven
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/Google/tensor/tensor.fdf
DEVICE_DXE_FV_COMPONENTS = Platform/Google/tensor/raven.fdf.inc

!include Platform/Google/tensor/tensor.dsc

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

[PcdsFixedAtBuild.common]

gQcomTokenSpaceGuid.PcdMipiFrameBufferAddress|0xFAC00000
gQcomTokenSpaceGuid.PcdMipiFrameBufferWidth|1440
gQcomTokenSpaceGuid.PcdMipiFrameBufferHeight|3120

gRenegadePkgTokenSpaceGuid.PcdDeviceVendor|"Google"
gRenegadePkgTokenSpaceGuid.PcdDeviceProduct|"Pixel 6 Pro"
gRenegadePkgTokenSpaceGuid.PcdDeviceCodeName|"raven"

# Simple Init
gSimpleInitTokenSpaceGuid.PcdGuiDefaultDPI|512
Empty file.
76 changes: 76 additions & 0 deletions Platform/Google/tensor/tensor.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
## @file
#
# Copyright (c) 2011-2015, ARM Limited. All rights reserved.
# Copyright (c) 2014, Linaro Limited. All rights reserved.
# Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.
# Copyright (c) 2018 - 2019, Bingxing Wang. All rights reserved.
# Copyright (c) 2022, Xilin Wu. All rights reserved.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##

################################################################################
#
# Defines Section - statements that will be processed to create a Makefile.
#
################################################################################

[Defines]
SOC_PLATFORM = tensor
USE_PHYSICAL_TIMER = TRUE

!include Silicon/Google/GooglePkg/GoogleCommonDsc.inc

[PcdsFixedAtBuild.common]
#gArmTokenSpaceGuid.PcdSystemMemoryBase|0x8AF000000 # Starting address
gArmTokenSpaceGuid.PcdSystemMemoryBase|0x80000000 # Starting address
gArmTokenSpaceGuid.PcdSystemMemorySize|0x0FDFA0000 # Limit to 4GB Size here

gArmTokenSpaceGuid.PcdCpuVectorBaseAddress|0xfd902000 # CPU Vectors
gArmTokenSpaceGuid.PcdArmArchTimerFreqInHz|24576000
gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum|19
gArmTokenSpaceGuid.PcdArmArchTimerIntrNum|20
gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum|27
gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum|26
gArmTokenSpaceGuid.PcdGicDistributorBase|0x10400000
gArmTokenSpaceGuid.PcdGicRedistributorsBase|0x10440000
gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase|25

gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiDefaultOemRevision|0x00000850
gEmbeddedTokenSpaceGuid.PcdPrePiStackBase|0xfa800000 # UEFI Stack
gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0x00040000 # 256K stack
#gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|44

gQcomTokenSpaceGuid.PcdUefiMemPoolBase|0x882000000 # DXE Heap base address
gQcomTokenSpaceGuid.PcdUefiMemPoolSize|0x2E000000 # UefiMemorySize, DXE heap size

gQcomTokenSpaceGuid.PcdMipiFrameBufferAddress|0xfd90c000

gArmPlatformTokenSpaceGuid.PcdCoreCount|8
gArmPlatformTokenSpaceGuid.PcdClusterCount|3

#
# SimpleInit
#
gSimpleInitTokenSpaceGuid.PcdDeviceTreeStore|0xe2500000 #random free space
gSimpleInitTokenSpaceGuid.PcdLoggerdUseConsole|FALSE

[LibraryClasses.common]

# Ported from SurfaceDuoPkg
AslUpdateLib|Silicon/Google/GooglePkg/Library/DxeAslUpdateLib/DxeAslUpdateLib.inf
KeypadDeviceImplLib|Silicon/Google/Tensor/Library/KeypadDeviceImplLib/KeypadDeviceImplLib.inf
PlatformMemoryMapLib|Silicon/Google/Tensor/Library/PlatformMemoryMapLib/PlatformMemoryMapLib.inf
PlatformPeiLib|Silicon/Google/Tensor/Library/PlatformPeiLib/PlatformPeiLib.inf
PlatformPrePiLib|Silicon/Google/Tensor/Library/PlatformPrePiLib/PlatformPrePiLib.inf
MsPlatformDevicesLib|Silicon/Google/Tensor/Library/MsPlatformDevicesLib/MsPlatformDevicesLib.inf
SOCSmbiosInfoLib|Silicon/Google/Tensor/Library/SOCSmbiosInfoLib/SOCSmbiosInfoLib.inf
ResetSystemLib|Silicon/Google/Tensor/Library/ResetSystemLib/ResetSystemLib.inf

[Components.common]
#
# OnePlus 6T A/B Slot Support
# Op6tSlotDxe and BootSlotDxe have the same goal, do not use them both at the same time in device fdf.
#
# GPLDrivers/Drivers/Op6tSlotDxe/Op6tSlotDxe.inf
Loading
Loading