]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressSecLibRTSM/RTSMFoundationSec.c
ArmPlatformPkg: Increase more ARM address Pcd entries to 64-bit.
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / Library / ArmVExpressSecLibRTSM / RTSMFoundationSec.c
CommitLineData
f9cec5f1
HL
1/** @file\r
2*\r
bb5420bb 3* Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
f9cec5f1
HL
4*\r
5* This program and the accompanying materials\r
6* are licensed and made available under the terms and conditions of the BSD License\r
7* which accompanies this distribution. The full text of the license may be found at\r
8* http://opensource.org/licenses/bsd-license.php\r
9*\r
10* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12*\r
13**/\r
14\r
15#include <Library/IoLib.h>\r
16#include <Library/ArmPlatformLib.h>\r
17#include <Library/DebugLib.h>\r
18#include <Library/PcdLib.h>\r
19\r
20#include <Drivers/PL310L2Cache.h>\r
21#include <Drivers/SP804Timer.h>\r
22\r
23#include <ArmPlatform.h>\r
24\r
25/**\r
26 Initialize the Secure peripherals and memory regions\r
27\r
28 If Trustzone is supported by your platform then this function makes the required initialization\r
29 of the secure peripherals and memory regions.\r
30\r
31**/\r
32VOID\r
33ArmPlatformSecTrustzoneInit (\r
34 IN UINTN MpId\r
35 )\r
36{\r
37 // No TZPC or TZASC on RTSM to initialize\r
38}\r
39\r
40/**\r
41 Initialize controllers that must setup at the early stage\r
42\r
43 Some peripherals must be initialized in Secure World.\r
44 For example, some L2x0 requires to be initialized in Secure World\r
45\r
46**/\r
47RETURN_STATUS\r
48ArmPlatformSecInitialize (\r
49 IN UINTN MpId\r
50 )\r
51{\r
52 /* The Foundation model has no SP810 to initialise. */\r
53\r
54 return RETURN_SUCCESS;\r
55}\r
56\r
57/**\r
58 Call before jumping to Normal World\r
59\r
60 This function allows the firmware platform to do extra actions before\r
61 jumping to the Normal World\r
62\r
63**/\r
64VOID\r
65ArmPlatformSecExtraAction (\r
66 IN UINTN MpId,\r
67 OUT UINTN* JumpAddress\r
68 )\r
69{\r
bb5420bb 70 *JumpAddress = PcdGet64 (PcdFvBaseAddress);\r
f9cec5f1 71}\r