Skip to content

Commit ebcf900

Browse files
mwelchukmathieupoirier
authored andcommitted
remoteproc: k3-m4: Add a remoteproc driver for M4F subsystem
The AM62x and AM64x SoCs of the TI K3 family has a Cortex M4F core in the MCU domain. This core is typically used for safety applications in a stand alone mode. However, some application (non safety related) may want to use the M4F core as a generic remote processor with IPC to the host processor. The M4F core has internal IRAM and DRAM memories and are exposed to the system bus for code and data loading. A remote processor driver is added to support this subsystem, including being able to load and boot the M4F core. Loading includes to M4F internal memories and predefined external code/data memories. The carve outs for external contiguous memory is defined in the M4F device node and should match with the external memory declarations in the M4F image binary. The M4F subsystem has two resets. One reset is for the entire subsystem i.e including the internal memories and the other, a local reset is only for the M4F processing core. When loading the image, the driver first releases the subsystem reset, loads the firmware image and then releases the local reset to let the M4F processing core run. Signed-off-by: Martyn Welch <[email protected]> Signed-off-by: Hari Nagalla <[email protected]> Signed-off-by: Andrew Davis <[email protected]> Tested-by: Wadim Egorov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mathieu Poirier <[email protected]>
1 parent ce6acb2 commit ebcf900

File tree

3 files changed

+681
-0
lines changed

3 files changed

+681
-0
lines changed

drivers/remoteproc/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,19 @@ config TI_K3_DSP_REMOTEPROC
340340
It's safe to say N here if you're not interested in utilizing
341341
the DSP slave processors.
342342

343+
config TI_K3_M4_REMOTEPROC
344+
tristate "TI K3 M4 remoteproc support"
345+
depends on ARCH_K3 || COMPILE_TEST
346+
select MAILBOX
347+
select OMAP2PLUS_MBOX
348+
help
349+
Say m here to support TI's M4 remote processor subsystems
350+
on various TI K3 family of SoCs through the remote processor
351+
framework.
352+
353+
It's safe to say N here if you're not interested in utilizing
354+
a remote processor.
355+
343356
config TI_K3_R5_REMOTEPROC
344357
tristate "TI K3 R5 remoteproc support"
345358
depends on ARCH_K3

drivers/remoteproc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,6 @@ obj-$(CONFIG_ST_REMOTEPROC) += st_remoteproc.o
3737
obj-$(CONFIG_ST_SLIM_REMOTEPROC) += st_slim_rproc.o
3838
obj-$(CONFIG_STM32_RPROC) += stm32_rproc.o
3939
obj-$(CONFIG_TI_K3_DSP_REMOTEPROC) += ti_k3_dsp_remoteproc.o
40+
obj-$(CONFIG_TI_K3_M4_REMOTEPROC) += ti_k3_m4_remoteproc.o
4041
obj-$(CONFIG_TI_K3_R5_REMOTEPROC) += ti_k3_r5_remoteproc.o
4142
obj-$(CONFIG_XLNX_R5_REMOTEPROC) += xlnx_r5_remoteproc.o

0 commit comments

Comments
 (0)