mmc: zynq: parse dt when probing
authorBenedikt Grassl <Benedikt.Grassl@rohde-schwarz.com>
Tue, 14 Apr 2020 05:32:12 +0000 (07:32 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 27 Apr 2020 11:53:13 +0000 (13:53 +0200)
commit942b5fc03218d1c94468fc658e7dec65dabcc830
tree011d1c7a66ea82a65c3ff20307470cb88239d8bb
parentd202f67db0771247de562af5d6a5df778702857b
mmc: zynq: parse dt when probing

Currently, the entry "bus-width = <8>" in the ZynqMP's sdhci nodes
is not evaluated. This results in the bus width staying at its default
value (4 bit in HS200 mode).
Fix this by calling mmc_of_parse. This function also checks for the
"no-1-8-v" and "max-frequency" entries. Remove the handling of those
nodes from this driver.

Signed-off-by: Benedikt Grassl <Benedikt.Grassl@rohde-schwarz.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mmc/sdhci.c
drivers/mmc/zynq_sdhci.c
include/sdhci.h