Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
6c681439
Commit
6c681439
authored
Jul 02, 2020
by
Mark Dykes
Committed by
TrustedFirmware Code Review
Jul 02, 2020
Browse files
Merge "stm32mp1: introduce shared resources support" into integration
parents
1f8ea715
47cf5d3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
plat/st/common/include/stm32mp_shared_resources.h
0 → 100644
View file @
6c681439
/*
* Copyright (c) 2017-2020, STMicroelectronics - All Rights Reserved
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef STM32MP_SHARED_RESOURCES_H
#define STM32MP_SHARED_RESOURCES_H
#include <stdbool.h>
/* Return true if @clock_id is shared by secure and non-secure worlds */
bool
stm32mp_nsec_can_access_clock
(
unsigned
long
clock_id
);
/* Return true if and only if @reset_id relates to a non-secure peripheral */
bool
stm32mp_nsec_can_access_reset
(
unsigned
int
reset_id
);
#endif
/* STM32MP_SHARED_RESOURCES_H */
plat/st/stm32mp1/sp_min/sp_min-stm32mp1.mk
View file @
6c681439
...
...
@@ -6,10 +6,13 @@
SP_MIN_WITH_SECURE_FIQ
:=
1
BL32_CFLAGS
+=
-DSTM32MP_SHARED_RESOURCES
BL32_SOURCES
+=
drivers/st/etzpc/etzpc.c
\
plat/common/aarch32/platform_mp_stack.S
\
plat/st/stm32mp1/sp_min/sp_min_setup.c
\
plat/st/stm32mp1/stm32mp1_pm.c
\
plat/st/stm32mp1/stm32mp1_shared_resources.c
\
plat/st/stm32mp1/stm32mp1_topology.c
# Generic GIC v2
...
...
plat/st/stm32mp1/stm32mp1_shared_resources.c
0 → 100644
View file @
6c681439
/*
* 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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment