summaryrefslogtreecommitdiffstats
path: root/src/target
diff options
context:
space:
mode:
authorMychaela Falconia <mychaela.falconia@gmail.com>2019-02-12 16:18:35 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-02-13 18:07:14 +0700
commit28aa9675192e4bca959fa0f29da7fc2908d22edc (patch)
treed51380669a75702e96f63b68f003a99e49224764 /src/target
parentaf2a12ed676f74ff5ee01dbc358dc1c2dd2e41c8 (diff)
firmware/board/compal_e99: enable reading the second half of flash
The ability to read the second half of flash on E99 is needed for the follow-up change, that implements reading of the factory RF calibration values. Change-Id: Ia677ebdc1ada9fd41daf211fd9da06cd118365fa Related: OS#3582
Diffstat (limited to 'src/target')
-rw-r--r--src/target/firmware/board/compal_e99/init.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/target/firmware/board/compal_e99/init.c b/src/target/firmware/board/compal_e99/init.c
index 7cc3c67..0271f16 100644
--- a/src/target/firmware/board/compal_e99/init.c
+++ b/src/target/firmware/board/compal_e99/init.c
@@ -51,6 +51,7 @@
#define ARMIO_LATCH_OUT 0xfffe4802
#define IO_CNTL_REG 0xfffe4804
+#define ARM_CONF_REG 0xfffef006
#define ASIC_CONF_REG 0xfffef008
static void board_io_init(void)
@@ -76,6 +77,11 @@ static void board_io_init(void)
reg &= ~(1 << 3);
reg |= (1 << 1);
writew(reg, ARMIO_LATCH_OUT);
+
+ /* configure ADD(22), needed for second half of flash */
+ reg = readw(ARM_CONF_REG);
+ reg |= (1 << 3);
+ writew(reg, ARM_CONF_REG);
}
void board_init(int with_irq)