// modules\r
if (InitFlag == DEBUG_AGENT_INIT_PREMEM_SEC) {\r
//\r
- // Get the PrePi or PrePeiCore module (defined as SEC type module)\r
+ // Get the Sec or PrePeiCore module (defined as SEC type module)\r
//\r
- Status = GetFfsFile ((EFI_FIRMWARE_VOLUME_HEADER*)PcdGet32(PcdSecureFdBaseAddress), EFI_FV_FILETYPE_SECURITY_CORE, &FfsHeader);\r
+ Status = GetFfsFile ((EFI_FIRMWARE_VOLUME_HEADER*)PcdGet32(PcdSecureFvBaseAddress), EFI_FV_FILETYPE_SECURITY_CORE, &FfsHeader);\r
if (!EFI_ERROR(Status)) {\r
Status = GetImageContext (FfsHeader,&ImageContext);\r
if (!EFI_ERROR(Status)) {\r
return FALSE;
}
-/**
- Initialize the Secure peripherals and memory regions
-
- If Trustzone is supported by your platform then this function makes the required initialization
- of the secure peripherals and memory regions.
-
-**/
-VOID
-ArmPlatformTrustzoneInit (
- VOID
- )
-{
- ASSERT(FALSE);
-}
-
/**
Remap the memory at 0x0
return BOOT_WITH_FULL_CONFIGURATION;
}
-/**
- Initialize controllers that must setup at the early stage
-
- Some peripherals must be initialized in Secure World.
- For example, some L2x0 requires to be initialized in Secure World
-
-**/
-VOID
-ArmPlatformSecInitialize (
- VOID
- ) {
- // Do nothing yet
-}
-
/**
Initialize controllers that must setup in the normal world
#define _SP804_TIMER_H__\r
\r
// SP804 Timer constants\r
-#define SP804_TIMER_LOAD_REG 0x00\r
-#define SP804_TIMER_CURRENT_REG 0x04\r
-#define SP804_TIMER_CONTROL_REG 0x08\r
-#define SP804_TIMER_INT_CLR_REG 0x0C\r
-#define SP804_TIMER_RAW_INT_STS_REG 0x10\r
-#define SP804_TIMER_MSK_INT_STS_REG 0x14\r
-#define SP804_TIMER_BG_LOAD_REG 0x18\r
+// Note: The SP804 Timer module comprises two timers, Timer_0 and Timer_1\r
+// These timers are identical and all their registers have an offset of 0x20\r
+// i.e. SP804_TIMER_0_LOAD_REG = 0x00 and SP804_TIMER_1_LOAD_REG = 0x20\r
+// Therefore, define all registers only once and adjust the base addresses by 0x20\r
+#define SP804_TIMER_LOAD_REG 0x00\r
+#define SP804_TIMER_CURRENT_REG 0x04\r
+#define SP804_TIMER_CONTROL_REG 0x08\r
+#define SP804_TIMER_INT_CLR_REG 0x0C\r
+#define SP804_TIMER_RAW_INT_STS_REG 0x10\r
+#define SP804_TIMER_MSK_INT_STS_REG 0x14\r
+#define SP804_TIMER_BG_LOAD_REG 0x18\r
\r
// Timer control register bit definitions\r
#define SP804_TIMER_CTRL_ONESHOT BIT0\r
#define SP804_TIMER_CTRL_PERIODIC BIT6\r
#define SP804_TIMER_CTRL_ENABLE BIT7\r
\r
+// Other SP804 Timer definitions\r
+#define SP804_MAX_TICKS 0xFFFFFFFF\r
+\r
// SP810 System Controller constants\r
#define SP810_SYS_CTRL_REG 0x00\r
#define SP810_SYS_CTRL_TIMER0_TIMCLK BIT15 // 0=REFCLK, 1=TIMCLK\r