pm.h 590 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Blackfin bf609 power management
  3. *
  4. * Copyright 2011 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2
  7. */
  8. #ifndef __PM_H__
  9. #define __PM_H__
  10. #include <linux/suspend.h>
  11. struct bfin_cpu_pm_fns {
  12. void (*save)(unsigned long *);
  13. void (*restore)(unsigned long *);
  14. int (*valid)(suspend_state_t state);
  15. void (*enter)(suspend_state_t state);
  16. int (*prepare)(void);
  17. void (*finish)(void);
  18. };
  19. extern struct bfin_cpu_pm_fns *bfin_cpu_pm;
  20. # ifdef CONFIG_BFIN_COREB
  21. void bfin_coreb_start(void);
  22. void bfin_coreb_stop(void);
  23. void bfin_coreb_reset(void);
  24. # endif
  25. #endif