[PATCH] mmc: dwmmc: socfpga: Get "fifo-mode" property from DT
Ley Foon Tan
ley.foon.tan at intel.com
Mon Apr 26 07:17:46 CEST 2021
Add FIFO mode support for SoCFPGA dwmmc, read "fifo-mode" property from DT.
Signed-off-by: Ley Foon Tan <ley.foon.tan at intel.com>
---
drivers/mmc/socfpga_dw_mmc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c
index d6d2d5721411..be3d8bfb3d71 100644
--- a/drivers/mmc/socfpga_dw_mmc.c
+++ b/drivers/mmc/socfpga_dw_mmc.c
@@ -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;
}
--
2.25.1
More information about the U-Boot
mailing list