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
86e07ae6
Unverified
Commit
86e07ae6
authored
Jun 27, 2018
by
Dimitris Papastamos
Committed by
GitHub
Jun 27, 2018
Browse files
Merge pull request #1453 from soby-mathew/sm/set_cntfrq_bl1
ARM platforms: Initialize cntfrq for BL1 Firmware update
parents
a5298db2
3208edcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/firmware-design.rst
View file @
86e07ae6
...
...
@@ -306,6 +306,8 @@ On Arm platforms, BL1 performs the following platform initializations:
- If the BL1 dynamic configuration file, ``TB_FW_CONFIG``, is available, then
load it to the platform defined address and make it available to BL2 via
``arg0``.
- Configure the system timer and program the `CNTFRQ_EL0` for use by NS-BL1U
and NS-BL2U firmware update images.
Firmware Update detection and execution
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
...
plat/arm/common/arm_bl1_setup.c
View file @
86e07ae6
...
...
@@ -118,6 +118,12 @@ void arm_bl1_platform_setup(void)
#if LOAD_IMAGE_V2
arm_load_tb_fw_config
();
#endif
/*
* Allow access to the System counter timer module and program
* counter frequency for non secure images during FWU
*/
arm_configure_sys_timer
();
write_cntfrq_el0
(
plat_get_syscnt_freq2
());
}
void
bl1_platform_setup
(
void
)
...
...
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