[U-Boot] [PATCH V2 18/20] mmc: fsl_esdhc: support i.MX7ULP
Stefano Babic
sbabic at denx.de
Sun Feb 12 09:29:32 UTC 2017
On 27/12/2016 11:04, Peng Fan wrote:
> Add compatible property for i.MX7ULP.
> Add a weak init_usdhc_clk function, i.MX7ULP use this to init the clock.
>
> Signed-off-by: Peng Fan <peng.fan at nxp.com>
> Cc: Stefano Babic <sbabic at denx.de>
> Cc: Jaehoon Chung <jh80.chung at samsung.com>
> ---
>
> V2:
> None
>
> drivers/mmc/fsl_esdhc.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
> index 9796d39..c6b1ec9 100644
> --- a/drivers/mmc/fsl_esdhc.c
> +++ b/drivers/mmc/fsl_esdhc.c
> @@ -938,6 +938,10 @@ void fdt_fixup_esdhc(void *blob, bd_t *bd)
>
> #ifdef CONFIG_DM_MMC
> #include <asm/arch/clock.h>
> +__weak void init_clk_usdhc(u32 index)
> +{
> +}
> +
> static int fsl_esdhc_probe(struct udevice *dev)
> {
> struct mmc_uclass_priv *upriv = dev_get_uclass_priv(dev);
> @@ -997,6 +1001,9 @@ static int fsl_esdhc_probe(struct udevice *dev)
> * correctly get the seq as 2 and 3, then let mxc_get_clock
> * work as expected.
> */
> +
> + init_clk_usdhc(dev->seq);
> +
> priv->sdhc_clk = mxc_get_clock(MXC_ESDHC_CLK + dev->seq);
> if (priv->sdhc_clk <= 0) {
> dev_err(dev, "Unable to get clk for %s\n", dev->name);
> @@ -1021,6 +1028,7 @@ static const struct udevice_id fsl_esdhc_ids[] = {
> { .compatible = "fsl,imx6sl-usdhc", },
> { .compatible = "fsl,imx6q-usdhc", },
> { .compatible = "fsl,imx7d-usdhc", },
> + { .compatible = "fsl,imx7ulp-usdhc", },
> { /* sentinel */ }
> };
>
>
Reviewed-by : Stefano Babic <sbabic at denx.de>
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
More information about the U-Boot
mailing list