summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-24 01:38:19 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-24 01:38:19 +0000
commitc0fc8f93f1eabe8a4adfed7784b1416b257cf035 (patch)
tree1debbd47835a726ccc41ea6150f6844247697fdc /src/target
parent67dd29a4af1271c77f2f8c3389d5852d8da4e6c3 (diff)
downloadopenocd+libswd-c0fc8f93f1eabe8a4adfed7784b1416b257cf035.tar.gz
openocd+libswd-c0fc8f93f1eabe8a4adfed7784b1416b257cf035.tar.bz2
openocd+libswd-c0fc8f93f1eabe8a4adfed7784b1416b257cf035.tar.xz
openocd+libswd-c0fc8f93f1eabe8a4adfed7784b1416b257cf035.zip
David Brownell <david-b@pacbell.net>:
NAND support for DaVinci-family drivers, with HW ECC support. Declare the NAND chip on the DM355 EVM board. Currently tested on DM355 for Linux interop using the standard large page (2KB) chip in the EVM socket; "hwecc1" and "hwecc4" work fine. (Using hwecc4 relies on patches that haven't quite made it through the Linux-MTD bottlenecks yet.) Not yet tested: 1-bit on small-page (although it's hard to see how that could fail); 4-bit on small page (picky layout issues); the "hwecc_infix" mode (primarily for older boot ROMs; testing there is blocked on having new bootloader code). git-svn-id: svn://svn.berlios.de/openocd/trunk@1903 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r--src/target/board/dm355evm.cfg12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/target/board/dm355evm.cfg b/src/target/board/dm355evm.cfg
index 6b633b88..9e6dc73b 100644
--- a/src/target/board/dm355evm.cfg
+++ b/src/target/board/dm355evm.cfg
@@ -105,7 +105,15 @@ proc dm355evm_init {} {
# FIXME setup
}
+# NAND -- socket has two chipselects, MT29F16G08FAA puts 1GByte on each one.
+#
+# NOTE: "hwecc4" here presumes that if you're using the standard 2GB NAND
+# you either (a) have 'new' DM355 chips, with boot ROMs that don't need to
+# use "hwecc4_infix" for the UBL; or else (b) aren't updating anything that
+# needs infix layout ... like an old UBL, old U-Boot, old MVL kernel, etc.
+nand device davinci 0 0x02000000 hwecc4 0x01e10000
+nand device davinci 0 0x02004000 hwecc4 0x01e10000
+
# FIXME
-# - declare the NAND flash; use the 4-bit ECC
# - support writing UBL with its header (new layout only with new ROMs)
-# - support writing ABL/U-Boot with its header (both layouts)
+# - support writing ABL/U-Boot with its header (new layout)