* [PATCH 1/1] iommu/tegra: Add device tree support for SMMU
@ 2012-04-13 10:23 Hiroshi Doyu
[not found] ` <20120413.132331.971155172093927884.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Hiroshi Doyu @ 2012-04-13 10:23 UTC (permalink / raw)
To: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org
Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
From: Hiroshi DOYU <hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Add device tree support for Tegra30 IOMMU(SMMU).
Signed-off-by: Hiroshi DOYU <hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
drivers/iommu/tegra-smmu.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index eb93c82..d4c7963 100644
--- a/drivers/iommu/tegra-smmu.c
+++ b/drivers/iommu/tegra-smmu.c
@@ -30,6 +30,7 @@
#include <linux/sched.h>
#include <linux/iommu.h>
#include <linux/io.h>
+#include <linux/of.h>
#include <asm/page.h>
#include <asm/cacheflush.h>
@@ -1005,6 +1006,13 @@ const struct dev_pm_ops tegra_smmu_pm_ops = {
.resume = tegra_smmu_resume,
};
+#ifdef CONFIG_OF
+static struct of_device_id tegra_smmu_of_match[] __devinitdata = {
+ { .compatible = "nvidia,tegra30-smmu", },
+ { },
+};
+#endif
+
static struct platform_driver tegra_smmu_driver = {
.probe = tegra_smmu_probe,
.remove = tegra_smmu_remove,
@@ -1012,6 +1020,7 @@ static struct platform_driver tegra_smmu_driver = {
.owner = THIS_MODULE,
.name = "tegra-smmu",
.pm = &tegra_smmu_pm_ops,
+ .of_match_table = of_match_ptr(tegra_smmu_of_match),
},
};
@@ -1031,4 +1040,5 @@ module_exit(tegra_smmu_exit);
MODULE_DESCRIPTION("IOMMU API for SMMU in Tegra30");
MODULE_AUTHOR("Hiroshi DOYU <hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>");
+MODULE_ALIAS("platform:tegra-smmu");
MODULE_LICENSE("GPL v2");
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread[parent not found: <20120413.132331.971155172093927884.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>]
* Re: [PATCH 1/1] iommu/tegra: Add device tree support for SMMU [not found] ` <20120413.132331.971155172093927884.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> @ 2012-04-13 11:07 ` Thierry Reding [not found] ` <20120413110753.GC11605-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org> 2012-04-13 19:35 ` Stephen Warren 1 sibling, 1 reply; 4+ messages in thread From: Thierry Reding @ 2012-04-13 11:07 UTC (permalink / raw) To: Hiroshi Doyu Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org [-- Attachment #1.1: Type: text/plain, Size: 467 bytes --] * Hiroshi Doyu wrote: > From: Hiroshi DOYU <hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > > Add device tree support for Tegra30 IOMMU(SMMU). > > Signed-off-by: Hiroshi DOYU <hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > --- > drivers/iommu/tegra-smmu.c | 10 ++++++++++ > 1 files changed, 10 insertions(+), 0 deletions(-) I would expect the binding documentation to be included with this patch instead of the previous one. Stephen? Thierry [-- Attachment #1.2: Type: application/pgp-signature, Size: 198 bytes --] [-- Attachment #2: Type: text/plain, Size: 190 bytes --] _______________________________________________ iommu mailing list iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org https://lists.linuxfoundation.org/mailman/listinfo/iommu ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20120413110753.GC11605-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>]
* Re: [PATCH 1/1] iommu/tegra: Add device tree support for SMMU [not found] ` <20120413110753.GC11605-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org> @ 2012-04-13 19:26 ` Stephen Warren 0 siblings, 0 replies; 4+ messages in thread From: Stephen Warren @ 2012-04-13 19:26 UTC (permalink / raw) To: Thierry Reding Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org On 04/13/2012 05:07 AM, Thierry Reding wrote: > * Hiroshi Doyu wrote: >> From: Hiroshi DOYU <hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> >> >> Add device tree support for Tegra30 IOMMU(SMMU). >> >> Signed-off-by: Hiroshi DOYU <hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> >> --- >> drivers/iommu/tegra-smmu.c | 10 ++++++++++ >> 1 files changed, 10 insertions(+), 0 deletions(-) > > I would expect the binding documentation to be included with this patch > instead of the previous one. Stephen? I would certainly tend to include the documentation with the code, then follow it later with a separate path that edits the .dts/.dtsi files. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] iommu/tegra: Add device tree support for SMMU [not found] ` <20120413.132331.971155172093927884.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> 2012-04-13 11:07 ` Thierry Reding @ 2012-04-13 19:35 ` Stephen Warren 1 sibling, 0 replies; 4+ messages in thread From: Stephen Warren @ 2012-04-13 19:35 UTC (permalink / raw) To: Hiroshi Doyu Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org On 04/13/2012 04:23 AM, Hiroshi Doyu wrote: > From: Hiroshi DOYU <hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> > > Add device tree support for Tegra30 IOMMU(SMMU). > diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c > +#ifdef CONFIG_OF > +static struct of_device_id tegra_smmu_of_match[] __devinitdata = { > + { .compatible = "nvidia,tegra30-smmu", }, > + { }, > +}; > +#endif You probably want to add the following here, inside the ifdef: MODULE_DEVICE_TABLE(of, tegra_smmu_of_match); ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-13 19:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-13 10:23 [PATCH 1/1] iommu/tegra: Add device tree support for SMMU Hiroshi Doyu
[not found] ` <20120413.132331.971155172093927884.hdoyu-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-04-13 11:07 ` Thierry Reding
[not found] ` <20120413110753.GC11605-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-04-13 19:26 ` Stephen Warren
2012-04-13 19:35 ` Stephen Warren
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).