summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/board/compal_e88/init.c
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_e88/init.c
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_e88/init.c')
-rw-r--r--src/target/firmware/board/compal_e88/init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/firmware/board/compal_e88/init.c b/src/target/firmware/board/compal_e88/init.c
index 5a4f882f..54deb6a2 100644
--- a/src/target/firmware/board/compal_e88/init.c
+++ b/src/target/firmware/board/compal_e88/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)
@@ -58,15 +58,15 @@ static void board_io_init(void)
/* LCD Set I/O(3) / SA0 to I/O(3) mode */
reg &= ~(1 << 10);
/* Set function pins to I2C Mode */
- reg |= 0x1080; /* SCL / SDA */
+ reg |= ((1 << 12) | (1 << 7)); /* SCL / SDA */
/* TWL3025: Set SPI+RIF RX clock to rising edge */
reg |= (1 << 13) | (1 << 14);
writew(reg, ASIC_CONF_REG);
/* LCD Set I/O(3) to output mode */
- reg = readw(ARMIO_CNTL_REG);
+ reg = readw(IO_CNTL_REG);
reg &= ~(1 << 3);
- writew(reg, ARMIO_CNTL_REG);
+ writew(reg, IO_CNTL_REG);
/* LCD Set I/O(3) output low */
reg = readw(ARMIO_LATCH_OUT);