[PATCH] imx: ventana: enable ONFI detection to fix NAND chip configuration

Enable ONFI detection to fix NAND chip configuration. Without this the NAND oobsize will be wrong which leads to invalid ECC strength and incompatibility with the previous configuration.
Fixes: 777f333c375a ("imx: ventana: enable dm for MTD and NAND")
Signed-off-by: Tim Harvey tharvey@gateworks.com --- configs/gwventana_nand_defconfig | 1 + 1 file changed, 1 insertion(+)
diff --git a/configs/gwventana_nand_defconfig b/configs/gwventana_nand_defconfig index 9fadc014a2c6..42e4f98b13b0 100644 --- a/configs/gwventana_nand_defconfig +++ b/configs/gwventana_nand_defconfig @@ -106,6 +106,7 @@ CONFIG_DM_MTD=y CONFIG_MTD_RAW_NAND=y CONFIG_NAND_MXS=y CONFIG_NAND_MXS_DT=y +CONFIG_SYS_NAND_ONFI_DETECTION=y CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y CONFIG_SYS_NAND_U_BOOT_OFFS=0xe00000 CONFIG_PHYLIB=y

Hi Tim,
On Tue, Mar 22, 2022 at 3:42 PM Tim Harvey tharvey@gateworks.com wrote:
Enable ONFI detection to fix NAND chip configuration. Without this the NAND oobsize will be wrong which leads to invalid ECC strength and incompatibility with the previous configuration.
Fixes: 777f333c375a ("imx: ventana: enable dm for MTD and NAND")
Signed-off-by: Tim Harvey tharvey@gateworks.com
Reviewed-by: Fabio Estevam festevam@denx.de

On Tue, Mar 22, 2022 at 5:32 PM Fabio Estevam festevam@gmail.com wrote:
Hi Tim,
On Tue, Mar 22, 2022 at 3:42 PM Tim Harvey tharvey@gateworks.com wrote:
Enable ONFI detection to fix NAND chip configuration. Without this the NAND oobsize will be wrong which leads to invalid ECC strength and incompatibility with the previous configuration.
Fixes: 777f333c375a ("imx: ventana: enable dm for MTD and NAND")
Signed-off-by: Tim Harvey tharvey@gateworks.com
Reviewed-by: Fabio Estevam festevam@denx.de
Tom and Stefano,
With commit ed48490f8d3f ("mtd: gpmi: fix the bch setting backward compatible issue") now applied could this be applied for v2022.04 as well to fix NAND on the gw_ventana boards?
Best Regards,
Tim

On Mon, Mar 28, 2022 at 09:40:59AM -0700, Tim Harvey wrote:
On Tue, Mar 22, 2022 at 5:32 PM Fabio Estevam festevam@gmail.com wrote:
Hi Tim,
On Tue, Mar 22, 2022 at 3:42 PM Tim Harvey tharvey@gateworks.com wrote:
Enable ONFI detection to fix NAND chip configuration. Without this the NAND oobsize will be wrong which leads to invalid ECC strength and incompatibility with the previous configuration.
Fixes: 777f333c375a ("imx: ventana: enable dm for MTD and NAND")
Signed-off-by: Tim Harvey tharvey@gateworks.com
Reviewed-by: Fabio Estevam festevam@denx.de
Tom and Stefano,
With commit ed48490f8d3f ("mtd: gpmi: fix the bch setting backward compatible issue") now applied could this be applied for v2022.04 as well to fix NAND on the gw_ventana boards?
Yes, thanks.

On Tue, Mar 22, 2022 at 11:42:49AM -0700, Tim Harvey wrote:
Enable ONFI detection to fix NAND chip configuration. Without this the NAND oobsize will be wrong which leads to invalid ECC strength and incompatibility with the previous configuration.
Fixes: 777f333c375a ("imx: ventana: enable dm for MTD and NAND")
Signed-off-by: Tim Harvey tharvey@gateworks.com Reviewed-by: Fabio Estevam festevam@denx.de
Applied to u-boot/master, thanks!
participants (3)
-
Fabio Estevam
-
Tim Harvey
-
Tom Rini