Skip to content
Snippets Groups Projects
Commit a89a9901 authored by Stefan Roese's avatar Stefan Roese Committed by Scott Wood
Browse files

nand_spl: nand_boot.c: Init nand_chip.options to 0


Patch 65a9db7b [nand_spl: Fix large page nand_command()] broke
nand booting on canyonlands. "options" has to be initialized to
0. If not, boards might have the NAND_BUSWIDTH_16 bit set,
resulting in wrong offset calculation.

Signed-off-by: default avatarStefan Roese <sr@denx.de>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Alex Waterman <awaterman@dawning.com>
Signed-off-by: default avatarScott Wood <scottwood@freescale.com>
parent 83709783
No related branches found
No related tags found
No related merge requests found
...@@ -246,6 +246,7 @@ void nand_boot(void) ...@@ -246,6 +246,7 @@ void nand_boot(void)
nand_info.priv = &nand_chip; nand_info.priv = &nand_chip;
nand_chip.IO_ADDR_R = nand_chip.IO_ADDR_W = (void __iomem *)CONFIG_SYS_NAND_BASE; nand_chip.IO_ADDR_R = nand_chip.IO_ADDR_W = (void __iomem *)CONFIG_SYS_NAND_BASE;
nand_chip.dev_ready = NULL; /* preset to NULL */ nand_chip.dev_ready = NULL; /* preset to NULL */
nand_chip.options = 0;
board_nand_init(&nand_chip); board_nand_init(&nand_chip);
if (nand_chip.select_chip) if (nand_chip.select_chip)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment