![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <soc/gsbi.h>
Go to the source code of this file.
Data Structures | |
struct | qup_config_t |
struct | qup_data_t |
Functions | |
qup_return_t | qup_init (gsbi_id_t gsbi_id, const qup_config_t *config_ptr) |
qup_return_t | qup_set_state (gsbi_id_t gsbi_id, uint32_t state) |
qup_return_t | qup_reset_i2c_master_status (gsbi_id_t gsbi_id) |
qup_return_t | qup_send_data (gsbi_id_t gsbi_id, qup_data_t *p_tx_obj, uint8_t stop_seq) |
qup_return_t | qup_recv_data (gsbi_id_t gsbi_id, qup_data_t *p_tx_obj) |
#define QUP_I2C_1CLK_NOOP_SEQ 0x1 /*MSB 8-bit NOP, LSB 8-bits 1 clk.*/ |
enum qup_mode_t |
enum qup_protocol_t |
enum qup_return_t |
qup_return_t qup_init | ( | gsbi_id_t | gsbi_id, |
const qup_config_t * | config_ptr | ||
) |
Definition at line 289 of file qup.c.
References BIOS_ERR, qup_config_t::clk_frequency, qup_config_t::mode, printk, qup_config_t::protocol, QUP_ADDR, QUP_CONFIG, QUP_DIVIDER_MIN_VAL, QUP_ERR_UNDEFINED, QUP_ERR_UNSUPPORTED, QUP_FS_DIVIDER_MASK, QUP_HS_DIVIDER_SHFT, QUP_I2C_MASTER_CLK_CTL, QUP_INPUT_MODE_SHFT, QUP_IO_MODES, QUP_MINI_CORE_PROTO_MASK, QUP_MINI_CORE_PROTO_SHFT, QUP_MINICORE_I2C_MASTER, QUP_MODE_FIFO, QUP_MODE_MASK, QUP_OUTPUT_BIT_SHIFT_EN, QUP_OUTPUT_MODE_SHFT, QUP_STATE_RESET, QUP_SW_RESET, qup_wait_for_state(), qup_config_t::src_frequency, and write32().
qup_return_t qup_recv_data | ( | gsbi_id_t | gsbi_id, |
qup_data_t * | p_tx_obj | ||
) |
Definition at line 434 of file qup.c.
References qup_data_t::protocol, QUP_ADDR, QUP_CONFIG, QUP_ERR_UNDEFINED, QUP_ERR_UNSUPPORTED, qup_i2c_recv_data(), QUP_MINI_CORE_PROTO_MASK, QUP_MINI_CORE_PROTO_SHFT, QUP_MINICORE_I2C_MASTER, and read32().
qup_return_t qup_reset_i2c_master_status | ( | gsbi_id_t | gsbi_id | ) |
Definition at line 72 of file qup.c.
References QUP_ADDR, QUP_I2C_MASTER_STATUS, QUP_SUCCESS, and write32().
qup_return_t qup_send_data | ( | gsbi_id_t | gsbi_id, |
qup_data_t * | p_tx_obj, | ||
uint8_t | stop_seq | ||
) |
Definition at line 396 of file qup.c.
References qup_data_t::protocol, QUP_ADDR, QUP_CONFIG, QUP_ERR_UNDEFINED, QUP_ERR_UNSUPPORTED, qup_i2c_send_data(), QUP_MINI_CORE_PROTO_MASK, QUP_MINI_CORE_PROTO_SHFT, QUP_MINICORE_I2C_MASTER, and read32().
qup_return_t qup_set_state | ( | gsbi_id_t | gsbi_id, |
uint32_t | state | ||
) |
Definition at line 353 of file qup.c.
References QUP_ADDR, QUP_ERR_UNDEFINED, QUP_STATE, QUP_STATE_PAUSE, QUP_STATE_RESET, QUP_STATE_VALID_MASK, qup_wait_for_state(), read32(), and write32().