mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00

NOTE: __ASSEMBLY__ macro is now deprecated in favor of __ASSEMBLER__. All common C compilers predefine a macro called __ASSEMBLER__ when preprocessing a .S file. There is no reason for TF-A to define it's own __ASSEMBLY__ macro for this purpose instead. To unify code with the export headers (which use __ASSEMBLER__ to avoid one extra dependency), let's deprecate __ASSEMBLY__ and switch the code base over to the predefined standard. Change-Id: Id7d0ec8cf330195da80499c68562b65cb5ab7417 Signed-off-by: Julius Werner <jwerner@chromium.org>
44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef DENVER_H
|
|
#define DENVER_H
|
|
|
|
/* MIDR values for Denver */
|
|
#define DENVER_MIDR_PN0 U(0x4E0F0000)
|
|
#define DENVER_MIDR_PN1 U(0x4E0F0010)
|
|
#define DENVER_MIDR_PN2 U(0x4E0F0020)
|
|
#define DENVER_MIDR_PN3 U(0x4E0F0030)
|
|
#define DENVER_MIDR_PN4 U(0x4E0F0040)
|
|
|
|
/* Implementer code in the MIDR register */
|
|
#define DENVER_IMPL U(0x4E)
|
|
|
|
/* CPU state ids - implementation defined */
|
|
#define DENVER_CPU_STATE_POWER_DOWN U(0x3)
|
|
|
|
/* Speculative store buffering */
|
|
#define DENVER_CPU_DIS_SSB_EL3 (U(1) << 11)
|
|
#define DENVER_PN4_CPU_DIS_SSB_EL3 (U(1) << 18)
|
|
|
|
/* Speculative memory disambiguation */
|
|
#define DENVER_CPU_DIS_MD_EL3 (U(1) << 9)
|
|
#define DENVER_PN4_CPU_DIS_MD_EL3 (U(1) << 17)
|
|
|
|
/* Core power management states */
|
|
#define DENVER_CPU_PMSTATE_C1 U(0x1)
|
|
#define DENVER_CPU_PMSTATE_C6 U(0x6)
|
|
#define DENVER_CPU_PMSTATE_C7 U(0x7)
|
|
#define DENVER_CPU_PMSTATE_MASK U(0xF)
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
/* Disable Dynamic Code Optimisation */
|
|
void denver_disable_dco(void);
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
|
|
#endif /* DENVER_H */
|