diff options
author | Alexandre 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 |
commit | e105915a4a1ca8f5c80d25b0a79728bc16f306b1 (patch) | |
tree | 905f87b64c1353259c4eb6250403ad1c1d3cfbe3 | |
parent | 2ed19d3b9ba6edbc631d26e52b95023c35632e3a (diff) | |
download | riscv-openocd-e105915a4a1ca8f5c80d25b0a79728bc16f306b1.zip riscv-openocd-e105915a4a1ca8f5c80d25b0a79728bc16f306b1.tar.gz riscv-openocd-e105915a4a1ca8f5c80d25b0a79728bc16f306b1.tar.bz2 |
Make the LPC32xx nand driver support up to 5 address cycles. This will only work in the SLC driver.
-rw-r--r-- | src/flash/nand/lpc32xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nand/lpc32xx.c b/src/flash/nand/lpc32xx.c index 653bcde..ffb322c 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; } |