mirror of
https://github.com/edk2-porting/edk2-rk3588.git
synced 2025-12-18 11:39:51 +08:00
Misc fixes after EDK2 update
Signed-off-by: Mario Bălănică <mariobalanica02@gmail.com>
This commit is contained in:
@@ -272,14 +272,13 @@ CHAR8 *mEnclosureInfoType3Strings[] = {
|
||||
SMBIOS data definition TYPE4 Processor Information
|
||||
************************************************************************/
|
||||
SMBIOS_TABLE_TYPE4 mProcessorInfoType4 = {
|
||||
{ EFI_SMBIOS_TYPE_PROCESSOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE4), 0 },
|
||||
{ EFI_SMBIOS_TYPE_PROCESSOR_INFORMATION, sizeof (SMBIOS_TABLE_TYPE4), 0 },
|
||||
1, // Socket String
|
||||
CentralProcessor, // ProcessorType; ///< The enumeration value from PROCESSOR_TYPE_DATA.
|
||||
ProcessorFamilyIndicatorFamily2, // ProcessorFamily; ///< The enumeration value from PROCESSOR_FAMILY2_DATA.
|
||||
2, // ProcessorManufacture String;
|
||||
{ // ProcessorId;
|
||||
{ 0x00, 0x00, 0x00, 0x00},
|
||||
{ 0x00, 0x00, 0x00, 0x00}
|
||||
0x00, 0x00, 0x00, 0x00
|
||||
},
|
||||
3, // ProcessorVersion String;
|
||||
{ // Voltage;
|
||||
@@ -344,8 +343,8 @@ SMBIOS_TABLE_TYPE7 mCacheInfoType7_L1I = {
|
||||
// Enabled/Disabled :1 (Enabled)
|
||||
// Operational Mode :2 (Unknown)
|
||||
// Reserved :6
|
||||
0x0020, // Maximum Size (32KB)
|
||||
0x0020, // Install Size (32KB)
|
||||
{ 0x0020, 0 }, // Maximum Size (32KB)
|
||||
{ 0x0020, 0 }, // Install Size (32KB)
|
||||
{ // Supported SRAM Type
|
||||
0, // Other :1
|
||||
0, // Unknown :1
|
||||
@@ -387,8 +386,8 @@ SMBIOS_TABLE_TYPE7 mCacheInfoType7_L1D = {
|
||||
// Enabled/Disabled :1 (Enabled)
|
||||
// Operational Mode :2 (WB)
|
||||
// Reserved :6
|
||||
0x0020, // Maximum Size (32KB)
|
||||
0x0020, // Install Size (32KB)
|
||||
{ 0x0020, 0 }, // Maximum Size (32KB)
|
||||
{ 0x0020, 0 }, // Install Size (32KB)
|
||||
{ // Supported SRAM Type
|
||||
0, // Other :1
|
||||
0, // Unknown :1
|
||||
@@ -430,8 +429,8 @@ SMBIOS_TABLE_TYPE7 mCacheInfoType7_L2 = {
|
||||
// Enabled/Disabled :1 (Enabled)
|
||||
// Operational Mode :2 (WB)
|
||||
// Reserved :6
|
||||
0x0200, // Maximum Size (512KB)
|
||||
0x0200, // Install Size (512KB)
|
||||
{ 0x0200, 0 }, // Maximum Size (512KB)
|
||||
{ 0x0200, 0 }, // Install Size (512KB)
|
||||
{ // Supported SRAM Type
|
||||
0, // Other :1
|
||||
0, // Unknown :1
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
[Packages]
|
||||
EmbeddedPkg/EmbeddedPkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
MdePkg/MdePkg.dec
|
||||
Silicon/Rockchip/Library/Pcf8563RealTimeClockLib/Pcf8563RealTimeClockLib.dec
|
||||
|
||||
|
||||
@@ -53,9 +53,6 @@
|
||||
UefiLib
|
||||
UefiRuntimeServicesTableLib
|
||||
|
||||
[FeaturePcd]
|
||||
gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport
|
||||
|
||||
[FixedPcd]
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
ArmPkg/ArmPkg.dec
|
||||
ArmPlatformPkg/ArmPlatformPkg.dec
|
||||
Silicon/Rockchip/RK3588/RK3588.dec
|
||||
UefiCpuPkg/UefiCpuPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
DebugLib
|
||||
|
||||
@@ -26,11 +26,11 @@
|
||||
ArmPlatformPkg/ArmPlatformPkg.dec
|
||||
Silicon/Rockchip/RK3588/RK3588.dec
|
||||
Silicon/Rockchip/RockchipPkg.dec
|
||||
UefiCpuPkg/UefiCpuPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
ArmLib
|
||||
BaseVariableLib
|
||||
FdtLib
|
||||
IoLib
|
||||
MemoryAllocationLib
|
||||
PcdLib
|
||||
|
||||
@@ -137,11 +137,6 @@
|
||||
# SCMI Mailbox Transport Layer
|
||||
ArmMtlLib|Silicon/Rockchip/Library/RkMtlLib/RkMtlLib.inf
|
||||
|
||||
# SMC/HVC dependencies
|
||||
ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
|
||||
ArmHvcLib|ArmPkg/Library/ArmHvcLib/ArmHvcLib.inf
|
||||
ArmMonitorLib|ArmPkg/Library/ArmMonitorLib/ArmMonitorLib.inf
|
||||
|
||||
#
|
||||
# Secure Boot dependencies
|
||||
#
|
||||
@@ -178,9 +173,11 @@
|
||||
CacheMaintenanceLib|ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf
|
||||
DefaultExceptionHandlerLib|ArmPkg/Library/DefaultExceptionHandlerLib/DefaultExceptionHandlerLib.inf
|
||||
CpuExceptionHandlerLib|ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.inf
|
||||
ArmSmcLib|ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf
|
||||
ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
|
||||
ArmSmcLib|MdePkg/Library/ArmSmcLib/ArmSmcLib.inf
|
||||
ArmMonitorLib|ArmPkg/Library/ArmMonitorLib/ArmMonitorLib.inf
|
||||
ArmMmuLib|UefiCpuPkg/Library/ArmMmuLib/ArmMmuBaseLib.inf
|
||||
ArmLib|ArmPkg/Library/ArmLib/ArmBaseLib.inf
|
||||
ArmTransferListLib|ArmPkg/Library/ArmTransferListLib/ArmTransferListLib.inf
|
||||
TimerLib|ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.inf
|
||||
|
||||
# UART libraries
|
||||
@@ -206,7 +203,7 @@
|
||||
SemihostLib|ArmPkg/Library/SemihostLib/SemihostLib.inf
|
||||
|
||||
# Flattened Device Tree (FDT) access library
|
||||
FdtLib|EmbeddedPkg/Library/FdtLib/FdtLib.inf
|
||||
FdtLib|MdePkg/Library/BaseFdtLib/BaseFdtLib.inf
|
||||
|
||||
VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf
|
||||
VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
|
||||
@@ -294,10 +291,8 @@
|
||||
|
||||
PeiServicesTablePointerLib|ArmPkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
|
||||
|
||||
## Fixed compile error after upgrade to 14.10
|
||||
PlatformPeiLib|ArmPlatformPkg/PlatformPei/PlatformPeiLib.inf
|
||||
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
||||
ArmMmuLib|ArmPkg/Library/ArmMmuLib/ArmMmuPeiLib.inf
|
||||
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
||||
|
||||
[LibraryClasses.common.DXE_CORE]
|
||||
@@ -444,7 +439,6 @@ FspiLib|Silicon/Rockchip/Library/FspiLib/FspiLib.inf
|
||||
# Set timer interrupt to be triggerred in 1ms to avoid missing
|
||||
# serial terminal input characters.
|
||||
gEmbeddedTokenSpaceGuid.PcdTimerPeriod|10000
|
||||
gArmTokenSpaceGuid.PcdVFPEnabled|1
|
||||
gEfiMdePkgTokenSpaceGuid.PcdUartDefaultReceiveFifoDepth|32
|
||||
|
||||
#
|
||||
@@ -488,6 +482,7 @@ FspiLib|Silicon/Rockchip/Library/FspiLib/FspiLib.inf
|
||||
ArmPlatformPkg/PeilessSec/PeilessSec.inf {
|
||||
<LibraryClasses>
|
||||
NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
|
||||
PeilessSecMeasureLib|SecurityPkg/Library/PeilessSecMeasureLib/PeilessSecMeasureLibNull.inf
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
|
||||
#include <Protocol/ComponentName.h>
|
||||
#include <Protocol/ComponentName2.h>
|
||||
#include <Protocol/DeviceIo.h>
|
||||
#include <Protocol/DriverBinding.h>
|
||||
#include <Protocol/SdMmcPassThru.h>
|
||||
|
||||
|
||||
@@ -991,11 +991,11 @@ DwMmcCreateTrb (
|
||||
IN EFI_EVENT Event
|
||||
)
|
||||
{
|
||||
DW_MMC_HC_TRB *Trb;
|
||||
EFI_STATUS Status;
|
||||
EFI_TPL OldTpl;
|
||||
EFI_IO_OPERATION_TYPE Flag;
|
||||
UINTN MapLength;
|
||||
DW_MMC_HC_TRB *Trb;
|
||||
EFI_STATUS Status;
|
||||
EFI_TPL OldTpl;
|
||||
DMA_MAP_OPERATION MapOperation;
|
||||
UINTN MapLength;
|
||||
|
||||
Trb = AllocateZeroPool (sizeof (DW_MMC_HC_TRB));
|
||||
if (Trb == NULL) {
|
||||
@@ -1035,9 +1035,9 @@ DwMmcCreateTrb (
|
||||
Trb->Mode = SdMmcPioMode;
|
||||
} else {
|
||||
if (Trb->Read) {
|
||||
Flag = EfiBusMasterWrite;
|
||||
MapOperation = MapOperationBusMasterWrite;
|
||||
} else {
|
||||
Flag = EfiBusMasterRead;
|
||||
MapOperation = MapOperationBusMasterRead;
|
||||
}
|
||||
|
||||
if (Private->Slot[Trb->Slot].CardType == SdCardType) {
|
||||
@@ -1046,7 +1046,7 @@ DwMmcCreateTrb (
|
||||
Trb->UseFifo = FALSE;
|
||||
if (Trb->DataLen) {
|
||||
MapLength = Trb->DataLen;
|
||||
Status = DmaMap (Flag, Trb->Data, &MapLength, &Trb->DataPhy, &Trb->DataMap);
|
||||
Status = DmaMap (MapOperation, Trb->Data, &MapLength, &Trb->DataPhy, &Trb->DataMap);
|
||||
|
||||
/* Status = DevIo->Map (
|
||||
DevIo,
|
||||
|
||||
Reference in New Issue
Block a user