forked from Minki/linux
5a9f07a415
Audio Co-processor or ACP IP block on AMD's SOC is connected via PCI bus interface, hence needs to be register as a PCI device. We have same PCI device ID across multiple SOC's but with different revision id for PCI hw. Add a generic PCI driver module for ACP that registers ACP as a PCI device and also register a platform device based on pci revision id. Any SOC's specific configuration for ACP block will be done in platform driver probe. We have added an initial support for ACP revision id 3 or ACP3X device. Signed-off-by: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com> Link: https://lore.kernel.org/r/20220117115854.455995-4-AjitKumar.Pandey@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
30 lines
724 B
C
30 lines
724 B
C
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
|
|
/*
|
|
* This file is provided under a dual BSD/GPLv2 license. When using or
|
|
* redistributing this file, you may do so under either license.
|
|
*
|
|
* Copyright(c) 2021 Advanced Micro Devices, Inc. All rights reserved.
|
|
*
|
|
* Author: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>
|
|
*/
|
|
#ifndef __AMD_MACH_CONFIG_H
|
|
#define __AMD_MACH_CONFIG_H
|
|
|
|
#include <sound/soc-acpi.h>
|
|
|
|
#define FLAG_AMD_SOF BIT(1)
|
|
#define FLAG_AMD_SOF_ONLY_DMIC BIT(2)
|
|
#define FLAG_AMD_LEGACY BIT(3)
|
|
|
|
#define ACP_PCI_DEV_ID 0x15E2
|
|
|
|
extern struct snd_soc_acpi_mach snd_soc_acpi_amd_sof_machines[];
|
|
|
|
struct config_entry {
|
|
u32 flags;
|
|
u16 device;
|
|
const struct dmi_system_id *dmi_table;
|
|
};
|
|
|
|
#endif
|