From: Niel Fourie Date: Mon, 22 Mar 2021 13:05:11 +0000 (+0100) Subject: ARM: pcm058: Match mainline Linux NAND ECC layout/behaviour X-Git-Tag: v2021.10~234^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3da9630b8c4c7dc61090ef43b7be4aaadf7e735b;p=platform%2Fkernel%2Fu-boot.git ARM: pcm058: Match mainline Linux NAND ECC layout/behaviour Enabled "fsl,legacy-bch-geometry" in U-Boot device tree overlay to match the legacy BCH geometry layout, which mainline Linux applies when "fsl,use-minimum-ecc" is not specified in the device tree. Reinstated SYS_NAND_ONFI_DETECTION, which when disabled, masked the mismatch on SOMs with Winbond NAND flash chips. Signed-off-by: Niel Fourie --- diff --git a/arch/arm/dts/imx6q-phytec-mira-rdk-nand-u-boot.dtsi b/arch/arm/dts/imx6q-phytec-mira-rdk-nand-u-boot.dtsi index 8555be1..5a64f86 100644 --- a/arch/arm/dts/imx6q-phytec-mira-rdk-nand-u-boot.dtsi +++ b/arch/arm/dts/imx6q-phytec-mira-rdk-nand-u-boot.dtsi @@ -40,3 +40,7 @@ &m25p80 { u-boot,dm-spl; }; + +&gpmi { + fsl,legacy-bch-geometry; +}; diff --git a/include/configs/pcm058.h b/include/configs/pcm058.h index 4f03699..bc48e80 100644 --- a/include/configs/pcm058.h +++ b/include/configs/pcm058.h @@ -19,6 +19,7 @@ /* Enable NAND support */ #define CONFIG_SYS_MAX_NAND_DEVICE 1 +#define CONFIG_SYS_NAND_ONFI_DETECTION /* Physical Memory Map */ #define PHYS_SDRAM MMDC0_ARB_BASE_ADDR