Commit c2b43afc authored by Achin Gupta's avatar Achin Gupta Committed by Dan Handley
Browse files

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
parent c8afc789
...@@ -70,6 +70,16 @@ ...@@ -70,6 +70,16 @@
******************************************************************************/ ******************************************************************************/
#define CPUECTLR_EL1 S3_1_C15_C2_1 #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 * System register bit definitions
******************************************************************************/ ******************************************************************************/
......
...@@ -33,16 +33,6 @@ ...@@ -33,16 +33,6 @@
#include <arch.h> #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__ #ifndef __ASSEMBLY__
/******************************************************************************* /*******************************************************************************
......
...@@ -143,9 +143,6 @@ typedef struct { ...@@ -143,9 +143,6 @@ typedef struct {
* Function & Data prototypes * Function & Data prototypes
******************************************************************************/ ******************************************************************************/
extern unsigned int psci_version(void); 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_suspend(unsigned int, unsigned long, unsigned long);
extern int __psci_cpu_off(void); extern int __psci_cpu_off(void);
extern int psci_affinity_info(unsigned long, unsigned int); extern int psci_affinity_info(unsigned long, unsigned int);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment