arm-cci.h 535 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * arch/arm/include/asm/arm-cci.h
  4. *
  5. * Copyright (C) 2015 ARM Ltd.
  6. */
  7. #ifndef __ASM_ARM_CCI_H
  8. #define __ASM_ARM_CCI_H
  9. #ifdef CONFIG_MCPM
  10. #include <asm/mcpm.h>
  11. /*
  12. * We don't have a reliable way of detecting whether,
  13. * if we have access to secure-only registers, unless
  14. * mcpm is registered.
  15. */
  16. static inline bool platform_has_secure_cci_access(void)
  17. {
  18. return mcpm_is_available();
  19. }
  20. #else
  21. static inline bool platform_has_secure_cci_access(void)
  22. {
  23. return false;
  24. }
  25. #endif
  26. #endif