1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (C) 2013 Samsung Electronics Co., Ltd.
4  *	Tomasz Figa <t.figa@samsung.com>
5  * Copyright (c) 2004 Simtec Electronics
6  *	http://armlinux.simtec.co.uk/
7  *	Written by Ben Dooks, <ben@simtec.co.uk>
8  */
9 
10 #ifndef __LINUX_SOC_SAMSUNG_S3C_PM_H
11 #define __LINUX_SOC_SAMSUNG_S3C_PM_H __FILE__
12 
13 #include <linux/types.h>
14 
15 /* PM debug functions */
16 
17 #define S3C_PMDBG(fmt...) pr_debug(fmt)
18 
s3c_pm_save_uarts(bool is_s3c24xx)19 static inline void s3c_pm_save_uarts(bool is_s3c24xx) { }
s3c_pm_restore_uarts(bool is_s3c24xx)20 static inline void s3c_pm_restore_uarts(bool is_s3c24xx) { }
21 
22 /* suspend memory checking */
23 
24 #ifdef CONFIG_SAMSUNG_PM_CHECK
25 extern void s3c_pm_check_prepare(void);
26 extern void s3c_pm_check_restore(void);
27 extern void s3c_pm_check_cleanup(void);
28 extern void s3c_pm_check_store(void);
29 #else
30 #define s3c_pm_check_prepare() do { } while (0)
31 #define s3c_pm_check_restore() do { } while (0)
32 #define s3c_pm_check_cleanup() do { } while (0)
33 #define s3c_pm_check_store()   do { } while (0)
34 #endif
35 
36 #endif
37