projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b512d07
)
driver: mmc: adopt 32 bit addr in fsl_esdhc for CONFIG_PPC
author
Yinbo Zhu
<yinbo.zhu@nxp.com>
Thu, 11 Apr 2019 11:01:50 +0000
(11:01 +0000)
committer
Prabhakar Kushwaha
<prabhakar.kushwaha@nxp.com>
Thu, 23 May 2019 08:52:33 +0000
(14:22 +0530)
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>
drivers/mmc/fsl_esdhc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/fsl_esdhc.c
b/drivers/mmc/fsl_esdhc.c
index ab530551fab751ec1b19699f597ca5608096c487..672691fa6a716034b84f3140daec214970d12b7a 100644
(file)
--- 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) {