]> git.sur5r.net Git - u-boot/commitdiff
NAND: davinci: add support for NAND chips with 16 bits bus
authorFabien Parent <fparent@baylibre.com>
Tue, 29 Nov 2016 13:31:29 +0000 (14:31 +0100)
committerTom Rini <trini@konsulko.com>
Sat, 3 Dec 2016 18:21:15 +0000 (13:21 -0500)
The OMAPL138-LCD board uses a NAND chip with a 16 bits bus. Add
support into the davinci driver for 16 bit bus NAND chips.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/mtd/nand/davinci_nand.c

index 48a8ca78e7552f10cbc16dc1dfb8e9a4711d3e1d..0624644581d5ec9e1451138812a3b7069a52b4cc 100644 (file)
@@ -799,6 +799,9 @@ void davinci_nand_init(struct nand_chip *nand)
 #ifdef CONFIG_SYS_NAND_NO_SUBPAGE_WRITE
        nand->options     |= NAND_NO_SUBPAGE_WRITE;
 #endif
+#ifdef CONFIG_SYS_NAND_BUSWIDTH_16BIT
+       nand->options     |= NAND_BUSWIDTH_16;
+#endif
 #ifdef CONFIG_SYS_NAND_HW_ECC
        nand->ecc.mode = NAND_ECC_HW;
        nand->ecc.size = 512;