Mario Scheithauer | 092db95 | 2017-01-31 15:45:13 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2015-2016 Intel Corporation. All Rights Reserved. |
Mario Scheithauer | 6abdbcd | 2017-02-06 13:03:52 +0100 | [diff] [blame] | 5 | * Copyright (C) 2017 Siemens AG |
Mario Scheithauer | 092db95 | 2017-01-31 15:45:13 +0100 | [diff] [blame] | 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; version 2 of the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | */ |
| 16 | |
| 17 | #include <soc/gpio.h> |
| 18 | |
| 19 | #if ENV_ROMSTAGE |
| 20 | |
| 21 | static const struct pad_config gpio_table[] = { |
Mario Scheithauer | 6abdbcd | 2017-02-06 13:03:52 +0100 | [diff] [blame] | 22 | /* Debug tracing. */ |
Mario Scheithauer | 092db95 | 2017-01-31 15:45:13 +0100 | [diff] [blame] | 23 | PAD_CFG_NF(GPIO_0, NATIVE, DEEP, NF1), |
| 24 | PAD_CFG_NF(GPIO_1, NATIVE, DEEP, NF1), |
| 25 | PAD_CFG_NF(GPIO_2, NATIVE, DEEP, NF1), |
| 26 | PAD_CFG_NF(GPIO_3, NATIVE, DEEP, NF1), |
| 27 | PAD_CFG_NF(GPIO_4, NATIVE, DEEP, NF1), |
| 28 | PAD_CFG_NF(GPIO_5, NATIVE, DEEP, NF1), |
| 29 | PAD_CFG_NF(GPIO_6, NATIVE, DEEP, NF1), |
| 30 | PAD_CFG_NF(GPIO_7, NATIVE, DEEP, NF1), |
| 31 | PAD_CFG_NF(GPIO_8, NATIVE, DEEP, NF1), |
| 32 | |
Mario Scheithauer | 6abdbcd | 2017-02-06 13:03:52 +0100 | [diff] [blame] | 33 | PAD_CFG_GPI(GPIO_152, DN_20K, DEEP), /* Unused */ |
| 34 | PAD_CFG_GPI(GPIO_19, UP_20K, DEEP), /* Unused */ |
| 35 | PAD_CFG_GPI(GPIO_13, UP_20K, DEEP), /* Unused */ |
| 36 | PAD_CFG_GPI(GPIO_17, UP_20K, DEEP), /* Unused */ |
| 37 | PAD_CFG_GPI(GPIO_15, UP_20K, DEEP), /* Unused */ |
Mario Scheithauer | 092db95 | 2017-01-31 15:45:13 +0100 | [diff] [blame] | 38 | |
| 39 | PAD_CFG_NF(GPIO_210, NATIVE, DEEP, NF1), /* CLKREQ# */ |
| 40 | |
| 41 | PAD_CFG_NF(SMB_CLK, NATIVE, DEEP, NF1), |
| 42 | PAD_CFG_NF(SMB_DATA, NATIVE, DEEP, NF1), |
Mario Scheithauer | 6abdbcd | 2017-02-06 13:03:52 +0100 | [diff] [blame] | 43 | PAD_CFG_NF(LPC_ILB_SERIRQ, UP_20K, DEEP, NF1), |
Mario Scheithauer | 092db95 | 2017-01-31 15:45:13 +0100 | [diff] [blame] | 44 | PAD_CFG_NF(LPC_CLKOUT0, NATIVE, DEEP, NF1), |
Mario Scheithauer | 6abdbcd | 2017-02-06 13:03:52 +0100 | [diff] [blame] | 45 | PAD_CFG_GPI(LPC_CLKOUT1, UP_20K, DEEP), /* LPC_CLKOUT1 -- unused */ |
| 46 | PAD_CFG_NF(LPC_AD0, UP_20K, DEEP, NF1), |
| 47 | PAD_CFG_NF(LPC_AD1, UP_20K, DEEP, NF1), |
| 48 | PAD_CFG_NF(LPC_AD2, UP_20K, DEEP, NF1), |
| 49 | PAD_CFG_NF(LPC_AD3, UP_20K, DEEP, NF1), |
| 50 | PAD_CFG_NF(LPC_CLKRUNB, UP_20K, DEEP, NF1), |
| 51 | PAD_CFG_NF(LPC_FRAMEB, UP_20K, DEEP, NF1), |
Mario Scheithauer | 092db95 | 2017-01-31 15:45:13 +0100 | [diff] [blame] | 52 | }; |
| 53 | |
| 54 | #endif |