OpenBIC
OpenSource Bridge-IC
|
#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"
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 |
void do_flash_copy | ( | ) |
void get_flash_copy_info | ( | FLASH_COPY_INFO * | copy_info | ) |
K_THREAD_STACK_DEFINE | ( | flash_copy_thread | , |
FLASH_COPY_STACK_SIZE | |||
) |
LOG_MODULE_REGISTER | ( | plat_spi | ) |
int pal_get_bios_flash_position | ( | ) |
int pal_get_prot_flash_position | ( | ) |
bool pal_switch_bios_spi_mux | ( | int | gpio_status | ) |
uint8_t start_flash_copy | ( | uint8_t | copy_type, |
uint32_t | src_offset, | ||
uint32_t | dest_offset, | ||
uint32_t | length | ||
) |
struct k_thread flash_copy_thread_handler |
k_tid_t flash_copy_tid |