From: shc_work@mail.ru (Alexander Shiyan)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 07/10] ARM: clps711x: Add CLPS711X irqchip driver
Date: Fri, 2 Aug 2013 19:55:52 +0400 [thread overview]
Message-ID: <20130802195552.2f95c855fc20d6b3a205e40f@mail.ru> (raw)
In-Reply-To: <20130802105754.GF2884@e106331-lin.cambridge.arm.com>
On Fri, 2 Aug 2013 11:57:54 +0100
Mark Rutland <mark.rutland@arm.com> wrote:
> On Thu, Jul 18, 2013 at 07:34:58PM +0100, Alexander Shiyan wrote:
> > This adds the irqchip driver for Cirrus Logic CLPS711X series SoCs.
> > Designed primarily for migration CLPS711X subarch for multiplatform & DT,
> > for this as the "OF" and "not-OF" calls implemented.
> >
> > Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> > ---
> > .../interrupt-controller/cirrus,clps711x-intc.txt | 42 ++++
> > arch/arm/Kconfig | 2 -
> > drivers/irqchip/Kconfig | 6 +
> > drivers/irqchip/Makefile | 1 +
> > drivers/irqchip/irq-clps711x.c | 277 +++++++++++++++++++++
> > 5 files changed, 326 insertions(+), 2 deletions(-)
> > create mode 100644 Documentation/devicetree/bindings/interrupt-controller/cirrus,clps711x-intc.txt
> > create mode 100644 drivers/irqchip/irq-clps711x.c
> >
> > diff --git a/Documentation/devicetree/bindings/interrupt-controller/cirrus,clps711x-intc.txt b/Documentation/devicetree/bindings/interrupt-controller/cirrus,clps711x-intc.txt
> > new file mode 100644
> > index 0000000..26f8983
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/interrupt-controller/cirrus,clps711x-intc.txt
> > @@ -0,0 +1,42 @@
> > +Cirrus Logic CLPS711X Interrupt Controller
> > +
> > +Required properties:
> > +
> > +- compatible: Should be "cirrus,clps711x-intc"
> > +- reg: Specifies base physical address of the registers set
> > +- interrupt-controller: Identifies the node as an interrupt controller
> > +- #interrupt-cells: Specifies the number of cells needed to encode an
> > + interrupt source. The value shall be 1.
> > +
> > +The interrupt sources are as follows:
> > +ID Name Description
> > +---------------------------
> > +1: BLINT Battery low (FIQ)
> > +3: MCINT Media changed (FIQ)
> > +4: CSINT CODEC sound
> > +5: EINT1 External 1
> > +6: EINT2 External 2
> > +7: EINT3 External 3
> > +8: TC1OI TC1 under flow
> > +9: TC2OI TC2 under flow
> > +10: RTCMI RTC compare match
> > +11: TINT 64Hz tick
> > +12: UTXINT1 UART1 transmit FIFO half empty
> > +13: URXINT1 UART1 receive FIFO half full
> > +14: UMSINT UART1 modem status changed
> > +15: SSEOTI SSI1 end of transfer
> > +16: KBDINT Keyboard
> > +17: SS2RX SSI2 receive FIFO half or greater full
> > +18: SS2TX SSI2 transmit FIFO less than half empty
> > +28: UTXINT2 UART2 transmit FIFO half empty
> > +29: URXINT2 UART2 receive FIFO half full
> > +32: DAIINT DAI interface (FIQ)
>
> Surely that's specific to the SoC the interrupt controller is used in,
> not the interrupt controller IP itself?
[...]
> > +static const struct {
> > +#define CLPS711X_FLAG_EN (1 << 0)
> > +#define CLPS711X_FLAG_FIQ (1 << 1)
> > + unsigned int flags;
> > + phys_addr_t phys_eoi;
> > +} clps711x_irqs[] __initconst = {
> > + [1] = { CLPS711X_FLAG_FIQ, CLPS711X_BLEOI, },
> > + [3] = { CLPS711X_FLAG_FIQ, CLPS711X_MCEOI, },
> > + [4] = { CLPS711X_FLAG_EN, CLPS711X_COEOI, },
> > + [5] = { CLPS711X_FLAG_EN, },
> > + [6] = { CLPS711X_FLAG_EN, },
> > + [7] = { CLPS711X_FLAG_EN, },
> > + [8] = { CLPS711X_FLAG_EN, CLPS711X_TC1EOI, },
> > + [9] = { CLPS711X_FLAG_EN, CLPS711X_TC2EOI, },
> > + [10] = { CLPS711X_FLAG_EN, CLPS711X_RTCEOI, },
> > + [11] = { CLPS711X_FLAG_EN, CLPS711X_TEOI, },
> > + [12] = { CLPS711X_FLAG_EN, },
> > + [13] = { CLPS711X_FLAG_EN, },
> > + [14] = { CLPS711X_FLAG_EN, CLPS711X_UMSEOI, },
> > + [15] = { CLPS711X_FLAG_EN, CLPS711X_SRXEOF, },
> > + [16] = { CLPS711X_FLAG_EN, CLPS711X_KBDEOI, },
> > + [17] = { CLPS711X_FLAG_EN, },
> > + [18] = { CLPS711X_FLAG_EN, },
> > + [28] = { CLPS711X_FLAG_EN, },
> > + [29] = { CLPS711X_FLAG_EN, },
> > + [32] = { CLPS711X_FLAG_FIQ, },
> > +};
>
> Isn't that SoC specific?
I absolutely do not understand the last two comments.
You are not difficult to describe them in other words?
Thanks.
--
Alexander Shiyan <shc_work@mail.ru>
next prev parent reply other threads:[~2013-08-02 15:55 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-18 18:34 [PATCH 00/10] ARM: clps711x: Initial DT support / Fixes Alexander Shiyan
2013-07-18 18:34 ` [PATCH 01/10] ARM: clps711x: Remove the special name for the syscon driver Alexander Shiyan
2013-08-14 6:29 ` Olof Johansson
2013-08-14 6:29 ` Olof Johansson
2013-07-18 18:34 ` [PATCH 02/10] ARM: clps711x: Drop fortunet board support Alexander Shiyan
2013-08-14 6:29 ` Olof Johansson
2013-07-18 18:34 ` [PATCH 03/10] ARM: clps711x: autcpu12: Remove incorrect config checking Alexander Shiyan
2013-08-14 6:30 ` Olof Johansson
2013-07-18 18:34 ` [PATCH 04/10] ARM: clps711x: edb7211: Remove extra iotable_init() call Alexander Shiyan
2013-08-14 6:30 ` Olof Johansson
2013-07-18 18:34 ` [PATCH 05/10] ARM: clps711x: Add CLPS711X clk driver Alexander Shiyan
2013-08-02 10:25 ` Mark Rutland
2013-07-18 18:34 ` [PATCH 06/10] ARM: clps711x: Add CLPS711X clocksource driver Alexander Shiyan
2013-07-19 14:38 ` Daniel Lezcano
2013-07-20 3:44 ` Alexander Shiyan
2013-07-20 21:48 ` Daniel Lezcano
2013-07-21 4:30 ` Alexander Shiyan
2013-08-02 10:46 ` Mark Rutland
2013-08-04 12:31 ` Alexander Shiyan
2013-08-05 17:02 ` Mark Rutland
2013-07-18 18:34 ` [PATCH 07/10] ARM: clps711x: Add CLPS711X irqchip driver Alexander Shiyan
2013-08-02 10:57 ` Mark Rutland
2013-08-02 15:55 ` Alexander Shiyan [this message]
2013-08-03 19:45 ` Arnd Bergmann
2013-08-04 4:50 ` Alexander Shiyan
2013-08-04 20:46 ` Arnd Bergmann
2013-08-04 20:57 ` Arnd Bergmann
2013-08-05 18:16 ` Alexander Shiyan
2013-08-05 19:26 ` Arnd Bergmann
2013-08-05 20:42 ` Alexander Shiyan
2013-08-05 21:00 ` Arnd Bergmann
2013-08-06 15:25 ` Alexander Shiyan
2013-08-05 16:36 ` H Hartley Sweeten
2013-07-18 18:34 ` [PATCH 08/10] ARM: clps711x: Add CLPS711X cpuidle driver Alexander Shiyan
2013-07-20 21:42 ` Daniel Lezcano
2013-07-21 4:11 ` Alexander Shiyan
2013-07-21 8:32 ` Daniel Lezcano
2013-07-21 10:04 ` Alexander Shiyan
2013-07-22 11:40 ` Russell King - ARM Linux
2013-08-02 11:10 ` Mark Rutland
2013-07-18 18:35 ` [PATCH 09/10] ARM: clps711x: Migrate CLPS711X subarch to the new basic drivers Alexander Shiyan
2013-07-18 18:35 ` [PATCH 10/10] ARM: clps711x: Add initial DT support Alexander Shiyan
2013-08-02 11:15 ` Mark Rutland
2013-08-03 3:54 ` [PATCH 00/10] ARM: clps711x: Initial DT support / Fixes Alexander Shiyan
2013-08-14 6:29 ` Olof Johansson
2013-08-17 4:32 ` Alexander Shiyan
2013-08-22 5:00 ` Olof Johansson
2013-08-14 6:31 ` Olof Johansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130802195552.2f95c855fc20d6b3a205e40f@mail.ru \
--to=shc_work@mail.ru \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).