USB: serial: option: reimplement interface masking
[linux/fpc-iii.git] / arch / arm / include / asm / arm-cci.h
blobfe77f7ab7e6bbb91f2683cc46b169ae76eabc8ca
1 /*
2 * arch/arm/include/asm/arm-cci.h
4 * Copyright (C) 2015 ARM Ltd.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef __ASM_ARM_CCI_H
20 #define __ASM_ARM_CCI_H
22 #ifdef CONFIG_MCPM
23 #include <asm/mcpm.h>
26 * We don't have a reliable way of detecting whether,
27 * if we have access to secure-only registers, unless
28 * mcpm is registered.
30 static inline bool platform_has_secure_cci_access(void)
32 return mcpm_is_available();
35 #else
36 static inline bool platform_has_secure_cci_access(void)
38 return false;
40 #endif
42 #endif