From 5438614509d80bc0b1981b749e9cb688f1769dfb Mon Sep 17 00:00:00 2001 From: Eric Miao Date: Mon, 19 Jan 2009 18:43:12 +0800 Subject: [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 , which doesn't make much sense. Signed-off-by: Eric Miao --- arch/arm/mach-pxa/lubbock.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch/arm/mach-pxa/lubbock.c') 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 @@ #include #include #include +#include #include "generic.h" #include "clock.h" @@ -112,8 +113,14 @@ static unsigned long lubbock_pin_config[] __initdata = { GPIO1_GPIO | WAKEUP_ON_EDGE_RISE, }; +#define LUB_HEXLED __LUB_REG(LUBBOCK_FPGA_PHYS + 0x010) #define LUB_MISC_WR __LUB_REG(LUBBOCK_FPGA_PHYS + 0x080) +void lubbock_set_hexled(uint32_t value) +{ + LUB_HEXLED = value; +} + void lubbock_set_misc_wr(unsigned int mask, unsigned int set) { unsigned long flags; -- cgit v1.2.3