xref: /kernel/linux/linux-5.10/arch/arm/include/asm/arm-cci.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/arm/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * arch/arm/include/asm/arm-cci.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2015 ARM Ltd.
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef __ASM_ARM_CCI_H
98c2ecf20Sopenharmony_ci#define __ASM_ARM_CCI_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#ifdef CONFIG_MCPM
128c2ecf20Sopenharmony_ci#include <asm/mcpm.h>
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci/*
158c2ecf20Sopenharmony_ci * We don't have a reliable way of detecting whether,
168c2ecf20Sopenharmony_ci * if we have access to secure-only registers, unless
178c2ecf20Sopenharmony_ci * mcpm is registered.
188c2ecf20Sopenharmony_ci */
198c2ecf20Sopenharmony_cistatic inline bool platform_has_secure_cci_access(void)
208c2ecf20Sopenharmony_ci{
218c2ecf20Sopenharmony_ci	return mcpm_is_available();
228c2ecf20Sopenharmony_ci}
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#else
258c2ecf20Sopenharmony_cistatic inline bool platform_has_secure_cci_access(void)
268c2ecf20Sopenharmony_ci{
278c2ecf20Sopenharmony_ci	return false;
288c2ecf20Sopenharmony_ci}
298c2ecf20Sopenharmony_ci#endif
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#endif
32

Indexes created Thu Nov 07 10:32:03 CST 2024