* [RFC,1/5] usb: musb: am35x: Add device tree support
@ 2018-06-25 0:12 aford173
0 siblings, 0 replies; only message in thread
From: aford173 @ 2018-06-25 0:12 UTC (permalink / raw)
To: adam.ford
Cc: bcousson, tony, robh+dt, mark.rutland, linux, b-liu, gregkh,
linux-omap, devicetree, linux-arm-kernel, linux-usb, Adam Ford
The AM35x glue doesn't yet support device tree, so this patch
adds the basics hooks so it doesn't haven't use pdata-quirks.c
Signed-off-by: Adam Ford <aford173@gmail.com>
diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c
index 660641ab1545..a55db15a8457 100644
--- a/drivers/usb/musb/am35x.c
+++ b/drivers/usb/musb/am35x.c
@@ -591,6 +591,16 @@ static int am35x_resume(struct device *dev)
}
#endif
+#ifdef CONFIG_OF
+static const struct of_device_id am35xx_id_table[] = {
+ {
+ .compatible = "ti,am35xx-musb"
+ },
+ {},
+};
+MODULE_DEVICE_TABLE(of, am35xx_id_table);
+#endif
+
static SIMPLE_DEV_PM_OPS(am35x_pm_ops, am35x_suspend, am35x_resume);
static struct platform_driver am35x_driver = {
@@ -599,6 +609,7 @@ static struct platform_driver am35x_driver = {
.driver = {
.name = "musb-am35x",
.pm = &am35x_pm_ops,
+ .of_match_table = of_match_ptr(am35xx_id_table),
},
};
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2018-06-25 0:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-25 0:12 [RFC,1/5] usb: musb: am35x: Add device tree support aford173
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).