]>
git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibRTSM/RTSMFoundationSec.c
3 * Copyright (c) 2011-2013, ARM Limited. All rights reserved.
5 * This program and the accompanying materials
6 * are licensed and made available under the terms and conditions of the BSD License
7 * which accompanies this distribution. The full text of the license may be found at
8 * http://opensource.org/licenses/bsd-license.php
10 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #include <Library/IoLib.h>
16 #include <Library/ArmPlatformLib.h>
17 #include <Library/DebugLib.h>
18 #include <Library/PcdLib.h>
20 #include <Drivers/PL310L2Cache.h>
21 #include <Drivers/SP804Timer.h>
23 #include <ArmPlatform.h>
26 Initialize the Secure peripherals and memory regions
28 If Trustzone is supported by your platform then this function makes the required initialization
29 of the secure peripherals and memory regions.
33 ArmPlatformSecTrustzoneInit (
37 // No TZPC or TZASC on RTSM to initialize
41 Initialize controllers that must setup at the early stage
43 Some peripherals must be initialized in Secure World.
44 For example, some L2x0 requires to be initialized in Secure World
48 ArmPlatformSecInitialize (
52 /* The Foundation model has no SP810 to initialise. */
54 return RETURN_SUCCESS
;
58 Call before jumping to Normal World
60 This function allows the firmware platform to do extra actions before
61 jumping to the Normal World
65 ArmPlatformSecExtraAction (
67 OUT UINTN
* JumpAddress
70 *JumpAddress
= PcdGet32(PcdFvBaseAddress
);