diff options
author | Dan Handley <dan.handley@arm.com> | 2014-05-14 17:44:19 +0100 |
---|---|---|
committer | Achin Gupta <achin.gupta@arm.com> | 2014-05-23 15:52:29 +0100 |
commit | 5f0cdb059d7d5c3a8a834074a7f236b85d014dde (patch) | |
tree | 9d249567a958eb8417b08f095813ecde6bb2435b /include/lib | |
parent | 7a9a5f2d22c4f76ae95300fe52129603d29bccc1 (diff) |
Split platform.h into separate headers
Previously, platform.h contained many declarations and definitions
used for different purposes. This file has been split so that:
* Platform definitions used by common code that must be defined
by the platform are now in platform_def.h. The exact include
path is exported through $PLAT_INCLUDES in the platform makefile.
* Platform definitions specific to the FVP platform are now in
/plat/fvp/fvp_def.h.
* Platform API declarations specific to the FVP platform are now
in /plat/fvp/fvp_private.h.
* The remaining platform API declarations that must be ported by
each platform are still in platform.h but this file has been
moved to /include/plat/common since this can be shared by all
platforms.
Change-Id: Ieb3bb22fbab3ee8027413c6b39a783534aee474a
Diffstat (limited to 'include/lib')
-rw-r--r-- | include/lib/aarch64/arch.h | 15 | ||||
-rw-r--r-- | include/lib/bakery_lock.h | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/include/lib/aarch64/arch.h b/include/lib/aarch64/arch.h index 920dfc9..d89b4fe 100644 --- a/include/lib/aarch64/arch.h +++ b/include/lib/aarch64/arch.h @@ -394,4 +394,19 @@ #define EC_BITS(x) (x >> ESR_EC_SHIFT) & ESR_EC_MASK +/******************************************************************************* + * Definitions of register offsets and fields in the CNTCTLBase Frame of the + * system level implementation of the Generic Timer. + ******************************************************************************/ +#define CNTNSAR 0x4 +#define CNTNSAR_NS_SHIFT(x) x + +#define CNTACR_BASE(x) (0x40 + (x << 2)) +#define CNTACR_RPCT_SHIFT 0x0 +#define CNTACR_RVCT_SHIFT 0x1 +#define CNTACR_RFRQ_SHIFT 0x2 +#define CNTACR_RVOFF_SHIFT 0x3 +#define CNTACR_RWVT_SHIFT 0x4 +#define CNTACR_RWPT_SHIFT 0x5 + #endif /* __ARCH_H__ */ diff --git a/include/lib/bakery_lock.h b/include/lib/bakery_lock.h index e6744a5..037fa7d 100644 --- a/include/lib/bakery_lock.h +++ b/include/lib/bakery_lock.h @@ -31,7 +31,7 @@ #ifndef __BAKERY_LOCK_H__ #define __BAKERY_LOCK_H__ -#include <platform.h> +#include <platform_def.h> #define BAKERY_LOCK_MAX_CPUS PLATFORM_CORE_COUNT |