ArmPlatformPkg/ArmVExpressPkg: Do not declare SCC base for the RTSM VE Model

The System Control Configuration registers are not implemented on the Model



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12624 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
oliviermartin 2011-11-01 23:28:27 +00:00
parent 3372840669
commit a79803d7f9
2 changed files with 5 additions and 4 deletions

View File

@ -65,10 +65,6 @@
// Memory-mapped peripherals // Memory-mapped peripherals
************************************************************************************/ ************************************************************************************/
// Note: There is no System Configuration Controller on the Model,
// So do dummy definition to avoid build failures
#define ARM_VE_SCC_BASE
// SP810 Controller // SP810 Controller
#undef SP810_CTRL_BASE #undef SP810_CTRL_BASE
#define SP810_CTRL_BASE 0x1C020000 #define SP810_CTRL_BASE 0x1C020000

View File

@ -217,8 +217,13 @@ ArmPlatformSysConfigSetDevice (
// Intercept some functions // Intercept some functions
switch(Function) { switch(Function) {
case SYS_CFG_SCC: case SYS_CFG_SCC:
#ifdef ARM_VE_SCC_BASE
MmioWrite32 ((ARM_VE_SCC_BASE + (Device * 4)),Value); MmioWrite32 ((ARM_VE_SCC_BASE + (Device * 4)),Value);
return EFI_SUCCESS; return EFI_SUCCESS;
#else
// There is no System Configuration Controller on the Model
return EFI_UNSUPPORTED;
#endif
case SYS_CFG_OSC_SITE1: case SYS_CFG_OSC_SITE1:
Function = SYS_CFG_OSC; Function = SYS_CFG_OSC;