xref: /openbmc/linux/sound/soc/amd/mach-config.h (revision ef51cddf)
1f1bdd8d3SAjit Kumar Pandey /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
2f1bdd8d3SAjit Kumar Pandey /*
3f1bdd8d3SAjit Kumar Pandey  * This file is provided under a dual BSD/GPLv2 license. When using or
4f1bdd8d3SAjit Kumar Pandey  * redistributing this file, you may do so under either license.
5f1bdd8d3SAjit Kumar Pandey  *
6f1bdd8d3SAjit Kumar Pandey  * Copyright(c) 2021 Advanced Micro Devices, Inc. All rights reserved.
7f1bdd8d3SAjit Kumar Pandey  *
8f1bdd8d3SAjit Kumar Pandey  * Author: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>
9f1bdd8d3SAjit Kumar Pandey  */
10f1bdd8d3SAjit Kumar Pandey #ifndef __AMD_MACH_CONFIG_H
11f1bdd8d3SAjit Kumar Pandey #define __AMD_MACH_CONFIG_H
12f1bdd8d3SAjit Kumar Pandey 
13f1bdd8d3SAjit Kumar Pandey #include <sound/soc-acpi.h>
14f1bdd8d3SAjit Kumar Pandey 
15f1bdd8d3SAjit Kumar Pandey #define FLAG_AMD_SOF			BIT(1)
16f1bdd8d3SAjit Kumar Pandey #define FLAG_AMD_SOF_ONLY_DMIC		BIT(2)
175a9f07a4SAjit Kumar Pandey #define FLAG_AMD_LEGACY			BIT(3)
18f1bdd8d3SAjit Kumar Pandey 
19f1bdd8d3SAjit Kumar Pandey #define ACP_PCI_DEV_ID			0x15E2
20f1bdd8d3SAjit Kumar Pandey 
21f1bdd8d3SAjit Kumar Pandey extern struct snd_soc_acpi_mach snd_soc_acpi_amd_sof_machines[];
220439eb4dSV sujith kumar Reddy extern struct snd_soc_acpi_mach snd_soc_acpi_amd_rmb_sof_machines[];
23*ef51cddfSVenkata Prasad Potturu extern struct snd_soc_acpi_mach snd_soc_acpi_amd_vangogh_sof_machines[];
24f1bdd8d3SAjit Kumar Pandey 
25f1bdd8d3SAjit Kumar Pandey struct config_entry {
26f1bdd8d3SAjit Kumar Pandey 	u32 flags;
27f1bdd8d3SAjit Kumar Pandey 	u16 device;
28f1bdd8d3SAjit Kumar Pandey 	const struct dmi_system_id *dmi_table;
29f1bdd8d3SAjit Kumar Pandey };
30f1bdd8d3SAjit Kumar Pandey 
31f1bdd8d3SAjit Kumar Pandey #endif
32