]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: pcm058: Match mainline Linux NAND ECC layout/behaviour
authorNiel Fourie <lusus@denx.de>
Mon, 22 Mar 2021 13:05:11 +0000 (14:05 +0100)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 21:59:50 +0000 (23:59 +0200)
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 <lusus@denx.de>
arch/arm/dts/imx6q-phytec-mira-rdk-nand-u-boot.dtsi
include/configs/pcm058.h

index 8555be16966ac0467e7157095b079369e7da2d13..5a64f86b11b3f83e784b3e979110dc8d77fcf85b 100644 (file)
@@ -40,3 +40,7 @@
 &m25p80 {
        u-boot,dm-spl;
 };
+
+&gpmi {
+       fsl,legacy-bch-geometry;
+};
index 4f03699117b7fc7cb99d290266e55cdad1e0b6a0..bc48e809498a6cda13a5f761a9f3500c0d73e00a 100644 (file)
@@ -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