diff options
author | Nishanth Menon <nm@ti.com> | 2016-10-14 01:13:48 +0000 |
---|---|---|
committer | Andrew F. Davis <afd@ti.com> | 2018-06-19 12:42:37 -0500 |
commit | e9cb89cfca8dad4d84e59a28932483fb3ddf8504 (patch) | |
tree | d7c6ebccafc7618fbe0decbb3b3675fbfb88e3cc /plat | |
parent | fff6ffca5b6594a2198db131dcbd40f8a4b0de85 (diff) | |
download | platform_external_arm-trusted-firmware-e9cb89cfca8dad4d84e59a28932483fb3ddf8504.tar.gz platform_external_arm-trusted-firmware-e9cb89cfca8dad4d84e59a28932483fb3ddf8504.tar.bz2 platform_external_arm-trusted-firmware-e9cb89cfca8dad4d84e59a28932483fb3ddf8504.zip |
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: Nishanth Menon <nm@ti.com>
Signed-off-by: Benjamin Fair <b-fair@ti.com>
Diffstat (limited to 'plat')
-rw-r--r-- | plat/ti/k3/common/k3_bl31_setup.c | 5 | ||||
-rw-r--r-- | plat/ti/k3/include/platform_def.h | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/plat/ti/k3/common/k3_bl31_setup.c b/plat/ti/k3/common/k3_bl31_setup.c index 866f6e420..dea2802eb 100644 --- a/plat/ti/k3/common/k3_bl31_setup.c +++ b/plat/ti/k3/common/k3_bl31_setup.c @@ -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. diff --git a/plat/ti/k3/include/platform_def.h b/plat/ti/k3/include/platform_def.h index 7b38be57c..a82bb362d 100644 --- a/plat/ti/k3/include/platform_def.h +++ b/plat/ti/k3/include/platform_def.h @@ -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__ */ |