Skip to content

Commit

Permalink
ARM: pcm058: Match mainline Linux NAND ECC layout/behaviour
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Niel Fourie authored and sbabic committed Apr 8, 2021
1 parent 52bbcc3 commit 3da9630
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/dts/imx6q-phytec-mira-rdk-nand-u-boot.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@
&m25p80 {
u-boot,dm-spl;
};

&gpmi {
fsl,legacy-bch-geometry;
};
1 change: 1 addition & 0 deletions include/configs/pcm058.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3da9630

Please sign in to comment.