summaryrefslogtreecommitdiff
path: root/drivers/soundwire/amd_init.h
diff options
context:
space:
mode:
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>2024-01-29 08:51:37 +0300
committerMark Brown <broonie@kernel.org>2024-01-30 19:06:34 +0300
commited5e8741b8db908d51a26e368c18573ee1b9e208 (patch)
treec44c8f6645bd6c98307dce5df654b040d0257216 /drivers/soundwire/amd_init.h
parenta47746428cf5762290d0c55f6ef82067af04d165 (diff)
downloadlinux-ed5e8741b8db908d51a26e368c18573ee1b9e208.tar.xz
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>
Diffstat (limited to 'drivers/soundwire/amd_init.h')
-rw-r--r--drivers/soundwire/amd_init.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/soundwire/amd_init.h b/drivers/soundwire/amd_init.h
new file mode 100644
index 000000000000..928b0c707162
--- /dev/null
+++ b/drivers/soundwire/amd_init.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
+/*
+ * Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
+ */
+
+#ifndef __AMD_INIT_H
+#define __AMD_INIT_H
+
+#include <linux/soundwire/sdw_amd.h>
+
+int amd_sdw_manager_start(struct amd_sdw_manager *amd_manager);
+
+#endif