]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: dwmmc: socfpga: Get "fifo-mode" property from DT
authorLey Foon Tan <ley.foon.tan@intel.com>
Mon, 26 Apr 2021 05:17:46 +0000 (13:17 +0800)
committerPeng Fan <peng.fan@nxp.com>
Tue, 22 Jun 2021 04:02:32 +0000 (12:02 +0800)
Add FIFO mode support for SoCFPGA dwmmc, read "fifo-mode" property from DT.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/socfpga_dw_mmc.c

index d6d2d57214110179bfae3dc62c88cf217a6c346b..be3d8bfb3d71288ed65ee7b1bad445bd98ccd63c 100644 (file)
@@ -144,6 +144,8 @@ static int socfpga_dwmmc_of_to_plat(struct udevice *dev)
                                        "smplsel", 0);
        host->priv = priv;
 
+       host->fifo_mode = dev_read_bool(dev, "fifo-mode");
+
        return 0;
 }