mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-26 17:11:32 +00:00
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>
This commit is contained in:
parent
b512d07e8c
commit
b69e1d0bc7
1 changed files with 4 additions and 1 deletions
|
@ -1462,8 +1462,11 @@ static int fsl_esdhc_probe(struct udevice *dev)
|
||||||
addr = dev_read_addr(dev);
|
addr = dev_read_addr(dev);
|
||||||
if (addr == FDT_ADDR_T_NONE)
|
if (addr == FDT_ADDR_T_NONE)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
#ifdef CONFIG_PPC
|
||||||
|
priv->esdhc_regs = (struct fsl_esdhc *)lower_32_bits(addr);
|
||||||
|
#else
|
||||||
priv->esdhc_regs = (struct fsl_esdhc *)addr;
|
priv->esdhc_regs = (struct fsl_esdhc *)addr;
|
||||||
|
#endif
|
||||||
priv->dev = dev;
|
priv->dev = dev;
|
||||||
priv->mode = -1;
|
priv->mode = -1;
|
||||||
if (data) {
|
if (data) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue