summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/board/compal_e99
diff options
context:
space:
mode:
authorSteve Markgraf <steve@steve-m.de>2011-02-06 17:33:59 +0100
committerSteve Markgraf <steve@steve-m.de>2011-02-06 17:33:59 +0100
commitdf566b6e4ae39c0d53d9612e6a893aaa45e5c45b (patch)
tree03d9fc4941c3959962a0ac48e2a41ec50f392a8f /src/target/firmware/board/compal_e99
parent837710c2855ad4c15980b9860ed793f8b791bdbd (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_e99')
-rw-r--r--src/target/firmware/board/compal_e99/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/firmware/board/compal_e99/init.c b/src/target/firmware/board/compal_e99/init.c
index 47725a99..ed45c39c 100644
--- a/src/target/firmware/board/compal_e99/init.c
+++ b/src/target/firmware/board/compal_e99/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 C155 backlight (IO1) */
/* FIXME: Put the display backlight control to backlight.c */
- reg = readw(ARMIO_CNTL_REG);
+ reg = readw(IO_CNTL_REG);
reg &= ~( (1 << 3) | (1 << 1));
- writew(reg, ARMIO_CNTL_REG);
+ writew(reg, IO_CNTL_REG);
/* LCD Set I/O(3) output low */
reg = readw(ARMIO_LATCH_OUT);