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); |
| 23 | __sramfunc void dmc_restore(void); |
| 24 | __sramfunc void sram_regcpy(uintptr_t dst, uintptr_t src, uint32_t num); |
| 25 | |
| 26 | #endif /* __DRAM_H__ */ |