X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnand%2Flpc3180.c;fp=src%2Fflash%2Fnand%2Flpc3180.c;h=389c18ac4d7cd96797dedd570796659adae1718b;hb=844c82934ed5f23b62326870f9d7818afce7c4f6;hp=436580e3739db6830e5649cb282f01cca429cdc7;hpb=081954136681b26ad30db9b4cc40cb360f47602c;p=openocd.git diff --git a/src/flash/nand/lpc3180.c b/src/flash/nand/lpc3180.c index 436580e373..389c18ac4d 100644 --- a/src/flash/nand/lpc3180.c +++ b/src/flash/nand/lpc3180.c @@ -237,7 +237,7 @@ static int lpc3180_init(struct nand_device *nand) /* SLC_CFG = 0x (Force nCE assert, DMA ECC enabled, ECC enabled, DMA burst enabled, *DMA read from SLC, WIDTH = bus_width) */ - target_write_u32(target, 0x20020014, 0x3e | (bus_width == 16) ? 1 : 0); + target_write_u32(target, 0x20020014, 0x3e | ((bus_width == 16) ? 1 : 0)); /* SLC_IEN = 3 (INT_RDY_EN = 1) ,(INT_TC_STAT = 1) */ target_write_u32(target, 0x20020020, 0x03);