coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
emmc_gpio.c
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#include <soc/gpio.h>
4
#include "
gpio.h
"
5
6
/* eMMC controller driving either an SD card or eMMC device. */
7
static
const
struct
soc_amd_gpio
emmc_gpios
[] = {
8
PAD_NF
(
GPIO_21
, EMMC_CMD,
PULL_UP
),
9
PAD_NF
(
GPIO_22
, EMMC_PWR_CTRL,
PULL_UP
),
10
PAD_NF
(
GPIO_68
, EMMC_CD,
PULL_UP
),
11
PAD_NF
(
GPIO_70
, EMMC_CLK,
PULL_NONE
),
12
PAD_NF
(
GPIO_104
, EMMC_DATA0,
PULL_UP
),
13
PAD_NF
(
GPIO_105
, EMMC_DATA1,
PULL_UP
),
14
PAD_NF
(
GPIO_106
, EMMC_DATA2,
PULL_UP
),
15
PAD_NF
(
GPIO_107
, EMMC_DATA3,
PULL_NONE
),
16
PAD_NF
(
GPIO_74
, EMMC_DATA4,
PULL_UP
),
17
PAD_NF
(
GPIO_75
, EMMC_DATA6,
PULL_UP
),
18
PAD_NF
(
GPIO_87
, EMMC_DATA7,
PULL_UP
),
19
PAD_NF
(
GPIO_88
, EMMC_DATA5,
PULL_UP
),
20
PAD_NF
(
GPIO_109
, EMMC_DS,
PULL_UP
),
21
};
22
23
/* Don't call this if the board uses the LPC bus. */
24
void
mainboard_program_emmc_gpios
(
void
)
25
{
26
gpio_configure_pads
(
emmc_gpios
,
ARRAY_SIZE
(
emmc_gpios
));
27
}
GPIO_22
#define GPIO_22
Definition:
gpio_ftns.h:14
GPIO_68
#define GPIO_68
Definition:
gpio_ftns.h:26
mainboard_program_emmc_gpios
void mainboard_program_emmc_gpios(void)
Definition:
emmc_gpio.c:24
emmc_gpios
static const struct soc_amd_gpio emmc_gpios[]
Definition:
emmc_gpio.c:7
ARRAY_SIZE
#define ARRAY_SIZE(a)
Definition:
helpers.h:12
PULL_UP
#define PULL_UP
Definition:
buildOpts.c:70
PULL_NONE
#define PULL_NONE
Definition:
buildOpts.c:72
GPIO_104
#define GPIO_104
Definition:
gpio.h:69
GPIO_88
#define GPIO_88
Definition:
gpio.h:64
GPIO_105
#define GPIO_105
Definition:
gpio.h:70
GPIO_107
#define GPIO_107
Definition:
gpio.h:72
GPIO_70
#define GPIO_70
Definition:
gpio.h:56
GPIO_109
#define GPIO_109
Definition:
gpio.h:74
GPIO_75
#define GPIO_75
Definition:
gpio.h:58
GPIO_87
#define GPIO_87
Definition:
gpio.h:63
GPIO_106
#define GPIO_106
Definition:
gpio.h:71
GPIO_21
#define GPIO_21
Definition:
gpio.h:39
GPIO_74
#define GPIO_74
Definition:
gpio.h:57
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_NF
#define PAD_NF(pin, func, pull)
Definition:
gpio_defs.h:208
gpio.h
soc_amd_gpio
Definition:
gpio.h:11
src
mainboard
amd
bilby
emmc_gpio.c
Generated by
1.9.1