ArmPlatformPkg/CTA15-A7: Add a convenient way to restore default values in NOR flash.

Setting bit4 of SCC register 48 now triggers the erasing of the memory region
reserved for variable storage in NOR flash and the restoration of the default
headers in flash.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14177 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
oliviermartin
2013-03-12 00:43:58 +00:00
parent c0b2e4775d
commit 9f5c60c38b
2 changed files with 10 additions and 5 deletions

View File

@@ -121,7 +121,11 @@ ArmPlatformGetBootMode (
VOID
)
{
return BOOT_WITH_FULL_CONFIGURATION;
if (MmioRead32(ARM_CTA15A7_SCC_SYSINFO) & ARM_CTA15A7_SCC_SYSINFO_UEFI_RESTORE_DEFAULT_NORFLASH) {
return BOOT_WITH_DEFAULT_SETTINGS;
} else {
return BOOT_WITH_FULL_CONFIGURATION;
}
}
/**