blob: 99bdee6d09efd4237fa7b81e573c71502ac81501 [file] [log] [blame]
Duncan Laurieddc3e422013-10-02 16:10:54 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2013 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef SAMUS_GPIO_H
21#define SAMUS_GPIO_H
22
Duncan Laurie2663a552014-05-14 15:59:37 -070023#include <broadwell/gpio.h>
Duncan Laurieddc3e422013-10-02 16:10:54 -070024
Duncan Laurie2663a552014-05-14 15:59:37 -070025#define SAMUS_GPIO_PP3300_AUTOBAHN_EN 23
Duncan Laurie808a2542014-07-15 13:41:18 -070026#define SAMUS_GPIO_SSD_RESET_L 47
Duncan Laurie1247b872014-09-29 08:35:29 -070027#define SAMUS_GPIO_WLAN_DISABLE_L 42
28#define SAMUS_GPIO_LTE_DISABLE_L 59
Duncan Laurie2663a552014-05-14 15:59:37 -070029
30static const struct gpio_config mainboard_gpio_config[] = {
31 PCH_GPIO_UNUSED, /* 0: UNUSED */
32 PCH_GPIO_UNUSED, /* 1: UNUSED */
33 PCH_GPIO_UNUSED, /* 2: UNUSED */
34 PCH_GPIO_UNUSED, /* 3: UNUSED */
35 PCH_GPIO_NATIVE, /* 4: NATIVE: I2C0_SDA_GPIO4 */
36 PCH_GPIO_NATIVE, /* 5: NATIVE: I2C0_SCL_GPIO5 */
37 PCH_GPIO_NATIVE, /* 6: NATIVE: I2C1_SDA_GPIO6 */
38 PCH_GPIO_NATIVE, /* 7: NATIVE: I2C1_SCL_GPIO7 */
39 PCH_GPIO_ACPI_SCI, /* 8: PCH_LTE_WAKE_L */
Duncan Lauriec37dd502014-11-03 12:48:11 -080040 PCH_GPIO_INPUT_INVERT, /* 9: TRACKPAD_INT_L (WAKE) */
Duncan Laurie2663a552014-05-14 15:59:37 -070041 PCH_GPIO_ACPI_SCI, /* 10: PCH_WLAN_WAKE_L */
42 PCH_GPIO_UNUSED, /* 11: UNUSED */
43 PCH_GPIO_UNUSED, /* 12: UNUSED */
44 PCH_GPIO_PIRQ, /* 13: TRACKPAD_INT_L (PIRQL) */
45 PCH_GPIO_PIRQ, /* 14: TOUCH_INT_L (PIRQM) */
46 PCH_GPIO_UNUSED, /* 15: UNUSED (STRAP) */
47 PCH_GPIO_INPUT, /* 16: PCH_WP */
48 PCH_GPIO_UNUSED, /* 17: UNUSED */
Duncan Laurie25c6f752014-05-22 08:25:36 -070049 PCH_GPIO_UNUSED, /* 18: UNUSED */
Duncan Laurie2663a552014-05-14 15:59:37 -070050 PCH_GPIO_UNUSED, /* 19: UNUSED */
Duncan Laurie25c6f752014-05-22 08:25:36 -070051 PCH_GPIO_NATIVE, /* 20: PCIE_WLAN_CLKREQ_L */
Duncan Laurie2663a552014-05-14 15:59:37 -070052 PCH_GPIO_OUT_HIGH, /* 21: PP3300_SSD_EN */
53 PCH_GPIO_UNUSED, /* 22: UNUSED */
54 PCH_GPIO_OUT_LOW, /* 23: PP3300_AUTOBAHN_EN */
55 PCH_GPIO_UNUSED, /* 24: UNUSED */
56 PCH_GPIO_INPUT, /* 25: EC_IN_RW */
Duncan Lauriebe19c542014-08-22 13:36:12 -070057 PCH_GPIO_UNUSED, /* 26: UNUSED */
58 PCH_GPIO_ACPI_SCI, /* 27: PCH_WAKE_L */
Duncan Laurie2663a552014-05-14 15:59:37 -070059 PCH_GPIO_UNUSED, /* 28: UNUSED */
60 PCH_GPIO_UNUSED, /* 29: UNUSED */
61 PCH_GPIO_NATIVE, /* 30: NATIVE: PCH_SUSWARN_L */
62 PCH_GPIO_NATIVE, /* 31: NATIVE: ACOK_BUF */
63 PCH_GPIO_NATIVE, /* 32: NATIVE: LPC_CLKRUN_L */
64 PCH_GPIO_NATIVE, /* 33: NATIVE: SSD_DEVSLP */
65 PCH_GPIO_ACPI_SMI, /* 34: EC_SMI_L */
66 PCH_GPIO_ACPI_SMI, /* 35: PCH_NMI_DBG_L (route in NMI_EN) */
67 PCH_GPIO_ACPI_SCI, /* 36: EC_SCI_L */
68 PCH_GPIO_UNUSED, /* 37: UNUSED */
69 PCH_GPIO_UNUSED, /* 38: UNUSED */
70 PCH_GPIO_UNUSED, /* 39: UNUSED */
71 PCH_GPIO_NATIVE, /* 40: NATIVE: PCH_USB1_OC_L */
72 PCH_GPIO_NATIVE, /* 41: NATIVE: PCH_USB2_OC_L */
Kenji Chenffc2a3b2014-09-10 06:00:15 +080073 PCH_GPIO_UNUSED, /* 42: WLAN_DISABLE_L */
Duncan Laurie2663a552014-05-14 15:59:37 -070074 PCH_GPIO_OUT_HIGH, /* 43: PP1800_CODEC_EN */
Duncan Laurie25c6f752014-05-22 08:25:36 -070075 PCH_GPIO_UNUSED, /* 44: UNUSED */
Duncan Laurie84297862014-09-29 09:30:36 -070076 PCH_GPIO_ACPI_SCI, /* 45: DSP_INT - Codec Wake */
77 PCH_GPIO_PIRQ, /* 46: HOTWORD_DET_L_3V3 (PIRQO) - Codec IRQ */
Duncan Laurie808a2542014-07-15 13:41:18 -070078 PCH_GPIO_OUT_LOW, /* 47: SSD_RESET_L */
Duncan Laurie2663a552014-05-14 15:59:37 -070079 PCH_GPIO_UNUSED, /* 48: UNUSED */
Duncan Laurie25c6f752014-05-22 08:25:36 -070080 PCH_GPIO_UNUSED, /* 49: UNUSED */
Duncan Laurie2663a552014-05-14 15:59:37 -070081 PCH_GPIO_UNUSED, /* 50: UNUSED */
82 PCH_GPIO_UNUSED, /* 51: UNUSED */
83 PCH_GPIO_INPUT, /* 52: SIM_DET */
84 PCH_GPIO_UNUSED, /* 53: UNUSED */
85 PCH_GPIO_UNUSED, /* 54: UNUSED */
86 PCH_GPIO_UNUSED, /* 55: UNUSED */
87 PCH_GPIO_UNUSED, /* 56: UNUSED */
88 PCH_GPIO_OUT_HIGH, /* 57: CODEC_RESET_L */
89 PCH_GPIO_UNUSED, /* 58: UNUSED */
90 PCH_GPIO_OUT_HIGH, /* 59: LTE_DISABLE_L */
91 PCH_GPIO_UNUSED, /* 60: UNUSED */
92 PCH_GPIO_NATIVE, /* 61: NATIVE: PCH_SUS_STAT */
93 PCH_GPIO_NATIVE, /* 62: NATIVE: PCH_SUSCLK */
Duncan Laurie25c6f752014-05-22 08:25:36 -070094 PCH_GPIO_NATIVE, /* 63: NATIVE: PCH_SLP_S5_L */
Duncan Lauriebe19c542014-08-22 13:36:12 -070095 PCH_GPIO_UNUSED, /* 64: UNUSED */
Duncan Lauriea416f212014-06-10 10:06:46 -070096 PCH_GPIO_INPUT, /* 65: RAM_ID3 */
Duncan Lauriec2531892014-06-18 14:03:08 +080097 PCH_GPIO_INPUT, /* 66: RAM_ID3_OLD (STRAP) */
Duncan Laurie2663a552014-05-14 15:59:37 -070098 PCH_GPIO_INPUT, /* 67: RAM_ID0 */
99 PCH_GPIO_INPUT, /* 68: RAM_ID1 */
100 PCH_GPIO_INPUT, /* 69: RAM_ID2 */
Duncan Lauriea416f212014-06-10 10:06:46 -0700101 PCH_GPIO_UNUSED, /* 70: UNUSED */
Duncan Laurie2663a552014-05-14 15:59:37 -0700102 PCH_GPIO_NATIVE, /* 71: NATIVE: MODPHY_EN */
103 PCH_GPIO_UNUSED, /* 72: UNUSED */
104 PCH_GPIO_UNUSED, /* 73: UNUSED */
105 PCH_GPIO_UNUSED, /* 74: UNUSED */
106 PCH_GPIO_UNUSED, /* 75: UNUSED */
107 PCH_GPIO_UNUSED, /* 76: UNUSED */
108 PCH_GPIO_UNUSED, /* 77: UNUSED */
109 PCH_GPIO_UNUSED, /* 78: UNUSED */
110 PCH_GPIO_UNUSED, /* 79: UNUSED */
111 PCH_GPIO_UNUSED, /* 80: UNUSED */
112 PCH_GPIO_UNUSED, /* 81: UNUSED */
113 PCH_GPIO_NATIVE, /* 82: NATIVE: EC_RCIN_L */
Duncan Laurie09920e22014-11-03 15:46:59 -0800114 PCH_GPIO_NATIVE, /* 83: GSPI0_CS */
115 PCH_GPIO_NATIVE, /* 84: GSPI0_CLK */
116 PCH_GPIO_NATIVE, /* 85: GSPI0_MISO */
117 PCH_GPIO_NATIVE, /* 86: GSPI0_MOSI (STRAP) */
Duncan Laurie2663a552014-05-14 15:59:37 -0700118 PCH_GPIO_UNUSED, /* 87: UNUSED */
119 PCH_GPIO_UNUSED, /* 88: UNUSED */
120 PCH_GPIO_OUT_HIGH, /* 89: PP3300_SD_EN */
121 PCH_GPIO_UNUSED, /* 90: UNUSED */
Duncan Laurie25c6f752014-05-22 08:25:36 -0700122 PCH_GPIO_UNUSED, /* 91: UNUSED */
123 PCH_GPIO_UNUSED, /* 92: UNUSED */
124 PCH_GPIO_UNUSED, /* 93: UNUSED */
125 PCH_GPIO_UNUSED, /* 94: UNUSED */
Duncan Laurie2663a552014-05-14 15:59:37 -0700126 PCH_GPIO_END
Duncan Laurieddc3e422013-10-02 16:10:54 -0700127};
128
129#endif