Thread (1 message) 1 message, 1 author, 2014-08-29

[PATCH v4 3/5] ARM: tegra: Initialize interrupt controller from DT

From: Thierry Reding <hidden>
Date: 2014-08-29 07:29:36
Also in: linux-devicetree, linux-tegra

On Fri, Aug 29, 2014 at 08:57:49AM +0530, Varka Bhadram wrote:
On 08/28/2014 09:01 PM, Thierry Reding wrote:
quoted
From: Thierry Reding <redacted>

Obtains the register ranges for the legacy interrupt controller from DT
and provide hard-coded values as fallback.
(...)
quoted
+static const struct tegra_ictlr_soc tegra30_ictlr_soc = {
+	.num_ictlrs = 5,
+};
+
+static const struct of_device_id ictlr_matches[] = {
+	{ .compatible = "nvidia,tegra30-ictlr", .data = &tegra30_ictlr_soc },
+	{ .compatible = "nvidia,tegra20-ictlr", .data = &tegra20_ictlr_soc },
+	{ }
+};
+
+static const struct of_device_id gic_matches[] = {
+	{ .compatible = "arm,cortex-a15-gic", },
+	{ .compatible = "arm,cortex-a9-gic", },
+	{ }
+};
+
Missed MODULE_DEVICE_TABLE(of, ...)....?
The driver isn't useful as a module, so I don't think that's necessary.
I'm not even sure it could be loaded that late in the process. Without
it peripheral interrupts don't work properly, so loading this from the
filesystem doesn't work (unless it's in an initrd), but perhaps even
that won't work. I'm not aware of anyone actually ever trying to build
it as a module.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140829/3f12e3f7/attachment.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help