coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
lcc.c File Reference
#include <stdint.h>
#include <delay.h>
#include <console/console.h>
#include <soc/clock.h>
#include <soc/lcc-reg.h>
#include <device/mmio.h>
Include dependency graph for lcc.c:

Go to the source code of this file.

Data Structures

struct  IpqLccClocks
 
struct  __packed
 
struct  lcc_freq_tbl
 

Typedefs

typedef struct __packed IpqLccGccRegs
 
typedef struct __packed IpqLccPll0Regs
 
typedef struct __packed IpqLccAhbixRegs
 
typedef struct __packed IpqLccMi2sRegs
 
typedef struct __packed IpqLccPllRegs
 

Functions

static int lcc_init_enable_pll0 (IpqLccClocks *bus)
 
static int lcc_init_enable_ahbix (IpqLccClocks *bus)
 
static int lcc_init_mi2s (IpqLccClocks *bus, unsigned int freq)
 
static int lcc_enable_mi2s (IpqLccClocks *bus)
 
int audio_clock_config (unsigned int frequency)
 

Variables

static const struct lcc_freq_tbl lcc_mi2s_freq_tbl []
 

Typedef Documentation

◆ IpqLccAhbixRegs

typedef struct __packed IpqLccAhbixRegs

◆ IpqLccGccRegs

typedef struct __packed IpqLccGccRegs

◆ IpqLccMi2sRegs

typedef struct __packed IpqLccMi2sRegs

◆ IpqLccPll0Regs

typedef struct __packed IpqLccPll0Regs

◆ IpqLccPllRegs

typedef struct __packed IpqLccPllRegs

Function Documentation

◆ audio_clock_config()

int audio_clock_config ( unsigned int  frequency)

Definition at line 260 of file lcc.c.

◆ lcc_enable_mi2s()

static int lcc_enable_mi2s ( IpqLccClocks bus)
static

Definition at line 238 of file lcc.c.

References BIOS_ERR, LCC_MI2S_NS_BIT_CXC_ENABLE, LCC_MI2S_NS_OSR_CXC_ENABLE, LCC_MI2S_STAT_BIT_CLK_MASK, LCC_MI2S_STAT_OSR_CLK_MASK, __packed::ns, printk, read32(), __packed::status, udelay(), and write32().

Referenced by audio_clock_config().

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

◆ lcc_init_enable_ahbix()

◆ lcc_init_enable_pll0()

◆ lcc_init_mi2s()

Variable Documentation

◆ lcc_mi2s_freq_tbl

const struct lcc_freq_tbl lcc_mi2s_freq_tbl[]
static

Definition at line 1 of file lcc.c.

Referenced by lcc_init_mi2s().