1 /*
2  * Copyright (c) 2016-2021, ARM Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef SUSPEND_H
8 #define SUSPEND_H
9 
10 #include <stdint.h>
11 #include <dram.h>
12 
13 #define KHz (1000)
14 #define MHz (1000 * KHz)
15 #define GHz (1000 * MHz)
16 
17 #define PI_CA_TRAINING		(1 << 0)
18 #define PI_WRITE_LEVELING	(1 << 1)
19 #define PI_READ_GATE_TRAINING	(1 << 2)
20 #define PI_READ_LEVELING	(1 << 3)
21 #define PI_WDQ_LEVELING		(1 << 4)
22 #define PI_FULL_TRAINING	(0xff)
23 
24 void dmc_suspend(void);
25 __pmusramfunc void dmc_resume(void);
26 extern __pmusramdata uint8_t pmu_enable_watchdog0;
27 
28 #endif /* SUSPEND_H */
29