mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-28 10:01:32 +00:00
dm: usb: Add a compatible string for PCI EHCI controller
Add a compatible string to allow this to be specified in the device tree if needed. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Marek Vasut <marex@denx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
d062482b46
commit
907eed2ce3
1 changed files with 6 additions and 0 deletions
|
@ -137,11 +137,17 @@ static int ehci_pci_remove(struct udevice *dev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const struct udevice_id ehci_pci_ids[] = {
|
||||||
|
{ .compatible = "ehci-pci" },
|
||||||
|
{ }
|
||||||
|
};
|
||||||
|
|
||||||
U_BOOT_DRIVER(ehci_pci) = {
|
U_BOOT_DRIVER(ehci_pci) = {
|
||||||
.name = "ehci_pci",
|
.name = "ehci_pci",
|
||||||
.id = UCLASS_USB,
|
.id = UCLASS_USB,
|
||||||
.probe = ehci_pci_probe,
|
.probe = ehci_pci_probe,
|
||||||
.remove = ehci_pci_remove,
|
.remove = ehci_pci_remove,
|
||||||
|
.of_match = ehci_pci_ids,
|
||||||
.ops = &ehci_usb_ops,
|
.ops = &ehci_usb_ops,
|
||||||
.platdata_auto_alloc_size = sizeof(struct usb_platdata),
|
.platdata_auto_alloc_size = sizeof(struct usb_platdata),
|
||||||
.priv_auto_alloc_size = sizeof(struct ehci_pci_priv),
|
.priv_auto_alloc_size = sizeof(struct ehci_pci_priv),
|
||||||
|
|
Loading…
Add table
Reference in a new issue