From: sbabic at denx.de Date: Tue, 8 Dec 2020 09:00:07 +0100 (CET) Subject: [PATCH] mmc: fsl_esdhc_imx: optimize the timing setting In-Reply-To: <1604395115-4711-1-git-send-email-haibo.chen@nxp.com> Message-ID: <20201208080007.52130825DC@phobos.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > From: Haibo Chen > For imx usdhc/esdhc, once set the DDR_EN, enable the DDR mode, the > card clock will be divied by 2 automatically by the host. So need > to first config the DDR_EN correctly, then update the card clock. > This will make sure the actual card clock is as our expected. > IC also suggest config the DDR_EN firstly, then config the clock > divider. > For HS400/HS400ES mode, need to config the strobe dll, this need > to based on the correct target clock rate, so need to do this after > clock rate is update. > Signed-off-by: Haibo Chen > Reviewed-by: Jaehoon Chung 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 =====================================================================