coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dock.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DLPC_CONTROL   0x164c
 
#define DLPC_GPIO_BASE   0x1680
 
#define DLPC_GPDO0   (DLPC_GPIO_BASE + 0x0)
 
#define DLPC_GPDI0   (DLPC_GPIO_BASE + 0x1)
 
#define D_PLTRST   0x01
 
#define D_LPCPD   0x02
 
#define DLPC_GPDO2   (DLPC_GPIO_BASE + 0x8)
 
#define DLPC_GPDI2   (DLPC_GPIO_BASE + 0x9)
 
#define DOCK_TYPE_2504   1
 
#define DOCK_TYPE_2505   2
 
#define DOCK_TYPE_NONE   7
 
#define SUPERIO_DEV   0x2e
 
#define DOCK_GPIO_BASE   0x1620
 

Functions

int pc87382_early (void)
 
void dock_connect (void)
 
void dock_disconnect (void)
 
int dock_present (void)
 
void dock_info (void)
 

Macro Definition Documentation

◆ D_LPCPD

#define D_LPCPD   0x02

Definition at line 22 of file dock.h.

◆ D_PLTRST

#define D_PLTRST   0x01

Definition at line 21 of file dock.h.

◆ DLPC_CONTROL

#define DLPC_CONTROL   0x164c

Definition at line 16 of file dock.h.

◆ DLPC_GPDI0

#define DLPC_GPDI0   (DLPC_GPIO_BASE + 0x1)

Definition at line 20 of file dock.h.

◆ DLPC_GPDI2

#define DLPC_GPDI2   (DLPC_GPIO_BASE + 0x9)

Definition at line 25 of file dock.h.

◆ DLPC_GPDO0

#define DLPC_GPDO0   (DLPC_GPIO_BASE + 0x0)

Definition at line 19 of file dock.h.

◆ DLPC_GPDO2

#define DLPC_GPDO2   (DLPC_GPIO_BASE + 0x8)

Definition at line 24 of file dock.h.

◆ DLPC_GPIO_BASE

#define DLPC_GPIO_BASE   0x1680

Definition at line 17 of file dock.h.

◆ DOCK_GPIO_BASE

#define DOCK_GPIO_BASE   0x1620

Definition at line 34 of file dock.h.

◆ DOCK_TYPE_2504

#define DOCK_TYPE_2504   1

Definition at line 28 of file dock.h.

◆ DOCK_TYPE_2505

#define DOCK_TYPE_2505   2

Definition at line 29 of file dock.h.

◆ DOCK_TYPE_NONE

#define DOCK_TYPE_NONE   7

Definition at line 30 of file dock.h.

◆ SUPERIO_DEV

#define SUPERIO_DEV   0x2e

Definition at line 33 of file dock.h.

Function Documentation

◆ dock_connect()

void dock_connect ( void  )

Definition at line 215 of file dock.c.

◆ dock_disconnect()

void dock_disconnect ( void  )

Definition at line 234 of file dock.c.

◆ dock_info()

void dock_info ( void  )

Definition at line 244 of file dock.c.

References BIOS_DEBUG, dock_identify(), DOCK_TYPE_NONE, and printk.

Referenced by bootblock_mainboard_init().

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

◆ dock_present()

int dock_present ( void  )

Definition at line 36 of file dock.c.

References get_gpios().

Referenced by bootblock_mainboard_early_init().

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

◆ pc87382_early()

int pc87382_early ( void  )

Definition at line 94 of file dock.c.

References ARRAY_SIZE, DLPC_GPIO_BASE, gpio_init(), l_gpio, local_gpio, and poll_clk_stable().

Referenced by bootblock_mainboard_early_init().

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