coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
cpld.c File Reference
#include <arch/io.h>
#include "cpld.h"
Include dependency graph for cpld.c:

Go to the source code of this file.

Macros

#define CPLD_PCB_VERSION_PORT   0x283
 
#define CPLD_PCB_VERSION_MASK   0xF0
 
#define CPLD_PCB_VERSION_BIT   4
 
#define CPLD_RESET_PORT   0x287
 
#define CPLD_CMD_RESET_DSI_BRIDGE_ACTIVE   0x20
 
#define CPLD_CMD_RESET_DSI_BRIDGE_INACTIVE   0x00
 

Functions

void cpld_reset_bridge (void)
 
unsigned int cpld_read_pcb_version (void)
 

Macro Definition Documentation

◆ CPLD_CMD_RESET_DSI_BRIDGE_ACTIVE

#define CPLD_CMD_RESET_DSI_BRIDGE_ACTIVE   0x20

Definition at line 12 of file cpld.c.

◆ CPLD_CMD_RESET_DSI_BRIDGE_INACTIVE

#define CPLD_CMD_RESET_DSI_BRIDGE_INACTIVE   0x00

Definition at line 13 of file cpld.c.

◆ CPLD_PCB_VERSION_BIT

#define CPLD_PCB_VERSION_BIT   4

Definition at line 9 of file cpld.c.

◆ CPLD_PCB_VERSION_MASK

#define CPLD_PCB_VERSION_MASK   0xF0

Definition at line 8 of file cpld.c.

◆ CPLD_PCB_VERSION_PORT

#define CPLD_PCB_VERSION_PORT   0x283

Definition at line 7 of file cpld.c.

◆ CPLD_RESET_PORT

#define CPLD_RESET_PORT   0x287

Definition at line 11 of file cpld.c.

Function Documentation

◆ cpld_read_pcb_version()

unsigned int cpld_read_pcb_version ( void  )

Definition at line 23 of file cpld.c.

References CPLD_PCB_VERSION_BIT, CPLD_PCB_VERSION_MASK, CPLD_PCB_VERSION_PORT, and inb().

Referenced by mainboard_configure_edp_bridge(), and mainboard_memory_init_params().

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

◆ cpld_reset_bridge()

void cpld_reset_bridge ( void  )

Definition at line 16 of file cpld.c.

References CPLD_CMD_RESET_DSI_BRIDGE_ACTIVE, CPLD_CMD_RESET_DSI_BRIDGE_INACTIVE, CPLD_RESET_PORT, and outb().

Referenced by mainboard_configure_edp_bridge().

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