]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
remoteproc: pru: Add support for AM64x PRU / RTU cores
authorMD Danish Anwar <danishanwar@ti.com>
Tue, 30 Apr 2024 10:46:32 +0000 (16:16 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 10 May 2024 16:44:54 +0000 (10:44 -0600)
Add support for AM64x PRU cores by adding compatibles for AM64x.

Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
drivers/remoteproc/pru_rproc.c

index 6ec55e27d9dd64f1a845c16a88b42f469ac3313f..5e9334e11797af7b05a8a99340185bf982dfaa84 100644 (file)
@@ -399,10 +399,12 @@ static void pru_set_id(struct pru_privdata *priv, struct udevice *dev)
 {
        u32 mask2 = 0x38000;
 
-       if (device_is_compatible(dev, "ti,am654-rtu"))
+       if (device_is_compatible(dev, "ti,am654-rtu") ||
+           device_is_compatible(dev, "ti,am642-rtu"))
                mask2 = 0x6000;
 
-       if (device_is_compatible(dev, "ti,am654-tx-pru"))
+       if (device_is_compatible(dev, "ti,am654-tx-pru") ||
+           device_is_compatible(dev, "ti,am642-tx-pru"))
                mask2 = 0xc000;
 
        if ((priv->pru_iram & mask2) == mask2)
@@ -448,6 +450,9 @@ static const struct udevice_id pru_ids[] = {
        { .compatible = "ti,am654-pru"},
        { .compatible = "ti,am654-rtu"},
        { .compatible = "ti,am654-tx-pru" },
+       { .compatible = "ti,am642-pru"},
+       { .compatible = "ti,am642-rtu"},
+       { .compatible = "ti,am642-tx-pru" },
        {}
 };