ArmPkg: Move ARM Platform drivers from ArmPkg/Drivers/ to ArmPlatformPkg/Drivers/
The idea is to keep ArmPkg responsible for the ARM architectural modules and ArmPlatformPkg the ARM development platform packages (with their respective drivers). ArmPlatformPkg: Reduce driver dependency on ArmPlatform.h - Move some driver definitions from C-Macro to PCD values - Unify PCD driver namespace git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11956 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -50,4 +50,7 @@
|
||||
[FixedPcd]
|
||||
gArmPlatformTokenSpaceGuid.PcdStandalone
|
||||
|
||||
gArmTokenSpaceGuid.PcdSystemMemoryBase
|
||||
gArmTokenSpaceGuid.PcdSystemMemorySize
|
||||
|
||||
gArmTokenSpaceGuid.PcdL2x0ControllerBase
|
||||
|
@@ -23,6 +23,8 @@
|
||||
#include <Drivers/PL301Axi.h>
|
||||
#include <Drivers/SP804Timer.h>
|
||||
|
||||
#include <ArmPlatform.h>
|
||||
|
||||
#define SerialPrint(txt) SerialPortWrite ((UINT8*)(txt), AsciiStrLen(txt)+1);
|
||||
|
||||
// DDR2 timings
|
||||
@@ -121,7 +123,7 @@ ArmPlatformBootRemapping (
|
||||
/**
|
||||
Initialize controllers that must setup in the normal world
|
||||
|
||||
This function is called by the ArmPlatformPkg/Pei or ArmPlatformPkg/Pei/PlatformPeim
|
||||
This function is called by the ArmPlatformPkg/PrePi or ArmPlatformPkg/PlatformPei
|
||||
in the PEI phase.
|
||||
|
||||
**/
|
||||
|
@@ -18,6 +18,8 @@
|
||||
#include <Library/IoLib.h>
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
|
||||
#include <ArmPlatform.h>
|
||||
|
||||
// Number of Virtual Memory Map Descriptors without a Logic Tile
|
||||
#define MAX_VIRTUAL_MEMORY_MAP_DESCRIPTORS 6
|
||||
|
||||
|
@@ -21,6 +21,8 @@
|
||||
|
||||
#include <Drivers/PL310L2Cache.h>
|
||||
|
||||
#include <ArmPlatform.h>
|
||||
|
||||
/**
|
||||
Initialize the Secure peripherals and memory regions
|
||||
|
||||
|
@@ -31,6 +31,7 @@
|
||||
|
||||
[LibraryClasses]
|
||||
BaseLib
|
||||
IoLib
|
||||
|
||||
[Guids]
|
||||
|
||||
|
@@ -195,7 +195,7 @@ LcdPlatformGetMaxMode (
|
||||
// This could be because the specific implementation of PL111 has certain limitations.
|
||||
|
||||
// Set the maximum mode allowed
|
||||
return (PcdGet32(PcdPL111MaxMode));
|
||||
return (PcdGet32(PcdPL111LcdMaxMode));
|
||||
}
|
||||
|
||||
EFI_STATUS
|
||||
@@ -221,7 +221,7 @@ LcdPlatformSetMode (
|
||||
break;
|
||||
case ARM_VE_DAUGHTERBOARD_1_SITE:
|
||||
Function = SYS_CFG_OSC_SITE1;
|
||||
OscillatorId = PL111_CLCD_CORE_TILE_VIDEO_MODE_OSC_ID;
|
||||
OscillatorId = (UINT32)PcdGet32(PcdPL111LcdVideoModeOscId);
|
||||
break;
|
||||
default:
|
||||
return EFI_UNSUPPORTED;
|
||||
|
@@ -33,15 +33,6 @@
|
||||
BaseLib
|
||||
ArmPlatformSysConfigLib
|
||||
|
||||
[Guids]
|
||||
|
||||
[Protocols]
|
||||
|
||||
[FeaturePcd]
|
||||
|
||||
[FixedPcd.common]
|
||||
gArmVExpressTokenSpaceGuid.PcdPL111MaxMode
|
||||
|
||||
[Pcd.common]
|
||||
|
||||
[Depex]
|
||||
[Pcd]
|
||||
gArmVExpressTokenSpaceGuid.PcdPL111LcdMaxMode
|
||||
gArmVExpressTokenSpaceGuid.PcdPL111LcdVideoModeOscId
|
||||
|
Reference in New Issue
Block a user