diff options
author | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-26 18:27:15 +0000 |
---|---|---|
committer | oliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-04-26 18:27:15 +0000 |
commit | aa01abaa779cb30614c014a9314fe4f63bba0f88 (patch) | |
tree | 4e35e6edd7f629e6ffba168bf352e265d572ef16 /ArmPlatformPkg/Include | |
parent | bf7d7a673b1d18829aa2d638be6f2ce84fb91ead (diff) | |
download | edk2-platforms-aa01abaa779cb30614c014a9314fe4f63bba0f88.tar.xz |
ArmPlatformPkg/ArmPlatformLib: Renamed ArmPlatformInitialize into ArmPlatformSecInitialize
Some platforms require some of their controllers to be initialized in Secure world.
This function make the difference between Secure and Normal world platform initialization.
ArmPlatformPkg/ArmPlatformLib: Introduce ArmPlatformNormalInitialize
Contain the code that initializes platform controllers that would be initialized in Normal World
by PlatformPei.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11591 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ArmPlatformPkg/Include')
-rw-r--r-- | ArmPlatformPkg/Include/Library/ArmPlatformLib.h | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/ArmPlatformPkg/Include/Library/ArmPlatformLib.h b/ArmPlatformPkg/Include/Library/ArmPlatformLib.h index ec95941b51..3fec90298c 100644 --- a/ArmPlatformPkg/Include/Library/ArmPlatformLib.h +++ b/ArmPlatformPkg/Include/Library/ArmPlatformLib.h @@ -65,7 +65,10 @@ VOID ArmPlatformIsMemoryInitialized(VOID); pointer is not used (probably required to use assembly language) **/ -VOID ArmPlatformInitializeBootMemory(VOID); +VOID +ArmPlatformInitializeBootMemory ( + VOID + ); /** Return the current Boot Mode @@ -88,7 +91,19 @@ ArmPlatformGetBootMode ( **/ VOID -ArmPlatformInitialize ( +ArmPlatformSecInitialize ( + VOID + ); + +/** + Initialize controllers that must setup in the normal world + + This function is called by the ArmPlatformPkg/Pei or ArmPlatformPkg/Pei/PlatformPeim + in the PEI phase. + +**/ +VOID +ArmPlatformNormalInitialize ( VOID ); @@ -98,7 +113,10 @@ ArmPlatformInitialize ( This memory is generally represented by the DRAM. **/ -VOID ArmPlatformInitializeSystemMemory(VOID); +VOID +ArmPlatformInitializeSystemMemory ( + VOID + ); /** Remap the memory at 0x0 @@ -107,7 +125,10 @@ VOID ArmPlatformInitializeSystemMemory(VOID); This function can do nothing if this feature is not relevant to your platform. **/ -VOID ArmPlatformBootRemapping(VOID); +VOID +ArmPlatformBootRemapping ( + VOID + ); /** Return if Trustzone is supported by your platform @@ -120,7 +141,10 @@ VOID ArmPlatformBootRemapping(VOID); @return A non-zero value if Trustzone supported. **/ -UINTN ArmPlatformTrustzoneSupported(VOID); +UINTN +ArmPlatformTrustzoneSupported ( + VOID + ); /** Initialize the Secure peripherals and memory regions @@ -129,7 +153,10 @@ UINTN ArmPlatformTrustzoneSupported(VOID); of the secure peripherals and memory regions. **/ -VOID ArmPlatformTrustzoneInit(VOID); +VOID +ArmPlatformTrustzoneInit ( + VOID + ); /** Return the information about the memory region in permanent memory used by PEI @@ -156,9 +183,10 @@ VOID ArmPlatformGetPeiMemory ( entry **/ -VOID ArmPlatformGetVirtualMemoryMap ( - OUT ARM_MEMORY_REGION_DESCRIPTOR** VirtualMemoryMap -); +VOID +ArmPlatformGetVirtualMemoryMap ( + OUT ARM_MEMORY_REGION_DESCRIPTOR** VirtualMemoryMap + ); /** Return the EFI Memory Map of your platform |