Skip to content

Commit

Permalink
Update SMBIOS and share it between boards
Browse files Browse the repository at this point in the history
The serial number and SoC model are now read from OTP memory.

CPU clock is read from SCMI but it may need some tweaking.
  • Loading branch information
mariobalanica committed Apr 4, 2023
1 parent 9172e8a commit d8fb4f1
Show file tree
Hide file tree
Showing 10 changed files with 461 additions and 1,226 deletions.
11 changes: 10 additions & 1 deletion edk2-platforms/Platform/OrangePi/OrangePi5/OrangePi5.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@
UefiScsiLib|MdePkg/Library/UefiScsiLib/UefiScsiLib.inf
LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf

# OTP Library
OtpLib|Silicon/Rockchip/RK3588/Library/OtpLib/OtpLib.inf

#
# Custom libraries
Expand Down Expand Up @@ -137,6 +139,13 @@
gArmPlatformTokenSpaceGuid.PcdCoreCount|8
gArmPlatformTokenSpaceGuid.PcdClusterCount|1

# SMBIOS platform config
gRockchipTokenSpaceGuid.PcdPlatformName|"Orange Pi 5"
gRockchipTokenSpaceGuid.PcdPlatformVendorName|"Orange Pi"
gRockchipTokenSpaceGuid.PcdFamilyName|"Orange Pi 5"
gRockchipTokenSpaceGuid.PcdProductUrl|"http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5.html"
gRockchipTokenSpaceGuid.PcdMemoryVendorName|"TBD"

# I2C
gRockchipTokenSpaceGuid.PcdI2cSlaveAddresses|{ 0x51 }
gRockchipTokenSpaceGuid.PcdI2cSlaveBuses|{ 0x2 }
Expand Down Expand Up @@ -450,7 +459,7 @@
#
# SMBIOS Support
#
Platform/OrangePi/OrangePi5/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.inf
Silicon/Rockchip/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.inf
MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf

#
Expand Down
2 changes: 1 addition & 1 deletion edk2-platforms/Platform/OrangePi/OrangePi5/OrangePi5.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ READ_LOCK_STATUS = TRUE
#
# SMBIOS Support
#
INF Platform/OrangePi/OrangePi5/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.inf
INF Silicon/Rockchip/Drivers/PlatformSmbiosDxe/PlatformSmbiosDxe.inf
INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf

#
Expand Down
Loading

0 comments on commit d8fb4f1

Please sign in to comment.