blob: 564ee695040026a1d20191e836d55d500440cc51 [file] [log] [blame]
Mario Scheithauer092db952017-01-31 15:45:13 +01001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2015-2016 Intel Corporation. All Rights Reserved.
Mario Scheithauer6abdbcd2017-02-06 13:03:52 +01005 * Copyright (C) 2017 Siemens AG
Mario Scheithauer092db952017-01-31 15:45:13 +01006 *
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
21static const struct pad_config gpio_table[] = {
Mario Scheithauer6abdbcd2017-02-06 13:03:52 +010022 /* Debug tracing. */
Mario Scheithauer092db952017-01-31 15:45:13 +010023 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 Scheithauer6abdbcd2017-02-06 13:03:52 +010033 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 Scheithauer092db952017-01-31 15:45:13 +010038
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 Scheithauer6abdbcd2017-02-06 13:03:52 +010043 PAD_CFG_NF(LPC_ILB_SERIRQ, UP_20K, DEEP, NF1),
Mario Scheithauer092db952017-01-31 15:45:13 +010044 PAD_CFG_NF(LPC_CLKOUT0, NATIVE, DEEP, NF1),
Mario Scheithauer6abdbcd2017-02-06 13:03:52 +010045 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 Scheithauer092db952017-01-31 15:45:13 +010052};
53
54#endif