Skip to content

Commit

Permalink
Merge patch series "Add AM64x Support to PRUSS and PRU_RPROC driver"
Browse files Browse the repository at this point in the history
MD Danish Anwar <[email protected]> says:

This series adds AM64x related compatibles to PRUSS and PRU_RPROC drivers.
This series is a prerequisite for ICSSG Ethernet driver.

Once Support for AM64x is added to PRUSS and PRU_RPROC driver, I'll send
another series to enable ICSSG Ethernet driver for AM64x as well.
  • Loading branch information
trini committed May 10, 2024
2 parents f81ab0d + 86b40d2 commit c671999
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions drivers/remoteproc/pru_rproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,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)
Expand Down Expand Up @@ -447,6 +449,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" },
{}
};

Expand Down
1 change: 1 addition & 0 deletions drivers/soc/ti/pruss.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ static int pruss_probe(struct udevice *dev)

static const struct udevice_id pruss_ids[] = {
{ .compatible = "ti,am654-icssg"},
{ .compatible = "ti,am642-icssg"},
{}
};

Expand Down

0 comments on commit c671999

Please sign in to comment.