fvp_r_arch_helpers.h 888 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2021, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef FVP_R_ARCH_HELPERS_H
  7. #define FVP_R_ARCH_HELPERS_H
  8. #include <arch_helpers.h>
  9. /*******************************************************************************
  10. * MPU register definitions
  11. ******************************************************************************/
  12. #define MPUIR_EL2 S3_4_C0_C0_4
  13. #define PRBAR_EL2 S3_4_C6_C8_0
  14. #define PRLAR_EL2 S3_4_C6_C8_1
  15. #define PRSELR_EL2 S3_4_C6_C2_1
  16. #define PRENR_EL2 S3_4_C6_C1_1
  17. /* v8-R64 MPU registers */
  18. DEFINE_RENAME_SYSREG_RW_FUNCS(mpuir_el2, MPUIR_EL2)
  19. DEFINE_RENAME_SYSREG_RW_FUNCS(prenr_el2, PRENR_EL2)
  20. DEFINE_RENAME_SYSREG_RW_FUNCS(prselr_el2, PRSELR_EL2)
  21. DEFINE_RENAME_SYSREG_RW_FUNCS(prbar_el2, PRBAR_EL2)
  22. DEFINE_RENAME_SYSREG_RW_FUNCS(prlar_el2, PRLAR_EL2)
  23. #endif /* FVP_R_ARCH_HELPERS_H */