Duncan Laurie | ddc3e42 | 2013-10-02 16:10:54 -0700 | [diff] [blame] | 1 | /* |
| 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 Laurie | ddc3e42 | 2013-10-02 16:10:54 -0700 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #ifndef SAMUS_GPIO_H |
| 17 | #define SAMUS_GPIO_H |
| 18 | |
Julius Werner | 4ee4bd5 | 2014-10-20 13:46:39 -0700 | [diff] [blame] | 19 | #include <soc/gpio.h> |
Duncan Laurie | ddc3e42 | 2013-10-02 16:10:54 -0700 | [diff] [blame] | 20 | |
Duncan Laurie | 2663a55 | 2014-05-14 15:59:37 -0700 | [diff] [blame] | 21 | #define SAMUS_GPIO_PP3300_AUTOBAHN_EN 23 |
Duncan Laurie | 808a254 | 2014-07-15 13:41:18 -0700 | [diff] [blame] | 22 | #define SAMUS_GPIO_SSD_RESET_L 47 |
Duncan Laurie | 1247b87 | 2014-09-29 08:35:29 -0700 | [diff] [blame] | 23 | #define SAMUS_GPIO_WLAN_DISABLE_L 42 |
| 24 | #define SAMUS_GPIO_LTE_DISABLE_L 59 |
Duncan Laurie | 2663a55 | 2014-05-14 15:59:37 -0700 | [diff] [blame] | 25 | |
| 26 | static 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 Laurie | c37dd50 | 2014-11-03 12:48:11 -0800 | [diff] [blame] | 36 | PCH_GPIO_INPUT_INVERT, /* 9: TRACKPAD_INT_L (WAKE) */ |
Duncan Laurie | 2663a55 | 2014-05-14 15:59:37 -0700 | [diff] [blame] | 37 | 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 Laurie | 25c6f75 | 2014-05-22 08:25:36 -0700 | [diff] [blame] | 45 | PCH_GPIO_UNUSED, /* 18: UNUSED */ |
Duncan Laurie | 2663a55 | 2014-05-14 15:59:37 -0700 | [diff] [blame] | 46 | PCH_GPIO_UNUSED, /* 19: UNUSED */ |
Duncan Laurie | 25c6f75 | 2014-05-22 08:25:36 -0700 | [diff] [blame] | 47 | PCH_GPIO_NATIVE, /* 20: PCIE_WLAN_CLKREQ_L */ |
Duncan Laurie | 2663a55 | 2014-05-14 15:59:37 -0700 | [diff] [blame] | 48 | 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 Laurie | be19c54 | 2014-08-22 13:36:12 -0700 | [diff] [blame] | 53 | PCH_GPIO_UNUSED, /* 26: UNUSED */ |
| 54 | PCH_GPIO_ACPI_SCI, /* 27: PCH_WAKE_L */ |
Duncan Laurie | 2663a55 | 2014-05-14 15:59:37 -0700 | [diff] [blame] | 55 | 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 Chen | ffc2a3b | 2014-09-10 06:00:15 +0800 | [diff] [blame] | 69 | PCH_GPIO_UNUSED, /* 42: WLAN_DISABLE_L */ |
Duncan Laurie | 2663a55 | 2014-05-14 15:59:37 -0700 | [diff] [blame] | 70 | PCH_GPIO_OUT_HIGH, /* 43: PP1800_CODEC_EN */ |
Duncan Laurie | 25c6f75 | 2014-05-22 08:25:36 -0700 | [diff] [blame] | 71 | PCH_GPIO_UNUSED, /* 44: UNUSED */ |
Duncan Laurie | 8429786 | 2014-09-29 09:30:36 -0700 | [diff] [blame] | 72 | PCH_GPIO_ACPI_SCI, /* 45: DSP_INT - Codec Wake */ |
| 73 | PCH_GPIO_PIRQ, /* 46: HOTWORD_DET_L_3V3 (PIRQO) - Codec IRQ */ |
Duncan Laurie | 808a254 | 2014-07-15 13:41:18 -0700 | [diff] [blame] | 74 | PCH_GPIO_OUT_LOW, /* 47: SSD_RESET_L */ |
Duncan Laurie | 2663a55 | 2014-05-14 15:59:37 -0700 | [diff] [blame] | 75 | PCH_GPIO_UNUSED, /* 48: UNUSED */ |
Duncan Laurie | 25c6f75 | 2014-05-22 08:25:36 -0700 | [diff] [blame] | 76 | PCH_GPIO_UNUSED, /* 49: UNUSED */ |
Duncan Laurie | 2663a55 | 2014-05-14 15:59:37 -0700 | [diff] [blame] | 77 | 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 Laurie | 25c6f75 | 2014-05-22 08:25:36 -0700 | [diff] [blame] | 90 | PCH_GPIO_NATIVE, /* 63: NATIVE: PCH_SLP_S5_L */ |
Duncan Laurie | be19c54 | 2014-08-22 13:36:12 -0700 | [diff] [blame] | 91 | PCH_GPIO_UNUSED, /* 64: UNUSED */ |
Duncan Laurie | a416f21 | 2014-06-10 10:06:46 -0700 | [diff] [blame] | 92 | PCH_GPIO_INPUT, /* 65: RAM_ID3 */ |
Duncan Laurie | c253189 | 2014-06-18 14:03:08 +0800 | [diff] [blame] | 93 | PCH_GPIO_INPUT, /* 66: RAM_ID3_OLD (STRAP) */ |
Duncan Laurie | 2663a55 | 2014-05-14 15:59:37 -0700 | [diff] [blame] | 94 | PCH_GPIO_INPUT, /* 67: RAM_ID0 */ |
| 95 | PCH_GPIO_INPUT, /* 68: RAM_ID1 */ |
| 96 | PCH_GPIO_INPUT, /* 69: RAM_ID2 */ |
Duncan Laurie | a416f21 | 2014-06-10 10:06:46 -0700 | [diff] [blame] | 97 | PCH_GPIO_UNUSED, /* 70: UNUSED */ |
Duncan Laurie | 2663a55 | 2014-05-14 15:59:37 -0700 | [diff] [blame] | 98 | 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 Laurie | 09920e2 | 2014-11-03 15:46:59 -0800 | [diff] [blame] | 110 | 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 Laurie | 2663a55 | 2014-05-14 15:59:37 -0700 | [diff] [blame] | 114 | 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 Laurie | 25c6f75 | 2014-05-22 08:25:36 -0700 | [diff] [blame] | 118 | PCH_GPIO_UNUSED, /* 91: UNUSED */ |
| 119 | PCH_GPIO_UNUSED, /* 92: UNUSED */ |
| 120 | PCH_GPIO_UNUSED, /* 93: UNUSED */ |
| 121 | PCH_GPIO_UNUSED, /* 94: UNUSED */ |
Duncan Laurie | 2663a55 | 2014-05-14 15:59:37 -0700 | [diff] [blame] | 122 | PCH_GPIO_END |
Duncan Laurie | ddc3e42 | 2013-10-02 16:10:54 -0700 | [diff] [blame] | 123 | }; |
| 124 | |
| 125 | #endif |