author | Suman Anna <s-anna@ti.com> | |
Thu, 2 May 2019 22:18:05 +0000 (17:18 -0500) | ||
committer | Dave Gerlach <d-gerlach@ti.com> | |
Fri, 18 Oct 2019 21:34:26 +0000 (16:34 -0500) | ||
commit | 1e22815d38cb33d30800581c31186c7d405b1db7 | |
tree | b0e0ff535b9e2e8adfcce3e39597e36e92d577ff | tree | snapshot (tar.xz tar.gz zip) |
parent | c5a56879f536d8e46fdbb7f4cabf30dc0e6e96c5 | commit | diff |
soc: ti: pruss: store the pruss instance id
Add logic to the PRUSS platform driver to store the instance id
of a PRUSS instance. This is being added to enable support for
the PRU Ethernet driver to be able to switch between different
Ethernet protocols dynamically per instance.
The values for instance ids are not always zero-indexed on all
SoCs, they were chosen to match the numbering used in the TRMs.
The instance ids are computed assigned using the PRUSS memory
region base address lookup table. The base address matching
logic is not robust for long-term for newer SoCs, but is okay
for currently supported SoCs as all the addresses are unique.
This is done this way to retain the current usage of minimal
static data and to avoid having to introduce the instance
specific static data just for the instance id data.
Signed-off-by: Suman Anna <s-anna@ti.com>
Add logic to the PRUSS platform driver to store the instance id
of a PRUSS instance. This is being added to enable support for
the PRU Ethernet driver to be able to switch between different
Ethernet protocols dynamically per instance.
The values for instance ids are not always zero-indexed on all
SoCs, they were chosen to match the numbering used in the TRMs.
The instance ids are computed assigned using the PRUSS memory
region base address lookup table. The base address matching
logic is not robust for long-term for newer SoCs, but is okay
for currently supported SoCs as all the addresses are unique.
This is done this way to retain the current usage of minimal
static data and to avoid having to introduce the instance
specific static data just for the instance id data.
Signed-off-by: Suman Anna <s-anna@ti.com>
drivers/soc/ti/pruss.c | diff | blob | history | |
include/linux/pruss_driver.h | diff | blob | history |