Commit 8ad551d1 authored by Tony Prisk's avatar Tony Prisk Committed by Greg Kroah-Hartman

ARM: vt8500: Update vt8500-ehci driver to support device tree.

Signed-off-by: default avatarTony Prisk <linux@prisktech.co.nz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dfdda5a0
VIA VT8500 and Wondermedia WM8xxx SoC USB controllers.
Required properties:
- compatible: Should be "via,vt8500-ehci" or "wm,prizm-ehci".
- reg: Address range of the ehci registers. size should be 0x200
- interrupts: Should contain the ehci interrupt.
usb: ehci@D8007100 {
compatible = "wm,prizm-ehci", "usb-ehci";
reg = <0xD8007100 0x200>;
interrupts = <1>;
};
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
* *
*/ */
#include <linux/of.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
static int ehci_update_device(struct usb_hcd *hcd, struct usb_device *udev) static int ehci_update_device(struct usb_hcd *hcd, struct usb_device *udev)
...@@ -139,6 +140,12 @@ static int vt8500_ehci_drv_remove(struct platform_device *pdev) ...@@ -139,6 +140,12 @@ static int vt8500_ehci_drv_remove(struct platform_device *pdev)
return 0; return 0;
} }
static const struct of_device_id vt8500_ehci_ids[] = {
{ .compatible = "via,vt8500-ehci", },
{ .compatible = "wm,prizm-ehci", },
{}
};
static struct platform_driver vt8500_ehci_driver = { static struct platform_driver vt8500_ehci_driver = {
.probe = vt8500_ehci_drv_probe, .probe = vt8500_ehci_drv_probe,
.remove = vt8500_ehci_drv_remove, .remove = vt8500_ehci_drv_remove,
...@@ -146,7 +153,9 @@ static struct platform_driver vt8500_ehci_driver = { ...@@ -146,7 +153,9 @@ static struct platform_driver vt8500_ehci_driver = {
.driver = { .driver = {
.name = "vt8500-ehci", .name = "vt8500-ehci",
.owner = THIS_MODULE, .owner = THIS_MODULE,
.of_match_table = of_match_ptr(vt8500_ehci_ids),
} }
}; };
MODULE_ALIAS("platform:vt8500-ehci"); MODULE_ALIAS("platform:vt8500-ehci");
MODULE_DEVICE_TABLE(of, vt8500_ehci_ids);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment