2012-02-29 18:21:17 +01:00
|
|
|
/** @file SysConfigArmRealViewEb.c
|
2011-06-11 13:25:03 +02:00
|
|
|
|
2012-02-29 18:21:17 +01:00
|
|
|
Copyright (c) 2011-2012, ARM Ltd. All rights reserved.<BR>
|
2011-06-11 13:25:03 +02:00
|
|
|
This program and the accompanying materials
|
|
|
|
are licensed and made available under the terms and conditions of the BSD License
|
|
|
|
which accompanies this distribution. The full text of the license may be found at
|
|
|
|
http://opensource.org/licenses/bsd-license.php
|
|
|
|
|
|
|
|
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|
|
|
|
|
|
|
**/
|
|
|
|
|
2012-02-29 18:21:17 +01:00
|
|
|
#include <Base.h>
|
2011-06-11 13:25:03 +02:00
|
|
|
#include <Library/IoLib.h>
|
|
|
|
#include <Library/DebugLib.h>
|
|
|
|
|
|
|
|
#include <Library/ArmPlatformSysConfigLib.h>
|
|
|
|
#include <ArmPlatform.h>
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
*
|
|
|
|
* This file makes it easier to access the System Configuration Registers
|
|
|
|
* in the ARM Versatile Express motherboard.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2012-02-29 18:21:17 +01:00
|
|
|
RETURN_STATUS
|
2011-06-11 13:25:03 +02:00
|
|
|
ArmPlatformSysConfigInitialize (
|
|
|
|
VOID
|
|
|
|
)
|
|
|
|
{
|
2012-02-29 18:21:17 +01:00
|
|
|
return RETURN_SUCCESS;
|
2011-06-11 13:25:03 +02:00
|
|
|
}
|
|
|
|
|
2012-02-29 18:21:17 +01:00
|
|
|
RETURN_STATUS
|
2011-06-11 13:25:03 +02:00
|
|
|
ArmPlatformSysConfigGet (
|
|
|
|
IN SYS_CONFIG_FUNCTION Function,
|
|
|
|
OUT UINT32* Value
|
|
|
|
)
|
|
|
|
{
|
2012-02-29 18:21:17 +01:00
|
|
|
RETURN_STATUS Status;
|
2011-06-11 13:25:03 +02:00
|
|
|
|
2012-02-29 18:21:17 +01:00
|
|
|
Status = RETURN_SUCCESS;
|
2011-06-11 13:25:03 +02:00
|
|
|
|
|
|
|
// Intercept some functions
|
|
|
|
switch(Function) {
|
|
|
|
|
|
|
|
default:
|
2012-02-29 18:21:17 +01:00
|
|
|
Status = RETURN_UNSUPPORTED;
|
2011-06-11 13:25:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return Status;
|
|
|
|
}
|
|
|
|
|
2012-02-29 18:21:17 +01:00
|
|
|
RETURN_STATUS
|
2011-06-11 13:25:03 +02:00
|
|
|
ArmPlatformSysConfigSet (
|
|
|
|
IN SYS_CONFIG_FUNCTION Function,
|
|
|
|
IN UINT32 Value
|
|
|
|
)
|
|
|
|
{
|
2012-02-29 18:21:17 +01:00
|
|
|
RETURN_STATUS Status;
|
2011-06-11 13:25:03 +02:00
|
|
|
|
2012-02-29 18:21:17 +01:00
|
|
|
Status = RETURN_SUCCESS;
|
2011-06-11 13:25:03 +02:00
|
|
|
|
|
|
|
// Intercept some functions
|
|
|
|
switch(Function) {
|
|
|
|
|
|
|
|
default:
|
2012-02-29 18:21:17 +01:00
|
|
|
Status = RETURN_UNSUPPORTED;
|
2011-06-11 13:25:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return Status;
|
|
|
|
}
|
|
|
|
|
2012-02-29 18:21:17 +01:00
|
|
|
RETURN_STATUS
|
2011-06-11 13:25:03 +02:00
|
|
|
ArmPlatformSysConfigSetDevice (
|
|
|
|
IN SYS_CONFIG_FUNCTION Function,
|
|
|
|
IN UINT32 Device,
|
|
|
|
IN UINT32 Value
|
|
|
|
)
|
|
|
|
{
|
2012-02-29 18:21:17 +01:00
|
|
|
RETURN_STATUS Status;
|
2011-06-11 13:25:03 +02:00
|
|
|
|
2012-02-29 18:21:17 +01:00
|
|
|
Status = RETURN_SUCCESS;
|
2011-06-11 13:25:03 +02:00
|
|
|
|
|
|
|
// Intercept some functions
|
|
|
|
switch(Function) {
|
|
|
|
|
|
|
|
default:
|
2012-02-29 18:21:17 +01:00
|
|
|
Status = RETURN_UNSUPPORTED;
|
2011-06-11 13:25:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return Status;
|
|
|
|
}
|