author | Suman Anna <s-anna@ti.com> | |
Mon, 17 Jun 2019 21:15:41 +0000 (16:15 -0500) | ||
committer | Dave Gerlach <d-gerlach@ti.com> | |
Fri, 18 Oct 2019 21:34:26 +0000 (16:34 -0500) | ||
commit | 7e93807ace25d3bfe45d5b62566b8ee0e3d23d18 | |
tree | ccc2b3a6463988fcada932728a17acd2e3c46da5 | tree | snapshot (tar.xz tar.gz zip) |
parent | 1e22815d38cb33d30800581c31186c7d405b1db7 | commit | diff |
soc: ti: pruss: update pruss_get() to retrieve a PRUSS id
Update the pruss_get() function to take in an additional integer
pointer argument in which the PRUSS instance id is filled in and
provided back to the callers. This allows the drivers to add some
instance-specific logic/customization in their code, as the PRUSS
handle is not useful to build this logic.
The already existing usage within both the regular PRU Ethernet
and the ICSSG PRU Ethernet drivers have also been updated accordingly,
and this will cater to its need for supporting switching between
different Ethernet protocols dynamically per instance. The invocation
within the PRU Soft UART driver and PRU PWM drivers have also been
updated, with these drivers not needing the PRUSS instance id at present.
Signed-off-by: Suman Anna <s-anna@ti.com>
Update the pruss_get() function to take in an additional integer
pointer argument in which the PRUSS instance id is filled in and
provided back to the callers. This allows the drivers to add some
instance-specific logic/customization in their code, as the PRUSS
handle is not useful to build this logic.
The already existing usage within both the regular PRU Ethernet
and the ICSSG PRU Ethernet drivers have also been updated accordingly,
and this will cater to its need for supporting switching between
different Ethernet protocols dynamically per instance. The invocation
within the PRU Soft UART driver and PRU PWM drivers have also been
updated, with these drivers not needing the PRUSS instance id at present.
Signed-off-by: Suman Anna <s-anna@ti.com>