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 | |
| 7 | #ifndef __SOC_ROCKCHIP_RK3399_SUSPEND_H__ |
| 8 | #define __SOC_ROCKCHIP_RK3399_SUSPEND_H__ |
| 9 | #include <dram.h> |
| 10 | |
| 11 | #define KHz (1000) |
| 12 | #define MHz (1000 * KHz) |
| 13 | #define GHz (1000 * MHz) |
| 14 | |
| 15 | #define PI_CA_TRAINING (1 << 0) |
| 16 | #define PI_WRITE_LEVELING (1 << 1) |
| 17 | #define PI_READ_GATE_TRAINING (1 << 2) |
| 18 | #define PI_READ_LEVELING (1 << 3) |
| 19 | #define PI_WDQ_LEVELING (1 << 4) |
| 20 | #define PI_FULL_TRAINING (0xff) |
| 21 | |
| 22 | void dmc_save(void); |
Derek Basehore | bfb73e6 | 2017-05-15 21:18:28 -0700 | [diff] [blame] | 23 | __pmusramfunc void dmc_restore(void); |
Caesar Wang | f33eb2c | 2016-10-27 01:13:16 +0800 | [diff] [blame] | 24 | |
| 25 | #endif /* __DRAM_H__ */ |