linux-stable/drivers/soc/ti
Suman Anna 51b5760e56 soc: ti: pruss: Add pruss_cfg_read()/update(), pruss_cfg_get_gpmux()/set_gpmux() APIs
Add two new generic API pruss_cfg_read() and pruss_cfg_update() to
the PRUSS platform driver to read and program respectively a register
within the PRUSS CFG sub-module represented by a syscon driver. These
APIs are internal to PRUSS driver.

Add two new helper functions pruss_cfg_get_gpmux() & pruss_cfg_set_gpmux()
to get and set the GP MUX mode for programming the PRUSS internal wrapper
mux functionality as needed by usecases.

Various useful registers and macros for certain register bit-fields and
their values have also been added.

Signed-off-by: Suman Anna <s-anna@ti.com>
Co-developed-by: Grzegorz Jaszczyk <grzegorz.jaszczyk@linaro.org>
Signed-off-by: Grzegorz Jaszczyk <grzegorz.jaszczyk@linaro.org>
Signed-off-by: Puranjay Mohan <p-mohan@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Link: https://lore.kernel.org/r/20230414045542.3249939-4-danishanwar@ti.com
Signed-off-by: Nishanth Menon <nm@ti.com>
2023-05-17 09:15:39 -05:00
..
k3-ringacc.c soc: ti: k3-ringacc: Add try_module_get() to k3_dmaring_request_dual_ring() 2023-03-08 01:06:30 -06:00
k3-socinfo.c soc: ti: k3-socinfo: Add entry for J784S4 SOC 2023-03-20 12:36:42 -05:00
Kconfig soc: ti: pruss: Allow compile-testing 2023-05-17 09:14:02 -05:00
knav_dma.c soc: ti: Use of_property_read_bool() for boolean properties 2023-03-11 05:57:07 -06:00
knav_qmss.h soc: ti: Replace zero-length array with flexible-array 2020-06-15 23:08:32 -05:00
knav_qmss_acc.c soc: ti: Use of_property_read_bool() for boolean properties 2023-03-11 05:57:07 -06:00
knav_qmss_queue.c soc: ti: Use of_property_read_bool() for boolean properties 2023-03-11 05:57:07 -06:00
Makefile ARM: SoC-related driver updates 2020-10-24 10:39:22 -07:00
omap_prm.c soc: ti: Use of_property_present() for testing DT property presence 2023-03-11 05:56:54 -06:00
pm33xx.c soc: ti: pm33xx: Fix refcount leak in am33xx_pm_probe 2023-03-08 01:39:04 -06:00
pruss.c soc: ti: pruss: Add pruss_cfg_read()/update(), pruss_cfg_get_gpmux()/set_gpmux() APIs 2023-05-17 09:15:39 -05:00
pruss.h soc: ti: pruss: Add pruss_cfg_read()/update(), pruss_cfg_get_gpmux()/set_gpmux() APIs 2023-05-17 09:15:39 -05:00
smartreflex.c soc: ti: smartreflex: Use devm_platform_ioremap_resource() 2023-05-17 09:11:55 -05:00
ti_sci_inta_msi.c oc: ti: ti_sci_inta_msi: Switch to domain id aware MSI functions 2022-12-05 19:21:00 +01:00
ti_sci_pm_domains.c soc: ti: ti_sci_pm_domains: Check for null return of devm_kcalloc 2022-04-15 14:59:23 -05:00
wkup_m3_ipc.c soc: ti: Use devm_platform_ioremap_resource() 2023-03-28 06:23:42 -05:00