[U-Boot] [PATCH v3 3/8] mmc: fsl_esdhc: ppc: adopt 32 bit address
Yinbo Zhu
yinbo.zhu at nxp.com
Thu Apr 11 11:01:50 UTC 2019
From: Yinbo Zhu <yinbo.zhu at nxp.com>
This patch is to adopt 32 bit address for ppc
Signed-off-by: Yinbo Zhu <yinbo.zhu at nxp.com>
---
Change in v3:
update the commit information
drivers/mmc/fsl_esdhc.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 88a5b0c46d..fc84d4b7ee 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -1455,8 +1455,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) {
--
2.17.1
More information about the U-Boot
mailing list