From mboxrd@z Thu Jan 1 00:00:00 1970 From: Guo Ren Subject: Re: [PATCH V3 22/26] dt-bindings: interrupt-controller: C-SKY SMP intc Date: Thu, 6 Sep 2018 10:23:22 +0800 Message-ID: <20180906022322.GA30251@guoren-Inspiron-7460> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Rob Herring Cc: linux-arch@vger.kernel.org, Linux Kernel Mailing List , Thomas Gleixner , Daniel Lezcano , Jason Cooper , Arnd Bergmann , c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, thomas.petazzoni@bootlin.com, wbx@uclibc-ng.org, Greentime Hu List-Id: linux-arch.vger.kernel.org On Wed, Sep 05, 2018 at 07:45:12PM -0500, Rob Herring wrote: > On Wed, Sep 5, 2018 at 7:09 AM Guo Ren wrote: > > > > Signed-off-by: Guo Ren > > --- > > .../bindings/interrupt-controller/csky,mpintc.txt | 40 ++++++++++++++++++++++ > > 1 file changed, 40 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt > > > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt b/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt > > new file mode 100644 > > index 0000000..49d1658 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt > > @@ -0,0 +1,40 @@ > > +=========================================== > > +C-SKY Multi-processors Interrupt Controller > > +=========================================== > > + > > +C-SKY Multi-processors Interrupt Controller is designed for ck807/ck810/ck860 > > +SMP soc, and it also could be used in non-SMP system. > > How is it accessed? No mmio registers? Mmio reg base is got from cpu-coprocessor register and I'll detail it here in next version patch. csky_mpintc_init(struct device_node *node, struct device_node *parent) { ... INTCG_base = ioremap(mfcr("cr<31, 14>"), INTC_SIZE); From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp2200-217.mail.aliyun.com ([121.197.200.217]:33600 "EHLO smtp2200-217.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725885AbeIFG44 (ORCPT ); Thu, 6 Sep 2018 02:56:56 -0400 Date: Thu, 6 Sep 2018 10:23:22 +0800 From: Guo Ren Subject: Re: [PATCH V3 22/26] dt-bindings: interrupt-controller: C-SKY SMP intc Message-ID: <20180906022322.GA30251@guoren-Inspiron-7460> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-arch-owner@vger.kernel.org List-ID: To: Rob Herring Cc: linux-arch@vger.kernel.org, Linux Kernel Mailing List , Thomas Gleixner , Daniel Lezcano , Jason Cooper , Arnd Bergmann , c-sky_gcc_upstream@c-sky.com, gnu-csky@mentor.com, thomas.petazzoni@bootlin.com, wbx@uclibc-ng.org, Greentime Hu Message-ID: <20180906022322.Vt0MwiP_MldXEybeUUDPOI1_jT1pLCm-gAzKDl8owCw@z> On Wed, Sep 05, 2018 at 07:45:12PM -0500, Rob Herring wrote: > On Wed, Sep 5, 2018 at 7:09 AM Guo Ren wrote: > > > > Signed-off-by: Guo Ren > > --- > > .../bindings/interrupt-controller/csky,mpintc.txt | 40 ++++++++++++++++++++++ > > 1 file changed, 40 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt > > > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt b/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt > > new file mode 100644 > > index 0000000..49d1658 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/interrupt-controller/csky,mpintc.txt > > @@ -0,0 +1,40 @@ > > +=========================================== > > +C-SKY Multi-processors Interrupt Controller > > +=========================================== > > + > > +C-SKY Multi-processors Interrupt Controller is designed for ck807/ck810/ck860 > > +SMP soc, and it also could be used in non-SMP system. > > How is it accessed? No mmio registers? Mmio reg base is got from cpu-coprocessor register and I'll detail it here in next version patch. csky_mpintc_init(struct device_node *node, struct device_node *parent) { ... INTCG_base = ioremap(mfcr("cr<31, 14>"), INTC_SIZE);