From patchwork Mon Mar 23 10:26:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 453347 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3C43E14007D for ; Mon, 23 Mar 2015 21:26:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="verification failed; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=CBok1akl; dkim-adsp=none (unprotected policy); dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752091AbbCWK0X (ORCPT ); Mon, 23 Mar 2015 06:26:23 -0400 Received: from mail-wi0-f173.google.com ([209.85.212.173]:33331 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752071AbbCWK0W (ORCPT ); Mon, 23 Mar 2015 06:26:22 -0400 Received: by wixw10 with SMTP id w10so32043932wix.0; Mon, 23 Mar 2015 03:26:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=b8v89RNFBIilDaP8Lg7k7rm/+MR1aud9iBfNQSaf21Q=; b=CBok1aklerVQCsJ5ThL5WPWb6T+T39rN7hwe/rNI8f4kiv32d11sBuJOewVLeYd1ol YBMeNCNb63EuTgbLY9Nn3HxUZ6POnh0Q2YUd6YzG4BQu70c4MgamGjTDY1GFNdMa0z/w gf7i6ysN9m1zp2BsvwC6+PkwibeODNMn6ixN+IVz1YnmoIm7YbV0vFj6rQv5XH1ik8Ym DtjYhr5sBmtRZDD4UHIXJVsKsuSv2fT2vaKEXv53UcA3YTA/6Pp+SRUatDnNV3oJ2Xhw MomVTU1cKJmryG0hap/oeNkhb/A+TSLy69LpeYaQnXGGsVNoUwLuajNdwMUBqGl7D0zq h2KA== X-Received: by 10.180.74.170 with SMTP id u10mr17995010wiv.46.1427106381496; Mon, 23 Mar 2015 03:26:21 -0700 (PDT) Received: from localhost (port-22036.pppoe.wtnet.de. [46.59.147.192]) by mx.google.com with ESMTPSA id cf12sm730265wjb.10.2015.03.23.03.26.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Mar 2015 03:26:20 -0700 (PDT) From: Thierry Reding To: Thomas Gleixner , Jason Cooper Cc: Stephen Warren , Alexandre Courbot , Paul Walmsley , linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH] irqchip: tegra: Add Tegra210 support Date: Mon, 23 Mar 2015 11:26:19 +0100 Message-Id: <1427106379-14037-1-git-send-email-thierry.reding@gmail.com> X-Mailer: git-send-email 2.3.2 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Thierry Reding Tegra210 uses the same legacy interrupt controller as older generations but it adds a sixth instance. Signed-off-by: Thierry Reding --- 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);