ArmPlatformPkg/ArmVExpressPkg: Add support for ARM Versatile Express A9x4 Model

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12429 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
oliviermartin
2011-09-22 23:22:31 +00:00
parent 4463f70698
commit 1ddb209e0e
11 changed files with 1336 additions and 5 deletions

View File

@@ -234,11 +234,15 @@ LcdPlatformSetMode (
return Status;
}
// Set the DVI into the new mode
Status = ArmPlatformSysConfigSet (SYS_CFG_DVIMODE, mResolutions[ModeNumber].Mode);
if (EFI_ERROR(Status)) {
ASSERT_EFI_ERROR (Status);
return Status;
// On the ARM Versatile Express Model (RTSM) the value of the SysId is equal to 0x225F500.
// Note: The DVI Mode is not modelled on RTSM
if (MmioRead32 (ARM_VE_SYS_ID_REG) != 0x225F500) {
// Set the DVI into the new mode
Status = ArmPlatformSysConfigSet (SYS_CFG_DVIMODE, mResolutions[ModeNumber].Mode);
if (EFI_ERROR(Status)) {
ASSERT_EFI_ERROR (Status);
return Status;
}
}
// Set the multiplexer