mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00
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
This commit is contained in:
parent
c8afc78919
commit
c2b43afc54
3 changed files with 10 additions and 13 deletions
|
@ -70,6 +70,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
|
||||
******************************************************************************/
|
||||
|
|
|
@ -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__
|
||||
|
||||
/*******************************************************************************
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue