Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
30568032
Commit
30568032
authored
11 years ago
by
Jon Medhurst
Committed by
Sandrine Bailleux
11 years ago
Browse files
Options
Download
Email Patches
Plain Diff
juno: Initialise architected timer in BL3-1
parent
b8629516
v0.3-Juno
v0.3-Juno-0.3
v0.3-Juno-0.2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plat/juno/bl31_plat_setup.c
+12
-0
plat/juno/bl31_plat_setup.c
with
12 additions
and
0 deletions
+12
-0
plat/juno/bl31_plat_setup.c
View file @
30568032
...
...
@@ -29,6 +29,8 @@
*/
#include <platform.h>
#include <assert.h>
#include <arch_helpers.h>
/*******************************************************************************
* Declarations of linker defined symbols which will help us find the layout
...
...
@@ -120,9 +122,19 @@ void bl31_early_platform_setup(bl31_args *from_bl2,
******************************************************************************/
void
bl31_platform_setup
()
{
unsigned
int
counter_base_frequency
;
/* Initialize the gic cpu and distributor interfaces */
gic_setup
();
/* Read the frequency from Frequency modes table */
counter_base_frequency
=
mmio_read_32
(
SYS_CNTCTL_BASE
+
CNTFID_OFF
);
/* The first entry of the frequency modes table must not be 0 */
assert
(
counter_base_frequency
!=
0
);
/* Program the counter frequency */
write_cntfrq_el0
(
counter_base_frequency
);
/* Topologies are best known to the platform. */
plat_setup_topology
();
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help