MLK-22748 imx8mn: Fix flexspi flash SCLK violation
authorYe Li <ye.li@nxp.com>
Fri, 11 Oct 2019 04:05:20 +0000 (21:05 -0700)
committerYe Li <ye.li@nxp.com>
Fri, 11 Oct 2019 09:32:19 +0000 (02:32 -0700)
commit653c84e3e50a32bd82afc3a5294a8288988eed7e
tree492e8c001738d4609eeeef61603994868e033859
parent443b88f3332e74361adce52294bb31557ca30fa5
MLK-22748 imx8mn: Fix flexspi flash SCLK violation

Current flexspi driver enables the Quad DTR read, so the measured
100Mhz SCLK is actually for DTR mode not SDR. However, according to
MT25QU256ABA datasheet, this flash only supports max DTR at 90Mhz and
max SDR at 166Mhz. It means current clock setting violate the flash
spec. So change back the flexspi clock to align with imx8mm.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 3bf41bae974003550b70ea1a8b44ccb3117d818f)
(cherry picked from commit 4a369b527c3842751a4edf0171562a0e40c331ba)
arch/arm/mach-imx/imx8m/clock_imx8mm.c