summaryrefslogtreecommitdiffstats
path: root/src/mainboard/google/dedede/variants/baseboard/include/baseboard/gpio.h
blob: e99aa420115c9550933340583f820548a5316d2f (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
/*
 *
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef __BASEBOARD_GPIO_H__
#define __BASEBOARD_GPIO_H__

#include <soc/gpe.h>
#include <soc/gpio.h>

/* eSPI virtual wire reporting */
#define EC_SCI_GPI	GPE0_ESPI

#define GPIO_PCH_WP	GPP_C11

/* EC wake is LAN_WAKE# which is a special DeepSX wake pin */
#define GPE_EC_WAKE	GPE0_LAN_WAK

/* EC sync irq is GPP_C15_IRQ */
#define EC_SYNC_IRQ	GPP_C15_IRQ

/* Memory configuration board straps */
#define GPIO_MEM_CONFIG_0	GPP_C0
#define GPIO_MEM_CONFIG_1	GPP_C3
#define GPIO_MEM_CONFIG_2	GPP_C4
#define GPIO_MEM_CONFIG_3	GPP_C5

/* Memory channel select strap - 0: half-populated, 1: fully-populated */
#define GPIO_MEM_CH_SEL		GPP_S0

#endif /* __BASEBOARD_GPIO_H__ */