![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
#include <console/console.h>
#include <delay.h>
#include <device/device.h>
#include <device/smbus.h>
#include <device/pci.h>
#include "chip.h"
Go to the source code of this file.
Functions | |
static void | rtd2132_write_reg (struct device *dev, u8 reg, u8 value) |
static void | rtd2132_firmware_stop (struct device *dev) |
static void | rtd2132_firmware_start (struct device *dev) |
static void | rtd2132_pps (struct device *dev, struct drivers_i2c_rtd2132_config *cfg) |
static void | rtd2132_sscg_enable (struct device *dev, u8 sscg_percent) |
static void | rtd2132_sscg_disable (struct device *dev) |
static void | rtd2132_sscg (struct device *dev, struct drivers_i2c_rtd2132_config *cfg) |
static void | rtd2132_lvds_swap (struct device *dev, struct drivers_i2c_rtd2132_config *cfg) |
static void | rtd2132_defaults (struct device *dev) |
static void | rtd2132_setup (struct device *dev) |
static void | rtd2132_init (struct device *dev) |
static void | enable_dev (struct device *dev) |
Variables | |
static struct device_operations | rtd2132_operations |
struct chip_operations | drivers_i2c_rtd2132_ops |
Definition at line 171 of file rtd2132.c.
References ARRAY_SIZE, rtd2132_write_reg(), and value.
Referenced by rtd2132_setup().
Definition at line 74 of file rtd2132.c.
References RTD2132_FIRMWARE, RTD2132_FIRMWARE_START, and smbus_write_byte().
Referenced by rtd2132_setup().
Definition at line 68 of file rtd2132.c.
References mdelay(), RTD2132_FIRMWARE, RTD2132_FIRMWARE_STOP, and smbus_write_byte().
Referenced by rtd2132_setup().
Definition at line 218 of file rtd2132.c.
References DEVICE_PATH_I2C, device::enabled, get_pbus_smbus(), ops_smbus_bus(), device::path, rtd2132_setup(), and device_path::type.
|
static |
Definition at line 137 of file rtd2132.c.
References BIOS_ERR, BIOS_INFO, drivers_i2c_rtd2132_config::lvds_swap, printk, RTD2132_COMMAND_LVDS_SWAP, RTD2132_LVDS_SWAP_CFG_DUAL, RTD2132_LVDS_SWAP_CFG_MIRROR, RTD2132_LVDS_SWAP_CFG_MIRROR_P_N, RTD2132_LVDS_SWAP_CFG_NORMAL, RTD2132_LVDS_SWAP_CFG_P_N, RTD2132_LVDS_SWAP_CFG_R_L, RTD2132_LVDS_SWAP_DUAL, RTD2132_LVDS_SWAP_MIRROR, RTD2132_LVDS_SWAP_MIRROR_P_N, RTD2132_LVDS_SWAP_NORMAL, RTD2132_LVDS_SWAP_P_N, RTD2132_LVDS_SWAP_R_L, and rtd2132_write_reg().
Referenced by rtd2132_setup().
|
static |
Definition at line 79 of file rtd2132.c.
References RTD2132_COMMAND_PWR_SEQ_T1, RTD2132_COMMAND_PWR_SEQ_T2, RTD2132_COMMAND_PWR_SEQ_T3, RTD2132_COMMAND_PWR_SEQ_T4, RTD2132_COMMAND_PWR_SEQ_T5, RTD2132_COMMAND_PWR_SEQ_T6, RTD2132_COMMAND_PWR_SEQ_T7, rtd2132_write_reg(), drivers_i2c_rtd2132_config::t1, drivers_i2c_rtd2132_config::t2, drivers_i2c_rtd2132_config::t3, drivers_i2c_rtd2132_config::t4, drivers_i2c_rtd2132_config::t5, drivers_i2c_rtd2132_config::t6, and drivers_i2c_rtd2132_config::t7.
Referenced by rtd2132_setup().
Definition at line 192 of file rtd2132.c.
References device::chip_info, config, rtd2132_defaults(), rtd2132_firmware_start(), rtd2132_firmware_stop(), rtd2132_lvds_swap(), rtd2132_pps(), and rtd2132_sscg().
Referenced by rtd2132_init().
|
static |
Definition at line 112 of file rtd2132.c.
References BIOS_ERR, BIOS_INFO, printk, RTD2132_SSCG_CONFIG_0_5, RTD2132_SSCG_CONFIG_1_0, RTD2132_SSCG_CONFIG_1_5, rtd2132_sscg_disable(), rtd2132_sscg_enable(), RTD2132_SSCG_PERCENT_0_0, RTD2132_SSCG_PERCENT_0_5, RTD2132_SSCG_PERCENT_1_0, RTD2132_SSCG_PERCENT_1_5, and drivers_i2c_rtd2132_config::sscg_percent.
Referenced by rtd2132_setup().
Definition at line 101 of file rtd2132.c.
References RTD2132_COMMAND_SSCG_CONFIG_0, RTD2132_COMMAND_SSCG_CONFIG_1, RTD2132_SSCG_CONFIG_DISABLED, RTD2132_SSCG_DISABLE, and rtd2132_write_reg().
Referenced by rtd2132_sscg().
Definition at line 91 of file rtd2132.c.
References RTD2132_COMMAND_SSCG_CONFIG_0, RTD2132_COMMAND_SSCG_CONFIG_1, RTD2132_SSCG_ENABLE, and rtd2132_write_reg().
Referenced by rtd2132_sscg().
Definition at line 60 of file rtd2132.c.
References BIOS_DEBUG, printk, RTD2132_COMMAND, RTD2132_DATA, RTD2132_DEBUG_REG, smbus_write_byte(), and value.
Referenced by rtd2132_defaults(), rtd2132_lvds_swap(), rtd2132_pps(), rtd2132_sscg_disable(), and rtd2132_sscg_enable().
struct chip_operations drivers_i2c_rtd2132_ops |
|
static |