diff options
author | Eric Miao <eric.miao@marvell.com> | 2009-01-19 05:43:12 -0500 |
---|---|---|
committer | Eric Miao <eric.miao@marvell.com> | 2009-03-09 09:22:40 -0400 |
commit | 5438614509d80bc0b1981b749e9cb688f1769dfb (patch) | |
tree | ce2ae69972967da22a8f2245ba58cc3152b77455 /arch/arm/mach-pxa/pm.c | |
parent | b393c69652333be31ad7a8205761c0d5b7f3e167 (diff) |
[ARM] pxa: make lubbock specific debugging stuffs back into lubbock.c
This isn't perfect but at least solves the problem of pm.c's dependency
on register definitions in <mach/lubbock.h>, which doesn't make much
sense.
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm/mach-pxa/pm.c')
-rw-r--r-- | arch/arm/mach-pxa/pm.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/arch/arm/mach-pxa/pm.c b/arch/arm/mach-pxa/pm.c index 164eb0bb6321..884b174c8ead 100644 --- a/arch/arm/mach-pxa/pm.c +++ b/arch/arm/mach-pxa/pm.c | |||
@@ -14,15 +14,8 @@ | |||
14 | #include <linux/module.h> | 14 | #include <linux/module.h> |
15 | #include <linux/suspend.h> | 15 | #include <linux/suspend.h> |
16 | #include <linux/errno.h> | 16 | #include <linux/errno.h> |
17 | #include <linux/time.h> | ||
18 | 17 | ||
19 | #include <mach/hardware.h> | ||
20 | #include <asm/memory.h> | ||
21 | #include <asm/system.h> | ||
22 | #include <mach/pm.h> | 18 | #include <mach/pm.h> |
23 | #include <mach/pxa-regs.h> | ||
24 | #include <mach/lubbock.h> | ||
25 | #include <asm/mach/time.h> | ||
26 | 19 | ||
27 | struct pxa_cpu_pm_fns *pxa_cpu_pm_fns; | 20 | struct pxa_cpu_pm_fns *pxa_cpu_pm_fns; |
28 | static unsigned long *sleep_save; | 21 | static unsigned long *sleep_save; |
@@ -57,9 +50,9 @@ int pxa_pm_enter(suspend_state_t state) | |||
57 | 50 | ||
58 | /* if invalid, display message and wait for a hardware reset */ | 51 | /* if invalid, display message and wait for a hardware reset */ |
59 | if (checksum != sleep_save_checksum) { | 52 | if (checksum != sleep_save_checksum) { |
60 | #ifdef CONFIG_ARCH_LUBBOCK | 53 | |
61 | LUB_HEXLED = 0xbadbadc5; | 54 | lubbock_set_hexled(0xbadbadc5); |
62 | #endif | 55 | |
63 | while (1) | 56 | while (1) |
64 | pxa_cpu_pm_fns->enter(state); | 57 | pxa_cpu_pm_fns->enter(state); |
65 | } | 58 | } |