mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 00:25:02 +07:00
d62a7d41f3
The SoundWire Master is implemented as part of Audio controller in Intel platforms. Add a init module which creates SoundWire Master platform devices based on the links supported in the hardware. Signed-off-by: Sanyog Kale <sanyog.r.kale@intel.com> Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com> Acked-By: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
25 lines
568 B
C
25 lines
568 B
C
// SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause)
|
|
// Copyright(c) 2015-17 Intel Corporation.
|
|
|
|
#ifndef __SDW_INTEL_H
|
|
#define __SDW_INTEL_H
|
|
|
|
/**
|
|
* struct sdw_intel_res - Soundwire Intel resource structure
|
|
* @mmio_base: mmio base of SoundWire registers
|
|
* @irq: interrupt number
|
|
* @handle: ACPI parent handle
|
|
* @parent: parent device
|
|
*/
|
|
struct sdw_intel_res {
|
|
void __iomem *mmio_base;
|
|
int irq;
|
|
acpi_handle handle;
|
|
struct device *parent;
|
|
};
|
|
|
|
void *sdw_intel_init(acpi_handle *parent_handle, struct sdw_intel_res *res);
|
|
void sdw_intel_exit(void *arg);
|
|
|
|
#endif
|