From patchwork Thu Jun 6 11:01:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 2680751 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) by patchwork2.kernel.org (Postfix) with ESMTP id 8E292DF23A for ; Thu, 6 Jun 2013 13:40:14 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UkY0o-0002dg-Vd; Thu, 06 Jun 2013 11:05:49 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UkXzM-00052q-E0; Thu, 06 Jun 2013 11:04:16 +0000 Received: from mail-pd0-f179.google.com ([209.85.192.179]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UkXya-0004tz-SO for linux-arm-kernel@lists.infradead.org; Thu, 06 Jun 2013 11:03:30 +0000 Received: by mail-pd0-f179.google.com with SMTP id q11so3194712pdj.10 for ; Thu, 06 Jun 2013 04:03:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=E2GD70VPpIz48eT0uOwnlzpCPR/5C+VysNMSyoyKehI=; b=Y+E/NzwOGTbM07yN99cV5BQ1tu6WZ0eJEFnv5IVBPLFfdfRQRS10W4E6Ro9L41kgJ8 8grHrbCiYUvEdyhbgIAvGgprGLtGVbe0gwTl1APlhWFFrv5bp19Bc2LK7tEKh0YGxsE9 nP/ma+PswX+unsWr0xfpOg4bAD586Hks8qh27nxIwdLM96ITtUHeELTP0qGFAE042rwY mdYTWDHJghO+yZ6LGbO6MSzJyiS/JtN6e4+mFywKh+CIl7OZTWLVL0GaS1hO7nDcEuLM P7AV2MZxsUxtC4/bgTNLz8CKp8XMHy2PgNU8i6pDzfEasaRxAOz8j8aQY0QfbS3PG/ql ZcTQ== X-Received: by 10.67.21.226 with SMTP id hn2mr36741329pad.135.1370516582552; Thu, 06 Jun 2013 04:03:02 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id qh4sm77248213pac.8.2013.06.06.04.02.58 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Jun 2013 04:03:02 -0700 (PDT) From: Chander Kashyap To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 08/13] irqchip: exynos-combiner: set irq base as 256 for Exynos5420 Date: Thu, 6 Jun 2013 16:31:22 +0530 Message-Id: <1370516488-25860-8-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1370516488-25860-1-git-send-email-chander.kashyap@linaro.org> References: <1370516488-25860-1-git-send-email-chander.kashyap@linaro.org> X-Gm-Message-State: ALoCoQnxXHeEt1kaZVRkoEaNBcYsMLWWw773qoJlYguTxYhArOKyiuuhE1k/V3SW0N1OOj2s87U0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130606_070329_057020_02ABDE6F X-CRM114-Status: GOOD ( 10.93 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.192.179 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: kgene.kim@samsung.com, linux-serial@vger.kernel.org, t.figa@samsung.com, Chander Kashyap , linux-samsung-soc@vger.kernel.org, thomas.ab@samsung.com, Thomas Abraham , s.nawrocki@samsung.com X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Exynos5420 uses 256 GIC interrupts unlike the previous Exynos SoCs which had upto 160 GIC interrupts. Since the exynos-combiner driver uses irq domain simple to support some of the Exynos4 non-dt platforms, the irq_base is set temporarily to 256 for Exynos5420 combiner interrupts. Signed-off-by: Chander Kashyap Signed-off-by: Thomas Abraham --- drivers/irqchip/exynos-combiner.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/exynos-combiner.c b/drivers/irqchip/exynos-combiner.c index a9d2b2f..465271f 100644 --- a/drivers/irqchip/exynos-combiner.c +++ b/drivers/irqchip/exynos-combiner.c @@ -267,7 +267,10 @@ static int __init combiner_of_init(struct device_node *np, * get their IRQ from DT, remove this in order to get dynamic * allocation. */ - irq_base = 160; + if (soc_is_exynos5420()) + irq_base = 256; + else + irq_base = 160; combiner_init(combiner_base, np, max_nr, irq_base);