coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
mt6311.h File Reference
#include <stdint.h>
Include dependency graph for mt6311.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  {
  MT6311_CID = 0x0 , MT6311_SWCID = 0x1 , MT6311_GPIO_MODE = 0x04 , MT6311_TOP_CON = 0x0A ,
  MT6311_TOP_RST_CON = 0x15 , MT6311_TOP_INT_CON = 0x18 , MT6311_STRUP_CON5 = 0x1F , MT6311_EFUSE_DOUT_56_63 = 0x40 ,
  MT6311_EFUSE_DOUT_64_71 = 0x41 , MT6311_BUCK_ALL_CON23 = 0x69 , MT6311_STRUP_ANA_CON1 = 0x6D , MT6311_STRUP_ANA_CON2 = 0x6E ,
  MT6311_VDVFS1_ANA_CON10 = 0x84 , MT6311_VDVFS11_CON7 = 0x88 , MT6311_VDVFS11_CON9 = 0x8A , MT6311_VDVFS11_CON10 = 0x8B ,
  MT6311_VDVFS11_CON11 = 0x8C , MT6311_VDVFS11_CON12 = 0x8D , MT6311_VDVFS11_CON13 = 0x8E , MT6311_VDVFS11_CON14 = 0x8F ,
  MT6311_VDVFS11_CON19 = 0x94 , MT6311_LDO_CON3 = 0xCF
}
 
enum  { MT6311_E1_CID_CODE = 0x0110 , MT6311_E2_CID_CODE = 0x0120 , MT6311_E3_CID_CODE = 0x0130 }
 

Functions

void mt6311_probe (uint8_t i2c_num)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
MT6311_CID 
MT6311_SWCID 
MT6311_GPIO_MODE 
MT6311_TOP_CON 
MT6311_TOP_RST_CON 
MT6311_TOP_INT_CON 
MT6311_STRUP_CON5 
MT6311_EFUSE_DOUT_56_63 
MT6311_EFUSE_DOUT_64_71 
MT6311_BUCK_ALL_CON23 
MT6311_STRUP_ANA_CON1 
MT6311_STRUP_ANA_CON2 
MT6311_VDVFS1_ANA_CON10 
MT6311_VDVFS11_CON7 
MT6311_VDVFS11_CON9 
MT6311_VDVFS11_CON10 
MT6311_VDVFS11_CON11 
MT6311_VDVFS11_CON12 
MT6311_VDVFS11_CON13 
MT6311_VDVFS11_CON14 
MT6311_VDVFS11_CON19 
MT6311_LDO_CON3 

Definition at line 10 of file mt6311.h.

◆ anonymous enum

anonymous enum
Enumerator
MT6311_E1_CID_CODE 
MT6311_E2_CID_CODE 
MT6311_E3_CID_CODE 

Definition at line 35 of file mt6311.h.

Function Documentation

◆ 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: