summaryrefslogtreecommitdiff
path: root/src/mainboard/google/kahlee/gpio.c
blob: 56a5e3d2c75f2c903959197f0279d33dab880aa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*
 * This file is part of the coreboot project.
 *
 * Copyright (C) 2017 Advanced Micro Devices, Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 2 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <AGESA.h>
#include <FchPlatform.h>
#include <soc/hudson.h>
#include <stdlib.h>

const GPIO_CONTROL oem_kahlee_gpio[] = {
	/* SER TX */
	{8, Function1, FCH_GPIO_PULL_UP_ENABLE | FCH_GPIO_OUTPUT_VALUE
						| FCH_GPIO_OUTPUT_ENABLE},
	/* SER RX */
	{9, Function1, FCH_GPIO_PULL_UP_ENABLE },

	/* AGPIO 12 */
	{12, Function2, FCH_GPIO_PULL_UP_ENABLE },

	/* TS_EN_SOC (TouchScreen enable GPIO) */
	{13, Function1, FCH_GPIO_PULL_UP_ENABLE | FCH_GPIO_OUTPUT_VALUE
						| FCH_GPIO_OUTPUT_ENABLE},

	/* CAM_PWRON (Camera enable GPIO) */
	{14, Function1,  FCH_GPIO_PULL_UP_ENABLE | FCH_GPIO_OUTPUT_VALUE
						| FCH_GPIO_OUTPUT_ENABLE},

	/* EC_IN_RW */
	{15, Function1, FCH_GPIO_PULL_UP_ENABLE | FCH_GPIO_OUTPUT_VALUE
						| FCH_GPIO_OUTPUT_ENABLE},

	/* APU_I2C_3_SCL */
	{19, Function1, FCH_GPIO_PULL_UP_ENABLE },

	/* APU_I2C_3_SDA */
	{20, Function1, FCH_GPIO_PULL_UP_ENABLE },


	/* APU_BT_ON# */
	{24, Function1, FCH_GPIO_PULL_UP_ENABLE | FCH_GPIO_OUTPUT_VALUE
						| FCH_GPIO_OUTPUT_ENABLE},

	/* DEVSLP1_SSD */
	{67, Function1, FCH_GPIO_PULL_UP_ENABLE},

	/* DEVSLP1_EMMC */
	/* No Connect for now.
	 * {70, Function1, FCH_GPIO_PULL_UP_ENABLE},
	 */

	/* SPI_TPM_CS_L */
	{76, Function1, FCH_GPIO_PULL_DOWN_ENABLE | FCH_GPIO_OUTPUT_VALUE
						  | FCH_GPIO_OUTPUT_ENABLE},

	/* CAM_LED# */
	{84, Function1, FCH_GPIO_PULL_UP_ENABLE | FCH_GPIO_OUTPUT_VALUE
						| FCH_GPIO_OUTPUT_ENABLE},

	/* TS_RST#  (TouchScreen Reset) */
	{85, Function1, FCH_GPIO_PULL_UP_ENABLE | FCH_GPIO_OUTPUT_VALUE
						| FCH_GPIO_OUTPUT_ENABLE},

	/* WLAN_RST#_AUX */
	{119, Function2, FCH_GPIO_PULL_UP_ENABLE | FCH_GPIO_OUTPUT_VALUE
						 | FCH_GPIO_OUTPUT_ENABLE},

	/* BD_ID1 */
	{135, Function1, 0 },

	/* TPM_SERIRQ# */
	{139, Function1, FCH_GPIO_PULL_UP_ENABLE },

	/* BD_ID2 */
	{140, Function1, 0 },

	/* APU_SPI_WP */
	{142, Function1, FCH_GPIO_PULL_UP_ENABLE },

	/* BD_ID3 */
	{144, Function1, 0 },

	{-1}
};