1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
/* -*- mode:c -*-
*
* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/* Inputs with interrupt handlers are first for efficiency */
/* Power button */
GPIO(POWER_BUTTON_L, K, 7, GPIO_INT_BOTH, power_button_interrupt)
/* Lid switch */
GPIO(LID_OPEN, K, 5, GPIO_INT_BOTH, lid_interrupt)
/* Other inputs */
/* Data ready from I2C thermal sensor */
GPIO(THERMAL_DATA_READY_L, B, 4, GPIO_INPUT, NULL)
/* AC power present */
GPIO(AC_PRESENT, H, 3, GPIO_INT_BOTH, extpower_interrupt)
/* Board version stuffing resistor 1 */
GPIO(BOARD_VERSION1, H, 6, GPIO_INPUT, NULL)
/* Board version stuffing resistor 2 */
GPIO(BOARD_VERSION2, L, 6, GPIO_INPUT, NULL)
/* Board version stuffing resistor 3 */
GPIO(BOARD_VERSION3, L, 7, GPIO_INPUT, NULL)
/* One-wire bus to adapter LED */
GPIO(ONEWIRE, H, 2, GPIO_INPUT, NULL)
/* Backlight enable signal from PCH */
GPIO(PCH_BKLTEN, J, 3, GPIO_INT_BOTH, backlight_interrupt)
/* SLP_A# signal from PCH */
GPIO(PCH_SLP_A_L, G, 5, GPIO_INT_BOTH, power_signal_interrupt)
/* SLP_ME_CSW_DEV# signal from PCH */
GPIO(PCH_SLP_ME_CSW_DEV_L, G, 4, GPIO_INT_BOTH, power_signal_interrupt)
/* SLP_S3# signal from PCH */
GPIO(PCH_SLP_S3_L, J, 0, GPIO_INT_BOTH, power_signal_interrupt)
/* SLP_S4# signal from PCH */
GPIO(PCH_SLP_S4_L, J, 1, GPIO_INT_BOTH, power_signal_interrupt)
/* SLP_S5# signal from PCH */
GPIO(PCH_SLP_S5_L, J, 2, GPIO_INT_BOTH, power_signal_interrupt)
/* SLP_SUS# signal from PCH */
GPIO(PCH_SLP_SUS_L, G, 3, GPIO_INT_BOTH, power_signal_interrupt)
/* SUSWARN# signal from PCH */
GPIO(PCH_SUSWARN_L, G, 2, GPIO_INT_BOTH, power_interrupt)
/* Power good on +1.5V_DDR */
GPIO(PGOOD_1_5V_DDR, K, 0, GPIO_INT_BOTH, power_signal_interrupt)
/* Power good on +1.5V_PCH */
GPIO(PGOOD_1_5V_PCH, K, 1, GPIO_INT_BOTH, power_signal_interrupt)
/* Power good on +1.8VS */
GPIO(PGOOD_1_8VS, K, 3, GPIO_INT_BOTH, power_signal_interrupt)
/* Power good on +5VALW */
GPIO(PGOOD_5VALW, H, 0, GPIO_INT_BOTH, power_signal_interrupt)
/* Power good on +CPU_CORE */
GPIO(PGOOD_CPU_CORE, M, 3, GPIO_INT_BOTH, power_signal_interrupt)
/* Power good on +VCCP */
GPIO(PGOOD_VCCP, K, 2, GPIO_INT_BOTH, power_signal_interrupt)
/* Power good on +VCCSA */
GPIO(PGOOD_VCCSA, H, 1, GPIO_INT_BOTH, power_signal_interrupt)
/* Power good on +VGFX_CORE */
GPIO(PGOOD_VGFX_CORE, D, 2, GPIO_INT_BOTH, power_signal_interrupt)
/* Recovery signal from servo */
GPIO(RECOVERY_L, H, 7, GPIO_INT_BOTH, switch_interrupt)
/* USB charger port 1 status output */
GPIO(USB1_STATUS_L, E, 7, GPIO_INPUT, NULL)
/* USB charger port 2 status output */
GPIO(USB2_STATUS_L, E, 1, GPIO_INPUT, NULL)
/* Write protect input */
GPIO(WP, J, 4, GPIO_INT_BOTH, switch_interrupt)
/* Outputs; all unasserted by default except for reset signals */
/* Force CPU to think it's overheated */
GPIO(CPU_PROCHOT, F, 2, GPIO_OUT_LOW, NULL)
/* Enable +1.5V_DDR supply */
GPIO(ENABLE_1_5V_DDR, H, 5, GPIO_OUT_LOW, NULL)
/* Enable +5V always on rail */
GPIO(ENABLE_5VALW, K, 4, GPIO_OUT_HIGH, NULL)
/* Enable backlight power */
GPIO(ENABLE_BACKLIGHT, H, 4, GPIO_OUT_LOW, NULL)
/* Enable touchpad power */
GPIO(ENABLE_TOUCHPAD, C, 6, GPIO_OUT_LOW, NULL)
/* Enable +CPU_CORE and +VGFX_CORE */
GPIO(ENABLE_VCORE, F, 7, GPIO_OUT_LOW, NULL)
/* Enable VS power supplies */
GPIO(ENABLE_VS, G, 6, GPIO_OUT_LOW, NULL)
/* Enable WLAN module power (+3VS_WLAN) */
GPIO(ENABLE_WLAN, Q, 5, GPIO_OUT_LOW, NULL)
/* Indicate when EC is entering RW code */
GPIO(ENTERING_RW, J, 5, GPIO_OUT_LOW, NULL)
/* Reset lightbar controllers */
GPIO(LIGHTBAR_RESET_L, B, 1, GPIO_OUT_LOW, NULL)
/* A20GATE signal to PCH */
GPIO(PCH_A20GATE, Q, 6, GPIO_OUT_LOW, NULL)
/* DPWROK signal to PCH */
GPIO(PCH_DPWROK, G, 0, GPIO_OUT_LOW, NULL)
/*
* HDA_SDO is technically an output, but we need to leave it as an
* input until we drive it high. So can't use open-drain (HI_Z).
*/
/* HDA_SDO signal to PCH; when high, ME ignores security descriptor */
GPIO(PCH_HDA_SDO, G, 1, GPIO_INPUT, NULL)
/* Wake signal output to PCH */
GPIO(PCH_WAKE_L, F, 0, GPIO_OUT_HIGH, NULL)
/* Non-maskable interrupt pin to PCH */
GPIO(PCH_NMI_L, M, 2, GPIO_OUT_HIGH, NULL)
/* Power button output to PCH */
GPIO(PCH_PWRBTN_L, G, 7, GPIO_OUT_HIGH, NULL)
/* PWROK / APWROK signals to PCH */
GPIO(PCH_PWROK, F, 5, GPIO_OUT_LOW, NULL)
/* RCIN# signal to PCH */
GPIO(PCH_RCIN_L, Q, 7, GPIO_ODR_HIGH, NULL)
/* Reset PCH resume power plane logic */
GPIO(PCH_RSMRST_L, F, 1, GPIO_OUT_LOW, NULL)
/* Reset PCH RTC well */
GPIO(PCH_RTCRST_L, F, 6, GPIO_ODR_HIGH, NULL)
/* System management interrupt to PCH */
GPIO(PCH_SMI_L, F, 4, GPIO_OUT_HIGH, NULL)
/* Reset PCH ME RTC well */
GPIO(PCH_SRTCRST_L, C, 7, GPIO_ODR_HIGH, NULL)
/* Acknowledge PCH SUSWARN# signal */
GPIO(PCH_SUSACK_L, F, 3, GPIO_OUT_HIGH, NULL)
/* Enable WLAN radio */
GPIO(RADIO_ENABLE_WLAN, D, 0, GPIO_OUT_LOW, NULL)
/* Enable bluetooth radio */
GPIO(RADIO_ENABLE_BT, D, 1, GPIO_OUT_LOW, NULL)
/* SPI chip select */
GPIO(SPI_CS_L, A, 3, GPIO_ODR_HIGH, NULL)
/* Reset touch screen */
GPIO(TOUCHSCREEN_RESET_L, B, 0, GPIO_OUT_LOW, NULL)
/* USB charger port 1 CTL1 output */
GPIO(USB1_CTL1, E, 2, GPIO_OUT_LOW, NULL)
/* USB charger port 1 CTL2 output */
GPIO(USB1_CTL2, E, 3, GPIO_OUT_LOW, NULL)
/* USB charger port 1 CTL3 output */
GPIO(USB1_CTL3, E, 4, GPIO_OUT_LOW, NULL)
/* USB charger port 1 enable */
GPIO(USB1_ENABLE, E, 5, GPIO_OUT_LOW, NULL)
/* USB charger port 1 ILIM_SEL output */
GPIO(USB1_ILIM_SEL, E, 6, GPIO_OUT_LOW, NULL)
/* USB charger port 2 CTL1 output */
GPIO(USB2_CTL1, D, 4, GPIO_OUT_LOW, NULL)
/* USB charger port 2 CTL2 output */
GPIO(USB2_CTL2, D, 5, GPIO_OUT_LOW, NULL)
/* USB charger port 2 CTL3 output */
GPIO(USB2_CTL3, D, 6, GPIO_OUT_LOW, NULL)
/* USB charger port 2 enable */
GPIO(USB2_ENABLE, D, 7, GPIO_OUT_LOW, NULL)
/* USB charger port 2 ILIM_SEL output */
GPIO(USB2_ILIM_SEL, E, 0, GPIO_OUT_LOW, NULL)
|