diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2010-09-09 07:50:39 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-10-19 20:46:22 (GMT) |
commit | 3ba8bf7c6d6c09b9823b08b03d2d155907313238 (patch) | |
tree | dcb9243cd47eb640e306ba6eba658e14b7429809 /board/cradle | |
parent | 9f80a20e05f20ab6b20be3addee969e1306ee3d5 (diff) | |
download | u-boot-3ba8bf7c6d6c09b9823b08b03d2d155907313238.tar.xz |
PXA: pxa-regs.h cleanup
Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'board/cradle')
-rw-r--r-- | board/cradle/cradle.c | 5 | ||||
-rw-r--r-- | board/cradle/lowlevel_init.S | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/board/cradle/cradle.c b/board/cradle/cradle.c index 21eb655..c4a93f9 100644 --- a/board/cradle/cradle.c +++ b/board/cradle/cradle.c @@ -28,6 +28,7 @@ #include <asm/arch/pxa-regs.h> #include <common.h> #include <netdev.h> +#include <asm/io.h> DECLARE_GLOBAL_DATA_PTR; @@ -92,8 +93,8 @@ set_led (int led, int color) int shift = led * 2; unsigned long mask = 0x3 << shift; - CRADLE_LED_CLR_REG = mask; /* clear bits */ - CRADLE_LED_SET_REG = (color << shift); /* set bits */ + writel(mask, GPCR2); /* clear bits */ + writel((color << shift), GPSR2); /* set bits */ udelay (5000); } diff --git a/board/cradle/lowlevel_init.S b/board/cradle/lowlevel_init.S index 6b5cfb9..39964b6 100644 --- a/board/cradle/lowlevel_init.S +++ b/board/cradle/lowlevel_init.S @@ -34,10 +34,10 @@ DRAM_SIZE: .long CONFIG_SYS_DRAM_SIZE .endm .macro SET_LED val - ldr r6, =CRADLE_LED_CLR_REG + ldr r6, =GPCR2 ldr r7, =0 str r7, [r6] - ldr r6, =CRADLE_LED_SET_REG + ldr r6, =GPSR2 ldr r7, =\val str r7, [r6] .endm |