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 "plat_spi.h"
#include "libutil.h"
Include dependency graph for plat_spi.c:

Functions

 LOG_MODULE_REGISTER (plat_spi)
 
 K_THREAD_STACK_DEFINE (flash_copy_thread, FLASH_COPY_STACK_SIZE)
 
int pal_get_bios_flash_position ()
 
int pal_get_prot_flash_position ()
 
bool pal_switch_bios_spi_mux (int gpio_status)
 
void do_flash_copy ()
 
uint8_t start_flash_copy (uint8_t copy_type, uint32_t src_offset, uint32_t dest_offset, uint32_t length)
 
void get_flash_copy_info (FLASH_COPY_INFO *copy_info)
 

Variables

k_tid_t flash_copy_tid
 
struct k_thread flash_copy_thread_handler
 

Function Documentation

◆ do_flash_copy()

void do_flash_copy ( )

◆ get_flash_copy_info()

void get_flash_copy_info ( FLASH_COPY_INFO copy_info)

◆ K_THREAD_STACK_DEFINE()

K_THREAD_STACK_DEFINE ( flash_copy_thread  ,
FLASH_COPY_STACK_SIZE   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_spi  )

◆ pal_get_bios_flash_position()

int pal_get_bios_flash_position ( )

◆ pal_get_prot_flash_position()

int pal_get_prot_flash_position ( )

◆ pal_switch_bios_spi_mux()

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

◆ start_flash_copy()

uint8_t start_flash_copy ( uint8_t  copy_type,
uint32_t  src_offset,
uint32_t  dest_offset,
uint32_t  length 
)

Variable Documentation

◆ flash_copy_thread_handler

struct k_thread flash_copy_thread_handler

◆ flash_copy_tid

k_tid_t flash_copy_tid