coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
bootblock.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #include <bootblock_common.h>
4 #include <soc/spi.h>
5 
6 #include "gpio.h"
7 
9 {
10  mtk_spi_init(CONFIG_EC_GOOGLE_CHROMEEC_SPI_BUS, SPI_PAD0_MASK, 3 * MHz, 0);
11  mtk_spi_init(CONFIG_DRIVER_TPM_SPI_BUS, SPI_PAD0_MASK, 1 * MHz, 0);
14 }
#define MHz
Definition: helpers.h:80
void setup_chromeos_gpios(void)
Definition: chromeos.c:10
__weak void bootblock_mainboard_init(void)
Definition: bootblock.c:19
#define GPIO_H1_AP_INT
Definition: gpio.h:12
@ IRQ_TYPE_EDGE_RISING
Definition: gpio_common.h:55
void gpio_eint_configure(gpio_t gpio, enum gpio_irq_type type)
Definition: gpio.c:142
@ SPI_PAD0_MASK
Definition: spi_common.h:46
void mtk_spi_init(unsigned int bus, enum spi_pad_mask pad_select, unsigned int speed_hz, unsigned int tick_dly)
Definition: spi.c:56