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