u-boot/board/toradex
Philippe Schenker 936bf17263 colibri-imx6ull: fix setup of nand gpmi clock
NXP used to setup the gpmi clock root from gpmi_clk in early versions
in their downstream BSP. [1]
However on mainline the gpmi clock root was always setup from enfc
since the beginning of the i.MX 6 series SoCs, which is still the same
today. [2]

NXP followed the mainline approach at some point and changed
setup_gpmi_io_clk to setup gpmi clock root from enfc which left faulty
code behind in our board file. [3]

This commit follows the change of NXP as it improves the performance of
the NAND from ~1.2 MiB/s to ~12 MiB/s. [3]

This change was verified to work in recovery-mode and u-boot loaded
from NAND on all four Colibri iMX6ULL SKUs from Toradex.

The frequency used to read the NAND, measured on RE# (Read Enable):
before this patch: 1.4 MHz
after this patch:   22 MHz
in Linux Kernel:    50 MHz

[1] https://source.codeaurora.org/external/imx/uboot-imx/tree/arch/arm/cpu/armv7/mx6/clock.c?h=nxp/imx_v2016.03_4.1.15_2.0.0_ga#n62
[2] commit 23608e23fd ("i.mx: add the initial support for freescale i.MX6Q processor")
[3] https://source.codeaurora.org/external/imx/uboot-imx/commit/?id=7a82a19ceabfb04bbc1591a67c99751748781c7d

Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2021-10-20 17:42:55 +02:00
..
apalis-imx8 Prepare v2021.10-rc4 2021-09-16 10:29:40 -04:00
apalis-imx8x imx: Finish migration of IMX_CONFIG to Kconfig 2021-08-31 17:46:37 -04:00
apalis-tk1 board: apalis-tk1: launch toradex easy installer in usb recovery 2021-08-16 12:17:07 -07:00
apalis_imx6 apalis-imx6: use dynamic DDR calibration 2021-10-19 10:51:39 +02:00
apalis_t30 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
colibri-imx6ull colibri-imx6ull: fix setup of nand gpmi clock 2021-10-20 17:42:55 +02:00
colibri-imx8x imx: Finish migration of IMX_CONFIG to Kconfig 2021-08-31 17:46:37 -04:00
colibri_imx6 colibri-imx6: use dynamic DDR calibration 2021-10-19 10:51:39 +02:00
colibri_imx7 imx: Finish migration of IMX_CONFIG to Kconfig 2021-08-31 17:46:37 -04:00
colibri_pxa270 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
colibri_t20 common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
colibri_t30 toradex: hand over maintainership 2020-12-26 14:56:09 +01:00
colibri_vf imx: Finish migration of IMX_CONFIG to Kconfig 2021-08-31 17:46:37 -04:00
common arm: Finish migration of CONFIG_MACH_TYPE 2021-09-07 19:17:32 -04:00
verdin-imx8mm verdin-imx8mm: drop support for v1.0 hardware 2021-10-20 15:08:26 +02:00