coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
da9212.c File Reference
#include <console/console.h>
#include <device/i2c_simple.h>
#include <soc/da9212.h>
Include dependency graph for da9212.c:

Go to the source code of this file.

Enumerations

enum  { DA9212_SLAVE_ADDR = 0x68 }
 

Functions

static void da9212_hw_init (uint8_t i2c_num, unsigned char variant_id)
 
void da9212_probe (uint8_t i2c_num)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DA9212_SLAVE_ADDR 

Definition at line 7 of file da9212.c.

Function Documentation

◆ da9212_hw_init()

◆ da9212_probe()

void da9212_probe ( uint8_t  i2c_num)

Definition at line 53 of file da9212.c.

References BIOS_ERR, BIOS_INFO, da9212_hw_init(), DA9212_ID, DA9212_REG_DEVICE_ID, DA9212_REG_PAGE4, DA9212_REG_PAGE_CON, DA9212_REG_PAGE_SHIFT, DA9212_REG_VARIANT_ID, DA9212_SLAVE_ADDR, i2c_read_field(), i2c_write_field(), and printk.

Referenced by configure_ext_buck().

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