mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-27 23:35:10 +00:00

STM32MP1 SoC includes peripheral interfaces that can be assigned to the secure world, or that can be opened to the non-secure world. This change introduces the basics of a driver that manages such resources which assignation is done at run time. It currently offers API functions that state whether a service exposed to non-secure world has permission to access a targeted clock or reset controller. Change-Id: Iff20028f41586bc501085488c03546ffe31046d8 Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
19 lines
464 B
C
19 lines
464 B
C
/*
|
|
* Copyright (c) 2017-2020, STMicroelectronics - All Rights Reserved
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <stm32mp_shared_resources.h>
|
|
|
|
/* Currently allow full access by non-secure to platform clock services */
|
|
bool stm32mp_nsec_can_access_clock(unsigned long clock_id)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
/* Currently allow full access by non-secure to platform reset services */
|
|
bool stm32mp_nsec_can_access_reset(unsigned int reset_id)
|
|
{
|
|
return true;
|
|
}
|