blob: 82af0e4bea4ade15ebac498e7dceae1cb1220c7e [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.
Duncan Laurieddc3e422013-10-02 16:10:54 -070014 */
15
16#ifndef SAMUS_GPIO_H
17#define SAMUS_GPIO_H
18
Julius Werner4ee4bd52014-10-20 13:46:39 -070019#include <soc/gpio.h>
Duncan Laurieddc3e422013-10-02 16:10:54 -070020
Duncan Laurie2663a552014-05-14 15:59:37 -070021#define SAMUS_GPIO_PP3300_AUTOBAHN_EN 23
Duncan Laurie808a2542014-07-15 13:41:18 -070022#define SAMUS_GPIO_SSD_RESET_L 47
Duncan Laurie1247b872014-09-29 08:35:29 -070023#define SAMUS_GPIO_WLAN_DISABLE_L 42
24#define SAMUS_GPIO_LTE_DISABLE_L 59
Duncan Laurie2663a552014-05-14 15:59:37 -070025
26static const struct gpio_config mainboard_gpio_config[] = {
27 PCH_GPIO_UNUSED, /* 0: UNUSED */
28 PCH_GPIO_UNUSED, /* 1: UNUSED */
29 PCH_GPIO_UNUSED, /* 2: UNUSED */
30 PCH_GPIO_UNUSED, /* 3: UNUSED */
31 PCH_GPIO_NATIVE, /* 4: NATIVE: I2C0_SDA_GPIO4 */
32 PCH_GPIO_NATIVE, /* 5: NATIVE: I2C0_SCL_GPIO5 */
33 PCH_GPIO_NATIVE, /* 6: NATIVE: I2C1_SDA_GPIO6 */
34 PCH_GPIO_NATIVE, /* 7: NATIVE: I2C1_SCL_GPIO7 */
35 PCH_GPIO_ACPI_SCI, /* 8: PCH_LTE_WAKE_L */
Duncan Lauriec37dd502014-11-03 12:48:11 -080036 PCH_GPIO_INPUT_INVERT, /* 9: TRACKPAD_INT_L (WAKE) */
Duncan Laurie2663a552014-05-14 15:59:37 -070037 PCH_GPIO_ACPI_SCI, /* 10: PCH_WLAN_WAKE_L */
38 PCH_GPIO_UNUSED, /* 11: UNUSED */
39 PCH_GPIO_UNUSED, /* 12: UNUSED */
40 PCH_GPIO_PIRQ, /* 13: TRACKPAD_INT_L (PIRQL) */
41 PCH_GPIO_PIRQ, /* 14: TOUCH_INT_L (PIRQM) */
42 PCH_GPIO_UNUSED, /* 15: UNUSED (STRAP) */
43 PCH_GPIO_INPUT, /* 16: PCH_WP */
44 PCH_GPIO_UNUSED, /* 17: UNUSED */
Duncan Laurie25c6f752014-05-22 08:25:36 -070045 PCH_GPIO_UNUSED, /* 18: UNUSED */
Duncan Laurie2663a552014-05-14 15:59:37 -070046 PCH_GPIO_UNUSED, /* 19: UNUSED */
Duncan Laurie25c6f752014-05-22 08:25:36 -070047 PCH_GPIO_NATIVE, /* 20: PCIE_WLAN_CLKREQ_L */
Duncan Laurie2663a552014-05-14 15:59:37 -070048 PCH_GPIO_OUT_HIGH, /* 21: PP3300_SSD_EN */
49 PCH_GPIO_UNUSED, /* 22: UNUSED */
50 PCH_GPIO_OUT_LOW, /* 23: PP3300_AUTOBAHN_EN */
51 PCH_GPIO_UNUSED, /* 24: UNUSED */
52 PCH_GPIO_INPUT, /* 25: EC_IN_RW */
Duncan Lauriebe19c542014-08-22 13:36:12 -070053 PCH_GPIO_UNUSED, /* 26: UNUSED */
54 PCH_GPIO_ACPI_SCI, /* 27: PCH_WAKE_L */
Duncan Laurie2663a552014-05-14 15:59:37 -070055 PCH_GPIO_UNUSED, /* 28: UNUSED */
56 PCH_GPIO_UNUSED, /* 29: UNUSED */
57 PCH_GPIO_NATIVE, /* 30: NATIVE: PCH_SUSWARN_L */
58 PCH_GPIO_NATIVE, /* 31: NATIVE: ACOK_BUF */
59 PCH_GPIO_NATIVE, /* 32: NATIVE: LPC_CLKRUN_L */
60 PCH_GPIO_NATIVE, /* 33: NATIVE: SSD_DEVSLP */
61 PCH_GPIO_ACPI_SMI, /* 34: EC_SMI_L */
62 PCH_GPIO_ACPI_SMI, /* 35: PCH_NMI_DBG_L (route in NMI_EN) */
63 PCH_GPIO_ACPI_SCI, /* 36: EC_SCI_L */
64 PCH_GPIO_UNUSED, /* 37: UNUSED */
65 PCH_GPIO_UNUSED, /* 38: UNUSED */
66 PCH_GPIO_UNUSED, /* 39: UNUSED */
67 PCH_GPIO_NATIVE, /* 40: NATIVE: PCH_USB1_OC_L */
68 PCH_GPIO_NATIVE, /* 41: NATIVE: PCH_USB2_OC_L */
Kenji Chenffc2a3b2014-09-10 06:00:15 +080069 PCH_GPIO_UNUSED, /* 42: WLAN_DISABLE_L */
Duncan Laurie2663a552014-05-14 15:59:37 -070070 PCH_GPIO_OUT_HIGH, /* 43: PP1800_CODEC_EN */
Duncan Laurie25c6f752014-05-22 08:25:36 -070071 PCH_GPIO_UNUSED, /* 44: UNUSED */
Duncan Laurie84297862014-09-29 09:30:36 -070072 PCH_GPIO_ACPI_SCI, /* 45: DSP_INT - Codec Wake */
73 PCH_GPIO_PIRQ, /* 46: HOTWORD_DET_L_3V3 (PIRQO) - Codec IRQ */
Duncan Laurie808a2542014-07-15 13:41:18 -070074 PCH_GPIO_OUT_LOW, /* 47: SSD_RESET_L */
Duncan Laurie2663a552014-05-14 15:59:37 -070075 PCH_GPIO_UNUSED, /* 48: UNUSED */
Duncan Laurie25c6f752014-05-22 08:25:36 -070076 PCH_GPIO_UNUSED, /* 49: UNUSED */
Duncan Laurie2663a552014-05-14 15:59:37 -070077 PCH_GPIO_UNUSED, /* 50: UNUSED */
78 PCH_GPIO_UNUSED, /* 51: UNUSED */
79 PCH_GPIO_INPUT, /* 52: SIM_DET */
80 PCH_GPIO_UNUSED, /* 53: UNUSED */
81 PCH_GPIO_UNUSED, /* 54: UNUSED */
82 PCH_GPIO_UNUSED, /* 55: UNUSED */
83 PCH_GPIO_UNUSED, /* 56: UNUSED */
84 PCH_GPIO_OUT_HIGH, /* 57: CODEC_RESET_L */
85 PCH_GPIO_UNUSED, /* 58: UNUSED */
86 PCH_GPIO_OUT_HIGH, /* 59: LTE_DISABLE_L */
87 PCH_GPIO_UNUSED, /* 60: UNUSED */
88 PCH_GPIO_NATIVE, /* 61: NATIVE: PCH_SUS_STAT */
89 PCH_GPIO_NATIVE, /* 62: NATIVE: PCH_SUSCLK */
Duncan Laurie25c6f752014-05-22 08:25:36 -070090 PCH_GPIO_NATIVE, /* 63: NATIVE: PCH_SLP_S5_L */
Duncan Lauriebe19c542014-08-22 13:36:12 -070091 PCH_GPIO_UNUSED, /* 64: UNUSED */
Duncan Lauriea416f212014-06-10 10:06:46 -070092 PCH_GPIO_INPUT, /* 65: RAM_ID3 */
Duncan Lauriec2531892014-06-18 14:03:08 +080093 PCH_GPIO_INPUT, /* 66: RAM_ID3_OLD (STRAP) */
Duncan Laurie2663a552014-05-14 15:59:37 -070094 PCH_GPIO_INPUT, /* 67: RAM_ID0 */
95 PCH_GPIO_INPUT, /* 68: RAM_ID1 */
96 PCH_GPIO_INPUT, /* 69: RAM_ID2 */
Duncan Lauriea416f212014-06-10 10:06:46 -070097 PCH_GPIO_UNUSED, /* 70: UNUSED */
Duncan Laurie2663a552014-05-14 15:59:37 -070098 PCH_GPIO_NATIVE, /* 71: NATIVE: MODPHY_EN */
99 PCH_GPIO_UNUSED, /* 72: UNUSED */
100 PCH_GPIO_UNUSED, /* 73: UNUSED */
101 PCH_GPIO_UNUSED, /* 74: UNUSED */
102 PCH_GPIO_UNUSED, /* 75: UNUSED */
103 PCH_GPIO_UNUSED, /* 76: UNUSED */
104 PCH_GPIO_UNUSED, /* 77: UNUSED */
105 PCH_GPIO_UNUSED, /* 78: UNUSED */
106 PCH_GPIO_UNUSED, /* 79: UNUSED */
107 PCH_GPIO_UNUSED, /* 80: UNUSED */
108 PCH_GPIO_UNUSED, /* 81: UNUSED */
109 PCH_GPIO_NATIVE, /* 82: NATIVE: EC_RCIN_L */
Duncan Laurie09920e22014-11-03 15:46:59 -0800110 PCH_GPIO_NATIVE, /* 83: GSPI0_CS */
111 PCH_GPIO_NATIVE, /* 84: GSPI0_CLK */
112 PCH_GPIO_NATIVE, /* 85: GSPI0_MISO */
113 PCH_GPIO_NATIVE, /* 86: GSPI0_MOSI (STRAP) */
Duncan Laurie2663a552014-05-14 15:59:37 -0700114 PCH_GPIO_UNUSED, /* 87: UNUSED */
115 PCH_GPIO_UNUSED, /* 88: UNUSED */
116 PCH_GPIO_OUT_HIGH, /* 89: PP3300_SD_EN */
117 PCH_GPIO_UNUSED, /* 90: UNUSED */
Duncan Laurie25c6f752014-05-22 08:25:36 -0700118 PCH_GPIO_UNUSED, /* 91: UNUSED */
119 PCH_GPIO_UNUSED, /* 92: UNUSED */
120 PCH_GPIO_UNUSED, /* 93: UNUSED */
121 PCH_GPIO_UNUSED, /* 94: UNUSED */
Duncan Laurie2663a552014-05-14 15:59:37 -0700122 PCH_GPIO_END
Duncan Laurieddc3e422013-10-02 16:10:54 -0700123};
124
125#endif