soundwire: amd: refactor amd soundwire manager device node creation
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Mon, 29 Jan 2024 05:51:37 +0000 (11:21 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 30 Jan 2024 16:06:34 +0000 (16:06 +0000)
commited5e8741b8db908d51a26e368c18573ee1b9e208
treec44c8f6645bd6c98307dce5df654b040d0257216
parenta47746428cf5762290d0c55f6ef82067af04d165
soundwire: amd: refactor amd soundwire manager device node creation

Refactor amd SoundWire manager device node creation logic and implement
generic functions to have a common functionality for SoundWire manager
platform device creation, start and exit sequence for both legacy(NO DSP)
and SOF stack for AMD platforms. These functions will be invoked from
legacy and SOF stack.

Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Link: https://msgid.link/r/20240129055147.1493853-4-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/soundwire/Makefile
drivers/soundwire/amd_init.c [new file with mode: 0644]
drivers/soundwire/amd_init.h [new file with mode: 0644]
drivers/soundwire/amd_manager.c
include/linux/soundwire/sdw_amd.h