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: 2678991 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id DEF71DF23A for ; Thu, 6 Jun 2013 11:03:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932358Ab3FFLDE (ORCPT ); Thu, 6 Jun 2013 07:03:04 -0400 Received: from mail-pd0-f179.google.com ([209.85.192.179]:59780 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932400Ab3FFLDD (ORCPT ); Thu, 6 Jun 2013 07:03:03 -0400 Received: by mail-pd0-f179.google.com with SMTP id q11so3185339pdj.38 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=lYg3mkalkdhqrRxx5nIbN3kw2y/9M1jAWzxJo+xkfzGT5edB2hLmdKfFy+tuMLIpYB ip85iwuQ0MPbER0lADda2HHrv3g+WiSo45ylYcqr3exPtC8DVS16Jh6GYCv7Y/J7BUO8 uAMXvw6tDCs+8mmaXQCyJPp5yNhuXAMj9sMJAUcQ6544ApGXDs/d25s+Y+QgmHzTKYOV 8jTcng+ht/EG8lhHROc0XwQf8Fuh7tM5tJ1MVlQuy9vSFmzsWEGmOgVvuy1pfgrR889W gCVXCI7ORt6tUPZGFK6sRJoMHvsHUKv0YdcpfT9djOzEwQ5GFcPtJfx45gxEh5NMUJED WURw== 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 Cc: linux-samsung-soc@vger.kernel.org, linux-serial@vger.kernel.org, kgene.kim@samsung.com, t.figa@samsung.com, s.nawrocki@samsung.com, thomas.ab@samsung.com, Chander Kashyap , Thomas Abraham 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: ALoCoQn43JdUwsMMGg7r/Hjj9KnGxK18V/a5WaEqnSA7obE3fvBNHkAdtRO/hcZa2RaRxz+LnIab Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.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);