diff mbox series

mmc: dwmmc: socfpga: Get "fifo-mode" property from DT

Message ID 20210426051746.1378-1-ley.foon.tan@intel.com
State Accepted
Commit 1925e65706b84ec83b99e6335d9a36d8644c9085
Delegated to: Peng Fan
Headers show
Series mmc: dwmmc: socfpga: Get "fifo-mode" property from DT | expand

Commit Message

Ley Foon Tan April 26, 2021, 5:17 a.m. UTC
Add FIFO mode support for SoCFPGA dwmmc, read "fifo-mode" property from DT.

Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
---
 drivers/mmc/socfpga_dw_mmc.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Jaehoon Chung April 26, 2021, 10:15 p.m. UTC | #1
On 4/26/21 2:17 PM, Ley Foon Tan wrote:
> 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>

Best Regards,
Jaehoon Chung

> ---
>  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;
>  }
>  
>
diff mbox series

Patch

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;
 }