ARM: pcm058: Match mainline Linux NAND ECC layout/behaviour
Subsystems (2)
PATCH 1/1 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.
--- arch/arm/dts/imx6q-phytec-mira-rdk-nand-u-boot.dtsi | 5 +++++ include/configs/pcm058.h | 1 + 2 files changed, 6 insertions(+)
arch/arm/dts/imx6q-phytec-mira-rdk-nand-u-boot.dtsi +5 -0
@@ -40,3 +40,8 @@ &m25p80 { u-boot,dm-spl; }; + +&gpmi { + fsl,legacy-bch-geometry; +}; +
include/configs/pcm058.h +1 -0
@@ -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
Signature · 1 line
2.30.2
PATCH 1/1 ARM: pcm058: Match mainline Linux NAND ECC layout/behaviour
Quoted 7 lines
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.
ReinstatedSYS_NAND_ONFI_DETECTION, which when disabled, masked the mismatch on SOMs with Winbond NAND flash chips.Signed-off-by Niel Fourie <[email protected]>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================