diff options
author | Steve Markgraf <steve@steve-m.de> | 2011-02-06 17:33:59 +0100 |
---|---|---|
committer | Steve Markgraf <steve@steve-m.de> | 2011-02-06 17:33:59 +0100 |
commit | df566b6e4ae39c0d53d9612e6a893aaa45e5c45b (patch) | |
tree | 03d9fc4941c3959962a0ac48e2a41ec50f392a8f /src/target/firmware/board/compal_e86 | |
parent | 837710c2855ad4c15980b9860ed793f8b791bdbd (diff) |
target/fw: correct IO_CNTL_REG name and small cosmetic fixes
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'src/target/firmware/board/compal_e86')
-rw-r--r-- | src/target/firmware/board/compal_e86/init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/firmware/board/compal_e86/init.c b/src/target/firmware/board/compal_e86/init.c index 92f0e3ba..537702c2 100644 --- a/src/target/firmware/board/compal_e86/init.c +++ b/src/target/firmware/board/compal_e86/init.c @@ -47,7 +47,7 @@ #include <display.h> #define ARMIO_LATCH_OUT 0xfffe4802 -#define ARMIO_CNTL_REG 0xfffe4804 +#define IO_CNTL_REG 0xfffe4804 #define ASIC_CONF_REG 0xfffef008 static void board_io_init(void) @@ -64,9 +64,9 @@ static void board_io_init(void) /* LCD Set I/O(3) to output mode and enable C140 backlight (IO1) */ /* FIXME: Put the display backlight control to backlight.c */ - reg = readw(ARMIO_CNTL_REG); - reg &= ~( (1 << 3) | (1 << 1)); - writew(reg, ARMIO_CNTL_REG); + reg = readw(IO_CNTL_REG); + reg &= ~((1 << 3) | (1 << 1)); + writew(reg, IO_CNTL_REG); /* LCD Set I/O(3) output low */ reg = readw(ARMIO_LATCH_OUT); |