* [PATCH] ARM: pcm058: Match mainline Linux NAND ECC layout/behaviour
@ 2021-03-22 13:05 Niel Fourie
2021-04-09 11:24 ` sbabic at denx.de
0 siblings, 1 reply; 2+ messages in thread
From: Niel Fourie @ 2021-03-22 13:05 UTC (permalink / raw)
To: u-boot
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 | 5 +++++
include/configs/pcm058.h | 1 +
2 files changed, 6 insertions(+)
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 8555be16966..0bea652beea 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,8 @@
&m25p80 {
u-boot,dm-spl;
};
+
+&gpmi {
+ fsl,legacy-bch-geometry;
+};
+
diff --git a/include/configs/pcm058.h b/include/configs/pcm058.h
index 4f03699117b..bc48e809498 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
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: pcm058: Match mainline Linux NAND ECC layout/behaviour
2021-03-22 13:05 [PATCH] ARM: pcm058: Match mainline Linux NAND ECC layout/behaviour Niel Fourie
@ 2021-04-09 11:24 ` sbabic at denx.de
0 siblings, 0 replies; 2+ messages in thread
From: sbabic at denx.de @ 2021-04-09 11:24 UTC (permalink / raw)
To: u-boot
> 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>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
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
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-09 11:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-22 13:05 [PATCH] ARM: pcm058: Match mainline Linux NAND ECC layout/behaviour Niel Fourie
2021-04-09 11:24 ` sbabic at denx.de
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.