PRCM: OMAP3: Fix to wrongly modified omap2_clk_wait_ready
[linux-ginger.git] / arch / arm / mach-omap2 / pm.h
blob351456e084a102d26cd122bf4009aaaf31f11879
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
6 * OMAP Power Management Routines
8 * Copyright (C) 2008 Nokia Corporation
9 * Jouni Hogander
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.
16 extern int omap2_pm_init(void);
17 extern int omap3_pm_init(void);
19 extern unsigned short enable_dyn_sleep;
20 extern atomic_t sleep_block;
22 #ifdef CONFIG_PM_DEBUG
23 extern u32 omap2_read_32k_sync_counter(void);
24 extern void omap2_pm_dump(int mode, int resume, unsigned int us);
25 extern void serial_console_fclk_mask(u32 *f1, u32 *f2);
26 extern void pm_init_serial_console(void);
27 extern void serial_console_sleep(int enable);
28 extern int omap2_pm_debug;
29 #else
30 #define omap2_read_32k_sync_counter() 0;
31 #define serial_console_sleep(enable) do; while(0)
32 #define pm_init_serial_console() do; while(0)
33 #define omap2_pm_dump(mode,resume,us) do; while(0)
34 #define serial_console_fclk_mask(f1,f2) do; while(0)
35 #define omap2_pm_debug 0
36 #endif /* CONFIG_PM_DEBUG */
37 #endif