Commit 7e92dee6 authored by Suman Anna's avatar Suman Anna Committed by Marc Zyngier

irqchip/irq-pruss-intc: Add support for ICSSG INTC on K3 SoCs

The K3 AM65x and J721E SoCs have the next generation of the PRU-ICSS IP,
commonly called ICSSG. The PRUSS INTC present within the ICSSG supports
more System Events (160 vs 64), more Interrupt Channels and Host Interrupts
(20 vs 10) compared to the previous generation PRUSS INTC instances. The
first 2 and the last 10 of these host interrupt lines are used by the
PRU and other auxiliary cores and sub-modules within the ICSSG, with 8
host interrupts connected to MPU. The host interrupts 5, 6, 7 are also
connected to the other ICSSG instances within the SoC and can be
partitioned as per system integration through the board dts files.

Enhance the PRUSS INTC driver to add support for this ICSSG INTC
instance.
Co-developed-by: default avatarGrzegorz Jaszczyk <grzegorz.jaszczyk@linaro.org>
Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
Signed-off-by: default avatarGrzegorz Jaszczyk <grzegorz.jaszczyk@linaro.org>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
parent b1026e8a
...@@ -495,7 +495,7 @@ config TI_SCI_INTA_IRQCHIP ...@@ -495,7 +495,7 @@ config TI_SCI_INTA_IRQCHIP
config TI_PRUSS_INTC config TI_PRUSS_INTC
tristate "TI PRU-ICSS Interrupt Controller" tristate "TI PRU-ICSS Interrupt Controller"
depends on ARCH_DAVINCI || SOC_AM33XX || SOC_AM43XX || SOC_DRA7XX || ARCH_KEYSTONE depends on ARCH_DAVINCI || SOC_AM33XX || SOC_AM43XX || SOC_DRA7XX || ARCH_KEYSTONE || ARCH_K3
select IRQ_DOMAIN select IRQ_DOMAIN
help help
This enables support for the PRU-ICSS Local Interrupt Controller This enables support for the PRU-ICSS Local Interrupt Controller
......
...@@ -628,11 +628,20 @@ static const struct pruss_intc_match_data pruss_intc_data = { ...@@ -628,11 +628,20 @@ static const struct pruss_intc_match_data pruss_intc_data = {
.num_host_events = 10, .num_host_events = 10,
}; };
static const struct pruss_intc_match_data icssg_intc_data = {
.num_system_events = 160,
.num_host_events = 20,
};
static const struct of_device_id pruss_intc_of_match[] = { static const struct of_device_id pruss_intc_of_match[] = {
{ {
.compatible = "ti,pruss-intc", .compatible = "ti,pruss-intc",
.data = &pruss_intc_data, .data = &pruss_intc_data,
}, },
{
.compatible = "ti,icssg-intc",
.data = &icssg_intc_data,
},
{ /* sentinel */ }, { /* sentinel */ },
}; };
MODULE_DEVICE_TABLE(of, pruss_intc_of_match); MODULE_DEVICE_TABLE(of, pruss_intc_of_match);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment