imx: imx8mq: handle ESDHC in mxc_get_clock
authorPeng Fan <peng.fan@nxp.com>
Wed, 11 Dec 2019 06:17:12 +0000 (06:17 +0000)
committerStefano Babic <sbabic@denx.de>
Wed, 8 Jan 2020 12:18:55 +0000 (13:18 +0100)
commit392a4e6dd33ae76960c382a13b1e437b58b425b6
treecfcd446d6a668717cfe7680d99f917030047ea7b
parent279d0ab352f3d8cf36874d383d528ab2b318e76d
imx: imx8mq: handle ESDHC in mxc_get_clock

fsl_esdhc_imx driver will call "mxc_get_clock(MXC_ESDHC_CLK +
dev->seq)", however mxc_get_clock wrongly handle MXC_ESDHC_CLK
as root clk and cause sd card could not be detected in U-Boot proper,
as below:
"Loading Environment from MMC... unable to select a mode"

Handle MXC_ESDHC_CLK in mxc_get_clock to fix the issue.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Tested-by: Baruch Siach <baruch@tkos.co.il>
Tested-by: Fabio Estevam <festevam@gmail.com>
arch/arm/mach-imx/imx8m/clock_imx8mq.c