Skip to content

Commit f9ca42c

Browse files
committed
sound: sof: add sof client driver for terminal.
To be used for SOF shell and GDB. WIP. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent cd7e8dc commit f9ca42c

4 files changed

Lines changed: 645 additions & 0 deletions

File tree

sound/soc/sof/Kconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,18 @@ config SND_SOC_SOF_DEBUG_FW_GDB
271271
socket, to which GDB can then connect.
272272
If unsure, select "N".
273273

274+
config SND_SOC_SOF_SERIAL
275+
tristate "SOF serial port client driver"
276+
depends on SND_SOC_SOF
277+
select SND_SOC_SOF_CLIENT
278+
help
279+
This enables a virtual serial port (tty) client for the SOF DSP.
280+
The driver registers a ttysof0 device that exchanges shell data
281+
with IPC4 firmware through the ADSP shell debug window using the
282+
Zephyr sys_winstream format. A debugfs file is also created to
283+
expose the shared DSP memory window for inspection and testing.
284+
Only IPC4 is supported. If unsure, select "N".
285+
274286
config SND_SOC_SOF_DEBUG_RETAIN_DSP_CONTEXT
275287
bool "SOF retain DSP context on any FW exceptions"
276288
help

sound/soc/sof/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ ifneq ($(CONFIG_SND_SOC_SOF_IPC4),)
3636
snd-sof-probes-y += sof-client-probes-ipc4.o
3737
endif
3838
snd-sof-fw-gdb-objs := sof-client-fw-gdb.o
39+
snd-sof-serial-y := sof-client-serial.o
3940

4041
snd-sof-nocodec-y := nocodec.o
4142

@@ -55,6 +56,7 @@ obj-$(CONFIG_SND_SOC_SOF_DEBUG_IPC_MSG_INJECTOR) += snd-sof-ipc-msg-injector.o
5556
obj-$(CONFIG_SND_SOC_SOF_DEBUG_IPC_KERNEL_INJECTOR) += snd-sof-ipc-kernel-injector.o
5657
obj-$(CONFIG_SND_SOC_SOF_DEBUG_PROBES) += snd-sof-probes.o
5758
obj-$(CONFIG_SND_SOC_SOF_DEBUG_FW_GDB) += snd-sof-fw-gdb.o
59+
obj-$(CONFIG_SND_SOC_SOF_SERIAL) += snd-sof-serial.o
5860

5961
obj-$(CONFIG_SND_SOC_SOF_INTEL_TOPLEVEL) += intel/
6062
obj-$(CONFIG_SND_SOC_SOF_IMX_TOPLEVEL) += imx/

0 commit comments

Comments
 (0)