coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
pmic_wrap.h File Reference
#include <soc/addressmap.h>
#include <soc/pmic_wrap_common.h>
#include <types.h>
Include dependency graph for pmic_wrap.h:

Go to the source code of this file.

Data Structures

struct  mt8173_pwrap_regs
 

Enumerations

enum  { WACS2 = 1 << 4 }
 
enum  { DEW_BASE = 0xBC00 }
 
enum  {
  PMIC_BASE = 0x0000 , PMIC_WRP_CKPDN = PMIC_BASE + 0x011A , PMIC_WRP_RST_CON = PMIC_BASE + 0x0120 , PMIC_TOP_CKCON2 = PMIC_BASE + 0x012A ,
  PMIC_TOP_CKCON3 = PMIC_BASE + 0x01D4
}
 
enum  {
  DEW_EVENT_OUT_EN = DEW_BASE + 0x0 , DEW_DIO_EN = DEW_BASE + 0x2 , DEW_EVENT_SRC_EN = DEW_BASE + 0x4 , DEW_EVENT_SRC = DEW_BASE + 0x6 ,
  DEW_EVENT_FLAG = DEW_BASE + 0x8 , DEW_READ_TEST = DEW_BASE + 0xA , DEW_WRITE_TEST = DEW_BASE + 0xC , DEW_CRC_EN = DEW_BASE + 0xE ,
  DEW_CRC_VAL = DEW_BASE + 0x10 , DEW_MON_GRP_SEL = DEW_BASE + 0x12 , DEW_MON_FLAG_SEL = DEW_BASE + 0x14 , DEW_EVENT_TEST = DEW_BASE + 0x16 ,
  DEW_CIPHER_KEY_SEL = DEW_BASE + 0x18 , DEW_CIPHER_IV_SEL = DEW_BASE + 0x1A , DEW_CIPHER_LOAD = DEW_BASE + 0x1C , DEW_CIPHER_START = DEW_BASE + 0x1E ,
  DEW_CIPHER_RDY = DEW_BASE + 0x20 , DEW_CIPHER_MODE = DEW_BASE + 0x22 , DEW_CIPHER_SWRST = DEW_BASE + 0x24 , DEW_CIPHER_IV0 = DEW_BASE + 0x26 ,
  DEW_CIPHER_IV1 = DEW_BASE + 0x28 , DEW_CIPHER_IV2 = DEW_BASE + 0x2A , DEW_CIPHER_IV3 = DEW_BASE + 0x2C , DEW_CIPHER_IV4 = DEW_BASE + 0x2E ,
  DEW_CIPHER_IV5 = DEW_BASE + 0x30
}
 
enum  pmic_regck { REG_CLOCK_18MHZ , REG_CLOCK_26MHZ , REG_CLOCK_SAFE_MODE }
 

Functions

 check_member (mt8173_pwrap_regs, dcm_dbc_prd, 0x148)
 

Variables

static struct mt8173_pwrap_regs *const mtk_pwrap = (void *)PMIC_WRAP_BASE
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
WACS2 

Definition at line 12 of file pmic_wrap.h.

◆ anonymous enum

anonymous enum
Enumerator
DEW_BASE 

Definition at line 16 of file pmic_wrap.h.

◆ anonymous enum

anonymous enum
Enumerator
PMIC_BASE 
PMIC_WRP_CKPDN 
PMIC_WRP_RST_CON 
PMIC_TOP_CKCON2 
PMIC_TOP_CKCON3 

Definition at line 21 of file pmic_wrap.h.

◆ anonymous enum

anonymous enum
Enumerator
DEW_EVENT_OUT_EN 
DEW_DIO_EN 
DEW_EVENT_SRC_EN 
DEW_EVENT_SRC 
DEW_EVENT_FLAG 
DEW_READ_TEST 
DEW_WRITE_TEST 
DEW_CRC_EN 
DEW_CRC_VAL 
DEW_MON_GRP_SEL 
DEW_MON_FLAG_SEL 
DEW_EVENT_TEST 
DEW_CIPHER_KEY_SEL 
DEW_CIPHER_IV_SEL 
DEW_CIPHER_LOAD 
DEW_CIPHER_START 
DEW_CIPHER_RDY 
DEW_CIPHER_MODE 
DEW_CIPHER_SWRST 
DEW_CIPHER_IV0 
DEW_CIPHER_IV1 
DEW_CIPHER_IV2 
DEW_CIPHER_IV3 
DEW_CIPHER_IV4 
DEW_CIPHER_IV5 

Definition at line 116 of file pmic_wrap.h.

◆ pmic_regck

enum pmic_regck
Enumerator
REG_CLOCK_18MHZ 
REG_CLOCK_26MHZ 
REG_CLOCK_SAFE_MODE 

Definition at line 144 of file pmic_wrap.h.

Function Documentation

◆ check_member()

check_member ( mt8173_pwrap_regs  ,
dcm_dbc_prd  ,
0x148   
)

Variable Documentation

◆ mtk_pwrap