OpenBIC
OpenSource Bridge-IC
plat_spi.c File Reference
#include <stdio.h>
#include <plat_power_seq.h>
#include "hal_gpio.h"
#include "util_spi.h"
#include "util_sys.h"
#include "plat_gpio.h"
#include <logging/log.h>
Include dependency graph for plat_spi.c:

Macros

#define CXL_FLASH_TO_BIC   1
 
#define CXL_FLASH_TO_CXL   0
 
#define CXL_UPDATE_MAX_OFFSET   0x2000000
 

Functions

 LOG_MODULE_REGISTER (plat_spi)
 
uint8_t fw_update_cxl (uint32_t offset, uint16_t msg_len, uint8_t *msg_buf, bool sector_end)
 

Macro Definition Documentation

◆ CXL_FLASH_TO_BIC

#define CXL_FLASH_TO_BIC   1

◆ CXL_FLASH_TO_CXL

#define CXL_FLASH_TO_CXL   0

◆ CXL_UPDATE_MAX_OFFSET

#define CXL_UPDATE_MAX_OFFSET   0x2000000

Function Documentation

◆ fw_update_cxl()

uint8_t fw_update_cxl ( uint32_t  offset,
uint16_t  msg_len,
uint8_t *  msg_buf,
bool  sector_end 
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_spi  )