coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
early_gpio.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <soc/gpio.h>
4
5
#include "
gpio.h
"
6
7
/* Early pad configuration in bootblock */
8
static
const
struct
pad_config
early_gpio_table
[] = {
9
/* SMB_CLK */
10
PAD_CFG_NF
(
GPP_C0
,
NONE
, DEEP, NF1),
11
/* SMB_DATA */
12
PAD_CFG_NF
(
GPP_C1
,
NONE
, DEEP, NF1),
13
14
/* EC_SMI_N */
15
PAD_CFG_GPI
(
GPP_E7
,
NONE
, DEEP),
16
17
/* PCH HSID */
18
PAD_CFG_GPI
(
GPP_A8
,
NONE
, DEEP),
19
PAD_CFG_GPI
(
GPP_F19
,
NONE
, DEEP),
20
PAD_CFG_GPI
(
GPP_H19
,
NONE
, DEEP),
21
PAD_CFG_GPI
(
GPP_H23
,
NONE
, DEEP),
22
23
/* UART0 RX */
24
PAD_CFG_NF
(
GPP_H10
,
NONE
, DEEP, NF2),
25
/* UART0 TX */
26
PAD_CFG_NF
(
GPP_H11
,
NONE
, DEEP, NF2),
27
/* UART1 RX */
28
PAD_CFG_NF
(
GPP_D17
,
NONE
, DEEP, NF1),
29
/* UART1 TX */
30
PAD_CFG_NF
(
GPP_D18
,
NONE
, DEEP, NF1),
31
};
32
33
void
configure_early_gpio_pads
(
void
)
34
{
35
gpio_configure_pads
(
early_gpio_table
,
ARRAY_SIZE
(
early_gpio_table
));
36
}
GPP_H19
#define GPP_H19
Definition:
gpio_soc_defs.h:235
GPP_D17
#define GPP_D17
Definition:
gpio_soc_defs.h:269
GPP_H11
#define GPP_H11
Definition:
gpio_soc_defs.h:227
GPP_E7
#define GPP_E7
Definition:
gpio_soc_defs.h:635
GPP_D18
#define GPP_D18
Definition:
gpio_soc_defs.h:270
GPP_A8
#define GPP_A8
Definition:
gpio_soc_defs.h:127
GPP_C1
#define GPP_C1
Definition:
gpio_soc_defs.h:538
GPP_H10
#define GPP_H10
Definition:
gpio_soc_defs.h:226
GPP_C0
#define GPP_C0
Definition:
gpio_soc_defs.h:537
GPP_F19
#define GPP_F19
Definition:
gpio_soc_defs.h:592
GPP_H23
#define GPP_H23
Definition:
gpio_soc_defs.h:239
ARRAY_SIZE
#define ARRAY_SIZE(a)
Definition:
helpers.h:12
configure_early_gpio_pads
void configure_early_gpio_pads(void)
Definition:
early_gpio.c:33
early_gpio_table
static const struct pad_config early_gpio_table[]
Definition:
early_gpio.c:8
NONE
@ NONE
Definition:
qup_se_handlers_common.h:196
gpio_configure_pads
void gpio_configure_pads(const struct soc_amd_gpio *gpio_list_ptr, size_t size)
program a particular set of GPIO
Definition:
gpio.c:307
PAD_CFG_GPI
#define PAD_CFG_GPI(pad, pull, rst)
Definition:
gpio_defs.h:284
PAD_CFG_NF
#define PAD_CFG_NF(pad, pull, rst, func)
Definition:
gpio_defs.h:197
gpio.h
pad_config
Definition:
gpio.h:75
src
mainboard
prodrive
atlas
early_gpio.c
Generated by
1.9.1