Drop CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK usage
authorYangbo Lu <yangbo.lu@nxp.com>
Thu, 19 Dec 2019 10:59:30 +0000 (18:59 +0800)
committerPeng Fan <peng.fan@nxp.com>
Thu, 16 Jan 2020 05:20:33 +0000 (13:20 +0800)
commitf1bce084264f52caca80ca56815d6c4b4c5d5935
tree2b0bca2bab39e85bdd97102e72f709f6123bb800
parent181c65b814b29a9e12f5fd034e259c891f3bbb64
Drop CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK usage

The eSDHC reference clocks should be provided by speed.c in arch/.
And we do not need CONFIG_FSL_ESDHC_USE_PERIPHERAL_CLK option to
select which clock to use. Because we can make the driver to select
the periperhal clock which is better (provides higher frequency)
automatically if its value is provided by speed.c.

This patch is to drop this option and make driver to select clock
automatically. Also fix peripheral clock calculation issue in
fsl_lsch2_speed.c/fsl_lsch3_speed.c.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_speed.c
arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_speed.c
drivers/mmc/Kconfig
drivers/mmc/fsl_esdhc.c