soc: ti: pruss: Add support for PRU-ICSS subsystems on AM57xx SoCs
authorSuman Anna <s-anna@ti.com>
Sat, 12 Sep 2020 04:43:35 +0000 (21:43 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Sat, 12 Sep 2020 04:43:35 +0000 (21:43 -0700)
The AM57xx family of SoCs supports two PRU-ICSS instances, each of
which has two PRU processor cores. The two PRU-ICSS instances are
identical to each other, and are very similar to the PRU-ICSS1 of
AM33xx/AM43xx except for a few minor differences like the RAM sizes
and the number of interrupts coming into the MPU INTC. They do
not have a programmable module reset line unlike those present on
AM33xx/AM43xx SoCs. The modules are reset just like any other IP
with the SoC's global cold/warm resets. Each PRU-ICSS's INTC is also
preceded by a Crossbar that enables multiple external events to be
routed to a specific number of input interrupt events. Any interrupt
event directed towards PRUSS needs this crossbar to be setup properly
on the firmware side.

The existing PRUSS platform driver has been enhanced to support
these AM57xx PRU-ICSS instances through new AM57xx specific
compatible for properly probing and booting all the different PRU
cores in each PRU-ICSS processor subsystem. A build dependency with
SOC_DRA7XX is also added to enable the driver to be built in
AM57xx-only configuration (there is no separate Kconfig option
for AM57xx vs DRA7xx).

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Grzegorz Jaszczyk <grzegorz.jaszczyk@linaro.org>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/soc/ti/Kconfig
drivers/soc/ti/pruss.c

index 40d6a222275fd4024c498e267737cd5533f343cf..99dbc14e0d3e2e374283fddc70c4a71568b02a92 100644 (file)
@@ -103,7 +103,7 @@ config TI_K3_SOCINFO
 
 config TI_PRUSS
        tristate "TI PRU-ICSS Subsystem Platform drivers"
-       depends on SOC_AM33XX || SOC_AM43XX
+       depends on SOC_AM33XX || SOC_AM43XX || SOC_DRA7XX
        select MFD_SYSCON
        help
          TI PRU-ICSS Subsystem platform specific support.
index 04938ba6b150627701fca8174a8c7178f2fa3911..5df4caa4bcf455fe8385f1fbc42a57e62283664a 100644 (file)
@@ -161,6 +161,7 @@ static const struct of_device_id pruss_of_match[] = {
        { .compatible = "ti,am3356-pruss" },
        { .compatible = "ti,am4376-pruss0", .data = &am437x_pruss0_data, },
        { .compatible = "ti,am4376-pruss1", .data = &am437x_pruss1_data, },
+       { .compatible = "ti,am5728-pruss" },
        {},
 };
 MODULE_DEVICE_TABLE(of, pruss_of_match);