runtime_errata.S 537 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2023, Arm Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <asm_macros.S>
  7. #include <cortex_a510.h>
  8. #include <cpu_macros.S>
  9. /*
  10. * void apply_cpu_pwr_dwn_errata(void);
  11. *
  12. * This function applies various CPU errata during power down.
  13. */
  14. .globl apply_cpu_pwr_dwn_errata
  15. func apply_cpu_pwr_dwn_errata
  16. mov x19, x30
  17. bl cpu_get_rev_var
  18. mov x18, x0
  19. #if ERRATA_A510_2684597
  20. bl errata_cortex_a510_2684597_wa
  21. #endif
  22. ret x19
  23. endfunc apply_cpu_pwr_dwn_errata