summaryrefslogtreecommitdiff
path: root/tcl
diff options
context:
space:
mode:
authormichal smulski <michal.smulski@ooma.com>2010-06-14 15:13:09 -0700
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-15 07:39:59 +0200
commitbf3410fcc711f6601f1f8eb39c5df57cf8cfe535 (patch)
tree98382dc4b554dd0fe551af29f7d0a171ac34c214 /tcl
parent3e51d893ed3d1273b5487e05196f00fe3d14773d (diff)
downloadopenocd+libswd-bf3410fcc711f6601f1f8eb39c5df57cf8cfe535.tar.gz
openocd+libswd-bf3410fcc711f6601f1f8eb39c5df57cf8cfe535.tar.bz2
openocd+libswd-bf3410fcc711f6601f1f8eb39c5df57cf8cfe535.tar.xz
openocd+libswd-bf3410fcc711f6601f1f8eb39c5df57cf8cfe535.zip
arm1136 scripts
Here is a patch to fix a startup in C100 (arm1136). Basically make sure that UART is configured before using it. Michal Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'tcl')
-rw-r--r--tcl/target/c100helper.tcl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tcl/target/c100helper.tcl b/tcl/target/c100helper.tcl
index 477fe5c2..2a12c362 100644
--- a/tcl/target/c100helper.tcl
+++ b/tcl/target/c100helper.tcl
@@ -469,11 +469,12 @@ proc initC100 {} {
mww $INTC_ARM1_CONTROL_REG 0x1
# configure clocks
setupPLL
+ # setupUART0 must be run before setupDDR2 as setupDDR2 uses UART.
+ setupUART0
# enable cache
# ? (u-boot does nothing here)
# DDR2 memory init
setupDDR2
- setupUART0
putsUART0 "C100 initialization complete.\n"
puts "C100 initialization complete."
}