mmc: fsl_esdhc_imx: Use esdhc_soc_data flags to set host caps
authorAdam Ford <aford173@gmail.com>
Wed, 12 Jan 2022 13:53:56 +0000 (07:53 -0600)
committerStefano Babic <sbabic@denx.de>
Sat, 19 Feb 2022 13:46:54 +0000 (14:46 +0100)
commit1a7904fdfa7d1974410e9dc9b9bfe8aad7fb1311
treed683b5f3ac29cdb925f9333258e4f8b6936be84f
parente72cb770d4bbef6927153d07aa46cbd81a9fcc1a
mmc: fsl_esdhc_imx: Use esdhc_soc_data flags to set host caps

The Linux driver automatically can detect and enable UHS, HS200, HS400
and HS400_ES automatically without extra flags being placed into the
device tree.

Right now, for U-Boot to use UHS, HS200 or HS400, the extra flags are
needed in the device tree.  Instead, go through the esdhc_soc_data
flags and enable the host caps where applicable to automatically
enable higher speeds.

Suggested-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Adam Ford <aford173@gmail.com>
drivers/mmc/fsl_esdhc_imx.c