payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / lenovo / t400 / dock.h
blob9b81844a3b97b0e1a986b686d4e223ee0eca8f1c
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef THINKPAD_T400_DOCK_H
4 #define THINKPAD_T400_DOCK_H
6 #ifndef __ACPI__
7 int pc87382_early(void);
9 void dock_connect(void);
10 void dock_disconnect(void);
11 int dock_present(void);
12 void dock_info(void);
13 #endif
15 /* pc87382 */
16 #define DLPC_CONTROL 0x164c
17 #define DLPC_GPIO_BASE 0x1680
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
24 #define DLPC_GPDO2 (DLPC_GPIO_BASE + 0x8)
25 #define DLPC_GPDI2 (DLPC_GPIO_BASE + 0x9)
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
32 /* pc87384 */
33 #define SUPERIO_DEV 0x2e
34 #define DOCK_GPIO_BASE 0x1620
36 #endif