hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * (C) Copyright 2017 Rockchip Electronics Co., Ltd
 *
 * SPDX-License-Identifier:     GPL-2.0+
 */
 
#ifndef SUSPEND_H
#define SUSPEND_H
#include <common.h>
#include <asm-generic/global_data.h>
 
/* suspend/resume core functions */
void cpu_suspend_save(struct pm_ctx *ptr, unsigned long sp);
void cpu_do_suspend(unsigned long *ptr);
 
void cpu_resume(void);
void cpu_do_resume(void);
 
/*
 * Exported to platform suspend, arg will be passed to fn as r0
 * Return value: 0  - cpu resumed from suspended state.
 *               -1 - cpu not suspended.
 */
int cpu_suspend(unsigned long arg, int (*fn)(unsigned long));
#endif