![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Enumerations | |
enum | blsp_qup_id_t { BLSP_QUP_ID_0 , BLSP_QUP_ID_1 , BLSP_QUP_ID_2 , BLSP_QUP_ID_3 , BLSP_QUP_ID_0 , BLSP_QUP_ID_1 , BLSP_QUP_ID_2 , BLSP_QUP_ID_3 } |
enum | blsp_return_t { BLSP_SUCCESS = 0 , BLSP_ID_ERROR , BLSP_ERROR , BLSP_UNSUPPORTED , BLSP_SUCCESS = 0 , BLSP_ID_ERROR , BLSP_ERROR , BLSP_UNSUPPORTED } |
enum | blsp_protocol_t { BLSP_PROTO_I2C_UIM = 1 , BLSP_PROTO_I2C_ONLY , BLSP_PROTO_SPI_ONLY , BLSP_PROTO_UART_FLOW_CTL , BLSP_PROTO_UIM , BLSP_PROTO_I2C_UART , BLSP_PROTO_I2C_UIM = 1 , BLSP_PROTO_I2C_ONLY , BLSP_PROTO_SPI_ONLY , BLSP_PROTO_UART_FLOW_CTL , BLSP_PROTO_UIM , BLSP_PROTO_I2C_UART } |
Functions | |
blsp_return_t | blsp_i2c_init (blsp_qup_id_t id) |
int | blsp_i2c_init_board (blsp_qup_id_t id) |
enum blsp_protocol_t |
enum blsp_qup_id_t |
enum blsp_return_t |
blsp_return_t blsp_i2c_init | ( | blsp_qup_id_t | id | ) |
Definition at line 7 of file blsp.c.
References base, blsp_i2c_clock_config(), blsp_i2c_init_board(), BLSP_ID_ERROR, BLSP_MINI_CORE_I2C, BLSP_MINI_CORE_MASK, blsp_qup_base(), BLSP_QUP_ID_1, BLSP_SUCCESS, BLSP_UNSUPPORTED, clock_configure_i2c(), clock_enable_i2c(), clrsetbits32, GPIO, GPIO_2MA, gpio_configure(), GPIO_OUTPUT, and GPIO_PULL_UP.
Referenced by i2c_init().
int blsp_i2c_init_board | ( | blsp_qup_id_t | id | ) |
Definition at line 41 of file blsp.c.
References BLSP_QUP_ID_0, BLSP_QUP_ID_1, BLSP_QUP_ID_2, BLSP_QUP_ID_3, GPIO_2MA, GPIO_FUNC_SCL, GPIO_FUNC_SDA, GPIO_I2C1_FUNC_SCL, GPIO_I2C1_FUNC_SDA, GPIO_NO_PULL, gpio_tlmm_config_set(), SCL_GPIO, SCL_GPIO_I2C1, SDA_GPIO, and SDA_GPIO_I2C1.
Referenced by blsp_i2c_init().