mmc: sdhci: Add support for dt caps & caps mask
authorT Karthik Reddy <t.karthik.reddy@xilinx.com>
Mon, 2 Sep 2019 14:34:31 +0000 (16:34 +0200)
committerPeng Fan <peng.fan@nxp.com>
Fri, 6 Sep 2019 02:40:13 +0000 (10:40 +0800)
commitcd45d6f3955c919b7f10793014db3dbcfd7df3bb
tree3f6c2eb1de46a71d0aa8d0875da45b5621060080
parent3f3d77158b8452a16dca4a6966217b344f77f9b7
mmc: sdhci: Add support for dt caps & caps mask

The sdhci capabilities registers can be incorrect. The
sdhci-caps-mask and sdhci-caps dt properties specify which bits of
the registers are incorrect and what their values should be. This
patch makes the sdhci driver use those properties to correct the caps.
Also use "dev_read_u64_default" instead of "dev_read_u32_array" for
caps mask.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/mmc/sdhci.c