linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] irqchip: tegra: Add Tegra210 support
@ 2015-03-23 10:26 Thierry Reding
  2015-03-29 20:14 ` Jason Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Thierry Reding @ 2015-03-23 10:26 UTC (permalink / raw)
  To: Thomas Gleixner, Jason Cooper
  Cc: Stephen Warren, Alexandre Courbot, Paul Walmsley,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA

From: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>

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

Signed-off-by: Thierry Reding <treding-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
---
 drivers/irqchip/irq-tegra.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-tegra.c b/drivers/irqchip/irq-tegra.c
index d919ecf29cf4..51c485d9a877 100644
--- a/drivers/irqchip/irq-tegra.c
+++ b/drivers/irqchip/irq-tegra.c
@@ -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);
-- 
2.3.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] irqchip: tegra: Add Tegra210 support
  2015-03-23 10:26 [PATCH] irqchip: tegra: Add Tegra210 support Thierry Reding
@ 2015-03-29 20:14 ` Jason Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Cooper @ 2015-03-29 20:14 UTC (permalink / raw)
  To: Thierry Reding
  Cc: Thomas Gleixner, Stephen Warren, Alexandre Courbot, Paul Walmsley,
	linux-kernel, linux-tegra

Thierry,

On Mon, Mar 23, 2015 at 11:26:19AM +0100, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> Tegra210 uses the same legacy interrupt controller as older generations
> but it adds a sixth instance.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
>  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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-29 20:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-23 10:26 [PATCH] irqchip: tegra: Add Tegra210 support Thierry Reding
2015-03-29 20:14 ` Jason Cooper

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).