Caesar Wang | f33eb2c | 2016-10-27 01:13:16 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Caesar Wang | f33eb2c | 2016-10-27 01:13:16 +0800 | [diff] [blame] | 5 | */ |
| 6 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef SUSPEND_H |
| 8 | #define SUSPEND_H |
| 9 | |
Caesar Wang | f33eb2c | 2016-10-27 01:13:16 +0800 | [diff] [blame] | 10 | #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 Huang | 1f8fdeb | 2017-05-17 16:14:37 +0800 | [diff] [blame] | 23 | void dmc_suspend(void); |
| 24 | __pmusramfunc void dmc_resume(void); |
Caesar Wang | f33eb2c | 2016-10-27 01:13:16 +0800 | [diff] [blame] | 25 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 26 | #endif /* SUSPEND_H */ |