summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/calypso/clock.c
diff options
context:
space:
mode:
authorIngo Albrecht2010-03-09 05:35:27 +0100
committerHarald Welte2010-03-14 17:15:22 +0100
commitd960c73a940a9cdd6bf4aec4ff69e6fa6193b843 (patch)
tree0fe0578bdcc77c85131b5b0424e235a24080b5f4 /src/target/firmware/calypso/clock.c
parentfirmware: watchdog-based system reset (diff)
downloadosmocom-d960c73a940a9cdd6bf4aec4ff69e6fa6193b843.tar.gz
osmocom-d960c73a940a9cdd6bf4aec4ff69e6fa6193b843.tar.xz
osmocom-d960c73a940a9cdd6bf4aec4ff69e6fa6193b843.zip
firmware: fixed bootrom disabling
Diffstat (limited to 'src/target/firmware/calypso/clock.c')
-rw-r--r--src/target/firmware/calypso/clock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/target/firmware/calypso/clock.c b/src/target/firmware/calypso/clock.c
index d5b2c09..8ea5b9c 100644
--- a/src/target/firmware/calypso/clock.c
+++ b/src/target/firmware/calypso/clock.c
@@ -169,11 +169,10 @@ void calypso_bootrom(int enable)
conf &= ~(3 << 8);
- // XXX: this can't be correct
if (enable)
conf |= (1 << 8);
else
- conf |= (1 << 8);
+ conf &= ~(1 << 8);
writew(conf, MEMIF_REG(EXTRA_CONF));
}