![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <amdblocks/i2c.h>
#include <console/console.h>
#include <soc/i2c.h>
#include <soc/southbridge.h>
#include "chip.h"
Go to the source code of this file.
Functions | |
void | i2c_set_bar (unsigned int bus, uintptr_t bar) |
void | soc_i2c_misc_init (unsigned int bus, const struct dw_i2c_bus_config *cfg) |
const struct soc_i2c_ctrlr_info * | soc_get_i2c_ctrlr_info (size_t *num_ctrlrs) |
const struct dw_i2c_bus_config * | soc_get_i2c_bus_config (size_t *num_buses) |
Variables | |
static struct soc_i2c_ctrlr_info | i2c_ctrlr [I2C_CTRLR_COUNT] |
Definition at line 24 of file i2c.c.
References ARRAY_SIZE, soc_i2c_ctrlr_info::bar, BIOS_ERR, i2c_ctrlr, and printk.
Referenced by i2c2_set_bar(), and i2c3_set_bar().
const struct dw_i2c_bus_config* soc_get_i2c_bus_config | ( | size_t * | num_buses | ) |
Definition at line 51 of file i2c.c.
References ARRAY_SIZE, config, and config_of_soc.
Referenced by dw_i2c_get_soc_cfg(), and dw_i2c_soc_init().
const struct soc_i2c_ctrlr_info* soc_get_i2c_ctrlr_info | ( | size_t * | num_ctrlrs | ) |
Definition at line 45 of file i2c.c.
References ARRAY_SIZE, and i2c_ctrlr.
Referenced by dw_i2c_base_address(), dw_i2c_soc_dev_to_bus(), dw_i2c_soc_init(), and i2c_acpi_name().
void soc_i2c_misc_init | ( | unsigned int | bus, |
const struct dw_i2c_bus_config * | cfg | ||
) |
Definition at line 35 of file i2c.c.
References ARRAY_SIZE, config, config_of_soc, fch_i2c_pad_init(), and dw_i2c_bus_config::speed.
Referenced by dw_i2c_soc_init().
|
static |
Definition at line 1 of file i2c.c.
Referenced by i2c_set_bar(), and soc_get_i2c_ctrlr_info().