aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchin Gupta <achin.gupta@arm.com>2013-10-31 11:27:43 +0000
committerDan Handley <dan.handley@arm.com>2013-12-05 12:28:50 +0000
commitc2b43afc547b390d0b45aae0802af0479edaf0e5 (patch)
tree1e5aa549ace08181758123f5b84750f875f7cc06
parentc8afc789196cdd568e29aa1e54cb5d24be5adf70 (diff)
downloadarm-trusted-firmware-c2b43afc547b390d0b45aae0802af0479edaf0e5.tar.gz
move timer #defines & remove duplicate declaration
This patch removes the duplicate declaration of psci_cpu_on in psci.h and moves the constants for the system level implementation of the generic timer from arch_helpers.h to arch.h. All other architectural constants are defined in arch.h so there is no need to add them to arch_helpers.h Change-Id: Ia8ad3f91854f7e57fce31873773eede55c384ff1
-rw-r--r--include/aarch64/arch.h10
-rw-r--r--include/aarch64/arch_helpers.h10
-rw-r--r--include/psci.h3
3 files changed, 10 insertions, 13 deletions
diff --git a/include/aarch64/arch.h b/include/aarch64/arch.h
index 143dc6c..4548926 100644
--- a/include/aarch64/arch.h
+++ b/include/aarch64/arch.h
@@ -71,6 +71,16 @@
#define CPUECTLR_EL1 S3_1_C15_C2_1
/*******************************************************************************
+ * Generic timer memory mapped registers & offsets
+ ******************************************************************************/
+#define CNTCR_OFF 0x000
+#define CNTFID_OFF 0x020
+
+#define CNTCR_EN (1 << 0)
+#define CNTCR_HDBG (1 << 1)
+#define CNTCR_FCREQ(x) (1 << (8 + (x)))
+
+/*******************************************************************************
* System register bit definitions
******************************************************************************/
/* CLIDR definitions */
diff --git a/include/aarch64/arch_helpers.h b/include/aarch64/arch_helpers.h
index 85c0481..12ab570 100644
--- a/include/aarch64/arch_helpers.h
+++ b/include/aarch64/arch_helpers.h
@@ -33,16 +33,6 @@
#include <arch.h>
-/*******************************************************************************
- * Generic timer memory mapped registers & offsets
- ******************************************************************************/
-#define CNTCR_OFF 0x000
-#define CNTFID_OFF 0x020
-
-#define CNTCR_EN (1 << 0)
-#define CNTCR_HDBG (1 << 1)
-#define CNTCR_FCREQ(x) (1 << (8 + (x)))
-
#ifndef __ASSEMBLY__
/*******************************************************************************
diff --git a/include/psci.h b/include/psci.h
index 70322c4..2a033d0 100644
--- a/include/psci.h
+++ b/include/psci.h
@@ -143,9 +143,6 @@ typedef struct {
* Function & Data prototypes
******************************************************************************/
extern unsigned int psci_version(void);
-extern int psci_cpu_on(unsigned long,
- unsigned long,
- unsigned long);
extern int __psci_cpu_suspend(unsigned int, unsigned long, unsigned long);
extern int __psci_cpu_off(void);
extern int psci_affinity_info(unsigned long, unsigned int);