plat_setup.c 545 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2015 - 2020, Broadcom
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <plat/common/platform.h>
  7. #include <platform_def.h>
  8. /*
  9. * This function returns the fixed clock frequency at which private
  10. * timers run. This value will be programmed into CNTFRQ_EL0.
  11. */
  12. unsigned int plat_get_syscnt_freq2(void)
  13. {
  14. return SYSCNT_FREQ;
  15. }
  16. static const char * const plat_prefix_str[] = {
  17. "E: ", "N: ", "W: ", "I: ", "V: "
  18. };
  19. const char *plat_log_get_prefix(unsigned int log_level)
  20. {
  21. return plat_prefix_str[log_level - 1U];
  22. }