OpenBIC
OpenSource Bridge-IC
|
#include "hal_gpio.h"
#include "hal_i2c.h"
#include "plat_gpio.h"
#include "plat_i2c.h"
#include "plat_class.h"
#include "plat_spi.h"
#include "util_spi.h"
#include <logging/log.h>
Macros | |
#define | CPLD_REG_SPI_MUX 0x0B |
#define | BIOS_READ_WRITE_FLASH_REG_MUX 0x10 |
#define | BIOS_SPI_DRIVER "spi1_cs0" |
#define | SPI_FREQ_50M 50000000 |
Functions | |
LOG_MODULE_REGISTER (plat_spi) | |
int | pal_get_bios_flash_position () |
bool | pal_switch_bios_spi_mux (int gpio_status) |
void | switch_spi_freq () |
int | switch_bios_read_write_flash_mux (int switch_mux) |
#define BIOS_READ_WRITE_FLASH_REG_MUX 0x10 |
#define BIOS_SPI_DRIVER "spi1_cs0" |
#define CPLD_REG_SPI_MUX 0x0B |
#define SPI_FREQ_50M 50000000 |
LOG_MODULE_REGISTER | ( | plat_spi | ) |
int pal_get_bios_flash_position | ( | ) |
bool pal_switch_bios_spi_mux | ( | int | gpio_status | ) |
int switch_bios_read_write_flash_mux | ( | int | switch_mux | ) |
void switch_spi_freq | ( | ) |