Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp99627imj; Thu, 14 Feb 2019 16:12:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IamT/DqKGRvFGCsyBHPLED3GAX3GzO2vhH0GWCjCuq1RdJGwEtkgzvD829CHkLPAAQRbX1I X-Received: by 2002:a63:c204:: with SMTP id b4mr2548854pgd.335.1550189563469; Thu, 14 Feb 2019 16:12:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550189563; cv=none; d=google.com; s=arc-20160816; b=aMDMpRM3gY0Diw8gkKGMO+2q9DQqiLea5V2XzYK9HkuOLl1T2ef0dO5g4jmd1KMi5X Rle+UYD7XSAN0UvHGaLca5lrfYK3yKwWoYCa8FDvTQm0dPZiGRlYza0P2vJEPg9KAviL IYyfkqYy+ShZNwJLY+zXFyjWuA1NQAF3rvf8e6tONFzPTi9vnZkbLyN/rJcj3RPLjVAl 9Nx6VVMbl8gtqREQaDJep0NibeMtj9bp9FVM18sI/JjftNKS1XtBUeSS9uoS9ajqtC4q BziI96mZNsPviv5o9baNu0ZmwIJ++1LXoqjH/+Jvpv1pFDxrilJWPr0MPi0AdT2ceE+9 pg/Q== 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=gQeA7phzsYQZFK2JLuLMFYmsphbl1nQUs0emAC/KfyA=; b=Bs9CyjOtRleZ02YKPuvAajtFzACqxs1cPITMQQT3dNR/eFBWB1iTKYTmmHjU+X9i3M QR9NElT0SKVRNzbg+mvF3go+x18fzG+vBSGkJNay4E1zO/pgKiV9SLtwzmaShvLb7FLa 95jA18PxT9LK+kuSvDb/Fsrw4nPfV8acbIf9JMzb3nfVSYr1FFvBOf36xYaNfwoj6e/n D9clJXLNHtNZBT5N9ZpD1g9ibDRo4mk+TcxuK5xcWlTH9XLryX8+ZEOa3jbi18QHwsst e7WX/mUUMmyteCMXk617EpMPX4XQ9nSo2MGZq8n2JNI3TW/dR9E6Z2DnC9XEDjRKJ5ZG 7YpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=ujanP9yA; 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 e6si3583125pgk.201.2019.02.14.16.12.27; Thu, 14 Feb 2019 16:12:43 -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=ujanP9yA; 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 S2439582AbfBNOxH (ORCPT + 99 others); Thu, 14 Feb 2019 09:53:07 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34570 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439550AbfBNOxE (ORCPT ); Thu, 14 Feb 2019 09:53:04 -0500 Received: by mail-wr1-f65.google.com with SMTP id f14so6831533wrg.1 for ; Thu, 14 Feb 2019 06:53:03 -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=gQeA7phzsYQZFK2JLuLMFYmsphbl1nQUs0emAC/KfyA=; b=ujanP9yAYW/maE4iuUf4Is1sCRY4LPb8Iq1w4VoGjOznBrt+E+BGUSM0HPEHz0diMu mSEwa4luSDOmPVZjMXbhJ9YJhhkj78mcJlCtfTbO7CJwO6XqgoQXCOf+sN/bmQwedJkH y4TT7mosmLY/mjdNzMglvKG2uvmZkwGYJqYIS0wvEaKUc6ObJdATs6WFq51OfxY0mflC Gc9NnYdEIKG/3B5wuLCevGWikWkrYy2kojWWZyBeg75BnV/DiaRIg8YHmFZJwWKYKXEw KfNkDHy6lymdRr4jNDxfMOOggTXpF5KvNexsJKJvpDeguWy7ZTxYL6g4E1+5MQHTwNF9 zbSg== 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=gQeA7phzsYQZFK2JLuLMFYmsphbl1nQUs0emAC/KfyA=; b=egb6MyMsyDuD+HIhFUoe73OTs258LEjn6qDH/sdWQ1z2Ifar0w50ehrFpdutJ2n0FV sIqGVqvq9EV0UQdcDW67IiS0Xj09UeBRjwzwBibtwsV6VYdYUUfYLsaRv+3AGVGDOcXA AhYEeKaxReyDxS612xDceUsR8YvvGVhwlvySJUTgn9Ra4ILos/kI/HHIU/DuOKdlmXu6 hIrIWqEGf0zrH1yC6flJMjzZWxT44pOtdKg5yY1PCNBtpeEMIjZTdT+VVrraNjirvwt5 86uPiDz0Ev+q9liPWPTUO0fbgFJXILDFn1u1I67FCI3f0c+JzkvoqPR49xoSZ3SIEybp 0HwA== X-Gm-Message-State: AHQUAub5IEelaaoxN8NF12RnR/TEQy19C3dvzmastGEY4iugdimalczg gfCxrTQE6JFx19BNUqVvMmyA4Q== X-Received: by 2002:a5d:434c:: with SMTP id u12mr3249272wrr.14.1550155982486; Thu, 14 Feb 2019 06:53:02 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id y20sm4181005wra.51.2019.02.14.06.53.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 06:53:01 -0800 (PST) From: Bartosz Golaszewski To: Dmitry Torokhov , Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier , David Lechner Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v4 16/37] ARM: davinci: aintc: use the new irqchip config structure in dm* SoCs Date: Thu, 14 Feb 2019 15:52:10 +0100 Message-Id: <20190214145231.8750-17-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190214145231.8750-1-brgl@bgdev.pl> References: <20190214145231.8750-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 aintc driver stop using davinci_soc_info. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/dm355.c | 11 +++++++++++ arch/arm/mach-davinci/dm365.c | 11 +++++++++++ arch/arm/mach-davinci/dm644x.c | 11 +++++++++++ arch/arm/mach-davinci/dm646x.c | 11 +++++++++++ 4 files changed, 44 insertions(+) diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c index e2b680e9944b..ff79c1a17fae 100644 --- a/arch/arm/mach-davinci/dm355.c +++ b/arch/arm/mach-davinci/dm355.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -792,6 +793,16 @@ int __init dm355_init_video(struct vpfe_config *vpfe_cfg, return 0; } +static const struct davinci_aintc_config dm355_aintc_config = { + .reg = { + .start = DAVINCI_ARM_INTC_BASE, + .end = DAVINCI_ARM_INTC_BASE + SZ_4K - 1, + .flags = IORESOURCE_MEM, + }, + .num_irqs = 64, + .prios = dm355_default_priorities, +}; + void __init dm355_init_irq(void) { davinci_aintc_init(); diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c index 76507dcbcb3a..44dc3ca94dd3 100644 --- a/arch/arm/mach-davinci/dm365.c +++ b/arch/arm/mach-davinci/dm365.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -1051,6 +1052,16 @@ int __init dm365_init_video(struct vpfe_config *vpfe_cfg, return 0; } +static const struct davinci_aintc_config dm365_aintc_config = { + .reg = { + .start = DAVINCI_ARM_INTC_BASE, + .end = DAVINCI_ARM_INTC_BASE + SZ_4K - 1, + .flags = IORESOURCE_MEM, + }, + .num_irqs = 64, + .prios = dm365_default_priorities, +}; + void __init dm365_init_irq(void) { davinci_aintc_init(); diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index 27c73bc54069..0b0ecac36486 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -728,6 +729,16 @@ int __init dm644x_init_video(struct vpfe_config *vpfe_cfg, return 0; } +static const struct davinci_aintc_config dm644x_aintc_config = { + .reg = { + .start = DAVINCI_ARM_INTC_BASE, + .end = DAVINCI_ARM_INTC_BASE + SZ_4K - 1, + .flags = IORESOURCE_MEM, + }, + .num_irqs = 64, + .prios = dm644x_default_priorities, +}; + void __init dm644x_init_irq(void) { davinci_aintc_init(); diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index 98fc5e3815b9..4e871d00e4e9 100644 --- a/arch/arm/mach-davinci/dm646x.c +++ b/arch/arm/mach-davinci/dm646x.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -689,6 +690,16 @@ void __init dm646x_register_clocks(void) platform_device_register(&dm646x_pll2_device); } +static const struct davinci_aintc_config dm646x_aintc_config = { + .reg = { + .start = DAVINCI_ARM_INTC_BASE, + .end = DAVINCI_ARM_INTC_BASE + SZ_4K - 1, + .flags = IORESOURCE_MEM, + }, + .num_irqs = 64, + .prios = dm646x_default_priorities, +}; + void __init dm646x_init_irq(void) { davinci_aintc_init(); -- 2.20.1