]>
Commit | Line | Data |
---|---|---|
c8ece79c | 1 | /** @file |
2 | * | |
3 | * Copyright (c) 2011, ARM Limited. All rights reserved. | |
4 | * | |
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 | |
9 | * | |
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. | |
12 | * | |
13 | **/ | |
14 | ||
15 | #include <Library/IoLib.h> | |
16 | #include <Library/ArmPlatformLib.h> | |
17 | #include <Library/DebugLib.h> | |
18 | #include <Library/PcdLib.h> | |
19 | ||
20 | #include <Drivers/PL341Dmc.h> | |
21 | #include <Drivers/SP804Timer.h> | |
22 | ||
23 | #include <ArmPlatform.h> | |
24 | ||
25 | /** | |
26 | Initialize the Secure peripherals and memory regions | |
27 | ||
28 | If Trustzone is supported by your platform then this function makes the required initialization | |
29 | of the secure peripherals and memory regions. | |
30 | ||
31 | **/ | |
32 | VOID | |
33 | ArmPlatformTrustzoneInit ( | |
5e773144 | 34 | IN UINTN MpId |
c8ece79c | 35 | ) |
36 | { | |
f4ee7a82 | 37 | ASSERT(FALSE); |
c8ece79c | 38 | } |
39 | ||
40 | /** | |
41 | Initialize controllers that must setup at the early stage | |
42 | ||
43 | Some peripherals must be initialized in Secure World. | |
44 | For example, some L2x0 requires to be initialized in Secure World | |
45 | ||
46 | **/ | |
47 | VOID | |
48 | ArmPlatformSecInitialize ( | |
49 | VOID | |
f4ee7a82 | 50 | ) |
51 | { | |
c8ece79c | 52 | // Do nothing yet |
53 | } | |
54 | ||
55 | /** | |
56 | Call before jumping to Normal World | |
57 | ||
58 | This function allows the firmware platform to do extra actions before | |
59 | jumping to the Normal World | |
60 | ||
61 | **/ | |
62 | VOID | |
63 | ArmPlatformSecExtraAction ( | |
0787bc61 | 64 | IN UINTN MpId, |
c8ece79c | 65 | OUT UINTN* JumpAddress |
66 | ) | |
67 | { | |
f92b93c9 | 68 | *JumpAddress = PcdGet32(PcdFvBaseAddress); |
c8ece79c | 69 | } |