author | Suman Anna <s-anna@ti.com> | |
Tue, 19 Feb 2019 17:27:10 +0000 (11:27 -0600) | ||
committer | Suman Anna <s-anna@ti.com> | |
Sun, 24 Feb 2019 01:20:52 +0000 (19:20 -0600) | ||
commit | 2b27af09c55e4710ff9df1cecafca65e5132ccb3 | |
tree | acc53c97d5ce2255ee6ebf0c3af1b7f8dfc9fe2c | tree | snapshot (tar.xz tar.gz zip) |
parent | 4f15aa9c5c514710d5f07098a5fcdd779c8c49b7 | commit | diff |
soc: ti: pruss: add pruss_regmap_read()/update() API
Add two new generic API pruss_regmap_read() and pruss_regmap_update()
to the PRUSS platform driver to allow other drivers to read and program
respectively a register within one of the PRUSS sub-modules represented
by a syscon driver. The sub-modules include PRUSS CFG, IEP and MII_RT
at present. This interface provides a simple way for client drivers
without having them to include and parse these syscon nodes within
their respective device nodes. Various useful registers (mainly CFG
module) and macros for certain register bit-fields and their values
have also been added.
It is the responsibility of the client drivers to reconfigure or
reset a particular register upon any failures.
Signed-off-by: Suman Anna <s-anna@ti.com>
Add two new generic API pruss_regmap_read() and pruss_regmap_update()
to the PRUSS platform driver to allow other drivers to read and program
respectively a register within one of the PRUSS sub-modules represented
by a syscon driver. The sub-modules include PRUSS CFG, IEP and MII_RT
at present. This interface provides a simple way for client drivers
without having them to include and parse these syscon nodes within
their respective device nodes. Various useful registers (mainly CFG
module) and macros for certain register bit-fields and their values
have also been added.
It is the responsibility of the client drivers to reconfigure or
reset a particular register upon any failures.
Signed-off-by: Suman Anna <s-anna@ti.com>
drivers/soc/ti/pruss.c | diff | blob | history | |
include/linux/pruss.h | diff | blob | history |