Skip to content
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

Raven initial #1

Merged
merged 6 commits into from
Jun 4, 2023
Merged
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 added Platform/Google/tensor/FdtBlob_compat/raven.dtb
Binary file not shown.
Empty file.
35 changes: 35 additions & 0 deletions Platform/Google/tensor/raven.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[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|0xfd90c000 #to be fixed, set here because god knows what's the real address
gQcomTokenSpaceGuid.PcdMipiFrameBufferWidth|1440
gQcomTokenSpaceGuid.PcdMipiFrameBufferHeight|3120

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

# Simple Init
gSimpleInitTokenSpaceGuid.PcdGuiDefaultDPI|440

#uncomment section underneath and comment out the above section to use full display, including the notch
#gQcomTokenSpaceGuid.PcdMipiFrameBufferPixelBpp|32|UINT32|0x0000a403
#gQcomTokenSpaceGuid.PcdMipiFrameBufferVisibleWidth|1080|UINT32|0x0000a404
#gQcomTokenSpaceGuid.PcdMipiFrameBufferVisibleHeight|2246|UINT32|0x0000a405

Empty file.
74 changes: 74 additions & 0 deletions Platform/Google/tensor/tensor.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
## @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.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|0x90600000 # UEFI Stack
gEmbeddedTokenSpaceGuid.PcdPrePiStackSize|0x00040000 # 256K stack
#gEmbeddedTokenSpaceGuid.PcdPrePiCpuIoSize|44

gQcomTokenSpaceGuid.PcdUefiMemPoolBase|0x97400000 # DXE Heap base address
gQcomTokenSpaceGuid.PcdUefiMemPoolSize|0x1fe00000 # UefiMemorySize, DXE heap size

gQcomTokenSpaceGuid.PcdMipiFrameBufferAddress|0xfd90c000

gArmPlatformTokenSpaceGuid.PcdCoreCount|8
gArmPlatformTokenSpaceGuid.PcdClusterCount|3

#
# SimpleInit
#
gSimpleInitTokenSpaceGuid.PcdDeviceTreeStore|0x83300000
gSimpleInitTokenSpaceGuid.PcdLoggerdUseConsole|FALSE

[LibraryClasses.common]

# Ported from SurfaceDuoPkg
AslUpdateLib|Silicon/Google/GooglePkg/Library/DxeAslUpdateLib/DxeAslUpdateLib.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

[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