OpenBIC
OpenSource Bridge-IC
plat_spi.c File Reference
#include <stdlib.h>
#include <logging/log.h>
#include <drivers/flash.h>
#include "plat_i2c.h"
#include "hal_i2c.h"
#include "util_spi.h"
#include "hal_gpio.h"
#include "libutil.h"
Include dependency graph for plat_spi.c:

Macros

#define CPLD_ADDR   0x21
 
#define CPLD_SPI_OOB_CONTROL_REG   0x0B
 
#define CPLD_SPI_OOB_FROM_CPU   0x02
 
#define CPLD_SPI_OOB_FROM_BIC   0x0B
 

Functions

 LOG_MODULE_REGISTER (plat_spi)
 
int pal_get_bios_flash_position ()
 
bool pal_switch_bios_spi_mux (int gpio_status)
 

Macro Definition Documentation

◆ CPLD_ADDR

#define CPLD_ADDR   0x21

◆ CPLD_SPI_OOB_CONTROL_REG

#define CPLD_SPI_OOB_CONTROL_REG   0x0B

◆ CPLD_SPI_OOB_FROM_BIC

#define CPLD_SPI_OOB_FROM_BIC   0x0B

◆ CPLD_SPI_OOB_FROM_CPU

#define CPLD_SPI_OOB_FROM_CPU   0x02

Function Documentation

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_spi  )

◆ pal_get_bios_flash_position()

int pal_get_bios_flash_position ( )

◆ pal_switch_bios_spi_mux()

bool pal_switch_bios_spi_mux ( int  gpio_status)
Here is the call graph for this function: