diff options
author | Yinbo Zhu <yinbo.zhu@nxp.com> | 2019-04-11 11:01:50 +0000 |
---|---|---|
committer | Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> | 2019-05-23 14:22:33 +0530 |
commit | b69e1d0bc711592269ac86857a2699d1d0f80f06 (patch) | |
tree | a3265aecb99299826aba00b485918b520e051b50 | |
parent | b512d07e8c5b5466830626088b5e96c1edcf3e2f (diff) | |
download | u-boot-b69e1d0bc711592269ac86857a2699d1d0f80f06.tar.gz |
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 <yinbo.zhu@nxp.com>
Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
-rw-r--r-- | drivers/mmc/fsl_esdhc.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |