]> git.baikalelectronics.ru Git - kernel.git/commit
ARCv2: IDU-intc: Use build registers for getting numbers of interrupts
authorYuriy Kolerov <yuriy.kolerov@synopsys.com>
Tue, 31 Jan 2017 11:45:23 +0000 (14:45 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 6 Feb 2017 17:37:57 +0000 (09:37 -0800)
commit1749b6b74e5be69e5f093d45744dbf9f0ffb6eaa
tree09e1d9b27a23ec959ea8ed4435a4e62e79e26c83
parentcc4e9572849ec50fab76055e61106792e8abc3d8
ARCv2: IDU-intc: Use build registers for getting numbers of interrupts

This enhancement is needed to allow masking all available common interrupts
in IDU interrupt controller in boot time since the kernel can
discover a number of them from the build register. Also now there
is no need to specify in device tree a list of used core interrupts
by IDU. E.g. before:

    idu_intc: idu-interrupt-controller {
        compatible = "snps,archs-idu-intc";
        interrupt-controller;
        interrupt-parent = <&core_intc>;
        #interrupt-cells = <2>;
        interrupts = <24 25 26 27 28 29 30 31>;
    };

and after:

    idu_intc: idu-interrupt-controller {
        compatible = "snps,archs-idu-intc";
        interrupt-controller;
        interrupt-parent = <&core_intc>;
        #interrupt-cells = <2>;
    };

Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/mcip.c
include/soc/arc/mcip.h