coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
spi.h File Reference
#include <soc/spi_common.h>
Include dependency graph for spi.h:

Go to the source code of this file.

Macros

#define SPI_BUS_NUMBER   6
 
#define GET_SCK_REG(x)   x->spi_cfg2_reg
 

Enumerations

enum  { SPI_NOR_GPIO_SET0 = 0 , SPI_NOR_GPIO_SET1 , SPI_NOR_GPIO_SET_NUM }
 

Functions

void mtk_snfc_init (int gpio_set)
 

Macro Definition Documentation

◆ GET_SCK_REG

#define GET_SCK_REG (   x)    x->spi_cfg2_reg

Definition at line 15 of file spi.h.

◆ SPI_BUS_NUMBER

#define SPI_BUS_NUMBER   6

Definition at line 13 of file spi.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SPI_NOR_GPIO_SET0 
SPI_NOR_GPIO_SET1 
SPI_NOR_GPIO_SET_NUM 

Definition at line 28 of file spi.h.

Function Documentation

◆ mtk_snfc_init()

void mtk_snfc_init ( int  gpio_set)

Definition at line 141 of file spi.c.

References ARRAY_SIZE, assert, BIOS_DEBUG, BIOS_WARNING, pad_func::func, GPIO_DRV_8_MA, gpio_get_driving(), GPIO_PULL_ENABLE, gpio_set(), gpio_set_driving(), gpio_set_mode(), gpio_set_pull(), nor_pinmux, NULL, printk, pad_func::select, and SPI_NOR_GPIO_SET_NUM.

Referenced by bootblock_mainboard_init().

Here is the call graph for this function:
Here is the caller graph for this function: