cortex_a77.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (c) 2018-2022, Arm Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef CORTEX_A77_H
  7. #define CORTEX_A77_H
  8. #include <lib/utils_def.h>
  9. /* Cortex-A77 MIDR */
  10. #define CORTEX_A77_MIDR U(0x410FD0D0)
  11. /* Cortex-A77 loop count for CVE-2022-23960 mitigation */
  12. #define CORTEX_A77_BHB_LOOP_COUNT U(24)
  13. /*******************************************************************************
  14. * CPU Extended Control register specific definitions.
  15. ******************************************************************************/
  16. #define CORTEX_A77_CPUECTLR_EL1 S3_0_C15_C1_4
  17. #define CORTEX_A77_CPUECTLR_EL1_BIT_8 (ULL(1) << 8)
  18. #define CORTEX_A77_CPUECTLR_EL1_BIT_53 (ULL(1) << 53)
  19. /*******************************************************************************
  20. * CPU Power Control register specific definitions.
  21. ******************************************************************************/
  22. #define CORTEX_A77_CPUPWRCTLR_EL1 S3_0_C15_C2_7
  23. #define CORTEX_A77_CPUPWRCTLR_EL1_CORE_PWRDN_BIT (U(1) << 0)
  24. /*******************************************************************************
  25. * CPU Auxiliary Control register specific definitions.
  26. ******************************************************************************/
  27. #define CORTEX_A77_ACTLR2_EL1 S3_0_C15_C1_1
  28. #define CORTEX_A77_ACTLR2_EL1_BIT_2 (ULL(1) << 2)
  29. #define CORTEX_A77_ACTLR2_EL1_BIT_0 ULL(1)
  30. #define CORTEX_A77_CPUPSELR_EL3 S3_6_C15_C8_0
  31. #define CORTEX_A77_CPUPCR_EL3 S3_6_C15_C8_1
  32. #define CORTEX_A77_CPUPOR_EL3 S3_6_C15_C8_2
  33. #define CORTEX_A77_CPUPMR_EL3 S3_6_C15_C8_3
  34. #define CORTEX_A77_CPUPOR2_EL3 S3_6_C15_C8_4
  35. #define CORTEX_A77_CPUPMR2_EL3 S3_6_C15_C8_5
  36. #endif /* CORTEX_A77_H */