blob: b1486667f99434faa1c0e4f439803f5bddfa1296 [file] [log] [blame]
Etienne Carriere7ad2c012019-12-08 08:14:03 +01001/*
2 * Copyright (c) 2017-2020, STMicroelectronics - All Rights Reserved
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef STM32MP_SHARED_RESOURCES_H
8#define STM32MP_SHARED_RESOURCES_H
9
10#include <stdbool.h>
11
12/* Return true if @clock_id is shared by secure and non-secure worlds */
13bool stm32mp_nsec_can_access_clock(unsigned long clock_id);
14
15/* Return true if and only if @reset_id relates to a non-secure peripheral */
16bool stm32mp_nsec_can_access_reset(unsigned int reset_id);
17
Etienne Carriere7a4a34f2020-05-13 10:07:45 +020018/* Consolidate peripheral states and lock against new peripheral registering */
19void stm32mp_lock_periph_registering(void);
20
Etienne Carriere7ad2c012019-12-08 08:14:03 +010021#endif /* STM32MP_SHARED_RESOURCES_H */