summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexandre Pereira da Silva <aletes.xgr@gmail.com>2011-04-12 13:06:13 -0300
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-04-19 12:51:49 +0200
commite105915a4a1ca8f5c80d25b0a79728bc16f306b1 (patch)
tree905f87b64c1353259c4eb6250403ad1c1d3cfbe3 /src
parent2ed19d3b9ba6edbc631d26e52b95023c35632e3a (diff)
downloadopenocd_libswd-e105915a4a1ca8f5c80d25b0a79728bc16f306b1.tar.gz
openocd_libswd-e105915a4a1ca8f5c80d25b0a79728bc16f306b1.tar.bz2
openocd_libswd-e105915a4a1ca8f5c80d25b0a79728bc16f306b1.tar.xz
openocd_libswd-e105915a4a1ca8f5c80d25b0a79728bc16f306b1.zip
Make the LPC32xx nand driver support up to 5 address cycles. This will only work in the SLC driver.
Diffstat (limited to 'src')
-rw-r--r--src/flash/nand/lpc32xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nand/lpc32xx.c b/src/flash/nand/lpc32xx.c
index 653bcde1..ffb322c2 100644
--- a/src/flash/nand/lpc32xx.c
+++ b/src/flash/nand/lpc32xx.c
@@ -214,7 +214,7 @@ static int lpc32xx_init(struct nand_device *nand)
/* inform calling code about selected bus width */
nand->bus_width = bus_width;
- if ((address_cycles != 3) && (address_cycles != 4)) {
+ if ((address_cycles < 3) || (address_cycles > 5)) {
LOG_ERROR("LPC32xx driver doesn't support %i address cycles", address_cycles);
return ERROR_NAND_OPERATION_NOT_SUPPORTED;
}