Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7140524imu; Thu, 31 Jan 2019 05:42:58 -0800 (PST) X-Google-Smtp-Source: ALg8bN6OAg+OQPC1xHNDGvOUuYsypEeB0CHSOVQ3mNqcpvVGPrkz2BdcraiVmg3o6N40lQSh65+i X-Received: by 2002:a63:c141:: with SMTP id p1mr31561120pgi.424.1548942178821; Thu, 31 Jan 2019 05:42:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548942178; cv=none; d=google.com; s=arc-20160816; b=HjOHjC/GPieTUWkan3PM3GxHFFxQH4ztmtR1xcAGl/56Lgr+yYhbQpQunAJf8LSBUd i+ZV5lnvAFvdrF7mq26eidZ5nlehGbEiZq4Pm5VTrJM821tsqNl6xh7DTMA5YBAKEitC IWFIv6+jm54qSZ1gRdWzzpaThvgq30gVUbxlexI/fOT/CbJC/ax/vbsFRucXjtiToznv vOM8pLJj1XbznS9LUxU4I/b5eldLXEZUjCOqCwb1mIxrBMu+I6Cz3001SkgtHrrtWJvq XXNblTddGsfJnJ/KcYZxKKrDfY+Ws8eObOxs0IXf8OI/h/1uJVSArtCs5sfa7dXuWrCV 0tVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kiBWtlRU9Lv1TNlAe7u938RwMGut2xvtFe1CB/XYr9Q=; b=KT7sOzfltcHA/8dIi8yGyY9nd2tOS1SBSeCxZ2wq/gUVsLREYTifNOhQzbiwadh4K7 iEln34DwAQ0Vz8bZSnxl+TVuC+8f0BsLG2jAj3J0/mwljuPKLoml9AdEN/D2N1H9BA2X tHHM9VthU3AaisgH25o1cv2qy8ZJAR2NS1iUK03BZp/F/S9Xu/g/UvlhIlkusG1CSGeT VGmYFkDGZ92zVyI1TmvrVuII0Q4Cgc6bc6WXbrnDcCIpp/PLk5YBZMwOlIHbC7G89NB+ jWC704y2IuFG0iMt5O0kKhj46w1EgxCq9aldnnb9ktcHpYw8dvW3SgFGReEo7tmtfnUV OQ2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=KZZFIKFE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a2si4410721pgd.461.2019.01.31.05.42.43; Thu, 31 Jan 2019 05:42:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=KZZFIKFE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387815AbfAaNkN (ORCPT + 99 others); Thu, 31 Jan 2019 08:40:13 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37668 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387773AbfAaNkJ (ORCPT ); Thu, 31 Jan 2019 08:40:09 -0500 Received: by mail-wm1-f66.google.com with SMTP id g67so2587604wmd.2 for ; Thu, 31 Jan 2019 05:40:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kiBWtlRU9Lv1TNlAe7u938RwMGut2xvtFe1CB/XYr9Q=; b=KZZFIKFEnSpOLEmJzYc0d52J4r/ZzyuTbfMa1Kcz2exMYS8V9pyI9UEBEZfvBFJYzJ 4m9+9afl487V6Re4yxadzf1qPs8x6gR/5o+CznxMRj97t7yDvitgjQWEU8SBFSaSGrhS kGVGDfZX/fVl1iJ6VJtMVV2s9vlwOWvX+Ufa6Ks8DZXCzIOevECzL5VyshoAyZ4QU1of D2Q4/Dt/so9Db6r3jd92EuIMuKHGVokkW2/hUl8KSHyh5z/TkeBZEIHZtIohgG/afSc2 Yx75FP8jQYj2R6t1PzIkzykCwHpcAX8+Ak7BJxzYtVMX8VMiw6dNaeZ0OQQXkyk25hU4 d9GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kiBWtlRU9Lv1TNlAe7u938RwMGut2xvtFe1CB/XYr9Q=; b=orlufCui6lKnLefOuggZnCwP7CMXzV0ur7AZxkPhqNVDg4uqOAZh4iuiKj5dkXe5ff QH+6KJoO4Easck9mEeZNSE24lHGGcYs0xmiytJ9cFaWP9o0jm9/nuWVJGUZgP/NOHI5J GJZpWdRf+smwEzxThgn8Ka3As3wR8dEyEVJLrkYDB3aKgnRxJIzXQn9ZvWxAAnqqgIEn Op/1e8pyQWz0Qxsp2cyoLb9vDbQaSlBjz6zwrYy1W8Fdiw7+jKtnDzASeQLAUAwf+E2h DZ0EK3qXkSijtFNVYIw4BzvrdaIi/znjihat2lyJ6krHEu/qgjjyfiYNKRXePRK8mSoy yJbw== X-Gm-Message-State: AHQUAuaAMFy6N1++Xym9MZZI7n5FZPyPzsSbvCYyJJ8TddrpTgbs/4Ci 4uWTKPEq7hgmRY3uyjr02KLLL7azu/M= X-Received: by 2002:a1c:c64e:: with SMTP id w75mr3830698wmf.46.1548942007705; Thu, 31 Jan 2019 05:40:07 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id h10sm5479768wmf.44.2019.01.31.05.40.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 05:40:07 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 22/35] ARM: davinci: cp-intc: add the new config structures for da8xx SoCs Date: Thu, 31 Jan 2019 14:39:15 +0100 Message-Id: <20190131133928.17985-23-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190131133928.17985-1-brgl@bgdev.pl> References: <20190131133928.17985-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Add the new-style config structures for dm* SoCs. They will be used once we make the cp-intc driver stop using davinci_soc_info. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da830.c | 10 ++++++++++ arch/arm/mach-davinci/da850.c | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/arch/arm/mach-davinci/da830.c b/arch/arm/mach-davinci/da830.c index 8b9220badef5..6d3da4364f7a 100644 --- a/arch/arm/mach-davinci/da830.c +++ b/arch/arm/mach-davinci/da830.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -742,6 +743,15 @@ void __init da830_init(void) WARN(!da8xx_syscfg0_base, "Unable to map syscfg0 module"); } +static const struct davinci_cp_intc_config da830_cp_intc_config = { + .reg = { + .start = DA8XX_CP_INTC_BASE, + .end = DA8XX_CP_INTC_BASE + SZ_8K, + .flags = IORESOURCE_MEM, + }, + .num_irqs = DA830_N_CP_INTC_IRQ, +}; + void __init da830_init_irqs(void) { cp_intc_init(); diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 9f48e1ac61fb..5e7f2c962abf 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -671,6 +672,15 @@ void __init da850_init(void) WARN(!da8xx_syscfg1_base, "Unable to map syscfg1 module"); } +static const struct davinci_cp_intc_config da850_cp_intc_config = { + .reg = { + .start = DA8XX_CP_INTC_BASE, + .end = DA8XX_CP_INTC_BASE + SZ_8K, + .flags = IORESOURCE_MEM, + }, + .num_irqs = DA850_N_CP_INTC_IRQ, +}; + void __init da850_init_irqs(void) { cp_intc_init(); -- 2.20.1