From: Yinbo Zhu Date: Thu, 11 Apr 2019 11:01:50 +0000 (+0000) Subject: driver: mmc: adopt 32 bit addr in fsl_esdhc for CONFIG_PPC X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/git-favicon.png?a=commitdiff_plain;h=b69e1d0bc711592269ac86857a2699d1d0f80f06;p=u-boot.git driver: mmc: adopt 32 bit addr in fsl_esdhc for CONFIG_PPC PowerPC supports 32 bit address. So adopt 32 bit addr in fsl_esdhc for CONFIG_PPC. Signed-off-by: Yinbo Zhu Reviewed-by: Prabhakar Kushwaha --- diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index ab530551fa..672691fa6a 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -1462,8 +1462,11 @@ static int fsl_esdhc_probe(struct udevice *dev) addr = dev_read_addr(dev); if (addr == FDT_ADDR_T_NONE) return -EINVAL; - +#ifdef CONFIG_PPC + priv->esdhc_regs = (struct fsl_esdhc *)lower_32_bits(addr); +#else priv->esdhc_regs = (struct fsl_esdhc *)addr; +#endif priv->dev = dev; priv->mode = -1; if (data) {