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