Skip to contentSkip to conversation

irqchip: tegra: Add Tegra210 support

PATCH In review Thierry Reding 2 participants 2 messages Mar 23, 2015 – Mar 29, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 irqchip: tegra: Add Tegra210 support

From: Thierry Reding <[email protected]>

Tegra210 uses the same legacy interrupt controller as older generations but it adds a sixth instance.

---
 drivers/irqchip/irq-tegra.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/irqchip/irq-tegra.c +7 -1
index d919ecf29cf4..51c485d9a877 100644
@@ -48,7 +48,7 @@
 #define ICTLR_COP_IER_CLR	0x38
 #define ICTLR_COP_IEP_CLASS	0x3c
 
-#define TEGRA_MAX_NUM_ICTLRS	5
+#define TEGRA_MAX_NUM_ICTLRS	6
 
 static unsigned int num_ictlrs;
 
@@ -64,7 +64,12 @@ static const struct tegra_ictlr_soc tegra30_ictlr_soc = {
 	.num_ictlrs = 5,
 };
 
+static const struct tegra_ictlr_soc tegra210_ictlr_soc = {
+	.num_ictlrs = 6,
+};
+
 static const struct of_device_id ictlr_matches[] = {
+	{ .compatible = "nvidia,tegra210-ictlr", .data = &tegra210_ictlr_soc },
 	{ .compatible = "nvidia,tegra30-ictlr", .data = &tegra30_ictlr_soc },
 	{ .compatible = "nvidia,tegra20-ictlr", .data = &tegra20_ictlr_soc },
 	{ }
@@ -369,3 +374,4 @@ out_free:
 
 IRQCHIP_DECLARE(tegra20_ictlr, "nvidia,tegra20-ictlr", tegra_ictlr_init);
 IRQCHIP_DECLARE(tegra30_ictlr, "nvidia,tegra30-ictlr", tegra_ictlr_init);
+IRQCHIP_DECLARE(tegra210_ictlr, "nvidia,tegra210-ictlr", tegra_ictlr_init);
Signature · 1 line
2.3.2
#1 lore raw

Thierry,

Quoted 9 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Tegra210 uses the same legacy interrupt controller as older generations but it adds a sixth instance.

---
 drivers/irqchip/irq-tegra.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

I've applied this on top of irqchip/stacked-tegra.

thx,

Jason.