summaryrefslogtreecommitdiff
path: root/src/target/board
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-02-09 10:01:09 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-02-09 10:01:09 +0000
commit6d06c893d1b162157dde5ef72d79af86047c9f9e (patch)
tree63df101367134a385bcf72b4fded452cea1804ff /src/target/board
parentab9dfffdb5ecc2033d5d19c6e51c8b4fa10c9c9b (diff)
downloadopenocd+libswd-6d06c893d1b162157dde5ef72d79af86047c9f9e.tar.gz
openocd+libswd-6d06c893d1b162157dde5ef72d79af86047c9f9e.tar.bz2
openocd+libswd-6d06c893d1b162157dde5ef72d79af86047c9f9e.tar.xz
openocd+libswd-6d06c893d1b162157dde5ef72d79af86047c9f9e.zip
Andi <opencode@gmx.net> - better dram setup
git-svn-id: svn://svn.berlios.de/openocd/trunk@1367 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/board')
-rw-r--r--src/target/board/x300t.cfg21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/target/board/x300t.cfg b/src/target/board/x300t.cfg
index edc9be6c..985f44ed 100644
--- a/src/target/board/x300t.cfg
+++ b/src/target/board/x300t.cfg
@@ -1,5 +1,5 @@
# This is for the T-Home X300T / X301T IPTV box,
-# which are based on IPTV reference designs from Kiss/Cisco KMM-32**
+# which are based on IPTV reference designs from Kiss/Cisco KMM-3***
#
# It has Sigma Designs SMP8634 chip.
source [find target/smp8634.cfg]
@@ -11,7 +11,20 @@ $_TARGETNAME configure -event reset-init { x300t_init }
flash bank cfi 0xac000000 0x100000 2 2 0
proc x300t_init { } {
- # Setup SDRAM config and flash mapping
- # map flash to CPU address space REG_BASE_cpu_block+CPU_remap4
- mww 0x6f010 0x48000000
+ # Setup SDRAM config and flash mapping
+ # initialize ram
+ mww 0xa003fffc 3
+ mww 0xa003fffc 2
+ mww 0xa0030000 0xE34111BA
+ mww 0xa003fffc 0xa4444
+ mww 0xa003fffc 0
+
+ # remap boot vector in CPU local RAM
+ mww 0xa006f000 0x60000
+
+ # map flash to CPU address space REG_BASE_cpu_block+CPU_remap4
+ mww 0x0006f010 0x48000000
+
+ # map flash addr to REG_BASE_cpu_block + LR_XENV_LOCATION (normally done by XOS)
+ mww 0x00061ff0 0x48000000
}