projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c52ac3f
)
net: designware: Use dm_pci_mem_to_phys() in the probe routine
author
Bin Meng
<
[email protected]
>
Tue, 2 Feb 2016 13:58:00 +0000
(
05:58
-0800)
committer
Bin Meng
<
[email protected]
>
Fri, 5 Feb 2016 04:47:23 +0000
(12:47 +0800)
Convert to use native DM PCI API dm_pci_mem_to_phys().
Signed-off-by: Bin Meng <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
drivers/net/designware.c
patch
|
blob
|
history
diff --git
a/drivers/net/designware.c
b/drivers/net/designware.c
index 77b98c94c04df5b0ee5708a14d8798aefff8f908..ca58f34f13bf9af6e62fd9b1760a8ccfdac688b7 100644
(file)
--- a/
drivers/net/designware.c
+++ b/
drivers/net/designware.c
@@
-591,11
+591,9
@@
static int designware_eth_probe(struct udevice *dev)
* or via a PCI bridge, fill in platdata before we probe the hardware.
*/
if (device_is_on_pci_bus(dev)) {
- pci_dev_t bdf = dm_pci_get_bdf(dev);
-
dm_pci_read_config32(dev, PCI_BASE_ADDRESS_0, &iobase);
iobase &= PCI_BASE_ADDRESS_MEM_MASK;
- iobase =
pci_mem_to_phys(bdf
, iobase);
+ iobase =
dm_pci_mem_to_phys(dev
, iobase);
pdata->iobase = iobase;
pdata->phy_interface = PHY_INTERFACE_MODE_RMII;