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/lubbock.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/lubbock.c')
-rw-r--r-- | arch/arm/mach-pxa/lubbock.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/lubbock.c b/arch/arm/mach-pxa/lubbock.c index 03a43ea148a9..f04c8333dff7 100644 --- a/arch/arm/mach-pxa/lubbock.c +++ b/arch/arm/mach-pxa/lubbock.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include <mach/irda.h> | 49 | #include <mach/irda.h> |
50 | #include <mach/pxafb.h> | 50 | #include <mach/pxafb.h> |
51 | #include <mach/mmc.h> | 51 | #include <mach/mmc.h> |
52 | #include <mach/pm.h> | ||
52 | 53 | ||
53 | #include "generic.h" | 54 | #include "generic.h" |
54 | #include "clock.h" | 55 | #include "clock.h" |
@@ -112,8 +113,14 @@ static unsigned long lubbock_pin_config[] __initdata = { | |||
112 | GPIO1_GPIO | WAKEUP_ON_EDGE_RISE, | 113 | GPIO1_GPIO | WAKEUP_ON_EDGE_RISE, |
113 | }; | 114 | }; |
114 | 115 | ||
116 | #define LUB_HEXLED __LUB_REG(LUBBOCK_FPGA_PHYS + 0x010) | ||
115 | #define LUB_MISC_WR __LUB_REG(LUBBOCK_FPGA_PHYS + 0x080) | 117 | #define LUB_MISC_WR __LUB_REG(LUBBOCK_FPGA_PHYS + 0x080) |
116 | 118 | ||
119 | void lubbock_set_hexled(uint32_t value) | ||
120 | { | ||
121 | LUB_HEXLED = value; | ||
122 | } | ||
123 | |||
117 | void lubbock_set_misc_wr(unsigned int mask, unsigned int set) | 124 | void lubbock_set_misc_wr(unsigned int mask, unsigned int set) |
118 | { | 125 | { |
119 | unsigned long flags; | 126 | unsigned long flags; |