![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <arch/io.h>
#include <device/pnp_ops.h>
#include <device/device.h>
#include <device/pnp.h>
#include <delay.h>
#include "dock.h"
#include <superio/nsc/pc87382/pc87382.h>
#include <southbridge/intel/i82801ix/i82801ix.h>
#include <ec/lenovo/h8/h8.h>
#include <ec/acpi/ec.h>
#include <superio/nsc/pc87384/pc87384.h>
Go to the source code of this file.
Data Structures | |
struct | pin_config |
Macros | |
#define | __SIMPLE_DEVICE__ |
Functions | |
static int | poll_clk_stable (pnp_devfn_t dev, int timeout) |
static int | gpio_init (pnp_devfn_t gpio, u16 gpio_base, const struct pin_config pincfg[], int num_cfgs) |
static int | pc87382_init (pnp_devfn_t dlpc, u16 dlpc_base) |
static void | pc87382_close (pnp_devfn_t dlpc) |
int | pc87382_early (void) |
static int | pc87382_connect (void) |
static void | pc87382_disconnect (void) |
static u8 | dock_identify (void) |
static int | pc87384_init (void) |
void | dock_connect (void) |
void | dock_disconnect (void) |
void | dock_info (void) |
Variables | |
static const pnp_devfn_t | l_dlpc = PNP_DEV(0x164e, PC87382_DOCK) |
static const pnp_devfn_t | l_gpio = PNP_DEV(0x164e, PC87382_GPIO) |
static const struct pin_config | local_gpio [] |
static const pnp_devfn_t | r_gpio = PNP_DEV(SUPERIO_DEV, PC87384_GPIO) |
static const pnp_devfn_t | r_serial = PNP_DEV(SUPERIO_DEV, PC87384_SP1) |
static const struct pin_config | remote_gpio [] |
Definition at line 215 of file dock.c.
References dock_identify(), DOCK_TYPE_2505, DOCK_TYPE_NONE, ec_write(), H8_LED_CONTROL, H8_LED_CONTROL_DOCK_LED1, H8_LED_CONTROL_DOCK_LED2, H8_LED_CONTROL_OFF, H8_LED_CONTROL_ON, pc87382_connect(), pc87382_disconnect(), and pc87384_init().
Referenced by bootblock_mainboard_early_init(), h8_mb_init(), mainboard_io_trap_handler(), and mainboard_smi_handle_ec_sci().
Definition at line 234 of file dock.c.
References ec_write(), H8_LED_CONTROL, H8_LED_CONTROL_DOCK_LED1, H8_LED_CONTROL_DOCK_LED2, H8_LED_CONTROL_OFF, and pc87382_disconnect().
Referenced by mainboard_io_trap_handler(), and mainboard_smi_handle_ec_sci().
Definition at line 145 of file dock.c.
References DLPC_GPDI0, DLPC_GPDI2, and inb().
Referenced by dock_connect(), and dock_info().
Definition at line 244 of file dock.c.
References BIOS_DEBUG, dock_identify(), DOCK_TYPE_NONE, and printk.
Referenced by bootblock_mainboard_init().
|
static |
Definition at line 34 of file dock.c.
References PNP_IDX_IO0, pnp_set_enable(), pnp_set_iobase(), pnp_set_logical_device(), and pnp_write_config().
Referenced by pc87382_early(), and pc87384_init().
|
static |
Definition at line 76 of file dock.c.
Referenced by pc87382_disconnect().
|
static |
Definition at line 109 of file dock.c.
References D_LPCPD, D_PLTRST, DLPC_CONTROL, DLPC_GPDO0, inb(), l_dlpc, mdelay(), outb(), pc87382_init(), and udelay().
Referenced by dock_connect().
Definition at line 134 of file dock.c.
References D_LPCPD, D_PLTRST, DLPC_GPDO0, inb(), l_dlpc, outb(), and pc87382_close().
Referenced by dock_connect(), and dock_disconnect().
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().
|
static |
Definition at line 55 of file dock.c.
References inb(), outb(), PNP_IDX_IO0, pnp_set_enable(), pnp_set_iobase(), pnp_set_logical_device(), and udelay().
Referenced by pc87382_connect().
|
static |
Definition at line 174 of file dock.c.
References ARRAY_SIZE, DOCK_GPIO_BASE, gpio_init(), outb(), PNP_IDX_IO0, pnp_set_enable(), pnp_set_iobase(), pnp_set_logical_device(), pnp_write_config(), poll_clk_stable(), r_gpio, r_serial, and remote_gpio.
Referenced by dock_connect().
|
static |
Definition at line 22 of file dock.c.
References pnp_read_config(), pnp_write_config(), and udelay().
Referenced by pc87382_early(), and pc87384_init().
|
static |
Definition at line 52 of file dock.c.
Referenced by pc87382_connect(), and pc87382_disconnect().
|
static |
Definition at line 53 of file dock.c.
Referenced by pc87382_early().
|
static |
Definition at line 76 of file dock.c.
Referenced by pc87382_early().
|
static |
Definition at line 160 of file dock.c.
Referenced by pc87384_init().
|
static |
Definition at line 161 of file dock.c.
Referenced by pc87384_init().
|
static |
Definition at line 161 of file dock.c.
Referenced by pc87384_init().