From: Alexandre Pereira da Silva Date: Tue, 12 Apr 2011 16:06:13 +0000 (-0300) Subject: Make the LPC32xx nand driver support up to 5 address cycles. This will only work... X-Git-Tag: v0.5.0-rc1~85 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e105915a4a1ca8f5c80d25b0a79728bc16f306b1;p=openocd Make the LPC32xx nand driver support up to 5 address cycles. This will only work in the SLC driver. --- 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; }