Vikram Kanigiri | c47e011 | 2015-02-17 11:50:28 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2015, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame^] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Vikram Kanigiri | c47e011 | 2015-02-17 11:50:28 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __CORTEX_A72_H__ |
| 8 | #define __CORTEX_A72_H__ |
| 9 | |
| 10 | /* Cortex-A72 midr for revision 0 */ |
| 11 | #define CORTEX_A72_MIDR 0x410FD080 |
| 12 | |
| 13 | /******************************************************************************* |
| 14 | * CPU Extended Control register specific definitions. |
| 15 | ******************************************************************************/ |
| 16 | #define CPUECTLR_EL1 S3_1_C15_C2_1 /* Instruction def. */ |
| 17 | |
| 18 | #define CPUECTLR_SMP_BIT (1 << 6) |
| 19 | #define CPUECTLR_DIS_TWD_ACC_PFTCH_BIT (1 << 38) |
| 20 | #define CPUECTLR_L2_IPFTCH_DIST_MASK (0x3 << 35) |
| 21 | #define CPUECTLR_L2_DPFTCH_DIST_MASK (0x3 << 32) |
| 22 | |
| 23 | /******************************************************************************* |
Naga Sureshkumar Relli | 6a72a91 | 2016-07-01 12:52:41 +0530 | [diff] [blame] | 24 | * CPU Memory Error Syndrome register specific definitions. |
| 25 | ******************************************************************************/ |
| 26 | #define CPUMERRSR_EL1 S3_1_C15_C2_2 /* Instruction def. */ |
| 27 | |
| 28 | /******************************************************************************* |
Vikram Kanigiri | c47e011 | 2015-02-17 11:50:28 +0000 | [diff] [blame] | 29 | * CPU Auxiliary Control register specific definitions. |
| 30 | ******************************************************************************/ |
| 31 | #define CPUACTLR_EL1 S3_1_C15_C2_0 /* Instruction def. */ |
| 32 | |
| 33 | #define CPUACTLR_DISABLE_L1_DCACHE_HW_PFTCH (1 << 56) |
| 34 | #define CPUACTLR_NO_ALLOC_WBWA (1 << 49) |
| 35 | #define CPUACTLR_DCC_AS_DCCI (1 << 44) |
| 36 | |
| 37 | /******************************************************************************* |
| 38 | * L2 Control register specific definitions. |
| 39 | ******************************************************************************/ |
| 40 | #define L2CTLR_EL1 S3_1_C11_C0_2 /* Instruction def. */ |
| 41 | |
| 42 | #define L2CTLR_DATA_RAM_LATENCY_SHIFT 0 |
| 43 | #define L2CTLR_TAG_RAM_LATENCY_SHIFT 6 |
| 44 | |
| 45 | #define L2_DATA_RAM_LATENCY_3_CYCLES 0x2 |
Sandrine Bailleux | 29a7a03 | 2015-11-18 11:59:35 +0000 | [diff] [blame] | 46 | #define L2_TAG_RAM_LATENCY_2_CYCLES 0x1 |
Vikram Kanigiri | c47e011 | 2015-02-17 11:50:28 +0000 | [diff] [blame] | 47 | #define L2_TAG_RAM_LATENCY_3_CYCLES 0x2 |
| 48 | |
Naga Sureshkumar Relli | 6a72a91 | 2016-07-01 12:52:41 +0530 | [diff] [blame] | 49 | /******************************************************************************* |
| 50 | * L2 Memory Error Syndrome register specific definitions. |
| 51 | ******************************************************************************/ |
| 52 | #define L2MERRSR_EL1 S3_1_C15_C2_3 /* Instruction def. */ |
| 53 | |
Vikram Kanigiri | c47e011 | 2015-02-17 11:50:28 +0000 | [diff] [blame] | 54 | #endif /* __CORTEX_A72_H__ */ |