summaryrefslogtreecommitdiff
path: root/src/flash/nand/lpc3180.h
diff options
context:
space:
mode:
authorrichard vegh <vegh.ricsi@gmail.com>2010-03-16 10:46:41 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-03-16 10:46:41 +0100
commitab5f98edcd3e8810c15d378d3244238d9d8f8d0e (patch)
treefe7de56260eeb648f0cbe92fd190a4e41b223b75 /src/flash/nand/lpc3180.h
parentf85ad1e52a499bc98ae9d559157e8adbe8a5ad1f (diff)
downloadopenocd+libswd-ab5f98edcd3e8810c15d378d3244238d9d8f8d0e.tar.gz
openocd+libswd-ab5f98edcd3e8810c15d378d3244238d9d8f8d0e.tar.bz2
openocd+libswd-ab5f98edcd3e8810c15d378d3244238d9d8f8d0e.tar.xz
openocd+libswd-ab5f98edcd3e8810c15d378d3244238d9d8f8d0e.zip
lpc3180: LPC3180(LPC3250) SLC driver implemented
Until this time only basic SLC functionality exists when you want to use SLC to access external nand flash. Basic functionality can be selected with command: lpc3180 select 0 slc It is anyway very slow to write/read to/from nand flash. With the new command, SLC speed improved about 20 times, and hardware ECC info also read/written from/to nand flash OOB area: lpc3180 select 0 slc bulk Speed improvement achieved by using working are in SRAM of the LPC3250 chip and controlling DMA controller to interact between SRAM and SLC peripheral. Here are the patches, and if they are ok than take them. Tested with hitex LPC3250 usb stick. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/flash/nand/lpc3180.h')
-rw-r--r--src/flash/nand/lpc3180.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/flash/nand/lpc3180.h b/src/flash/nand/lpc3180.h
index 0891cedf..88280f32 100644
--- a/src/flash/nand/lpc3180.h
+++ b/src/flash/nand/lpc3180.h
@@ -32,6 +32,7 @@ struct lpc3180_nand_controller
struct target *target;
int osc_freq;
enum lpc3180_selected_controller selected_controller;
+ int is_bulk;
int sw_write_protection;
uint32_t sw_wp_lower_bound;
uint32_t sw_wp_upper_bound;