coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <device/mmio.h>
#include <console/console.h>
#include <device/i2c_simple.h>
#include <gpio.h>
#include <soc/grf.h>
#include <soc/i2c.h>
#include <soc/pmu.h>
Go to the source code of this file.
Functions | |
static int | get_scl (unsigned int bus) |
static int | get_sda (unsigned int bus) |
static void | set_scl (unsigned int bus, int high) |
static void | set_sda (unsigned int bus, int high) |
void | software_i2c_attach (unsigned int bus) |
void | software_i2c_detach (unsigned int bus) |
Variables | |
struct { | |
gpio_t scl | |
gpio_t sda | |
} | pins [] |
static struct software_i2c_ops | rk_ops |
|
static |
Definition at line 23 of file software_i2c.c.
References gpio_get(), pins, and scl.
Referenced by __wait(), in_bit(), out_bit(), software_i2c_wedge_ack(), software_i2c_wedge_read(), software_i2c_wedge_write(), start_cond(), and stop_cond().
|
static |
Definition at line 28 of file software_i2c.c.
References gpio_get(), pins, and sda.
Referenced by __wait(), out_bit(), software_i2c_wedge_ack(), software_i2c_wedge_read(), software_i2c_wedge_write(), start_cond(), and stop_cond().
Definition at line 33 of file software_i2c.c.
References gpio_input_pullup(), gpio_output(), pins, and scl.
Referenced by software_i2c_attach().
Definition at line 41 of file software_i2c.c.
Referenced by software_i2c_attach().
Definition at line 56 of file software_i2c.c.
References clrbits32, die(), IOMUX_GPIO, rk3288_pmu_regs::iomux_i2c0scl, IOMUX_I2C0SCL, rk3288_pmu_regs::iomux_i2c0sda, IOMUX_I2C0SDA, rk3288_grf_regs::iomux_i2c1, IOMUX_I2C1, rk3288_grf_regs::iomux_i2c2, IOMUX_I2C2, rk3288_grf_regs::iomux_i2c3, IOMUX_I2C3, rk3288_grf_regs::iomux_i2c4, IOMUX_I2C4, rk3288_grf_regs::iomux_i2c5scl, IOMUX_I2C5SCL, rk3288_grf_regs::iomux_i2c5sda, IOMUX_I2C5SDA, rk3288_grf, rk3288_pmu, rk_ops, set_scl(), set_sda(), software_i2c, and write32().
Definition at line 91 of file software_i2c.c.
References die(), rk3288_pmu_regs::iomux_i2c0scl, IOMUX_I2C0SCL, rk3288_pmu_regs::iomux_i2c0sda, IOMUX_I2C0SDA, rk3288_grf_regs::iomux_i2c1, IOMUX_I2C1, rk3288_grf_regs::iomux_i2c2, IOMUX_I2C2, rk3288_grf_regs::iomux_i2c3, IOMUX_I2C3, rk3288_grf_regs::iomux_i2c4, IOMUX_I2C4, rk3288_grf_regs::iomux_i2c5scl, IOMUX_I2C5SCL, rk3288_grf_regs::iomux_i2c5sda, IOMUX_I2C5SDA, NULL, rk3288_grf, rk3288_pmu, setbits32, software_i2c, and write32().
struct { ... } pins[] |
|
static |
Definition at line 41 of file software_i2c.c.
Referenced by software_i2c_attach().
gpio_t scl |
Definition at line 12 of file software_i2c.c.
gpio_t sda |
Definition at line 13 of file software_i2c.c.