diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-03-31 12:12:58 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-03-31 12:12:58 +0000 |
commit | 4a5bb7cb0eb073c785dd8fb29ffe9d57b70e9ae3 (patch) | |
tree | c50ebbdb5df4255704495cfb8e91e575c96ebfc0 /edk2/ArmPlatformPkg/Sec/Sec.c | |
parent | 7693e42fcc36385b5be7d1646b5bfba59005c826 (diff) |
ArmPlatformPkg: Introduce ArmPlatformInitialize() function
This function is responsible to handle all the specific platform code that must
be run in secure world to initialize some controllers.
ArmPlatformPkg/Sec: Move the L2x0 initialization to ArmPlatformLib
The L2x0 controller must be initialized in secure world. Move its initialization
into the ArmPlatformInitialize() of the Cortex A9x4 Core Tile PlatformLib.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@11476 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'edk2/ArmPlatformPkg/Sec/Sec.c')
-rw-r--r-- | edk2/ArmPlatformPkg/Sec/Sec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/edk2/ArmPlatformPkg/Sec/Sec.c b/edk2/ArmPlatformPkg/Sec/Sec.c index 4199f381b..7106e9002 100644 --- a/edk2/ArmPlatformPkg/Sec/Sec.c +++ b/edk2/ArmPlatformPkg/Sec/Sec.c @@ -21,7 +21,6 @@ #include <Library/ArmLib.h> #include <Chipset/ArmV7.h> #include <Drivers/PL390Gic.h> -#include <Library/L2X0CacheLib.h> #include <Library/SerialPortLib.h> #include <Library/ArmPlatformLib.h> @@ -106,8 +105,9 @@ CEntryPoint ( } if (CoreId == 0) { - // Initialize L2X0 but not enabled - L2x0CacheInit(PcdGet32(PcdL2x0ControllerBase), FALSE); + // Initialize peripherals that must be done at the early stage + // Example: Some L2x0 controllers must be initialized in Secure World + ArmPlatformInitialize (); // If we skip the PEI Core we could want to initialize the DRAM in the SEC phase. // If we are in standalone, we need the initialization to copy the UEFI firmware into DRAM |