Merge tag 'locking-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux/fpc-iii.git] / arch / arm / include / asm / arm-cci.h
blob7537bd79065700fd26925eac82d80c1a2a5f2948
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * arch/arm/include/asm/arm-cci.h
5 * Copyright (C) 2015 ARM Ltd.
6 */
8 #ifndef __ASM_ARM_CCI_H
9 #define __ASM_ARM_CCI_H
11 #ifdef CONFIG_MCPM
12 #include <asm/mcpm.h>
15 * We don't have a reliable way of detecting whether,
16 * if we have access to secure-only registers, unless
17 * mcpm is registered.
19 static inline bool platform_has_secure_cci_access(void)
21 return mcpm_is_available();
24 #else
25 static inline bool platform_has_secure_cci_access(void)
27 return false;
29 #endif
31 #endif