]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit1e84309948c0873667ed7dd1c9418fab6c4eaf54
tree3f6c2eb1de46a71d0aa8d0875da45b5621060080
parentda42c0b0753d7a94eba31e226db776c47a21c904
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