diff options
author | Jeremy Linton <jeremy.linton@arm.com> | 2015-08-12 16:51:30 -0500 |
---|---|---|
committer | Graeme Gregory <graeme.gregory@linaro.org> | 2015-08-31 12:01:10 +0100 |
commit | ac2b38b09fe5bb96ea694153ad4b946df97be081 (patch) | |
tree | 7b9ec563008853d6523c8d8f10900240ac9251c8 | |
parent | d08a5dde4deef43036505a8bb36e7895e0814bb7 (diff) |
Add ACPI bindings for the EHCI platform driver.acpi-topic-juno-fvp
This enables USB on the ARM juno board when booted with
an ACPI kernel. The PNP id comes from the PNP/ACPI registry
and describes a EHCI controller without debug.
Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
-rw-r--r-- | drivers/usb/host/ehci-platform.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c index 82e396f86c78..1807baa0de7f 100644 --- a/drivers/usb/host/ehci-platform.c +++ b/drivers/usb/host/ehci-platform.c @@ -27,6 +27,7 @@ #include <linux/io.h> #include <linux/module.h> #include <linux/of.h> +#include <linux/acpi.h> #include <linux/phy/phy.h> #include <linux/platform_device.h> #include <linux/reset.h> @@ -382,6 +383,13 @@ static const struct of_device_id vt8500_ehci_ids[] = { }; MODULE_DEVICE_TABLE(of, vt8500_ehci_ids); +static const struct acpi_device_id ehci_acpi_match[] = { + { "PNP0D20", 0 }, + { } +}; +MODULE_DEVICE_TABLE(acpi, ehci_acpi_match); + + static const struct platform_device_id ehci_platform_table[] = { { "ehci-platform", 0 }, { } @@ -400,6 +408,7 @@ static struct platform_driver ehci_platform_driver = { .name = "ehci-platform", .pm = &ehci_platform_pm_ops, .of_match_table = vt8500_ehci_ids, + .acpi_match_table = ACPI_PTR(ehci_acpi_match), } }; |