MmioOr32 (ARM_EB_SYSCTRL, BIT8); //EB_SP810_CTRL_BASE
}
+/**
+ Return the current Boot Mode
+
+ This function returns the boot reason on the platform
+
+**/
+EFI_BOOT_MODE
+ArmPlatformGetBootMode (
+ VOID
+ )
+{
+ return BOOT_WITH_FULL_CONFIGURATION;
+}
+
/**
Initialize controllers that must setup at the early stage
TZASC_REGION_SIZE_256MB, TZASC_REGION_SECURITY_NSRW);
}
+/**
+ Return the current Boot Mode
+
+ This function returns the boot reason on the platform
+
+ @return Return the current Boot Mode of the platform
+
+**/
+EFI_BOOT_MODE
+ArmPlatformGetBootMode (
+ VOID
+ )
+{
+ return BOOT_WITH_FULL_CONFIGURATION;
+}
+
/**
Remap the memory at 0x0
**/
VOID ArmPlatformInitializeBootMemory(VOID);
+/**
+ Return the current Boot Mode
+
+ This function returns the boot reason on the platform
+
+ @return Return the current Boot Mode of the platform
+
+**/
+EFI_BOOT_MODE
+ArmPlatformGetBootMode (
+ VOID
+ );
+
/**
Initialize controllers that must setup at the early stage
\r
BuildFvHob (FixedPcdGet32(PcdFlashFvMainBase), FixedPcdGet32(PcdFlashFvMainSize));\r
\r
- //\r
- // Let's assume things are OK if not told otherwise\r
- // Should we read an environment variable in order to easily change this?\r
- //\r
- BootMode = BOOT_WITH_FULL_CONFIGURATION;\r
-\r
+ BootMode = ArmPlatformGetBootMode ();\r
Status = (**PeiServices).SetBootMode (PeiServices, (UINT8) BootMode);\r
ASSERT_EFI_ERROR (Status);\r
\r
MdePkg/MdePkg.dec\r
EmbeddedPkg/EmbeddedPkg.dec\r
ArmPkg/ArmPkg.dec\r
+ ArmPlatformPkg/ArmPlatformPkg.dec\r
\r
[LibraryClasses]\r
PeimEntryPoint\r
DebugLib\r
HobLib\r
+ ArmPlatformLib\r
\r
[Ppis]\r
gEfiPeiMasterBootModePpiGuid # PPI ALWAYS_PRODUCED\r