diff mbox series

[1/3] mmc: sdhci_am654: Read ti, strobe-sel property from device tree

Message ID 20210525093826.10390-2-a-govindraju@ti.com
State Accepted
Commit 46077ef251631ef990dce355af1278a2575735f6
Delegated to: Lokesh Vutla
Headers show
Series J7200: Add support for HS400 speed mode | expand

Commit Message

Aswath Govindraju May 25, 2021, 9:38 a.m. UTC
Read the strobe select value from the device tree property ti,strobe-sel,
required for HS400 speed mode

Fixes: a20008eabd95 ("mmc: am654_sdhci: Add Support for configuring PHY in J721e")
Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
---
 drivers/mmc/am654_sdhci.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jaehoon Chung May 25, 2021, 9:45 p.m. UTC | #1
On 5/25/21 6:38 PM, Aswath Govindraju wrote:
> Read the strobe select value from the device tree property ti,strobe-sel,
> required for HS400 speed mode
> 
> Fixes: a20008eabd95 ("mmc: am654_sdhci: Add Support for configuring PHY in J721e")
> Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>

Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>

Best Regards,
Jaehoon Chung

> ---
>  drivers/mmc/am654_sdhci.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c
> index a86d96aacd2b..4305967d7845 100644
> --- a/drivers/mmc/am654_sdhci.c
> +++ b/drivers/mmc/am654_sdhci.c
> @@ -619,6 +619,7 @@ static int am654_sdhci_of_to_plat(struct udevice *dev)
>  		}
>  	}
>  
> +	dev_read_u32(dev, "ti,strobe-sel", &plat->strb_sel);
>  	dev_read_u32(dev, "ti,clkbuf-sel", &plat->clkbuf_sel);
>  
>  	ret = mmc_of_parse(dev, cfg);
>
diff mbox series

Patch

diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c
index a86d96aacd2b..4305967d7845 100644
--- a/drivers/mmc/am654_sdhci.c
+++ b/drivers/mmc/am654_sdhci.c
@@ -619,6 +619,7 @@  static int am654_sdhci_of_to_plat(struct udevice *dev)
 		}
 	}
 
+	dev_read_u32(dev, "ti,strobe-sel", &plat->strb_sel);
 	dev_read_u32(dev, "ti,clkbuf-sel", &plat->clkbuf_sel);
 
 	ret = mmc_of_parse(dev, cfg);