diff options
author | Yangbo Lu <yangbo.lu@nxp.com> | 2019-10-31 18:54:22 +0800 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2019-11-05 11:21:24 +0800 |
commit | 07bae1de382723b94244096953b05225572728cd (patch) | |
tree | 19e04da29df502786623b4f9f0c65ccfa9c17bf1 /drivers/ddr/imx/imx8m/ddr_init.c | |
parent | 5b05fc0310cd933acf76ee661577c6b07a95e684 (diff) | |
download | u-boot-07bae1de382723b94244096953b05225572728cd.tar.gz u-boot-07bae1de382723b94244096953b05225572728cd.tar.xz u-boot-07bae1de382723b94244096953b05225572728cd.zip |
mmc: fsl_esdhc: clean up bus width configuration code
This patch is to clean up bus width setting code.
- For DM_MMC, remove getting "bus-width" from device tree.
This has been done in mmc_of_parse().
- For non-DM_MMC, move bus width configuration from fsl_esdhc_init()
to fsl_esdhc_initialize() which is non-DM_MMC specific.
And fix up bus width configuration to support only 1-bit, 4-bit,
or 8-bit. Keep using 8-bit if it's not set because many platforms
use driver without providing max bus width.
- Remove bus_width member from fsl_esdhc_priv structure.
Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Diffstat (limited to 'drivers/ddr/imx/imx8m/ddr_init.c')
0 files changed, 0 insertions, 0 deletions