diff options
author | MD Danish Anwar <danishanwar@ti.com> | 2024-04-30 16:16:32 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-05-10 10:44:54 -0600 |
commit | 2b1a5d221774dce3479efa86f386b89332eb1b67 (patch) | |
tree | 0b9e1cc56e9f0d3f86a4ad3bf43f7aa826f2747b | |
parent | ff0de1f0557ed7d2dab47ba976a37347a1fdc432 (diff) | |
download | u-boot-2b1a5d221774dce3479efa86f386b89332eb1b67.zip u-boot-2b1a5d221774dce3479efa86f386b89332eb1b67.tar.gz u-boot-2b1a5d221774dce3479efa86f386b89332eb1b67.tar.bz2 |
remoteproc: pru: Add support for AM64x PRU / RTU cores
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>
-rw-r--r-- | drivers/remoteproc/pru_rproc.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c index 6ec55e2..5e9334e 100644 --- a/drivers/remoteproc/pru_rproc.c +++ b/drivers/remoteproc/pru_rproc.c @@ -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" }, {} }; |