瀏覽代碼

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

The K3 J721E SoCs have a revised version of the ICSSG IP present on K3
AM65x SoCs. The J721E ICSSG INTC is identical to that of the AM65x ICSSG
INTC despite the presence of two new additional auxiliary Tx_PRU cores.
The Tx_PRU cores reuse the same host interrupts as the regular PRU cores,
so the recommended approach is to use the interrupt mapping configuration
through the corresponding PRU core.

Enhance the PRUSS INTC driver to add support for this ICSSG INTC instance.
This support is adding using a new SoC-specific compatible and reusing
the AM65x support code.

Signed-off-by: Suman Anna <s-anna@ti.com>
Reviewed-by: Roger Quadros <rogerq@ti.com>
Suman Anna 6 年之前
父節點
當前提交
413b8371e5
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      drivers/irqchip/irq-pruss-intc.c

+ 6 - 2
drivers/irqchip/irq-pruss-intc.c

@@ -746,7 +746,7 @@ static const struct pruss_intc_match_data am437x_k2g_pruss_intc_data = {
 	.no_host7_intr = true,
 };
 
-static const struct pruss_intc_match_data am65x_icssg_intc_data = {
+static const struct pruss_intc_match_data am65x_j721e_icssg_intc_data = {
 	.num_system_events = 160,
 	.num_host_intrs = 20,
 	.no_host7_intr = false,
@@ -771,7 +771,11 @@ static const struct of_device_id pruss_intc_of_match[] = {
 	},
 	{
 		.compatible = "ti,am654-icssg-intc",
-		.data = &am65x_icssg_intc_data,
+		.data = &am65x_j721e_icssg_intc_data,
+	},
+	{
+		.compatible = "ti,j721e-icssg-intc",
+		.data = &am65x_j721e_icssg_intc_data,
 	},
 	{ /* sentinel */ },
 };