coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
dock.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef THINKPAD_T400_DOCK_H
4 #define THINKPAD_T400_DOCK_H
5 
6 #ifndef __ACPI__
7 int pc87382_early(void);
8 
9 void dock_connect(void);
10 void dock_disconnect(void);
11 int dock_present(void);
12 void dock_info(void);
13 #endif
14 
15 /* pc87382 */
16 #define DLPC_CONTROL 0x164c
17 #define DLPC_GPIO_BASE 0x1680
18 
19 #define DLPC_GPDO0 (DLPC_GPIO_BASE + 0x0)
20 #define DLPC_GPDI0 (DLPC_GPIO_BASE + 0x1)
21 #define D_PLTRST 0x01
22 #define D_LPCPD 0x02
23 
24 #define DLPC_GPDO2 (DLPC_GPIO_BASE + 0x8)
25 #define DLPC_GPDI2 (DLPC_GPIO_BASE + 0x9)
26 
27  /* Pullups on all GPIOs, dock pulls ID pins low */
28 #define DOCK_TYPE_2504 1
29 #define DOCK_TYPE_2505 2
30 #define DOCK_TYPE_NONE 7
31 
32 /* pc87384 */
33 #define SUPERIO_DEV 0x2e
34 #define DOCK_GPIO_BASE 0x1620
35 
36 #endif
void dock_connect(void)
Definition: dock.c:215
int pc87382_early(void)
Definition: dock.c:94
void dock_disconnect(void)
Definition: dock.c:234
int dock_present(void)
Definition: dock.c:36
void dock_info(void)
Definition: dock.c:244