"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

spl: nand: initialize writesize for am335x

Initialize mtd->writesize in nand_init() as otherwise
nand_page_size() returns 0 and this affects NAND read
operations.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>

authored by

Yegor Yefremov and committed by
Tom Rini
9b45d574 9a20a4fb

+2
+2
drivers/mtd/nand/raw/am335x_spl_bch.c
··· 212 212 if (nand_chip.select_chip) 213 213 nand_chip.select_chip(mtd, 0); 214 214 215 + mtd->writesize = CONFIG_SYS_NAND_PAGE_SIZE; 216 + 215 217 /* NAND chip may require reset after power-on */ 216 218 nand_command(0, 0, 0, NAND_CMD_RESET); 217 219 }