xref: /linux/include/linux/soc/samsung/s3c-pm.h (revision 4b132aacb0768ac1e652cf517097ea6f237214b9)
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 
19 static inline void s3c_pm_save_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