aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/reef/variants/baseboard/include/baseboard/gpio.h
blob: f60bfdc6de900191e8e7541426ef6845d4f40993 (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
/*
 * This file is part of the coreboot project.
 *
 * Copyright 2016 Google 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.
 */

#ifndef BASEBOARD_GPIO_H
#define BASEBOARD_GPIO_H

#include <soc/gpio.h>

/*
 * GPIO_11 for SCI is routed to GPE0_DW1 and maps to group GPIO_GPE_N_31_0
 * which is North community
 */
#define EC_SCI_GPI	GPE0_DW1_11

/* EC SMI */
#define EC_SMI_GPI	GPIO_49

/*
 * On lidopen/lidclose GPIO_22 from North Community gets toggled and
 * is used in _PRW to wake up device from sleep. GPIO_22 maps to
 * group GPIO_GPE_N_31_0 and the pad is configured as SCI with
 * EDGE_SINGLE and INVERT.
 */
#define GPE_EC_WAKE	GPE0_DW1_22

/* Write Protect and indication if EC is in RW code. */
#define GPIO_PCH_WP	GPIO_75
#define GPIO_EC_IN_RW	GPIO_41

/*  Memory SKU GPIOs. */
#define MEM_CONFIG3	GPIO_45
#define MEM_CONFIG2	GPIO_38
#define MEM_CONFIG1	GPIO_102
#define MEM_CONFIG0	GPIO_101

#endif /* BASEBOARD_GPIO_H */