Commit e9cb89cf authored by Nishanth Menon's avatar Nishanth Menon Committed by Andrew F. Davis
Browse files

ti: k3: common: Program A53 arch timer frequency


Provide K3_TIMER_FREQUENCY for the platform configuration if the GTC
clock is selected statically and override option if the platform has a
different configuration.
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarBenjamin Fair <b-fair@ti.com>
Showing with 10 additions and 0 deletions
+10 -0
......@@ -115,6 +115,11 @@ void platform_mem_init(void)
/* Do nothing for now... */
}
unsigned int plat_get_syscnt_freq2(void)
{
return SYS_COUNTER_FREQ_IN_TICKS;
}
/*
* Empty function to prevent the console from being uninitialized after BL33 is
* started and allow us to see messages from BL31.
......
......@@ -143,4 +143,9 @@
#define CRASH_CONSOLE_CLK K3_USART_CLK_SPEED
#define CRASH_CONSOLE_BAUD_RATE K3_USART_BAUD
/* Timer frequency */
#ifndef SYS_COUNTER_FREQ_IN_TICKS
#define SYS_COUNTER_FREQ_IN_TICKS 200000000
#endif
#endif /* __PLATFORM_DEF_H__ */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment