Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp4394123ima; Mon, 4 Feb 2019 16:00:17 -0800 (PST) X-Google-Smtp-Source: AHgI3IZiwXLCh0VUUUDpSlYi+Xf1ApjjnGILznYwQyQ8EVk9RsI0RGk374vOgD1wbCLG8++6XCMs X-Received: by 2002:a62:f51a:: with SMTP id n26mr1941188pfh.245.1549324817399; Mon, 04 Feb 2019 16:00:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549324817; cv=none; d=google.com; s=arc-20160816; b=bgaBwV0W4596uGzy4XrTwn4MCjsiML3Y4n1uPvkOdQY0Khxw1/5nW3M6ZXGLYy0dr2 +4LcT8PhADx3ntKGY9a1tPXtndTFqsEN2yflCEOb6J9B2i0ufgw9l7YYcg+6HxxmpsxD ZpFfOd7dnM1MshTmdbH5vLVfVACfD7+Cd20ZIlHs+5LVkRTDvgME77NHhrf4kEpFgDGB l1uI85mbVD99hUmyeN4/AE4BZflZ3ROHjKtTt9T8dTVopFyI8spbvgqdxDqFquBcEWUq ireHh7dPjsXF83wRBTiP+uSQFQ+S7ZUABGjkcxJdb2vwzLn7knwsZAwCb7HVMQjieXYj +BAQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=ztTJUNn6xrf1rSdLZeO+Zk3GlaPqIoy0zfh9SL17tEw=; b=GuTjEle0VhjexQmhYDxNHTq2v4TuRmqPzH9YdoNzm8x1DQtFNLtgpLqqjN38pWrmSf LkPDfVSQ+nc0tEtTDRsf+J8gYeHB0vltpxq4zzyyfXZdoqyz/UN65QOz/DD7HCA/Wr7j cMhXWy8lu9XDAowRrJxTRGlPjrgewbysycz5CmbPlqaDzk27v8+7BuxogQ2nRvZ1jbsS 64kug7rEWu9fsNzXKH+dIYH5L6Avxnr31vBU94FHEKhJygRGoisYH+PrP4A1u0QkbAMl KRx6lrcBfQl82JmajbEqydqlHh7Ym9NyYZLc61N6YfPEt7YbWL6Lod0NGb70CSuPUjFI Du/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=VWRsboRX; 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 37si1331976pgs.447.2019.02.04.16.00.00; Mon, 04 Feb 2019 16:00:17 -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=fail header.i=@lechnology.com header.s=default header.b=VWRsboRX; 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 S1727572AbfBDX6F (ORCPT + 99 others); Mon, 4 Feb 2019 18:58:05 -0500 Received: from vern.gendns.com ([98.142.107.122]:53414 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726946AbfBDX6E (ORCPT ); Mon, 4 Feb 2019 18:58:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ztTJUNn6xrf1rSdLZeO+Zk3GlaPqIoy0zfh9SL17tEw=; b=VWRsboRXDXhTU2PuFgko9WO0ar yuDbkdgakDDqnlRWUlUMzuwM5pE6WEtl0KTWGPDjvCN5LTuidO5q0j9XDmhPWrbTPSvIaoHtCcbLu Gs1J0+pampPqJdbKYkND1EPxS2DKlbmbXCfe/Stxvc0GQjsblo0guCTdzi5XOJHXkkd2VFVaCiG+D PZ3D4kVW7HPOqAcJ5d92Swrh/FCwYRvXaeDAaEh+wEYphpQbE4V8EDiXL/CbuWDqMygaGvSqBdviY 2dOHrUJVjiqaF5+zAs4pPDrs7NuhOuJnxSbZUzrPi3N0TwnU/I9FrS8QPeRwsfqXJdsyO0qZe+ZY1 RZxTt3hA==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:59834 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gqo4J-0000wp-0o; Mon, 04 Feb 2019 18:54:27 -0500 Subject: Re: [PATCH 22/35] ARM: davinci: cp-intc: add the new config structures for da8xx SoCs To: Bartosz Golaszewski , Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20190131133928.17985-1-brgl@bgdev.pl> <20190131133928.17985-23-brgl@bgdev.pl> From: David Lechner Message-ID: Date: Mon, 4 Feb 2019 17:58:00 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <20190131133928.17985-23-brgl@bgdev.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/31/19 7:39 AM, Bartosz Golaszewski wrote: > 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, Missing minus one? + .end = DA8XX_CP_INTC_BASE + SZ_8K - 1, > + .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, same here > + .flags = IORESOURCE_MEM, > + }, > + .num_irqs = DA850_N_CP_INTC_IRQ, > +}; > + > void __init da850_init_irqs(void) > { > cp_intc_init(); >