coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
rx6110sa.c File Reference
#include <acpi/acpi_device.h>
#include <acpi/acpigen.h>
#include <commonlib/bsd/bcd.h>
#include <console/console.h>
#include <device/device.h>
#include <device/i2c.h>
#include <device/i2c_bus.h>
#include <timer.h>
#include <version.h>
#include "chip.h"
#include "rx6110sa.h"
Include dependency graph for rx6110sa.c:

Go to the source code of this file.

Functions

static void rx6110sa_write (struct device *dev, uint8_t reg, uint8_t val)
 
static uint8_t rx6110sa_read (struct device *dev, uint8_t reg)
 
static void rx6110sa_set_build_date (struct device *dev)
 
static void rx6110sa_set_user_date (struct device *dev)
 
static void rx6110sa_final (struct device *dev)
 
static void rx6110sa_init (struct device *dev)
 
static void rx6110sa_enable (struct device *dev)
 

Variables

static struct device_operations rx6110sa_ops
 
struct chip_operations drivers_i2c_rx6110sa_ops
 

Function Documentation

◆ rx6110sa_enable()

static void rx6110sa_enable ( struct device dev)
static

Definition at line 236 of file rx6110sa.c.

◆ rx6110sa_final()

static void rx6110sa_final ( struct device dev)
static

Definition at line 47 of file rx6110sa.c.

References bcd2bin(), BIOS_INFO, device::chip_ops, DAY_REG, HOUR_REG, MINUTE_REG, MONTH_REG, chip_operations::name, printk, rx6110sa_read(), SECOND_REG, year, and YEAR_REG.

Here is the call graph for this function:

◆ rx6110sa_init()

◆ rx6110sa_read()

static uint8_t rx6110sa_read ( struct device dev,
uint8_t  reg 
)
static

Definition at line 22 of file rx6110sa.c.

References i2c_dev_readb_at().

Referenced by rx6110sa_final(), and rx6110sa_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rx6110sa_set_build_date()

static void rx6110sa_set_build_date ( struct device dev)
static

Definition at line 28 of file rx6110sa.c.

References coreboot_build_date, bcd_date::day, DAY_REG, bcd_date::month, MONTH_REG, rx6110sa_write(), WEEK_REG, bcd_date::weekday, bcd_date::year, and YEAR_REG.

Referenced by rx6110sa_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rx6110sa_set_user_date()

static void rx6110sa_set_user_date ( struct device dev)
static

Definition at line 37 of file rx6110sa.c.

References bin2bcd(), device::chip_info, config, DAY_REG, MONTH_REG, rx6110sa_write(), WEEK_REG, and YEAR_REG.

Referenced by rx6110sa_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ rx6110sa_write()

static void rx6110sa_write ( struct device dev,
uint8_t  reg,
uint8_t  val 
)
static

Definition at line 16 of file rx6110sa.c.

References i2c_dev_writeb_at(), and val.

Referenced by rx6110sa_init(), rx6110sa_set_build_date(), and rx6110sa_set_user_date().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ drivers_i2c_rx6110sa_ops

struct chip_operations drivers_i2c_rx6110sa_ops
Initial value:
= {
.enable_dev = rx6110sa_enable
}
static void rx6110sa_enable(struct device *dev)
Definition: rx6110sa.c:236

Definition at line 236 of file rx6110sa.c.

◆ rx6110sa_ops

struct device_operations rx6110sa_ops
static
Initial value:
= {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.init = rx6110sa_init,
.final = rx6110sa_final,
}
static void noop_read_resources(struct device *dev)
Standard device operations function pointers shims.
Definition: device.h:73
static void noop_set_resources(struct device *dev)
Definition: device.h:74
static void rx6110sa_final(struct device *dev)
Definition: rx6110sa.c:47
static void rx6110sa_init(struct device *dev)
Definition: rx6110sa.c:64

Definition at line 64 of file rx6110sa.c.