coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
scc.c File Reference
#include <acpi/acpi_gnvs.h>
#include <console/console.h>
#include <device/device.h>
#include <device/pci.h>
#include <reg_script.h>
#include <soc/iosf.h>
#include <soc/device_nvs.h>
#include <soc/ramstage.h>
Include dependency graph for scc.c:

Go to the source code of this file.

Functions

void baytrail_init_scc (void)
 
void scc_enable_acpi_mode (struct device *dev, int iosf_reg, int nvs_index)
 

Variables

static const struct reg_script scc_start_dll []
 
static const struct reg_script scc_after_dll []
 

Function Documentation

◆ baytrail_init_scc()

void baytrail_init_scc ( void  )

Definition at line 54 of file scc.c.

References BIOS_DEBUG, iosf_score_read(), iosf_score_write(), printk, reg_script_run(), scc_after_dll, and scc_start_dll.

Referenced by baytrail_init_pre_device().

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

◆ scc_enable_acpi_mode()

void scc_enable_acpi_mode ( struct device dev,
int  iosf_reg,
int  nvs_index 
)

Definition at line 71 of file scc.c.

Variable Documentation

◆ scc_after_dll

const struct reg_script scc_after_dll[]
static
Initial value:
= {
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x4954, ~0x7fff, 0x35ad),
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x4958, ~0x7fff, 0x35ad),
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x495c, ~0x7fff, 0x35ad),
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x43e4, ~0x7fff, 0x35ad),
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x4324, ~0x7fff, 0x35ad),
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x42b4, ~0x7fff, 0x35ad),
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x49a4, ~0x1f001f, 0xa000d),
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x49a8, ~0x1f001f, 0xd000d),
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x49ac, ~0x1f001f, 0xd000d),
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x49b0, ~0x1f001f, 0xd000d),
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x49b4, ~0x1f001f, 0xd000d),
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x49b8, ~0x1, 0x0),
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x48c0, ~0x3c, 0x0),
REG_IOSF_RMW(IOSF_PORT_SCORE, 0x48c4, ~0x3c, 0x0),
REG_IOSF_RMW(IOSF_PORT_SCC, 0x600, ~0xf, 0x5),
REG_IOSF_OR(IOSF_PORT_SCC, 0x00, (1 << 7)),
REG_IOSF_RMW(IOSF_PORT_SCC, 0x600, ~0x30, 0x30),
}
#define IOSF_PORT_SCORE
Definition: iosf.h:104
#define IOSF_PORT_SCC
Definition: iosf.h:110
#define REG_SCRIPT_END
Definition: reg_script.h:427

Definition at line 1 of file scc.c.

Referenced by baytrail_init_scc().

◆ scc_start_dll

const struct reg_script scc_start_dll[]
static
Initial value:
= {
REG_IOSF_WRITE(IOSF_PORT_SCORE, 0x4964, 0x00078000),
REG_IOSF_WRITE(IOSF_PORT_SCORE, 0x4970, 0x00000133),
REG_IOSF_WRITE(IOSF_PORT_SCORE, 0x4970, 0x00001933),
}

Definition at line 1 of file scc.c.

Referenced by baytrail_init_scc().