ARM: OMAP2+: nand: Fix NAND on OMAP2 and OMAP3 boards
authorRoger Quadros <rogerq@ti.com>
Fri, 16 May 2014 21:45:40 +0000 (14:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jun 2014 18:54:09 +0000 (11:54 -0700)
commit01b1c9345a0396e5252bd74b467cf422dce46bf6
tree4ab7edbfaa38ca90f85a90fe370b864e9c0f869c
parent0871ef9ca878cefbee1716e369727c8a2d35548c
ARM: OMAP2+: nand: Fix NAND on OMAP2 and OMAP3 boards

commit 5005e0b76781c37d0a16dd6dd17d015098e8ce92 upstream.

Commit c66d039197e4 broke NAND for non-DT boot on all OMAP2 and OMAP3
boards using board_nand_init(). Following error is seen at boot

[    0.154998]  (null): Unsupported NAND ECC scheme selected

For OMAP2 and OMAP3 platforms, the ecc_opt parameter in platform data
must be set to OMAP_ECC_HAM1_CODE_HW to work properly.

Tested on omap3-beagle c4.

Fixes: c66d039197e4 (mtd: nand: omap: combine different flavours of 1-bit hamming ecc schemes)
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-omap2/board-flash.c