suspend.h 621 B

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