coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
soundwire.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef __DRIVERS_INTEL_SOUNDWIRE_H__
4 #define __DRIVERS_INTEL_SOUNDWIRE_H__
5 
6 #include <device/soundwire.h>
7 #include <types.h>
8 
9 /**
10  * enum intel_soundwire_quirk - Quirks for controller master links.
11  * @INTEL_SOUNDWIRE_QUIRK_STATIC_CLOCK: Link clock is fixed.
12  * @INTEL_SOUNDWIRE_QUIRK_BUS_DISABLE: This link should be disabled.
13  */
17 };
18 
19 /**
20  * struct intel_soundwire_controller - SoundWire controller configuration for Intel SoC.
21  * @dev: Device handle for this controller.
22  * @acpi_address: ACPI address for this controller. This is a custom address that is not
23  * compatible with either PCI or SoundWire.
24  * @ip_clock: Frequency of the source clock connected to the controller.
25  * @quirk_mask: Quirks that can be passed to the kernel drivers.
26  * @sdw: SoundWire controller properties defined in MIPI SoundWire DisCo Specification.
27  */
29  const struct device *dev;
31  unsigned int ip_clock;
32  unsigned int quirk_mask;
34 };
35 
36 /**
37  * soc_fill_soundwire_controller() - Get SoundWire controller properties from the SoC.
38  * @controller: Properties to be filled by the SoC.
39  * Return zero for success, -1 if there was any error filling the properties.
40  */
42 
43 #endif /* __DRIVERS_INTEL_SOUNDWIRE_H__ */
int soc_fill_soundwire_controller(struct intel_soundwire_controller **controller)
soc_fill_soundwire_controller() - Get SoundWire controller properties from the SoC.
Definition: soundwire.c:15
intel_soundwire_quirk
enum intel_soundwire_quirk - Quirks for controller master links.
Definition: soundwire.h:14
@ INTEL_SOUNDWIRE_QUIRK_STATIC_CLOCK
Definition: soundwire.h:15
@ INTEL_SOUNDWIRE_QUIRK_BUS_DISABLE
Definition: soundwire.h:16
#define BIT(nr)
Definition: ec_commands.h:45
unsigned long long uint64_t
Definition: stdint.h:17
Definition: device.h:107
struct intel_soundwire_controller - SoundWire controller configuration for Intel SoC.
Definition: soundwire.h:28
const struct device * dev
Definition: soundwire.h:29
struct soundwire_controller sdw
Definition: soundwire.h:33
unsigned int quirk_mask
Definition: soundwire.h:32
struct soundwire_controller - SoundWire controller properties.
Definition: soundwire.h:127