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
d8dc8c9e
Commit
d8dc8c9e
authored
Apr 21, 2021
by
Manish Pandey
Committed by
TrustedFirmware Code Review
Apr 21, 2021
Browse files
Merge "plat: xilinx: zynqmp: Configure counter frequency during initialization" into integration
parents
617632bf
9f0ddae3
Changes
2
Show whitespace changes
Inline
Side-by-side
plat/xilinx/zynqmp/aarch64/zynqmp_common.c
View file @
d8dc8c9e
...
...
@@ -350,10 +350,19 @@ unsigned int zynqmp_get_bootmode(void)
void
zynqmp_config_setup
(
void
)
{
uint64_t
counter_freq
;
/* Configure IPI data for ZynqMP */
zynqmp_ipi_config_table_init
();
zynqmp_print_platform_name
();
/* Configure counter frequency */
counter_freq
=
read_cntfrq_el0
();
if
(
counter_freq
==
ZYNQMP_DEFAULT_COUNTER_FREQ
)
{
write_cntfrq_el0
(
plat_get_syscnt_freq2
());
}
generic_delay_timer_init
();
}
...
...
plat/xilinx/zynqmp/include/zynqmp_def.h
View file @
d8dc8c9e
...
...
@@ -17,6 +17,9 @@
#define ZYNQMP_CONSOLE_IS(con) (ZYNQMP_CONSOLE_ID_ ## con == ZYNQMP_CONSOLE)
/* Default counter frequency */
#define ZYNQMP_DEFAULT_COUNTER_FREQ 0U
/* Firmware Image Package */
#define ZYNQMP_PRIMARY_CPU 0
...
...
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