blob: b99a9262f46ad5c549d2643ae224e6bedaf764ef [file] [log] [blame]
Caesar Wangf33eb2c2016-10-27 01:13:16 +08001/*
2 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
3 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Caesar Wangf33eb2c2016-10-27 01:13:16 +08005 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef SUSPEND_H
8#define SUSPEND_H
9
Caesar Wangf33eb2c2016-10-27 01:13:16 +080010#include <dram.h>
11
12#define KHz (1000)
13#define MHz (1000 * KHz)
14#define GHz (1000 * MHz)
15
16#define PI_CA_TRAINING (1 << 0)
17#define PI_WRITE_LEVELING (1 << 1)
18#define PI_READ_GATE_TRAINING (1 << 2)
19#define PI_READ_LEVELING (1 << 3)
20#define PI_WDQ_LEVELING (1 << 4)
21#define PI_FULL_TRAINING (0xff)
22
Lin Huang1f8fdeb2017-05-17 16:14:37 +080023void dmc_suspend(void);
24__pmusramfunc void dmc_resume(void);
Caesar Wangf33eb2c2016-10-27 01:13:16 +080025
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000026#endif /* SUSPEND_H */