ARM: OMAP2+: Fix onenand initialization to avoid filesystem corruption
authorIvaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Fri, 5 Feb 2016 14:37:08 +0000 (16:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:29 +0000 (15:07 -0800)
commit8b78924f123e7cbb08d9dd25cb793c2a2e58741d
treeb93add66b4aaa2fc317ff50c130b72b33d41ed36
parent80d18c0026eb6fc9cd9fb5a36540bfaa8a00fb47
ARM: OMAP2+: Fix onenand initialization to avoid filesystem corruption

commit 3f315c5b850fa7aff73f50de8e316b98f611a32b upstream.

Commit e7b11dc7b77b ("ARM: OMAP2+: Fix onenand rate detection to avoid
filesystem corruption") partially fixed onenand configuration when GPMC
module is reset. Finish the job by also providing the correct values in
ONENAND_REG_SYS_CFG1 register.

Fixes: e7b11dc7b77b ("ARM: OMAP2+: Fix onenand rate detection to avoid
filesystem corruption")
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-omap2/gpmc-onenand.c