coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
soundwire.h File Reference
#include <device/soundwire.h>
#include <types.h>
Include dependency graph for soundwire.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  intel_soundwire_controller
 struct intel_soundwire_controller - SoundWire controller configuration for Intel SoC. More...
 

Enumerations

enum  intel_soundwire_quirk { INTEL_SOUNDWIRE_QUIRK_STATIC_CLOCK = BIT(0) , INTEL_SOUNDWIRE_QUIRK_BUS_DISABLE = BIT(1) }
 enum intel_soundwire_quirk - Quirks for controller master links. More...
 

Functions

int soc_fill_soundwire_controller (struct intel_soundwire_controller **controller)
 soc_fill_soundwire_controller() - Get SoundWire controller properties from the SoC. More...
 

Enumeration Type Documentation

◆ intel_soundwire_quirk

enum intel_soundwire_quirk - Quirks for controller master links.

@INTEL_SOUNDWIRE_QUIRK_STATIC_CLOCK: Link clock is fixed. @INTEL_SOUNDWIRE_QUIRK_BUS_DISABLE: This link should be disabled.

Enumerator
INTEL_SOUNDWIRE_QUIRK_STATIC_CLOCK 
INTEL_SOUNDWIRE_QUIRK_BUS_DISABLE 

Definition at line 14 of file soundwire.h.

Function Documentation

◆ soc_fill_soundwire_controller()

int soc_fill_soundwire_controller ( struct intel_soundwire_controller **  controller)

soc_fill_soundwire_controller() - Get SoundWire controller properties from the SoC.

@controller: Properties to be filled by the SoC. Return zero for success, -1 if there was any error filling the properties.

Definition at line 15 of file soundwire.c.

References BIOS_ERR, intel_controller, intel_soundwire_controller::ip_clock, KHz, link_xtal_24, link_xtal_38_4, soundwire_controller::master_list, soundwire_controller::master_list_count, memcpy(), MHz, pmc_get_xtal_freq(), printk, intel_soundwire_controller::sdw, XTAL_19_2_MHZ, XTAL_24_MHZ, and XTAL_38_4_MHZ.

Referenced by intel_soundwire_fill_ssdt().

Here is the call graph for this function:
Here is the caller graph for this function: