Browse Source

Make the LPC32xx nand driver support up to 5 address cycles. This will only work in the SLC driver.

tags/v0.5.0-rc1
Alexandre Pereira da Silva 13 years ago
committed by Øyvind Harboe
parent
commit
e105915a4a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/flash/nand/lpc32xx.c

+ 1
- 1
src/flash/nand/lpc32xx.c View File

@@ -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;
}


Loading…
Cancel
Save