aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/include/mach/pm.h
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2009-01-19 18:43:12 +0800
committerEric Miao <eric.miao@marvell.com>2009-03-09 21:22:40 +0800
commit5438614509d80bc0b1981b749e9cb688f1769dfb (patch)
treece2ae69972967da22a8f2245ba58cc3152b77455 /arch/arm/mach-pxa/include/mach/pm.h
parentb393c69652333be31ad7a8205761c0d5b7f3e167 (diff)
downloadkernel_samsung_smdk4412-5438614509d80bc0b1981b749e9cb688f1769dfb.zip
kernel_samsung_smdk4412-5438614509d80bc0b1981b749e9cb688f1769dfb.tar.gz
kernel_samsung_smdk4412-5438614509d80bc0b1981b749e9cb688f1769dfb.tar.bz2
[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/include/mach/pm.h')
-rw-r--r--arch/arm/mach-pxa/include/mach/pm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/include/mach/pm.h b/arch/arm/mach-pxa/include/mach/pm.h
index 8334246..a6eeef8 100644
--- a/arch/arm/mach-pxa/include/mach/pm.h
+++ b/arch/arm/mach-pxa/include/mach/pm.h
@@ -27,3 +27,13 @@ extern void pxa27x_cpu_suspend(unsigned int);
extern void pxa_cpu_resume(void);
extern int pxa_pm_enter(suspend_state_t state);
+
+/* NOTE: this is for PM debugging on Lubbock, it's really a big
+ * ugly, but let's keep the crap minimum here, instead of direct
+ * accessing the LUBBOCK CPLD registers in arch/arm/mach-pxa/pm.c
+ */
+#ifdef CONFIG_ARCH_LUBBOCK
+extern void lubbock_set_hexled(uint32_t value);
+#else
+#define lubbock_set_hexled(x)
+#endif