summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/calypso
diff options
context:
space:
mode:
authorIngo Albrecht <prom@berlin.ccc.de>2010-03-09 05:35:27 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-15 00:15:22 +0800
commitd960c73a940a9cdd6bf4aec4ff69e6fa6193b843 (patch)
tree0fe0578bdcc77c85131b5b0424e235a24080b5f4 /src/target/firmware/calypso
parent83109b58f5865a99a9dd6b6fc6285f5f8e6851d7 (diff)
firmware: fixed bootrom disabling
Diffstat (limited to 'src/target/firmware/calypso')
-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 d5b2c090..8ea5b9ca 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));
}