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

Go to the source code of this file.

Enumerations

enum  { MT6311_SLAVE_ADDR = 0x6B }
 

Functions

static u32 get_mt6311_chip_id (uint8_t i2c_num)
 
static void mt6311_hw_init (uint8_t i2c_num)
 
void mt6311_probe (uint8_t i2c_num)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MT6311_SLAVE_ADDR 

Definition at line 7 of file mt6311.c.

Function Documentation

◆ get_mt6311_chip_id()

static u32 get_mt6311_chip_id ( uint8_t  i2c_num)
static

Definition at line 11 of file mt6311.c.

References i2c_read_field(), MT6311_CID, MT6311_SLAVE_ADDR, and MT6311_SWCID.

Referenced by mt6311_probe().

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

◆ mt6311_hw_init()

◆ mt6311_probe()

void mt6311_probe ( uint8_t  i2c_num)

Definition at line 103 of file mt6311.c.

References BIOS_ERR, BIOS_INFO, get_mt6311_chip_id(), MT6311_E1_CID_CODE, mt6311_hw_init(), printk, and val.

Referenced by configure_ext_buck().

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