coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
romstage.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <soc/addressmap.h>
4 #include <device/i2c_simple.h>
5 #include <soc/clock.h>
6 #include <soc/funitcfg.h>
7 #include <soc/nvidia/tegra/i2c.h>
8 #include <soc/padconfig.h>
9 #include <soc/romstage.h>
10 
11 #include "gpio.h"
12 #include "pmic.h"
13 
14 static const struct pad_config padcfgs[] = {
15  /* AP_SYS_RESET_L - active low*/
16  PAD_CFG_GPIO_OUT1(SDMMC1_DAT0, PINMUX_PULL_UP),
17  /* WP_L - active low */
19  /* BTN_AP_PWR_L - active low */
20  PAD_CFG_GPIO_INPUT(BUTTON_POWER_ON, PINMUX_PULL_UP),
21  /* BTN_AP_VOLD_L - active low */
22  PAD_CFG_GPIO_INPUT(BUTTON_VOL_DOWN, PINMUX_PULL_UP),
23  /* BTN_AP_VOLU_L - active low */
24  PAD_CFG_GPIO_INPUT(SDMMC1_DAT1, PINMUX_PULL_UP),
25 };
26 
28 {
30 }
31 
33 {
34 }
35 
37 {
38  /* VDD_CPU is already enabled in bootblock. */
39 }
#define ARRAY_SIZE(a)
Definition: helpers.h:12
void mainboard_enable_vdd_cpu(void)
Definition: romstage.c:19
void romstage_mainboard_init(void)
Definition: romstage.c:10
void mainboard_configure_pmc(void)
Definition: romstage.c:15
static const struct pad_config padcfgs[]
Definition: romstage.c:14
@ PINMUX_PULL_NONE
Definition: pinmux.h:12
@ PINMUX_PULL_UP
Definition: pinmux.h:14
#define PAD_CFG_GPIO_OUT1(ball_, pinmux_flgs_)
Definition: padconfig.h:40
#define PAD_CFG_GPIO_INPUT(ball_, pinmux_flgs_)
Definition: padconfig.h:21
void soc_configure_pads(const struct pad_config *const entries, size_t num)
Definition: padconfig.c:105