]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/arm/mach-omap2/pm.h
24XX: PM: Move debugging related code to pm-debug.c
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / pm.h
1 #ifndef __ARCH_ARM_MACH_OMAP2_PM_H
2 #define __ARCH_ARM_MACH_OMAP2_PM_H
3 /*
4  * linux/arch/arm/mach-omap2/pm.h
5  *
6  * OMAP Power Management Routines
7  *
8  * Copyright (C) 2008 Nokia Corporation
9  * Jouni Hogander
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License version 2 as
13  * published by the Free Software Foundation.
14  */
15
16 #ifdef CONFIG_PM_DEBUG
17 extern u32 omap2_read_32k_sync_counter(void);
18 extern void omap2_pm_dump(int mode, int resume, unsigned int us);
19 extern void serial_console_fclk_mask(u32 *f1, u32 *f2);
20 extern void pm_init_serial_console(void);
21 extern void serial_console_sleep(int enable);
22 extern int omap2_pm_debug;
23 #else
24 #define omap2_read_32k_sync_counter() 0;
25 #define serial_console_sleep(enable) do; while(0)
26 #define pm_init_serial_console() do; while(0)
27 #define omap2_pm_dump(mode,resume,us) do; while(0)
28 #define serial_console_fclk_mask(f1,f2)  do; while(0)
29 #define omap2_pm_debug 0
30 #endif /* CONFIG_PM_DEBUG */
31 #endif