]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: fsl_esdhc_imx: clean up bus width configuration code
authorSean Anderson <sean.anderson@seco.com>
Tue, 23 Nov 2021 20:03:39 +0000 (15:03 -0500)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 12 Jan 2022 00:56:39 +0000 (09:56 +0900)
commit95d6b74cf83e53d3acaff175d5addfcb389068ea
tree7e8e7e2d14e51e10040bd22ff54a299307f6443d
parent2fd7d1f24765eff14699d263df08d9e1e0191916
mmc: fsl_esdhc_imx: clean up bus width configuration code

[ fsl_esdhc commit 07bae1de382723b94244096953b05225572728cd ]

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>
[ converted if statement to switch ]
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/fsl_esdhc_imx.c