mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
mmc: zynq: Fix default value for xlnx,mio-bank
DT binding is saying that default value is 0 not -1 that's why fix it. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
@@ -276,7 +276,7 @@ static int arasan_sdhci_ofdata_to_platdata(struct udevice *dev)
|
|||||||
return PTR_ERR(priv->host->ioaddr);
|
return PTR_ERR(priv->host->ioaddr);
|
||||||
|
|
||||||
priv->deviceid = dev_read_u32_default(dev, "xlnx,device_id", -1);
|
priv->deviceid = dev_read_u32_default(dev, "xlnx,device_id", -1);
|
||||||
priv->bank = dev_read_u32_default(dev, "xlnx,mio-bank", -1);
|
priv->bank = dev_read_u32_default(dev, "xlnx,mio-bank", 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user